Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for libucimf 2.3.8.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187 else
188 as_have_required=no
189 fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192 else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210 fi
211 fi
212 done;;
213 esac
214 as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
221
222
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell [email protected] and
242 $0: [email protected] about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
246 fi
247 exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265 { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274 return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345 else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362 else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367 fi # as_fn_arith
368
369
370 # as_fn_error ERROR [LINENO LOG_FD]
371 # ---------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with status $?, using 1 if that was 0.
375 as_fn_error ()
376 {
377 as_status=$?; test $as_status -eq 0 && as_status=1
378 if test "$3"; then
379 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
381 fi
382 $as_echo "$as_me: error: $1" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
472 *)
473 ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497 else
498 as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541
542 test -n "$DJDIR" || exec 7<&0 </dev/null
543 exec 6>&1
544
545 # Name of the host.
546 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
547 # so uname gets run too.
548 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550 #
551 # Initializations.
552 #
553 ac_default_prefix=/usr/local
554 ac_clean_files=
555 ac_config_libobj_dir=.
556 LIBOBJS=
557 cross_compiling=no
558 subdirs=
559 MFLAGS=
560 MAKEFLAGS=
561
562 # Identity of this package.
563 PACKAGE_NAME='libucimf'
564 PACKAGE_TARNAME='libucimf'
565 PACKAGE_VERSION='2.3.8'
566 PACKAGE_STRING='libucimf 2.3.8'
567 PACKAGE_BUGREPORT='[email protected]'
568 PACKAGE_URL=''
569
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 # include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 # include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_header_list=
607 ac_subst_vars='am__EXEEXT_FALSE
608 am__EXEEXT_TRUE
609 LTLIBOBJS
610 DIALOG
611 LIBOBJS
612 ENABLE_DEBUG_FALSE
613 ENABLE_DEBUG_TRUE
614 fontconfig_LIBS
615 fontconfig_CFLAGS
616 freetype2_LIBS
617 freetype2_CFLAGS
618 PKG_CONFIG_LIBDIR
619 PKG_CONFIG_PATH
620 PKG_CONFIG
621 CXXCPP
622 OTOOL64
623 OTOOL
624 LIPO
625 NMEDIT
626 DSYMUTIL
627 RANLIB
628 AR
629 OBJDUMP
630 NM
631 ac_ct_DUMPBIN
632 DUMPBIN
633 LD
634 FGREP
635 EGREP
636 GREP
637 SED
638 host_os
639 host_vendor
640 host_cpu
641 host
642 build_os
643 build_vendor
644 build_cpu
645 build
646 LIBTOOL
647 LN_S
648 CPP
649 am__fastdepCC_FALSE
650 am__fastdepCC_TRUE
651 CCDEPMODE
652 ac_ct_CC
653 CFLAGS
654 CC
655 am__fastdepCXX_FALSE
656 am__fastdepCXX_TRUE
657 CXXDEPMODE
658 AMDEPBACKSLASH
659 AMDEP_FALSE
660 AMDEP_TRUE
661 am__quote
662 am__include
663 DEPDIR
664 OBJEXT
665 EXEEXT
666 ac_ct_CXX
667 CPPFLAGS
668 LDFLAGS
669 CXXFLAGS
670 CXX
671 am__untar
672 am__tar
673 AMTAR
674 am__leading_dot
675 SET_MAKE
676 AWK
677 mkdir_p
678 MKDIR_P
679 INSTALL_STRIP_PROGRAM
680 STRIP
681 install_sh
682 MAKEINFO
683 AUTOHEADER
684 AUTOMAKE
685 AUTOCONF
686 ACLOCAL
687 VERSION
688 PACKAGE
689 CYGPATH_W
690 am__isrc
691 INSTALL_DATA
692 INSTALL_SCRIPT
693 INSTALL_PROGRAM
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 enable_dependency_tracking
736 enable_shared
737 enable_static
738 with_pic
739 enable_fast_install
740 with_gnu_ld
741 enable_libtool_lock
742 enable_debug
743 '
744 ac_precious_vars='build_alias
745 host_alias
746 target_alias
747 CXX
748 CXXFLAGS
749 LDFLAGS
750 LIBS
751 CPPFLAGS
752 CCC
753 CC
754 CFLAGS
755 CPP
756 CXXCPP
757 PKG_CONFIG
758 PKG_CONFIG_PATH
759 PKG_CONFIG_LIBDIR
760 freetype2_CFLAGS
761 freetype2_LIBS
762 fontconfig_CFLAGS
763 fontconfig_LIBS'
764
765
766 # Initialize some variables set by options.
767 ac_init_help=
768 ac_init_version=false
769 ac_unrecognized_opts=
770 ac_unrecognized_sep=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
773 cache_file=/dev/null
774 exec_prefix=NONE
775 no_create=
776 no_recursion=
777 prefix=NONE
778 program_prefix=NONE
779 program_suffix=NONE
780 program_transform_name=s,x,x,
781 silent=
782 site=
783 srcdir=
784 verbose=
785 x_includes=NONE
786 x_libraries=NONE
787
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir='${exec_prefix}/bin'
795 sbindir='${exec_prefix}/sbin'
796 libexecdir='${exec_prefix}/libexec'
797 datarootdir='${prefix}/share'
798 datadir='${datarootdir}'
799 sysconfdir='${prefix}/etc'
800 sharedstatedir='${prefix}/com'
801 localstatedir='${prefix}/var'
802 includedir='${prefix}/include'
803 oldincludedir='/usr/include'
804 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805 infodir='${datarootdir}/info'
806 htmldir='${docdir}'
807 dvidir='${docdir}'
808 pdfdir='${docdir}'
809 psdir='${docdir}'
810 libdir='${exec_prefix}/lib'
811 localedir='${datarootdir}/locale'
812 mandir='${datarootdir}/man'
813
814 ac_prev=
815 ac_dashdash=
816 for ac_option
817 do
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
820 eval $ac_prev=\$ac_option
821 ac_prev=
822 continue
823 fi
824
825 case $ac_option in
826 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 *) ac_optarg=yes ;;
828 esac
829
830 # Accept the important Cygnus configure options, so we can diagnose typos.
831
832 case $ac_dashdash$ac_option in
833 --)
834 ac_dashdash=yes ;;
835
836 -bindir | --bindir | --bindi | --bind | --bin | --bi)
837 ac_prev=bindir ;;
838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
839 bindir=$ac_optarg ;;
840
841 -build | --build | --buil | --bui | --bu)
842 ac_prev=build_alias ;;
843 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
844 build_alias=$ac_optarg ;;
845
846 -cache-file | --cache-file | --cache-fil | --cache-fi \
847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
848 ac_prev=cache_file ;;
849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
851 cache_file=$ac_optarg ;;
852
853 --config-cache | -C)
854 cache_file=config.cache ;;
855
856 -datadir | --datadir | --datadi | --datad)
857 ac_prev=datadir ;;
858 -datadir=* | --datadir=* | --datadi=* | --datad=*)
859 datadir=$ac_optarg ;;
860
861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
862 | --dataroo | --dataro | --datar)
863 ac_prev=datarootdir ;;
864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
866 datarootdir=$ac_optarg ;;
867
868 -disable-* | --disable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
876 *"
877 "enable_$ac_useropt"
878 "*) ;;
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
881 esac
882 eval enable_$ac_useropt=no ;;
883
884 -docdir | --docdir | --docdi | --doc | --do)
885 ac_prev=docdir ;;
886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
887 docdir=$ac_optarg ;;
888
889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890 ac_prev=dvidir ;;
891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
892 dvidir=$ac_optarg ;;
893
894 -enable-* | --enable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=\$ac_optarg ;;
909
910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912 | --exec | --exe | --ex)
913 ac_prev=exec_prefix ;;
914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916 | --exec=* | --exe=* | --ex=*)
917 exec_prefix=$ac_optarg ;;
918
919 -gas | --gas | --ga | --g)
920 # Obsolete; use --with-gas.
921 with_gas=yes ;;
922
923 -help | --help | --hel | --he | -h)
924 ac_init_help=long ;;
925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926 ac_init_help=recursive ;;
927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928 ac_init_help=short ;;
929
930 -host | --host | --hos | --ho)
931 ac_prev=host_alias ;;
932 -host=* | --host=* | --hos=* | --ho=*)
933 host_alias=$ac_optarg ;;
934
935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 ac_prev=htmldir ;;
937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 | --ht=*)
939 htmldir=$ac_optarg ;;
940
941 -includedir | --includedir | --includedi | --included | --include \
942 | --includ | --inclu | --incl | --inc)
943 ac_prev=includedir ;;
944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945 | --includ=* | --inclu=* | --incl=* | --inc=*)
946 includedir=$ac_optarg ;;
947
948 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 ac_prev=infodir ;;
950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951 infodir=$ac_optarg ;;
952
953 -libdir | --libdir | --libdi | --libd)
954 ac_prev=libdir ;;
955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
956 libdir=$ac_optarg ;;
957
958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959 | --libexe | --libex | --libe)
960 ac_prev=libexecdir ;;
961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962 | --libexe=* | --libex=* | --libe=*)
963 libexecdir=$ac_optarg ;;
964
965 -localedir | --localedir | --localedi | --localed | --locale)
966 ac_prev=localedir ;;
967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968 localedir=$ac_optarg ;;
969
970 -localstatedir | --localstatedir | --localstatedi | --localstated \
971 | --localstate | --localstat | --localsta | --localst | --locals)
972 ac_prev=localstatedir ;;
973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
975 localstatedir=$ac_optarg ;;
976
977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 ac_prev=mandir ;;
979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980 mandir=$ac_optarg ;;
981
982 -nfp | --nfp | --nf)
983 # Obsolete; use --without-fp.
984 with_fp=no ;;
985
986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987 | --no-cr | --no-c | -n)
988 no_create=yes ;;
989
990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 no_recursion=yes ;;
993
994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996 | --oldin | --oldi | --old | --ol | --o)
997 ac_prev=oldincludedir ;;
998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001 oldincludedir=$ac_optarg ;;
1002
1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 ac_prev=prefix ;;
1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006 prefix=$ac_optarg ;;
1007
1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009 | --program-pre | --program-pr | --program-p)
1010 ac_prev=program_prefix ;;
1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013 program_prefix=$ac_optarg ;;
1014
1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016 | --program-suf | --program-su | --program-s)
1017 ac_prev=program_suffix ;;
1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020 program_suffix=$ac_optarg ;;
1021
1022 -program-transform-name | --program-transform-name \
1023 | --program-transform-nam | --program-transform-na \
1024 | --program-transform-n | --program-transform- \
1025 | --program-transform | --program-transfor \
1026 | --program-transfo | --program-transf \
1027 | --program-trans | --program-tran \
1028 | --progr-tra | --program-tr | --program-t)
1029 ac_prev=program_transform_name ;;
1030 -program-transform-name=* | --program-transform-name=* \
1031 | --program-transform-nam=* | --program-transform-na=* \
1032 | --program-transform-n=* | --program-transform-=* \
1033 | --program-transform=* | --program-transfor=* \
1034 | --program-transfo=* | --program-transf=* \
1035 | --program-trans=* | --program-tran=* \
1036 | --progr-tra=* | --program-tr=* | --program-t=*)
1037 program_transform_name=$ac_optarg ;;
1038
1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 ac_prev=pdfdir ;;
1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042 pdfdir=$ac_optarg ;;
1043
1044 -psdir | --psdir | --psdi | --psd | --ps)
1045 ac_prev=psdir ;;
1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 psdir=$ac_optarg ;;
1048
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 silent=yes ;;
1052
1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 ac_prev=sbindir ;;
1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 | --sbi=* | --sb=*)
1057 sbindir=$ac_optarg ;;
1058
1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061 | --sharedst | --shareds | --shared | --share | --shar \
1062 | --sha | --sh)
1063 ac_prev=sharedstatedir ;;
1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 | --sha=* | --sh=*)
1068 sharedstatedir=$ac_optarg ;;
1069
1070 -site | --site | --sit)
1071 ac_prev=site ;;
1072 -site=* | --site=* | --sit=*)
1073 site=$ac_optarg ;;
1074
1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 ac_prev=srcdir ;;
1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1078 srcdir=$ac_optarg ;;
1079
1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081 | --syscon | --sysco | --sysc | --sys | --sy)
1082 ac_prev=sysconfdir ;;
1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1085 sysconfdir=$ac_optarg ;;
1086
1087 -target | --target | --targe | --targ | --tar | --ta | --t)
1088 ac_prev=target_alias ;;
1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1090 target_alias=$ac_optarg ;;
1091
1092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 verbose=yes ;;
1094
1095 -version | --version | --versio | --versi | --vers | -V)
1096 ac_init_version=: ;;
1097
1098 -with-* | --with-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107 "with_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=\$ac_optarg ;;
1113
1114 -without-* | --without-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=no ;;
1129
1130 --x)
1131 # Obsolete; use --with-x.
1132 with_x=yes ;;
1133
1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135 | --x-incl | --x-inc | --x-in | --x-i)
1136 ac_prev=x_includes ;;
1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139 x_includes=$ac_optarg ;;
1140
1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143 ac_prev=x_libraries ;;
1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146 x_libraries=$ac_optarg ;;
1147
1148 -*) as_fn_error "unrecognized option: \`$ac_option'
1149 Try \`$0 --help' for more information."
1150 ;;
1151
1152 *=*)
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 case $ac_envvar in #(
1156 '' | [0-9]* | *[!_$as_cr_alnum]* )
1157 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1158 esac
1159 eval $ac_envvar=\$ac_optarg
1160 export $ac_envvar ;;
1161
1162 *)
1163 # FIXME: should be removed in autoconf 3.0.
1164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168 ;;
1169
1170 esac
1171 done
1172
1173 if test -n "$ac_prev"; then
1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175 as_fn_error "missing argument to $ac_option"
1176 fi
1177
1178 if test -n "$ac_unrecognized_opts"; then
1179 case $enable_option_checking in
1180 no) ;;
1181 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1182 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1183 esac
1184 fi
1185
1186 # Check all directory arguments for consistency.
1187 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
1191 do
1192 eval ac_val=\$$ac_var
1193 # Remove trailing slashes.
1194 case $ac_val in
1195 */ )
1196 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1197 eval $ac_var=\$ac_val;;
1198 esac
1199 # Be sure to have absolute directory names.
1200 case $ac_val in
1201 [\\/$]* | ?:[\\/]* ) continue;;
1202 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1203 esac
1204 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1205 done
1206
1207 # There might be people who depend on the old broken behavior: `$host'
1208 # used to hold the argument of --host etc.
1209 # FIXME: To remove some day.
1210 build=$build_alias
1211 host=$host_alias
1212 target=$target_alias
1213
1214 # FIXME: To remove some day.
1215 if test "x$host_alias" != x; then
1216 if test "x$build_alias" = x; then
1217 cross_compiling=maybe
1218 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1219 If a cross compiler is detected then cross compile mode will be used." >&2
1220 elif test "x$build_alias" != "x$host_alias"; then
1221 cross_compiling=yes
1222 fi
1223 fi
1224
1225 ac_tool_prefix=
1226 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227
1228 test "$silent" = yes && exec 6>/dev/null
1229
1230
1231 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1232 ac_ls_di=`ls -di .` &&
1233 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1234 as_fn_error "working directory cannot be determined"
1235 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1236 as_fn_error "pwd does not report name of working directory"
1237
1238
1239 # Find the source files, if location was not specified.
1240 if test -z "$srcdir"; then
1241 ac_srcdir_defaulted=yes
1242 # Try the directory containing this script, then the parent directory.
1243 ac_confdir=`$as_dirname -- "$as_myself" ||
1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245 X"$as_myself" : 'X\(//\)[^/]' \| \
1246 X"$as_myself" : 'X\(//\)$' \| \
1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248 $as_echo X"$as_myself" |
1249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\/\)[^/].*/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\/\)$/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\).*/{
1262 s//\1/
1263 q
1264 }
1265 s/.*/./; q'`
1266 srcdir=$ac_confdir
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 srcdir=..
1269 fi
1270 else
1271 ac_srcdir_defaulted=no
1272 fi
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1275 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1276 fi
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 ac_abs_confdir=`(
1279 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1280 pwd)`
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 srcdir=.
1284 fi
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1288 case $srcdir in
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 esac
1291 for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 done
1297
1298 #
1299 # Report the --help message.
1300 #
1301 if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1304 cat <<_ACEOF
1305 \`configure' configures libucimf 2.3.8 to adapt to many kinds of systems.
1306
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE. See below for descriptions of some of the useful variables.
1311
1312 Defaults for the options are specified in brackets.
1313
1314 Configuration:
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324
1325 Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
1327 [$ac_default_prefix]
1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329 [PREFIX]
1330
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1335
1336 For better control, use the options below.
1337
1338 Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/libucimf]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
1358 _ACEOF
1359
1360 cat <<\_ACEOF
1361
1362 Program names:
1363 --program-prefix=PREFIX prepend PREFIX to installed program names
1364 --program-suffix=SUFFIX append SUFFIX to installed program names
1365 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1366
1367 System types:
1368 --build=BUILD configure for building on BUILD [guessed]
1369 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1370 _ACEOF
1371 fi
1372
1373 if test -n "$ac_init_help"; then
1374 case $ac_init_help in
1375 short | recursive ) echo "Configuration of libucimf 2.3.8:";;
1376 esac
1377 cat <<\_ACEOF
1378
1379 Optional Features:
1380 --disable-option-checking ignore unrecognized --enable/--with options
1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1383 --disable-dependency-tracking speeds up one-time build
1384 --enable-dependency-tracking do not reject slow dependency extractors
1385 --enable-shared[=PKGS] build shared libraries [default=yes]
1386 --enable-static[=PKGS] build static libraries [default=yes]
1387 --enable-fast-install[=PKGS]
1388 optimize for fast installation [default=yes]
1389 --disable-libtool-lock avoid locking (might break parallel builds)
1390 --enable-debug enable Debug (default: no)
1391
1392 Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-pic try to use only PIC/non-PIC objects [default=use
1396 both]
1397 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1398
1399 Some influential environment variables:
1400 CXX C++ compiler command
1401 CXXFLAGS C++ compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 CC C compiler command
1408 CFLAGS C compiler flags
1409 CPP C preprocessor
1410 CXXCPP C++ preprocessor
1411 PKG_CONFIG path to pkg-config utility
1412 PKG_CONFIG_PATH
1413 directories to add to pkg-config's search path
1414 PKG_CONFIG_LIBDIR
1415 path overriding pkg-config's built-in search path
1416 freetype2_CFLAGS
1417 C compiler flags for freetype2, overriding pkg-config
1418 freetype2_LIBS
1419 linker flags for freetype2, overriding pkg-config
1420 fontconfig_CFLAGS
1421 C compiler flags for fontconfig, overriding pkg-config
1422 fontconfig_LIBS
1423 linker flags for fontconfig, overriding pkg-config
1424
1425 Use these variables to override the choices made by `configure' or to help
1426 it to find libraries and programs with nonstandard names/locations.
1427
1428 Report bugs to <[email protected]>.
1429 _ACEOF
1430 ac_status=$?
1431 fi
1432
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 continue
1439 ac_builddir=.
1440
1441 case "$ac_dir" in
1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *)
1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450 esac ;;
1451 esac
1452 ac_abs_top_builddir=$ac_pwd
1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir=$ac_top_build_prefix
1456
1457 case $srcdir in
1458 .) # We are building in place.
1459 ac_srcdir=.
1460 ac_top_srcdir=$ac_top_builddir_sub
1461 ac_abs_top_srcdir=$ac_pwd ;;
1462 [\\/]* | ?:[\\/]* ) # Absolute name.
1463 ac_srcdir=$srcdir$ac_dir_suffix;
1464 ac_top_srcdir=$srcdir
1465 ac_abs_top_srcdir=$srcdir ;;
1466 *) # Relative name.
1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470 esac
1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472
1473 cd "$ac_dir" || { ac_status=$?; continue; }
1474 # Check for guested configure.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure" --help=recursive
1481 else
1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483 fi || ac_status=$?
1484 cd "$ac_pwd" || { ac_status=$?; break; }
1485 done
1486 fi
1487
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1490 cat <<\_ACEOF
1491 libucimf configure 2.3.8
1492 generated by GNU Autoconf 2.65
1493
1494 Copyright (C) 2009 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1497 _ACEOF
1498 exit
1499 fi
1500
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1504
1505 # ac_fn_cxx_try_compile LINENO
1506 # ----------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_cxx_try_compile ()
1509 {
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 rm -f conftest.$ac_objext
1512 if { { ac_try="$ac_compile"
1513 case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1520 ac_status=$?
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1525 fi
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_cxx_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.$ac_objext; then :
1531 ac_retval=0
1532 else
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1535
1536 ac_retval=1
1537 fi
1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 as_fn_set_status $ac_retval
1540
1541 } # ac_fn_cxx_try_compile
1542
1543 # ac_fn_c_try_compile LINENO
1544 # --------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_compile ()
1547 {
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1563 fi
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1569 ac_retval=0
1570 else
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1573
1574 ac_retval=1
1575 fi
1576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1577 as_fn_set_status $ac_retval
1578
1579 } # ac_fn_c_try_compile
1580
1581 # ac_fn_c_try_cpp LINENO
1582 # ----------------------
1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_cpp ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if { { ac_try="$ac_cpp conftest.$ac_ext"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } >/dev/null && {
1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 }; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=1
1612 fi
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_cpp
1617
1618 # ac_fn_c_try_link LINENO
1619 # -----------------------
1620 # Try to link conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_link ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext conftest$ac_exeext
1625 if { { ac_try="$ac_link"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_link") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest$ac_exeext && {
1644 test "$cross_compiling" = yes ||
1645 $as_test_x conftest$ac_exeext
1646 }; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1
1653 fi
1654 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1655 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1656 # interfere with the next link command; also delete a directory that is
1657 # left behind by Apple's compiler. We do this before executing the actions.
1658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_link
1663
1664 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists and can be compiled using the include files in
1667 # INCLUDES, setting the cache variable VAR accordingly.
1668 ac_fn_c_check_header_compile ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1674 $as_echo_n "(cached) " >&6
1675 else
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h. */
1678 $4
1679 #include <$2>
1680 _ACEOF
1681 if ac_fn_c_try_compile "$LINENO"; then :
1682 eval "$3=yes"
1683 else
1684 eval "$3=no"
1685 fi
1686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687 fi
1688 eval ac_res=\$$3
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692
1693 } # ac_fn_c_check_header_compile
1694
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1699 ac_fn_c_try_run ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=$ac_status
1730 fi
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_run
1736
1737 # ac_fn_c_check_func LINENO FUNC VAR
1738 # ----------------------------------
1739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1740 ac_fn_c_check_func ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1752 #define $2 innocuous_$2
1753
1754 /* System header to define __stub macros and hopefully few prototypes,
1755 which can conflict with char $2 (); below.
1756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1757 <limits.h> exists even on freestanding compilers. */
1758
1759 #ifdef __STDC__
1760 # include <limits.h>
1761 #else
1762 # include <assert.h>
1763 #endif
1764
1765 #undef $2
1766
1767 /* Override any GCC internal prototype to avoid an error.
1768 Use char because int might match the return type of a GCC
1769 builtin and then its argument prototype would still apply. */
1770 #ifdef __cplusplus
1771 extern "C"
1772 #endif
1773 char $2 ();
1774 /* The GNU C library defines this for functions which it implements
1775 to always fail with ENOSYS. Some functions are actually named
1776 something starting with __ and the normal name is an alias. */
1777 #if defined __stub_$2 || defined __stub___$2
1778 choke me
1779 #endif
1780
1781 int
1782 main ()
1783 {
1784 return $2 ();
1785 ;
1786 return 0;
1787 }
1788 _ACEOF
1789 if ac_fn_c_try_link "$LINENO"; then :
1790 eval "$3=yes"
1791 else
1792 eval "$3=no"
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext \
1795 conftest$ac_exeext conftest.$ac_ext
1796 fi
1797 eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801
1802 } # ac_fn_c_check_func
1803
1804 # ac_fn_cxx_try_cpp LINENO
1805 # ------------------------
1806 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_cpp ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_cpp conftest.$ac_ext"
1811 case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } >/dev/null && {
1826 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1827 test ! -s conftest.err
1828 }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835 fi
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837 as_fn_set_status $ac_retval
1838
1839 } # ac_fn_cxx_try_cpp
1840
1841 # ac_fn_cxx_try_link LINENO
1842 # -------------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_link ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest$ac_exeext
1848 if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest$ac_exeext && {
1867 test "$cross_compiling" = yes ||
1868 $as_test_x conftest$ac_exeext
1869 }; then :
1870 ac_retval=0
1871 else
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=1
1876 fi
1877 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879 # interfere with the next link command; also delete a directory that is
1880 # left behind by Apple's compiler. We do this before executing the actions.
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 as_fn_set_status $ac_retval
1884
1885 } # ac_fn_cxx_try_link
1886
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1891 # accordingly.
1892 ac_fn_c_check_header_mongrel ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 $as_echo_n "(cached) " >&6
1900 fi
1901 eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 else
1905 # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 $4
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_header_compiler=yes
1915 else
1916 ac_header_compiler=no
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1921
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_cpp "$LINENO"; then :
1930 ac_header_preproc=yes
1931 else
1932 ac_header_preproc=no
1933 fi
1934 rm -f conftest.err conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1937
1938 # So? What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940 yes:no: )
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 ;;
1946 no:yes:* )
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 ( cat <<\_ASBOX
1958 ## ------------------------------------- ##
1959 ## Report this to [email protected] ##
1960 ## ------------------------------------- ##
1961 _ASBOX
1962 ) | sed "s/^/$as_me: WARNING: /" >&2
1963 ;;
1964 esac
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1968 $as_echo_n "(cached) " >&6
1969 else
1970 eval "$3=\$ac_header_compiler"
1971 fi
1972 eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 fi
1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977
1978 } # ac_fn_c_check_header_mongrel
1979
1980 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1981 # -------------------------------------------
1982 # Tests whether TYPE exists after having included INCLUDES, setting cache
1983 # variable VAR accordingly.
1984 ac_fn_c_check_type ()
1985 {
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 eval "$3=no"
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 $4
1996 int
1997 main ()
1998 {
1999 if (sizeof ($2))
2000 return 0;
2001 ;
2002 return 0;
2003 }
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 $4
2009 int
2010 main ()
2011 {
2012 if (sizeof (($2)))
2013 return 0;
2014 ;
2015 return 0;
2016 }
2017 _ACEOF
2018 if ac_fn_c_try_compile "$LINENO"; then :
2019
2020 else
2021 eval "$3=yes"
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 fi
2027 eval ac_res=\$$3
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031
2032 } # ac_fn_c_check_type
2033 cat >config.log <<_ACEOF
2034 This file contains any messages produced by compilers while
2035 running configure, to aid debugging if configure makes a mistake.
2036
2037 It was created by libucimf $as_me 2.3.8, which was
2038 generated by GNU Autoconf 2.65. Invocation command line was
2039
2040 $ $0 $@
2041
2042 _ACEOF
2043 exec 5>>config.log
2044 {
2045 cat <<_ASUNAME
2046 ## --------- ##
2047 ## Platform. ##
2048 ## --------- ##
2049
2050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2055
2056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2057 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2058
2059 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2060 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2062 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2063 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2064 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2065 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2066
2067 _ASUNAME
2068
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2071 do
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 $as_echo "PATH: $as_dir"
2075 done
2076 IFS=$as_save_IFS
2077
2078 } >&5
2079
2080 cat >&5 <<_ACEOF
2081
2082
2083 ## ----------- ##
2084 ## Core tests. ##
2085 ## ----------- ##
2086
2087 _ACEOF
2088
2089
2090 # Keep a trace of the command line.
2091 # Strip out --no-create and --no-recursion so they do not pile up.
2092 # Strip out --silent because we don't want to record it for future runs.
2093 # Also quote any args containing shell meta-characters.
2094 # Make two passes to allow for proper duplicate-argument suppression.
2095 ac_configure_args=
2096 ac_configure_args0=
2097 ac_configure_args1=
2098 ac_must_keep_next=false
2099 for ac_pass in 1 2
2100 do
2101 for ac_arg
2102 do
2103 case $ac_arg in
2104 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2106 | -silent | --silent | --silen | --sile | --sil)
2107 continue ;;
2108 *\'*)
2109 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2110 esac
2111 case $ac_pass in
2112 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2113 2)
2114 as_fn_append ac_configure_args1 " '$ac_arg'"
2115 if test $ac_must_keep_next = true; then
2116 ac_must_keep_next=false # Got value, back to normal.
2117 else
2118 case $ac_arg in
2119 *=* | --config-cache | -C | -disable-* | --disable-* \
2120 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2121 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2122 | -with-* | --with-* | -without-* | --without-* | --x)
2123 case "$ac_configure_args0 " in
2124 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2125 esac
2126 ;;
2127 -* ) ac_must_keep_next=true ;;
2128 esac
2129 fi
2130 as_fn_append ac_configure_args " '$ac_arg'"
2131 ;;
2132 esac
2133 done
2134 done
2135 { ac_configure_args0=; unset ac_configure_args0;}
2136 { ac_configure_args1=; unset ac_configure_args1;}
2137
2138 # When interrupted or exit'd, cleanup temporary files, and complete
2139 # config.log. We remove comments because anyway the quotes in there
2140 # would cause problems or look ugly.
2141 # WARNING: Use '\'' to represent an apostrophe within the trap.
2142 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2143 trap 'exit_status=$?
2144 # Save into config.log some information that might help in debugging.
2145 {
2146 echo
2147
2148 cat <<\_ASBOX
2149 ## ---------------- ##
2150 ## Cache variables. ##
2151 ## ---------------- ##
2152 _ASBOX
2153 echo
2154 # The following way of writing the cache mishandles newlines in values,
2155 (
2156 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2157 eval ac_val=\$$ac_var
2158 case $ac_val in #(
2159 *${as_nl}*)
2160 case $ac_var in #(
2161 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2162 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2163 esac
2164 case $ac_var in #(
2165 _ | IFS | as_nl) ;; #(
2166 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2167 *) { eval $ac_var=; unset $ac_var;} ;;
2168 esac ;;
2169 esac
2170 done
2171 (set) 2>&1 |
2172 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2173 *${as_nl}ac_space=\ *)
2174 sed -n \
2175 "s/'\''/'\''\\\\'\'''\''/g;
2176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2177 ;; #(
2178 *)
2179 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2180 ;;
2181 esac |
2182 sort
2183 )
2184 echo
2185
2186 cat <<\_ASBOX
2187 ## ----------------- ##
2188 ## Output variables. ##
2189 ## ----------------- ##
2190 _ASBOX
2191 echo
2192 for ac_var in $ac_subst_vars
2193 do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2201
2202 if test -n "$ac_subst_files"; then
2203 cat <<\_ASBOX
2204 ## ------------------- ##
2205 ## File substitutions. ##
2206 ## ------------------- ##
2207 _ASBOX
2208 echo
2209 for ac_var in $ac_subst_files
2210 do
2211 eval ac_val=\$$ac_var
2212 case $ac_val in
2213 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214 esac
2215 $as_echo "$ac_var='\''$ac_val'\''"
2216 done | sort
2217 echo
2218 fi
2219
2220 if test -s confdefs.h; then
2221 cat <<\_ASBOX
2222 ## ----------- ##
2223 ## confdefs.h. ##
2224 ## ----------- ##
2225 _ASBOX
2226 echo
2227 cat confdefs.h
2228 echo
2229 fi
2230 test "$ac_signal" != 0 &&
2231 $as_echo "$as_me: caught signal $ac_signal"
2232 $as_echo "$as_me: exit $exit_status"
2233 } >&5
2234 rm -f core *.core core.conftest.* &&
2235 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2236 exit $exit_status
2237 ' 0
2238 for ac_signal in 1 2 13 15; do
2239 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2240 done
2241 ac_signal=0
2242
2243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2244 rm -f -r conftest* confdefs.h
2245
2246 $as_echo "/* confdefs.h */" > confdefs.h
2247
2248 # Predefined preprocessor variables.
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_NAME "$PACKAGE_NAME"
2252 _ACEOF
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_STRING "$PACKAGE_STRING"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_URL "$PACKAGE_URL"
2272 _ACEOF
2273
2274
2275 # Let the site file select an alternate cache file if it wants to.
2276 # Prefer an explicitly selected file to automatically selected ones.
2277 ac_site_file1=NONE
2278 ac_site_file2=NONE
2279 if test -n "$CONFIG_SITE"; then
2280 ac_site_file1=$CONFIG_SITE
2281 elif test "x$prefix" != xNONE; then
2282 ac_site_file1=$prefix/share/config.site
2283 ac_site_file2=$prefix/etc/config.site
2284 else
2285 ac_site_file1=$ac_default_prefix/share/config.site
2286 ac_site_file2=$ac_default_prefix/etc/config.site
2287 fi
2288 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2289 do
2290 test "x$ac_site_file" = xNONE && continue
2291 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2293 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2294 sed 's/^/| /' "$ac_site_file" >&5
2295 . "$ac_site_file"
2296 fi
2297 done
2298
2299 if test -r "$cache_file"; then
2300 # Some versions of bash will fail to source /dev/null (special files
2301 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2302 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2304 $as_echo "$as_me: loading cache $cache_file" >&6;}
2305 case $cache_file in
2306 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2307 *) . "./$cache_file";;
2308 esac
2309 fi
2310 else
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2312 $as_echo "$as_me: creating cache $cache_file" >&6;}
2313 >$cache_file
2314 fi
2315
2316 as_fn_append ac_header_list " stdlib.h"
2317 as_fn_append ac_header_list " unistd.h"
2318 as_fn_append ac_header_list " sys/param.h"
2319 # Check that the precious variables saved in the cache have kept the same
2320 # value.
2321 ac_cache_corrupted=false
2322 for ac_var in $ac_precious_vars; do
2323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2324 eval ac_new_set=\$ac_env_${ac_var}_set
2325 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2326 eval ac_new_val=\$ac_env_${ac_var}_value
2327 case $ac_old_set,$ac_new_set in
2328 set,)
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2330 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2331 ac_cache_corrupted=: ;;
2332 ,set)
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2334 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2335 ac_cache_corrupted=: ;;
2336 ,);;
2337 *)
2338 if test "x$ac_old_val" != "x$ac_new_val"; then
2339 # differences in whitespace do not lead to failure.
2340 ac_old_val_w=`echo x $ac_old_val`
2341 ac_new_val_w=`echo x $ac_new_val`
2342 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2344 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2345 ac_cache_corrupted=:
2346 else
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2348 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2349 eval $ac_var=\$ac_old_val
2350 fi
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2352 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2354 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2355 fi;;
2356 esac
2357 # Pass precious variables to config.status.
2358 if test "$ac_new_set" = set; then
2359 case $ac_new_val in
2360 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2361 *) ac_arg=$ac_var=$ac_new_val ;;
2362 esac
2363 case " $ac_configure_args " in
2364 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2365 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2366 esac
2367 fi
2368 done
2369 if $ac_cache_corrupted; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2373 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2374 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2375 fi
2376 ## -------------------- ##
2377 ## Main body of script. ##
2378 ## -------------------- ##
2379
2380 ac_ext=c
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385
2386
2387 am__api_version='1.11'
2388
2389 ac_aux_dir=
2390 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2391 for ac_t in install-sh install.sh shtool; do
2392 if test -f "$ac_dir/$ac_t"; then
2393 ac_aux_dir=$ac_dir
2394 ac_install_sh="$ac_aux_dir/$ac_t -c"
2395 break 2
2396 fi
2397 done
2398 done
2399 if test -z "$ac_aux_dir"; then
2400 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2401 fi
2402
2403 # These three variables are undocumented and unsupported,
2404 # and are intended to be withdrawn in a future Autoconf release.
2405 # They can cause serious problems if a builder's source tree is in a directory
2406 # whose full name contains unusual characters.
2407 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2408 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2409 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2410
2411
2412 # Find a good install program. We prefer a C program (faster),
2413 # so one script is as good as another. But avoid the broken or
2414 # incompatible versions:
2415 # SysV /etc/install, /usr/sbin/install
2416 # SunOS /usr/etc/install
2417 # IRIX /sbin/install
2418 # AIX /bin/install
2419 # AmigaOS /C/install, which installs bootblocks on floppy discs
2420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2423 # OS/2's system install, which has a completely different semantic
2424 # ./install, which can be erroneously created by make from ./install.sh.
2425 # Reject install programs that cannot install multiple files.
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2427 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2428 if test -z "$INSTALL"; then
2429 if test "${ac_cv_path_install+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 # Account for people who put trailing slashes in PATH elements.
2438 case $as_dir/ in #((
2439 ./ | .// | /[cC]/* | \
2440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2441 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2442 /usr/ucb/* ) ;;
2443 *)
2444 # OSF1 and SCO ODT 3.0 have their own names for install.
2445 # Don't use installbsd from OSF since it installs stuff as root
2446 # by default.
2447 for ac_prog in ginstall scoinst install; do
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2450 if test $ac_prog = install &&
2451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452 # AIX install. It has an incompatible calling convention.
2453 :
2454 elif test $ac_prog = install &&
2455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456 # program-specific install script used by HP pwplus--don't use.
2457 :
2458 else
2459 rm -rf conftest.one conftest.two conftest.dir
2460 echo one > conftest.one
2461 echo two > conftest.two
2462 mkdir conftest.dir
2463 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2464 test -s conftest.one && test -s conftest.two &&
2465 test -s conftest.dir/conftest.one &&
2466 test -s conftest.dir/conftest.two
2467 then
2468 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2469 break 3
2470 fi
2471 fi
2472 fi
2473 done
2474 done
2475 ;;
2476 esac
2477
2478 done
2479 IFS=$as_save_IFS
2480
2481 rm -rf conftest.one conftest.two conftest.dir
2482
2483 fi
2484 if test "${ac_cv_path_install+set}" = set; then
2485 INSTALL=$ac_cv_path_install
2486 else
2487 # As a last resort, use the slow shell script. Don't cache a
2488 # value for INSTALL within a source directory, because that will
2489 # break other packages using the cache if that directory is
2490 # removed, or if the value is a relative name.
2491 INSTALL=$ac_install_sh
2492 fi
2493 fi
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2495 $as_echo "$INSTALL" >&6; }
2496
2497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2498 # It thinks the first close brace ends the variable substitution.
2499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2500
2501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2502
2503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2504
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2506 $as_echo_n "checking whether build environment is sane... " >&6; }
2507 # Just in case
2508 sleep 1
2509 echo timestamp > conftest.file
2510 # Reject unsafe characters in $srcdir or the absolute working directory
2511 # name. Accept space and tab only in the latter.
2512 am_lf='
2513 '
2514 case `pwd` in
2515 *[\\\"\#\$\&\'\`$am_lf]*)
2516 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2517 esac
2518 case $srcdir in
2519 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2520 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2521 esac
2522
2523 # Do `set' in a subshell so we don't clobber the current shell's
2524 # arguments. Must try -L first in case configure is actually a
2525 # symlink; some systems play weird games with the mod time of symlinks
2526 # (eg FreeBSD returns the mod time of the symlink's containing
2527 # directory).
2528 if (
2529 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2530 if test "$*" = "X"; then
2531 # -L didn't work.
2532 set X `ls -t "$srcdir/configure" conftest.file`
2533 fi
2534 rm -f conftest.file
2535 if test "$*" != "X $srcdir/configure conftest.file" \
2536 && test "$*" != "X conftest.file $srcdir/configure"; then
2537
2538 # If neither matched, then we have a broken ls. This can happen
2539 # if, for instance, CONFIG_SHELL is bash and it inherits a
2540 # broken ls alias from the environment. This has actually
2541 # happened. Such a system could not be considered "sane".
2542 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2543 alias in your environment" "$LINENO" 5
2544 fi
2545
2546 test "$2" = conftest.file
2547 )
2548 then
2549 # Ok.
2550 :
2551 else
2552 as_fn_error "newly created file is older than distributed files!
2553 Check your system clock" "$LINENO" 5
2554 fi
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2556 $as_echo "yes" >&6; }
2557 test "$program_prefix" != NONE &&
2558 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2559 # Use a double $ so make ignores it.
2560 test "$program_suffix" != NONE &&
2561 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2562 # Double any \ or $.
2563 # By default was `s,x,x', remove it if useless.
2564 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2565 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2566
2567 # expand $ac_aux_dir to an absolute path
2568 am_aux_dir=`cd $ac_aux_dir && pwd`
2569
2570 if test x"${MISSING+set}" != xset; then
2571 case $am_aux_dir in
2572 *\ * | *\ *)
2573 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2574 *)
2575 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2576 esac
2577 fi
2578 # Use eval to expand $SHELL
2579 if eval "$MISSING --run true"; then
2580 am_missing_run="$MISSING --run "
2581 else
2582 am_missing_run=
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2584 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2585 fi
2586
2587 if test x"${install_sh}" != xset; then
2588 case $am_aux_dir in
2589 *\ * | *\ *)
2590 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2591 *)
2592 install_sh="\${SHELL} $am_aux_dir/install-sh"
2593 esac
2594 fi
2595
2596 # Installed binaries are usually stripped using `strip' when the user
2597 # run `make install-strip'. However `strip' might not be the right
2598 # tool to use in cross-compilation environments, therefore Automake
2599 # will honor the `STRIP' environment variable to overrule this program.
2600 if test "$cross_compiling" != no; then
2601 if test -n "$ac_tool_prefix"; then
2602 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2603 set dummy ${ac_tool_prefix}strip; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_STRIP+set}" = set; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 if test -n "$STRIP"; then
2610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 STRIP=$ac_cv_prog_STRIP
2630 if test -n "$STRIP"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2632 $as_echo "$STRIP" >&6; }
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638
2639 fi
2640 if test -z "$ac_cv_prog_STRIP"; then
2641 ac_ct_STRIP=$STRIP
2642 # Extract the first word of "strip", so it can be a program name with args.
2643 set dummy strip; ac_word=$2
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 if test -n "$ac_ct_STRIP"; then
2650 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_ac_ct_STRIP="strip"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2662 fi
2663 done
2664 done
2665 IFS=$as_save_IFS
2666
2667 fi
2668 fi
2669 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2670 if test -n "$ac_ct_STRIP"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2672 $as_echo "$ac_ct_STRIP" >&6; }
2673 else
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675 $as_echo "no" >&6; }
2676 fi
2677
2678 if test "x$ac_ct_STRIP" = x; then
2679 STRIP=":"
2680 else
2681 case $cross_compiling:$ac_tool_warned in
2682 yes:)
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685 ac_tool_warned=yes ;;
2686 esac
2687 STRIP=$ac_ct_STRIP
2688 fi
2689 else
2690 STRIP="$ac_cv_prog_STRIP"
2691 fi
2692
2693 fi
2694 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2695
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2697 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2698 if test -z "$MKDIR_P"; then
2699 if test "${ac_cv_path_mkdir+set}" = set; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2704 do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_prog in mkdir gmkdir; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2710 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2711 'mkdir (GNU coreutils) '* | \
2712 'mkdir (coreutils) '* | \
2713 'mkdir (fileutils) '4.1*)
2714 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2715 break 3;;
2716 esac
2717 done
2718 done
2719 done
2720 IFS=$as_save_IFS
2721
2722 fi
2723
2724 test -d ./--version && rmdir ./--version
2725 if test "${ac_cv_path_mkdir+set}" = set; then
2726 MKDIR_P="$ac_cv_path_mkdir -p"
2727 else
2728 # As a last resort, use the slow shell script. Don't cache a
2729 # value for MKDIR_P within a source directory, because that will
2730 # break other packages using the cache if that directory is
2731 # removed, or if the value is a relative name.
2732 MKDIR_P="$ac_install_sh -d"
2733 fi
2734 fi
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2736 $as_echo "$MKDIR_P" >&6; }
2737
2738 mkdir_p="$MKDIR_P"
2739 case $mkdir_p in
2740 [\\/$]* | ?:[\\/]*) ;;
2741 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2742 esac
2743
2744 for ac_prog in gawk mawk nawk awk
2745 do
2746 # Extract the first word of "$ac_prog", so it can be a program name with args.
2747 set dummy $ac_prog; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if test "${ac_cv_prog_AWK+set}" = set; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 if test -n "$AWK"; then
2754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_AWK="$ac_prog"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767 done
2768 done
2769 IFS=$as_save_IFS
2770
2771 fi
2772 fi
2773 AWK=$ac_cv_prog_AWK
2774 if test -n "$AWK"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2776 $as_echo "$AWK" >&6; }
2777 else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2780 fi
2781
2782
2783 test -n "$AWK" && break
2784 done
2785
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2787 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2788 set x ${MAKE-make}
2789 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2790 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 cat >conftest.make <<\_ACEOF
2794 SHELL = /bin/sh
2795 all:
2796 @echo '@@@%%%=$(MAKE)=@@@%%%'
2797 _ACEOF
2798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2799 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2800 *@@@%%%=?*=@@@%%%*)
2801 eval ac_cv_prog_make_${ac_make}_set=yes;;
2802 *)
2803 eval ac_cv_prog_make_${ac_make}_set=no;;
2804 esac
2805 rm -f conftest.make
2806 fi
2807 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2809 $as_echo "yes" >&6; }
2810 SET_MAKE=
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814 SET_MAKE="MAKE=${MAKE-make}"
2815 fi
2816
2817 rm -rf .tst 2>/dev/null
2818 mkdir .tst 2>/dev/null
2819 if test -d .tst; then
2820 am__leading_dot=.
2821 else
2822 am__leading_dot=_
2823 fi
2824 rmdir .tst 2>/dev/null
2825
2826 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2827 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2828 # is not polluted with repeated "-I."
2829 am__isrc=' -I$(srcdir)'
2830 # test to see if srcdir already configured
2831 if test -f $srcdir/config.status; then
2832 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2833 fi
2834 fi
2835
2836 # test whether we have cygpath
2837 if test -z "$CYGPATH_W"; then
2838 if (cygpath --version) >/dev/null 2>/dev/null; then
2839 CYGPATH_W='cygpath -w'
2840 else
2841 CYGPATH_W=echo
2842 fi
2843 fi
2844
2845
2846 # Define the identity of the package.
2847 PACKAGE='libucimf'
2848 VERSION='2.3.8'
2849
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE "$PACKAGE"
2853 _ACEOF
2854
2855
2856 cat >>confdefs.h <<_ACEOF
2857 #define VERSION "$VERSION"
2858 _ACEOF
2859
2860 # Some tools Automake needs.
2861
2862 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2863
2864
2865 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2866
2867
2868 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2869
2870
2871 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2872
2873
2874 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2875
2876 # We need awk for the "check" target. The system "awk" is bad on
2877 # some platforms.
2878 # Always define AMTAR for backward compatibility.
2879
2880 AMTAR=${AMTAR-"${am_missing_run}tar"}
2881
2882 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2883
2884
2885
2886
2887
2888 ac_config_headers="$ac_config_headers config.h"
2889
2890
2891 # Checks for programs.
2892 ac_ext=cpp
2893 ac_cpp='$CXXCPP $CPPFLAGS'
2894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2897 if test -z "$CXX"; then
2898 if test -n "$CCC"; then
2899 CXX=$CCC
2900 else
2901 if test -n "$ac_tool_prefix"; then
2902 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2903 do
2904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if test "${ac_cv_prog_CXX+set}" = set; then :
2909 $as_echo_n "(cached) " >&6
2910 else
2911 if test -n "$CXX"; then
2912 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2924 fi
2925 done
2926 done
2927 IFS=$as_save_IFS
2928
2929 fi
2930 fi
2931 CXX=$ac_cv_prog_CXX
2932 if test -n "$CXX"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2934 $as_echo "$CXX" >&6; }
2935 else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2938 fi
2939
2940
2941 test -n "$CXX" && break
2942 done
2943 fi
2944 if test -z "$CXX"; then
2945 ac_ct_CXX=$CXX
2946 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2947 do
2948 # Extract the first word of "$ac_prog", so it can be a program name with args.
2949 set dummy $ac_prog; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$ac_ct_CXX"; then
2956 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_ac_ct_CXX="$ac_prog"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969 done
2970 done
2971 IFS=$as_save_IFS
2972
2973 fi
2974 fi
2975 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2976 if test -n "$ac_ct_CXX"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2978 $as_echo "$ac_ct_CXX" >&6; }
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 fi
2983
2984
2985 test -n "$ac_ct_CXX" && break
2986 done
2987
2988 if test "x$ac_ct_CXX" = x; then
2989 CXX="g++"
2990 else
2991 case $cross_compiling:$ac_tool_warned in
2992 yes:)
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995 ac_tool_warned=yes ;;
2996 esac
2997 CXX=$ac_ct_CXX
2998 fi
2999 fi
3000
3001 fi
3002 fi
3003 # Provide some information about the compiler.
3004 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3005 set X $ac_compile
3006 ac_compiler=$2
3007 for ac_option in --version -v -V -qversion; do
3008 { { ac_try="$ac_compiler $ac_option >&5"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3014 $as_echo "$ac_try_echo"; } >&5
3015 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3016 ac_status=$?
3017 if test -s conftest.err; then
3018 sed '10a\
3019 ... rest of stderr output deleted ...
3020 10q' conftest.err >conftest.er1
3021 cat conftest.er1 >&5
3022 fi
3023 rm -f conftest.er1 conftest.err
3024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3025 test $ac_status = 0; }
3026 done
3027
3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029 /* end confdefs.h. */
3030
3031 int
3032 main ()
3033 {
3034
3035 ;
3036 return 0;
3037 }
3038 _ACEOF
3039 ac_clean_files_save=$ac_clean_files
3040 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3041 # Try to create an executable without -o first, disregard a.out.
3042 # It will help us diagnose broken compilers, and finding out an intuition
3043 # of exeext.
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3045 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3046 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3047
3048 # The possible output files:
3049 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3050
3051 ac_rmfiles=
3052 for ac_file in $ac_files
3053 do
3054 case $ac_file in
3055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3056 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3057 esac
3058 done
3059 rm -f $ac_rmfiles
3060
3061 if { { ac_try="$ac_link_default"
3062 case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067 $as_echo "$ac_try_echo"; } >&5
3068 (eval "$ac_link_default") 2>&5
3069 ac_status=$?
3070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071 test $ac_status = 0; }; then :
3072 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3073 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3074 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3075 # so that the user can short-circuit this test for compilers unknown to
3076 # Autoconf.
3077 for ac_file in $ac_files ''
3078 do
3079 test -f "$ac_file" || continue
3080 case $ac_file in
3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3082 ;;
3083 [ab].out )
3084 # We found the default executable, but exeext='' is most
3085 # certainly right.
3086 break;;
3087 *.* )
3088 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3089 then :; else
3090 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091 fi
3092 # We set ac_cv_exeext here because the later test for it is not
3093 # safe: cross compilers may not add the suffix if given an `-o'
3094 # argument, so we may need to know it at that point already.
3095 # Even if this section looks crufty: it has the advantage of
3096 # actually working.
3097 break;;
3098 * )
3099 break;;
3100 esac
3101 done
3102 test "$ac_cv_exeext" = no && ac_cv_exeext=
3103
3104 else
3105 ac_file=''
3106 fi
3107 if test -z "$ac_file"; then :
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3110 $as_echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3115 { as_fn_set_status 77
3116 as_fn_error "C++ compiler cannot create executables
3117 See \`config.log' for more details." "$LINENO" 5; }; }
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3120 $as_echo "yes" >&6; }
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3123 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3125 $as_echo "$ac_file" >&6; }
3126 ac_exeext=$ac_cv_exeext
3127
3128 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3129 ac_clean_files=$ac_clean_files_save
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3131 $as_echo_n "checking for suffix of executables... " >&6; }
3132 if { { ac_try="$ac_link"
3133 case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136 esac
3137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138 $as_echo "$ac_try_echo"; } >&5
3139 (eval "$ac_link") 2>&5
3140 ac_status=$?
3141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142 test $ac_status = 0; }; then :
3143 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3144 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3145 # work properly (i.e., refer to `conftest.exe'), while it won't with
3146 # `rm'.
3147 for ac_file in conftest.exe conftest conftest.*; do
3148 test -f "$ac_file" || continue
3149 case $ac_file in
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3151 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3152 break;;
3153 * ) break;;
3154 esac
3155 done
3156 else
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 as_fn_error "cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." "$LINENO" 5; }
3161 fi
3162 rm -f conftest conftest$ac_cv_exeext
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3164 $as_echo "$ac_cv_exeext" >&6; }
3165
3166 rm -f conftest.$ac_ext
3167 EXEEXT=$ac_cv_exeext
3168 ac_exeext=$EXEEXT
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3171 #include <stdio.h>
3172 int
3173 main ()
3174 {
3175 FILE *f = fopen ("conftest.out", "w");
3176 return ferror (f) || fclose (f) != 0;
3177
3178 ;
3179 return 0;
3180 }
3181 _ACEOF
3182 ac_clean_files="$ac_clean_files conftest.out"
3183 # Check that the compiler produces executables we can run. If not, either
3184 # the compiler is broken, or we cross compile.
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3186 $as_echo_n "checking whether we are cross compiling... " >&6; }
3187 if test "$cross_compiling" != yes; then
3188 { { ac_try="$ac_link"
3189 case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_link") 2>&5
3196 ac_status=$?
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }
3199 if { ac_try='./conftest$ac_cv_exeext'
3200 { { case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205 $as_echo "$ac_try_echo"; } >&5
3206 (eval "$ac_try") 2>&5
3207 ac_status=$?
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }; }; then
3210 cross_compiling=no
3211 else
3212 if test "$cross_compiling" = maybe; then
3213 cross_compiling=yes
3214 else
3215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error "cannot run C++ compiled programs.
3218 If you meant to cross compile, use \`--host'.
3219 See \`config.log' for more details." "$LINENO" 5; }
3220 fi
3221 fi
3222 fi
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3224 $as_echo "$cross_compiling" >&6; }
3225
3226 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3227 ac_clean_files=$ac_clean_files_save
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3229 $as_echo_n "checking for suffix of object files... " >&6; }
3230 if test "${ac_cv_objext+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3235
3236 int
3237 main ()
3238 {
3239
3240 ;
3241 return 0;
3242 }
3243 _ACEOF
3244 rm -f conftest.o conftest.obj
3245 if { { ac_try="$ac_compile"
3246 case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_compile") 2>&5
3253 ac_status=$?
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }; then :
3256 for ac_file in conftest.o conftest.obj conftest.*; do
3257 test -f "$ac_file" || continue;
3258 case $ac_file in
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3260 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3261 break;;
3262 esac
3263 done
3264 else
3265 $as_echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error "cannot compute suffix of object files: cannot compile
3271 See \`config.log' for more details." "$LINENO" 5; }
3272 fi
3273 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3274 fi
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3276 $as_echo "$ac_cv_objext" >&6; }
3277 OBJEXT=$ac_cv_objext
3278 ac_objext=$OBJEXT
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3280 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3281 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3286
3287 int
3288 main ()
3289 {
3290 #ifndef __GNUC__
3291 choke me
3292 #endif
3293
3294 ;
3295 return 0;
3296 }
3297 _ACEOF
3298 if ac_fn_cxx_try_compile "$LINENO"; then :
3299 ac_compiler_gnu=yes
3300 else
3301 ac_compiler_gnu=no
3302 fi
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3305
3306 fi
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3308 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3309 if test $ac_compiler_gnu = yes; then
3310 GXX=yes
3311 else
3312 GXX=
3313 fi
3314 ac_test_CXXFLAGS=${CXXFLAGS+set}
3315 ac_save_CXXFLAGS=$CXXFLAGS
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3317 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3318 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3319 $as_echo_n "(cached) " >&6
3320 else
3321 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3322 ac_cxx_werror_flag=yes
3323 ac_cv_prog_cxx_g=no
3324 CXXFLAGS="-g"
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3327
3328 int
3329 main ()
3330 {
3331
3332 ;
3333 return 0;
3334 }
3335 _ACEOF
3336 if ac_fn_cxx_try_compile "$LINENO"; then :
3337 ac_cv_prog_cxx_g=yes
3338 else
3339 CXXFLAGS=""
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3342
3343 int
3344 main ()
3345 {
3346
3347 ;
3348 return 0;
3349 }
3350 _ACEOF
3351 if ac_fn_cxx_try_compile "$LINENO"; then :
3352
3353 else
3354 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3355 CXXFLAGS="-g"
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358
3359 int
3360 main ()
3361 {
3362
3363 ;
3364 return 0;
3365 }
3366 _ACEOF
3367 if ac_fn_cxx_try_compile "$LINENO"; then :
3368 ac_cv_prog_cxx_g=yes
3369 fi
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 fi
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 fi
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3376 fi
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3378 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3379 if test "$ac_test_CXXFLAGS" = set; then
3380 CXXFLAGS=$ac_save_CXXFLAGS
3381 elif test $ac_cv_prog_cxx_g = yes; then
3382 if test "$GXX" = yes; then
3383 CXXFLAGS="-g -O2"
3384 else
3385 CXXFLAGS="-g"
3386 fi
3387 else
3388 if test "$GXX" = yes; then
3389 CXXFLAGS="-O2"
3390 else
3391 CXXFLAGS=
3392 fi
3393 fi
3394 ac_ext=c
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 DEPDIR="${am__leading_dot}deps"
3400
3401 ac_config_commands="$ac_config_commands depfiles"
3402
3403
3404 am_make=${MAKE-make}
3405 cat > confinc << 'END'
3406 am__doit:
3407 @echo this is the am__doit target
3408 .PHONY: am__doit
3409 END
3410 # If we don't find an include directive, just comment out the code.
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3412 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3413 am__include="#"
3414 am__quote=
3415 _am_result=none
3416 # First try GNU make style include.
3417 echo "include confinc" > confmf
3418 # Ignore all kinds of additional output from `make'.
3419 case `$am_make -s -f confmf 2> /dev/null` in #(
3420 *the\ am__doit\ target*)
3421 am__include=include
3422 am__quote=
3423 _am_result=GNU
3424 ;;
3425 esac
3426 # Now try BSD make style include.
3427 if test "$am__include" = "#"; then
3428 echo '.include "confinc"' > confmf
3429 case `$am_make -s -f confmf 2> /dev/null` in #(
3430 *the\ am__doit\ target*)
3431 am__include=.include
3432 am__quote="\""
3433 _am_result=BSD
3434 ;;
3435 esac
3436 fi
3437
3438
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3440 $as_echo "$_am_result" >&6; }
3441 rm -f confinc confmf
3442
3443 # Check whether --enable-dependency-tracking was given.
3444 if test "${enable_dependency_tracking+set}" = set; then :
3445 enableval=$enable_dependency_tracking;
3446 fi
3447
3448 if test "x$enable_dependency_tracking" != xno; then
3449 am_depcomp="$ac_aux_dir/depcomp"
3450 AMDEPBACKSLASH='\'
3451 fi
3452 if test "x$enable_dependency_tracking" != xno; then
3453 AMDEP_TRUE=
3454 AMDEP_FALSE='#'
3455 else
3456 AMDEP_TRUE='#'
3457 AMDEP_FALSE=
3458 fi
3459
3460
3461
3462 depcc="$CXX" am_compiler_list=
3463
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3465 $as_echo_n "checking dependency style of $depcc... " >&6; }
3466 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3470 # We make a subdir and do the tests there. Otherwise we can end up
3471 # making bogus files that we don't know about and never remove. For
3472 # instance it was reported that on HP-UX the gcc test will end up
3473 # making a dummy file named `D' -- because `-MD' means `put the output
3474 # in D'.
3475 mkdir conftest.dir
3476 # Copy depcomp to subdir because otherwise we won't find it if we're
3477 # using a relative directory.
3478 cp "$am_depcomp" conftest.dir
3479 cd conftest.dir
3480 # We will build objects and dependencies in a subdirectory because
3481 # it helps to detect inapplicable dependency modes. For instance
3482 # both Tru64's cc and ICC support -MD to output dependencies as a
3483 # side effect of compilation, but ICC will put the dependencies in
3484 # the current directory while Tru64 will put them in the object
3485 # directory.
3486 mkdir sub
3487
3488 am_cv_CXX_dependencies_compiler_type=none
3489 if test "$am_compiler_list" = ""; then
3490 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3491 fi
3492 am__universal=false
3493 case " $depcc " in #(
3494 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3495 esac
3496
3497 for depmode in $am_compiler_list; do
3498 # Setup a source with many dependencies, because some compilers
3499 # like to wrap large dependency lists on column 80 (with \), and
3500 # we should not choose a depcomp mode which is confused by this.
3501 #
3502 # We need to recreate these files for each test, as the compiler may
3503 # overwrite some of them when testing with obscure command lines.
3504 # This happens at least with the AIX C compiler.
3505 : > sub/conftest.c
3506 for i in 1 2 3 4 5 6; do
3507 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3508 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3509 # Solaris 8's {/usr,}/bin/sh.
3510 touch sub/conftst$i.h
3511 done
3512 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3513
3514 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3515 # mode. It turns out that the SunPro C++ compiler does not properly
3516 # handle `-M -o', and we need to detect this. Also, some Intel
3517 # versions had trouble with output in subdirs
3518 am__obj=sub/conftest.${OBJEXT-o}
3519 am__minus_obj="-o $am__obj"
3520 case $depmode in
3521 gcc)
3522 # This depmode causes a compiler race in universal mode.
3523 test "$am__universal" = false || continue
3524 ;;
3525 nosideeffect)
3526 # after this tag, mechanisms are not by side-effect, so they'll
3527 # only be used when explicitly requested
3528 if test "x$enable_dependency_tracking" = xyes; then
3529 continue
3530 else
3531 break
3532 fi
3533 ;;
3534 msvisualcpp | msvcmsys)
3535 # This compiler won't grok `-c -o', but also, the minuso test has
3536 # not run yet. These depmodes are late enough in the game, and
3537 # so weak that their functioning should not be impacted.
3538 am__obj=conftest.${OBJEXT-o}
3539 am__minus_obj=
3540 ;;
3541 none) break ;;
3542 esac
3543 if depmode=$depmode \
3544 source=sub/conftest.c object=$am__obj \
3545 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3546 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3547 >/dev/null 2>conftest.err &&
3548 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3549 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3550 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3551 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3552 # icc doesn't choke on unknown options, it will just issue warnings
3553 # or remarks (even with -Werror). So we grep stderr for any message
3554 # that says an option was ignored or not supported.
3555 # When given -MP, icc 7.0 and 7.1 complain thusly:
3556 # icc: Command line warning: ignoring option '-M'; no argument required
3557 # The diagnosis changed in icc 8.0:
3558 # icc: Command line remark: option '-MP' not supported
3559 if (grep 'ignoring option' conftest.err ||
3560 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3561 am_cv_CXX_dependencies_compiler_type=$depmode
3562 break
3563 fi
3564 fi
3565 done
3566
3567 cd ..
3568 rm -rf conftest.dir
3569 else
3570 am_cv_CXX_dependencies_compiler_type=none
3571 fi
3572
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3575 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3576 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3577
3578 if
3579 test "x$enable_dependency_tracking" != xno \
3580 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3581 am__fastdepCXX_TRUE=
3582 am__fastdepCXX_FALSE='#'
3583 else
3584 am__fastdepCXX_TRUE='#'
3585 am__fastdepCXX_FALSE=
3586 fi
3587
3588
3589 ac_ext=c
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594 if test -n "$ac_tool_prefix"; then
3595 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3596 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if test "${ac_cv_prog_CC+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 if test -n "$CC"; then
3603 ac_cv_prog_CC="$CC" # Let the user override the test.
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH
3607 do
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3612 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 break 2
3615 fi
3616 done
3617 done
3618 IFS=$as_save_IFS
3619
3620 fi
3621 fi
3622 CC=$ac_cv_prog_CC
3623 if test -n "$CC"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3625 $as_echo "$CC" >&6; }
3626 else
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3629 fi
3630
3631
3632 fi
3633 if test -z "$ac_cv_prog_CC"; then
3634 ac_ct_CC=$CC
3635 # Extract the first word of "gcc", so it can be a program name with args.
3636 set dummy gcc; ac_word=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 if test -n "$ac_ct_CC"; then
3643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3644 else
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652 ac_cv_prog_ac_ct_CC="gcc"
3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 break 2
3655 fi
3656 done
3657 done
3658 IFS=$as_save_IFS
3659
3660 fi
3661 fi
3662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3663 if test -n "$ac_ct_CC"; then
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3665 $as_echo "$ac_ct_CC" >&6; }
3666 else
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3669 fi
3670
3671 if test "x$ac_ct_CC" = x; then
3672 CC=""
3673 else
3674 case $cross_compiling:$ac_tool_warned in
3675 yes:)
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3678 ac_tool_warned=yes ;;
3679 esac
3680 CC=$ac_ct_CC
3681 fi
3682 else
3683 CC="$ac_cv_prog_CC"
3684 fi
3685
3686 if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3689 set dummy ${ac_tool_prefix}cc; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if test "${ac_cv_prog_CC+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 if test -n "$CC"; then
3696 ac_cv_prog_CC="$CC" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3700 do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_CC="${ac_tool_prefix}cc"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 break 2
3708 fi
3709 done
3710 done
3711 IFS=$as_save_IFS
3712
3713 fi
3714 fi
3715 CC=$ac_cv_prog_CC
3716 if test -n "$CC"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718 $as_echo "$CC" >&6; }
3719 else
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3722 fi
3723
3724
3725 fi
3726 fi
3727 if test -z "$CC"; then
3728 # Extract the first word of "cc", so it can be a program name with args.
3729 set dummy cc; ac_word=$2
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 $as_echo_n "checking for $ac_word... " >&6; }
3732 if test "${ac_cv_prog_CC+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 if test -n "$CC"; then
3736 ac_cv_prog_CC="$CC" # Let the user override the test.
3737 else
3738 ac_prog_rejected=no
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3747 ac_prog_rejected=yes
3748 continue
3749 fi
3750 ac_cv_prog_CC="cc"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754 done
3755 done
3756 IFS=$as_save_IFS
3757
3758 if test $ac_prog_rejected = yes; then
3759 # We found a bogon in the path, so make sure we never use it.
3760 set dummy $ac_cv_prog_CC
3761 shift
3762 if test $# != 0; then
3763 # We chose a different compiler from the bogus one.
3764 # However, it has the same basename, so the bogon will be chosen
3765 # first if we set CC to just the basename; use the full file name.
3766 shift
3767 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3768 fi
3769 fi
3770 fi
3771 fi
3772 CC=$ac_cv_prog_CC
3773 if test -n "$CC"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775 $as_echo "$CC" >&6; }
3776 else
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3779 fi
3780
3781
3782 fi
3783 if test -z "$CC"; then
3784 if test -n "$ac_tool_prefix"; then
3785 for ac_prog in cl.exe
3786 do
3787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$CC"; then
3795 ac_cv_prog_CC="$CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808 done
3809 done
3810 IFS=$as_save_IFS
3811
3812 fi
3813 fi
3814 CC=$ac_cv_prog_CC
3815 if test -n "$CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3817 $as_echo "$CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3821 fi
3822
3823
3824 test -n "$CC" && break
3825 done
3826 fi
3827 if test -z "$CC"; then
3828 ac_ct_CC=$CC
3829 for ac_prog in cl.exe
3830 do
3831 # Extract the first word of "$ac_prog", so it can be a program name with args.
3832 set dummy $ac_prog; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 if test -n "$ac_ct_CC"; then
3839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848 ac_cv_prog_ac_ct_CC="$ac_prog"
3849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 break 2
3851 fi
3852 done
3853 done
3854 IFS=$as_save_IFS
3855
3856 fi
3857 fi
3858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3859 if test -n "$ac_ct_CC"; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3861 $as_echo "$ac_ct_CC" >&6; }
3862 else
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3865 fi
3866
3867
3868 test -n "$ac_ct_CC" && break
3869 done
3870
3871 if test "x$ac_ct_CC" = x; then
3872 CC=""
3873 else
3874 case $cross_compiling:$ac_tool_warned in
3875 yes:)
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3878 ac_tool_warned=yes ;;
3879 esac
3880 CC=$ac_ct_CC
3881 fi
3882 fi
3883
3884 fi
3885
3886
3887 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error "no acceptable C compiler found in \$PATH
3890 See \`config.log' for more details." "$LINENO" 5; }
3891
3892 # Provide some information about the compiler.
3893 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3894 set X $ac_compile
3895 ac_compiler=$2
3896 for ac_option in --version -v -V -qversion; do
3897 { { ac_try="$ac_compiler $ac_option >&5"
3898 case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 $as_echo "$ac_try_echo"; } >&5
3904 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3905 ac_status=$?
3906 if test -s conftest.err; then
3907 sed '10a\
3908 ... rest of stderr output deleted ...
3909 10q' conftest.err >conftest.er1
3910 cat conftest.er1 >&5
3911 fi
3912 rm -f conftest.er1 conftest.err
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }
3915 done
3916
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3918 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3919 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3924
3925 int
3926 main ()
3927 {
3928 #ifndef __GNUC__
3929 choke me
3930 #endif
3931
3932 ;
3933 return 0;
3934 }
3935 _ACEOF
3936 if ac_fn_c_try_compile "$LINENO"; then :
3937 ac_compiler_gnu=yes
3938 else
3939 ac_compiler_gnu=no
3940 fi
3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3943
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3946 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3947 if test $ac_compiler_gnu = yes; then
3948 GCC=yes
3949 else
3950 GCC=
3951 fi
3952 ac_test_CFLAGS=${CFLAGS+set}
3953 ac_save_CFLAGS=$CFLAGS
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3955 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3956 if test "${ac_cv_prog_cc_g+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 ac_save_c_werror_flag=$ac_c_werror_flag
3960 ac_c_werror_flag=yes
3961 ac_cv_prog_cc_g=no
3962 CFLAGS="-g"
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3965
3966 int
3967 main ()
3968 {
3969
3970 ;
3971 return 0;
3972 }
3973 _ACEOF
3974 if ac_fn_c_try_compile "$LINENO"; then :
3975 ac_cv_prog_cc_g=yes
3976 else
3977 CFLAGS=""
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3980
3981 int
3982 main ()
3983 {
3984
3985 ;
3986 return 0;
3987 }
3988 _ACEOF
3989 if ac_fn_c_try_compile "$LINENO"; then :
3990
3991 else
3992 ac_c_werror_flag=$ac_save_c_werror_flag
3993 CFLAGS="-g"
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996
3997 int
3998 main ()
3999 {
4000
4001 ;
4002 return 0;
4003 }
4004 _ACEOF
4005 if ac_fn_c_try_compile "$LINENO"; then :
4006 ac_cv_prog_cc_g=yes
4007 fi
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 fi
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 fi
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 ac_c_werror_flag=$ac_save_c_werror_flag
4014 fi
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4016 $as_echo "$ac_cv_prog_cc_g" >&6; }
4017 if test "$ac_test_CFLAGS" = set; then
4018 CFLAGS=$ac_save_CFLAGS
4019 elif test $ac_cv_prog_cc_g = yes; then
4020 if test "$GCC" = yes; then
4021 CFLAGS="-g -O2"
4022 else
4023 CFLAGS="-g"
4024 fi
4025 else
4026 if test "$GCC" = yes; then
4027 CFLAGS="-O2"
4028 else
4029 CFLAGS=
4030 fi
4031 fi
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4033 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4034 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4035 $as_echo_n "(cached) " >&6
4036 else
4037 ac_cv_prog_cc_c89=no
4038 ac_save_CC=$CC
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041 #include <stdarg.h>
4042 #include <stdio.h>
4043 #include <sys/types.h>
4044 #include <sys/stat.h>
4045 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4046 struct buf { int x; };
4047 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4048 static char *e (p, i)
4049 char **p;
4050 int i;
4051 {
4052 return p[i];
4053 }
4054 static char *f (char * (*g) (char **, int), char **p, ...)
4055 {
4056 char *s;
4057 va_list v;
4058 va_start (v,p);
4059 s = g (p, va_arg (v,int));
4060 va_end (v);
4061 return s;
4062 }
4063
4064 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4065 function prototypes and stuff, but not '\xHH' hex character constants.
4066 These don't provoke an error unfortunately, instead are silently treated
4067 as 'x'. The following induces an error, until -std is added to get
4068 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4069 array size at least. It's necessary to write '\x00'==0 to get something
4070 that's true only with -std. */
4071 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4072
4073 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4074 inside strings and character constants. */
4075 #define FOO(x) 'x'
4076 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4077
4078 int test (int i, double x);
4079 struct s1 {int (*f) (int a);};
4080 struct s2 {int (*f) (double a);};
4081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4082 int argc;
4083 char **argv;
4084 int
4085 main ()
4086 {
4087 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4088 ;
4089 return 0;
4090 }
4091 _ACEOF
4092 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4093 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4094 do
4095 CC="$ac_save_CC $ac_arg"
4096 if ac_fn_c_try_compile "$LINENO"; then :
4097 ac_cv_prog_cc_c89=$ac_arg
4098 fi
4099 rm -f core conftest.err conftest.$ac_objext
4100 test "x$ac_cv_prog_cc_c89" != "xno" && break
4101 done
4102 rm -f conftest.$ac_ext
4103 CC=$ac_save_CC
4104
4105 fi
4106 # AC_CACHE_VAL
4107 case "x$ac_cv_prog_cc_c89" in
4108 x)
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4110 $as_echo "none needed" >&6; } ;;
4111 xno)
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4113 $as_echo "unsupported" >&6; } ;;
4114 *)
4115 CC="$CC $ac_cv_prog_cc_c89"
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4117 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4118 esac
4119 if test "x$ac_cv_prog_cc_c89" != xno; then :
4120
4121 fi
4122
4123 ac_ext=c
4124 ac_cpp='$CPP $CPPFLAGS'
4125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128
4129 depcc="$CC" am_compiler_list=
4130
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4132 $as_echo_n "checking dependency style of $depcc... " >&6; }
4133 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4137 # We make a subdir and do the tests there. Otherwise we can end up
4138 # making bogus files that we don't know about and never remove. For
4139 # instance it was reported that on HP-UX the gcc test will end up
4140 # making a dummy file named `D' -- because `-MD' means `put the output
4141 # in D'.
4142 mkdir conftest.dir
4143 # Copy depcomp to subdir because otherwise we won't find it if we're
4144 # using a relative directory.
4145 cp "$am_depcomp" conftest.dir
4146 cd conftest.dir
4147 # We will build objects and dependencies in a subdirectory because
4148 # it helps to detect inapplicable dependency modes. For instance
4149 # both Tru64's cc and ICC support -MD to output dependencies as a
4150 # side effect of compilation, but ICC will put the dependencies in
4151 # the current directory while Tru64 will put them in the object
4152 # directory.
4153 mkdir sub
4154
4155 am_cv_CC_dependencies_compiler_type=none
4156 if test "$am_compiler_list" = ""; then
4157 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4158 fi
4159 am__universal=false
4160 case " $depcc " in #(
4161 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4162 esac
4163
4164 for depmode in $am_compiler_list; do
4165 # Setup a source with many dependencies, because some compilers
4166 # like to wrap large dependency lists on column 80 (with \), and
4167 # we should not choose a depcomp mode which is confused by this.
4168 #
4169 # We need to recreate these files for each test, as the compiler may
4170 # overwrite some of them when testing with obscure command lines.
4171 # This happens at least with the AIX C compiler.
4172 : > sub/conftest.c
4173 for i in 1 2 3 4 5 6; do
4174 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4175 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4176 # Solaris 8's {/usr,}/bin/sh.
4177 touch sub/conftst$i.h
4178 done
4179 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4180
4181 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4182 # mode. It turns out that the SunPro C++ compiler does not properly
4183 # handle `-M -o', and we need to detect this. Also, some Intel
4184 # versions had trouble with output in subdirs
4185 am__obj=sub/conftest.${OBJEXT-o}
4186 am__minus_obj="-o $am__obj"
4187 case $depmode in
4188 gcc)
4189 # This depmode causes a compiler race in universal mode.
4190 test "$am__universal" = false || continue
4191 ;;
4192 nosideeffect)
4193 # after this tag, mechanisms are not by side-effect, so they'll
4194 # only be used when explicitly requested
4195 if test "x$enable_dependency_tracking" = xyes; then
4196 continue
4197 else
4198 break
4199 fi
4200 ;;
4201 msvisualcpp | msvcmsys)
4202 # This compiler won't grok `-c -o', but also, the minuso test has
4203 # not run yet. These depmodes are late enough in the game, and
4204 # so weak that their functioning should not be impacted.
4205 am__obj=conftest.${OBJEXT-o}
4206 am__minus_obj=
4207 ;;
4208 none) break ;;
4209 esac
4210 if depmode=$depmode \
4211 source=sub/conftest.c object=$am__obj \
4212 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4213 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4214 >/dev/null 2>conftest.err &&
4215 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4217 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4219 # icc doesn't choke on unknown options, it will just issue warnings
4220 # or remarks (even with -Werror). So we grep stderr for any message
4221 # that says an option was ignored or not supported.
4222 # When given -MP, icc 7.0 and 7.1 complain thusly:
4223 # icc: Command line warning: ignoring option '-M'; no argument required
4224 # The diagnosis changed in icc 8.0:
4225 # icc: Command line remark: option '-MP' not supported
4226 if (grep 'ignoring option' conftest.err ||
4227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4228 am_cv_CC_dependencies_compiler_type=$depmode
4229 break
4230 fi
4231 fi
4232 done
4233
4234 cd ..
4235 rm -rf conftest.dir
4236 else
4237 am_cv_CC_dependencies_compiler_type=none
4238 fi
4239
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4242 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4243 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4244
4245 if
4246 test "x$enable_dependency_tracking" != xno \
4247 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4248 am__fastdepCC_TRUE=
4249 am__fastdepCC_FALSE='#'
4250 else
4251 am__fastdepCC_TRUE='#'
4252 am__fastdepCC_FALSE=
4253 fi
4254
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4262 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4263 # On Suns, sometimes $CPP names a directory.
4264 if test -n "$CPP" && test -d "$CPP"; then
4265 CPP=
4266 fi
4267 if test -z "$CPP"; then
4268 if test "${ac_cv_prog_CPP+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 # Double quotes because CPP needs to be expanded
4272 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4273 do
4274 ac_preproc_ok=false
4275 for ac_c_preproc_warn_flag in '' yes
4276 do
4277 # Use a header file that comes with gcc, so configuring glibc
4278 # with a fresh cross-compiler works.
4279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4280 # <limits.h> exists even on freestanding compilers.
4281 # On the NeXT, cc -E runs the code through the compiler's parser,
4282 # not just through cpp. "Syntax error" is here to catch this case.
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 #ifdef __STDC__
4286 # include <limits.h>
4287 #else
4288 # include <assert.h>
4289 #endif
4290 Syntax error
4291 _ACEOF
4292 if ac_fn_c_try_cpp "$LINENO"; then :
4293
4294 else
4295 # Broken: fails on valid input.
4296 continue
4297 fi
4298 rm -f conftest.err conftest.$ac_ext
4299
4300 # OK, works on sane cases. Now check whether nonexistent headers
4301 # can be detected and how.
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 #include <ac_nonexistent.h>
4305 _ACEOF
4306 if ac_fn_c_try_cpp "$LINENO"; then :
4307 # Broken: success on invalid input.
4308 continue
4309 else
4310 # Passes both tests.
4311 ac_preproc_ok=:
4312 break
4313 fi
4314 rm -f conftest.err conftest.$ac_ext
4315
4316 done
4317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4318 rm -f conftest.err conftest.$ac_ext
4319 if $ac_preproc_ok; then :
4320 break
4321 fi
4322
4323 done
4324 ac_cv_prog_CPP=$CPP
4325
4326 fi
4327 CPP=$ac_cv_prog_CPP
4328 else
4329 ac_cv_prog_CPP=$CPP
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4332 $as_echo "$CPP" >&6; }
4333 ac_preproc_ok=false
4334 for ac_c_preproc_warn_flag in '' yes
4335 do
4336 # Use a header file that comes with gcc, so configuring glibc
4337 # with a fresh cross-compiler works.
4338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4339 # <limits.h> exists even on freestanding compilers.
4340 # On the NeXT, cc -E runs the code through the compiler's parser,
4341 # not just through cpp. "Syntax error" is here to catch this case.
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #ifdef __STDC__
4345 # include <limits.h>
4346 #else
4347 # include <assert.h>
4348 #endif
4349 Syntax error
4350 _ACEOF
4351 if ac_fn_c_try_cpp "$LINENO"; then :
4352
4353 else
4354 # Broken: fails on valid input.
4355 continue
4356 fi
4357 rm -f conftest.err conftest.$ac_ext
4358
4359 # OK, works on sane cases. Now check whether nonexistent headers
4360 # can be detected and how.
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4363 #include <ac_nonexistent.h>
4364 _ACEOF
4365 if ac_fn_c_try_cpp "$LINENO"; then :
4366 # Broken: success on invalid input.
4367 continue
4368 else
4369 # Passes both tests.
4370 ac_preproc_ok=:
4371 break
4372 fi
4373 rm -f conftest.err conftest.$ac_ext
4374
4375 done
4376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4377 rm -f conftest.err conftest.$ac_ext
4378 if $ac_preproc_ok; then :
4379
4380 else
4381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4383 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4384 See \`config.log' for more details." "$LINENO" 5; }
4385 fi
4386
4387 ac_ext=c
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392
4393
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4395 $as_echo_n "checking whether ln -s works... " >&6; }
4396 LN_S=$as_ln_s
4397 if test "$LN_S" = "ln -s"; then
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4399 $as_echo "yes" >&6; }
4400 else
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4402 $as_echo "no, using $LN_S" >&6; }
4403 fi
4404
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4406 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4407 set x ${MAKE-make}
4408 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4409 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 cat >conftest.make <<\_ACEOF
4413 SHELL = /bin/sh
4414 all:
4415 @echo '@@@%%%=$(MAKE)=@@@%%%'
4416 _ACEOF
4417 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4418 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4419 *@@@%%%=?*=@@@%%%*)
4420 eval ac_cv_prog_make_${ac_make}_set=yes;;
4421 *)
4422 eval ac_cv_prog_make_${ac_make}_set=no;;
4423 esac
4424 rm -f conftest.make
4425 fi
4426 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4428 $as_echo "yes" >&6; }
4429 SET_MAKE=
4430 else
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4433 SET_MAKE="MAKE=${MAKE-make}"
4434 fi
4435
4436 case `pwd` in
4437 *\ * | *\ *)
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4439 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4440 esac
4441
4442
4443
4444 macro_version='2.2.10'
4445 macro_revision='1.3175'
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459 ltmain="$ac_aux_dir/ltmain.sh"
4460
4461 # Make sure we can run config.sub.
4462 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4463 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4464
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4466 $as_echo_n "checking build system type... " >&6; }
4467 if test "${ac_cv_build+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 ac_build_alias=$build_alias
4471 test "x$ac_build_alias" = x &&
4472 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4473 test "x$ac_build_alias" = x &&
4474 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4475 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4476 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4477
4478 fi
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4480 $as_echo "$ac_cv_build" >&6; }
4481 case $ac_cv_build in
4482 *-*-*) ;;
4483 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4484 esac
4485 build=$ac_cv_build
4486 ac_save_IFS=$IFS; IFS='-'
4487 set x $ac_cv_build
4488 shift
4489 build_cpu=$1
4490 build_vendor=$2
4491 shift; shift
4492 # Remember, the first character of IFS is used to create $*,
4493 # except with old shells:
4494 build_os=$*
4495 IFS=$ac_save_IFS
4496 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4497
4498
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4500 $as_echo_n "checking host system type... " >&6; }
4501 if test "${ac_cv_host+set}" = set; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 if test "x$host_alias" = x; then
4505 ac_cv_host=$ac_cv_build
4506 else
4507 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4508 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4509 fi
4510
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4513 $as_echo "$ac_cv_host" >&6; }
4514 case $ac_cv_host in
4515 *-*-*) ;;
4516 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4517 esac
4518 host=$ac_cv_host
4519 ac_save_IFS=$IFS; IFS='-'
4520 set x $ac_cv_host
4521 shift
4522 host_cpu=$1
4523 host_vendor=$2
4524 shift; shift
4525 # Remember, the first character of IFS is used to create $*,
4526 # except with old shells:
4527 host_os=$*
4528 IFS=$ac_save_IFS
4529 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4530
4531
4532 # Backslashify metacharacters that are still active within
4533 # double-quoted strings.
4534 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4535
4536 # Same as above, but do not quote variable references.
4537 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4538
4539 # Sed substitution to delay expansion of an escaped shell variable in a
4540 # double_quote_subst'ed string.
4541 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4542
4543 # Sed substitution to delay expansion of an escaped single quote.
4544 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4545
4546 # Sed substitution to avoid accidental globbing in evaled expressions
4547 no_glob_subst='s/\*/\\\*/g'
4548
4549 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4550 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4551 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4552
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4554 $as_echo_n "checking how to print strings... " >&6; }
4555 # Test print first, because it will be a builtin if present.
4556 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4557 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4558 ECHO='print -r --'
4559 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4560 ECHO='printf %s\n'
4561 else
4562 # Use this function as a fallback that always works.
4563 func_fallback_echo ()
4564 {
4565 eval 'cat <<_LTECHO_EOF
4566 $1
4567 _LTECHO_EOF'
4568 }
4569 ECHO='func_fallback_echo'
4570 fi
4571
4572 # func_echo_all arg...
4573 # Invoke $ECHO with all args, space-separated.
4574 func_echo_all ()
4575 {
4576 $ECHO ""
4577 }
4578
4579 case "$ECHO" in
4580 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4581 $as_echo "printf" >&6; } ;;
4582 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4583 $as_echo "print -r" >&6; } ;;
4584 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4585 $as_echo "cat" >&6; } ;;
4586 esac
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4602 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4603 if test "${ac_cv_path_SED+set}" = set; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4607 for ac_i in 1 2 3 4 5 6 7; do
4608 ac_script="$ac_script$as_nl$ac_script"
4609 done
4610 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4611 { ac_script=; unset ac_script;}
4612 if test -z "$SED"; then
4613 ac_path_SED_found=false
4614 # Loop through the user's path and test for each of PROGNAME-LIST
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_prog in sed gsed; do
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4623 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4624 # Check for GNU ac_path_SED and select it if it is found.
4625 # Check for GNU $ac_path_SED
4626 case `"$ac_path_SED" --version 2>&1` in
4627 *GNU*)
4628 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4629 *)
4630 ac_count=0
4631 $as_echo_n 0123456789 >"conftest.in"
4632 while :
4633 do
4634 cat "conftest.in" "conftest.in" >"conftest.tmp"
4635 mv "conftest.tmp" "conftest.in"
4636 cp "conftest.in" "conftest.nl"
4637 $as_echo '' >> "conftest.nl"
4638 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4640 as_fn_arith $ac_count + 1 && ac_count=$as_val
4641 if test $ac_count -gt ${ac_path_SED_max-0}; then
4642 # Best one so far, save it but keep looking for a better one
4643 ac_cv_path_SED="$ac_path_SED"
4644 ac_path_SED_max=$ac_count
4645 fi
4646 # 10*(2^10) chars as input seems more than enough
4647 test $ac_count -gt 10 && break
4648 done
4649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4650 esac
4651
4652 $ac_path_SED_found && break 3
4653 done
4654 done
4655 done
4656 IFS=$as_save_IFS
4657 if test -z "$ac_cv_path_SED"; then
4658 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4659 fi
4660 else
4661 ac_cv_path_SED=$SED
4662 fi
4663
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4666 $as_echo "$ac_cv_path_SED" >&6; }
4667 SED="$ac_cv_path_SED"
4668 rm -f conftest.sed
4669
4670 test -z "$SED" && SED=sed
4671 Xsed="$SED -e 1s/^X//"
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4684 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4685 if test "${ac_cv_path_GREP+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if test -z "$GREP"; then
4689 ac_path_GREP_found=false
4690 # Loop through the user's path and test for each of PROGNAME-LIST
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4693 do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_prog in grep ggrep; do
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4699 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4700 # Check for GNU ac_path_GREP and select it if it is found.
4701 # Check for GNU $ac_path_GREP
4702 case `"$ac_path_GREP" --version 2>&1` in
4703 *GNU*)
4704 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4705 *)
4706 ac_count=0
4707 $as_echo_n 0123456789 >"conftest.in"
4708 while :
4709 do
4710 cat "conftest.in" "conftest.in" >"conftest.tmp"
4711 mv "conftest.tmp" "conftest.in"
4712 cp "conftest.in" "conftest.nl"
4713 $as_echo 'GREP' >> "conftest.nl"
4714 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4716 as_fn_arith $ac_count + 1 && ac_count=$as_val
4717 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4718 # Best one so far, save it but keep looking for a better one
4719 ac_cv_path_GREP="$ac_path_GREP"
4720 ac_path_GREP_max=$ac_count
4721 fi
4722 # 10*(2^10) chars as input seems more than enough
4723 test $ac_count -gt 10 && break
4724 done
4725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4726 esac
4727
4728 $ac_path_GREP_found && break 3
4729 done
4730 done
4731 done
4732 IFS=$as_save_IFS
4733 if test -z "$ac_cv_path_GREP"; then
4734 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4735 fi
4736 else
4737 ac_cv_path_GREP=$GREP
4738 fi
4739
4740 fi
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4742 $as_echo "$ac_cv_path_GREP" >&6; }
4743 GREP="$ac_cv_path_GREP"
4744
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4747 $as_echo_n "checking for egrep... " >&6; }
4748 if test "${ac_cv_path_EGREP+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4752 then ac_cv_path_EGREP="$GREP -E"
4753 else
4754 if test -z "$EGREP"; then
4755 ac_path_EGREP_found=false
4756 # Loop through the user's path and test for each of PROGNAME-LIST
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4759 do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_prog in egrep; do
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4765 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4766 # Check for GNU ac_path_EGREP and select it if it is found.
4767 # Check for GNU $ac_path_EGREP
4768 case `"$ac_path_EGREP" --version 2>&1` in
4769 *GNU*)
4770 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4771 *)
4772 ac_count=0
4773 $as_echo_n 0123456789 >"conftest.in"
4774 while :
4775 do
4776 cat "conftest.in" "conftest.in" >"conftest.tmp"
4777 mv "conftest.tmp" "conftest.in"
4778 cp "conftest.in" "conftest.nl"
4779 $as_echo 'EGREP' >> "conftest.nl"
4780 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782 as_fn_arith $ac_count + 1 && ac_count=$as_val
4783 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4784 # Best one so far, save it but keep looking for a better one
4785 ac_cv_path_EGREP="$ac_path_EGREP"
4786 ac_path_EGREP_max=$ac_count
4787 fi
4788 # 10*(2^10) chars as input seems more than enough
4789 test $ac_count -gt 10 && break
4790 done
4791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4792 esac
4793
4794 $ac_path_EGREP_found && break 3
4795 done
4796 done
4797 done
4798 IFS=$as_save_IFS
4799 if test -z "$ac_cv_path_EGREP"; then
4800 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4801 fi
4802 else
4803 ac_cv_path_EGREP=$EGREP
4804 fi
4805
4806 fi
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4809 $as_echo "$ac_cv_path_EGREP" >&6; }
4810 EGREP="$ac_cv_path_EGREP"
4811
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4814 $as_echo_n "checking for fgrep... " >&6; }
4815 if test "${ac_cv_path_FGREP+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4819 then ac_cv_path_FGREP="$GREP -F"
4820 else
4821 if test -z "$FGREP"; then
4822 ac_path_FGREP_found=false
4823 # Loop through the user's path and test for each of PROGNAME-LIST
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_prog in fgrep; do
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4832 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4833 # Check for GNU ac_path_FGREP and select it if it is found.
4834 # Check for GNU $ac_path_FGREP
4835 case `"$ac_path_FGREP" --version 2>&1` in
4836 *GNU*)
4837 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4838 *)
4839 ac_count=0
4840 $as_echo_n 0123456789 >"conftest.in"
4841 while :
4842 do
4843 cat "conftest.in" "conftest.in" >"conftest.tmp"
4844 mv "conftest.tmp" "conftest.in"
4845 cp "conftest.in" "conftest.nl"
4846 $as_echo 'FGREP' >> "conftest.nl"
4847 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4849 as_fn_arith $ac_count + 1 && ac_count=$as_val
4850 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4851 # Best one so far, save it but keep looking for a better one
4852 ac_cv_path_FGREP="$ac_path_FGREP"
4853 ac_path_FGREP_max=$ac_count
4854 fi
4855 # 10*(2^10) chars as input seems more than enough
4856 test $ac_count -gt 10 && break
4857 done
4858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4859 esac
4860
4861 $ac_path_FGREP_found && break 3
4862 done
4863 done
4864 done
4865 IFS=$as_save_IFS
4866 if test -z "$ac_cv_path_FGREP"; then
4867 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4868 fi
4869 else
4870 ac_cv_path_FGREP=$FGREP
4871 fi
4872
4873 fi
4874 fi
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4876 $as_echo "$ac_cv_path_FGREP" >&6; }
4877 FGREP="$ac_cv_path_FGREP"
4878
4879
4880 test -z "$GREP" && GREP=grep
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900 # Check whether --with-gnu-ld was given.
4901 if test "${with_gnu_ld+set}" = set; then :
4902 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4903 else
4904 with_gnu_ld=no
4905 fi
4906
4907 ac_prog=ld
4908 if test "$GCC" = yes; then
4909 # Check if gcc -print-prog-name=ld gives a path.
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4911 $as_echo_n "checking for ld used by $CC... " >&6; }
4912 case $host in
4913 *-*-mingw*)
4914 # gcc leaves a trailing carriage return which upsets mingw
4915 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4916 *)
4917 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4918 esac
4919 case $ac_prog in
4920 # Accept absolute paths.
4921 [\\/]* | ?:[\\/]*)
4922 re_direlt='/[^/][^/]*/\.\./'
4923 # Canonicalize the pathname of ld
4924 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4925 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4926 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4927 done
4928 test -z "$LD" && LD="$ac_prog"
4929 ;;
4930 "")
4931 # If it fails, then pretend we aren't using GCC.
4932 ac_prog=ld
4933 ;;
4934 *)
4935 # If it is relative, then search for the first ld in PATH.
4936 with_gnu_ld=unknown
4937 ;;
4938 esac
4939 elif test "$with_gnu_ld" = yes; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4941 $as_echo_n "checking for GNU ld... " >&6; }
4942 else
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4944 $as_echo_n "checking for non-GNU ld... " >&6; }
4945 fi
4946 if test "${lt_cv_path_LD+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 if test -z "$LD"; then
4950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4951 for ac_dir in $PATH; do
4952 IFS="$lt_save_ifs"
4953 test -z "$ac_dir" && ac_dir=.
4954 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4955 lt_cv_path_LD="$ac_dir/$ac_prog"
4956 # Check to see if the program is GNU ld. I'd rather use --version,
4957 # but apparently some variants of GNU ld only accept -v.
4958 # Break only if it was the GNU/non-GNU ld that we prefer.
4959 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4960 *GNU* | *'with BFD'*)
4961 test "$with_gnu_ld" != no && break
4962 ;;
4963 *)
4964 test "$with_gnu_ld" != yes && break
4965 ;;
4966 esac
4967 fi
4968 done
4969 IFS="$lt_save_ifs"
4970 else
4971 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4972 fi
4973 fi
4974
4975 LD="$lt_cv_path_LD"
4976 if test -n "$LD"; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4978 $as_echo "$LD" >&6; }
4979 else
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4982 fi
4983 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4985 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4986 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4990 case `$LD -v 2>&1 </dev/null` in
4991 *GNU* | *'with BFD'*)
4992 lt_cv_prog_gnu_ld=yes
4993 ;;
4994 *)
4995 lt_cv_prog_gnu_ld=no
4996 ;;
4997 esac
4998 fi
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5000 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5001 with_gnu_ld=$lt_cv_prog_gnu_ld
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5012 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5013 if test "${lt_cv_path_NM+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 if test -n "$NM"; then
5017 # Let the user override the test.
5018 lt_cv_path_NM="$NM"
5019 else
5020 lt_nm_to_check="${ac_tool_prefix}nm"
5021 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5022 lt_nm_to_check="$lt_nm_to_check nm"
5023 fi
5024 for lt_tmp_nm in $lt_nm_to_check; do
5025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5026 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5027 IFS="$lt_save_ifs"
5028 test -z "$ac_dir" && ac_dir=.
5029 tmp_nm="$ac_dir/$lt_tmp_nm"
5030 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5031 # Check to see if the nm accepts a BSD-compat flag.
5032 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5033 # nm: unknown option "B" ignored
5034 # Tru64's nm complains that /dev/null is an invalid object file
5035 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5036 */dev/null* | *'Invalid file or object type'*)
5037 lt_cv_path_NM="$tmp_nm -B"
5038 break
5039 ;;
5040 *)
5041 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5042 */dev/null*)
5043 lt_cv_path_NM="$tmp_nm -p"
5044 break
5045 ;;
5046 *)
5047 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5048 continue # so that we can try to find one that supports BSD flags
5049 ;;
5050 esac
5051 ;;
5052 esac
5053 fi
5054 done
5055 IFS="$lt_save_ifs"
5056 done
5057 : ${lt_cv_path_NM=no}
5058 fi
5059 fi
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5061 $as_echo "$lt_cv_path_NM" >&6; }
5062 if test "$lt_cv_path_NM" != "no"; then
5063 NM="$lt_cv_path_NM"
5064 else
5065 # Didn't find any BSD compatible name lister, look for dumpbin.
5066 if test -n "$DUMPBIN"; then :
5067 # Let the user override the test.
5068 else
5069 if test -n "$ac_tool_prefix"; then
5070 for ac_prog in dumpbin "link -dump"
5071 do
5072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 if test -n "$DUMPBIN"; then
5080 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5092 fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097 fi
5098 fi
5099 DUMPBIN=$ac_cv_prog_DUMPBIN
5100 if test -n "$DUMPBIN"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5102 $as_echo "$DUMPBIN" >&6; }
5103 else
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5106 fi
5107
5108
5109 test -n "$DUMPBIN" && break
5110 done
5111 fi
5112 if test -z "$DUMPBIN"; then
5113 ac_ct_DUMPBIN=$DUMPBIN
5114 for ac_prog in dumpbin "link -dump"
5115 do
5116 # Extract the first word of "$ac_prog", so it can be a program name with args.
5117 set dummy $ac_prog; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 if test -n "$ac_ct_DUMPBIN"; then
5124 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5128 do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5136 fi
5137 done
5138 done
5139 IFS=$as_save_IFS
5140
5141 fi
5142 fi
5143 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5144 if test -n "$ac_ct_DUMPBIN"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5146 $as_echo "$ac_ct_DUMPBIN" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5150 fi
5151
5152
5153 test -n "$ac_ct_DUMPBIN" && break
5154 done
5155
5156 if test "x$ac_ct_DUMPBIN" = x; then
5157 DUMPBIN=":"
5158 else
5159 case $cross_compiling:$ac_tool_warned in
5160 yes:)
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163 ac_tool_warned=yes ;;
5164 esac
5165 DUMPBIN=$ac_ct_DUMPBIN
5166 fi
5167 fi
5168
5169 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5170 *COFF*)
5171 DUMPBIN="$DUMPBIN -symbols"
5172 ;;
5173 *)
5174 DUMPBIN=:
5175 ;;
5176 esac
5177 fi
5178
5179 if test "$DUMPBIN" != ":"; then
5180 NM="$DUMPBIN"
5181 fi
5182 fi
5183 test -z "$NM" && NM=nm
5184
5185
5186
5187
5188
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5191 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5192 if test "${lt_cv_nm_interface+set}" = set; then :
5193 $as_echo_n "(cached) " >&6
5194 else
5195 lt_cv_nm_interface="BSD nm"
5196 echo "int some_variable = 0;" > conftest.$ac_ext
5197 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5198 (eval "$ac_compile" 2>conftest.err)
5199 cat conftest.err >&5
5200 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5201 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5202 cat conftest.err >&5
5203 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5204 cat conftest.out >&5
5205 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5206 lt_cv_nm_interface="MS dumpbin"
5207 fi
5208 rm -f conftest*
5209 fi
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5211 $as_echo "$lt_cv_nm_interface" >&6; }
5212
5213 # find the maximum length of command line arguments
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5215 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5216 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 i=0
5220 teststring="ABCD"
5221
5222 case $build_os in
5223 msdosdjgpp*)
5224 # On DJGPP, this test can blow up pretty badly due to problems in libc
5225 # (any single argument exceeding 2000 bytes causes a buffer overrun
5226 # during glob expansion). Even if it were fixed, the result of this
5227 # check would be larger than it should be.
5228 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5229 ;;
5230
5231 gnu*)
5232 # Under GNU Hurd, this test is not required because there is
5233 # no limit to the length of command line arguments.
5234 # Libtool will interpret -1 as no limit whatsoever
5235 lt_cv_sys_max_cmd_len=-1;
5236 ;;
5237
5238 cygwin* | mingw* | cegcc*)
5239 # On Win9x/ME, this test blows up -- it succeeds, but takes
5240 # about 5 minutes as the teststring grows exponentially.
5241 # Worse, since 9x/ME are not pre-emptively multitasking,
5242 # you end up with a "frozen" computer, even though with patience
5243 # the test eventually succeeds (with a max line length of 256k).
5244 # Instead, let's just punt: use the minimum linelength reported by
5245 # all of the supported platforms: 8192 (on NT/2K/XP).
5246 lt_cv_sys_max_cmd_len=8192;
5247 ;;
5248
5249 mint*)
5250 # On MiNT this can take a long time and run out of memory.
5251 lt_cv_sys_max_cmd_len=8192;
5252 ;;
5253
5254 amigaos*)
5255 # On AmigaOS with pdksh, this test takes hours, literally.
5256 # So we just punt and use a minimum line length of 8192.
5257 lt_cv_sys_max_cmd_len=8192;
5258 ;;
5259
5260 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5261 # This has been around since 386BSD, at least. Likely further.
5262 if test -x /sbin/sysctl; then
5263 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5264 elif test -x /usr/sbin/sysctl; then
5265 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5266 else
5267 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5268 fi
5269 # And add a safety zone
5270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5272 ;;
5273
5274 interix*)
5275 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5276 lt_cv_sys_max_cmd_len=196608
5277 ;;
5278
5279 osf*)
5280 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5281 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5282 # nice to cause kernel panics so lets avoid the loop below.
5283 # First set a reasonable default.
5284 lt_cv_sys_max_cmd_len=16384
5285 #
5286 if test -x /sbin/sysconfig; then
5287 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5288 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5289 esac
5290 fi
5291 ;;
5292 sco3.2v5*)
5293 lt_cv_sys_max_cmd_len=102400
5294 ;;
5295 sysv5* | sco5v6* | sysv4.2uw2*)
5296 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5297 if test -n "$kargmax"; then
5298 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5299 else
5300 lt_cv_sys_max_cmd_len=32768
5301 fi
5302 ;;
5303 *)
5304 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5305 if test -n "$lt_cv_sys_max_cmd_len"; then
5306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5308 else
5309 # Make teststring a little bigger before we do anything with it.
5310 # a 1K string should be a reasonable start.
5311 for i in 1 2 3 4 5 6 7 8 ; do
5312 teststring=$teststring$teststring
5313 done
5314 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5315 # If test is not a shell built-in, we'll probably end up computing a
5316 # maximum length that is only half of the actual maximum length, but
5317 # we can't tell.
5318 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5319 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5320 test $i != 17 # 1/2 MB should be enough
5321 do
5322 i=`expr $i + 1`
5323 teststring=$teststring$teststring
5324 done
5325 # Only check the string length outside the loop.
5326 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5327 teststring=
5328 # Add a significant safety factor because C++ compilers can tack on
5329 # massive amounts of additional arguments before passing them to the
5330 # linker. It appears as though 1/2 is a usable value.
5331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5332 fi
5333 ;;
5334 esac
5335
5336 fi
5337
5338 if test -n $lt_cv_sys_max_cmd_len ; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5340 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5341 else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5343 $as_echo "none" >&6; }
5344 fi
5345 max_cmd_len=$lt_cv_sys_max_cmd_len
5346
5347
5348
5349
5350
5351
5352 : ${CP="cp -f"}
5353 : ${MV="mv -f"}
5354 : ${RM="rm -f"}
5355
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5357 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5358 # Try some XSI features
5359 xsi_shell=no
5360 ( _lt_dummy="a/b/c"
5361 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5362 = c,a/b,, \
5363 && eval 'test $(( 1 + 1 )) -eq 2 \
5364 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5365 && xsi_shell=yes
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5367 $as_echo "$xsi_shell" >&6; }
5368
5369
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5371 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5372 lt_shell_append=no
5373 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5374 >/dev/null 2>&1 \
5375 && lt_shell_append=yes
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5377 $as_echo "$lt_shell_append" >&6; }
5378
5379
5380 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5381 lt_unset=unset
5382 else
5383 lt_unset=false
5384 fi
5385
5386
5387
5388
5389
5390 # test EBCDIC or ASCII
5391 case `echo X|tr X '\101'` in
5392 A) # ASCII based system
5393 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5394 lt_SP2NL='tr \040 \012'
5395 lt_NL2SP='tr \015\012 \040\040'
5396 ;;
5397 *) # EBCDIC based system
5398 lt_SP2NL='tr \100 \n'
5399 lt_NL2SP='tr \r\n \100\100'
5400 ;;
5401 esac
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5412 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5413 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 lt_cv_ld_reload_flag='-r'
5417 fi
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5419 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5420 reload_flag=$lt_cv_ld_reload_flag
5421 case $reload_flag in
5422 "" | " "*) ;;
5423 *) reload_flag=" $reload_flag" ;;
5424 esac
5425 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5426 case $host_os in
5427 darwin*)
5428 if test "$GCC" = yes; then
5429 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5430 else
5431 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5432 fi
5433 ;;
5434 esac
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444 if test -n "$ac_tool_prefix"; then
5445 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5446 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 if test -n "$OBJDUMP"; then
5453 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458 IFS=$as_save_IFS
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 break 2
5465 fi
5466 done
5467 done
5468 IFS=$as_save_IFS
5469
5470 fi
5471 fi
5472 OBJDUMP=$ac_cv_prog_OBJDUMP
5473 if test -n "$OBJDUMP"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5475 $as_echo "$OBJDUMP" >&6; }
5476 else
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5480
5481
5482 fi
5483 if test -z "$ac_cv_prog_OBJDUMP"; then
5484 ac_ct_OBJDUMP=$OBJDUMP
5485 # Extract the first word of "objdump", so it can be a program name with args.
5486 set dummy objdump; 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 test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 if test -n "$ac_ct_OBJDUMP"; then
5493 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502 ac_cv_prog_ac_ct_OBJDUMP="objdump"
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 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5513 if test -n "$ac_ct_OBJDUMP"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5515 $as_echo "$ac_ct_OBJDUMP" >&6; }
5516 else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5520
5521 if test "x$ac_ct_OBJDUMP" = x; then
5522 OBJDUMP="false"
5523 else
5524 case $cross_compiling:$ac_tool_warned in
5525 yes:)
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528 ac_tool_warned=yes ;;
5529 esac
5530 OBJDUMP=$ac_ct_OBJDUMP
5531 fi
5532 else
5533 OBJDUMP="$ac_cv_prog_OBJDUMP"
5534 fi
5535
5536 test -z "$OBJDUMP" && OBJDUMP=objdump
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5547 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5548 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 lt_cv_file_magic_cmd='$MAGIC_CMD'
5552 lt_cv_file_magic_test_file=
5553 lt_cv_deplibs_check_method='unknown'
5554 # Need to set the preceding variable on all platforms that support
5555 # interlibrary dependencies.
5556 # 'none' -- dependencies not supported.
5557 # `unknown' -- same as none, but documents that we really don't know.
5558 # 'pass_all' -- all dependencies passed with no checks.
5559 # 'test_compile' -- check by making test program.
5560 # 'file_magic [[regex]]' -- check by looking for files in library path
5561 # which responds to the $file_magic_cmd with a given extended regex.
5562 # If you have `file' or equivalent on your system and you're not sure
5563 # whether `pass_all' will *always* work, you probably want this one.
5564
5565 case $host_os in
5566 aix[4-9]*)
5567 lt_cv_deplibs_check_method=pass_all
5568 ;;
5569
5570 beos*)
5571 lt_cv_deplibs_check_method=pass_all
5572 ;;
5573
5574 bsdi[45]*)
5575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5576 lt_cv_file_magic_cmd='/usr/bin/file -L'
5577 lt_cv_file_magic_test_file=/shlib/libc.so
5578 ;;
5579
5580 cygwin*)
5581 # func_win32_libid is a shell function defined in ltmain.sh
5582 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5583 lt_cv_file_magic_cmd='func_win32_libid'
5584 ;;
5585
5586 mingw* | pw32*)
5587 # Base MSYS/MinGW do not provide the 'file' command needed by
5588 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5589 # unless we find 'file', for example because we are cross-compiling.
5590 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5591 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5593 lt_cv_file_magic_cmd='func_win32_libid'
5594 else
5595 # Keep this pattern in sync with the one in func_win32_libid.
5596 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5597 lt_cv_file_magic_cmd='$OBJDUMP -f'
5598 fi
5599 ;;
5600
5601 cegcc*)
5602 # use the weaker test based on 'objdump'. See mingw*.
5603 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5604 lt_cv_file_magic_cmd='$OBJDUMP -f'
5605 ;;
5606
5607 darwin* | rhapsody*)
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610
5611 freebsd* | dragonfly*)
5612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5613 case $host_cpu in
5614 i*86 )
5615 # Not sure whether the presence of OpenBSD here was a mistake.
5616 # Let's accept both of them until this is cleared up.
5617 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5618 lt_cv_file_magic_cmd=/usr/bin/file
5619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5620 ;;
5621 esac
5622 else
5623 lt_cv_deplibs_check_method=pass_all
5624 fi
5625 ;;
5626
5627 gnu*)
5628 lt_cv_deplibs_check_method=pass_all
5629 ;;
5630
5631 haiku*)
5632 lt_cv_deplibs_check_method=pass_all
5633 ;;
5634
5635 hpux10.20* | hpux11*)
5636 lt_cv_file_magic_cmd=/usr/bin/file
5637 case $host_cpu in
5638 ia64*)
5639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5640 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5641 ;;
5642 hppa*64*)
5643 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]'
5644 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5645 ;;
5646 *)
5647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5648 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5649 ;;
5650 esac
5651 ;;
5652
5653 interix[3-9]*)
5654 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5656 ;;
5657
5658 irix5* | irix6* | nonstopux*)
5659 case $LD in
5660 *-32|*"-32 ") libmagic=32-bit;;
5661 *-n32|*"-n32 ") libmagic=N32;;
5662 *-64|*"-64 ") libmagic=64-bit;;
5663 *) libmagic=never-match;;
5664 esac
5665 lt_cv_deplibs_check_method=pass_all
5666 ;;
5667
5668 # This must be Linux ELF.
5669 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5670 lt_cv_deplibs_check_method=pass_all
5671 ;;
5672
5673 netbsd*)
5674 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5676 else
5677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5678 fi
5679 ;;
5680
5681 newos6*)
5682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5683 lt_cv_file_magic_cmd=/usr/bin/file
5684 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5685 ;;
5686
5687 *nto* | *qnx*)
5688 lt_cv_deplibs_check_method=pass_all
5689 ;;
5690
5691 openbsd*)
5692 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5694 else
5695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5696 fi
5697 ;;
5698
5699 osf3* | osf4* | osf5*)
5700 lt_cv_deplibs_check_method=pass_all
5701 ;;
5702
5703 rdos*)
5704 lt_cv_deplibs_check_method=pass_all
5705 ;;
5706
5707 solaris*)
5708 lt_cv_deplibs_check_method=pass_all
5709 ;;
5710
5711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5712 lt_cv_deplibs_check_method=pass_all
5713 ;;
5714
5715 sysv4 | sysv4.3*)
5716 case $host_vendor in
5717 motorola)
5718 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]'
5719 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5720 ;;
5721 ncr)
5722 lt_cv_deplibs_check_method=pass_all
5723 ;;
5724 sequent)
5725 lt_cv_file_magic_cmd='/bin/file'
5726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5727 ;;
5728 sni)
5729 lt_cv_file_magic_cmd='/bin/file'
5730 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5731 lt_cv_file_magic_test_file=/lib/libc.so
5732 ;;
5733 siemens)
5734 lt_cv_deplibs_check_method=pass_all
5735 ;;
5736 pc)
5737 lt_cv_deplibs_check_method=pass_all
5738 ;;
5739 esac
5740 ;;
5741
5742 tpf*)
5743 lt_cv_deplibs_check_method=pass_all
5744 ;;
5745 esac
5746
5747 fi
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5749 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5750 file_magic_cmd=$lt_cv_file_magic_cmd
5751 deplibs_check_method=$lt_cv_deplibs_check_method
5752 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765 if test -n "$ac_tool_prefix"; then
5766 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5767 set dummy ${ac_tool_prefix}ar; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if test "${ac_cv_prog_AR+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 if test -n "$AR"; then
5774 ac_cv_prog_AR="$AR" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_AR="${ac_tool_prefix}ar"
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5786 fi
5787 done
5788 done
5789 IFS=$as_save_IFS
5790
5791 fi
5792 fi
5793 AR=$ac_cv_prog_AR
5794 if test -n "$AR"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5796 $as_echo "$AR" >&6; }
5797 else
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5800 fi
5801
5802
5803 fi
5804 if test -z "$ac_cv_prog_AR"; then
5805 ac_ct_AR=$AR
5806 # Extract the first word of "ar", so it can be a program name with args.
5807 set dummy ar; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 if test -n "$ac_ct_AR"; then
5814 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_prog_ac_ct_AR="ar"
5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5826 fi
5827 done
5828 done
5829 IFS=$as_save_IFS
5830
5831 fi
5832 fi
5833 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5834 if test -n "$ac_ct_AR"; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5836 $as_echo "$ac_ct_AR" >&6; }
5837 else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5840 fi
5841
5842 if test "x$ac_ct_AR" = x; then
5843 AR="false"
5844 else
5845 case $cross_compiling:$ac_tool_warned in
5846 yes:)
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5849 ac_tool_warned=yes ;;
5850 esac
5851 AR=$ac_ct_AR
5852 fi
5853 else
5854 AR="$ac_cv_prog_AR"
5855 fi
5856
5857 test -z "$AR" && AR=ar
5858 test -z "$AR_FLAGS" && AR_FLAGS=cru
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870 if test -n "$ac_tool_prefix"; then
5871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5872 set dummy ${ac_tool_prefix}strip; ac_word=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if test "${ac_cv_prog_STRIP+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if test -n "$STRIP"; then
5879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892 done
5893 done
5894 IFS=$as_save_IFS
5895
5896 fi
5897 fi
5898 STRIP=$ac_cv_prog_STRIP
5899 if test -n "$STRIP"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5901 $as_echo "$STRIP" >&6; }
5902 else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5905 fi
5906
5907
5908 fi
5909 if test -z "$ac_cv_prog_STRIP"; then
5910 ac_ct_STRIP=$STRIP
5911 # Extract the first word of "strip", so it can be a program name with args.
5912 set dummy strip; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 if test -n "$ac_ct_STRIP"; then
5919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_prog_ac_ct_STRIP="strip"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5931 fi
5932 done
5933 done
5934 IFS=$as_save_IFS
5935
5936 fi
5937 fi
5938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5939 if test -n "$ac_ct_STRIP"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5941 $as_echo "$ac_ct_STRIP" >&6; }
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5945 fi
5946
5947 if test "x$ac_ct_STRIP" = x; then
5948 STRIP=":"
5949 else
5950 case $cross_compiling:$ac_tool_warned in
5951 yes:)
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5954 ac_tool_warned=yes ;;
5955 esac
5956 STRIP=$ac_ct_STRIP
5957 fi
5958 else
5959 STRIP="$ac_cv_prog_STRIP"
5960 fi
5961
5962 test -z "$STRIP" && STRIP=:
5963
5964
5965
5966
5967
5968
5969 if test -n "$ac_tool_prefix"; then
5970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973 $as_echo_n "checking for $ac_word... " >&6; }
5974 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 if test -n "$RANLIB"; then
5978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5979 else
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5982 do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5990 fi
5991 done
5992 done
5993 IFS=$as_save_IFS
5994
5995 fi
5996 fi
5997 RANLIB=$ac_cv_prog_RANLIB
5998 if test -n "$RANLIB"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6000 $as_echo "$RANLIB" >&6; }
6001 else
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6004 fi
6005
6006
6007 fi
6008 if test -z "$ac_cv_prog_RANLIB"; then
6009 ac_ct_RANLIB=$RANLIB
6010 # Extract the first word of "ranlib", so it can be a program name with args.
6011 set dummy ranlib; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 if test -n "$ac_ct_RANLIB"; then
6018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6022 do
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_ac_ct_RANLIB="ranlib"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6030 fi
6031 done
6032 done
6033 IFS=$as_save_IFS
6034
6035 fi
6036 fi
6037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6038 if test -n "$ac_ct_RANLIB"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6040 $as_echo "$ac_ct_RANLIB" >&6; }
6041 else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6044 fi
6045
6046 if test "x$ac_ct_RANLIB" = x; then
6047 RANLIB=":"
6048 else
6049 case $cross_compiling:$ac_tool_warned in
6050 yes:)
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053 ac_tool_warned=yes ;;
6054 esac
6055 RANLIB=$ac_ct_RANLIB
6056 fi
6057 else
6058 RANLIB="$ac_cv_prog_RANLIB"
6059 fi
6060
6061 test -z "$RANLIB" && RANLIB=:
6062
6063
6064
6065
6066
6067
6068 # Determine commands to create old-style static archives.
6069 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6070 old_postinstall_cmds='chmod 644 $oldlib'
6071 old_postuninstall_cmds=
6072
6073 if test -n "$RANLIB"; then
6074 case $host_os in
6075 openbsd*)
6076 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6077 ;;
6078 *)
6079 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6080 ;;
6081 esac
6082 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6083 fi
6084
6085 case $host_os in
6086 darwin*)
6087 lock_old_archive_extraction=yes ;;
6088 *)
6089 lock_old_archive_extraction=no ;;
6090 esac
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130 # If no C compiler was specified, use CC.
6131 LTCC=${LTCC-"$CC"}
6132
6133 # If no C compiler flags were specified, use CFLAGS.
6134 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6135
6136 # Allow CC to be a program name with arguments.
6137 compiler=$CC
6138
6139
6140 # Check for command to grab the raw symbol name followed by C symbol from nm.
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6142 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6143 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146
6147 # These are sane defaults that work on at least a few old systems.
6148 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6149
6150 # Character class describing NM global symbol codes.
6151 symcode='[BCDEGRST]'
6152
6153 # Regexp to match symbols that can be accessed directly from C.
6154 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6155
6156 # Define system-specific variables.
6157 case $host_os in
6158 aix*)
6159 symcode='[BCDT]'
6160 ;;
6161 cygwin* | mingw* | pw32* | cegcc*)
6162 symcode='[ABCDGISTW]'
6163 ;;
6164 hpux*)
6165 if test "$host_cpu" = ia64; then
6166 symcode='[ABCDEGRST]'
6167 fi
6168 ;;
6169 irix* | nonstopux*)
6170 symcode='[BCDEGRST]'
6171 ;;
6172 osf*)
6173 symcode='[BCDEGQRST]'
6174 ;;
6175 solaris*)
6176 symcode='[BDRT]'
6177 ;;
6178 sco3.2v5*)
6179 symcode='[DT]'
6180 ;;
6181 sysv4.2uw2*)
6182 symcode='[DT]'
6183 ;;
6184 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6185 symcode='[ABDT]'
6186 ;;
6187 sysv4)
6188 symcode='[DFNSTU]'
6189 ;;
6190 esac
6191
6192 # If we're using GNU nm, then use its standard symbol codes.
6193 case `$NM -V 2>&1` in
6194 *GNU* | *'with BFD'*)
6195 symcode='[ABCDGIRSTW]' ;;
6196 esac
6197
6198 # Transform an extracted symbol line into a proper C declaration.
6199 # Some systems (esp. on ia64) link data and code symbols differently,
6200 # so use this general approach.
6201 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6202
6203 # Transform an extracted symbol line into symbol name and symbol address
6204 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6205 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6206
6207 # Handle CRLF in mingw tool chain
6208 opt_cr=
6209 case $build_os in
6210 mingw*)
6211 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6212 ;;
6213 esac
6214
6215 # Try without a prefix underscore, then with it.
6216 for ac_symprfx in "" "_"; do
6217
6218 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6219 symxfrm="\\1 $ac_symprfx\\2 \\2"
6220
6221 # Write the raw and C identifiers.
6222 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6223 # Fake it for dumpbin and say T for any non-static function
6224 # and D for any global variable.
6225 # Also find C++ and __fastcall symbols from MSVC++,
6226 # which start with @ or ?.
6227 lt_cv_sys_global_symbol_pipe="$AWK '"\
6228 " {last_section=section; section=\$ 3};"\
6229 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6230 " \$ 0!~/External *\|/{next};"\
6231 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6232 " {if(hide[section]) next};"\
6233 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6234 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6235 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6236 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6237 " ' prfx=^$ac_symprfx"
6238 else
6239 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6240 fi
6241
6242 # Check to see that the pipe works correctly.
6243 pipe_works=no
6244
6245 rm -f conftest*
6246 cat > conftest.$ac_ext <<_LT_EOF
6247 #ifdef __cplusplus
6248 extern "C" {
6249 #endif
6250 char nm_test_var;
6251 void nm_test_func(void);
6252 void nm_test_func(void){}
6253 #ifdef __cplusplus
6254 }
6255 #endif
6256 int main(){nm_test_var='a';nm_test_func();return(0);}
6257 _LT_EOF
6258
6259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6260 (eval $ac_compile) 2>&5
6261 ac_status=$?
6262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6263 test $ac_status = 0; }; then
6264 # Now try to grab the symbols.
6265 nlist=conftest.nm
6266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6267 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6268 ac_status=$?
6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270 test $ac_status = 0; } && test -s "$nlist"; then
6271 # Try sorting and uniquifying the output.
6272 if sort "$nlist" | uniq > "$nlist"T; then
6273 mv -f "$nlist"T "$nlist"
6274 else
6275 rm -f "$nlist"T
6276 fi
6277
6278 # Make sure that we snagged all the symbols we need.
6279 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6280 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6281 cat <<_LT_EOF > conftest.$ac_ext
6282 #ifdef __cplusplus
6283 extern "C" {
6284 #endif
6285
6286 _LT_EOF
6287 # Now generate the symbol file.
6288 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6289
6290 cat <<_LT_EOF >> conftest.$ac_ext
6291
6292 /* The mapping between symbol names and symbols. */
6293 const struct {
6294 const char *name;
6295 void *address;
6296 }
6297 lt__PROGRAM__LTX_preloaded_symbols[] =
6298 {
6299 { "@PROGRAM@", (void *) 0 },
6300 _LT_EOF
6301 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6302 cat <<\_LT_EOF >> conftest.$ac_ext
6303 {0, (void *) 0}
6304 };
6305
6306 /* This works around a problem in FreeBSD linker */
6307 #ifdef FREEBSD_WORKAROUND
6308 static const void *lt_preloaded_setup() {
6309 return lt__PROGRAM__LTX_preloaded_symbols;
6310 }
6311 #endif
6312
6313 #ifdef __cplusplus
6314 }
6315 #endif
6316 _LT_EOF
6317 # Now try linking the two files.
6318 mv conftest.$ac_objext conftstm.$ac_objext
6319 lt_save_LIBS="$LIBS"
6320 lt_save_CFLAGS="$CFLAGS"
6321 LIBS="conftstm.$ac_objext"
6322 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6324 (eval $ac_link) 2>&5
6325 ac_status=$?
6326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6327 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6328 pipe_works=yes
6329 fi
6330 LIBS="$lt_save_LIBS"
6331 CFLAGS="$lt_save_CFLAGS"
6332 else
6333 echo "cannot find nm_test_func in $nlist" >&5
6334 fi
6335 else
6336 echo "cannot find nm_test_var in $nlist" >&5
6337 fi
6338 else
6339 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6340 fi
6341 else
6342 echo "$progname: failed program was:" >&5
6343 cat conftest.$ac_ext >&5
6344 fi
6345 rm -rf conftest* conftst*
6346
6347 # Do not use the global_symbol_pipe unless it works.
6348 if test "$pipe_works" = yes; then
6349 break
6350 else
6351 lt_cv_sys_global_symbol_pipe=
6352 fi
6353 done
6354
6355 fi
6356
6357 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6358 lt_cv_sys_global_symbol_to_cdecl=
6359 fi
6360 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6362 $as_echo "failed" >&6; }
6363 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6365 $as_echo "ok" >&6; }
6366 fi
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 # Check whether --enable-libtool-lock was given.
6391 if test "${enable_libtool_lock+set}" = set; then :
6392 enableval=$enable_libtool_lock;
6393 fi
6394
6395 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6396
6397 # Some flags need to be propagated to the compiler or linker for good
6398 # libtool support.
6399 case $host in
6400 ia64-*-hpux*)
6401 # Find out which ABI we are using.
6402 echo 'int i;' > conftest.$ac_ext
6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404 (eval $ac_compile) 2>&5
6405 ac_status=$?
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; }; then
6408 case `/usr/bin/file conftest.$ac_objext` in
6409 *ELF-32*)
6410 HPUX_IA64_MODE="32"
6411 ;;
6412 *ELF-64*)
6413 HPUX_IA64_MODE="64"
6414 ;;
6415 esac
6416 fi
6417 rm -rf conftest*
6418 ;;
6419 *-*-irix6*)
6420 # Find out which ABI we are using.
6421 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6423 (eval $ac_compile) 2>&5
6424 ac_status=$?
6425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6426 test $ac_status = 0; }; then
6427 if test "$lt_cv_prog_gnu_ld" = yes; then
6428 case `/usr/bin/file conftest.$ac_objext` in
6429 *32-bit*)
6430 LD="${LD-ld} -melf32bsmip"
6431 ;;
6432 *N32*)
6433 LD="${LD-ld} -melf32bmipn32"
6434 ;;
6435 *64-bit*)
6436 LD="${LD-ld} -melf64bmip"
6437 ;;
6438 esac
6439 else
6440 case `/usr/bin/file conftest.$ac_objext` in
6441 *32-bit*)
6442 LD="${LD-ld} -32"
6443 ;;
6444 *N32*)
6445 LD="${LD-ld} -n32"
6446 ;;
6447 *64-bit*)
6448 LD="${LD-ld} -64"
6449 ;;
6450 esac
6451 fi
6452 fi
6453 rm -rf conftest*
6454 ;;
6455
6456 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6457 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6458 # Find out which ABI we are using.
6459 echo 'int i;' > conftest.$ac_ext
6460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6461 (eval $ac_compile) 2>&5
6462 ac_status=$?
6463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; }; then
6465 case `/usr/bin/file conftest.o` in
6466 *32-bit*)
6467 case $host in
6468 x86_64-*kfreebsd*-gnu)
6469 LD="${LD-ld} -m elf_i386_fbsd"
6470 ;;
6471 x86_64-*linux*)
6472 LD="${LD-ld} -m elf_i386"
6473 ;;
6474 ppc64-*linux*|powerpc64-*linux*)
6475 LD="${LD-ld} -m elf32ppclinux"
6476 ;;
6477 s390x-*linux*)
6478 LD="${LD-ld} -m elf_s390"
6479 ;;
6480 sparc64-*linux*)
6481 LD="${LD-ld} -m elf32_sparc"
6482 ;;
6483 esac
6484 ;;
6485 *64-bit*)
6486 case $host in
6487 x86_64-*kfreebsd*-gnu)
6488 LD="${LD-ld} -m elf_x86_64_fbsd"
6489 ;;
6490 x86_64-*linux*)
6491 LD="${LD-ld} -m elf_x86_64"
6492 ;;
6493 ppc*-*linux*|powerpc*-*linux*)
6494 LD="${LD-ld} -m elf64ppc"
6495 ;;
6496 s390*-*linux*|s390*-*tpf*)
6497 LD="${LD-ld} -m elf64_s390"
6498 ;;
6499 sparc*-*linux*)
6500 LD="${LD-ld} -m elf64_sparc"
6501 ;;
6502 esac
6503 ;;
6504 esac
6505 fi
6506 rm -rf conftest*
6507 ;;
6508
6509 *-*-sco3.2v5*)
6510 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6511 SAVE_CFLAGS="$CFLAGS"
6512 CFLAGS="$CFLAGS -belf"
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6514 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6515 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 ac_ext=c
6519 ac_cpp='$CPP $CPPFLAGS'
6520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6523
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526
6527 int
6528 main ()
6529 {
6530
6531 ;
6532 return 0;
6533 }
6534 _ACEOF
6535 if ac_fn_c_try_link "$LINENO"; then :
6536 lt_cv_cc_needs_belf=yes
6537 else
6538 lt_cv_cc_needs_belf=no
6539 fi
6540 rm -f core conftest.err conftest.$ac_objext \
6541 conftest$ac_exeext conftest.$ac_ext
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 fi
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6550 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6551 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6552 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6553 CFLAGS="$SAVE_CFLAGS"
6554 fi
6555 ;;
6556 sparc*-*solaris*)
6557 # Find out which ABI we are using.
6558 echo 'int i;' > conftest.$ac_ext
6559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6560 (eval $ac_compile) 2>&5
6561 ac_status=$?
6562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6563 test $ac_status = 0; }; then
6564 case `/usr/bin/file conftest.o` in
6565 *64-bit*)
6566 case $lt_cv_prog_gnu_ld in
6567 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6568 *)
6569 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6570 LD="${LD-ld} -64"
6571 fi
6572 ;;
6573 esac
6574 ;;
6575 esac
6576 fi
6577 rm -rf conftest*
6578 ;;
6579 esac
6580
6581 need_locks="$enable_libtool_lock"
6582
6583
6584 case $host_os in
6585 rhapsody* | darwin*)
6586 if test -n "$ac_tool_prefix"; then
6587 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6588 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 if test -n "$DSYMUTIL"; then
6595 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6615 if test -n "$DSYMUTIL"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6617 $as_echo "$DSYMUTIL" >&6; }
6618 else
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6622
6623
6624 fi
6625 if test -z "$ac_cv_prog_DSYMUTIL"; then
6626 ac_ct_DSYMUTIL=$DSYMUTIL
6627 # Extract the first word of "dsymutil", so it can be a program name with args.
6628 set dummy dsymutil; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if test -n "$ac_ct_DSYMUTIL"; then
6635 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6655 if test -n "$ac_ct_DSYMUTIL"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6657 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6658 else
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6662
6663 if test "x$ac_ct_DSYMUTIL" = x; then
6664 DSYMUTIL=":"
6665 else
6666 case $cross_compiling:$ac_tool_warned in
6667 yes:)
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6670 ac_tool_warned=yes ;;
6671 esac
6672 DSYMUTIL=$ac_ct_DSYMUTIL
6673 fi
6674 else
6675 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6676 fi
6677
6678 if test -n "$ac_tool_prefix"; then
6679 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6680 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 if test -n "$NMEDIT"; then
6687 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 NMEDIT=$ac_cv_prog_NMEDIT
6707 if test -n "$NMEDIT"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6709 $as_echo "$NMEDIT" >&6; }
6710 else
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713 fi
6714
6715
6716 fi
6717 if test -z "$ac_cv_prog_NMEDIT"; then
6718 ac_ct_NMEDIT=$NMEDIT
6719 # Extract the first word of "nmedit", so it can be a program name with args.
6720 set dummy nmedit; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 if test -n "$ac_ct_NMEDIT"; then
6727 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6747 if test -n "$ac_ct_NMEDIT"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6749 $as_echo "$ac_ct_NMEDIT" >&6; }
6750 else
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6753 fi
6754
6755 if test "x$ac_ct_NMEDIT" = x; then
6756 NMEDIT=":"
6757 else
6758 case $cross_compiling:$ac_tool_warned in
6759 yes:)
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6762 ac_tool_warned=yes ;;
6763 esac
6764 NMEDIT=$ac_ct_NMEDIT
6765 fi
6766 else
6767 NMEDIT="$ac_cv_prog_NMEDIT"
6768 fi
6769
6770 if test -n "$ac_tool_prefix"; then
6771 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6772 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if test "${ac_cv_prog_LIPO+set}" = set; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 if test -n "$LIPO"; then
6779 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784 IFS=$as_save_IFS
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 break 2
6791 fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 LIPO=$ac_cv_prog_LIPO
6799 if test -n "$LIPO"; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6801 $as_echo "$LIPO" >&6; }
6802 else
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6805 fi
6806
6807
6808 fi
6809 if test -z "$ac_cv_prog_LIPO"; then
6810 ac_ct_LIPO=$LIPO
6811 # Extract the first word of "lipo", so it can be a program name with args.
6812 set dummy lipo; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 if test -n "$ac_ct_LIPO"; then
6819 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828 ac_cv_prog_ac_ct_LIPO="lipo"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6839 if test -n "$ac_ct_LIPO"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6841 $as_echo "$ac_ct_LIPO" >&6; }
6842 else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6846
6847 if test "x$ac_ct_LIPO" = x; then
6848 LIPO=":"
6849 else
6850 case $cross_compiling:$ac_tool_warned in
6851 yes:)
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6854 ac_tool_warned=yes ;;
6855 esac
6856 LIPO=$ac_ct_LIPO
6857 fi
6858 else
6859 LIPO="$ac_cv_prog_LIPO"
6860 fi
6861
6862 if test -n "$ac_tool_prefix"; then
6863 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6864 set dummy ${ac_tool_prefix}otool; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 if test -n "$OTOOL"; then
6871 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6883 fi
6884 done
6885 done
6886 IFS=$as_save_IFS
6887
6888 fi
6889 fi
6890 OTOOL=$ac_cv_prog_OTOOL
6891 if test -n "$OTOOL"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6893 $as_echo "$OTOOL" >&6; }
6894 else
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 fi
6898
6899
6900 fi
6901 if test -z "$ac_cv_prog_OTOOL"; then
6902 ac_ct_OTOOL=$OTOOL
6903 # Extract the first word of "otool", so it can be a program name with args.
6904 set dummy otool; ac_word=$2
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 if test -n "$ac_ct_OTOOL"; then
6911 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6920 ac_cv_prog_ac_ct_OTOOL="otool"
6921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924 done
6925 done
6926 IFS=$as_save_IFS
6927
6928 fi
6929 fi
6930 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6931 if test -n "$ac_ct_OTOOL"; then
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6933 $as_echo "$ac_ct_OTOOL" >&6; }
6934 else
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6937 fi
6938
6939 if test "x$ac_ct_OTOOL" = x; then
6940 OTOOL=":"
6941 else
6942 case $cross_compiling:$ac_tool_warned in
6943 yes:)
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6946 ac_tool_warned=yes ;;
6947 esac
6948 OTOOL=$ac_ct_OTOOL
6949 fi
6950 else
6951 OTOOL="$ac_cv_prog_OTOOL"
6952 fi
6953
6954 if test -n "$ac_tool_prefix"; then
6955 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6956 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 if test -n "$OTOOL64"; then
6963 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976 done
6977 done
6978 IFS=$as_save_IFS
6979
6980 fi
6981 fi
6982 OTOOL64=$ac_cv_prog_OTOOL64
6983 if test -n "$OTOOL64"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6985 $as_echo "$OTOOL64" >&6; }
6986 else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6990
6991
6992 fi
6993 if test -z "$ac_cv_prog_OTOOL64"; then
6994 ac_ct_OTOOL64=$OTOOL64
6995 # Extract the first word of "otool64", so it can be a program name with args.
6996 set dummy otool64; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 if test -n "$ac_ct_OTOOL64"; then
7003 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7004 else
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_prog_ac_ct_OTOOL64="otool64"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020 fi
7021 fi
7022 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7023 if test -n "$ac_ct_OTOOL64"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7025 $as_echo "$ac_ct_OTOOL64" >&6; }
7026 else
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028 $as_echo "no" >&6; }
7029 fi
7030
7031 if test "x$ac_ct_OTOOL64" = x; then
7032 OTOOL64=":"
7033 else
7034 case $cross_compiling:$ac_tool_warned in
7035 yes:)
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7038 ac_tool_warned=yes ;;
7039 esac
7040 OTOOL64=$ac_ct_OTOOL64
7041 fi
7042 else
7043 OTOOL64="$ac_cv_prog_OTOOL64"
7044 fi
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7073 $as_echo_n "checking for -single_module linker flag... " >&6; }
7074 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 lt_cv_apple_cc_single_mod=no
7078 if test -z "${LT_MULTI_MODULE}"; then
7079 # By default we will add the -single_module flag. You can override
7080 # by either setting the environment variable LT_MULTI_MODULE
7081 # non-empty at configure time, or by adding -multi_module to the
7082 # link flags.
7083 rm -rf libconftest.dylib*
7084 echo "int foo(void){return 1;}" > conftest.c
7085 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7086 -dynamiclib -Wl,-single_module conftest.c" >&5
7087 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7088 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7089 _lt_result=$?
7090 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7091 lt_cv_apple_cc_single_mod=yes
7092 else
7093 cat conftest.err >&5
7094 fi
7095 rm -rf libconftest.dylib*
7096 rm -f conftest.*
7097 fi
7098 fi
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7100 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7102 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7103 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7104 $as_echo_n "(cached) " >&6
7105 else
7106 lt_cv_ld_exported_symbols_list=no
7107 save_LDFLAGS=$LDFLAGS
7108 echo "_main" > conftest.sym
7109 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7112
7113 int
7114 main ()
7115 {
7116
7117 ;
7118 return 0;
7119 }
7120 _ACEOF
7121 if ac_fn_c_try_link "$LINENO"; then :
7122 lt_cv_ld_exported_symbols_list=yes
7123 else
7124 lt_cv_ld_exported_symbols_list=no
7125 fi
7126 rm -f core conftest.err conftest.$ac_objext \
7127 conftest$ac_exeext conftest.$ac_ext
7128 LDFLAGS="$save_LDFLAGS"
7129
7130 fi
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7132 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7134 $as_echo_n "checking for -force_load linker flag... " >&6; }
7135 if test "${lt_cv_ld_force_load+set}" = set; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 lt_cv_ld_force_load=no
7139 cat > conftest.c << _LT_EOF
7140 int forced_loaded() { return 2;}
7141 _LT_EOF
7142 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7143 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7144 echo "$AR cru libconftest.a conftest.o" >&5
7145 $AR cru libconftest.a conftest.o 2>&5
7146 echo "$RANLIB libconftest.a" >&5
7147 $RANLIB libconftest.a 2>&5
7148 cat > conftest.c << _LT_EOF
7149 int main() { return 0;}
7150 _LT_EOF
7151 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7152 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7153 _lt_result=$?
7154 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7155 lt_cv_ld_force_load=yes
7156 else
7157 cat conftest.err >&5
7158 fi
7159 rm -f conftest.err libconftest.a conftest conftest.c
7160 rm -rf conftest.dSYM
7161
7162 fi
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7164 $as_echo "$lt_cv_ld_force_load" >&6; }
7165 case $host_os in
7166 rhapsody* | darwin1.[012])
7167 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7168 darwin1.*)
7169 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7170 darwin*) # darwin 5.x on
7171 # if running on 10.5 or later, the deployment target defaults
7172 # to the OS version, if on x86, and 10.4, the deployment
7173 # target defaults to 10.4. Don't you love it?
7174 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7175 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7176 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7177 10.[012]*)
7178 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7179 10.*)
7180 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7181 esac
7182 ;;
7183 esac
7184 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7185 _lt_dar_single_mod='$single_module'
7186 fi
7187 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7188 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7189 else
7190 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7191 fi
7192 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7193 _lt_dsymutil='~$DSYMUTIL $lib || :'
7194 else
7195 _lt_dsymutil=
7196 fi
7197 ;;
7198 esac
7199
7200
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7202 $as_echo_n "checking for ANSI C header files... " >&6; }
7203 if test "${ac_cv_header_stdc+set}" = set; then :
7204 $as_echo_n "(cached) " >&6
7205 else
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7208 #include <stdlib.h>
7209 #include <stdarg.h>
7210 #include <string.h>
7211 #include <float.h>
7212
7213 int
7214 main ()
7215 {
7216
7217 ;
7218 return 0;
7219 }
7220 _ACEOF
7221 if ac_fn_c_try_compile "$LINENO"; then :
7222 ac_cv_header_stdc=yes
7223 else
7224 ac_cv_header_stdc=no
7225 fi
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227
7228 if test $ac_cv_header_stdc = yes; then
7229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 #include <string.h>
7233
7234 _ACEOF
7235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7236 $EGREP "memchr" >/dev/null 2>&1; then :
7237
7238 else
7239 ac_cv_header_stdc=no
7240 fi
7241 rm -f conftest*
7242
7243 fi
7244
7245 if test $ac_cv_header_stdc = yes; then
7246 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249 #include <stdlib.h>
7250
7251 _ACEOF
7252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7253 $EGREP "free" >/dev/null 2>&1; then :
7254
7255 else
7256 ac_cv_header_stdc=no
7257 fi
7258 rm -f conftest*
7259
7260 fi
7261
7262 if test $ac_cv_header_stdc = yes; then
7263 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7264 if test "$cross_compiling" = yes; then :
7265 :
7266 else
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7269 #include <ctype.h>
7270 #include <stdlib.h>
7271 #if ((' ' & 0x0FF) == 0x020)
7272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7274 #else
7275 # define ISLOWER(c) \
7276 (('a' <= (c) && (c) <= 'i') \
7277 || ('j' <= (c) && (c) <= 'r') \
7278 || ('s' <= (c) && (c) <= 'z'))
7279 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7280 #endif
7281
7282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7283 int
7284 main ()
7285 {
7286 int i;
7287 for (i = 0; i < 256; i++)
7288 if (XOR (islower (i), ISLOWER (i))
7289 || toupper (i) != TOUPPER (i))
7290 return 2;
7291 return 0;
7292 }
7293 _ACEOF
7294 if ac_fn_c_try_run "$LINENO"; then :
7295
7296 else
7297 ac_cv_header_stdc=no
7298 fi
7299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7300 conftest.$ac_objext conftest.beam conftest.$ac_ext
7301 fi
7302
7303 fi
7304 fi
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7306 $as_echo "$ac_cv_header_stdc" >&6; }
7307 if test $ac_cv_header_stdc = yes; then
7308
7309 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7310
7311 fi
7312
7313 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7314 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7315 inttypes.h stdint.h unistd.h
7316 do :
7317 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7318 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7319 "
7320 eval as_val=\$$as_ac_Header
7321 if test "x$as_val" = x""yes; then :
7322 cat >>confdefs.h <<_ACEOF
7323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7324 _ACEOF
7325
7326 fi
7327
7328 done
7329
7330
7331 for ac_header in dlfcn.h
7332 do :
7333 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7334 "
7335 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7336 cat >>confdefs.h <<_ACEOF
7337 #define HAVE_DLFCN_H 1
7338 _ACEOF
7339
7340 fi
7341
7342 done
7343
7344
7345
7346
7347
7348
7349 # Set options
7350
7351
7352
7353 enable_dlopen=no
7354
7355
7356 enable_win32_dll=no
7357
7358
7359 # Check whether --enable-shared was given.
7360 if test "${enable_shared+set}" = set; then :
7361 enableval=$enable_shared; p=${PACKAGE-default}
7362 case $enableval in
7363 yes) enable_shared=yes ;;
7364 no) enable_shared=no ;;
7365 *)
7366 enable_shared=no
7367 # Look at the argument we got. We use all the common list separators.
7368 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7369 for pkg in $enableval; do
7370 IFS="$lt_save_ifs"
7371 if test "X$pkg" = "X$p"; then
7372 enable_shared=yes
7373 fi
7374 done
7375 IFS="$lt_save_ifs"
7376 ;;
7377 esac
7378 else
7379 enable_shared=yes
7380 fi
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390 # Check whether --enable-static was given.
7391 if test "${enable_static+set}" = set; then :
7392 enableval=$enable_static; p=${PACKAGE-default}
7393 case $enableval in
7394 yes) enable_static=yes ;;
7395 no) enable_static=no ;;
7396 *)
7397 enable_static=no
7398 # Look at the argument we got. We use all the common list separators.
7399 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7400 for pkg in $enableval; do
7401 IFS="$lt_save_ifs"
7402 if test "X$pkg" = "X$p"; then
7403 enable_static=yes
7404 fi
7405 done
7406 IFS="$lt_save_ifs"
7407 ;;
7408 esac
7409 else
7410 enable_static=yes
7411 fi
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422 # Check whether --with-pic was given.
7423 if test "${with_pic+set}" = set; then :
7424 withval=$with_pic; pic_mode="$withval"
7425 else
7426 pic_mode=default
7427 fi
7428
7429
7430 test -z "$pic_mode" && pic_mode=default
7431
7432
7433
7434
7435
7436
7437
7438 # Check whether --enable-fast-install was given.
7439 if test "${enable_fast_install+set}" = set; then :
7440 enableval=$enable_fast_install; p=${PACKAGE-default}
7441 case $enableval in
7442 yes) enable_fast_install=yes ;;
7443 no) enable_fast_install=no ;;
7444 *)
7445 enable_fast_install=no
7446 # Look at the argument we got. We use all the common list separators.
7447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7448 for pkg in $enableval; do
7449 IFS="$lt_save_ifs"
7450 if test "X$pkg" = "X$p"; then
7451 enable_fast_install=yes
7452 fi
7453 done
7454 IFS="$lt_save_ifs"
7455 ;;
7456 esac
7457 else
7458 enable_fast_install=yes
7459 fi
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471 # This can be used to rebuild libtool when needed
7472 LIBTOOL_DEPS="$ltmain"
7473
7474 # Always use our own libtool.
7475 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502 test -z "$LN_S" && LN_S="ln -s"
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517 if test -n "${ZSH_VERSION+set}" ; then
7518 setopt NO_GLOB_SUBST
7519 fi
7520
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7522 $as_echo_n "checking for objdir... " >&6; }
7523 if test "${lt_cv_objdir+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 rm -f .libs 2>/dev/null
7527 mkdir .libs 2>/dev/null
7528 if test -d .libs; then
7529 lt_cv_objdir=.libs
7530 else
7531 # MS-DOS does not allow filenames that begin with a dot.
7532 lt_cv_objdir=_libs
7533 fi
7534 rmdir .libs 2>/dev/null
7535 fi
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7537 $as_echo "$lt_cv_objdir" >&6; }
7538 objdir=$lt_cv_objdir
7539
7540
7541
7542
7543
7544 cat >>confdefs.h <<_ACEOF
7545 #define LT_OBJDIR "$lt_cv_objdir/"
7546 _ACEOF
7547
7548
7549
7550
7551 case $host_os in
7552 aix3*)
7553 # AIX sometimes has problems with the GCC collect2 program. For some
7554 # reason, if we set the COLLECT_NAMES environment variable, the problems
7555 # vanish in a puff of smoke.
7556 if test "X${COLLECT_NAMES+set}" != Xset; then
7557 COLLECT_NAMES=
7558 export COLLECT_NAMES
7559 fi
7560 ;;
7561 esac
7562
7563 # Global variables:
7564 ofile=libtool
7565 can_build_shared=yes
7566
7567 # All known linkers require a `.a' archive for static linking (except MSVC,
7568 # which needs '.lib').
7569 libext=a
7570
7571 with_gnu_ld="$lt_cv_prog_gnu_ld"
7572
7573 old_CC="$CC"
7574 old_CFLAGS="$CFLAGS"
7575
7576 # Set sane defaults for various variables
7577 test -z "$CC" && CC=cc
7578 test -z "$LTCC" && LTCC=$CC
7579 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7580 test -z "$LD" && LD=ld
7581 test -z "$ac_objext" && ac_objext=o
7582
7583 for cc_temp in $compiler""; do
7584 case $cc_temp in
7585 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7586 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7587 \-*) ;;
7588 *) break;;
7589 esac
7590 done
7591 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7592
7593
7594 # Only perform the check for file, if the check method requires it
7595 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7596 case $deplibs_check_method in
7597 file_magic*)
7598 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7600 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7601 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 case $MAGIC_CMD in
7605 [\\/*] | ?:[\\/]*)
7606 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7607 ;;
7608 *)
7609 lt_save_MAGIC_CMD="$MAGIC_CMD"
7610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7611 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7612 for ac_dir in $ac_dummy; do
7613 IFS="$lt_save_ifs"
7614 test -z "$ac_dir" && ac_dir=.
7615 if test -f $ac_dir/${ac_tool_prefix}file; then
7616 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7617 if test -n "$file_magic_test_file"; then
7618 case $deplibs_check_method in
7619 "file_magic "*)
7620 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7622 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7623 $EGREP "$file_magic_regex" > /dev/null; then
7624 :
7625 else
7626 cat <<_LT_EOF 1>&2
7627
7628 *** Warning: the command libtool uses to detect shared libraries,
7629 *** $file_magic_cmd, produces output that libtool cannot recognize.
7630 *** The result is that libtool may fail to recognize shared libraries
7631 *** as such. This will affect the creation of libtool libraries that
7632 *** depend on shared libraries, but programs linked with such libtool
7633 *** libraries will work regardless of this problem. Nevertheless, you
7634 *** may want to report the problem to your system manager and/or to
7635 *** [email protected]
7636
7637 _LT_EOF
7638 fi ;;
7639 esac
7640 fi
7641 break
7642 fi
7643 done
7644 IFS="$lt_save_ifs"
7645 MAGIC_CMD="$lt_save_MAGIC_CMD"
7646 ;;
7647 esac
7648 fi
7649
7650 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7651 if test -n "$MAGIC_CMD"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7653 $as_echo "$MAGIC_CMD" >&6; }
7654 else
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7657 fi
7658
7659
7660
7661
7662
7663 if test -z "$lt_cv_path_MAGIC_CMD"; then
7664 if test -n "$ac_tool_prefix"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7666 $as_echo_n "checking for file... " >&6; }
7667 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7668 $as_echo_n "(cached) " >&6
7669 else
7670 case $MAGIC_CMD in
7671 [\\/*] | ?:[\\/]*)
7672 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7673 ;;
7674 *)
7675 lt_save_MAGIC_CMD="$MAGIC_CMD"
7676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7677 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7678 for ac_dir in $ac_dummy; do
7679 IFS="$lt_save_ifs"
7680 test -z "$ac_dir" && ac_dir=.
7681 if test -f $ac_dir/file; then
7682 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7683 if test -n "$file_magic_test_file"; then
7684 case $deplibs_check_method in
7685 "file_magic "*)
7686 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7688 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7689 $EGREP "$file_magic_regex" > /dev/null; then
7690 :
7691 else
7692 cat <<_LT_EOF 1>&2
7693
7694 *** Warning: the command libtool uses to detect shared libraries,
7695 *** $file_magic_cmd, produces output that libtool cannot recognize.
7696 *** The result is that libtool may fail to recognize shared libraries
7697 *** as such. This will affect the creation of libtool libraries that
7698 *** depend on shared libraries, but programs linked with such libtool
7699 *** libraries will work regardless of this problem. Nevertheless, you
7700 *** may want to report the problem to your system manager and/or to
7701 *** [email protected]
7702
7703 _LT_EOF
7704 fi ;;
7705 esac
7706 fi
7707 break
7708 fi
7709 done
7710 IFS="$lt_save_ifs"
7711 MAGIC_CMD="$lt_save_MAGIC_CMD"
7712 ;;
7713 esac
7714 fi
7715
7716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7717 if test -n "$MAGIC_CMD"; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7719 $as_echo "$MAGIC_CMD" >&6; }
7720 else
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722 $as_echo "no" >&6; }
7723 fi
7724
7725
7726 else
7727 MAGIC_CMD=:
7728 fi
7729 fi
7730
7731 fi
7732 ;;
7733 esac
7734
7735 # Use C for the default configuration in the libtool script
7736
7737 lt_save_CC="$CC"
7738 ac_ext=c
7739 ac_cpp='$CPP $CPPFLAGS'
7740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7743
7744
7745 # Source file extension for C test sources.
7746 ac_ext=c
7747
7748 # Object file extension for compiled C test sources.
7749 objext=o
7750 objext=$objext
7751
7752 # Code to be used in simple compile tests
7753 lt_simple_compile_test_code="int some_variable = 0;"
7754
7755 # Code to be used in simple link tests
7756 lt_simple_link_test_code='int main(){return(0);}'
7757
7758
7759
7760
7761
7762
7763
7764 # If no C compiler was specified, use CC.
7765 LTCC=${LTCC-"$CC"}
7766
7767 # If no C compiler flags were specified, use CFLAGS.
7768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7769
7770 # Allow CC to be a program name with arguments.
7771 compiler=$CC
7772
7773 # Save the default compiler, since it gets overwritten when the other
7774 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7775 compiler_DEFAULT=$CC
7776
7777 # save warnings/boilerplate of simple test code
7778 ac_outfile=conftest.$ac_objext
7779 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7780 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7781 _lt_compiler_boilerplate=`cat conftest.err`
7782 $RM conftest*
7783
7784 ac_outfile=conftest.$ac_objext
7785 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7786 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7787 _lt_linker_boilerplate=`cat conftest.err`
7788 $RM -r conftest*
7789
7790
7791 if test -n "$compiler"; then
7792
7793 lt_prog_compiler_no_builtin_flag=
7794
7795 if test "$GCC" = yes; then
7796 case $cc_basename in
7797 nvcc*)
7798 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7799 *)
7800 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7801 esac
7802
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7804 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7805 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 lt_cv_prog_compiler_rtti_exceptions=no
7809 ac_outfile=conftest.$ac_objext
7810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7811 lt_compiler_flag="-fno-rtti -fno-exceptions"
7812 # Insert the option either (1) after the last *FLAGS variable, or
7813 # (2) before a word containing "conftest.", or (3) at the end.
7814 # Note that $ac_compile itself does not contain backslashes and begins
7815 # with a dollar sign (not a hyphen), so the echo should work correctly.
7816 # The option is referenced via a variable to avoid confusing sed.
7817 lt_compile=`echo "$ac_compile" | $SED \
7818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7820 -e 's:$: $lt_compiler_flag:'`
7821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7822 (eval "$lt_compile" 2>conftest.err)
7823 ac_status=$?
7824 cat conftest.err >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 if (exit $ac_status) && test -s "$ac_outfile"; then
7827 # The compiler can only warn and ignore the option if not recognized
7828 # So say no if there are warnings other than the usual output.
7829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7831 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7832 lt_cv_prog_compiler_rtti_exceptions=yes
7833 fi
7834 fi
7835 $RM conftest*
7836
7837 fi
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7839 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7840
7841 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7842 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7843 else
7844 :
7845 fi
7846
7847 fi
7848
7849
7850
7851
7852
7853
7854 lt_prog_compiler_wl=
7855 lt_prog_compiler_pic=
7856 lt_prog_compiler_static=
7857
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7859 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7860
7861 if test "$GCC" = yes; then
7862 lt_prog_compiler_wl='-Wl,'
7863 lt_prog_compiler_static='-static'
7864
7865 case $host_os in
7866 aix*)
7867 # All AIX code is PIC.
7868 if test "$host_cpu" = ia64; then
7869 # AIX 5 now supports IA64 processor
7870 lt_prog_compiler_static='-Bstatic'
7871 fi
7872 ;;
7873
7874 amigaos*)
7875 case $host_cpu in
7876 powerpc)
7877 # see comment about AmigaOS4 .so support
7878 lt_prog_compiler_pic='-fPIC'
7879 ;;
7880 m68k)
7881 # FIXME: we need at least 68020 code to build shared libraries, but
7882 # adding the `-m68020' flag to GCC prevents building anything better,
7883 # like `-m68040'.
7884 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7885 ;;
7886 esac
7887 ;;
7888
7889 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7890 # PIC is the default for these OSes.
7891 ;;
7892
7893 mingw* | cygwin* | pw32* | os2* | cegcc*)
7894 # This hack is so that the source file can tell whether it is being
7895 # built for inclusion in a dll (and should export symbols for example).
7896 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7897 # (--disable-auto-import) libraries
7898 lt_prog_compiler_pic='-DDLL_EXPORT'
7899 ;;
7900
7901 darwin* | rhapsody*)
7902 # PIC is the default on this platform
7903 # Common symbols not allowed in MH_DYLIB files
7904 lt_prog_compiler_pic='-fno-common'
7905 ;;
7906
7907 haiku*)
7908 # PIC is the default for Haiku.
7909 # The "-static" flag exists, but is broken.
7910 lt_prog_compiler_static=
7911 ;;
7912
7913 hpux*)
7914 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7915 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7916 # sets the default TLS model and affects inlining.
7917 case $host_cpu in
7918 hppa*64*)
7919 # +Z the default
7920 ;;
7921 *)
7922 lt_prog_compiler_pic='-fPIC'
7923 ;;
7924 esac
7925 ;;
7926
7927 interix[3-9]*)
7928 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7929 # Instead, we relocate shared libraries at runtime.
7930 ;;
7931
7932 msdosdjgpp*)
7933 # Just because we use GCC doesn't mean we suddenly get shared libraries
7934 # on systems that don't support them.
7935 lt_prog_compiler_can_build_shared=no
7936 enable_shared=no
7937 ;;
7938
7939 *nto* | *qnx*)
7940 # QNX uses GNU C++, but need to define -shared option too, otherwise
7941 # it will coredump.
7942 lt_prog_compiler_pic='-fPIC -shared'
7943 ;;
7944
7945 sysv4*MP*)
7946 if test -d /usr/nec; then
7947 lt_prog_compiler_pic=-Kconform_pic
7948 fi
7949 ;;
7950
7951 *)
7952 lt_prog_compiler_pic='-fPIC'
7953 ;;
7954 esac
7955
7956 case $cc_basename in
7957 nvcc*) # Cuda Compiler Driver 2.2
7958 lt_prog_compiler_wl='-Xlinker '
7959 lt_prog_compiler_pic='-Xcompiler -fPIC'
7960 ;;
7961 esac
7962 else
7963 # PORTME Check for flag to pass linker flags through the system compiler.
7964 case $host_os in
7965 aix*)
7966 lt_prog_compiler_wl='-Wl,'
7967 if test "$host_cpu" = ia64; then
7968 # AIX 5 now supports IA64 processor
7969 lt_prog_compiler_static='-Bstatic'
7970 else
7971 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7972 fi
7973 ;;
7974
7975 mingw* | cygwin* | pw32* | os2* | cegcc*)
7976 # This hack is so that the source file can tell whether it is being
7977 # built for inclusion in a dll (and should export symbols for example).
7978 lt_prog_compiler_pic='-DDLL_EXPORT'
7979 ;;
7980
7981 hpux9* | hpux10* | hpux11*)
7982 lt_prog_compiler_wl='-Wl,'
7983 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7984 # not for PA HP-UX.
7985 case $host_cpu in
7986 hppa*64*|ia64*)
7987 # +Z the default
7988 ;;
7989 *)
7990 lt_prog_compiler_pic='+Z'
7991 ;;
7992 esac
7993 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7994 lt_prog_compiler_static='${wl}-a ${wl}archive'
7995 ;;
7996
7997 irix5* | irix6* | nonstopux*)
7998 lt_prog_compiler_wl='-Wl,'
7999 # PIC (with -KPIC) is the default.
8000 lt_prog_compiler_static='-non_shared'
8001 ;;
8002
8003 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8004 case $cc_basename in
8005 # old Intel for x86_64 which still supported -KPIC.
8006 ecc*)
8007 lt_prog_compiler_wl='-Wl,'
8008 lt_prog_compiler_pic='-KPIC'
8009 lt_prog_compiler_static='-static'
8010 ;;
8011 # icc used to be incompatible with GCC.
8012 # ICC 10 doesn't accept -KPIC any more.
8013 icc* | ifort*)
8014 lt_prog_compiler_wl='-Wl,'
8015 lt_prog_compiler_pic='-fPIC'
8016 lt_prog_compiler_static='-static'
8017 ;;
8018 # Lahey Fortran 8.1.
8019 lf95*)
8020 lt_prog_compiler_wl='-Wl,'
8021 lt_prog_compiler_pic='--shared'
8022 lt_prog_compiler_static='--static'
8023 ;;
8024 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8025 # Portland Group compilers (*not* the Pentium gcc compiler,
8026 # which looks to be a dead project)
8027 lt_prog_compiler_wl='-Wl,'
8028 lt_prog_compiler_pic='-fpic'
8029 lt_prog_compiler_static='-Bstatic'
8030 ;;
8031 ccc*)
8032 lt_prog_compiler_wl='-Wl,'
8033 # All Alpha code is PIC.
8034 lt_prog_compiler_static='-non_shared'
8035 ;;
8036 xl* | bgxl* | bgf* | mpixl*)
8037 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8038 lt_prog_compiler_wl='-Wl,'
8039 lt_prog_compiler_pic='-qpic'
8040 lt_prog_compiler_static='-qstaticlink'
8041 ;;
8042 *)
8043 case `$CC -V 2>&1 | sed 5q` in
8044 *Sun\ F* | *Sun*Fortran*)
8045 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8046 lt_prog_compiler_pic='-KPIC'
8047 lt_prog_compiler_static='-Bstatic'
8048 lt_prog_compiler_wl=''
8049 ;;
8050 *Sun\ C*)
8051 # Sun C 5.9
8052 lt_prog_compiler_pic='-KPIC'
8053 lt_prog_compiler_static='-Bstatic'
8054 lt_prog_compiler_wl='-Wl,'
8055 ;;
8056 esac
8057 ;;
8058 esac
8059 ;;
8060
8061 newsos6)
8062 lt_prog_compiler_pic='-KPIC'
8063 lt_prog_compiler_static='-Bstatic'
8064 ;;
8065
8066 *nto* | *qnx*)
8067 # QNX uses GNU C++, but need to define -shared option too, otherwise
8068 # it will coredump.
8069 lt_prog_compiler_pic='-fPIC -shared'
8070 ;;
8071
8072 osf3* | osf4* | osf5*)
8073 lt_prog_compiler_wl='-Wl,'
8074 # All OSF/1 code is PIC.
8075 lt_prog_compiler_static='-non_shared'
8076 ;;
8077
8078 rdos*)
8079 lt_prog_compiler_static='-non_shared'
8080 ;;
8081
8082 solaris*)
8083 lt_prog_compiler_pic='-KPIC'
8084 lt_prog_compiler_static='-Bstatic'
8085 case $cc_basename in
8086 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8087 lt_prog_compiler_wl='-Qoption ld ';;
8088 *)
8089 lt_prog_compiler_wl='-Wl,';;
8090 esac
8091 ;;
8092
8093 sunos4*)
8094 lt_prog_compiler_wl='-Qoption ld '
8095 lt_prog_compiler_pic='-PIC'
8096 lt_prog_compiler_static='-Bstatic'
8097 ;;
8098
8099 sysv4 | sysv4.2uw2* | sysv4.3*)
8100 lt_prog_compiler_wl='-Wl,'
8101 lt_prog_compiler_pic='-KPIC'
8102 lt_prog_compiler_static='-Bstatic'
8103 ;;
8104
8105 sysv4*MP*)
8106 if test -d /usr/nec ;then
8107 lt_prog_compiler_pic='-Kconform_pic'
8108 lt_prog_compiler_static='-Bstatic'
8109 fi
8110 ;;
8111
8112 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8113 lt_prog_compiler_wl='-Wl,'
8114 lt_prog_compiler_pic='-KPIC'
8115 lt_prog_compiler_static='-Bstatic'
8116 ;;
8117
8118 unicos*)
8119 lt_prog_compiler_wl='-Wl,'
8120 lt_prog_compiler_can_build_shared=no
8121 ;;
8122
8123 uts4*)
8124 lt_prog_compiler_pic='-pic'
8125 lt_prog_compiler_static='-Bstatic'
8126 ;;
8127
8128 *)
8129 lt_prog_compiler_can_build_shared=no
8130 ;;
8131 esac
8132 fi
8133
8134 case $host_os in
8135 # For platforms which do not support PIC, -DPIC is meaningless:
8136 *djgpp*)
8137 lt_prog_compiler_pic=
8138 ;;
8139 *)
8140 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8141 ;;
8142 esac
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8144 $as_echo "$lt_prog_compiler_pic" >&6; }
8145
8146
8147
8148
8149
8150
8151 #
8152 # Check to make sure the PIC flag actually works.
8153 #
8154 if test -n "$lt_prog_compiler_pic"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8156 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8157 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 lt_cv_prog_compiler_pic_works=no
8161 ac_outfile=conftest.$ac_objext
8162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8163 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8164 # Insert the option either (1) after the last *FLAGS variable, or
8165 # (2) before a word containing "conftest.", or (3) at the end.
8166 # Note that $ac_compile itself does not contain backslashes and begins
8167 # with a dollar sign (not a hyphen), so the echo should work correctly.
8168 # The option is referenced via a variable to avoid confusing sed.
8169 lt_compile=`echo "$ac_compile" | $SED \
8170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8172 -e 's:$: $lt_compiler_flag:'`
8173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8174 (eval "$lt_compile" 2>conftest.err)
8175 ac_status=$?
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 if (exit $ac_status) && test -s "$ac_outfile"; then
8179 # The compiler can only warn and ignore the option if not recognized
8180 # So say no if there are warnings other than the usual output.
8181 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8183 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8184 lt_cv_prog_compiler_pic_works=yes
8185 fi
8186 fi
8187 $RM conftest*
8188
8189 fi
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8191 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8192
8193 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8194 case $lt_prog_compiler_pic in
8195 "" | " "*) ;;
8196 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8197 esac
8198 else
8199 lt_prog_compiler_pic=
8200 lt_prog_compiler_can_build_shared=no
8201 fi
8202
8203 fi
8204
8205
8206
8207
8208
8209
8210 #
8211 # Check to make sure the static flag actually works.
8212 #
8213 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8215 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8216 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 lt_cv_prog_compiler_static_works=no
8220 save_LDFLAGS="$LDFLAGS"
8221 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8222 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8224 # The linker can only warn and ignore the option if not recognized
8225 # So say no if there are warnings
8226 if test -s conftest.err; then
8227 # Append any errors to the config.log.
8228 cat conftest.err 1>&5
8229 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8231 if diff conftest.exp conftest.er2 >/dev/null; then
8232 lt_cv_prog_compiler_static_works=yes
8233 fi
8234 else
8235 lt_cv_prog_compiler_static_works=yes
8236 fi
8237 fi
8238 $RM -r conftest*
8239 LDFLAGS="$save_LDFLAGS"
8240
8241 fi
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8243 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8244
8245 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8246 :
8247 else
8248 lt_prog_compiler_static=
8249 fi
8250
8251
8252
8253
8254
8255
8256
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8259 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 lt_cv_prog_compiler_c_o=no
8263 $RM -r conftest 2>/dev/null
8264 mkdir conftest
8265 cd conftest
8266 mkdir out
8267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8268
8269 lt_compiler_flag="-o out/conftest2.$ac_objext"
8270 # Insert the option either (1) after the last *FLAGS variable, or
8271 # (2) before a word containing "conftest.", or (3) at the end.
8272 # Note that $ac_compile itself does not contain backslashes and begins
8273 # with a dollar sign (not a hyphen), so the echo should work correctly.
8274 lt_compile=`echo "$ac_compile" | $SED \
8275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8277 -e 's:$: $lt_compiler_flag:'`
8278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8279 (eval "$lt_compile" 2>out/conftest.err)
8280 ac_status=$?
8281 cat out/conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8284 then
8285 # The compiler can only warn and ignore the option if not recognized
8286 # So say no if there are warnings
8287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8290 lt_cv_prog_compiler_c_o=yes
8291 fi
8292 fi
8293 chmod u+w . 2>&5
8294 $RM conftest*
8295 # SGI C++ compiler will create directory out/ii_files/ for
8296 # template instantiation
8297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8298 $RM out/* && rmdir out
8299 cd ..
8300 $RM -r conftest
8301 $RM conftest*
8302
8303 fi
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8305 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8306
8307
8308
8309
8310
8311
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8313 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8314 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 lt_cv_prog_compiler_c_o=no
8318 $RM -r conftest 2>/dev/null
8319 mkdir conftest
8320 cd conftest
8321 mkdir out
8322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8323
8324 lt_compiler_flag="-o out/conftest2.$ac_objext"
8325 # Insert the option either (1) after the last *FLAGS variable, or
8326 # (2) before a word containing "conftest.", or (3) at the end.
8327 # Note that $ac_compile itself does not contain backslashes and begins
8328 # with a dollar sign (not a hyphen), so the echo should work correctly.
8329 lt_compile=`echo "$ac_compile" | $SED \
8330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8332 -e 's:$: $lt_compiler_flag:'`
8333 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8334 (eval "$lt_compile" 2>out/conftest.err)
8335 ac_status=$?
8336 cat out/conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8339 then
8340 # The compiler can only warn and ignore the option if not recognized
8341 # So say no if there are warnings
8342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8343 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8344 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8345 lt_cv_prog_compiler_c_o=yes
8346 fi
8347 fi
8348 chmod u+w . 2>&5
8349 $RM conftest*
8350 # SGI C++ compiler will create directory out/ii_files/ for
8351 # template instantiation
8352 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8353 $RM out/* && rmdir out
8354 cd ..
8355 $RM -r conftest
8356 $RM conftest*
8357
8358 fi
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8360 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8361
8362
8363
8364
8365 hard_links="nottested"
8366 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8367 # do not overwrite the value of need_locks provided by the user
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8369 $as_echo_n "checking if we can lock with hard links... " >&6; }
8370 hard_links=yes
8371 $RM conftest*
8372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8373 touch conftest.a
8374 ln conftest.a conftest.b 2>&5 || hard_links=no
8375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8377 $as_echo "$hard_links" >&6; }
8378 if test "$hard_links" = no; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8380 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8381 need_locks=warn
8382 fi
8383 else
8384 need_locks=no
8385 fi
8386
8387
8388
8389
8390
8391
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8393 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8394
8395 runpath_var=
8396 allow_undefined_flag=
8397 always_export_symbols=no
8398 archive_cmds=
8399 archive_expsym_cmds=
8400 compiler_needs_object=no
8401 enable_shared_with_static_runtimes=no
8402 export_dynamic_flag_spec=
8403 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8404 hardcode_automatic=no
8405 hardcode_direct=no
8406 hardcode_direct_absolute=no
8407 hardcode_libdir_flag_spec=
8408 hardcode_libdir_flag_spec_ld=
8409 hardcode_libdir_separator=
8410 hardcode_minus_L=no
8411 hardcode_shlibpath_var=unsupported
8412 inherit_rpath=no
8413 link_all_deplibs=unknown
8414 module_cmds=
8415 module_expsym_cmds=
8416 old_archive_from_new_cmds=
8417 old_archive_from_expsyms_cmds=
8418 thread_safe_flag_spec=
8419 whole_archive_flag_spec=
8420 # include_expsyms should be a list of space-separated symbols to be *always*
8421 # included in the symbol list
8422 include_expsyms=
8423 # exclude_expsyms can be an extended regexp of symbols to exclude
8424 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8425 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8426 # as well as any symbol that contains `d'.
8427 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8428 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8429 # platforms (ab)use it in PIC code, but their linkers get confused if
8430 # the symbol is explicitly referenced. Since portable code cannot
8431 # rely on this symbol name, it's probably fine to never include it in
8432 # preloaded symbol tables.
8433 # Exclude shared library initialization/finalization symbols.
8434 extract_expsyms_cmds=
8435
8436 case $host_os in
8437 cygwin* | mingw* | pw32* | cegcc*)
8438 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8439 # When not using gcc, we currently assume that we are using
8440 # Microsoft Visual C++.
8441 if test "$GCC" != yes; then
8442 with_gnu_ld=no
8443 fi
8444 ;;
8445 interix*)
8446 # we just hope/assume this is gcc and not c89 (= MSVC++)
8447 with_gnu_ld=yes
8448 ;;
8449 openbsd*)
8450 with_gnu_ld=no
8451 ;;
8452 esac
8453
8454 ld_shlibs=yes
8455
8456 # On some targets, GNU ld is compatible enough with the native linker
8457 # that we're better off using the native interface for both.
8458 lt_use_gnu_ld_interface=no
8459 if test "$with_gnu_ld" = yes; then
8460 case $host_os in
8461 aix*)
8462 # The AIX port of GNU ld has always aspired to compatibility
8463 # with the native linker. However, as the warning in the GNU ld
8464 # block says, versions before 2.19.5* couldn't really create working
8465 # shared libraries, regardless of the interface used.
8466 case `$LD -v 2>&1` in
8467 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8468 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8469 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8470 *)
8471 lt_use_gnu_ld_interface=yes
8472 ;;
8473 esac
8474 ;;
8475 *)
8476 lt_use_gnu_ld_interface=yes
8477 ;;
8478 esac
8479 fi
8480
8481 if test "$lt_use_gnu_ld_interface" = yes; then
8482 # If archive_cmds runs LD, not CC, wlarc should be empty
8483 wlarc='${wl}'
8484
8485 # Set some defaults for GNU ld with shared library support. These
8486 # are reset later if shared libraries are not supported. Putting them
8487 # here allows them to be overridden if necessary.
8488 runpath_var=LD_RUN_PATH
8489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8490 export_dynamic_flag_spec='${wl}--export-dynamic'
8491 # ancient GNU ld didn't support --whole-archive et. al.
8492 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8493 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8494 else
8495 whole_archive_flag_spec=
8496 fi
8497 supports_anon_versioning=no
8498 case `$LD -v 2>&1` in
8499 *GNU\ gold*) supports_anon_versioning=yes ;;
8500 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8501 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8502 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8503 *\ 2.11.*) ;; # other 2.11 versions
8504 *) supports_anon_versioning=yes ;;
8505 esac
8506
8507 # See if GNU ld supports shared libraries.
8508 case $host_os in
8509 aix[3-9]*)
8510 # On AIX/PPC, the GNU linker is very broken
8511 if test "$host_cpu" != ia64; then
8512 ld_shlibs=no
8513 cat <<_LT_EOF 1>&2
8514
8515 *** Warning: the GNU linker, at least up to release 2.19, is reported
8516 *** to be unable to reliably create shared libraries on AIX.
8517 *** Therefore, libtool is disabling shared libraries support. If you
8518 *** really care for shared libraries, you may want to install binutils
8519 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8520 *** You will then need to restart the configuration process.
8521
8522 _LT_EOF
8523 fi
8524 ;;
8525
8526 amigaos*)
8527 case $host_cpu in
8528 powerpc)
8529 # see comment about AmigaOS4 .so support
8530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8531 archive_expsym_cmds=''
8532 ;;
8533 m68k)
8534 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)'
8535 hardcode_libdir_flag_spec='-L$libdir'
8536 hardcode_minus_L=yes
8537 ;;
8538 esac
8539 ;;
8540
8541 beos*)
8542 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8543 allow_undefined_flag=unsupported
8544 # Joseph Beckenbach <[email protected]> says some releases of gcc
8545 # support --undefined. This deserves some investigation. FIXME
8546 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8547 else
8548 ld_shlibs=no
8549 fi
8550 ;;
8551
8552 cygwin* | mingw* | pw32* | cegcc*)
8553 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8554 # as there is no search path for DLLs.
8555 hardcode_libdir_flag_spec='-L$libdir'
8556 export_dynamic_flag_spec='${wl}--export-all-symbols'
8557 allow_undefined_flag=unsupported
8558 always_export_symbols=no
8559 enable_shared_with_static_runtimes=yes
8560 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8561
8562 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8564 # If the export-symbols file already is a .def file (1st line
8565 # is EXPORTS), use it as is; otherwise, prepend...
8566 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8567 cp $export_symbols $output_objdir/$soname.def;
8568 else
8569 echo EXPORTS > $output_objdir/$soname.def;
8570 cat $export_symbols >> $output_objdir/$soname.def;
8571 fi~
8572 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8573 else
8574 ld_shlibs=no
8575 fi
8576 ;;
8577
8578 haiku*)
8579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8580 link_all_deplibs=yes
8581 ;;
8582
8583 interix[3-9]*)
8584 hardcode_direct=no
8585 hardcode_shlibpath_var=no
8586 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8587 export_dynamic_flag_spec='${wl}-E'
8588 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8589 # Instead, shared libraries are loaded at an image base (0x10000000 by
8590 # default) and relocated if they conflict, which is a slow very memory
8591 # consuming and fragmenting process. To avoid this, we pick a random,
8592 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8593 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8594 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8595 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'
8596 ;;
8597
8598 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8599 tmp_diet=no
8600 if test "$host_os" = linux-dietlibc; then
8601 case $cc_basename in
8602 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8603 esac
8604 fi
8605 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8606 && test "$tmp_diet" = no
8607 then
8608 tmp_addflag=
8609 tmp_sharedflag='-shared'
8610 case $cc_basename,$host_cpu in
8611 pgcc*) # Portland Group C compiler
8612 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'
8613 tmp_addflag=' $pic_flag'
8614 ;;
8615 pgf77* | pgf90* | pgf95* | pgfortran*)
8616 # Portland Group f77 and f90 compilers
8617 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'
8618 tmp_addflag=' $pic_flag -Mnomain' ;;
8619 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8620 tmp_addflag=' -i_dynamic' ;;
8621 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8622 tmp_addflag=' -i_dynamic -nofor_main' ;;
8623 ifc* | ifort*) # Intel Fortran compiler
8624 tmp_addflag=' -nofor_main' ;;
8625 lf95*) # Lahey Fortran 8.1
8626 whole_archive_flag_spec=
8627 tmp_sharedflag='--shared' ;;
8628 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8629 tmp_sharedflag='-qmkshrobj'
8630 tmp_addflag= ;;
8631 nvcc*) # Cuda Compiler Driver 2.2
8632 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'
8633 compiler_needs_object=yes
8634 ;;
8635 esac
8636 case `$CC -V 2>&1 | sed 5q` in
8637 *Sun\ C*) # Sun C 5.9
8638 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'
8639 compiler_needs_object=yes
8640 tmp_sharedflag='-G' ;;
8641 *Sun\ F*) # Sun Fortran 8.3
8642 tmp_sharedflag='-G' ;;
8643 esac
8644 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8645
8646 if test "x$supports_anon_versioning" = xyes; then
8647 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8648 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8649 echo "local: *; };" >> $output_objdir/$libname.ver~
8650 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8651 fi
8652
8653 case $cc_basename in
8654 xlf* | bgf* | bgxlf* | mpixlf*)
8655 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8656 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8657 hardcode_libdir_flag_spec=
8658 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8659 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8660 if test "x$supports_anon_versioning" = xyes; then
8661 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8663 echo "local: *; };" >> $output_objdir/$libname.ver~
8664 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8665 fi
8666 ;;
8667 esac
8668 else
8669 ld_shlibs=no
8670 fi
8671 ;;
8672
8673 netbsd*)
8674 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8675 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8676 wlarc=
8677 else
8678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8679 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8680 fi
8681 ;;
8682
8683 solaris*)
8684 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8685 ld_shlibs=no
8686 cat <<_LT_EOF 1>&2
8687
8688 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8689 *** create shared libraries on Solaris systems. Therefore, libtool
8690 *** is disabling shared libraries support. We urge you to upgrade GNU
8691 *** binutils to release 2.9.1 or newer. Another option is to modify
8692 *** your PATH or compiler configuration so that the native linker is
8693 *** used, and then restart.
8694
8695 _LT_EOF
8696 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8699 else
8700 ld_shlibs=no
8701 fi
8702 ;;
8703
8704 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8705 case `$LD -v 2>&1` in
8706 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8707 ld_shlibs=no
8708 cat <<_LT_EOF 1>&2
8709
8710 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8711 *** reliably create shared libraries on SCO systems. Therefore, libtool
8712 *** is disabling shared libraries support. We urge you to upgrade GNU
8713 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8714 *** your PATH or compiler configuration so that the native linker is
8715 *** used, and then restart.
8716
8717 _LT_EOF
8718 ;;
8719 *)
8720 # For security reasons, it is highly recommended that you always
8721 # use absolute paths for naming shared libraries, and exclude the
8722 # DT_RUNPATH tag from executables and libraries. But doing so
8723 # requires that you compile everything twice, which is a pain.
8724 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8728 else
8729 ld_shlibs=no
8730 fi
8731 ;;
8732 esac
8733 ;;
8734
8735 sunos4*)
8736 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8737 wlarc=
8738 hardcode_direct=yes
8739 hardcode_shlibpath_var=no
8740 ;;
8741
8742 *)
8743 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8745 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8746 else
8747 ld_shlibs=no
8748 fi
8749 ;;
8750 esac
8751
8752 if test "$ld_shlibs" = no; then
8753 runpath_var=
8754 hardcode_libdir_flag_spec=
8755 export_dynamic_flag_spec=
8756 whole_archive_flag_spec=
8757 fi
8758 else
8759 # PORTME fill in a description of your system's linker (not GNU ld)
8760 case $host_os in
8761 aix3*)
8762 allow_undefined_flag=unsupported
8763 always_export_symbols=yes
8764 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'
8765 # Note: this linker hardcodes the directories in LIBPATH if there
8766 # are no directories specified by -L.
8767 hardcode_minus_L=yes
8768 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8769 # Neither direct hardcoding nor static linking is supported with a
8770 # broken collect2.
8771 hardcode_direct=unsupported
8772 fi
8773 ;;
8774
8775 aix[4-9]*)
8776 if test "$host_cpu" = ia64; then
8777 # On IA64, the linker does run time linking by default, so we don't
8778 # have to do anything special.
8779 aix_use_runtimelinking=no
8780 exp_sym_flag='-Bexport'
8781 no_entry_flag=""
8782 else
8783 # If we're using GNU nm, then we don't want the "-C" option.
8784 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8785 # Also, AIX nm treats weak defined symbols like other global
8786 # defined symbols, whereas GNU nm marks them as "W".
8787 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8788 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8789 else
8790 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8791 fi
8792 aix_use_runtimelinking=no
8793
8794 # Test if we are trying to use run time linking or normal
8795 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8796 # need to do runtime linking.
8797 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8798 for ld_flag in $LDFLAGS; do
8799 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8800 aix_use_runtimelinking=yes
8801 break
8802 fi
8803 done
8804 ;;
8805 esac
8806
8807 exp_sym_flag='-bexport'
8808 no_entry_flag='-bnoentry'
8809 fi
8810
8811 # When large executables or shared objects are built, AIX ld can
8812 # have problems creating the table of contents. If linking a library
8813 # or program results in "error TOC overflow" add -mminimal-toc to
8814 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8815 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8816
8817 archive_cmds=''
8818 hardcode_direct=yes
8819 hardcode_direct_absolute=yes
8820 hardcode_libdir_separator=':'
8821 link_all_deplibs=yes
8822 file_list_spec='${wl}-f,'
8823
8824 if test "$GCC" = yes; then
8825 case $host_os in aix4.[012]|aix4.[012].*)
8826 # We only want to do this on AIX 4.2 and lower, the check
8827 # below for broken collect2 doesn't work under 4.3+
8828 collect2name=`${CC} -print-prog-name=collect2`
8829 if test -f "$collect2name" &&
8830 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8831 then
8832 # We have reworked collect2
8833 :
8834 else
8835 # We have old collect2
8836 hardcode_direct=unsupported
8837 # It fails to find uninstalled libraries when the uninstalled
8838 # path is not listed in the libpath. Setting hardcode_minus_L
8839 # to unsupported forces relinking
8840 hardcode_minus_L=yes
8841 hardcode_libdir_flag_spec='-L$libdir'
8842 hardcode_libdir_separator=
8843 fi
8844 ;;
8845 esac
8846 shared_flag='-shared'
8847 if test "$aix_use_runtimelinking" = yes; then
8848 shared_flag="$shared_flag "'${wl}-G'
8849 fi
8850 else
8851 # not using gcc
8852 if test "$host_cpu" = ia64; then
8853 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8854 # chokes on -Wl,-G. The following line is correct:
8855 shared_flag='-G'
8856 else
8857 if test "$aix_use_runtimelinking" = yes; then
8858 shared_flag='${wl}-G'
8859 else
8860 shared_flag='${wl}-bM:SRE'
8861 fi
8862 fi
8863 fi
8864
8865 export_dynamic_flag_spec='${wl}-bexpall'
8866 # It seems that -bexpall does not export symbols beginning with
8867 # underscore (_), so it is better to generate a list of symbols to export.
8868 always_export_symbols=yes
8869 if test "$aix_use_runtimelinking" = yes; then
8870 # Warning - without using the other runtime loading flags (-brtl),
8871 # -berok will link without error, but may produce a broken library.
8872 allow_undefined_flag='-berok'
8873 # Determine the default libpath from the value encoded in an
8874 # empty executable.
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8877
8878 int
8879 main ()
8880 {
8881
8882 ;
8883 return 0;
8884 }
8885 _ACEOF
8886 if ac_fn_c_try_link "$LINENO"; then :
8887
8888 lt_aix_libpath_sed='
8889 /Import File Strings/,/^$/ {
8890 /^0/ {
8891 s/^0 *\(.*\)$/\1/
8892 p
8893 }
8894 }'
8895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8896 # Check for a 64-bit object if we didn't find anything.
8897 if test -z "$aix_libpath"; then
8898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8899 fi
8900 fi
8901 rm -f core conftest.err conftest.$ac_objext \
8902 conftest$ac_exeext conftest.$ac_ext
8903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8904
8905 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8906 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8907 else
8908 if test "$host_cpu" = ia64; then
8909 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8910 allow_undefined_flag="-z nodefs"
8911 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"
8912 else
8913 # Determine the default libpath from the value encoded in an
8914 # empty executable.
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917
8918 int
8919 main ()
8920 {
8921
8922 ;
8923 return 0;
8924 }
8925 _ACEOF
8926 if ac_fn_c_try_link "$LINENO"; then :
8927
8928 lt_aix_libpath_sed='
8929 /Import File Strings/,/^$/ {
8930 /^0/ {
8931 s/^0 *\(.*\)$/\1/
8932 p
8933 }
8934 }'
8935 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8936 # Check for a 64-bit object if we didn't find anything.
8937 if test -z "$aix_libpath"; then
8938 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8939 fi
8940 fi
8941 rm -f core conftest.err conftest.$ac_objext \
8942 conftest$ac_exeext conftest.$ac_ext
8943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8944
8945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8946 # Warning - without using the other run time loading flags,
8947 # -berok will link without error, but may produce a broken library.
8948 no_undefined_flag=' ${wl}-bernotok'
8949 allow_undefined_flag=' ${wl}-berok'
8950 if test "$with_gnu_ld" = yes; then
8951 # We only use this code for GNU lds that support --whole-archive.
8952 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8953 else
8954 # Exported symbols can be pulled into shared objects from archives
8955 whole_archive_flag_spec='$convenience'
8956 fi
8957 archive_cmds_need_lc=yes
8958 # This is similar to how AIX traditionally builds its shared libraries.
8959 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8960 fi
8961 fi
8962 ;;
8963
8964 amigaos*)
8965 case $host_cpu in
8966 powerpc)
8967 # see comment about AmigaOS4 .so support
8968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969 archive_expsym_cmds=''
8970 ;;
8971 m68k)
8972 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)'
8973 hardcode_libdir_flag_spec='-L$libdir'
8974 hardcode_minus_L=yes
8975 ;;
8976 esac
8977 ;;
8978
8979 bsdi[45]*)
8980 export_dynamic_flag_spec=-rdynamic
8981 ;;
8982
8983 cygwin* | mingw* | pw32* | cegcc*)
8984 # When not using gcc, we currently assume that we are using
8985 # Microsoft Visual C++.
8986 # hardcode_libdir_flag_spec is actually meaningless, as there is
8987 # no search path for DLLs.
8988 hardcode_libdir_flag_spec=' '
8989 allow_undefined_flag=unsupported
8990 # Tell ltmain to make .lib files, not .a files.
8991 libext=lib
8992 # Tell ltmain to make .dll files, not .so files.
8993 shrext_cmds=".dll"
8994 # FIXME: Setting linknames here is a bad hack.
8995 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8996 # The linker will automatically build a .lib file if we build a DLL.
8997 old_archive_from_new_cmds='true'
8998 # FIXME: Should let the user specify the lib program.
8999 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9000 fix_srcfile_path='`cygpath -w "$srcfile"`'
9001 enable_shared_with_static_runtimes=yes
9002 ;;
9003
9004 darwin* | rhapsody*)
9005
9006
9007 archive_cmds_need_lc=no
9008 hardcode_direct=no
9009 hardcode_automatic=yes
9010 hardcode_shlibpath_var=unsupported
9011 if test "$lt_cv_ld_force_load" = "yes"; then
9012 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\"`'
9013 else
9014 whole_archive_flag_spec=''
9015 fi
9016 link_all_deplibs=yes
9017 allow_undefined_flag="$_lt_dar_allow_undefined"
9018 case $cc_basename in
9019 ifort*) _lt_dar_can_shared=yes ;;
9020 *) _lt_dar_can_shared=$GCC ;;
9021 esac
9022 if test "$_lt_dar_can_shared" = "yes"; then
9023 output_verbose_link_cmd=func_echo_all
9024 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9025 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9026 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}"
9027 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}"
9028
9029 else
9030 ld_shlibs=no
9031 fi
9032
9033 ;;
9034
9035 dgux*)
9036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9037 hardcode_libdir_flag_spec='-L$libdir'
9038 hardcode_shlibpath_var=no
9039 ;;
9040
9041 freebsd1*)
9042 ld_shlibs=no
9043 ;;
9044
9045 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9046 # support. Future versions do this automatically, but an explicit c++rt0.o
9047 # does not break anything, and helps significantly (at the cost of a little
9048 # extra space).
9049 freebsd2.2*)
9050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9051 hardcode_libdir_flag_spec='-R$libdir'
9052 hardcode_direct=yes
9053 hardcode_shlibpath_var=no
9054 ;;
9055
9056 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9057 freebsd2*)
9058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9059 hardcode_direct=yes
9060 hardcode_minus_L=yes
9061 hardcode_shlibpath_var=no
9062 ;;
9063
9064 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9065 freebsd* | dragonfly*)
9066 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9067 hardcode_libdir_flag_spec='-R$libdir'
9068 hardcode_direct=yes
9069 hardcode_shlibpath_var=no
9070 ;;
9071
9072 hpux9*)
9073 if test "$GCC" = yes; then
9074 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9075 else
9076 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9077 fi
9078 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9079 hardcode_libdir_separator=:
9080 hardcode_direct=yes
9081
9082 # hardcode_minus_L: Not really in the search PATH,
9083 # but as the default location of the library.
9084 hardcode_minus_L=yes
9085 export_dynamic_flag_spec='${wl}-E'
9086 ;;
9087
9088 hpux10*)
9089 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9090 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9091 else
9092 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9093 fi
9094 if test "$with_gnu_ld" = no; then
9095 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9096 hardcode_libdir_flag_spec_ld='+b $libdir'
9097 hardcode_libdir_separator=:
9098 hardcode_direct=yes
9099 hardcode_direct_absolute=yes
9100 export_dynamic_flag_spec='${wl}-E'
9101 # hardcode_minus_L: Not really in the search PATH,
9102 # but as the default location of the library.
9103 hardcode_minus_L=yes
9104 fi
9105 ;;
9106
9107 hpux11*)
9108 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9109 case $host_cpu in
9110 hppa*64*)
9111 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9112 ;;
9113 ia64*)
9114 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9115 ;;
9116 *)
9117 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9118 ;;
9119 esac
9120 else
9121 case $host_cpu in
9122 hppa*64*)
9123 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9124 ;;
9125 ia64*)
9126 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9127 ;;
9128 *)
9129
9130 # Older versions of the 11.00 compiler do not understand -b yet
9131 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9133 $as_echo_n "checking if $CC understands -b... " >&6; }
9134 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 lt_cv_prog_compiler__b=no
9138 save_LDFLAGS="$LDFLAGS"
9139 LDFLAGS="$LDFLAGS -b"
9140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9142 # The linker can only warn and ignore the option if not recognized
9143 # So say no if there are warnings
9144 if test -s conftest.err; then
9145 # Append any errors to the config.log.
9146 cat conftest.err 1>&5
9147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9149 if diff conftest.exp conftest.er2 >/dev/null; then
9150 lt_cv_prog_compiler__b=yes
9151 fi
9152 else
9153 lt_cv_prog_compiler__b=yes
9154 fi
9155 fi
9156 $RM -r conftest*
9157 LDFLAGS="$save_LDFLAGS"
9158
9159 fi
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9161 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9162
9163 if test x"$lt_cv_prog_compiler__b" = xyes; then
9164 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9165 else
9166 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9167 fi
9168
9169 ;;
9170 esac
9171 fi
9172 if test "$with_gnu_ld" = no; then
9173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9174 hardcode_libdir_separator=:
9175
9176 case $host_cpu in
9177 hppa*64*|ia64*)
9178 hardcode_direct=no
9179 hardcode_shlibpath_var=no
9180 ;;
9181 *)
9182 hardcode_direct=yes
9183 hardcode_direct_absolute=yes
9184 export_dynamic_flag_spec='${wl}-E'
9185
9186 # hardcode_minus_L: Not really in the search PATH,
9187 # but as the default location of the library.
9188 hardcode_minus_L=yes
9189 ;;
9190 esac
9191 fi
9192 ;;
9193
9194 irix5* | irix6* | nonstopux*)
9195 if test "$GCC" = yes; then
9196 archive_cmds='$CC -shared $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'
9197 # Try to use the -exported_symbol ld option, if it does not
9198 # work, assume that -exports_file does not work either and
9199 # implicitly export all symbols.
9200 save_LDFLAGS="$LDFLAGS"
9201 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9204 int foo(void) {}
9205 _ACEOF
9206 if ac_fn_c_try_link "$LINENO"; then :
9207 archive_expsym_cmds='$CC -shared $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'
9208
9209 fi
9210 rm -f core conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9212 LDFLAGS="$save_LDFLAGS"
9213 else
9214 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'
9215 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'
9216 fi
9217 archive_cmds_need_lc='no'
9218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9219 hardcode_libdir_separator=:
9220 inherit_rpath=yes
9221 link_all_deplibs=yes
9222 ;;
9223
9224 netbsd*)
9225 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9227 else
9228 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9229 fi
9230 hardcode_libdir_flag_spec='-R$libdir'
9231 hardcode_direct=yes
9232 hardcode_shlibpath_var=no
9233 ;;
9234
9235 newsos6)
9236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237 hardcode_direct=yes
9238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9239 hardcode_libdir_separator=:
9240 hardcode_shlibpath_var=no
9241 ;;
9242
9243 *nto* | *qnx*)
9244 ;;
9245
9246 openbsd*)
9247 if test -f /usr/libexec/ld.so; then
9248 hardcode_direct=yes
9249 hardcode_shlibpath_var=no
9250 hardcode_direct_absolute=yes
9251 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9253 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9254 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9255 export_dynamic_flag_spec='${wl}-E'
9256 else
9257 case $host_os in
9258 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9260 hardcode_libdir_flag_spec='-R$libdir'
9261 ;;
9262 *)
9263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9265 ;;
9266 esac
9267 fi
9268 else
9269 ld_shlibs=no
9270 fi
9271 ;;
9272
9273 os2*)
9274 hardcode_libdir_flag_spec='-L$libdir'
9275 hardcode_minus_L=yes
9276 allow_undefined_flag=unsupported
9277 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9278 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9279 ;;
9280
9281 osf3*)
9282 if test "$GCC" = yes; then
9283 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9284 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'
9285 else
9286 allow_undefined_flag=' -expect_unresolved \*'
9287 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'
9288 fi
9289 archive_cmds_need_lc='no'
9290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9291 hardcode_libdir_separator=:
9292 ;;
9293
9294 osf4* | osf5*) # as osf3* with the addition of -msym flag
9295 if test "$GCC" = yes; then
9296 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9297 archive_cmds='$CC -shared${allow_undefined_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'
9298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9299 else
9300 allow_undefined_flag=' -expect_unresolved \*'
9301 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'
9302 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~
9303 $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'
9304
9305 # Both c and cxx compiler support -rpath directly
9306 hardcode_libdir_flag_spec='-rpath $libdir'
9307 fi
9308 archive_cmds_need_lc='no'
9309 hardcode_libdir_separator=:
9310 ;;
9311
9312 solaris*)
9313 no_undefined_flag=' -z defs'
9314 if test "$GCC" = yes; then
9315 wlarc='${wl}'
9316 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9317 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9318 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9319 else
9320 case `$CC -V 2>&1` in
9321 *"Compilers 5.0"*)
9322 wlarc=''
9323 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9325 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9326 ;;
9327 *)
9328 wlarc='${wl}'
9329 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9330 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9331 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9332 ;;
9333 esac
9334 fi
9335 hardcode_libdir_flag_spec='-R$libdir'
9336 hardcode_shlibpath_var=no
9337 case $host_os in
9338 solaris2.[0-5] | solaris2.[0-5].*) ;;
9339 *)
9340 # The compiler driver will combine and reorder linker options,
9341 # but understands `-z linker_flag'. GCC discards it without `$wl',
9342 # but is careful enough not to reorder.
9343 # Supported since Solaris 2.6 (maybe 2.5.1?)
9344 if test "$GCC" = yes; then
9345 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9346 else
9347 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9348 fi
9349 ;;
9350 esac
9351 link_all_deplibs=yes
9352 ;;
9353
9354 sunos4*)
9355 if test "x$host_vendor" = xsequent; then
9356 # Use $CC to link under sequent, because it throws in some extra .o
9357 # files that make .init and .fini sections work.
9358 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9359 else
9360 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9361 fi
9362 hardcode_libdir_flag_spec='-L$libdir'
9363 hardcode_direct=yes
9364 hardcode_minus_L=yes
9365 hardcode_shlibpath_var=no
9366 ;;
9367
9368 sysv4)
9369 case $host_vendor in
9370 sni)
9371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_direct=yes # is this really true???
9373 ;;
9374 siemens)
9375 ## LD is ld it makes a PLAMLIB
9376 ## CC just makes a GrossModule.
9377 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9378 reload_cmds='$CC -r -o $output$reload_objs'
9379 hardcode_direct=no
9380 ;;
9381 motorola)
9382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9383 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9384 ;;
9385 esac
9386 runpath_var='LD_RUN_PATH'
9387 hardcode_shlibpath_var=no
9388 ;;
9389
9390 sysv4.3*)
9391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9392 hardcode_shlibpath_var=no
9393 export_dynamic_flag_spec='-Bexport'
9394 ;;
9395
9396 sysv4*MP*)
9397 if test -d /usr/nec; then
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_shlibpath_var=no
9400 runpath_var=LD_RUN_PATH
9401 hardcode_runpath_var=yes
9402 ld_shlibs=yes
9403 fi
9404 ;;
9405
9406 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9407 no_undefined_flag='${wl}-z,text'
9408 archive_cmds_need_lc=no
9409 hardcode_shlibpath_var=no
9410 runpath_var='LD_RUN_PATH'
9411
9412 if test "$GCC" = yes; then
9413 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 else
9416 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9417 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9418 fi
9419 ;;
9420
9421 sysv5* | sco3.2v5* | sco5v6*)
9422 # Note: We can NOT use -z defs as we might desire, because we do not
9423 # link with -lc, and that would cause any symbols used from libc to
9424 # always be unresolved, which means just about no library would
9425 # ever link correctly. If we're not using GNU ld we use -z text
9426 # though, which does catch some bad symbols but isn't as heavy-handed
9427 # as -z defs.
9428 no_undefined_flag='${wl}-z,text'
9429 allow_undefined_flag='${wl}-z,nodefs'
9430 archive_cmds_need_lc=no
9431 hardcode_shlibpath_var=no
9432 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9433 hardcode_libdir_separator=':'
9434 link_all_deplibs=yes
9435 export_dynamic_flag_spec='${wl}-Bexport'
9436 runpath_var='LD_RUN_PATH'
9437
9438 if test "$GCC" = yes; then
9439 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441 else
9442 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9443 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9444 fi
9445 ;;
9446
9447 uts4*)
9448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_libdir_flag_spec='-L$libdir'
9450 hardcode_shlibpath_var=no
9451 ;;
9452
9453 *)
9454 ld_shlibs=no
9455 ;;
9456 esac
9457
9458 if test x$host_vendor = xsni; then
9459 case $host in
9460 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9461 export_dynamic_flag_spec='${wl}-Blargedynsym'
9462 ;;
9463 esac
9464 fi
9465 fi
9466
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9468 $as_echo "$ld_shlibs" >&6; }
9469 test "$ld_shlibs" = no && can_build_shared=no
9470
9471 with_gnu_ld=$with_gnu_ld
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487 #
9488 # Do we need to explicitly link libc?
9489 #
9490 case "x$archive_cmds_need_lc" in
9491 x|xyes)
9492 # Assume -lc should be added
9493 archive_cmds_need_lc=yes
9494
9495 if test "$enable_shared" = yes && test "$GCC" = yes; then
9496 case $archive_cmds in
9497 *'~'*)
9498 # FIXME: we may have to deal with multi-command sequences.
9499 ;;
9500 '$CC '*)
9501 # Test whether the compiler implicitly links with -lc since on some
9502 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9503 # to ld, don't add -lc before -lgcc.
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9505 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9506 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 $RM conftest*
9510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9511
9512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9513 (eval $ac_compile) 2>&5
9514 ac_status=$?
9515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9516 test $ac_status = 0; } 2>conftest.err; then
9517 soname=conftest
9518 lib=conftest
9519 libobjs=conftest.$ac_objext
9520 deplibs=
9521 wl=$lt_prog_compiler_wl
9522 pic_flag=$lt_prog_compiler_pic
9523 compiler_flags=-v
9524 linker_flags=-v
9525 verstring=
9526 output_objdir=.
9527 libname=conftest
9528 lt_save_allow_undefined_flag=$allow_undefined_flag
9529 allow_undefined_flag=
9530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9531 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9532 ac_status=$?
9533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9534 test $ac_status = 0; }
9535 then
9536 lt_cv_archive_cmds_need_lc=no
9537 else
9538 lt_cv_archive_cmds_need_lc=yes
9539 fi
9540 allow_undefined_flag=$lt_save_allow_undefined_flag
9541 else
9542 cat conftest.err 1>&5
9543 fi
9544 $RM conftest*
9545
9546 fi
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9548 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9549 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9550 ;;
9551 esac
9552 fi
9553 ;;
9554 esac
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9713 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9714
9715 if test "$GCC" = yes; then
9716 case $host_os in
9717 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9718 *) lt_awk_arg="/^libraries:/" ;;
9719 esac
9720 case $host_os in
9721 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9722 *) lt_sed_strip_eq="s,=/,/,g" ;;
9723 esac
9724 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9725 case $lt_search_path_spec in
9726 *\;*)
9727 # if the path contains ";" then we assume it to be the separator
9728 # otherwise default to the standard path separator (i.e. ":") - it is
9729 # assumed that no part of a normal pathname contains ";" but that should
9730 # okay in the real world where ";" in dirpaths is itself problematic.
9731 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9732 ;;
9733 *)
9734 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9735 ;;
9736 esac
9737 # Ok, now we have the path, separated by spaces, we can step through it
9738 # and add multilib dir if necessary.
9739 lt_tmp_lt_search_path_spec=
9740 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9741 for lt_sys_path in $lt_search_path_spec; do
9742 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9743 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9744 else
9745 test -d "$lt_sys_path" && \
9746 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9747 fi
9748 done
9749 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9750 BEGIN {RS=" "; FS="/|\n";} {
9751 lt_foo="";
9752 lt_count=0;
9753 for (lt_i = NF; lt_i > 0; lt_i--) {
9754 if ($lt_i != "" && $lt_i != ".") {
9755 if ($lt_i == "..") {
9756 lt_count++;
9757 } else {
9758 if (lt_count == 0) {
9759 lt_foo="/" $lt_i lt_foo;
9760 } else {
9761 lt_count--;
9762 }
9763 }
9764 }
9765 }
9766 if (lt_foo != "") { lt_freq[lt_foo]++; }
9767 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9768 }'`
9769 # AWK program above erroneously prepends '/' to C:/dos/paths
9770 # for these hosts.
9771 case $host_os in
9772 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9773 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9774 esac
9775 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9776 else
9777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9778 fi
9779 library_names_spec=
9780 libname_spec='lib$name'
9781 soname_spec=
9782 shrext_cmds=".so"
9783 postinstall_cmds=
9784 postuninstall_cmds=
9785 finish_cmds=
9786 finish_eval=
9787 shlibpath_var=
9788 shlibpath_overrides_runpath=unknown
9789 version_type=none
9790 dynamic_linker="$host_os ld.so"
9791 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9792 need_lib_prefix=unknown
9793 hardcode_into_libs=no
9794
9795 # when you set need_version to no, make sure it does not cause -set_version
9796 # flags to be left without arguments
9797 need_version=unknown
9798
9799 case $host_os in
9800 aix3*)
9801 version_type=linux
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9803 shlibpath_var=LIBPATH
9804
9805 # AIX 3 has no versioning support, so we append a major version to the name.
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 ;;
9808
9809 aix[4-9]*)
9810 version_type=linux
9811 need_lib_prefix=no
9812 need_version=no
9813 hardcode_into_libs=yes
9814 if test "$host_cpu" = ia64; then
9815 # AIX 5 supports IA64
9816 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9817 shlibpath_var=LD_LIBRARY_PATH
9818 else
9819 # With GCC up to 2.95.x, collect2 would create an import file
9820 # for dependence libraries. The import file would start with
9821 # the line `#! .'. This would cause the generated library to
9822 # depend on `.', always an invalid library. This was fixed in
9823 # development snapshots of GCC prior to 3.0.
9824 case $host_os in
9825 aix4 | aix4.[01] | aix4.[01].*)
9826 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9827 echo ' yes '
9828 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9829 :
9830 else
9831 can_build_shared=no
9832 fi
9833 ;;
9834 esac
9835 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9836 # soname into executable. Probably we can add versioning support to
9837 # collect2, so additional links can be useful in future.
9838 if test "$aix_use_runtimelinking" = yes; then
9839 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9840 # instead of lib<name>.a to let people know that these are not
9841 # typical AIX shared libraries.
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9843 else
9844 # We preserve .a as extension for shared libraries through AIX4.2
9845 # and later when we are not doing run time linking.
9846 library_names_spec='${libname}${release}.a $libname.a'
9847 soname_spec='${libname}${release}${shared_ext}$major'
9848 fi
9849 shlibpath_var=LIBPATH
9850 fi
9851 ;;
9852
9853 amigaos*)
9854 case $host_cpu in
9855 powerpc)
9856 # Since July 2007 AmigaOS4 officially supports .so libraries.
9857 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9859 ;;
9860 m68k)
9861 library_names_spec='$libname.ixlibrary $libname.a'
9862 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9863 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9864 ;;
9865 esac
9866 ;;
9867
9868 beos*)
9869 library_names_spec='${libname}${shared_ext}'
9870 dynamic_linker="$host_os ld.so"
9871 shlibpath_var=LIBRARY_PATH
9872 ;;
9873
9874 bsdi[45]*)
9875 version_type=linux
9876 need_version=no
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878 soname_spec='${libname}${release}${shared_ext}$major'
9879 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9880 shlibpath_var=LD_LIBRARY_PATH
9881 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9882 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9883 # the default ld.so.conf also contains /usr/contrib/lib and
9884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9885 # libtool to hard-code these into programs
9886 ;;
9887
9888 cygwin* | mingw* | pw32* | cegcc*)
9889 version_type=windows
9890 shrext_cmds=".dll"
9891 need_version=no
9892 need_lib_prefix=no
9893
9894 case $GCC,$host_os in
9895 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9896 library_names_spec='$libname.dll.a'
9897 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9898 postinstall_cmds='base_file=`basename \${file}`~
9899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9900 dldir=$destdir/`dirname \$dlpath`~
9901 test -d \$dldir || mkdir -p \$dldir~
9902 $install_prog $dir/$dlname \$dldir/$dlname~
9903 chmod a+x \$dldir/$dlname~
9904 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9905 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9906 fi'
9907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9908 dlpath=$dir/\$dldll~
9909 $RM \$dlpath'
9910 shlibpath_overrides_runpath=yes
9911
9912 case $host_os in
9913 cygwin*)
9914 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9915 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9916
9917 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9918 ;;
9919 mingw* | cegcc*)
9920 # MinGW DLLs use traditional 'lib' prefix
9921 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9922 ;;
9923 pw32*)
9924 # pw32 DLLs use 'pw' prefix rather than 'lib'
9925 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9926 ;;
9927 esac
9928 ;;
9929
9930 *)
9931 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9932 ;;
9933 esac
9934 dynamic_linker='Win32 ld.exe'
9935 # FIXME: first we should search . and the directory the executable is in
9936 shlibpath_var=PATH
9937 ;;
9938
9939 darwin* | rhapsody*)
9940 dynamic_linker="$host_os dyld"
9941 version_type=darwin
9942 need_lib_prefix=no
9943 need_version=no
9944 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9945 soname_spec='${libname}${release}${major}$shared_ext'
9946 shlibpath_overrides_runpath=yes
9947 shlibpath_var=DYLD_LIBRARY_PATH
9948 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9949
9950 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9951 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9952 ;;
9953
9954 dgux*)
9955 version_type=linux
9956 need_lib_prefix=no
9957 need_version=no
9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9959 soname_spec='${libname}${release}${shared_ext}$major'
9960 shlibpath_var=LD_LIBRARY_PATH
9961 ;;
9962
9963 freebsd1*)
9964 dynamic_linker=no
9965 ;;
9966
9967 freebsd* | dragonfly*)
9968 # DragonFly does not have aout. When/if they implement a new
9969 # versioning mechanism, adjust this.
9970 if test -x /usr/bin/objformat; then
9971 objformat=`/usr/bin/objformat`
9972 else
9973 case $host_os in
9974 freebsd[123]*) objformat=aout ;;
9975 *) objformat=elf ;;
9976 esac
9977 fi
9978 # Handle Gentoo/FreeBSD as it was Linux
9979 case $host_vendor in
9980 gentoo)
9981 version_type=linux ;;
9982 *)
9983 version_type=freebsd-$objformat ;;
9984 esac
9985
9986 case $version_type in
9987 freebsd-elf*)
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9989 need_version=no
9990 need_lib_prefix=no
9991 ;;
9992 freebsd-*)
9993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9994 need_version=yes
9995 ;;
9996 linux)
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9998 soname_spec='${libname}${release}${shared_ext}$major'
9999 need_lib_prefix=no
10000 need_version=no
10001 ;;
10002 esac
10003 shlibpath_var=LD_LIBRARY_PATH
10004 case $host_os in
10005 freebsd2*)
10006 shlibpath_overrides_runpath=yes
10007 ;;
10008 freebsd3.[01]* | freebsdelf3.[01]*)
10009 shlibpath_overrides_runpath=yes
10010 hardcode_into_libs=yes
10011 ;;
10012 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10013 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10014 shlibpath_overrides_runpath=no
10015 hardcode_into_libs=yes
10016 ;;
10017 *) # from 4.6 on, and DragonFly
10018 shlibpath_overrides_runpath=yes
10019 hardcode_into_libs=yes
10020 ;;
10021 esac
10022 ;;
10023
10024 gnu*)
10025 version_type=linux
10026 need_lib_prefix=no
10027 need_version=no
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 hardcode_into_libs=yes
10032 ;;
10033
10034 haiku*)
10035 version_type=linux
10036 need_lib_prefix=no
10037 need_version=no
10038 dynamic_linker="$host_os runtime_loader"
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 shlibpath_var=LIBRARY_PATH
10042 shlibpath_overrides_runpath=yes
10043 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10044 hardcode_into_libs=yes
10045 ;;
10046
10047 hpux9* | hpux10* | hpux11*)
10048 # Give a soname corresponding to the major version so that dld.sl refuses to
10049 # link against other versions.
10050 version_type=sunos
10051 need_lib_prefix=no
10052 need_version=no
10053 case $host_cpu in
10054 ia64*)
10055 shrext_cmds='.so'
10056 hardcode_into_libs=yes
10057 dynamic_linker="$host_os dld.so"
10058 shlibpath_var=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 if test "X$HPUX_IA64_MODE" = X32; then
10063 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10064 else
10065 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10066 fi
10067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10068 ;;
10069 hppa*64*)
10070 shrext_cmds='.sl'
10071 hardcode_into_libs=yes
10072 dynamic_linker="$host_os dld.sl"
10073 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10077 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10079 ;;
10080 *)
10081 shrext_cmds='.sl'
10082 dynamic_linker="$host_os dld.sl"
10083 shlibpath_var=SHLIB_PATH
10084 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086 soname_spec='${libname}${release}${shared_ext}$major'
10087 ;;
10088 esac
10089 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10090 postinstall_cmds='chmod 555 $lib'
10091 # or fails outright, so override atomically:
10092 install_override_mode=555
10093 ;;
10094
10095 interix[3-9]*)
10096 version_type=linux
10097 need_lib_prefix=no
10098 need_version=no
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10100 soname_spec='${libname}${release}${shared_ext}$major'
10101 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10102 shlibpath_var=LD_LIBRARY_PATH
10103 shlibpath_overrides_runpath=no
10104 hardcode_into_libs=yes
10105 ;;
10106
10107 irix5* | irix6* | nonstopux*)
10108 case $host_os in
10109 nonstopux*) version_type=nonstopux ;;
10110 *)
10111 if test "$lt_cv_prog_gnu_ld" = yes; then
10112 version_type=linux
10113 else
10114 version_type=irix
10115 fi ;;
10116 esac
10117 need_lib_prefix=no
10118 need_version=no
10119 soname_spec='${libname}${release}${shared_ext}$major'
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10121 case $host_os in
10122 irix5* | nonstopux*)
10123 libsuff= shlibsuff=
10124 ;;
10125 *)
10126 case $LD in # libtool.m4 will add one of these switches to LD
10127 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10128 libsuff= shlibsuff= libmagic=32-bit;;
10129 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10130 libsuff=32 shlibsuff=N32 libmagic=N32;;
10131 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10132 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10133 *) libsuff= shlibsuff= libmagic=never-match;;
10134 esac
10135 ;;
10136 esac
10137 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10138 shlibpath_overrides_runpath=no
10139 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10140 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10141 hardcode_into_libs=yes
10142 ;;
10143
10144 # No shared lib support for Linux oldld, aout, or coff.
10145 linux*oldld* | linux*aout* | linux*coff*)
10146 dynamic_linker=no
10147 ;;
10148
10149 # This must be Linux ELF.
10150 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10151 version_type=linux
10152 need_lib_prefix=no
10153 need_version=no
10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155 soname_spec='${libname}${release}${shared_ext}$major'
10156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10157 shlibpath_var=LD_LIBRARY_PATH
10158 shlibpath_overrides_runpath=no
10159
10160 # Some binutils ld are patched to set DT_RUNPATH
10161 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10162 $as_echo_n "(cached) " >&6
10163 else
10164 lt_cv_shlibpath_overrides_runpath=no
10165 save_LDFLAGS=$LDFLAGS
10166 save_libdir=$libdir
10167 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10168 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171
10172 int
10173 main ()
10174 {
10175
10176 ;
10177 return 0;
10178 }
10179 _ACEOF
10180 if ac_fn_c_try_link "$LINENO"; then :
10181 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10182 lt_cv_shlibpath_overrides_runpath=yes
10183 fi
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187 LDFLAGS=$save_LDFLAGS
10188 libdir=$save_libdir
10189
10190 fi
10191
10192 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10193
10194 # This implies no fast_install, which is unacceptable.
10195 # Some rework will be needed to allow for fast_install
10196 # before this can be enabled.
10197 hardcode_into_libs=yes
10198
10199 # Append ld.so.conf contents to the search path
10200 if test -f /etc/ld.so.conf; then
10201 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' ' '`
10202 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10203 fi
10204
10205 # We used to test for /lib/ld.so.1 and disable shared libraries on
10206 # powerpc, because MkLinux only supported shared libraries with the
10207 # GNU dynamic linker. Since this was broken with cross compilers,
10208 # most powerpc-linux boxes support dynamic linking these days and
10209 # people can always --disable-shared, the test was removed, and we
10210 # assume the GNU/Linux dynamic linker is in use.
10211 dynamic_linker='GNU/Linux ld.so'
10212 ;;
10213
10214 netbsd*)
10215 version_type=sunos
10216 need_lib_prefix=no
10217 need_version=no
10218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10221 dynamic_linker='NetBSD (a.out) ld.so'
10222 else
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 dynamic_linker='NetBSD ld.elf_so'
10226 fi
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=yes
10229 hardcode_into_libs=yes
10230 ;;
10231
10232 newsos6)
10233 version_type=linux
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=yes
10237 ;;
10238
10239 *nto* | *qnx*)
10240 version_type=qnx
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 shlibpath_overrides_runpath=no
10247 hardcode_into_libs=yes
10248 dynamic_linker='ldqnx.so'
10249 ;;
10250
10251 openbsd*)
10252 version_type=sunos
10253 sys_lib_dlsearch_path_spec="/usr/lib"
10254 need_lib_prefix=no
10255 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10256 case $host_os in
10257 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10258 *) need_version=no ;;
10259 esac
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10264 case $host_os in
10265 openbsd2.[89] | openbsd2.[89].*)
10266 shlibpath_overrides_runpath=no
10267 ;;
10268 *)
10269 shlibpath_overrides_runpath=yes
10270 ;;
10271 esac
10272 else
10273 shlibpath_overrides_runpath=yes
10274 fi
10275 ;;
10276
10277 os2*)
10278 libname_spec='$name'
10279 shrext_cmds=".dll"
10280 need_lib_prefix=no
10281 library_names_spec='$libname${shared_ext} $libname.a'
10282 dynamic_linker='OS/2 ld.exe'
10283 shlibpath_var=LIBPATH
10284 ;;
10285
10286 osf3* | osf4* | osf5*)
10287 version_type=osf
10288 need_lib_prefix=no
10289 need_version=no
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10295 ;;
10296
10297 rdos*)
10298 dynamic_linker=no
10299 ;;
10300
10301 solaris*)
10302 version_type=linux
10303 need_lib_prefix=no
10304 need_version=no
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=yes
10309 hardcode_into_libs=yes
10310 # ldd complains unless libraries are executable
10311 postinstall_cmds='chmod +x $lib'
10312 ;;
10313
10314 sunos4*)
10315 version_type=sunos
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 shlibpath_overrides_runpath=yes
10320 if test "$with_gnu_ld" = yes; then
10321 need_lib_prefix=no
10322 fi
10323 need_version=yes
10324 ;;
10325
10326 sysv4 | sysv4.3*)
10327 version_type=linux
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 case $host_vendor in
10332 sni)
10333 shlibpath_overrides_runpath=no
10334 need_lib_prefix=no
10335 runpath_var=LD_RUN_PATH
10336 ;;
10337 siemens)
10338 need_lib_prefix=no
10339 ;;
10340 motorola)
10341 need_lib_prefix=no
10342 need_version=no
10343 shlibpath_overrides_runpath=no
10344 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10345 ;;
10346 esac
10347 ;;
10348
10349 sysv4*MP*)
10350 if test -d /usr/nec ;then
10351 version_type=linux
10352 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10353 soname_spec='$libname${shared_ext}.$major'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 fi
10356 ;;
10357
10358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10359 version_type=freebsd-elf
10360 need_lib_prefix=no
10361 need_version=no
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 shlibpath_var=LD_LIBRARY_PATH
10365 shlibpath_overrides_runpath=yes
10366 hardcode_into_libs=yes
10367 if test "$with_gnu_ld" = yes; then
10368 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10369 else
10370 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10371 case $host_os in
10372 sco3.2v5*)
10373 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10374 ;;
10375 esac
10376 fi
10377 sys_lib_dlsearch_path_spec='/usr/lib'
10378 ;;
10379
10380 tpf*)
10381 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10382 version_type=linux
10383 need_lib_prefix=no
10384 need_version=no
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 shlibpath_var=LD_LIBRARY_PATH
10387 shlibpath_overrides_runpath=no
10388 hardcode_into_libs=yes
10389 ;;
10390
10391 uts4*)
10392 version_type=linux
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 ;;
10397
10398 *)
10399 dynamic_linker=no
10400 ;;
10401 esac
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10403 $as_echo "$dynamic_linker" >&6; }
10404 test "$dynamic_linker" = no && can_build_shared=no
10405
10406 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10407 if test "$GCC" = yes; then
10408 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10409 fi
10410
10411 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10412 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10413 fi
10414 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10415 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10416 fi
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10510 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10511 hardcode_action=
10512 if test -n "$hardcode_libdir_flag_spec" ||
10513 test -n "$runpath_var" ||
10514 test "X$hardcode_automatic" = "Xyes" ; then
10515
10516 # We can hardcode non-existent directories.
10517 if test "$hardcode_direct" != no &&
10518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10519 # have to relink, otherwise we might link with an installed library
10520 # when we should be linking with a yet-to-be-installed one
10521 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10522 test "$hardcode_minus_L" != no; then
10523 # Linking always hardcodes the temporary library directory.
10524 hardcode_action=relink
10525 else
10526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10527 hardcode_action=immediate
10528 fi
10529 else
10530 # We cannot hardcode anything, or else we can only hardcode existing
10531 # directories.
10532 hardcode_action=unsupported
10533 fi
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10535 $as_echo "$hardcode_action" >&6; }
10536
10537 if test "$hardcode_action" = relink ||
10538 test "$inherit_rpath" = yes; then
10539 # Fast installation is not supported
10540 enable_fast_install=no
10541 elif test "$shlibpath_overrides_runpath" = yes ||
10542 test "$enable_shared" = no; then
10543 # Fast installation is not necessary
10544 enable_fast_install=needless
10545 fi
10546
10547
10548
10549
10550
10551
10552 if test "x$enable_dlopen" != xyes; then
10553 enable_dlopen=unknown
10554 enable_dlopen_self=unknown
10555 enable_dlopen_self_static=unknown
10556 else
10557 lt_cv_dlopen=no
10558 lt_cv_dlopen_libs=
10559
10560 case $host_os in
10561 beos*)
10562 lt_cv_dlopen="load_add_on"
10563 lt_cv_dlopen_libs=
10564 lt_cv_dlopen_self=yes
10565 ;;
10566
10567 mingw* | pw32* | cegcc*)
10568 lt_cv_dlopen="LoadLibrary"
10569 lt_cv_dlopen_libs=
10570 ;;
10571
10572 cygwin*)
10573 lt_cv_dlopen="dlopen"
10574 lt_cv_dlopen_libs=
10575 ;;
10576
10577 darwin*)
10578 # if libdl is installed we need to link against it
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10580 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10581 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10584 ac_check_lib_save_LIBS=$LIBS
10585 LIBS="-ldl $LIBS"
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10588
10589 /* Override any GCC internal prototype to avoid an error.
10590 Use char because int might match the return type of a GCC
10591 builtin and then its argument prototype would still apply. */
10592 #ifdef __cplusplus
10593 extern "C"
10594 #endif
10595 char dlopen ();
10596 int
10597 main ()
10598 {
10599 return dlopen ();
10600 ;
10601 return 0;
10602 }
10603 _ACEOF
10604 if ac_fn_c_try_link "$LINENO"; then :
10605 ac_cv_lib_dl_dlopen=yes
10606 else
10607 ac_cv_lib_dl_dlopen=no
10608 fi
10609 rm -f core conftest.err conftest.$ac_objext \
10610 conftest$ac_exeext conftest.$ac_ext
10611 LIBS=$ac_check_lib_save_LIBS
10612 fi
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10614 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10615 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10617 else
10618
10619 lt_cv_dlopen="dyld"
10620 lt_cv_dlopen_libs=
10621 lt_cv_dlopen_self=yes
10622
10623 fi
10624
10625 ;;
10626
10627 *)
10628 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10629 if test "x$ac_cv_func_shl_load" = x""yes; then :
10630 lt_cv_dlopen="shl_load"
10631 else
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10633 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10634 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 ac_check_lib_save_LIBS=$LIBS
10638 LIBS="-ldld $LIBS"
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10641
10642 /* Override any GCC internal prototype to avoid an error.
10643 Use char because int might match the return type of a GCC
10644 builtin and then its argument prototype would still apply. */
10645 #ifdef __cplusplus
10646 extern "C"
10647 #endif
10648 char shl_load ();
10649 int
10650 main ()
10651 {
10652 return shl_load ();
10653 ;
10654 return 0;
10655 }
10656 _ACEOF
10657 if ac_fn_c_try_link "$LINENO"; then :
10658 ac_cv_lib_dld_shl_load=yes
10659 else
10660 ac_cv_lib_dld_shl_load=no
10661 fi
10662 rm -f core conftest.err conftest.$ac_objext \
10663 conftest$ac_exeext conftest.$ac_ext
10664 LIBS=$ac_check_lib_save_LIBS
10665 fi
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10667 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10668 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10669 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10670 else
10671 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10672 if test "x$ac_cv_func_dlopen" = x""yes; then :
10673 lt_cv_dlopen="dlopen"
10674 else
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10676 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10677 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 ac_check_lib_save_LIBS=$LIBS
10681 LIBS="-ldl $LIBS"
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10684
10685 /* Override any GCC internal prototype to avoid an error.
10686 Use char because int might match the return type of a GCC
10687 builtin and then its argument prototype would still apply. */
10688 #ifdef __cplusplus
10689 extern "C"
10690 #endif
10691 char dlopen ();
10692 int
10693 main ()
10694 {
10695 return dlopen ();
10696 ;
10697 return 0;
10698 }
10699 _ACEOF
10700 if ac_fn_c_try_link "$LINENO"; then :
10701 ac_cv_lib_dl_dlopen=yes
10702 else
10703 ac_cv_lib_dl_dlopen=no
10704 fi
10705 rm -f core conftest.err conftest.$ac_objext \
10706 conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10708 fi
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10710 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10711 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10713 else
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10715 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10716 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-lsvld $LIBS"
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10723
10724 /* Override any GCC internal prototype to avoid an error.
10725 Use char because int might match the return type of a GCC
10726 builtin and then its argument prototype would still apply. */
10727 #ifdef __cplusplus
10728 extern "C"
10729 #endif
10730 char dlopen ();
10731 int
10732 main ()
10733 {
10734 return dlopen ();
10735 ;
10736 return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"; then :
10740 ac_cv_lib_svld_dlopen=yes
10741 else
10742 ac_cv_lib_svld_dlopen=no
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_check_lib_save_LIBS
10747 fi
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10749 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10750 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10752 else
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10754 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10755 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 ac_check_lib_save_LIBS=$LIBS
10759 LIBS="-ldld $LIBS"
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 char dld_link ();
10770 int
10771 main ()
10772 {
10773 return dld_link ();
10774 ;
10775 return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10779 ac_cv_lib_dld_dld_link=yes
10780 else
10781 ac_cv_lib_dld_dld_link=no
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10786 fi
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10788 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10789 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10790 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10791 fi
10792
10793
10794 fi
10795
10796
10797 fi
10798
10799
10800 fi
10801
10802
10803 fi
10804
10805
10806 fi
10807
10808 ;;
10809 esac
10810
10811 if test "x$lt_cv_dlopen" != xno; then
10812 enable_dlopen=yes
10813 else
10814 enable_dlopen=no
10815 fi
10816
10817 case $lt_cv_dlopen in
10818 dlopen)
10819 save_CPPFLAGS="$CPPFLAGS"
10820 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10821
10822 save_LDFLAGS="$LDFLAGS"
10823 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10824
10825 save_LIBS="$LIBS"
10826 LIBS="$lt_cv_dlopen_libs $LIBS"
10827
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10829 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10830 if test "${lt_cv_dlopen_self+set}" = set; then :
10831 $as_echo_n "(cached) " >&6
10832 else
10833 if test "$cross_compiling" = yes; then :
10834 lt_cv_dlopen_self=cross
10835 else
10836 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10837 lt_status=$lt_dlunknown
10838 cat > conftest.$ac_ext <<_LT_EOF
10839 #line $LINENO "configure"
10840 #include "confdefs.h"
10841
10842 #if HAVE_DLFCN_H
10843 #include <dlfcn.h>
10844 #endif
10845
10846 #include <stdio.h>
10847
10848 #ifdef RTLD_GLOBAL
10849 # define LT_DLGLOBAL RTLD_GLOBAL
10850 #else
10851 # ifdef DL_GLOBAL
10852 # define LT_DLGLOBAL DL_GLOBAL
10853 # else
10854 # define LT_DLGLOBAL 0
10855 # endif
10856 #endif
10857
10858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10859 find out it does not work in some platform. */
10860 #ifndef LT_DLLAZY_OR_NOW
10861 # ifdef RTLD_LAZY
10862 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10863 # else
10864 # ifdef DL_LAZY
10865 # define LT_DLLAZY_OR_NOW DL_LAZY
10866 # else
10867 # ifdef RTLD_NOW
10868 # define LT_DLLAZY_OR_NOW RTLD_NOW
10869 # else
10870 # ifdef DL_NOW
10871 # define LT_DLLAZY_OR_NOW DL_NOW
10872 # else
10873 # define LT_DLLAZY_OR_NOW 0
10874 # endif
10875 # endif
10876 # endif
10877 # endif
10878 #endif
10879
10880 /* When -fvisbility=hidden is used, assume the code has been annotated
10881 correspondingly for the symbols needed. */
10882 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10883 void fnord () __attribute__((visibility("default")));
10884 #endif
10885
10886 void fnord () { int i=42; }
10887 int main ()
10888 {
10889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10890 int status = $lt_dlunknown;
10891
10892 if (self)
10893 {
10894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10895 else
10896 {
10897 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10898 else puts (dlerror ());
10899 }
10900 /* dlclose (self); */
10901 }
10902 else
10903 puts (dlerror ());
10904
10905 return status;
10906 }
10907 _LT_EOF
10908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10909 (eval $ac_link) 2>&5
10910 ac_status=$?
10911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10912 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10913 (./conftest; exit; ) >&5 2>/dev/null
10914 lt_status=$?
10915 case x$lt_status in
10916 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10917 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10918 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10919 esac
10920 else :
10921 # compilation failed
10922 lt_cv_dlopen_self=no
10923 fi
10924 fi
10925 rm -fr conftest*
10926
10927
10928 fi
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10930 $as_echo "$lt_cv_dlopen_self" >&6; }
10931
10932 if test "x$lt_cv_dlopen_self" = xyes; then
10933 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10935 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10936 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 if test "$cross_compiling" = yes; then :
10940 lt_cv_dlopen_self_static=cross
10941 else
10942 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10943 lt_status=$lt_dlunknown
10944 cat > conftest.$ac_ext <<_LT_EOF
10945 #line $LINENO "configure"
10946 #include "confdefs.h"
10947
10948 #if HAVE_DLFCN_H
10949 #include <dlfcn.h>
10950 #endif
10951
10952 #include <stdio.h>
10953
10954 #ifdef RTLD_GLOBAL
10955 # define LT_DLGLOBAL RTLD_GLOBAL
10956 #else
10957 # ifdef DL_GLOBAL
10958 # define LT_DLGLOBAL DL_GLOBAL
10959 # else
10960 # define LT_DLGLOBAL 0
10961 # endif
10962 #endif
10963
10964 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10965 find out it does not work in some platform. */
10966 #ifndef LT_DLLAZY_OR_NOW
10967 # ifdef RTLD_LAZY
10968 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10969 # else
10970 # ifdef DL_LAZY
10971 # define LT_DLLAZY_OR_NOW DL_LAZY
10972 # else
10973 # ifdef RTLD_NOW
10974 # define LT_DLLAZY_OR_NOW RTLD_NOW
10975 # else
10976 # ifdef DL_NOW
10977 # define LT_DLLAZY_OR_NOW DL_NOW
10978 # else
10979 # define LT_DLLAZY_OR_NOW 0
10980 # endif
10981 # endif
10982 # endif
10983 # endif
10984 #endif
10985
10986 /* When -fvisbility=hidden is used, assume the code has been annotated
10987 correspondingly for the symbols needed. */
10988 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10989 void fnord () __attribute__((visibility("default")));
10990 #endif
10991
10992 void fnord () { int i=42; }
10993 int main ()
10994 {
10995 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10996 int status = $lt_dlunknown;
10997
10998 if (self)
10999 {
11000 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11001 else
11002 {
11003 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11004 else puts (dlerror ());
11005 }
11006 /* dlclose (self); */
11007 }
11008 else
11009 puts (dlerror ());
11010
11011 return status;
11012 }
11013 _LT_EOF
11014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11015 (eval $ac_link) 2>&5
11016 ac_status=$?
11017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11018 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11019 (./conftest; exit; ) >&5 2>/dev/null
11020 lt_status=$?
11021 case x$lt_status in
11022 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11023 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11024 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11025 esac
11026 else :
11027 # compilation failed
11028 lt_cv_dlopen_self_static=no
11029 fi
11030 fi
11031 rm -fr conftest*
11032
11033
11034 fi
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11036 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11037 fi
11038
11039 CPPFLAGS="$save_CPPFLAGS"
11040 LDFLAGS="$save_LDFLAGS"
11041 LIBS="$save_LIBS"
11042 ;;
11043 esac
11044
11045 case $lt_cv_dlopen_self in
11046 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11047 *) enable_dlopen_self=unknown ;;
11048 esac
11049
11050 case $lt_cv_dlopen_self_static in
11051 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11052 *) enable_dlopen_self_static=unknown ;;
11053 esac
11054 fi
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072 striplib=
11073 old_striplib=
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11075 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11076 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11077 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11078 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11080 $as_echo "yes" >&6; }
11081 else
11082 # FIXME - insert some real tests, host_os isn't really good enough
11083 case $host_os in
11084 darwin*)
11085 if test -n "$STRIP" ; then
11086 striplib="$STRIP -x"
11087 old_striplib="$STRIP -S"
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11089 $as_echo "yes" >&6; }
11090 else
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092 $as_echo "no" >&6; }
11093 fi
11094 ;;
11095 *)
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097 $as_echo "no" >&6; }
11098 ;;
11099 esac
11100 fi
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113 # Report which library types will actually be built
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11115 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11117 $as_echo "$can_build_shared" >&6; }
11118
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11120 $as_echo_n "checking whether to build shared libraries... " >&6; }
11121 test "$can_build_shared" = "no" && enable_shared=no
11122
11123 # On AIX, shared libraries and static libraries use the same namespace, and
11124 # are all built from PIC.
11125 case $host_os in
11126 aix3*)
11127 test "$enable_shared" = yes && enable_static=no
11128 if test -n "$RANLIB"; then
11129 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11130 postinstall_cmds='$RANLIB $lib'
11131 fi
11132 ;;
11133
11134 aix[4-9]*)
11135 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11136 test "$enable_shared" = yes && enable_static=no
11137 fi
11138 ;;
11139 esac
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11141 $as_echo "$enable_shared" >&6; }
11142
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11144 $as_echo_n "checking whether to build static libraries... " >&6; }
11145 # Make sure either enable_shared or enable_static is yes.
11146 test "$enable_shared" = yes || enable_static=yes
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11148 $as_echo "$enable_static" >&6; }
11149
11150
11151
11152
11153 fi
11154 ac_ext=c
11155 ac_cpp='$CPP $CPPFLAGS'
11156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11159
11160 CC="$lt_save_CC"
11161
11162 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11163 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11164 (test "X$CXX" != "Xg++"))) ; then
11165 ac_ext=cpp
11166 ac_cpp='$CXXCPP $CPPFLAGS'
11167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11171 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11172 if test -z "$CXXCPP"; then
11173 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 # Double quotes because CXXCPP needs to be expanded
11177 for CXXCPP in "$CXX -E" "/lib/cpp"
11178 do
11179 ac_preproc_ok=false
11180 for ac_cxx_preproc_warn_flag in '' yes
11181 do
11182 # Use a header file that comes with gcc, so configuring glibc
11183 # with a fresh cross-compiler works.
11184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11185 # <limits.h> exists even on freestanding compilers.
11186 # On the NeXT, cc -E runs the code through the compiler's parser,
11187 # not just through cpp. "Syntax error" is here to catch this case.
11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11190 #ifdef __STDC__
11191 # include <limits.h>
11192 #else
11193 # include <assert.h>
11194 #endif
11195 Syntax error
11196 _ACEOF
11197 if ac_fn_cxx_try_cpp "$LINENO"; then :
11198
11199 else
11200 # Broken: fails on valid input.
11201 continue
11202 fi
11203 rm -f conftest.err conftest.$ac_ext
11204
11205 # OK, works on sane cases. Now check whether nonexistent headers
11206 # can be detected and how.
11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h. */
11209 #include <ac_nonexistent.h>
11210 _ACEOF
11211 if ac_fn_cxx_try_cpp "$LINENO"; then :
11212 # Broken: success on invalid input.
11213 continue
11214 else
11215 # Passes both tests.
11216 ac_preproc_ok=:
11217 break
11218 fi
11219 rm -f conftest.err conftest.$ac_ext
11220
11221 done
11222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11223 rm -f conftest.err conftest.$ac_ext
11224 if $ac_preproc_ok; then :
11225 break
11226 fi
11227
11228 done
11229 ac_cv_prog_CXXCPP=$CXXCPP
11230
11231 fi
11232 CXXCPP=$ac_cv_prog_CXXCPP
11233 else
11234 ac_cv_prog_CXXCPP=$CXXCPP
11235 fi
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11237 $as_echo "$CXXCPP" >&6; }
11238 ac_preproc_ok=false
11239 for ac_cxx_preproc_warn_flag in '' yes
11240 do
11241 # Use a header file that comes with gcc, so configuring glibc
11242 # with a fresh cross-compiler works.
11243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11244 # <limits.h> exists even on freestanding compilers.
11245 # On the NeXT, cc -E runs the code through the compiler's parser,
11246 # not just through cpp. "Syntax error" is here to catch this case.
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #ifdef __STDC__
11250 # include <limits.h>
11251 #else
11252 # include <assert.h>
11253 #endif
11254 Syntax error
11255 _ACEOF
11256 if ac_fn_cxx_try_cpp "$LINENO"; then :
11257
11258 else
11259 # Broken: fails on valid input.
11260 continue
11261 fi
11262 rm -f conftest.err conftest.$ac_ext
11263
11264 # OK, works on sane cases. Now check whether nonexistent headers
11265 # can be detected and how.
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268 #include <ac_nonexistent.h>
11269 _ACEOF
11270 if ac_fn_cxx_try_cpp "$LINENO"; then :
11271 # Broken: success on invalid input.
11272 continue
11273 else
11274 # Passes both tests.
11275 ac_preproc_ok=:
11276 break
11277 fi
11278 rm -f conftest.err conftest.$ac_ext
11279
11280 done
11281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11282 rm -f conftest.err conftest.$ac_ext
11283 if $ac_preproc_ok; then :
11284
11285 else
11286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11288 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11289 See \`config.log' for more details." "$LINENO" 5; }
11290 fi
11291
11292 ac_ext=c
11293 ac_cpp='$CPP $CPPFLAGS'
11294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11297
11298 else
11299 _lt_caught_CXX_error=yes
11300 fi
11301
11302 ac_ext=cpp
11303 ac_cpp='$CXXCPP $CPPFLAGS'
11304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11307
11308 archive_cmds_need_lc_CXX=no
11309 allow_undefined_flag_CXX=
11310 always_export_symbols_CXX=no
11311 archive_expsym_cmds_CXX=
11312 compiler_needs_object_CXX=no
11313 export_dynamic_flag_spec_CXX=
11314 hardcode_direct_CXX=no
11315 hardcode_direct_absolute_CXX=no
11316 hardcode_libdir_flag_spec_CXX=
11317 hardcode_libdir_flag_spec_ld_CXX=
11318 hardcode_libdir_separator_CXX=
11319 hardcode_minus_L_CXX=no
11320 hardcode_shlibpath_var_CXX=unsupported
11321 hardcode_automatic_CXX=no
11322 inherit_rpath_CXX=no
11323 module_cmds_CXX=
11324 module_expsym_cmds_CXX=
11325 link_all_deplibs_CXX=unknown
11326 old_archive_cmds_CXX=$old_archive_cmds
11327 reload_flag_CXX=$reload_flag
11328 reload_cmds_CXX=$reload_cmds
11329 no_undefined_flag_CXX=
11330 whole_archive_flag_spec_CXX=
11331 enable_shared_with_static_runtimes_CXX=no
11332
11333 # Source file extension for C++ test sources.
11334 ac_ext=cpp
11335
11336 # Object file extension for compiled C++ test sources.
11337 objext=o
11338 objext_CXX=$objext
11339
11340 # No sense in running all these tests if we already determined that
11341 # the CXX compiler isn't working. Some variables (like enable_shared)
11342 # are currently assumed to apply to all compilers on this platform,
11343 # and will be corrupted by setting them based on a non-working compiler.
11344 if test "$_lt_caught_CXX_error" != yes; then
11345 # Code to be used in simple compile tests
11346 lt_simple_compile_test_code="int some_variable = 0;"
11347
11348 # Code to be used in simple link tests
11349 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11350
11351 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11352
11353
11354
11355
11356
11357
11358 # If no C compiler was specified, use CC.
11359 LTCC=${LTCC-"$CC"}
11360
11361 # If no C compiler flags were specified, use CFLAGS.
11362 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11363
11364 # Allow CC to be a program name with arguments.
11365 compiler=$CC
11366
11367
11368 # save warnings/boilerplate of simple test code
11369 ac_outfile=conftest.$ac_objext
11370 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11371 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11372 _lt_compiler_boilerplate=`cat conftest.err`
11373 $RM conftest*
11374
11375 ac_outfile=conftest.$ac_objext
11376 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11377 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11378 _lt_linker_boilerplate=`cat conftest.err`
11379 $RM -r conftest*
11380
11381
11382 # Allow CC to be a program name with arguments.
11383 lt_save_CC=$CC
11384 lt_save_LD=$LD
11385 lt_save_GCC=$GCC
11386 GCC=$GXX
11387 lt_save_with_gnu_ld=$with_gnu_ld
11388 lt_save_path_LD=$lt_cv_path_LD
11389 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11390 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11391 else
11392 $as_unset lt_cv_prog_gnu_ld
11393 fi
11394 if test -n "${lt_cv_path_LDCXX+set}"; then
11395 lt_cv_path_LD=$lt_cv_path_LDCXX
11396 else
11397 $as_unset lt_cv_path_LD
11398 fi
11399 test -z "${LDCXX+set}" || LD=$LDCXX
11400 CC=${CXX-"c++"}
11401 compiler=$CC
11402 compiler_CXX=$CC
11403 for cc_temp in $compiler""; do
11404 case $cc_temp in
11405 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11406 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11407 \-*) ;;
11408 *) break;;
11409 esac
11410 done
11411 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11412
11413
11414 if test -n "$compiler"; then
11415 # We don't want -fno-exception when compiling C++ code, so set the
11416 # no_builtin_flag separately
11417 if test "$GXX" = yes; then
11418 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11419 else
11420 lt_prog_compiler_no_builtin_flag_CXX=
11421 fi
11422
11423 if test "$GXX" = yes; then
11424 # Set up default GNU C++ configuration
11425
11426
11427
11428 # Check whether --with-gnu-ld was given.
11429 if test "${with_gnu_ld+set}" = set; then :
11430 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11431 else
11432 with_gnu_ld=no
11433 fi
11434
11435 ac_prog=ld
11436 if test "$GCC" = yes; then
11437 # Check if gcc -print-prog-name=ld gives a path.
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11439 $as_echo_n "checking for ld used by $CC... " >&6; }
11440 case $host in
11441 *-*-mingw*)
11442 # gcc leaves a trailing carriage return which upsets mingw
11443 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11444 *)
11445 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11446 esac
11447 case $ac_prog in
11448 # Accept absolute paths.
11449 [\\/]* | ?:[\\/]*)
11450 re_direlt='/[^/][^/]*/\.\./'
11451 # Canonicalize the pathname of ld
11452 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11453 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11454 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11455 done
11456 test -z "$LD" && LD="$ac_prog"
11457 ;;
11458 "")
11459 # If it fails, then pretend we aren't using GCC.
11460 ac_prog=ld
11461 ;;
11462 *)
11463 # If it is relative, then search for the first ld in PATH.
11464 with_gnu_ld=unknown
11465 ;;
11466 esac
11467 elif test "$with_gnu_ld" = yes; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11469 $as_echo_n "checking for GNU ld... " >&6; }
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11472 $as_echo_n "checking for non-GNU ld... " >&6; }
11473 fi
11474 if test "${lt_cv_path_LD+set}" = set; then :
11475 $as_echo_n "(cached) " >&6
11476 else
11477 if test -z "$LD"; then
11478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11479 for ac_dir in $PATH; do
11480 IFS="$lt_save_ifs"
11481 test -z "$ac_dir" && ac_dir=.
11482 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11483 lt_cv_path_LD="$ac_dir/$ac_prog"
11484 # Check to see if the program is GNU ld. I'd rather use --version,
11485 # but apparently some variants of GNU ld only accept -v.
11486 # Break only if it was the GNU/non-GNU ld that we prefer.
11487 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11488 *GNU* | *'with BFD'*)
11489 test "$with_gnu_ld" != no && break
11490 ;;
11491 *)
11492 test "$with_gnu_ld" != yes && break
11493 ;;
11494 esac
11495 fi
11496 done
11497 IFS="$lt_save_ifs"
11498 else
11499 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11500 fi
11501 fi
11502
11503 LD="$lt_cv_path_LD"
11504 if test -n "$LD"; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11506 $as_echo "$LD" >&6; }
11507 else
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11510 fi
11511 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11513 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11514 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11518 case `$LD -v 2>&1 </dev/null` in
11519 *GNU* | *'with BFD'*)
11520 lt_cv_prog_gnu_ld=yes
11521 ;;
11522 *)
11523 lt_cv_prog_gnu_ld=no
11524 ;;
11525 esac
11526 fi
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11528 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11529 with_gnu_ld=$lt_cv_prog_gnu_ld
11530
11531
11532
11533
11534
11535
11536
11537 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11538 # archiving commands below assume that GNU ld is being used.
11539 if test "$with_gnu_ld" = yes; then
11540 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11541 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11542
11543 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11544 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11545
11546 # If archive_cmds runs LD, not CC, wlarc should be empty
11547 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11548 # investigate it a little bit more. (MM)
11549 wlarc='${wl}'
11550
11551 # ancient GNU ld didn't support --whole-archive et. al.
11552 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11553 $GREP 'no-whole-archive' > /dev/null; then
11554 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11555 else
11556 whole_archive_flag_spec_CXX=
11557 fi
11558 else
11559 with_gnu_ld=no
11560 wlarc=
11561
11562 # A generic and very simple default shared library creation
11563 # command for GNU C++ for the case where it uses the native
11564 # linker, instead of GNU ld. If possible, this setting should
11565 # overridden to take advantage of the native linker features on
11566 # the platform it is being used on.
11567 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11568 fi
11569
11570 # Commands to make compiler produce verbose output that lists
11571 # what "hidden" libraries, object files and flags are used when
11572 # linking a shared library.
11573 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11574
11575 else
11576 GXX=no
11577 with_gnu_ld=no
11578 wlarc=
11579 fi
11580
11581 # PORTME: fill in a description of your system's C++ link characteristics
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11583 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11584 ld_shlibs_CXX=yes
11585 case $host_os in
11586 aix3*)
11587 # FIXME: insert proper C++ library support
11588 ld_shlibs_CXX=no
11589 ;;
11590 aix[4-9]*)
11591 if test "$host_cpu" = ia64; then
11592 # On IA64, the linker does run time linking by default, so we don't
11593 # have to do anything special.
11594 aix_use_runtimelinking=no
11595 exp_sym_flag='-Bexport'
11596 no_entry_flag=""
11597 else
11598 aix_use_runtimelinking=no
11599
11600 # Test if we are trying to use run time linking or normal
11601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11602 # need to do runtime linking.
11603 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11604 for ld_flag in $LDFLAGS; do
11605 case $ld_flag in
11606 *-brtl*)
11607 aix_use_runtimelinking=yes
11608 break
11609 ;;
11610 esac
11611 done
11612 ;;
11613 esac
11614
11615 exp_sym_flag='-bexport'
11616 no_entry_flag='-bnoentry'
11617 fi
11618
11619 # When large executables or shared objects are built, AIX ld can
11620 # have problems creating the table of contents. If linking a library
11621 # or program results in "error TOC overflow" add -mminimal-toc to
11622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11624
11625 archive_cmds_CXX=''
11626 hardcode_direct_CXX=yes
11627 hardcode_direct_absolute_CXX=yes
11628 hardcode_libdir_separator_CXX=':'
11629 link_all_deplibs_CXX=yes
11630 file_list_spec_CXX='${wl}-f,'
11631
11632 if test "$GXX" = yes; then
11633 case $host_os in aix4.[012]|aix4.[012].*)
11634 # We only want to do this on AIX 4.2 and lower, the check
11635 # below for broken collect2 doesn't work under 4.3+
11636 collect2name=`${CC} -print-prog-name=collect2`
11637 if test -f "$collect2name" &&
11638 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11639 then
11640 # We have reworked collect2
11641 :
11642 else
11643 # We have old collect2
11644 hardcode_direct_CXX=unsupported
11645 # It fails to find uninstalled libraries when the uninstalled
11646 # path is not listed in the libpath. Setting hardcode_minus_L
11647 # to unsupported forces relinking
11648 hardcode_minus_L_CXX=yes
11649 hardcode_libdir_flag_spec_CXX='-L$libdir'
11650 hardcode_libdir_separator_CXX=
11651 fi
11652 esac
11653 shared_flag='-shared'
11654 if test "$aix_use_runtimelinking" = yes; then
11655 shared_flag="$shared_flag "'${wl}-G'
11656 fi
11657 else
11658 # not using gcc
11659 if test "$host_cpu" = ia64; then
11660 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11661 # chokes on -Wl,-G. The following line is correct:
11662 shared_flag='-G'
11663 else
11664 if test "$aix_use_runtimelinking" = yes; then
11665 shared_flag='${wl}-G'
11666 else
11667 shared_flag='${wl}-bM:SRE'
11668 fi
11669 fi
11670 fi
11671
11672 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11673 # It seems that -bexpall does not export symbols beginning with
11674 # underscore (_), so it is better to generate a list of symbols to
11675 # export.
11676 always_export_symbols_CXX=yes
11677 if test "$aix_use_runtimelinking" = yes; then
11678 # Warning - without using the other runtime loading flags (-brtl),
11679 # -berok will link without error, but may produce a broken library.
11680 allow_undefined_flag_CXX='-berok'
11681 # Determine the default libpath from the value encoded in an empty
11682 # executable.
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11685
11686 int
11687 main ()
11688 {
11689
11690 ;
11691 return 0;
11692 }
11693 _ACEOF
11694 if ac_fn_cxx_try_link "$LINENO"; then :
11695
11696 lt_aix_libpath_sed='
11697 /Import File Strings/,/^$/ {
11698 /^0/ {
11699 s/^0 *\(.*\)$/\1/
11700 p
11701 }
11702 }'
11703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11704 # Check for a 64-bit object if we didn't find anything.
11705 if test -z "$aix_libpath"; then
11706 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11707 fi
11708 fi
11709 rm -f core conftest.err conftest.$ac_objext \
11710 conftest$ac_exeext conftest.$ac_ext
11711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11712
11713 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11714
11715 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11716 else
11717 if test "$host_cpu" = ia64; then
11718 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11719 allow_undefined_flag_CXX="-z nodefs"
11720 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"
11721 else
11722 # Determine the default libpath from the value encoded in an
11723 # empty executable.
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11726
11727 int
11728 main ()
11729 {
11730
11731 ;
11732 return 0;
11733 }
11734 _ACEOF
11735 if ac_fn_cxx_try_link "$LINENO"; then :
11736
11737 lt_aix_libpath_sed='
11738 /Import File Strings/,/^$/ {
11739 /^0/ {
11740 s/^0 *\(.*\)$/\1/
11741 p
11742 }
11743 }'
11744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11745 # Check for a 64-bit object if we didn't find anything.
11746 if test -z "$aix_libpath"; then
11747 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11748 fi
11749 fi
11750 rm -f core conftest.err conftest.$ac_objext \
11751 conftest$ac_exeext conftest.$ac_ext
11752 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11753
11754 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11755 # Warning - without using the other run time loading flags,
11756 # -berok will link without error, but may produce a broken library.
11757 no_undefined_flag_CXX=' ${wl}-bernotok'
11758 allow_undefined_flag_CXX=' ${wl}-berok'
11759 if test "$with_gnu_ld" = yes; then
11760 # We only use this code for GNU lds that support --whole-archive.
11761 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11762 else
11763 # Exported symbols can be pulled into shared objects from archives
11764 whole_archive_flag_spec_CXX='$convenience'
11765 fi
11766 archive_cmds_need_lc_CXX=yes
11767 # This is similar to how AIX traditionally builds its shared
11768 # libraries.
11769 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11770 fi
11771 fi
11772 ;;
11773
11774 beos*)
11775 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11776 allow_undefined_flag_CXX=unsupported
11777 # Joseph Beckenbach <[email protected]> says some releases of gcc
11778 # support --undefined. This deserves some investigation. FIXME
11779 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11780 else
11781 ld_shlibs_CXX=no
11782 fi
11783 ;;
11784
11785 chorus*)
11786 case $cc_basename in
11787 *)
11788 # FIXME: insert proper C++ library support
11789 ld_shlibs_CXX=no
11790 ;;
11791 esac
11792 ;;
11793
11794 cygwin* | mingw* | pw32* | cegcc*)
11795 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11796 # as there is no search path for DLLs.
11797 hardcode_libdir_flag_spec_CXX='-L$libdir'
11798 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11799 allow_undefined_flag_CXX=unsupported
11800 always_export_symbols_CXX=no
11801 enable_shared_with_static_runtimes_CXX=yes
11802
11803 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11804 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'
11805 # If the export-symbols file already is a .def file (1st line
11806 # is EXPORTS), use it as is; otherwise, prepend...
11807 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11808 cp $export_symbols $output_objdir/$soname.def;
11809 else
11810 echo EXPORTS > $output_objdir/$soname.def;
11811 cat $export_symbols >> $output_objdir/$soname.def;
11812 fi~
11813 $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'
11814 else
11815 ld_shlibs_CXX=no
11816 fi
11817 ;;
11818 darwin* | rhapsody*)
11819
11820
11821 archive_cmds_need_lc_CXX=no
11822 hardcode_direct_CXX=no
11823 hardcode_automatic_CXX=yes
11824 hardcode_shlibpath_var_CXX=unsupported
11825 if test "$lt_cv_ld_force_load" = "yes"; then
11826 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\"`'
11827 else
11828 whole_archive_flag_spec_CXX=''
11829 fi
11830 link_all_deplibs_CXX=yes
11831 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11832 case $cc_basename in
11833 ifort*) _lt_dar_can_shared=yes ;;
11834 *) _lt_dar_can_shared=$GCC ;;
11835 esac
11836 if test "$_lt_dar_can_shared" = "yes"; then
11837 output_verbose_link_cmd=func_echo_all
11838 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}"
11839 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11840 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}"
11841 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}"
11842 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11843 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}"
11844 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}"
11845 fi
11846
11847 else
11848 ld_shlibs_CXX=no
11849 fi
11850
11851 ;;
11852
11853 dgux*)
11854 case $cc_basename in
11855 ec++*)
11856 # FIXME: insert proper C++ library support
11857 ld_shlibs_CXX=no
11858 ;;
11859 ghcx*)
11860 # Green Hills C++ Compiler
11861 # FIXME: insert proper C++ library support
11862 ld_shlibs_CXX=no
11863 ;;
11864 *)
11865 # FIXME: insert proper C++ library support
11866 ld_shlibs_CXX=no
11867 ;;
11868 esac
11869 ;;
11870
11871 freebsd[12]*)
11872 # C++ shared libraries reported to be fairly broken before
11873 # switch to ELF
11874 ld_shlibs_CXX=no
11875 ;;
11876
11877 freebsd-elf*)
11878 archive_cmds_need_lc_CXX=no
11879 ;;
11880
11881 freebsd* | dragonfly*)
11882 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11883 # conventions
11884 ld_shlibs_CXX=yes
11885 ;;
11886
11887 gnu*)
11888 ;;
11889
11890 haiku*)
11891 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11892 link_all_deplibs_CXX=yes
11893 ;;
11894
11895 hpux9*)
11896 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11897 hardcode_libdir_separator_CXX=:
11898 export_dynamic_flag_spec_CXX='${wl}-E'
11899 hardcode_direct_CXX=yes
11900 hardcode_minus_L_CXX=yes # Not in the search PATH,
11901 # but as the default
11902 # location of the library.
11903
11904 case $cc_basename in
11905 CC*)
11906 # FIXME: insert proper C++ library support
11907 ld_shlibs_CXX=no
11908 ;;
11909 aCC*)
11910 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11911 # Commands to make compiler produce verbose output that lists
11912 # what "hidden" libraries, object files and flags are used when
11913 # linking a shared library.
11914 #
11915 # There doesn't appear to be a way to prevent this compiler from
11916 # explicitly linking system object files so we need to strip them
11917 # from the output so that they don't get included in the library
11918 # dependencies.
11919 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"'
11920 ;;
11921 *)
11922 if test "$GXX" = yes; then
11923 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11924 else
11925 # FIXME: insert proper C++ library support
11926 ld_shlibs_CXX=no
11927 fi
11928 ;;
11929 esac
11930 ;;
11931
11932 hpux10*|hpux11*)
11933 if test $with_gnu_ld = no; then
11934 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11935 hardcode_libdir_separator_CXX=:
11936
11937 case $host_cpu in
11938 hppa*64*|ia64*)
11939 ;;
11940 *)
11941 export_dynamic_flag_spec_CXX='${wl}-E'
11942 ;;
11943 esac
11944 fi
11945 case $host_cpu in
11946 hppa*64*|ia64*)
11947 hardcode_direct_CXX=no
11948 hardcode_shlibpath_var_CXX=no
11949 ;;
11950 *)
11951 hardcode_direct_CXX=yes
11952 hardcode_direct_absolute_CXX=yes
11953 hardcode_minus_L_CXX=yes # Not in the search PATH,
11954 # but as the default
11955 # location of the library.
11956 ;;
11957 esac
11958
11959 case $cc_basename in
11960 CC*)
11961 # FIXME: insert proper C++ library support
11962 ld_shlibs_CXX=no
11963 ;;
11964 aCC*)
11965 case $host_cpu in
11966 hppa*64*)
11967 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11968 ;;
11969 ia64*)
11970 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11971 ;;
11972 *)
11973 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11974 ;;
11975 esac
11976 # Commands to make compiler produce verbose output that lists
11977 # what "hidden" libraries, object files and flags are used when
11978 # linking a shared library.
11979 #
11980 # There doesn't appear to be a way to prevent this compiler from
11981 # explicitly linking system object files so we need to strip them
11982 # from the output so that they don't get included in the library
11983 # dependencies.
11984 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"'
11985 ;;
11986 *)
11987 if test "$GXX" = yes; then
11988 if test $with_gnu_ld = no; then
11989 case $host_cpu in
11990 hppa*64*)
11991 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11992 ;;
11993 ia64*)
11994 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11995 ;;
11996 *)
11997 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11998 ;;
11999 esac
12000 fi
12001 else
12002 # FIXME: insert proper C++ library support
12003 ld_shlibs_CXX=no
12004 fi
12005 ;;
12006 esac
12007 ;;
12008
12009 interix[3-9]*)
12010 hardcode_direct_CXX=no
12011 hardcode_shlibpath_var_CXX=no
12012 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12013 export_dynamic_flag_spec_CXX='${wl}-E'
12014 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12015 # Instead, shared libraries are loaded at an image base (0x10000000 by
12016 # default) and relocated if they conflict, which is a slow very memory
12017 # consuming and fragmenting process. To avoid this, we pick a random,
12018 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12019 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12020 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'
12021 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'
12022 ;;
12023 irix5* | irix6*)
12024 case $cc_basename in
12025 CC*)
12026 # SGI C++
12027 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'
12028
12029 # Archives containing C++ object files must be created using
12030 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12031 # necessary to make sure instantiated templates are included
12032 # in the archive.
12033 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12034 ;;
12035 *)
12036 if test "$GXX" = yes; then
12037 if test "$with_gnu_ld" = no; then
12038 archive_cmds_CXX='$CC -shared -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'
12039 else
12040 archive_cmds_CXX='$CC -shared -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'
12041 fi
12042 fi
12043 link_all_deplibs_CXX=yes
12044 ;;
12045 esac
12046 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12047 hardcode_libdir_separator_CXX=:
12048 inherit_rpath_CXX=yes
12049 ;;
12050
12051 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12052 case $cc_basename in
12053 KCC*)
12054 # Kuck and Associates, Inc. (KAI) C++ Compiler
12055
12056 # KCC will only create a shared library if the output file
12057 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12058 # to its proper name (with version) after linking.
12059 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'
12060 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'
12061 # Commands to make compiler produce verbose output that lists
12062 # what "hidden" libraries, object files and flags are used when
12063 # linking a shared library.
12064 #
12065 # There doesn't appear to be a way to prevent this compiler from
12066 # explicitly linking system object files so we need to strip them
12067 # from the output so that they don't get included in the library
12068 # dependencies.
12069 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"'
12070
12071 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12072 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12073
12074 # Archives containing C++ object files must be created using
12075 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12076 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12077 ;;
12078 icpc* | ecpc* )
12079 # Intel C++
12080 with_gnu_ld=yes
12081 # version 8.0 and above of icpc choke on multiply defined symbols
12082 # if we add $predep_objects and $postdep_objects, however 7.1 and
12083 # earlier do not add the objects themselves.
12084 case `$CC -V 2>&1` in
12085 *"Version 7."*)
12086 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12087 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'
12088 ;;
12089 *) # Version 8.0 or newer
12090 tmp_idyn=
12091 case $host_cpu in
12092 ia64*) tmp_idyn=' -i_dynamic';;
12093 esac
12094 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12095 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'
12096 ;;
12097 esac
12098 archive_cmds_need_lc_CXX=no
12099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12100 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12101 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12102 ;;
12103 pgCC* | pgcpp*)
12104 # Portland Group C++ compiler
12105 case `$CC -V` in
12106 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12107 prelink_cmds_CXX='tpldir=Template.dir~
12108 rm -rf $tpldir~
12109 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12110 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12111 old_archive_cmds_CXX='tpldir=Template.dir~
12112 rm -rf $tpldir~
12113 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12114 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12115 $RANLIB $oldlib'
12116 archive_cmds_CXX='tpldir=Template.dir~
12117 rm -rf $tpldir~
12118 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12119 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12120 archive_expsym_cmds_CXX='tpldir=Template.dir~
12121 rm -rf $tpldir~
12122 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12123 $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'
12124 ;;
12125 *) # Version 6 and above use weak symbols
12126 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12127 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'
12128 ;;
12129 esac
12130
12131 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12132 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12133 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'
12134 ;;
12135 cxx*)
12136 # Compaq C++
12137 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12138 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'
12139
12140 runpath_var=LD_RUN_PATH
12141 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12142 hardcode_libdir_separator_CXX=:
12143
12144 # Commands to make compiler produce verbose output that lists
12145 # what "hidden" libraries, object files and flags are used when
12146 # linking a shared library.
12147 #
12148 # There doesn't appear to be a way to prevent this compiler from
12149 # explicitly linking system object files so we need to strip them
12150 # from the output so that they don't get included in the library
12151 # dependencies.
12152 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'
12153 ;;
12154 xl* | mpixl* | bgxl*)
12155 # IBM XL 8.0 on PPC, with GNU ld
12156 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12158 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12159 if test "x$supports_anon_versioning" = xyes; then
12160 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12161 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12162 echo "local: *; };" >> $output_objdir/$libname.ver~
12163 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12164 fi
12165 ;;
12166 *)
12167 case `$CC -V 2>&1 | sed 5q` in
12168 *Sun\ C*)
12169 # Sun C++ 5.9
12170 no_undefined_flag_CXX=' -zdefs'
12171 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12172 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'
12173 hardcode_libdir_flag_spec_CXX='-R$libdir'
12174 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'
12175 compiler_needs_object_CXX=yes
12176
12177 # Not sure whether something based on
12178 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12179 # would be better.
12180 output_verbose_link_cmd='func_echo_all'
12181
12182 # Archives containing C++ object files must be created using
12183 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12184 # necessary to make sure instantiated templates are included
12185 # in the archive.
12186 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12187 ;;
12188 esac
12189 ;;
12190 esac
12191 ;;
12192
12193 lynxos*)
12194 # FIXME: insert proper C++ library support
12195 ld_shlibs_CXX=no
12196 ;;
12197
12198 m88k*)
12199 # FIXME: insert proper C++ library support
12200 ld_shlibs_CXX=no
12201 ;;
12202
12203 mvs*)
12204 case $cc_basename in
12205 cxx*)
12206 # FIXME: insert proper C++ library support
12207 ld_shlibs_CXX=no
12208 ;;
12209 *)
12210 # FIXME: insert proper C++ library support
12211 ld_shlibs_CXX=no
12212 ;;
12213 esac
12214 ;;
12215
12216 netbsd*)
12217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12218 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12219 wlarc=
12220 hardcode_libdir_flag_spec_CXX='-R$libdir'
12221 hardcode_direct_CXX=yes
12222 hardcode_shlibpath_var_CXX=no
12223 fi
12224 # Workaround some broken pre-1.5 toolchains
12225 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12226 ;;
12227
12228 *nto* | *qnx*)
12229 ld_shlibs_CXX=yes
12230 ;;
12231
12232 openbsd2*)
12233 # C++ shared libraries are fairly broken
12234 ld_shlibs_CXX=no
12235 ;;
12236
12237 openbsd*)
12238 if test -f /usr/libexec/ld.so; then
12239 hardcode_direct_CXX=yes
12240 hardcode_shlibpath_var_CXX=no
12241 hardcode_direct_absolute_CXX=yes
12242 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12243 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12245 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12246 export_dynamic_flag_spec_CXX='${wl}-E'
12247 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12248 fi
12249 output_verbose_link_cmd=func_echo_all
12250 else
12251 ld_shlibs_CXX=no
12252 fi
12253 ;;
12254
12255 osf3* | osf4* | osf5*)
12256 case $cc_basename in
12257 KCC*)
12258 # Kuck and Associates, Inc. (KAI) C++ Compiler
12259
12260 # KCC will only create a shared library if the output file
12261 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12262 # to its proper name (with version) after linking.
12263 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'
12264
12265 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12266 hardcode_libdir_separator_CXX=:
12267
12268 # Archives containing C++ object files must be created using
12269 # the KAI C++ compiler.
12270 case $host in
12271 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12272 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12273 esac
12274 ;;
12275 RCC*)
12276 # Rational C++ 2.4.1
12277 # FIXME: insert proper C++ library support
12278 ld_shlibs_CXX=no
12279 ;;
12280 cxx*)
12281 case $host in
12282 osf3*)
12283 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12284 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'
12285 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12286 ;;
12287 *)
12288 allow_undefined_flag_CXX=' -expect_unresolved \*'
12289 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'
12290 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12291 echo "-hidden">> $lib.exp~
12292 $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~
12293 $RM $lib.exp'
12294 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12295 ;;
12296 esac
12297
12298 hardcode_libdir_separator_CXX=:
12299
12300 # Commands to make compiler produce verbose output that lists
12301 # what "hidden" libraries, object files and flags are used when
12302 # linking a shared library.
12303 #
12304 # There doesn't appear to be a way to prevent this compiler from
12305 # explicitly linking system object files so we need to strip them
12306 # from the output so that they don't get included in the library
12307 # dependencies.
12308 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"'
12309 ;;
12310 *)
12311 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12312 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12313 case $host in
12314 osf3*)
12315 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'
12316 ;;
12317 *)
12318 archive_cmds_CXX='$CC -shared -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'
12319 ;;
12320 esac
12321
12322 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12323 hardcode_libdir_separator_CXX=:
12324
12325 # Commands to make compiler produce verbose output that lists
12326 # what "hidden" libraries, object files and flags are used when
12327 # linking a shared library.
12328 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12329
12330 else
12331 # FIXME: insert proper C++ library support
12332 ld_shlibs_CXX=no
12333 fi
12334 ;;
12335 esac
12336 ;;
12337
12338 psos*)
12339 # FIXME: insert proper C++ library support
12340 ld_shlibs_CXX=no
12341 ;;
12342
12343 sunos4*)
12344 case $cc_basename in
12345 CC*)
12346 # Sun C++ 4.x
12347 # FIXME: insert proper C++ library support
12348 ld_shlibs_CXX=no
12349 ;;
12350 lcc*)
12351 # Lucid
12352 # FIXME: insert proper C++ library support
12353 ld_shlibs_CXX=no
12354 ;;
12355 *)
12356 # FIXME: insert proper C++ library support
12357 ld_shlibs_CXX=no
12358 ;;
12359 esac
12360 ;;
12361
12362 solaris*)
12363 case $cc_basename in
12364 CC* | sunCC*)
12365 # Sun C++ 4.2, 5.x and Centerline C++
12366 archive_cmds_need_lc_CXX=yes
12367 no_undefined_flag_CXX=' -zdefs'
12368 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12369 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12370 $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'
12371
12372 hardcode_libdir_flag_spec_CXX='-R$libdir'
12373 hardcode_shlibpath_var_CXX=no
12374 case $host_os in
12375 solaris2.[0-5] | solaris2.[0-5].*) ;;
12376 *)
12377 # The compiler driver will combine and reorder linker options,
12378 # but understands `-z linker_flag'.
12379 # Supported since Solaris 2.6 (maybe 2.5.1?)
12380 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12381 ;;
12382 esac
12383 link_all_deplibs_CXX=yes
12384
12385 output_verbose_link_cmd='func_echo_all'
12386
12387 # Archives containing C++ object files must be created using
12388 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12389 # necessary to make sure instantiated templates are included
12390 # in the archive.
12391 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12392 ;;
12393 gcx*)
12394 # Green Hills C++ Compiler
12395 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12396
12397 # The C++ compiler must be used to create the archive.
12398 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12399 ;;
12400 *)
12401 # GNU C++ compiler with Solaris linker
12402 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12403 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12404 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12405 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12406 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12407 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12408
12409 # Commands to make compiler produce verbose output that lists
12410 # what "hidden" libraries, object files and flags are used when
12411 # linking a shared library.
12412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12413 else
12414 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12415 # platform.
12416 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12417 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12418 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12419
12420 # Commands to make compiler produce verbose output that lists
12421 # what "hidden" libraries, object files and flags are used when
12422 # linking a shared library.
12423 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12424 fi
12425
12426 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12427 case $host_os in
12428 solaris2.[0-5] | solaris2.[0-5].*) ;;
12429 *)
12430 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12431 ;;
12432 esac
12433 fi
12434 ;;
12435 esac
12436 ;;
12437
12438 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12439 no_undefined_flag_CXX='${wl}-z,text'
12440 archive_cmds_need_lc_CXX=no
12441 hardcode_shlibpath_var_CXX=no
12442 runpath_var='LD_RUN_PATH'
12443
12444 case $cc_basename in
12445 CC*)
12446 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12447 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12448 ;;
12449 *)
12450 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12451 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12452 ;;
12453 esac
12454 ;;
12455
12456 sysv5* | sco3.2v5* | sco5v6*)
12457 # Note: We can NOT use -z defs as we might desire, because we do not
12458 # link with -lc, and that would cause any symbols used from libc to
12459 # always be unresolved, which means just about no library would
12460 # ever link correctly. If we're not using GNU ld we use -z text
12461 # though, which does catch some bad symbols but isn't as heavy-handed
12462 # as -z defs.
12463 no_undefined_flag_CXX='${wl}-z,text'
12464 allow_undefined_flag_CXX='${wl}-z,nodefs'
12465 archive_cmds_need_lc_CXX=no
12466 hardcode_shlibpath_var_CXX=no
12467 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12468 hardcode_libdir_separator_CXX=':'
12469 link_all_deplibs_CXX=yes
12470 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12471 runpath_var='LD_RUN_PATH'
12472
12473 case $cc_basename in
12474 CC*)
12475 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12476 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12477 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12478 '"$old_archive_cmds_CXX"
12479 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12480 '"$reload_cmds_CXX"
12481 ;;
12482 *)
12483 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12484 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12485 ;;
12486 esac
12487 ;;
12488
12489 tandem*)
12490 case $cc_basename in
12491 NCC*)
12492 # NonStop-UX NCC 3.20
12493 # FIXME: insert proper C++ library support
12494 ld_shlibs_CXX=no
12495 ;;
12496 *)
12497 # FIXME: insert proper C++ library support
12498 ld_shlibs_CXX=no
12499 ;;
12500 esac
12501 ;;
12502
12503 vxworks*)
12504 # FIXME: insert proper C++ library support
12505 ld_shlibs_CXX=no
12506 ;;
12507
12508 *)
12509 # FIXME: insert proper C++ library support
12510 ld_shlibs_CXX=no
12511 ;;
12512 esac
12513
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12515 $as_echo "$ld_shlibs_CXX" >&6; }
12516 test "$ld_shlibs_CXX" = no && can_build_shared=no
12517
12518 GCC_CXX="$GXX"
12519 LD_CXX="$LD"
12520
12521 ## CAVEAT EMPTOR:
12522 ## There is no encapsulation within the following macros, do not change
12523 ## the running order or otherwise move them around unless you know exactly
12524 ## what you are doing...
12525 # Dependencies to place before and after the object being linked:
12526 predep_objects_CXX=
12527 postdep_objects_CXX=
12528 predeps_CXX=
12529 postdeps_CXX=
12530 compiler_lib_search_path_CXX=
12531
12532 cat > conftest.$ac_ext <<_LT_EOF
12533 class Foo
12534 {
12535 public:
12536 Foo (void) { a = 0; }
12537 private:
12538 int a;
12539 };
12540 _LT_EOF
12541
12542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12543 (eval $ac_compile) 2>&5
12544 ac_status=$?
12545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12546 test $ac_status = 0; }; then
12547 # Parse the compiler output and extract the necessary
12548 # objects, libraries and library flags.
12549
12550 # Sentinel used to keep track of whether or not we are before
12551 # the conftest object file.
12552 pre_test_object_deps_done=no
12553
12554 for p in `eval "$output_verbose_link_cmd"`; do
12555 case $p in
12556
12557 -L* | -R* | -l*)
12558 # Some compilers place space between "-{L,R}" and the path.
12559 # Remove the space.
12560 if test $p = "-L" ||
12561 test $p = "-R"; then
12562 prev=$p
12563 continue
12564 else
12565 prev=
12566 fi
12567
12568 if test "$pre_test_object_deps_done" = no; then
12569 case $p in
12570 -L* | -R*)
12571 # Internal compiler library paths should come after those
12572 # provided the user. The postdeps already come after the
12573 # user supplied libs so there is no need to process them.
12574 if test -z "$compiler_lib_search_path_CXX"; then
12575 compiler_lib_search_path_CXX="${prev}${p}"
12576 else
12577 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12578 fi
12579 ;;
12580 # The "-l" case would never come before the object being
12581 # linked, so don't bother handling this case.
12582 esac
12583 else
12584 if test -z "$postdeps_CXX"; then
12585 postdeps_CXX="${prev}${p}"
12586 else
12587 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12588 fi
12589 fi
12590 ;;
12591
12592 *.$objext)
12593 # This assumes that the test object file only shows up
12594 # once in the compiler output.
12595 if test "$p" = "conftest.$objext"; then
12596 pre_test_object_deps_done=yes
12597 continue
12598 fi
12599
12600 if test "$pre_test_object_deps_done" = no; then
12601 if test -z "$predep_objects_CXX"; then
12602 predep_objects_CXX="$p"
12603 else
12604 predep_objects_CXX="$predep_objects_CXX $p"
12605 fi
12606 else
12607 if test -z "$postdep_objects_CXX"; then
12608 postdep_objects_CXX="$p"
12609 else
12610 postdep_objects_CXX="$postdep_objects_CXX $p"
12611 fi
12612 fi
12613 ;;
12614
12615 *) ;; # Ignore the rest.
12616
12617 esac
12618 done
12619
12620 # Clean up.
12621 rm -f a.out a.exe
12622 else
12623 echo "libtool.m4: error: problem compiling CXX test program"
12624 fi
12625
12626 $RM -f confest.$objext
12627
12628 # PORTME: override above test on systems where it is broken
12629 case $host_os in
12630 interix[3-9]*)
12631 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12632 # hack all around it, let's just trust "g++" to DTRT.
12633 predep_objects_CXX=
12634 postdep_objects_CXX=
12635 postdeps_CXX=
12636 ;;
12637
12638 linux*)
12639 case `$CC -V 2>&1 | sed 5q` in
12640 *Sun\ C*)
12641 # Sun C++ 5.9
12642
12643 # The more standards-conforming stlport4 library is
12644 # incompatible with the Cstd library. Avoid specifying
12645 # it if it's in CXXFLAGS. Ignore libCrun as
12646 # -library=stlport4 depends on it.
12647 case " $CXX $CXXFLAGS " in
12648 *" -library=stlport4 "*)
12649 solaris_use_stlport4=yes
12650 ;;
12651 esac
12652
12653 if test "$solaris_use_stlport4" != yes; then
12654 postdeps_CXX='-library=Cstd -library=Crun'
12655 fi
12656 ;;
12657 esac
12658 ;;
12659
12660 solaris*)
12661 case $cc_basename in
12662 CC* | sunCC*)
12663 # The more standards-conforming stlport4 library is
12664 # incompatible with the Cstd library. Avoid specifying
12665 # it if it's in CXXFLAGS. Ignore libCrun as
12666 # -library=stlport4 depends on it.
12667 case " $CXX $CXXFLAGS " in
12668 *" -library=stlport4 "*)
12669 solaris_use_stlport4=yes
12670 ;;
12671 esac
12672
12673 # Adding this requires a known-good setup of shared libraries for
12674 # Sun compiler versions before 5.6, else PIC objects from an old
12675 # archive will be linked into the output, leading to subtle bugs.
12676 if test "$solaris_use_stlport4" != yes; then
12677 postdeps_CXX='-library=Cstd -library=Crun'
12678 fi
12679 ;;
12680 esac
12681 ;;
12682 esac
12683
12684
12685 case " $postdeps_CXX " in
12686 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12687 esac
12688 compiler_lib_search_dirs_CXX=
12689 if test -n "${compiler_lib_search_path_CXX}"; then
12690 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12691 fi
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723 lt_prog_compiler_wl_CXX=
12724 lt_prog_compiler_pic_CXX=
12725 lt_prog_compiler_static_CXX=
12726
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12728 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12729
12730 # C++ specific cases for pic, static, wl, etc.
12731 if test "$GXX" = yes; then
12732 lt_prog_compiler_wl_CXX='-Wl,'
12733 lt_prog_compiler_static_CXX='-static'
12734
12735 case $host_os in
12736 aix*)
12737 # All AIX code is PIC.
12738 if test "$host_cpu" = ia64; then
12739 # AIX 5 now supports IA64 processor
12740 lt_prog_compiler_static_CXX='-Bstatic'
12741 fi
12742 ;;
12743
12744 amigaos*)
12745 case $host_cpu in
12746 powerpc)
12747 # see comment about AmigaOS4 .so support
12748 lt_prog_compiler_pic_CXX='-fPIC'
12749 ;;
12750 m68k)
12751 # FIXME: we need at least 68020 code to build shared libraries, but
12752 # adding the `-m68020' flag to GCC prevents building anything better,
12753 # like `-m68040'.
12754 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12755 ;;
12756 esac
12757 ;;
12758
12759 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12760 # PIC is the default for these OSes.
12761 ;;
12762 mingw* | cygwin* | os2* | pw32* | cegcc*)
12763 # This hack is so that the source file can tell whether it is being
12764 # built for inclusion in a dll (and should export symbols for example).
12765 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12766 # (--disable-auto-import) libraries
12767 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12768 ;;
12769 darwin* | rhapsody*)
12770 # PIC is the default on this platform
12771 # Common symbols not allowed in MH_DYLIB files
12772 lt_prog_compiler_pic_CXX='-fno-common'
12773 ;;
12774 *djgpp*)
12775 # DJGPP does not support shared libraries at all
12776 lt_prog_compiler_pic_CXX=
12777 ;;
12778 haiku*)
12779 # PIC is the default for Haiku.
12780 # The "-static" flag exists, but is broken.
12781 lt_prog_compiler_static_CXX=
12782 ;;
12783 interix[3-9]*)
12784 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12785 # Instead, we relocate shared libraries at runtime.
12786 ;;
12787 sysv4*MP*)
12788 if test -d /usr/nec; then
12789 lt_prog_compiler_pic_CXX=-Kconform_pic
12790 fi
12791 ;;
12792 hpux*)
12793 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12794 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12795 # sets the default TLS model and affects inlining.
12796 case $host_cpu in
12797 hppa*64*)
12798 ;;
12799 *)
12800 lt_prog_compiler_pic_CXX='-fPIC'
12801 ;;
12802 esac
12803 ;;
12804 *qnx* | *nto*)
12805 # QNX uses GNU C++, but need to define -shared option too, otherwise
12806 # it will coredump.
12807 lt_prog_compiler_pic_CXX='-fPIC -shared'
12808 ;;
12809 *)
12810 lt_prog_compiler_pic_CXX='-fPIC'
12811 ;;
12812 esac
12813 else
12814 case $host_os in
12815 aix[4-9]*)
12816 # All AIX code is PIC.
12817 if test "$host_cpu" = ia64; then
12818 # AIX 5 now supports IA64 processor
12819 lt_prog_compiler_static_CXX='-Bstatic'
12820 else
12821 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12822 fi
12823 ;;
12824 chorus*)
12825 case $cc_basename in
12826 cxch68*)
12827 # Green Hills C++ Compiler
12828 # _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"
12829 ;;
12830 esac
12831 ;;
12832 dgux*)
12833 case $cc_basename in
12834 ec++*)
12835 lt_prog_compiler_pic_CXX='-KPIC'
12836 ;;
12837 ghcx*)
12838 # Green Hills C++ Compiler
12839 lt_prog_compiler_pic_CXX='-pic'
12840 ;;
12841 *)
12842 ;;
12843 esac
12844 ;;
12845 freebsd* | dragonfly*)
12846 # FreeBSD uses GNU C++
12847 ;;
12848 hpux9* | hpux10* | hpux11*)
12849 case $cc_basename in
12850 CC*)
12851 lt_prog_compiler_wl_CXX='-Wl,'
12852 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12853 if test "$host_cpu" != ia64; then
12854 lt_prog_compiler_pic_CXX='+Z'
12855 fi
12856 ;;
12857 aCC*)
12858 lt_prog_compiler_wl_CXX='-Wl,'
12859 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12860 case $host_cpu in
12861 hppa*64*|ia64*)
12862 # +Z the default
12863 ;;
12864 *)
12865 lt_prog_compiler_pic_CXX='+Z'
12866 ;;
12867 esac
12868 ;;
12869 *)
12870 ;;
12871 esac
12872 ;;
12873 interix*)
12874 # This is c89, which is MS Visual C++ (no shared libs)
12875 # Anyone wants to do a port?
12876 ;;
12877 irix5* | irix6* | nonstopux*)
12878 case $cc_basename in
12879 CC*)
12880 lt_prog_compiler_wl_CXX='-Wl,'
12881 lt_prog_compiler_static_CXX='-non_shared'
12882 # CC pic flag -KPIC is the default.
12883 ;;
12884 *)
12885 ;;
12886 esac
12887 ;;
12888 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12889 case $cc_basename in
12890 KCC*)
12891 # KAI C++ Compiler
12892 lt_prog_compiler_wl_CXX='--backend -Wl,'
12893 lt_prog_compiler_pic_CXX='-fPIC'
12894 ;;
12895 ecpc* )
12896 # old Intel C++ for x86_64 which still supported -KPIC.
12897 lt_prog_compiler_wl_CXX='-Wl,'
12898 lt_prog_compiler_pic_CXX='-KPIC'
12899 lt_prog_compiler_static_CXX='-static'
12900 ;;
12901 icpc* )
12902 # Intel C++, used to be incompatible with GCC.
12903 # ICC 10 doesn't accept -KPIC any more.
12904 lt_prog_compiler_wl_CXX='-Wl,'
12905 lt_prog_compiler_pic_CXX='-fPIC'
12906 lt_prog_compiler_static_CXX='-static'
12907 ;;
12908 pgCC* | pgcpp*)
12909 # Portland Group C++ compiler
12910 lt_prog_compiler_wl_CXX='-Wl,'
12911 lt_prog_compiler_pic_CXX='-fpic'
12912 lt_prog_compiler_static_CXX='-Bstatic'
12913 ;;
12914 cxx*)
12915 # Compaq C++
12916 # Make sure the PIC flag is empty. It appears that all Alpha
12917 # Linux and Compaq Tru64 Unix objects are PIC.
12918 lt_prog_compiler_pic_CXX=
12919 lt_prog_compiler_static_CXX='-non_shared'
12920 ;;
12921 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
12922 # IBM XL 8.0, 9.0 on PPC and BlueGene
12923 lt_prog_compiler_wl_CXX='-Wl,'
12924 lt_prog_compiler_pic_CXX='-qpic'
12925 lt_prog_compiler_static_CXX='-qstaticlink'
12926 ;;
12927 *)
12928 case `$CC -V 2>&1 | sed 5q` in
12929 *Sun\ C*)
12930 # Sun C++ 5.9
12931 lt_prog_compiler_pic_CXX='-KPIC'
12932 lt_prog_compiler_static_CXX='-Bstatic'
12933 lt_prog_compiler_wl_CXX='-Qoption ld '
12934 ;;
12935 esac
12936 ;;
12937 esac
12938 ;;
12939 lynxos*)
12940 ;;
12941 m88k*)
12942 ;;
12943 mvs*)
12944 case $cc_basename in
12945 cxx*)
12946 lt_prog_compiler_pic_CXX='-W c,exportall'
12947 ;;
12948 *)
12949 ;;
12950 esac
12951 ;;
12952 netbsd*)
12953 ;;
12954 *qnx* | *nto*)
12955 # QNX uses GNU C++, but need to define -shared option too, otherwise
12956 # it will coredump.
12957 lt_prog_compiler_pic_CXX='-fPIC -shared'
12958 ;;
12959 osf3* | osf4* | osf5*)
12960 case $cc_basename in
12961 KCC*)
12962 lt_prog_compiler_wl_CXX='--backend -Wl,'
12963 ;;
12964 RCC*)
12965 # Rational C++ 2.4.1
12966 lt_prog_compiler_pic_CXX='-pic'
12967 ;;
12968 cxx*)
12969 # Digital/Compaq C++
12970 lt_prog_compiler_wl_CXX='-Wl,'
12971 # Make sure the PIC flag is empty. It appears that all Alpha
12972 # Linux and Compaq Tru64 Unix objects are PIC.
12973 lt_prog_compiler_pic_CXX=
12974 lt_prog_compiler_static_CXX='-non_shared'
12975 ;;
12976 *)
12977 ;;
12978 esac
12979 ;;
12980 psos*)
12981 ;;
12982 solaris*)
12983 case $cc_basename in
12984 CC* | sunCC*)
12985 # Sun C++ 4.2, 5.x and Centerline C++
12986 lt_prog_compiler_pic_CXX='-KPIC'
12987 lt_prog_compiler_static_CXX='-Bstatic'
12988 lt_prog_compiler_wl_CXX='-Qoption ld '
12989 ;;
12990 gcx*)
12991 # Green Hills C++ Compiler
12992 lt_prog_compiler_pic_CXX='-PIC'
12993 ;;
12994 *)
12995 ;;
12996 esac
12997 ;;
12998 sunos4*)
12999 case $cc_basename in
13000 CC*)
13001 # Sun C++ 4.x
13002 lt_prog_compiler_pic_CXX='-pic'
13003 lt_prog_compiler_static_CXX='-Bstatic'
13004 ;;
13005 lcc*)
13006 # Lucid
13007 lt_prog_compiler_pic_CXX='-pic'
13008 ;;
13009 *)
13010 ;;
13011 esac
13012 ;;
13013 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13014 case $cc_basename in
13015 CC*)
13016 lt_prog_compiler_wl_CXX='-Wl,'
13017 lt_prog_compiler_pic_CXX='-KPIC'
13018 lt_prog_compiler_static_CXX='-Bstatic'
13019 ;;
13020 esac
13021 ;;
13022 tandem*)
13023 case $cc_basename in
13024 NCC*)
13025 # NonStop-UX NCC 3.20
13026 lt_prog_compiler_pic_CXX='-KPIC'
13027 ;;
13028 *)
13029 ;;
13030 esac
13031 ;;
13032 vxworks*)
13033 ;;
13034 *)
13035 lt_prog_compiler_can_build_shared_CXX=no
13036 ;;
13037 esac
13038 fi
13039
13040 case $host_os in
13041 # For platforms which do not support PIC, -DPIC is meaningless:
13042 *djgpp*)
13043 lt_prog_compiler_pic_CXX=
13044 ;;
13045 *)
13046 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13047 ;;
13048 esac
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13050 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13051
13052
13053
13054 #
13055 # Check to make sure the PIC flag actually works.
13056 #
13057 if test -n "$lt_prog_compiler_pic_CXX"; then
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13059 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13060 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 lt_cv_prog_compiler_pic_works_CXX=no
13064 ac_outfile=conftest.$ac_objext
13065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13066 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13067 # Insert the option either (1) after the last *FLAGS variable, or
13068 # (2) before a word containing "conftest.", or (3) at the end.
13069 # Note that $ac_compile itself does not contain backslashes and begins
13070 # with a dollar sign (not a hyphen), so the echo should work correctly.
13071 # The option is referenced via a variable to avoid confusing sed.
13072 lt_compile=`echo "$ac_compile" | $SED \
13073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13075 -e 's:$: $lt_compiler_flag:'`
13076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13077 (eval "$lt_compile" 2>conftest.err)
13078 ac_status=$?
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 if (exit $ac_status) && test -s "$ac_outfile"; then
13082 # The compiler can only warn and ignore the option if not recognized
13083 # So say no if there are warnings other than the usual output.
13084 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13086 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13087 lt_cv_prog_compiler_pic_works_CXX=yes
13088 fi
13089 fi
13090 $RM conftest*
13091
13092 fi
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13094 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13095
13096 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13097 case $lt_prog_compiler_pic_CXX in
13098 "" | " "*) ;;
13099 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13100 esac
13101 else
13102 lt_prog_compiler_pic_CXX=
13103 lt_prog_compiler_can_build_shared_CXX=no
13104 fi
13105
13106 fi
13107
13108
13109
13110 #
13111 # Check to make sure the static flag actually works.
13112 #
13113 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13115 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13116 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 lt_cv_prog_compiler_static_works_CXX=no
13120 save_LDFLAGS="$LDFLAGS"
13121 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13122 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13123 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13124 # The linker can only warn and ignore the option if not recognized
13125 # So say no if there are warnings
13126 if test -s conftest.err; then
13127 # Append any errors to the config.log.
13128 cat conftest.err 1>&5
13129 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13131 if diff conftest.exp conftest.er2 >/dev/null; then
13132 lt_cv_prog_compiler_static_works_CXX=yes
13133 fi
13134 else
13135 lt_cv_prog_compiler_static_works_CXX=yes
13136 fi
13137 fi
13138 $RM -r conftest*
13139 LDFLAGS="$save_LDFLAGS"
13140
13141 fi
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13143 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13144
13145 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13146 :
13147 else
13148 lt_prog_compiler_static_CXX=
13149 fi
13150
13151
13152
13153
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13155 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13156 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 lt_cv_prog_compiler_c_o_CXX=no
13160 $RM -r conftest 2>/dev/null
13161 mkdir conftest
13162 cd conftest
13163 mkdir out
13164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13165
13166 lt_compiler_flag="-o out/conftest2.$ac_objext"
13167 # Insert the option either (1) after the last *FLAGS variable, or
13168 # (2) before a word containing "conftest.", or (3) at the end.
13169 # Note that $ac_compile itself does not contain backslashes and begins
13170 # with a dollar sign (not a hyphen), so the echo should work correctly.
13171 lt_compile=`echo "$ac_compile" | $SED \
13172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13174 -e 's:$: $lt_compiler_flag:'`
13175 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13176 (eval "$lt_compile" 2>out/conftest.err)
13177 ac_status=$?
13178 cat out/conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13181 then
13182 # The compiler can only warn and ignore the option if not recognized
13183 # So say no if there are warnings
13184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13187 lt_cv_prog_compiler_c_o_CXX=yes
13188 fi
13189 fi
13190 chmod u+w . 2>&5
13191 $RM conftest*
13192 # SGI C++ compiler will create directory out/ii_files/ for
13193 # template instantiation
13194 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13195 $RM out/* && rmdir out
13196 cd ..
13197 $RM -r conftest
13198 $RM conftest*
13199
13200 fi
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13202 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13203
13204
13205
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13207 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13208 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13209 $as_echo_n "(cached) " >&6
13210 else
13211 lt_cv_prog_compiler_c_o_CXX=no
13212 $RM -r conftest 2>/dev/null
13213 mkdir conftest
13214 cd conftest
13215 mkdir out
13216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13217
13218 lt_compiler_flag="-o out/conftest2.$ac_objext"
13219 # Insert the option either (1) after the last *FLAGS variable, or
13220 # (2) before a word containing "conftest.", or (3) at the end.
13221 # Note that $ac_compile itself does not contain backslashes and begins
13222 # with a dollar sign (not a hyphen), so the echo should work correctly.
13223 lt_compile=`echo "$ac_compile" | $SED \
13224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13226 -e 's:$: $lt_compiler_flag:'`
13227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13228 (eval "$lt_compile" 2>out/conftest.err)
13229 ac_status=$?
13230 cat out/conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13233 then
13234 # The compiler can only warn and ignore the option if not recognized
13235 # So say no if there are warnings
13236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13239 lt_cv_prog_compiler_c_o_CXX=yes
13240 fi
13241 fi
13242 chmod u+w . 2>&5
13243 $RM conftest*
13244 # SGI C++ compiler will create directory out/ii_files/ for
13245 # template instantiation
13246 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13247 $RM out/* && rmdir out
13248 cd ..
13249 $RM -r conftest
13250 $RM conftest*
13251
13252 fi
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13254 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13255
13256
13257
13258
13259 hard_links="nottested"
13260 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13261 # do not overwrite the value of need_locks provided by the user
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13263 $as_echo_n "checking if we can lock with hard links... " >&6; }
13264 hard_links=yes
13265 $RM conftest*
13266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13267 touch conftest.a
13268 ln conftest.a conftest.b 2>&5 || hard_links=no
13269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13271 $as_echo "$hard_links" >&6; }
13272 if test "$hard_links" = no; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13274 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13275 need_locks=warn
13276 fi
13277 else
13278 need_locks=no
13279 fi
13280
13281
13282
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13284 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13285
13286 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13287 case $host_os in
13288 aix[4-9]*)
13289 # If we're using GNU nm, then we don't want the "-C" option.
13290 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13291 # Also, AIX nm treats weak defined symbols like other global defined
13292 # symbols, whereas GNU nm marks them as "W".
13293 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13294 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13295 else
13296 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13297 fi
13298 ;;
13299 pw32*)
13300 export_symbols_cmds_CXX="$ltdll_cmds"
13301 ;;
13302 cygwin* | mingw* | cegcc*)
13303 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13304 ;;
13305 *)
13306 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13307 ;;
13308 esac
13309 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13310
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13312 $as_echo "$ld_shlibs_CXX" >&6; }
13313 test "$ld_shlibs_CXX" = no && can_build_shared=no
13314
13315 with_gnu_ld_CXX=$with_gnu_ld
13316
13317
13318
13319
13320
13321
13322 #
13323 # Do we need to explicitly link libc?
13324 #
13325 case "x$archive_cmds_need_lc_CXX" in
13326 x|xyes)
13327 # Assume -lc should be added
13328 archive_cmds_need_lc_CXX=yes
13329
13330 if test "$enable_shared" = yes && test "$GCC" = yes; then
13331 case $archive_cmds_CXX in
13332 *'~'*)
13333 # FIXME: we may have to deal with multi-command sequences.
13334 ;;
13335 '$CC '*)
13336 # Test whether the compiler implicitly links with -lc since on some
13337 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13338 # to ld, don't add -lc before -lgcc.
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13340 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13341 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 $RM conftest*
13345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13346
13347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13348 (eval $ac_compile) 2>&5
13349 ac_status=$?
13350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13351 test $ac_status = 0; } 2>conftest.err; then
13352 soname=conftest
13353 lib=conftest
13354 libobjs=conftest.$ac_objext
13355 deplibs=
13356 wl=$lt_prog_compiler_wl_CXX
13357 pic_flag=$lt_prog_compiler_pic_CXX
13358 compiler_flags=-v
13359 linker_flags=-v
13360 verstring=
13361 output_objdir=.
13362 libname=conftest
13363 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13364 allow_undefined_flag_CXX=
13365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13366 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13367 ac_status=$?
13368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13369 test $ac_status = 0; }
13370 then
13371 lt_cv_archive_cmds_need_lc_CXX=no
13372 else
13373 lt_cv_archive_cmds_need_lc_CXX=yes
13374 fi
13375 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13376 else
13377 cat conftest.err 1>&5
13378 fi
13379 $RM conftest*
13380
13381 fi
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13383 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13384 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13385 ;;
13386 esac
13387 fi
13388 ;;
13389 esac
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13455 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13456
13457 library_names_spec=
13458 libname_spec='lib$name'
13459 soname_spec=
13460 shrext_cmds=".so"
13461 postinstall_cmds=
13462 postuninstall_cmds=
13463 finish_cmds=
13464 finish_eval=
13465 shlibpath_var=
13466 shlibpath_overrides_runpath=unknown
13467 version_type=none
13468 dynamic_linker="$host_os ld.so"
13469 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13470 need_lib_prefix=unknown
13471 hardcode_into_libs=no
13472
13473 # when you set need_version to no, make sure it does not cause -set_version
13474 # flags to be left without arguments
13475 need_version=unknown
13476
13477 case $host_os in
13478 aix3*)
13479 version_type=linux
13480 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13481 shlibpath_var=LIBPATH
13482
13483 # AIX 3 has no versioning support, so we append a major version to the name.
13484 soname_spec='${libname}${release}${shared_ext}$major'
13485 ;;
13486
13487 aix[4-9]*)
13488 version_type=linux
13489 need_lib_prefix=no
13490 need_version=no
13491 hardcode_into_libs=yes
13492 if test "$host_cpu" = ia64; then
13493 # AIX 5 supports IA64
13494 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13495 shlibpath_var=LD_LIBRARY_PATH
13496 else
13497 # With GCC up to 2.95.x, collect2 would create an import file
13498 # for dependence libraries. The import file would start with
13499 # the line `#! .'. This would cause the generated library to
13500 # depend on `.', always an invalid library. This was fixed in
13501 # development snapshots of GCC prior to 3.0.
13502 case $host_os in
13503 aix4 | aix4.[01] | aix4.[01].*)
13504 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13505 echo ' yes '
13506 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13507 :
13508 else
13509 can_build_shared=no
13510 fi
13511 ;;
13512 esac
13513 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13514 # soname into executable. Probably we can add versioning support to
13515 # collect2, so additional links can be useful in future.
13516 if test "$aix_use_runtimelinking" = yes; then
13517 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13518 # instead of lib<name>.a to let people know that these are not
13519 # typical AIX shared libraries.
13520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13521 else
13522 # We preserve .a as extension for shared libraries through AIX4.2
13523 # and later when we are not doing run time linking.
13524 library_names_spec='${libname}${release}.a $libname.a'
13525 soname_spec='${libname}${release}${shared_ext}$major'
13526 fi
13527 shlibpath_var=LIBPATH
13528 fi
13529 ;;
13530
13531 amigaos*)
13532 case $host_cpu in
13533 powerpc)
13534 # Since July 2007 AmigaOS4 officially supports .so libraries.
13535 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537 ;;
13538 m68k)
13539 library_names_spec='$libname.ixlibrary $libname.a'
13540 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13541 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13542 ;;
13543 esac
13544 ;;
13545
13546 beos*)
13547 library_names_spec='${libname}${shared_ext}'
13548 dynamic_linker="$host_os ld.so"
13549 shlibpath_var=LIBRARY_PATH
13550 ;;
13551
13552 bsdi[45]*)
13553 version_type=linux
13554 need_version=no
13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13556 soname_spec='${libname}${release}${shared_ext}$major'
13557 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13558 shlibpath_var=LD_LIBRARY_PATH
13559 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13560 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13561 # the default ld.so.conf also contains /usr/contrib/lib and
13562 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13563 # libtool to hard-code these into programs
13564 ;;
13565
13566 cygwin* | mingw* | pw32* | cegcc*)
13567 version_type=windows
13568 shrext_cmds=".dll"
13569 need_version=no
13570 need_lib_prefix=no
13571
13572 case $GCC,$host_os in
13573 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13574 library_names_spec='$libname.dll.a'
13575 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13576 postinstall_cmds='base_file=`basename \${file}`~
13577 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13578 dldir=$destdir/`dirname \$dlpath`~
13579 test -d \$dldir || mkdir -p \$dldir~
13580 $install_prog $dir/$dlname \$dldir/$dlname~
13581 chmod a+x \$dldir/$dlname~
13582 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13583 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13584 fi'
13585 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13586 dlpath=$dir/\$dldll~
13587 $RM \$dlpath'
13588 shlibpath_overrides_runpath=yes
13589
13590 case $host_os in
13591 cygwin*)
13592 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13593 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13594
13595 ;;
13596 mingw* | cegcc*)
13597 # MinGW DLLs use traditional 'lib' prefix
13598 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13599 ;;
13600 pw32*)
13601 # pw32 DLLs use 'pw' prefix rather than 'lib'
13602 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13603 ;;
13604 esac
13605 ;;
13606
13607 *)
13608 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13609 ;;
13610 esac
13611 dynamic_linker='Win32 ld.exe'
13612 # FIXME: first we should search . and the directory the executable is in
13613 shlibpath_var=PATH
13614 ;;
13615
13616 darwin* | rhapsody*)
13617 dynamic_linker="$host_os dyld"
13618 version_type=darwin
13619 need_lib_prefix=no
13620 need_version=no
13621 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13622 soname_spec='${libname}${release}${major}$shared_ext'
13623 shlibpath_overrides_runpath=yes
13624 shlibpath_var=DYLD_LIBRARY_PATH
13625 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13626
13627 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13628 ;;
13629
13630 dgux*)
13631 version_type=linux
13632 need_lib_prefix=no
13633 need_version=no
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13635 soname_spec='${libname}${release}${shared_ext}$major'
13636 shlibpath_var=LD_LIBRARY_PATH
13637 ;;
13638
13639 freebsd1*)
13640 dynamic_linker=no
13641 ;;
13642
13643 freebsd* | dragonfly*)
13644 # DragonFly does not have aout. When/if they implement a new
13645 # versioning mechanism, adjust this.
13646 if test -x /usr/bin/objformat; then
13647 objformat=`/usr/bin/objformat`
13648 else
13649 case $host_os in
13650 freebsd[123]*) objformat=aout ;;
13651 *) objformat=elf ;;
13652 esac
13653 fi
13654 # Handle Gentoo/FreeBSD as it was Linux
13655 case $host_vendor in
13656 gentoo)
13657 version_type=linux ;;
13658 *)
13659 version_type=freebsd-$objformat ;;
13660 esac
13661
13662 case $version_type in
13663 freebsd-elf*)
13664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13665 need_version=no
13666 need_lib_prefix=no
13667 ;;
13668 freebsd-*)
13669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13670 need_version=yes
13671 ;;
13672 linux)
13673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13674 soname_spec='${libname}${release}${shared_ext}$major'
13675 need_lib_prefix=no
13676 need_version=no
13677 ;;
13678 esac
13679 shlibpath_var=LD_LIBRARY_PATH
13680 case $host_os in
13681 freebsd2*)
13682 shlibpath_overrides_runpath=yes
13683 ;;
13684 freebsd3.[01]* | freebsdelf3.[01]*)
13685 shlibpath_overrides_runpath=yes
13686 hardcode_into_libs=yes
13687 ;;
13688 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13689 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13690 shlibpath_overrides_runpath=no
13691 hardcode_into_libs=yes
13692 ;;
13693 *) # from 4.6 on, and DragonFly
13694 shlibpath_overrides_runpath=yes
13695 hardcode_into_libs=yes
13696 ;;
13697 esac
13698 ;;
13699
13700 gnu*)
13701 version_type=linux
13702 need_lib_prefix=no
13703 need_version=no
13704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13705 soname_spec='${libname}${release}${shared_ext}$major'
13706 shlibpath_var=LD_LIBRARY_PATH
13707 hardcode_into_libs=yes
13708 ;;
13709
13710 haiku*)
13711 version_type=linux
13712 need_lib_prefix=no
13713 need_version=no
13714 dynamic_linker="$host_os runtime_loader"
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13716 soname_spec='${libname}${release}${shared_ext}$major'
13717 shlibpath_var=LIBRARY_PATH
13718 shlibpath_overrides_runpath=yes
13719 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13720 hardcode_into_libs=yes
13721 ;;
13722
13723 hpux9* | hpux10* | hpux11*)
13724 # Give a soname corresponding to the major version so that dld.sl refuses to
13725 # link against other versions.
13726 version_type=sunos
13727 need_lib_prefix=no
13728 need_version=no
13729 case $host_cpu in
13730 ia64*)
13731 shrext_cmds='.so'
13732 hardcode_into_libs=yes
13733 dynamic_linker="$host_os dld.so"
13734 shlibpath_var=LD_LIBRARY_PATH
13735 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13737 soname_spec='${libname}${release}${shared_ext}$major'
13738 if test "X$HPUX_IA64_MODE" = X32; then
13739 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13740 else
13741 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13742 fi
13743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13744 ;;
13745 hppa*64*)
13746 shrext_cmds='.sl'
13747 hardcode_into_libs=yes
13748 dynamic_linker="$host_os dld.sl"
13749 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13750 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13752 soname_spec='${libname}${release}${shared_ext}$major'
13753 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13754 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13755 ;;
13756 *)
13757 shrext_cmds='.sl'
13758 dynamic_linker="$host_os dld.sl"
13759 shlibpath_var=SHLIB_PATH
13760 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13762 soname_spec='${libname}${release}${shared_ext}$major'
13763 ;;
13764 esac
13765 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13766 postinstall_cmds='chmod 555 $lib'
13767 # or fails outright, so override atomically:
13768 install_override_mode=555
13769 ;;
13770
13771 interix[3-9]*)
13772 version_type=linux
13773 need_lib_prefix=no
13774 need_version=no
13775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13776 soname_spec='${libname}${release}${shared_ext}$major'
13777 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13778 shlibpath_var=LD_LIBRARY_PATH
13779 shlibpath_overrides_runpath=no
13780 hardcode_into_libs=yes
13781 ;;
13782
13783 irix5* | irix6* | nonstopux*)
13784 case $host_os in
13785 nonstopux*) version_type=nonstopux ;;
13786 *)
13787 if test "$lt_cv_prog_gnu_ld" = yes; then
13788 version_type=linux
13789 else
13790 version_type=irix
13791 fi ;;
13792 esac
13793 need_lib_prefix=no
13794 need_version=no
13795 soname_spec='${libname}${release}${shared_ext}$major'
13796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13797 case $host_os in
13798 irix5* | nonstopux*)
13799 libsuff= shlibsuff=
13800 ;;
13801 *)
13802 case $LD in # libtool.m4 will add one of these switches to LD
13803 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13804 libsuff= shlibsuff= libmagic=32-bit;;
13805 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13806 libsuff=32 shlibsuff=N32 libmagic=N32;;
13807 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13808 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13809 *) libsuff= shlibsuff= libmagic=never-match;;
13810 esac
13811 ;;
13812 esac
13813 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13814 shlibpath_overrides_runpath=no
13815 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13816 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13817 hardcode_into_libs=yes
13818 ;;
13819
13820 # No shared lib support for Linux oldld, aout, or coff.
13821 linux*oldld* | linux*aout* | linux*coff*)
13822 dynamic_linker=no
13823 ;;
13824
13825 # This must be Linux ELF.
13826 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13827 version_type=linux
13828 need_lib_prefix=no
13829 need_version=no
13830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13831 soname_spec='${libname}${release}${shared_ext}$major'
13832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13833 shlibpath_var=LD_LIBRARY_PATH
13834 shlibpath_overrides_runpath=no
13835
13836 # Some binutils ld are patched to set DT_RUNPATH
13837 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13838 $as_echo_n "(cached) " >&6
13839 else
13840 lt_cv_shlibpath_overrides_runpath=no
13841 save_LDFLAGS=$LDFLAGS
13842 save_libdir=$libdir
13843 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13844 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13847
13848 int
13849 main ()
13850 {
13851
13852 ;
13853 return 0;
13854 }
13855 _ACEOF
13856 if ac_fn_cxx_try_link "$LINENO"; then :
13857 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13858 lt_cv_shlibpath_overrides_runpath=yes
13859 fi
13860 fi
13861 rm -f core conftest.err conftest.$ac_objext \
13862 conftest$ac_exeext conftest.$ac_ext
13863 LDFLAGS=$save_LDFLAGS
13864 libdir=$save_libdir
13865
13866 fi
13867
13868 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13869
13870 # This implies no fast_install, which is unacceptable.
13871 # Some rework will be needed to allow for fast_install
13872 # before this can be enabled.
13873 hardcode_into_libs=yes
13874
13875 # Append ld.so.conf contents to the search path
13876 if test -f /etc/ld.so.conf; then
13877 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' ' '`
13878 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13879 fi
13880
13881 # We used to test for /lib/ld.so.1 and disable shared libraries on
13882 # powerpc, because MkLinux only supported shared libraries with the
13883 # GNU dynamic linker. Since this was broken with cross compilers,
13884 # most powerpc-linux boxes support dynamic linking these days and
13885 # people can always --disable-shared, the test was removed, and we
13886 # assume the GNU/Linux dynamic linker is in use.
13887 dynamic_linker='GNU/Linux ld.so'
13888 ;;
13889
13890 netbsd*)
13891 version_type=sunos
13892 need_lib_prefix=no
13893 need_version=no
13894 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13897 dynamic_linker='NetBSD (a.out) ld.so'
13898 else
13899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13900 soname_spec='${libname}${release}${shared_ext}$major'
13901 dynamic_linker='NetBSD ld.elf_so'
13902 fi
13903 shlibpath_var=LD_LIBRARY_PATH
13904 shlibpath_overrides_runpath=yes
13905 hardcode_into_libs=yes
13906 ;;
13907
13908 newsos6)
13909 version_type=linux
13910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13911 shlibpath_var=LD_LIBRARY_PATH
13912 shlibpath_overrides_runpath=yes
13913 ;;
13914
13915 *nto* | *qnx*)
13916 version_type=qnx
13917 need_lib_prefix=no
13918 need_version=no
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920 soname_spec='${libname}${release}${shared_ext}$major'
13921 shlibpath_var=LD_LIBRARY_PATH
13922 shlibpath_overrides_runpath=no
13923 hardcode_into_libs=yes
13924 dynamic_linker='ldqnx.so'
13925 ;;
13926
13927 openbsd*)
13928 version_type=sunos
13929 sys_lib_dlsearch_path_spec="/usr/lib"
13930 need_lib_prefix=no
13931 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13932 case $host_os in
13933 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13934 *) need_version=no ;;
13935 esac
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13938 shlibpath_var=LD_LIBRARY_PATH
13939 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13940 case $host_os in
13941 openbsd2.[89] | openbsd2.[89].*)
13942 shlibpath_overrides_runpath=no
13943 ;;
13944 *)
13945 shlibpath_overrides_runpath=yes
13946 ;;
13947 esac
13948 else
13949 shlibpath_overrides_runpath=yes
13950 fi
13951 ;;
13952
13953 os2*)
13954 libname_spec='$name'
13955 shrext_cmds=".dll"
13956 need_lib_prefix=no
13957 library_names_spec='$libname${shared_ext} $libname.a'
13958 dynamic_linker='OS/2 ld.exe'
13959 shlibpath_var=LIBPATH
13960 ;;
13961
13962 osf3* | osf4* | osf5*)
13963 version_type=osf
13964 need_lib_prefix=no
13965 need_version=no
13966 soname_spec='${libname}${release}${shared_ext}$major'
13967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13968 shlibpath_var=LD_LIBRARY_PATH
13969 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13970 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13971 ;;
13972
13973 rdos*)
13974 dynamic_linker=no
13975 ;;
13976
13977 solaris*)
13978 version_type=linux
13979 need_lib_prefix=no
13980 need_version=no
13981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13982 soname_spec='${libname}${release}${shared_ext}$major'
13983 shlibpath_var=LD_LIBRARY_PATH
13984 shlibpath_overrides_runpath=yes
13985 hardcode_into_libs=yes
13986 # ldd complains unless libraries are executable
13987 postinstall_cmds='chmod +x $lib'
13988 ;;
13989
13990 sunos4*)
13991 version_type=sunos
13992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13993 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13994 shlibpath_var=LD_LIBRARY_PATH
13995 shlibpath_overrides_runpath=yes
13996 if test "$with_gnu_ld" = yes; then
13997 need_lib_prefix=no
13998 fi
13999 need_version=yes
14000 ;;
14001
14002 sysv4 | sysv4.3*)
14003 version_type=linux
14004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14005 soname_spec='${libname}${release}${shared_ext}$major'
14006 shlibpath_var=LD_LIBRARY_PATH
14007 case $host_vendor in
14008 sni)
14009 shlibpath_overrides_runpath=no
14010 need_lib_prefix=no
14011 runpath_var=LD_RUN_PATH
14012 ;;
14013 siemens)
14014 need_lib_prefix=no
14015 ;;
14016 motorola)
14017 need_lib_prefix=no
14018 need_version=no
14019 shlibpath_overrides_runpath=no
14020 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14021 ;;
14022 esac
14023 ;;
14024
14025 sysv4*MP*)
14026 if test -d /usr/nec ;then
14027 version_type=linux
14028 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14029 soname_spec='$libname${shared_ext}.$major'
14030 shlibpath_var=LD_LIBRARY_PATH
14031 fi
14032 ;;
14033
14034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14035 version_type=freebsd-elf
14036 need_lib_prefix=no
14037 need_version=no
14038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14039 soname_spec='${libname}${release}${shared_ext}$major'
14040 shlibpath_var=LD_LIBRARY_PATH
14041 shlibpath_overrides_runpath=yes
14042 hardcode_into_libs=yes
14043 if test "$with_gnu_ld" = yes; then
14044 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14045 else
14046 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14047 case $host_os in
14048 sco3.2v5*)
14049 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14050 ;;
14051 esac
14052 fi
14053 sys_lib_dlsearch_path_spec='/usr/lib'
14054 ;;
14055
14056 tpf*)
14057 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14058 version_type=linux
14059 need_lib_prefix=no
14060 need_version=no
14061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14062 shlibpath_var=LD_LIBRARY_PATH
14063 shlibpath_overrides_runpath=no
14064 hardcode_into_libs=yes
14065 ;;
14066
14067 uts4*)
14068 version_type=linux
14069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14070 soname_spec='${libname}${release}${shared_ext}$major'
14071 shlibpath_var=LD_LIBRARY_PATH
14072 ;;
14073
14074 *)
14075 dynamic_linker=no
14076 ;;
14077 esac
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14079 $as_echo "$dynamic_linker" >&6; }
14080 test "$dynamic_linker" = no && can_build_shared=no
14081
14082 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14083 if test "$GCC" = yes; then
14084 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14085 fi
14086
14087 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14088 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14089 fi
14090 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14091 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14092 fi
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14132 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14133 hardcode_action_CXX=
14134 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14135 test -n "$runpath_var_CXX" ||
14136 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14137
14138 # We can hardcode non-existent directories.
14139 if test "$hardcode_direct_CXX" != no &&
14140 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14141 # have to relink, otherwise we might link with an installed library
14142 # when we should be linking with a yet-to-be-installed one
14143 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14144 test "$hardcode_minus_L_CXX" != no; then
14145 # Linking always hardcodes the temporary library directory.
14146 hardcode_action_CXX=relink
14147 else
14148 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14149 hardcode_action_CXX=immediate
14150 fi
14151 else
14152 # We cannot hardcode anything, or else we can only hardcode existing
14153 # directories.
14154 hardcode_action_CXX=unsupported
14155 fi
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14157 $as_echo "$hardcode_action_CXX" >&6; }
14158
14159 if test "$hardcode_action_CXX" = relink ||
14160 test "$inherit_rpath_CXX" = yes; then
14161 # Fast installation is not supported
14162 enable_fast_install=no
14163 elif test "$shlibpath_overrides_runpath" = yes ||
14164 test "$enable_shared" = no; then
14165 # Fast installation is not necessary
14166 enable_fast_install=needless
14167 fi
14168
14169
14170
14171
14172
14173
14174
14175 fi # test -n "$compiler"
14176
14177 CC=$lt_save_CC
14178 LDCXX=$LD
14179 LD=$lt_save_LD
14180 GCC=$lt_save_GCC
14181 with_gnu_ld=$lt_save_with_gnu_ld
14182 lt_cv_path_LDCXX=$lt_cv_path_LD
14183 lt_cv_path_LD=$lt_save_path_LD
14184 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14185 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14186 fi # test "$_lt_caught_CXX_error" != yes
14187
14188 ac_ext=c
14189 ac_cpp='$CPP $CPPFLAGS'
14190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206 ac_config_commands="$ac_config_commands libtool"
14207
14208
14209
14210
14211 # Only expand once:
14212
14213
14214 if test "x$CC" != xcc; then
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
14216 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
14217 else
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
14219 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
14220 fi
14221 set dummy $CC; ac_cc=`$as_echo "$2" |
14222 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
14223 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
14224 $as_echo_n "(cached) " >&6
14225 else
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14228
14229 int
14230 main ()
14231 {
14232
14233 ;
14234 return 0;
14235 }
14236 _ACEOF
14237 # Make sure it works both with $CC and with simple cc.
14238 # We do the test twice because some compilers refuse to overwrite an
14239 # existing .o file with -o, though they will create one.
14240 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14241 rm -f conftest2.*
14242 if { { case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14245 esac
14246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14247 $as_echo "$ac_try_echo"; } >&5
14248 (eval "$ac_try") 2>&5
14249 ac_status=$?
14250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14251 test $ac_status = 0; } &&
14252 test -f conftest2.$ac_objext && { { case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14255 esac
14256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14257 $as_echo "$ac_try_echo"; } >&5
14258 (eval "$ac_try") 2>&5
14259 ac_status=$?
14260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14261 test $ac_status = 0; };
14262 then
14263 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
14264 if test "x$CC" != xcc; then
14265 # Test first that cc exists at all.
14266 if { ac_try='cc -c conftest.$ac_ext >&5'
14267 { { case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14270 esac
14271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14272 $as_echo "$ac_try_echo"; } >&5
14273 (eval "$ac_try") 2>&5
14274 ac_status=$?
14275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14276 test $ac_status = 0; }; }; then
14277 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
14278 rm -f conftest2.*
14279 if { { case "(($ac_try" in
14280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281 *) ac_try_echo=$ac_try;;
14282 esac
14283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14284 $as_echo "$ac_try_echo"; } >&5
14285 (eval "$ac_try") 2>&5
14286 ac_status=$?
14287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14288 test $ac_status = 0; } &&
14289 test -f conftest2.$ac_objext && { { case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14292 esac
14293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14294 $as_echo "$ac_try_echo"; } >&5
14295 (eval "$ac_try") 2>&5
14296 ac_status=$?
14297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14298 test $ac_status = 0; };
14299 then
14300 # cc works too.
14301 :
14302 else
14303 # cc exists but doesn't like -o.
14304 eval ac_cv_prog_cc_${ac_cc}_c_o=no
14305 fi
14306 fi
14307 fi
14308 else
14309 eval ac_cv_prog_cc_${ac_cc}_c_o=no
14310 fi
14311 rm -f core conftest*
14312
14313 fi
14314 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14316 $as_echo "yes" >&6; }
14317 else
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319 $as_echo "no" >&6; }
14320
14321 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
14322
14323 fi
14324
14325 # FIXME: we rely on the cache variable name because
14326 # there is no other way.
14327 set dummy $CC
14328 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
14329 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
14330 if test "$am_t" != yes; then
14331 # Losing compiler, so override with the script.
14332 # FIXME: It is wrong to rewrite CC.
14333 # But if we don't then we get into trouble of one sort or another.
14334 # A longer-term fix would be to have automake use am__CC in this case,
14335 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14336 CC="$am_aux_dir/compile $CC"
14337 fi
14338
14339
14340
14341 # Checks for libraries.
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
14343 $as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
14344 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
14345 $as_echo_n "(cached) " >&6
14346 else
14347 ac_check_lib_save_LIBS=$LIBS
14348 LIBS="-lltdl $LIBS"
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351
14352 /* Override any GCC internal prototype to avoid an error.
14353 Use char because int might match the return type of a GCC
14354 builtin and then its argument prototype would still apply. */
14355 #ifdef __cplusplus
14356 extern "C"
14357 #endif
14358 char lt_dlopen ();
14359 int
14360 main ()
14361 {
14362 return lt_dlopen ();
14363 ;
14364 return 0;
14365 }
14366 _ACEOF
14367 if ac_fn_c_try_link "$LINENO"; then :
14368 ac_cv_lib_ltdl_lt_dlopen=yes
14369 else
14370 ac_cv_lib_ltdl_lt_dlopen=no
14371 fi
14372 rm -f core conftest.err conftest.$ac_objext \
14373 conftest$ac_exeext conftest.$ac_ext
14374 LIBS=$ac_check_lib_save_LIBS
14375 fi
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
14377 $as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
14378 if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
14379 cat >>confdefs.h <<_ACEOF
14380 #define HAVE_LIBLTDL 1
14381 _ACEOF
14382
14383 LIBS="-lltdl $LIBS"
14384
14385 else
14386 as_fn_error "ltdl is required to build libucimf" "$LINENO" 5
14387 fi
14388
14389
14390
14391
14392
14393
14394
14395
14396 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14397 if test -n "$ac_tool_prefix"; then
14398 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14399 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14401 $as_echo_n "checking for $ac_word... " >&6; }
14402 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14403 $as_echo_n "(cached) " >&6
14404 else
14405 case $PKG_CONFIG in
14406 [\\/]* | ?:[\\/]*)
14407 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14408 ;;
14409 *)
14410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14411 for as_dir in $PATH
14412 do
14413 IFS=$as_save_IFS
14414 test -z "$as_dir" && as_dir=.
14415 for ac_exec_ext in '' $ac_executable_extensions; do
14416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14417 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14419 break 2
14420 fi
14421 done
14422 done
14423 IFS=$as_save_IFS
14424
14425 ;;
14426 esac
14427 fi
14428 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14429 if test -n "$PKG_CONFIG"; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14431 $as_echo "$PKG_CONFIG" >&6; }
14432 else
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14434 $as_echo "no" >&6; }
14435 fi
14436
14437
14438 fi
14439 if test -z "$ac_cv_path_PKG_CONFIG"; then
14440 ac_pt_PKG_CONFIG=$PKG_CONFIG
14441 # Extract the first word of "pkg-config", so it can be a program name with args.
14442 set dummy pkg-config; ac_word=$2
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14444 $as_echo_n "checking for $ac_word... " >&6; }
14445 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
14446 $as_echo_n "(cached) " >&6
14447 else
14448 case $ac_pt_PKG_CONFIG in
14449 [\\/]* | ?:[\\/]*)
14450 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14451 ;;
14452 *)
14453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14454 for as_dir in $PATH
14455 do
14456 IFS=$as_save_IFS
14457 test -z "$as_dir" && as_dir=.
14458 for ac_exec_ext in '' $ac_executable_extensions; do
14459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14460 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14462 break 2
14463 fi
14464 done
14465 done
14466 IFS=$as_save_IFS
14467
14468 ;;
14469 esac
14470 fi
14471 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14472 if test -n "$ac_pt_PKG_CONFIG"; then
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14474 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14475 else
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14477 $as_echo "no" >&6; }
14478 fi
14479
14480 if test "x$ac_pt_PKG_CONFIG" = x; then
14481 PKG_CONFIG=""
14482 else
14483 case $cross_compiling:$ac_tool_warned in
14484 yes:)
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14487 ac_tool_warned=yes ;;
14488 esac
14489 PKG_CONFIG=$ac_pt_PKG_CONFIG
14490 fi
14491 else
14492 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14493 fi
14494
14495 fi
14496 if test -n "$PKG_CONFIG"; then
14497 _pkg_min_version=0.9.0
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14499 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14500 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14502 $as_echo "yes" >&6; }
14503 else
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14505 $as_echo "no" >&6; }
14506 PKG_CONFIG=""
14507 fi
14508 fi
14509
14510 pkg_failed=no
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
14512 $as_echo_n "checking for freetype2... " >&6; }
14513
14514 if test -n "$freetype2_CFLAGS"; then
14515 pkg_cv_freetype2_CFLAGS="$freetype2_CFLAGS"
14516 elif test -n "$PKG_CONFIG"; then
14517 if test -n "$PKG_CONFIG" && \
14518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
14519 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
14520 ac_status=$?
14521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14522 test $ac_status = 0; }; then
14523 pkg_cv_freetype2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
14524 else
14525 pkg_failed=yes
14526 fi
14527 else
14528 pkg_failed=untried
14529 fi
14530 if test -n "$freetype2_LIBS"; then
14531 pkg_cv_freetype2_LIBS="$freetype2_LIBS"
14532 elif test -n "$PKG_CONFIG"; then
14533 if test -n "$PKG_CONFIG" && \
14534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
14535 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
14536 ac_status=$?
14537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14538 test $ac_status = 0; }; then
14539 pkg_cv_freetype2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
14540 else
14541 pkg_failed=yes
14542 fi
14543 else
14544 pkg_failed=untried
14545 fi
14546
14547
14548
14549 if test $pkg_failed = yes; then
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14551 $as_echo "no" >&6; }
14552
14553 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14554 _pkg_short_errors_supported=yes
14555 else
14556 _pkg_short_errors_supported=no
14557 fi
14558 if test $_pkg_short_errors_supported = yes; then
14559 freetype2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
14560 else
14561 freetype2_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
14562 fi
14563 # Put the nasty error message in config.log where it belongs
14564 echo "$freetype2_PKG_ERRORS" >&5
14565
14566 as_fn_error "Package requirements (freetype2) were not met:
14567
14568 $freetype2_PKG_ERRORS
14569
14570 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14571 installed software in a non-standard prefix.
14572
14573 Alternatively, you may set the environment variables freetype2_CFLAGS
14574 and freetype2_LIBS to avoid the need to call pkg-config.
14575 See the pkg-config man page for more details." "$LINENO" 5
14576 elif test $pkg_failed = untried; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14578 $as_echo "no" >&6; }
14579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14581 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
14582 is in your PATH or set the PKG_CONFIG environment variable to the full
14583 path to pkg-config.
14584
14585 Alternatively, you may set the environment variables freetype2_CFLAGS
14586 and freetype2_LIBS to avoid the need to call pkg-config.
14587 See the pkg-config man page for more details.
14588
14589 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14590 See \`config.log' for more details." "$LINENO" 5; }
14591 else
14592 freetype2_CFLAGS=$pkg_cv_freetype2_CFLAGS
14593 freetype2_LIBS=$pkg_cv_freetype2_LIBS
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14595 $as_echo "yes" >&6; }
14596
14597 fi
14598
14599
14600
14601
14602 pkg_failed=no
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig" >&5
14604 $as_echo_n "checking for fontconfig... " >&6; }
14605
14606 if test -n "$fontconfig_CFLAGS"; then
14607 pkg_cv_fontconfig_CFLAGS="$fontconfig_CFLAGS"
14608 elif test -n "$PKG_CONFIG"; then
14609 if test -n "$PKG_CONFIG" && \
14610 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
14611 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
14612 ac_status=$?
14613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14614 test $ac_status = 0; }; then
14615 pkg_cv_fontconfig_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
14616 else
14617 pkg_failed=yes
14618 fi
14619 else
14620 pkg_failed=untried
14621 fi
14622 if test -n "$fontconfig_LIBS"; then
14623 pkg_cv_fontconfig_LIBS="$fontconfig_LIBS"
14624 elif test -n "$PKG_CONFIG"; then
14625 if test -n "$PKG_CONFIG" && \
14626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
14627 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
14628 ac_status=$?
14629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14630 test $ac_status = 0; }; then
14631 pkg_cv_fontconfig_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
14632 else
14633 pkg_failed=yes
14634 fi
14635 else
14636 pkg_failed=untried
14637 fi
14638
14639
14640
14641 if test $pkg_failed = yes; then
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14643 $as_echo "no" >&6; }
14644
14645 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14646 _pkg_short_errors_supported=yes
14647 else
14648 _pkg_short_errors_supported=no
14649 fi
14650 if test $_pkg_short_errors_supported = yes; then
14651 fontconfig_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig" 2>&1`
14652 else
14653 fontconfig_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig" 2>&1`
14654 fi
14655 # Put the nasty error message in config.log where it belongs
14656 echo "$fontconfig_PKG_ERRORS" >&5
14657
14658 as_fn_error "Package requirements (fontconfig) were not met:
14659
14660 $fontconfig_PKG_ERRORS
14661
14662 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14663 installed software in a non-standard prefix.
14664
14665 Alternatively, you may set the environment variables fontconfig_CFLAGS
14666 and fontconfig_LIBS to avoid the need to call pkg-config.
14667 See the pkg-config man page for more details." "$LINENO" 5
14668 elif test $pkg_failed = untried; then
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14670 $as_echo "no" >&6; }
14671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14673 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
14674 is in your PATH or set the PKG_CONFIG environment variable to the full
14675 path to pkg-config.
14676
14677 Alternatively, you may set the environment variables fontconfig_CFLAGS
14678 and fontconfig_LIBS to avoid the need to call pkg-config.
14679 See the pkg-config man page for more details.
14680
14681 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14682 See \`config.log' for more details." "$LINENO" 5; }
14683 else
14684 fontconfig_CFLAGS=$pkg_cv_fontconfig_CFLAGS
14685 fontconfig_LIBS=$pkg_cv_fontconfig_LIBS
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14687 $as_echo "yes" >&6; }
14688
14689 fi
14690
14691
14692
14693
14694 # Checks for header files.
14695 ac_header_dirent=no
14696 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14697 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14699 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
14701 $as_echo_n "(cached) " >&6
14702 else
14703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14705 #include <sys/types.h>
14706 #include <$ac_hdr>
14707
14708 int
14709 main ()
14710 {
14711 if ((DIR *) 0)
14712 return 0;
14713 ;
14714 return 0;
14715 }
14716 _ACEOF
14717 if ac_fn_c_try_compile "$LINENO"; then :
14718 eval "$as_ac_Header=yes"
14719 else
14720 eval "$as_ac_Header=no"
14721 fi
14722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14723 fi
14724 eval ac_res=\$$as_ac_Header
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14726 $as_echo "$ac_res" >&6; }
14727 eval as_val=\$$as_ac_Header
14728 if test "x$as_val" = x""yes; then :
14729 cat >>confdefs.h <<_ACEOF
14730 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14731 _ACEOF
14732
14733 ac_header_dirent=$ac_hdr; break
14734 fi
14735
14736 done
14737 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14738 if test $ac_header_dirent = dirent.h; then
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14740 $as_echo_n "checking for library containing opendir... " >&6; }
14741 if test "${ac_cv_search_opendir+set}" = set; then :
14742 $as_echo_n "(cached) " >&6
14743 else
14744 ac_func_search_save_LIBS=$LIBS
14745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14746 /* end confdefs.h. */
14747
14748 /* Override any GCC internal prototype to avoid an error.
14749 Use char because int might match the return type of a GCC
14750 builtin and then its argument prototype would still apply. */
14751 #ifdef __cplusplus
14752 extern "C"
14753 #endif
14754 char opendir ();
14755 int
14756 main ()
14757 {
14758 return opendir ();
14759 ;
14760 return 0;
14761 }
14762 _ACEOF
14763 for ac_lib in '' dir; do
14764 if test -z "$ac_lib"; then
14765 ac_res="none required"
14766 else
14767 ac_res=-l$ac_lib
14768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14769 fi
14770 if ac_fn_c_try_link "$LINENO"; then :
14771 ac_cv_search_opendir=$ac_res
14772 fi
14773 rm -f core conftest.err conftest.$ac_objext \
14774 conftest$ac_exeext
14775 if test "${ac_cv_search_opendir+set}" = set; then :
14776 break
14777 fi
14778 done
14779 if test "${ac_cv_search_opendir+set}" = set; then :
14780
14781 else
14782 ac_cv_search_opendir=no
14783 fi
14784 rm conftest.$ac_ext
14785 LIBS=$ac_func_search_save_LIBS
14786 fi
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14788 $as_echo "$ac_cv_search_opendir" >&6; }
14789 ac_res=$ac_cv_search_opendir
14790 if test "$ac_res" != no; then :
14791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14792
14793 fi
14794
14795 else
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14797 $as_echo_n "checking for library containing opendir... " >&6; }
14798 if test "${ac_cv_search_opendir+set}" = set; then :
14799 $as_echo_n "(cached) " >&6
14800 else
14801 ac_func_search_save_LIBS=$LIBS
14802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14803 /* end confdefs.h. */
14804
14805 /* Override any GCC internal prototype to avoid an error.
14806 Use char because int might match the return type of a GCC
14807 builtin and then its argument prototype would still apply. */
14808 #ifdef __cplusplus
14809 extern "C"
14810 #endif
14811 char opendir ();
14812 int
14813 main ()
14814 {
14815 return opendir ();
14816 ;
14817 return 0;
14818 }
14819 _ACEOF
14820 for ac_lib in '' x; do
14821 if test -z "$ac_lib"; then
14822 ac_res="none required"
14823 else
14824 ac_res=-l$ac_lib
14825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14826 fi
14827 if ac_fn_c_try_link "$LINENO"; then :
14828 ac_cv_search_opendir=$ac_res
14829 fi
14830 rm -f core conftest.err conftest.$ac_objext \
14831 conftest$ac_exeext
14832 if test "${ac_cv_search_opendir+set}" = set; then :
14833 break
14834 fi
14835 done
14836 if test "${ac_cv_search_opendir+set}" = set; then :
14837
14838 else
14839 ac_cv_search_opendir=no
14840 fi
14841 rm conftest.$ac_ext
14842 LIBS=$ac_func_search_save_LIBS
14843 fi
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14845 $as_echo "$ac_cv_search_opendir" >&6; }
14846 ac_res=$ac_cv_search_opendir
14847 if test "$ac_res" != no; then :
14848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14849
14850 fi
14851
14852 fi
14853
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14855 $as_echo_n "checking for ANSI C header files... " >&6; }
14856 if test "${ac_cv_header_stdc+set}" = set; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861 #include <stdlib.h>
14862 #include <stdarg.h>
14863 #include <string.h>
14864 #include <float.h>
14865
14866 int
14867 main ()
14868 {
14869
14870 ;
14871 return 0;
14872 }
14873 _ACEOF
14874 if ac_fn_c_try_compile "$LINENO"; then :
14875 ac_cv_header_stdc=yes
14876 else
14877 ac_cv_header_stdc=no
14878 fi
14879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14880
14881 if test $ac_cv_header_stdc = yes; then
14882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14885 #include <string.h>
14886
14887 _ACEOF
14888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14889 $EGREP "memchr" >/dev/null 2>&1; then :
14890
14891 else
14892 ac_cv_header_stdc=no
14893 fi
14894 rm -f conftest*
14895
14896 fi
14897
14898 if test $ac_cv_header_stdc = yes; then
14899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14902 #include <stdlib.h>
14903
14904 _ACEOF
14905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14906 $EGREP "free" >/dev/null 2>&1; then :
14907
14908 else
14909 ac_cv_header_stdc=no
14910 fi
14911 rm -f conftest*
14912
14913 fi
14914
14915 if test $ac_cv_header_stdc = yes; then
14916 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14917 if test "$cross_compiling" = yes; then :
14918 :
14919 else
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14922 #include <ctype.h>
14923 #include <stdlib.h>
14924 #if ((' ' & 0x0FF) == 0x020)
14925 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14926 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14927 #else
14928 # define ISLOWER(c) \
14929 (('a' <= (c) && (c) <= 'i') \
14930 || ('j' <= (c) && (c) <= 'r') \
14931 || ('s' <= (c) && (c) <= 'z'))
14932 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14933 #endif
14934
14935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14936 int
14937 main ()
14938 {
14939 int i;
14940 for (i = 0; i < 256; i++)
14941 if (XOR (islower (i), ISLOWER (i))
14942 || toupper (i) != TOUPPER (i))
14943 return 2;
14944 return 0;
14945 }
14946 _ACEOF
14947 if ac_fn_c_try_run "$LINENO"; then :
14948
14949 else
14950 ac_cv_header_stdc=no
14951 fi
14952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14953 conftest.$ac_objext conftest.beam conftest.$ac_ext
14954 fi
14955
14956 fi
14957 fi
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14959 $as_echo "$ac_cv_header_stdc" >&6; }
14960 if test $ac_cv_header_stdc = yes; then
14961
14962 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14963
14964 fi
14965
14966 for ac_header in stdint.h fcntl.h locale.h stdlib.h string.h sys/ioctl.h unistd.h
14967 do :
14968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14969 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14970 eval as_val=\$$as_ac_Header
14971 if test "x$as_val" = x""yes; then :
14972 cat >>confdefs.h <<_ACEOF
14973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14974 _ACEOF
14975
14976 fi
14977
14978 done
14979
14980
14981 # Checks for typedefs, structures, and compiler characteristics.
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14983 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14984 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14985 $as_echo_n "(cached) " >&6
14986 else
14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14989
14990 #include <stdbool.h>
14991 #ifndef bool
14992 "error: bool is not defined"
14993 #endif
14994 #ifndef false
14995 "error: false is not defined"
14996 #endif
14997 #if false
14998 "error: false is not 0"
14999 #endif
15000 #ifndef true
15001 "error: true is not defined"
15002 #endif
15003 #if true != 1
15004 "error: true is not 1"
15005 #endif
15006 #ifndef __bool_true_false_are_defined
15007 "error: __bool_true_false_are_defined is not defined"
15008 #endif
15009
15010 struct s { _Bool s: 1; _Bool t; } s;
15011
15012 char a[true == 1 ? 1 : -1];
15013 char b[false == 0 ? 1 : -1];
15014 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15015 char d[(bool) 0.5 == true ? 1 : -1];
15016 bool e = &s;
15017 char f[(_Bool) 0.0 == false ? 1 : -1];
15018 char g[true];
15019 char h[sizeof (_Bool)];
15020 char i[sizeof s.t];
15021 enum { j = false, k = true, l = false * true, m = true * 256 };
15022 /* The following fails for
15023 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15024 _Bool n[m];
15025 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15026 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15027 # if defined __xlc__ || defined __GNUC__
15028 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
15029 reported by James Lemley on 2005-10-05; see
15030 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
15031 This test is not quite right, since xlc is allowed to
15032 reject this program, as the initializer for xlcbug is
15033 not one of the forms that C requires support for.
15034 However, doing the test right would require a runtime
15035 test, and that would make cross-compilation harder.
15036 Let us hope that IBM fixes the xlc bug, and also adds
15037 support for this kind of constant expression. In the
15038 meantime, this test will reject xlc, which is OK, since
15039 our stdbool.h substitute should suffice. We also test
15040 this with GCC, where it should work, to detect more
15041 quickly whether someone messes up the test in the
15042 future. */
15043 char digs[] = "0123456789";
15044 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
15045 # endif
15046 /* Catch a bug in an HP-UX C compiler. See
15047 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15048 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15049 */
15050 _Bool q = true;
15051 _Bool *pq = &q;
15052
15053 int
15054 main ()
15055 {
15056
15057 *pq |= q;
15058 *pq |= ! q;
15059 /* Refer to every declared value, to avoid compiler optimizations. */
15060 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15061 + !m + !n + !o + !p + !q + !pq);
15062
15063 ;
15064 return 0;
15065 }
15066 _ACEOF
15067 if ac_fn_c_try_compile "$LINENO"; then :
15068 ac_cv_header_stdbool_h=yes
15069 else
15070 ac_cv_header_stdbool_h=no
15071 fi
15072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073 fi
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15075 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15076 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15077 if test "x$ac_cv_type__Bool" = x""yes; then :
15078
15079 cat >>confdefs.h <<_ACEOF
15080 #define HAVE__BOOL 1
15081 _ACEOF
15082
15083
15084 fi
15085
15086 if test $ac_cv_header_stdbool_h = yes; then
15087
15088 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15089
15090 fi
15091
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15093 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15094 if test "${ac_cv_c_const+set}" = set; then :
15095 $as_echo_n "(cached) " >&6
15096 else
15097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15098 /* end confdefs.h. */
15099
15100 int
15101 main ()
15102 {
15103 /* FIXME: Include the comments suggested by Paul. */
15104 #ifndef __cplusplus
15105 /* Ultrix mips cc rejects this. */
15106 typedef int charset[2];
15107 const charset cs;
15108 /* SunOS 4.1.1 cc rejects this. */
15109 char const *const *pcpcc;
15110 char **ppc;
15111 /* NEC SVR4.0.2 mips cc rejects this. */
15112 struct point {int x, y;};
15113 static struct point const zero = {0,0};
15114 /* AIX XL C 1.02.0.0 rejects this.
15115 It does not let you subtract one const X* pointer from another in
15116 an arm of an if-expression whose if-part is not a constant
15117 expression */
15118 const char *g = "string";
15119 pcpcc = &g + (g ? g-g : 0);
15120 /* HPUX 7.0 cc rejects these. */
15121 ++pcpcc;
15122 ppc = (char**) pcpcc;
15123 pcpcc = (char const *const *) ppc;
15124 { /* SCO 3.2v4 cc rejects this. */
15125 char *t;
15126 char const *s = 0 ? (char *) 0 : (char const *) 0;
15127
15128 *t++ = 0;
15129 if (s) return 0;
15130 }
15131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15132 int x[] = {25, 17};
15133 const int *foo = &x[0];
15134 ++foo;
15135 }
15136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15137 typedef const int *iptr;
15138 iptr p = 0;
15139 ++p;
15140 }
15141 { /* AIX XL C 1.02.0.0 rejects this saying
15142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15143 struct s { int j; const int *ap[3]; };
15144 struct s *b; b->j = 5;
15145 }
15146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15147 const int foo = 10;
15148 if (!foo) return 0;
15149 }
15150 return !cs[0] && !zero.x;
15151 #endif
15152
15153 ;
15154 return 0;
15155 }
15156 _ACEOF
15157 if ac_fn_c_try_compile "$LINENO"; then :
15158 ac_cv_c_const=yes
15159 else
15160 ac_cv_c_const=no
15161 fi
15162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15163 fi
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15165 $as_echo "$ac_cv_c_const" >&6; }
15166 if test $ac_cv_c_const = no; then
15167
15168 $as_echo "#define const /**/" >>confdefs.h
15169
15170 fi
15171
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15173 $as_echo_n "checking for inline... " >&6; }
15174 if test "${ac_cv_c_inline+set}" = set; then :
15175 $as_echo_n "(cached) " >&6
15176 else
15177 ac_cv_c_inline=no
15178 for ac_kw in inline __inline__ __inline; do
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h. */
15181 #ifndef __cplusplus
15182 typedef int foo_t;
15183 static $ac_kw foo_t static_foo () {return 0; }
15184 $ac_kw foo_t foo () {return 0; }
15185 #endif
15186
15187 _ACEOF
15188 if ac_fn_c_try_compile "$LINENO"; then :
15189 ac_cv_c_inline=$ac_kw
15190 fi
15191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15192 test "$ac_cv_c_inline" != no && break
15193 done
15194
15195 fi
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15197 $as_echo "$ac_cv_c_inline" >&6; }
15198
15199 case $ac_cv_c_inline in
15200 inline | yes) ;;
15201 *)
15202 case $ac_cv_c_inline in
15203 no) ac_val=;;
15204 *) ac_val=$ac_cv_c_inline;;
15205 esac
15206 cat >>confdefs.h <<_ACEOF
15207 #ifndef __cplusplus
15208 #define inline $ac_val
15209 #endif
15210 _ACEOF
15211 ;;
15212 esac
15213
15214 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15215 if test "x$ac_cv_type_size_t" = x""yes; then :
15216
15217 else
15218
15219 cat >>confdefs.h <<_ACEOF
15220 #define size_t unsigned int
15221 _ACEOF
15222
15223 fi
15224
15225
15226 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15227 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
15228
15229 cat >>confdefs.h <<_ACEOF
15230 #define UCIMF_CONF "`eval echo $sysconfdir/ucimf.conf`"
15231 _ACEOF
15232
15233
15234 cat >>confdefs.h <<_ACEOF
15235 #define IMF_MODULE_DIR "`eval echo $libdir/ucimf/`"
15236 _ACEOF
15237
15238
15239
15240 # Check whether --enable-debug was given.
15241 if test "${enable_debug+set}" = set; then :
15242 enableval=$enable_debug; debug=$enableval
15243 else
15244 debug="no"
15245 fi
15246
15247
15248 if test "$debug" = yes; then
15249 $as_echo "#define USE_DEBUG /**/" >>confdefs.h
15250
15251 fi
15252 if test "$debug" = "yes"; then
15253 ENABLE_DEBUG_TRUE=
15254 ENABLE_DEBUG_FALSE='#'
15255 else
15256 ENABLE_DEBUG_TRUE='#'
15257 ENABLE_DEBUG_FALSE=
15258 fi
15259
15260
15261
15262 # Checks for library functions.
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15264 $as_echo_n "checking whether closedir returns void... " >&6; }
15265 if test "${ac_cv_func_closedir_void+set}" = set; then :
15266 $as_echo_n "(cached) " >&6
15267 else
15268 if test "$cross_compiling" = yes; then :
15269 ac_cv_func_closedir_void=yes
15270 else
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15273 $ac_includes_default
15274 #include <$ac_header_dirent>
15275 #ifndef __cplusplus
15276 int closedir ();
15277 #endif
15278
15279 int
15280 main ()
15281 {
15282 return closedir (opendir (".")) != 0;
15283 ;
15284 return 0;
15285 }
15286 _ACEOF
15287 if ac_fn_c_try_run "$LINENO"; then :
15288 ac_cv_func_closedir_void=no
15289 else
15290 ac_cv_func_closedir_void=yes
15291 fi
15292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15293 conftest.$ac_objext conftest.beam conftest.$ac_ext
15294 fi
15295
15296 fi
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15298 $as_echo "$ac_cv_func_closedir_void" >&6; }
15299 if test $ac_cv_func_closedir_void = yes; then
15300
15301 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
15302
15303 fi
15304
15305 if test $ac_cv_c_compiler_gnu = yes; then
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
15307 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
15308 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
15309 $as_echo_n "(cached) " >&6
15310 else
15311 ac_pattern="Autoconf.*'x'"
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15314 #include <sgtty.h>
15315 Autoconf TIOCGETP
15316 _ACEOF
15317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15318 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
15319 ac_cv_prog_gcc_traditional=yes
15320 else
15321 ac_cv_prog_gcc_traditional=no
15322 fi
15323 rm -f conftest*
15324
15325
15326 if test $ac_cv_prog_gcc_traditional = no; then
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15329 #include <termio.h>
15330 Autoconf TCGETA
15331 _ACEOF
15332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15333 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
15334 ac_cv_prog_gcc_traditional=yes
15335 fi
15336 rm -f conftest*
15337
15338 fi
15339 fi
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
15341 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
15342 if test $ac_cv_prog_gcc_traditional = yes; then
15343 CC="$CC -traditional"
15344 fi
15345 fi
15346
15347 for ac_header in stdlib.h
15348 do :
15349 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15350 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
15351 cat >>confdefs.h <<_ACEOF
15352 #define HAVE_STDLIB_H 1
15353 _ACEOF
15354
15355 fi
15356
15357 done
15358
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15360 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15361 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
15362 $as_echo_n "(cached) " >&6
15363 else
15364 if test "$cross_compiling" = yes; then :
15365 ac_cv_func_malloc_0_nonnull=no
15366 else
15367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h. */
15369 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15370 # include <stdlib.h>
15371 #else
15372 char *malloc ();
15373 #endif
15374
15375 int
15376 main ()
15377 {
15378 return ! malloc (0);
15379 ;
15380 return 0;
15381 }
15382 _ACEOF
15383 if ac_fn_c_try_run "$LINENO"; then :
15384 ac_cv_func_malloc_0_nonnull=yes
15385 else
15386 ac_cv_func_malloc_0_nonnull=no
15387 fi
15388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15389 conftest.$ac_objext conftest.beam conftest.$ac_ext
15390 fi
15391
15392 fi
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15394 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15395 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15396
15397 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15398
15399 else
15400 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15401
15402 case " $LIBOBJS " in
15403 *" malloc.$ac_objext "* ) ;;
15404 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15405 ;;
15406 esac
15407
15408
15409 $as_echo "#define malloc rpl_malloc" >>confdefs.h
15410
15411 fi
15412
15413
15414
15415
15416
15417 for ac_header in $ac_header_list
15418 do :
15419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15420 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15421 "
15422 eval as_val=\$$as_ac_Header
15423 if test "x$as_val" = x""yes; then :
15424 cat >>confdefs.h <<_ACEOF
15425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15426 _ACEOF
15427
15428 fi
15429
15430 done
15431
15432
15433
15434
15435
15436
15437
15438
15439 for ac_func in getpagesize
15440 do :
15441 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15442 if test "x$ac_cv_func_getpagesize" = x""yes; then :
15443 cat >>confdefs.h <<_ACEOF
15444 #define HAVE_GETPAGESIZE 1
15445 _ACEOF
15446
15447 fi
15448 done
15449
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15451 $as_echo_n "checking for working mmap... " >&6; }
15452 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15453 $as_echo_n "(cached) " >&6
15454 else
15455 if test "$cross_compiling" = yes; then :
15456 ac_cv_func_mmap_fixed_mapped=no
15457 else
15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459 /* end confdefs.h. */
15460 $ac_includes_default
15461 /* malloc might have been renamed as rpl_malloc. */
15462 #undef malloc
15463
15464 /* Thanks to Mike Haertel and Jim Avera for this test.
15465 Here is a matrix of mmap possibilities:
15466 mmap private not fixed
15467 mmap private fixed at somewhere currently unmapped
15468 mmap private fixed at somewhere already mapped
15469 mmap shared not fixed
15470 mmap shared fixed at somewhere currently unmapped
15471 mmap shared fixed at somewhere already mapped
15472 For private mappings, we should verify that changes cannot be read()
15473 back from the file, nor mmap's back from the file at a different
15474 address. (There have been systems where private was not correctly
15475 implemented like the infamous i386 svr4.0, and systems where the
15476 VM page cache was not coherent with the file system buffer cache
15477 like early versions of FreeBSD and possibly contemporary NetBSD.)
15478 For shared mappings, we should conversely verify that changes get
15479 propagated back to all the places they're supposed to be.
15480
15481 Grep wants private fixed already mapped.
15482 The main things grep needs to know about mmap are:
15483 * does it exist and is it safe to write into the mmap'd area
15484 * how to use it (BSD variants) */
15485
15486 #include <fcntl.h>
15487 #include <sys/mman.h>
15488
15489 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15490 char *malloc ();
15491 #endif
15492
15493 /* This mess was copied from the GNU getpagesize.h. */
15494 #ifndef HAVE_GETPAGESIZE
15495 # ifdef _SC_PAGESIZE
15496 # define getpagesize() sysconf(_SC_PAGESIZE)
15497 # else /* no _SC_PAGESIZE */
15498 # ifdef HAVE_SYS_PARAM_H
15499 # include <sys/param.h>
15500 # ifdef EXEC_PAGESIZE
15501 # define getpagesize() EXEC_PAGESIZE
15502 # else /* no EXEC_PAGESIZE */
15503 # ifdef NBPG
15504 # define getpagesize() NBPG * CLSIZE
15505 # ifndef CLSIZE
15506 # define CLSIZE 1
15507 # endif /* no CLSIZE */
15508 # else /* no NBPG */
15509 # ifdef NBPC
15510 # define getpagesize() NBPC
15511 # else /* no NBPC */
15512 # ifdef PAGESIZE
15513 # define getpagesize() PAGESIZE
15514 # endif /* PAGESIZE */
15515 # endif /* no NBPC */
15516 # endif /* no NBPG */
15517 # endif /* no EXEC_PAGESIZE */
15518 # else /* no HAVE_SYS_PARAM_H */
15519 # define getpagesize() 8192 /* punt totally */
15520 # endif /* no HAVE_SYS_PARAM_H */
15521 # endif /* no _SC_PAGESIZE */
15522
15523 #endif /* no HAVE_GETPAGESIZE */
15524
15525 int
15526 main ()
15527 {
15528 char *data, *data2, *data3;
15529 int i, pagesize;
15530 int fd, fd2;
15531
15532 pagesize = getpagesize ();
15533
15534 /* First, make a file with some known garbage in it. */
15535 data = (char *) malloc (pagesize);
15536 if (!data)
15537 return 1;
15538 for (i = 0; i < pagesize; ++i)
15539 *(data + i) = rand ();
15540 umask (0);
15541 fd = creat ("conftest.mmap", 0600);
15542 if (fd < 0)
15543 return 2;
15544 if (write (fd, data, pagesize) != pagesize)
15545 return 3;
15546 close (fd);
15547
15548 /* Next, check that the tail of a page is zero-filled. File must have
15549 non-zero length, otherwise we risk SIGBUS for entire page. */
15550 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15551 if (fd2 < 0)
15552 return 4;
15553 data2 = "";
15554 if (write (fd2, data2, 1) != 1)
15555 return 5;
15556 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15557 if (data2 == MAP_FAILED)
15558 return 6;
15559 for (i = 0; i < pagesize; ++i)
15560 if (*(data2 + i))
15561 return 7;
15562 close (fd2);
15563 if (munmap (data2, pagesize))
15564 return 8;
15565
15566 /* Next, try to mmap the file at a fixed address which already has
15567 something else allocated at it. If we can, also make sure that
15568 we see the same garbage. */
15569 fd = open ("conftest.mmap", O_RDWR);
15570 if (fd < 0)
15571 return 9;
15572 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15573 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15574 return 10;
15575 for (i = 0; i < pagesize; ++i)
15576 if (*(data + i) != *(data2 + i))
15577 return 11;
15578
15579 /* Finally, make sure that changes to the mapped area do not
15580 percolate back to the file as seen by read(). (This is a bug on
15581 some variants of i386 svr4.0.) */
15582 for (i = 0; i < pagesize; ++i)
15583 *(data2 + i) = *(data2 + i) + 1;
15584 data3 = (char *) malloc (pagesize);
15585 if (!data3)
15586 return 12;
15587 if (read (fd, data3, pagesize) != pagesize)
15588 return 13;
15589 for (i = 0; i < pagesize; ++i)
15590 if (*(data + i) != *(data3 + i))
15591 return 14;
15592 close (fd);
15593 return 0;
15594 }
15595 _ACEOF
15596 if ac_fn_c_try_run "$LINENO"; then :
15597 ac_cv_func_mmap_fixed_mapped=yes
15598 else
15599 ac_cv_func_mmap_fixed_mapped=no
15600 fi
15601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15602 conftest.$ac_objext conftest.beam conftest.$ac_ext
15603 fi
15604
15605 fi
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15607 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15608 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15609
15610 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15611
15612 fi
15613 rm -f conftest.mmap conftest.txt
15614
15615 for ac_header in stdlib.h
15616 do :
15617 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15618 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
15619 cat >>confdefs.h <<_ACEOF
15620 #define HAVE_STDLIB_H 1
15621 _ACEOF
15622
15623 fi
15624
15625 done
15626
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
15628 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
15629 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15632 if test "$cross_compiling" = yes; then :
15633 ac_cv_func_realloc_0_nonnull=no
15634 else
15635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636 /* end confdefs.h. */
15637 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15638 # include <stdlib.h>
15639 #else
15640 char *realloc ();
15641 #endif
15642
15643 int
15644 main ()
15645 {
15646 return ! realloc (0, 0);
15647 ;
15648 return 0;
15649 }
15650 _ACEOF
15651 if ac_fn_c_try_run "$LINENO"; then :
15652 ac_cv_func_realloc_0_nonnull=yes
15653 else
15654 ac_cv_func_realloc_0_nonnull=no
15655 fi
15656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15657 conftest.$ac_objext conftest.beam conftest.$ac_ext
15658 fi
15659
15660 fi
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
15662 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
15663 if test $ac_cv_func_realloc_0_nonnull = yes; then :
15664
15665 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
15666
15667 else
15668 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
15669
15670 case " $LIBOBJS " in
15671 *" realloc.$ac_objext "* ) ;;
15672 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
15673 ;;
15674 esac
15675
15676
15677 $as_echo "#define realloc rpl_realloc" >>confdefs.h
15678
15679 fi
15680
15681
15682 for ac_func in memmove memset munmap setlocale strstr
15683 do :
15684 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15685 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15686 eval as_val=\$$as_ac_var
15687 if test "x$as_val" = x""yes; then :
15688 cat >>confdefs.h <<_ACEOF
15689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15690 _ACEOF
15691
15692 fi
15693 done
15694
15695
15696 # Extract the first word of "dialog", so it can be a program name with args.
15697 set dummy dialog; ac_word=$2
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15699 $as_echo_n "checking for $ac_word... " >&6; }
15700 if test "${ac_cv_prog_DIALOG+set}" = set; then :
15701 $as_echo_n "(cached) " >&6
15702 else
15703 if test -n "$DIALOG"; then
15704 ac_cv_prog_DIALOG="$DIALOG" # Let the user override the test.
15705 else
15706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15707 for as_dir in $PATH
15708 do
15709 IFS=$as_save_IFS
15710 test -z "$as_dir" && as_dir=.
15711 for ac_exec_ext in '' $ac_executable_extensions; do
15712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15713 ac_cv_prog_DIALOG="yes"
15714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15715 break 2
15716 fi
15717 done
15718 done
15719 IFS=$as_save_IFS
15720
15721 test -z "$ac_cv_prog_DIALOG" && ac_cv_prog_DIALOG="no"
15722 fi
15723 fi
15724 DIALOG=$ac_cv_prog_DIALOG
15725 if test -n "$DIALOG"; then
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIALOG" >&5
15727 $as_echo "$DIALOG" >&6; }
15728 else
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15730 $as_echo "no" >&6; }
15731 fi
15732
15733
15734 if test "$DIALOG" = no ; then
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find dialog. It recommanded to have 'dialog' to execute 'ucimf_start' successfully." >&5
15736 $as_echo "$as_me: WARNING: Couldn't find dialog. It recommanded to have 'dialog' to execute 'ucimf_start' successfully." >&2;}
15737 fi
15738
15739
15740 ac_config_files="$ac_config_files Makefile libucimf-uninstalled.pc libucimf.pc ucimf_start src/Makefile font/Makefile man/Makefile sample/Makefile display/Makefile"
15741
15742
15743 cat >confcache <<\_ACEOF
15744 # This file is a shell script that caches the results of configure
15745 # tests run on this system so they can be shared between configure
15746 # scripts and configure runs, see configure's option --config-cache.
15747 # It is not useful on other systems. If it contains results you don't
15748 # want to keep, you may remove or edit it.
15749 #
15750 # config.status only pays attention to the cache file if you give it
15751 # the --recheck option to rerun configure.
15752 #
15753 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15754 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15755 # following values.
15756
15757 _ACEOF
15758
15759 # The following way of writing the cache mishandles newlines in values,
15760 # but we know of no workaround that is simple, portable, and efficient.
15761 # So, we kill variables containing newlines.
15762 # Ultrix sh set writes to stderr and can't be redirected directly,
15763 # and sets the high bit in the cache file unless we assign to the vars.
15764 (
15765 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15766 eval ac_val=\$$ac_var
15767 case $ac_val in #(
15768 *${as_nl}*)
15769 case $ac_var in #(
15770 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15771 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15772 esac
15773 case $ac_var in #(
15774 _ | IFS | as_nl) ;; #(
15775 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15776 *) { eval $ac_var=; unset $ac_var;} ;;
15777 esac ;;
15778 esac
15779 done
15780
15781 (set) 2>&1 |
15782 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15783 *${as_nl}ac_space=\ *)
15784 # `set' does not quote correctly, so add quotes: double-quote
15785 # substitution turns \\\\ into \\, and sed turns \\ into \.
15786 sed -n \
15787 "s/'/'\\\\''/g;
15788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15789 ;; #(
15790 *)
15791 # `set' quotes correctly as required by POSIX, so do not add quotes.
15792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15793 ;;
15794 esac |
15795 sort
15796 ) |
15797 sed '
15798 /^ac_cv_env_/b end
15799 t clear
15800 :clear
15801 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15802 t end
15803 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15804 :end' >>confcache
15805 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15806 if test -w "$cache_file"; then
15807 test "x$cache_file" != "x/dev/null" &&
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15809 $as_echo "$as_me: updating cache $cache_file" >&6;}
15810 cat confcache >$cache_file
15811 else
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15813 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15814 fi
15815 fi
15816 rm -f confcache
15817
15818 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15819 # Let make expand exec_prefix.
15820 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15821
15822 DEFS=-DHAVE_CONFIG_H
15823
15824 ac_libobjs=
15825 ac_ltlibobjs=
15826 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15827 # 1. Remove the extension, and $U if already installed.
15828 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15829 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15830 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15831 # will be set to the directory where LIBOBJS objects are built.
15832 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15833 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15834 done
15835 LIBOBJS=$ac_libobjs
15836
15837 LTLIBOBJS=$ac_ltlibobjs
15838
15839
15840 if test -n "$EXEEXT"; then
15841 am__EXEEXT_TRUE=
15842 am__EXEEXT_FALSE='#'
15843 else
15844 am__EXEEXT_TRUE='#'
15845 am__EXEEXT_FALSE=
15846 fi
15847
15848 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15849 as_fn_error "conditional \"AMDEP\" was never defined.
15850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15851 fi
15852 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15853 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15855 fi
15856 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15857 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15859 fi
15860 if test -z "${ENABLE_DEBUG_TRUE}" && test -z "${ENABLE_DEBUG_FALSE}"; then
15861 as_fn_error "conditional \"ENABLE_DEBUG\" was never defined.
15862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15863 fi
15864
15865 : ${CONFIG_STATUS=./config.status}
15866 ac_write_fail=0
15867 ac_clean_files_save=$ac_clean_files
15868 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15870 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15871 as_write_fail=0
15872 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15873 #! $SHELL
15874 # Generated by $as_me.
15875 # Run this file to recreate the current configuration.
15876 # Compiler output produced by configure, useful for debugging
15877 # configure, is in config.log if it exists.
15878
15879 debug=false
15880 ac_cs_recheck=false
15881 ac_cs_silent=false
15882
15883 SHELL=\${CONFIG_SHELL-$SHELL}
15884 export SHELL
15885 _ASEOF
15886 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15887 ## -------------------- ##
15888 ## M4sh Initialization. ##
15889 ## -------------------- ##
15890
15891 # Be more Bourne compatible
15892 DUALCASE=1; export DUALCASE # for MKS sh
15893 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15894 emulate sh
15895 NULLCMD=:
15896 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15897 # is contrary to our usage. Disable this feature.
15898 alias -g '${1+"$@"}'='"$@"'
15899 setopt NO_GLOB_SUBST
15900 else
15901 case `(set -o) 2>/dev/null` in #(
15902 *posix*) :
15903 set -o posix ;; #(
15904 *) :
15905 ;;
15906 esac
15907 fi
15908
15909
15910 as_nl='
15911 '
15912 export as_nl
15913 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15914 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15915 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15916 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15917 # Prefer a ksh shell builtin over an external printf program on Solaris,
15918 # but without wasting forks for bash or zsh.
15919 if test -z "$BASH_VERSION$ZSH_VERSION" \
15920 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15921 as_echo='print -r --'
15922 as_echo_n='print -rn --'
15923 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15924 as_echo='printf %s\n'
15925 as_echo_n='printf %s'
15926 else
15927 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15928 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15929 as_echo_n='/usr/ucb/echo -n'
15930 else
15931 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15932 as_echo_n_body='eval
15933 arg=$1;
15934 case $arg in #(
15935 *"$as_nl"*)
15936 expr "X$arg" : "X\\(.*\\)$as_nl";
15937 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15938 esac;
15939 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15940 '
15941 export as_echo_n_body
15942 as_echo_n='sh -c $as_echo_n_body as_echo'
15943 fi
15944 export as_echo_body
15945 as_echo='sh -c $as_echo_body as_echo'
15946 fi
15947
15948 # The user is always right.
15949 if test "${PATH_SEPARATOR+set}" != set; then
15950 PATH_SEPARATOR=:
15951 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15952 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15953 PATH_SEPARATOR=';'
15954 }
15955 fi
15956
15957
15958 # IFS
15959 # We need space, tab and new line, in precisely that order. Quoting is
15960 # there to prevent editors from complaining about space-tab.
15961 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15962 # splitting by setting IFS to empty value.)
15963 IFS=" "" $as_nl"
15964
15965 # Find who we are. Look in the path if we contain no directory separator.
15966 case $0 in #((
15967 *[\\/]* ) as_myself=$0 ;;
15968 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15969 for as_dir in $PATH
15970 do
15971 IFS=$as_save_IFS
15972 test -z "$as_dir" && as_dir=.
15973 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15974 done
15975 IFS=$as_save_IFS
15976
15977 ;;
15978 esac
15979 # We did not find ourselves, most probably we were run as `sh COMMAND'
15980 # in which case we are not to be found in the path.
15981 if test "x$as_myself" = x; then
15982 as_myself=$0
15983 fi
15984 if test ! -f "$as_myself"; then
15985 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15986 exit 1
15987 fi
15988
15989 # Unset variables that we do not need and which cause bugs (e.g. in
15990 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15991 # suppresses any "Segmentation fault" message there. '((' could
15992 # trigger a bug in pdksh 5.2.14.
15993 for as_var in BASH_ENV ENV MAIL MAILPATH
15994 do eval test x\${$as_var+set} = xset \
15995 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15996 done
15997 PS1='$ '
15998 PS2='> '
15999 PS4='+ '
16000
16001 # NLS nuisances.
16002 LC_ALL=C
16003 export LC_ALL
16004 LANGUAGE=C
16005 export LANGUAGE
16006
16007 # CDPATH.
16008 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16009
16010
16011 # as_fn_error ERROR [LINENO LOG_FD]
16012 # ---------------------------------
16013 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16014 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16015 # script with status $?, using 1 if that was 0.
16016 as_fn_error ()
16017 {
16018 as_status=$?; test $as_status -eq 0 && as_status=1
16019 if test "$3"; then
16020 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16021 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16022 fi
16023 $as_echo "$as_me: error: $1" >&2
16024 as_fn_exit $as_status
16025 } # as_fn_error
16026
16027
16028 # as_fn_set_status STATUS
16029 # -----------------------
16030 # Set $? to STATUS, without forking.
16031 as_fn_set_status ()
16032 {
16033 return $1
16034 } # as_fn_set_status
16035
16036 # as_fn_exit STATUS
16037 # -----------------
16038 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16039 as_fn_exit ()
16040 {
16041 set +e
16042 as_fn_set_status $1
16043 exit $1
16044 } # as_fn_exit
16045
16046 # as_fn_unset VAR
16047 # ---------------
16048 # Portably unset VAR.
16049 as_fn_unset ()
16050 {
16051 { eval $1=; unset $1;}
16052 }
16053 as_unset=as_fn_unset
16054 # as_fn_append VAR VALUE
16055 # ----------------------
16056 # Append the text in VALUE to the end of the definition contained in VAR. Take
16057 # advantage of any shell optimizations that allow amortized linear growth over
16058 # repeated appends, instead of the typical quadratic growth present in naive
16059 # implementations.
16060 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16061 eval 'as_fn_append ()
16062 {
16063 eval $1+=\$2
16064 }'
16065 else
16066 as_fn_append ()
16067 {
16068 eval $1=\$$1\$2
16069 }
16070 fi # as_fn_append
16071
16072 # as_fn_arith ARG...
16073 # ------------------
16074 # Perform arithmetic evaluation on the ARGs, and store the result in the
16075 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16076 # must be portable across $(()) and expr.
16077 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16078 eval 'as_fn_arith ()
16079 {
16080 as_val=$(( $* ))
16081 }'
16082 else
16083 as_fn_arith ()
16084 {
16085 as_val=`expr "$@" || test $? -eq 1`
16086 }
16087 fi # as_fn_arith
16088
16089
16090 if expr a : '\(a\)' >/dev/null 2>&1 &&
16091 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16092 as_expr=expr
16093 else
16094 as_expr=false
16095 fi
16096
16097 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16098 as_basename=basename
16099 else
16100 as_basename=false
16101 fi
16102
16103 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16104 as_dirname=dirname
16105 else
16106 as_dirname=false
16107 fi
16108
16109 as_me=`$as_basename -- "$0" ||
16110 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16111 X"$0" : 'X\(//\)$' \| \
16112 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16113 $as_echo X/"$0" |
16114 sed '/^.*\/\([^/][^/]*\)\/*$/{
16115 s//\1/
16116 q
16117 }
16118 /^X\/\(\/\/\)$/{
16119 s//\1/
16120 q
16121 }
16122 /^X\/\(\/\).*/{
16123 s//\1/
16124 q
16125 }
16126 s/.*/./; q'`
16127
16128 # Avoid depending upon Character Ranges.
16129 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16130 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16131 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16132 as_cr_digits='0123456789'
16133 as_cr_alnum=$as_cr_Letters$as_cr_digits
16134
16135 ECHO_C= ECHO_N= ECHO_T=
16136 case `echo -n x` in #(((((
16137 -n*)
16138 case `echo 'xy\c'` in
16139 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16140 xy) ECHO_C='\c';;
16141 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16142 ECHO_T=' ';;
16143 esac;;
16144 *)
16145 ECHO_N='-n';;
16146 esac
16147
16148 rm -f conf$$ conf$$.exe conf$$.file
16149 if test -d conf$$.dir; then
16150 rm -f conf$$.dir/conf$$.file
16151 else
16152 rm -f conf$$.dir
16153 mkdir conf$$.dir 2>/dev/null
16154 fi
16155 if (echo >conf$$.file) 2>/dev/null; then
16156 if ln -s conf$$.file conf$$ 2>/dev/null; then
16157 as_ln_s='ln -s'
16158 # ... but there are two gotchas:
16159 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16160 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16161 # In both cases, we have to default to `cp -p'.
16162 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16163 as_ln_s='cp -p'
16164 elif ln conf$$.file conf$$ 2>/dev/null; then
16165 as_ln_s=ln
16166 else
16167 as_ln_s='cp -p'
16168 fi
16169 else
16170 as_ln_s='cp -p'
16171 fi
16172 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16173 rmdir conf$$.dir 2>/dev/null
16174
16175
16176 # as_fn_mkdir_p
16177 # -------------
16178 # Create "$as_dir" as a directory, including parents if necessary.
16179 as_fn_mkdir_p ()
16180 {
16181
16182 case $as_dir in #(
16183 -*) as_dir=./$as_dir;;
16184 esac
16185 test -d "$as_dir" || eval $as_mkdir_p || {
16186 as_dirs=
16187 while :; do
16188 case $as_dir in #(
16189 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16190 *) as_qdir=$as_dir;;
16191 esac
16192 as_dirs="'$as_qdir' $as_dirs"
16193 as_dir=`$as_dirname -- "$as_dir" ||
16194 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16195 X"$as_dir" : 'X\(//\)[^/]' \| \
16196 X"$as_dir" : 'X\(//\)$' \| \
16197 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16198 $as_echo X"$as_dir" |
16199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16200 s//\1/
16201 q
16202 }
16203 /^X\(\/\/\)[^/].*/{
16204 s//\1/
16205 q
16206 }
16207 /^X\(\/\/\)$/{
16208 s//\1/
16209 q
16210 }
16211 /^X\(\/\).*/{
16212 s//\1/
16213 q
16214 }
16215 s/.*/./; q'`
16216 test -d "$as_dir" && break
16217 done
16218 test -z "$as_dirs" || eval "mkdir $as_dirs"
16219 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16220
16221
16222 } # as_fn_mkdir_p
16223 if mkdir -p . 2>/dev/null; then
16224 as_mkdir_p='mkdir -p "$as_dir"'
16225 else
16226 test -d ./-p && rmdir ./-p
16227 as_mkdir_p=false
16228 fi
16229
16230 if test -x / >/dev/null 2>&1; then
16231 as_test_x='test -x'
16232 else
16233 if ls -dL / >/dev/null 2>&1; then
16234 as_ls_L_option=L
16235 else
16236 as_ls_L_option=
16237 fi
16238 as_test_x='
16239 eval sh -c '\''
16240 if test -d "$1"; then
16241 test -d "$1/.";
16242 else
16243 case $1 in #(
16244 -*)set "./$1";;
16245 esac;
16246 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16247 ???[sx]*):;;*)false;;esac;fi
16248 '\'' sh
16249 '
16250 fi
16251 as_executable_p=$as_test_x
16252
16253 # Sed expression to map a string onto a valid CPP name.
16254 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16255
16256 # Sed expression to map a string onto a valid variable name.
16257 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16258
16259
16260 exec 6>&1
16261 ## ----------------------------------- ##
16262 ## Main body of $CONFIG_STATUS script. ##
16263 ## ----------------------------------- ##
16264 _ASEOF
16265 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16266
16267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16268 # Save the log message, to keep $0 and so on meaningful, and to
16269 # report actual input values of CONFIG_FILES etc. instead of their
16270 # values after options handling.
16271 ac_log="
16272 This file was extended by libucimf $as_me 2.3.8, which was
16273 generated by GNU Autoconf 2.65. Invocation command line was
16274
16275 CONFIG_FILES = $CONFIG_FILES
16276 CONFIG_HEADERS = $CONFIG_HEADERS
16277 CONFIG_LINKS = $CONFIG_LINKS
16278 CONFIG_COMMANDS = $CONFIG_COMMANDS
16279 $ $0 $@
16280
16281 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16282 "
16283
16284 _ACEOF
16285
16286 case $ac_config_files in *"
16287 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16288 esac
16289
16290 case $ac_config_headers in *"
16291 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16292 esac
16293
16294
16295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16296 # Files that config.status was made for.
16297 config_files="$ac_config_files"
16298 config_headers="$ac_config_headers"
16299 config_commands="$ac_config_commands"
16300
16301 _ACEOF
16302
16303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16304 ac_cs_usage="\
16305 \`$as_me' instantiates files and other configuration actions
16306 from templates according to the current configuration. Unless the files
16307 and actions are specified as TAGs, all are instantiated by default.
16308
16309 Usage: $0 [OPTION]... [TAG]...
16310
16311 -h, --help print this help, then exit
16312 -V, --version print version number and configuration settings, then exit
16313 --config print configuration, then exit
16314 -q, --quiet, --silent
16315 do not print progress messages
16316 -d, --debug don't remove temporary files
16317 --recheck update $as_me by reconfiguring in the same conditions
16318 --file=FILE[:TEMPLATE]
16319 instantiate the configuration file FILE
16320 --header=FILE[:TEMPLATE]
16321 instantiate the configuration header FILE
16322
16323 Configuration files:
16324 $config_files
16325
16326 Configuration headers:
16327 $config_headers
16328
16329 Configuration commands:
16330 $config_commands
16331
16332 Report bugs to <[email protected]>."
16333
16334 _ACEOF
16335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16336 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16337 ac_cs_version="\\
16338 libucimf config.status 2.3.8
16339 configured by $0, generated by GNU Autoconf 2.65,
16340 with options \\"\$ac_cs_config\\"
16341
16342 Copyright (C) 2009 Free Software Foundation, Inc.
16343 This config.status script is free software; the Free Software Foundation
16344 gives unlimited permission to copy, distribute and modify it."
16345
16346 ac_pwd='$ac_pwd'
16347 srcdir='$srcdir'
16348 INSTALL='$INSTALL'
16349 MKDIR_P='$MKDIR_P'
16350 AWK='$AWK'
16351 test -n "\$AWK" || AWK=awk
16352 _ACEOF
16353
16354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16355 # The default lists apply if the user does not specify any file.
16356 ac_need_defaults=:
16357 while test $# != 0
16358 do
16359 case $1 in
16360 --*=*)
16361 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16362 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16363 ac_shift=:
16364 ;;
16365 *)
16366 ac_option=$1
16367 ac_optarg=$2
16368 ac_shift=shift
16369 ;;
16370 esac
16371
16372 case $ac_option in
16373 # Handling of the options.
16374 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16375 ac_cs_recheck=: ;;
16376 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16377 $as_echo "$ac_cs_version"; exit ;;
16378 --config | --confi | --conf | --con | --co | --c )
16379 $as_echo "$ac_cs_config"; exit ;;
16380 --debug | --debu | --deb | --de | --d | -d )
16381 debug=: ;;
16382 --file | --fil | --fi | --f )
16383 $ac_shift
16384 case $ac_optarg in
16385 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16386 esac
16387 as_fn_append CONFIG_FILES " '$ac_optarg'"
16388 ac_need_defaults=false;;
16389 --header | --heade | --head | --hea )
16390 $ac_shift
16391 case $ac_optarg in
16392 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16393 esac
16394 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16395 ac_need_defaults=false;;
16396 --he | --h)
16397 # Conflict between --help and --header
16398 as_fn_error "ambiguous option: \`$1'
16399 Try \`$0 --help' for more information.";;
16400 --help | --hel | -h )
16401 $as_echo "$ac_cs_usage"; exit ;;
16402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16403 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16404 ac_cs_silent=: ;;
16405
16406 # This is an error.
16407 -*) as_fn_error "unrecognized option: \`$1'
16408 Try \`$0 --help' for more information." ;;
16409
16410 *) as_fn_append ac_config_targets " $1"
16411 ac_need_defaults=false ;;
16412
16413 esac
16414 shift
16415 done
16416
16417 ac_configure_extra_args=
16418
16419 if $ac_cs_silent; then
16420 exec 6>/dev/null
16421 ac_configure_extra_args="$ac_configure_extra_args --silent"
16422 fi
16423
16424 _ACEOF
16425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16426 if \$ac_cs_recheck; then
16427 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16428 shift
16429 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16430 CONFIG_SHELL='$SHELL'
16431 export CONFIG_SHELL
16432 exec "\$@"
16433 fi
16434
16435 _ACEOF
16436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16437 exec 5>>config.log
16438 {
16439 echo
16440 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16441 ## Running $as_me. ##
16442 _ASBOX
16443 $as_echo "$ac_log"
16444 } >&5
16445
16446 _ACEOF
16447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16448 #
16449 # INIT-COMMANDS
16450 #
16451 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16452
16453
16454 # The HP-UX ksh and POSIX shell print the target directory to stdout
16455 # if CDPATH is set.
16456 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16457
16458 sed_quote_subst='$sed_quote_subst'
16459 double_quote_subst='$double_quote_subst'
16460 delay_variable_subst='$delay_variable_subst'
16461 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16462 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16463 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16464 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16465 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16466 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16467 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16468 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16469 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16470 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16471 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16472 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16473 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16474 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16475 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16476 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16477 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16478 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16479 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16480 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16481 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16482 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16483 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16484 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16485 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16486 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16487 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16488 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16489 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16490 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16491 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16492 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16493 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16494 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16495 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16496 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16497 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16498 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16499 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16500 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16501 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16502 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16503 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16504 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16505 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16506 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16507 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16508 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16509 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"`'
16510 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16511 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16512 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16513 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16514 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16515 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16516 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16517 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16518 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16519 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16520 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16521 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16522 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16523 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16524 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16525 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16526 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16527 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16528 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16529 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16530 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16531 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16532 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16533 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16534 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16535 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16536 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16537 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16538 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16539 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16540 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16541 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16542 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16543 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16544 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16545 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16546 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16547 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16548 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16549 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16550 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16551 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16552 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16553 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16554 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16555 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16556 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16557 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16558 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16559 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16560 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16561 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16562 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16563 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16564 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16565 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16566 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16567 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16568 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16569 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16570 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16571 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16572 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16573 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16574 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16575 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16576 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16577 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16578 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16579 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16580 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16581 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16582 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16583 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16584 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16585 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16586 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16587 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16588 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16589 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16590 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16591 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16592 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16593 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16594 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16595 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16596 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16597 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16598 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16599 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16600 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16601 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16602 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16603 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16604 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16605 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16606 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16607 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16608 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16609 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16610 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16611 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16612 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16613 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16614 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16615 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16616 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16617 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16618 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16619 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16620 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16621 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16622 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16623 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16624 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16625 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16626 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16627 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16628 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16629 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16630 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16631 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16632 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16633 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16634 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16635 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16636
16637 LTCC='$LTCC'
16638 LTCFLAGS='$LTCFLAGS'
16639 compiler='$compiler_DEFAULT'
16640
16641 # A function that is used when there is no print builtin or printf.
16642 func_fallback_echo ()
16643 {
16644 eval 'cat <<_LTECHO_EOF
16645 \$1
16646 _LTECHO_EOF'
16647 }
16648
16649 # Quote evaled strings.
16650 for var in SHELL \
16651 ECHO \
16652 SED \
16653 GREP \
16654 EGREP \
16655 FGREP \
16656 LD \
16657 NM \
16658 LN_S \
16659 lt_SP2NL \
16660 lt_NL2SP \
16661 reload_flag \
16662 OBJDUMP \
16663 deplibs_check_method \
16664 file_magic_cmd \
16665 AR \
16666 AR_FLAGS \
16667 STRIP \
16668 RANLIB \
16669 CC \
16670 CFLAGS \
16671 compiler \
16672 lt_cv_sys_global_symbol_pipe \
16673 lt_cv_sys_global_symbol_to_cdecl \
16674 lt_cv_sys_global_symbol_to_c_name_address \
16675 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16676 lt_prog_compiler_no_builtin_flag \
16677 lt_prog_compiler_wl \
16678 lt_prog_compiler_pic \
16679 lt_prog_compiler_static \
16680 lt_cv_prog_compiler_c_o \
16681 need_locks \
16682 DSYMUTIL \
16683 NMEDIT \
16684 LIPO \
16685 OTOOL \
16686 OTOOL64 \
16687 shrext_cmds \
16688 export_dynamic_flag_spec \
16689 whole_archive_flag_spec \
16690 compiler_needs_object \
16691 with_gnu_ld \
16692 allow_undefined_flag \
16693 no_undefined_flag \
16694 hardcode_libdir_flag_spec \
16695 hardcode_libdir_flag_spec_ld \
16696 hardcode_libdir_separator \
16697 fix_srcfile_path \
16698 exclude_expsyms \
16699 include_expsyms \
16700 file_list_spec \
16701 variables_saved_for_relink \
16702 libname_spec \
16703 library_names_spec \
16704 soname_spec \
16705 install_override_mode \
16706 finish_eval \
16707 old_striplib \
16708 striplib \
16709 compiler_lib_search_dirs \
16710 predep_objects \
16711 postdep_objects \
16712 predeps \
16713 postdeps \
16714 compiler_lib_search_path \
16715 LD_CXX \
16716 reload_flag_CXX \
16717 compiler_CXX \
16718 lt_prog_compiler_no_builtin_flag_CXX \
16719 lt_prog_compiler_wl_CXX \
16720 lt_prog_compiler_pic_CXX \
16721 lt_prog_compiler_static_CXX \
16722 lt_cv_prog_compiler_c_o_CXX \
16723 export_dynamic_flag_spec_CXX \
16724 whole_archive_flag_spec_CXX \
16725 compiler_needs_object_CXX \
16726 with_gnu_ld_CXX \
16727 allow_undefined_flag_CXX \
16728 no_undefined_flag_CXX \
16729 hardcode_libdir_flag_spec_CXX \
16730 hardcode_libdir_flag_spec_ld_CXX \
16731 hardcode_libdir_separator_CXX \
16732 fix_srcfile_path_CXX \
16733 exclude_expsyms_CXX \
16734 include_expsyms_CXX \
16735 file_list_spec_CXX \
16736 compiler_lib_search_dirs_CXX \
16737 predep_objects_CXX \
16738 postdep_objects_CXX \
16739 predeps_CXX \
16740 postdeps_CXX \
16741 compiler_lib_search_path_CXX; do
16742 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16743 *[\\\\\\\`\\"\\\$]*)
16744 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16745 ;;
16746 *)
16747 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16748 ;;
16749 esac
16750 done
16751
16752 # Double-quote double-evaled strings.
16753 for var in reload_cmds \
16754 old_postinstall_cmds \
16755 old_postuninstall_cmds \
16756 old_archive_cmds \
16757 extract_expsyms_cmds \
16758 old_archive_from_new_cmds \
16759 old_archive_from_expsyms_cmds \
16760 archive_cmds \
16761 archive_expsym_cmds \
16762 module_cmds \
16763 module_expsym_cmds \
16764 export_symbols_cmds \
16765 prelink_cmds \
16766 postinstall_cmds \
16767 postuninstall_cmds \
16768 finish_cmds \
16769 sys_lib_search_path_spec \
16770 sys_lib_dlsearch_path_spec \
16771 reload_cmds_CXX \
16772 old_archive_cmds_CXX \
16773 old_archive_from_new_cmds_CXX \
16774 old_archive_from_expsyms_cmds_CXX \
16775 archive_cmds_CXX \
16776 archive_expsym_cmds_CXX \
16777 module_cmds_CXX \
16778 module_expsym_cmds_CXX \
16779 export_symbols_cmds_CXX \
16780 prelink_cmds_CXX; do
16781 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16782 *[\\\\\\\`\\"\\\$]*)
16783 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16784 ;;
16785 *)
16786 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16787 ;;
16788 esac
16789 done
16790
16791 ac_aux_dir='$ac_aux_dir'
16792 xsi_shell='$xsi_shell'
16793 lt_shell_append='$lt_shell_append'
16794
16795 # See if we are running on zsh, and set the options which allow our
16796 # commands through without removal of \ escapes INIT.
16797 if test -n "\${ZSH_VERSION+set}" ; then
16798 setopt NO_GLOB_SUBST
16799 fi
16800
16801
16802 PACKAGE='$PACKAGE'
16803 VERSION='$VERSION'
16804 TIMESTAMP='$TIMESTAMP'
16805 RM='$RM'
16806 ofile='$ofile'
16807
16808
16809
16810
16811
16812
16813 _ACEOF
16814
16815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16816
16817 # Handling of arguments.
16818 for ac_config_target in $ac_config_targets
16819 do
16820 case $ac_config_target in
16821 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16822 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16823 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16824 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16825 "libucimf-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libucimf-uninstalled.pc" ;;
16826 "libucimf.pc") CONFIG_FILES="$CONFIG_FILES libucimf.pc" ;;
16827 "ucimf_start") CONFIG_FILES="$CONFIG_FILES ucimf_start" ;;
16828 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16829 "font/Makefile") CONFIG_FILES="$CONFIG_FILES font/Makefile" ;;
16830 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16831 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16832 "display/Makefile") CONFIG_FILES="$CONFIG_FILES display/Makefile" ;;
16833
16834 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16835 esac
16836 done
16837
16838
16839 # If the user did not use the arguments to specify the items to instantiate,
16840 # then the envvar interface is used. Set only those that are not.
16841 # We use the long form for the default assignment because of an extremely
16842 # bizarre bug on SunOS 4.1.3.
16843 if $ac_need_defaults; then
16844 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16845 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16846 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16847 fi
16848
16849 # Have a temporary directory for convenience. Make it in the build tree
16850 # simply because there is no reason against having it here, and in addition,
16851 # creating and moving files from /tmp can sometimes cause problems.
16852 # Hook for its removal unless debugging.
16853 # Note that there is a small window in which the directory will not be cleaned:
16854 # after its creation but before its name has been assigned to `$tmp'.
16855 $debug ||
16856 {
16857 tmp=
16858 trap 'exit_status=$?
16859 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16860 ' 0
16861 trap 'as_fn_exit 1' 1 2 13 15
16862 }
16863 # Create a (secure) tmp directory for tmp files.
16864
16865 {
16866 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16867 test -n "$tmp" && test -d "$tmp"
16868 } ||
16869 {
16870 tmp=./conf$$-$RANDOM
16871 (umask 077 && mkdir "$tmp")
16872 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16873
16874 # Set up the scripts for CONFIG_FILES section.
16875 # No need to generate them if there are no CONFIG_FILES.
16876 # This happens for instance with `./config.status config.h'.
16877 if test -n "$CONFIG_FILES"; then
16878
16879
16880 ac_cr=`echo X | tr X '\015'`
16881 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16882 # But we know of no other shell where ac_cr would be empty at this
16883 # point, so we can use a bashism as a fallback.
16884 if test "x$ac_cr" = x; then
16885 eval ac_cr=\$\'\\r\'
16886 fi
16887 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16888 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16889 ac_cs_awk_cr='\r'
16890 else
16891 ac_cs_awk_cr=$ac_cr
16892 fi
16893
16894 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16895 _ACEOF
16896
16897
16898 {
16899 echo "cat >conf$$subs.awk <<_ACEOF" &&
16900 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16901 echo "_ACEOF"
16902 } >conf$$subs.sh ||
16903 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16904 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16905 ac_delim='%!_!# '
16906 for ac_last_try in false false false false false :; do
16907 . ./conf$$subs.sh ||
16908 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16909
16910 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16911 if test $ac_delim_n = $ac_delim_num; then
16912 break
16913 elif $ac_last_try; then
16914 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16915 else
16916 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16917 fi
16918 done
16919 rm -f conf$$subs.sh
16920
16921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16922 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16923 _ACEOF
16924 sed -n '
16925 h
16926 s/^/S["/; s/!.*/"]=/
16927 p
16928 g
16929 s/^[^!]*!//
16930 :repl
16931 t repl
16932 s/'"$ac_delim"'$//
16933 t delim
16934 :nl
16935 h
16936 s/\(.\{148\}\)..*/\1/
16937 t more1
16938 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16939 p
16940 n
16941 b repl
16942 :more1
16943 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16944 p
16945 g
16946 s/.\{148\}//
16947 t nl
16948 :delim
16949 h
16950 s/\(.\{148\}\)..*/\1/
16951 t more2
16952 s/["\\]/\\&/g; s/^/"/; s/$/"/
16953 p
16954 b
16955 :more2
16956 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16957 p
16958 g
16959 s/.\{148\}//
16960 t delim
16961 ' <conf$$subs.awk | sed '
16962 /^[^""]/{
16963 N
16964 s/\n//
16965 }
16966 ' >>$CONFIG_STATUS || ac_write_fail=1
16967 rm -f conf$$subs.awk
16968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16969 _ACAWK
16970 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16971 for (key in S) S_is_set[key] = 1
16972 FS = ""
16973
16974 }
16975 {
16976 line = $ 0
16977 nfields = split(line, field, "@")
16978 substed = 0
16979 len = length(field[1])
16980 for (i = 2; i < nfields; i++) {
16981 key = field[i]
16982 keylen = length(key)
16983 if (S_is_set[key]) {
16984 value = S[key]
16985 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16986 len += length(value) + length(field[++i])
16987 substed = 1
16988 } else
16989 len += 1 + keylen
16990 }
16991
16992 print line
16993 }
16994
16995 _ACAWK
16996 _ACEOF
16997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16998 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16999 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17000 else
17001 cat
17002 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17003 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17004 _ACEOF
17005
17006 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17007 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17008 # trailing colons and then remove the whole line if VPATH becomes empty
17009 # (actually we leave an empty line to preserve line numbers).
17010 if test "x$srcdir" = x.; then
17011 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17012 s/:*\$(srcdir):*/:/
17013 s/:*\${srcdir}:*/:/
17014 s/:*@srcdir@:*/:/
17015 s/^\([^=]*=[ ]*\):*/\1/
17016 s/:*$//
17017 s/^[^=]*=[ ]*$//
17018 }'
17019 fi
17020
17021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17022 fi # test -n "$CONFIG_FILES"
17023
17024 # Set up the scripts for CONFIG_HEADERS section.
17025 # No need to generate them if there are no CONFIG_HEADERS.
17026 # This happens for instance with `./config.status Makefile'.
17027 if test -n "$CONFIG_HEADERS"; then
17028 cat >"$tmp/defines.awk" <<\_ACAWK ||
17029 BEGIN {
17030 _ACEOF
17031
17032 # Transform confdefs.h into an awk script `defines.awk', embedded as
17033 # here-document in config.status, that substitutes the proper values into
17034 # config.h.in to produce config.h.
17035
17036 # Create a delimiter string that does not exist in confdefs.h, to ease
17037 # handling of long lines.
17038 ac_delim='%!_!# '
17039 for ac_last_try in false false :; do
17040 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17041 if test -z "$ac_t"; then
17042 break
17043 elif $ac_last_try; then
17044 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17045 else
17046 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17047 fi
17048 done
17049
17050 # For the awk script, D is an array of macro values keyed by name,
17051 # likewise P contains macro parameters if any. Preserve backslash
17052 # newline sequences.
17053
17054 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17055 sed -n '
17056 s/.\{148\}/&'"$ac_delim"'/g
17057 t rset
17058 :rset
17059 s/^[ ]*#[ ]*define[ ][ ]*/ /
17060 t def
17061 d
17062 :def
17063 s/\\$//
17064 t bsnl
17065 s/["\\]/\\&/g
17066 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17067 D["\1"]=" \3"/p
17068 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17069 d
17070 :bsnl
17071 s/["\\]/\\&/g
17072 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17073 D["\1"]=" \3\\\\\\n"\\/p
17074 t cont
17075 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17076 t cont
17077 d
17078 :cont
17079 n
17080 s/.\{148\}/&'"$ac_delim"'/g
17081 t clear
17082 :clear
17083 s/\\$//
17084 t bsnlc
17085 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17086 d
17087 :bsnlc
17088 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17089 b cont
17090 ' <confdefs.h | sed '
17091 s/'"$ac_delim"'/"\\\
17092 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17093
17094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17095 for (key in D) D_is_set[key] = 1
17096 FS = ""
17097 }
17098 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17099 line = \$ 0
17100 split(line, arg, " ")
17101 if (arg[1] == "#") {
17102 defundef = arg[2]
17103 mac1 = arg[3]
17104 } else {
17105 defundef = substr(arg[1], 2)
17106 mac1 = arg[2]
17107 }
17108 split(mac1, mac2, "(") #)
17109 macro = mac2[1]
17110 prefix = substr(line, 1, index(line, defundef) - 1)
17111 if (D_is_set[macro]) {
17112 # Preserve the white space surrounding the "#".
17113 print prefix "define", macro P[macro] D[macro]
17114 next
17115 } else {
17116 # Replace #undef with comments. This is necessary, for example,
17117 # in the case of _POSIX_SOURCE, which is predefined and required
17118 # on some systems where configure will not decide to define it.
17119 if (defundef == "undef") {
17120 print "/*", prefix defundef, macro, "*/"
17121 next
17122 }
17123 }
17124 }
17125 { print }
17126 _ACAWK
17127 _ACEOF
17128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17129 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17130 fi # test -n "$CONFIG_HEADERS"
17131
17132
17133 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17134 shift
17135 for ac_tag
17136 do
17137 case $ac_tag in
17138 :[FHLC]) ac_mode=$ac_tag; continue;;
17139 esac
17140 case $ac_mode$ac_tag in
17141 :[FHL]*:*);;
17142 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17143 :[FH]-) ac_tag=-:-;;
17144 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17145 esac
17146 ac_save_IFS=$IFS
17147 IFS=:
17148 set x $ac_tag
17149 IFS=$ac_save_IFS
17150 shift
17151 ac_file=$1
17152 shift
17153
17154 case $ac_mode in
17155 :L) ac_source=$1;;
17156 :[FH])
17157 ac_file_inputs=
17158 for ac_f
17159 do
17160 case $ac_f in
17161 -) ac_f="$tmp/stdin";;
17162 *) # Look for the file first in the build tree, then in the source tree
17163 # (if the path is not absolute). The absolute path cannot be DOS-style,
17164 # because $ac_f cannot contain `:'.
17165 test -f "$ac_f" ||
17166 case $ac_f in
17167 [\\/$]*) false;;
17168 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17169 esac ||
17170 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17171 esac
17172 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17173 as_fn_append ac_file_inputs " '$ac_f'"
17174 done
17175
17176 # Let's still pretend it is `configure' which instantiates (i.e., don't
17177 # use $as_me), people would be surprised to read:
17178 # /* config.h. Generated by config.status. */
17179 configure_input='Generated from '`
17180 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17181 `' by configure.'
17182 if test x"$ac_file" != x-; then
17183 configure_input="$ac_file. $configure_input"
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17185 $as_echo "$as_me: creating $ac_file" >&6;}
17186 fi
17187 # Neutralize special characters interpreted by sed in replacement strings.
17188 case $configure_input in #(
17189 *\&* | *\|* | *\\* )
17190 ac_sed_conf_input=`$as_echo "$configure_input" |
17191 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17192 *) ac_sed_conf_input=$configure_input;;
17193 esac
17194
17195 case $ac_tag in
17196 *:-:* | *:-) cat >"$tmp/stdin" \
17197 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17198 esac
17199 ;;
17200 esac
17201
17202 ac_dir=`$as_dirname -- "$ac_file" ||
17203 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17204 X"$ac_file" : 'X\(//\)[^/]' \| \
17205 X"$ac_file" : 'X\(//\)$' \| \
17206 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17207 $as_echo X"$ac_file" |
17208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17209 s//\1/
17210 q
17211 }
17212 /^X\(\/\/\)[^/].*/{
17213 s//\1/
17214 q
17215 }
17216 /^X\(\/\/\)$/{
17217 s//\1/
17218 q
17219 }
17220 /^X\(\/\).*/{
17221 s//\1/
17222 q
17223 }
17224 s/.*/./; q'`
17225 as_dir="$ac_dir"; as_fn_mkdir_p
17226 ac_builddir=.
17227
17228 case "$ac_dir" in
17229 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17230 *)
17231 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17232 # A ".." for each directory in $ac_dir_suffix.
17233 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17234 case $ac_top_builddir_sub in
17235 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17236 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17237 esac ;;
17238 esac
17239 ac_abs_top_builddir=$ac_pwd
17240 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17241 # for backward compatibility:
17242 ac_top_builddir=$ac_top_build_prefix
17243
17244 case $srcdir in
17245 .) # We are building in place.
17246 ac_srcdir=.
17247 ac_top_srcdir=$ac_top_builddir_sub
17248 ac_abs_top_srcdir=$ac_pwd ;;
17249 [\\/]* | ?:[\\/]* ) # Absolute name.
17250 ac_srcdir=$srcdir$ac_dir_suffix;
17251 ac_top_srcdir=$srcdir
17252 ac_abs_top_srcdir=$srcdir ;;
17253 *) # Relative name.
17254 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17255 ac_top_srcdir=$ac_top_build_prefix$srcdir
17256 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17257 esac
17258 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17259
17260
17261 case $ac_mode in
17262 :F)
17263 #
17264 # CONFIG_FILE
17265 #
17266
17267 case $INSTALL in
17268 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17269 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17270 esac
17271 ac_MKDIR_P=$MKDIR_P
17272 case $MKDIR_P in
17273 [\\/$]* | ?:[\\/]* ) ;;
17274 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17275 esac
17276 _ACEOF
17277
17278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17279 # If the template does not know about datarootdir, expand it.
17280 # FIXME: This hack should be removed a few years after 2.60.
17281 ac_datarootdir_hack=; ac_datarootdir_seen=
17282 ac_sed_dataroot='
17283 /datarootdir/ {
17284 p
17285 q
17286 }
17287 /@datadir@/p
17288 /@docdir@/p
17289 /@infodir@/p
17290 /@localedir@/p
17291 /@mandir@/p'
17292 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17293 *datarootdir*) ac_datarootdir_seen=yes;;
17294 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17296 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17297 _ACEOF
17298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17299 ac_datarootdir_hack='
17300 s&@datadir@&$datadir&g
17301 s&@docdir@&$docdir&g
17302 s&@infodir@&$infodir&g
17303 s&@localedir@&$localedir&g
17304 s&@mandir@&$mandir&g
17305 s&\\\${datarootdir}&$datarootdir&g' ;;
17306 esac
17307 _ACEOF
17308
17309 # Neutralize VPATH when `$srcdir' = `.'.
17310 # Shell code in configure.ac might set extrasub.
17311 # FIXME: do we really want to maintain this feature?
17312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17313 ac_sed_extra="$ac_vpsub
17314 $extrasub
17315 _ACEOF
17316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17317 :t
17318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17319 s|@configure_input@|$ac_sed_conf_input|;t t
17320 s&@top_builddir@&$ac_top_builddir_sub&;t t
17321 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17322 s&@srcdir@&$ac_srcdir&;t t
17323 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17324 s&@top_srcdir@&$ac_top_srcdir&;t t
17325 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17326 s&@builddir@&$ac_builddir&;t t
17327 s&@abs_builddir@&$ac_abs_builddir&;t t
17328 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17329 s&@INSTALL@&$ac_INSTALL&;t t
17330 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17331 $ac_datarootdir_hack
17332 "
17333 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17334 || as_fn_error "could not create $ac_file" "$LINENO" 5
17335
17336 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17337 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17338 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17340 which seems to be undefined. Please make sure it is defined." >&5
17341 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17342 which seems to be undefined. Please make sure it is defined." >&2;}
17343
17344 rm -f "$tmp/stdin"
17345 case $ac_file in
17346 -) cat "$tmp/out" && rm -f "$tmp/out";;
17347 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17348 esac \
17349 || as_fn_error "could not create $ac_file" "$LINENO" 5
17350 ;;
17351 :H)
17352 #
17353 # CONFIG_HEADER
17354 #
17355 if test x"$ac_file" != x-; then
17356 {
17357 $as_echo "/* $configure_input */" \
17358 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17359 } >"$tmp/config.h" \
17360 || as_fn_error "could not create $ac_file" "$LINENO" 5
17361 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17363 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17364 else
17365 rm -f "$ac_file"
17366 mv "$tmp/config.h" "$ac_file" \
17367 || as_fn_error "could not create $ac_file" "$LINENO" 5
17368 fi
17369 else
17370 $as_echo "/* $configure_input */" \
17371 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17372 || as_fn_error "could not create -" "$LINENO" 5
17373 fi
17374 # Compute "$ac_file"'s index in $config_headers.
17375 _am_arg="$ac_file"
17376 _am_stamp_count=1
17377 for _am_header in $config_headers :; do
17378 case $_am_header in
17379 $_am_arg | $_am_arg:* )
17380 break ;;
17381 * )
17382 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17383 esac
17384 done
17385 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17386 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17387 X"$_am_arg" : 'X\(//\)[^/]' \| \
17388 X"$_am_arg" : 'X\(//\)$' \| \
17389 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17390 $as_echo X"$_am_arg" |
17391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17392 s//\1/
17393 q
17394 }
17395 /^X\(\/\/\)[^/].*/{
17396 s//\1/
17397 q
17398 }
17399 /^X\(\/\/\)$/{
17400 s//\1/
17401 q
17402 }
17403 /^X\(\/\).*/{
17404 s//\1/
17405 q
17406 }
17407 s/.*/./; q'`/stamp-h$_am_stamp_count
17408 ;;
17409
17410 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17411 $as_echo "$as_me: executing $ac_file commands" >&6;}
17412 ;;
17413 esac
17414
17415
17416 case $ac_file$ac_mode in
17417 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17418 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17419 # are listed without --file. Let's play safe and only enable the eval
17420 # if we detect the quoting.
17421 case $CONFIG_FILES in
17422 *\'*) eval set x "$CONFIG_FILES" ;;
17423 *) set x $CONFIG_FILES ;;
17424 esac
17425 shift
17426 for mf
17427 do
17428 # Strip MF so we end up with the name of the file.
17429 mf=`echo "$mf" | sed -e 's/:.*$//'`
17430 # Check whether this is an Automake generated Makefile or not.
17431 # We used to match only the files named `Makefile.in', but
17432 # some people rename them; so instead we look at the file content.
17433 # Grep'ing the first line is not enough: some people post-process
17434 # each Makefile.in and add a new line on top of each file to say so.
17435 # Grep'ing the whole file is not good either: AIX grep has a line
17436 # limit of 2048, but all sed's we know have understand at least 4000.
17437 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17438 dirpart=`$as_dirname -- "$mf" ||
17439 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17440 X"$mf" : 'X\(//\)[^/]' \| \
17441 X"$mf" : 'X\(//\)$' \| \
17442 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17443 $as_echo X"$mf" |
17444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17445 s//\1/
17446 q
17447 }
17448 /^X\(\/\/\)[^/].*/{
17449 s//\1/
17450 q
17451 }
17452 /^X\(\/\/\)$/{
17453 s//\1/
17454 q
17455 }
17456 /^X\(\/\).*/{
17457 s//\1/
17458 q
17459 }
17460 s/.*/./; q'`
17461 else
17462 continue
17463 fi
17464 # Extract the definition of DEPDIR, am__include, and am__quote
17465 # from the Makefile without running `make'.
17466 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17467 test -z "$DEPDIR" && continue
17468 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17469 test -z "am__include" && continue
17470 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17471 # When using ansi2knr, U may be empty or an underscore; expand it
17472 U=`sed -n 's/^U = //p' < "$mf"`
17473 # Find all dependency output files, they are included files with
17474 # $(DEPDIR) in their names. We invoke sed twice because it is the
17475 # simplest approach to changing $(DEPDIR) to its actual value in the
17476 # expansion.
17477 for file in `sed -n "
17478 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17479 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17480 # Make sure the directory exists.
17481 test -f "$dirpart/$file" && continue
17482 fdir=`$as_dirname -- "$file" ||
17483 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17484 X"$file" : 'X\(//\)[^/]' \| \
17485 X"$file" : 'X\(//\)$' \| \
17486 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17487 $as_echo X"$file" |
17488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17489 s//\1/
17490 q
17491 }
17492 /^X\(\/\/\)[^/].*/{
17493 s//\1/
17494 q
17495 }
17496 /^X\(\/\/\)$/{
17497 s//\1/
17498 q
17499 }
17500 /^X\(\/\).*/{
17501 s//\1/
17502 q
17503 }
17504 s/.*/./; q'`
17505 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17506 # echo "creating $dirpart/$file"
17507 echo '# dummy' > "$dirpart/$file"
17508 done
17509 done
17510 }
17511 ;;
17512 "libtool":C)
17513
17514 # See if we are running on zsh, and set the options which allow our
17515 # commands through without removal of \ escapes.
17516 if test -n "${ZSH_VERSION+set}" ; then
17517 setopt NO_GLOB_SUBST
17518 fi
17519
17520 cfgfile="${ofile}T"
17521 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17522 $RM "$cfgfile"
17523
17524 cat <<_LT_EOF >> "$cfgfile"
17525 #! $SHELL
17526
17527 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17528 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17529 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17530 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17531 #
17532 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17533 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17534 # Inc.
17535 # Written by Gordon Matzigkeit, 1996
17536 #
17537 # This file is part of GNU Libtool.
17538 #
17539 # GNU Libtool is free software; you can redistribute it and/or
17540 # modify it under the terms of the GNU General Public License as
17541 # published by the Free Software Foundation; either version 2 of
17542 # the License, or (at your option) any later version.
17543 #
17544 # As a special exception to the GNU General Public License,
17545 # if you distribute this file as part of a program or library that
17546 # is built using GNU Libtool, you may include this file under the
17547 # same distribution terms that you use for the rest of that program.
17548 #
17549 # GNU Libtool is distributed in the hope that it will be useful,
17550 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17551 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17552 # GNU General Public License for more details.
17553 #
17554 # You should have received a copy of the GNU General Public License
17555 # along with GNU Libtool; see the file COPYING. If not, a copy
17556 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17557 # obtained by writing to the Free Software Foundation, Inc.,
17558 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17559
17560
17561 # The names of the tagged configurations supported by this script.
17562 available_tags="CXX "
17563
17564 # ### BEGIN LIBTOOL CONFIG
17565
17566 # Which release of libtool.m4 was used?
17567 macro_version=$macro_version
17568 macro_revision=$macro_revision
17569
17570 # Whether or not to build shared libraries.
17571 build_libtool_libs=$enable_shared
17572
17573 # Whether or not to build static libraries.
17574 build_old_libs=$enable_static
17575
17576 # What type of objects to build.
17577 pic_mode=$pic_mode
17578
17579 # Whether or not to optimize for fast installation.
17580 fast_install=$enable_fast_install
17581
17582 # Shell to use when invoking shell scripts.
17583 SHELL=$lt_SHELL
17584
17585 # An echo program that protects backslashes.
17586 ECHO=$lt_ECHO
17587
17588 # The host system.
17589 host_alias=$host_alias
17590 host=$host
17591 host_os=$host_os
17592
17593 # The build system.
17594 build_alias=$build_alias
17595 build=$build
17596 build_os=$build_os
17597
17598 # A sed program that does not truncate output.
17599 SED=$lt_SED
17600
17601 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17602 Xsed="\$SED -e 1s/^X//"
17603
17604 # A grep program that handles long lines.
17605 GREP=$lt_GREP
17606
17607 # An ERE matcher.
17608 EGREP=$lt_EGREP
17609
17610 # A literal string matcher.
17611 FGREP=$lt_FGREP
17612
17613 # A BSD- or MS-compatible name lister.
17614 NM=$lt_NM
17615
17616 # Whether we need soft or hard links.
17617 LN_S=$lt_LN_S
17618
17619 # What is the maximum length of a command?
17620 max_cmd_len=$max_cmd_len
17621
17622 # Object file suffix (normally "o").
17623 objext=$ac_objext
17624
17625 # Executable file suffix (normally "").
17626 exeext=$exeext
17627
17628 # whether the shell understands "unset".
17629 lt_unset=$lt_unset
17630
17631 # turn spaces into newlines.
17632 SP2NL=$lt_lt_SP2NL
17633
17634 # turn newlines into spaces.
17635 NL2SP=$lt_lt_NL2SP
17636
17637 # An object symbol dumper.
17638 OBJDUMP=$lt_OBJDUMP
17639
17640 # Method to check whether dependent libraries are shared objects.
17641 deplibs_check_method=$lt_deplibs_check_method
17642
17643 # Command to use when deplibs_check_method == "file_magic".
17644 file_magic_cmd=$lt_file_magic_cmd
17645
17646 # The archiver.
17647 AR=$lt_AR
17648 AR_FLAGS=$lt_AR_FLAGS
17649
17650 # A symbol stripping program.
17651 STRIP=$lt_STRIP
17652
17653 # Commands used to install an old-style archive.
17654 RANLIB=$lt_RANLIB
17655 old_postinstall_cmds=$lt_old_postinstall_cmds
17656 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17657
17658 # Whether to use a lock for old archive extraction.
17659 lock_old_archive_extraction=$lock_old_archive_extraction
17660
17661 # A C compiler.
17662 LTCC=$lt_CC
17663
17664 # LTCC compiler flags.
17665 LTCFLAGS=$lt_CFLAGS
17666
17667 # Take the output of nm and produce a listing of raw symbols and C names.
17668 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17669
17670 # Transform the output of nm in a proper C declaration.
17671 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17672
17673 # Transform the output of nm in a C name address pair.
17674 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17675
17676 # Transform the output of nm in a C name address pair when lib prefix is needed.
17677 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17678
17679 # The name of the directory that contains temporary libtool files.
17680 objdir=$objdir
17681
17682 # Used to examine libraries when file_magic_cmd begins with "file".
17683 MAGIC_CMD=$MAGIC_CMD
17684
17685 # Must we lock files when doing compilation?
17686 need_locks=$lt_need_locks
17687
17688 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17689 DSYMUTIL=$lt_DSYMUTIL
17690
17691 # Tool to change global to local symbols on Mac OS X.
17692 NMEDIT=$lt_NMEDIT
17693
17694 # Tool to manipulate fat objects and archives on Mac OS X.
17695 LIPO=$lt_LIPO
17696
17697 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17698 OTOOL=$lt_OTOOL
17699
17700 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17701 OTOOL64=$lt_OTOOL64
17702
17703 # Old archive suffix (normally "a").
17704 libext=$libext
17705
17706 # Shared library suffix (normally ".so").
17707 shrext_cmds=$lt_shrext_cmds
17708
17709 # The commands to extract the exported symbol list from a shared archive.
17710 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17711
17712 # Variables whose values should be saved in libtool wrapper scripts and
17713 # restored at link time.
17714 variables_saved_for_relink=$lt_variables_saved_for_relink
17715
17716 # Do we need the "lib" prefix for modules?
17717 need_lib_prefix=$need_lib_prefix
17718
17719 # Do we need a version for libraries?
17720 need_version=$need_version
17721
17722 # Library versioning type.
17723 version_type=$version_type
17724
17725 # Shared library runtime path variable.
17726 runpath_var=$runpath_var
17727
17728 # Shared library path variable.
17729 shlibpath_var=$shlibpath_var
17730
17731 # Is shlibpath searched before the hard-coded library search path?
17732 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17733
17734 # Format of library name prefix.
17735 libname_spec=$lt_libname_spec
17736
17737 # List of archive names. First name is the real one, the rest are links.
17738 # The last name is the one that the linker finds with -lNAME
17739 library_names_spec=$lt_library_names_spec
17740
17741 # The coded name of the library, if different from the real name.
17742 soname_spec=$lt_soname_spec
17743
17744 # Permission mode override for installation of shared libraries.
17745 install_override_mode=$lt_install_override_mode
17746
17747 # Command to use after installation of a shared archive.
17748 postinstall_cmds=$lt_postinstall_cmds
17749
17750 # Command to use after uninstallation of a shared archive.
17751 postuninstall_cmds=$lt_postuninstall_cmds
17752
17753 # Commands used to finish a libtool library installation in a directory.
17754 finish_cmds=$lt_finish_cmds
17755
17756 # As "finish_cmds", except a single script fragment to be evaled but
17757 # not shown.
17758 finish_eval=$lt_finish_eval
17759
17760 # Whether we should hardcode library paths into libraries.
17761 hardcode_into_libs=$hardcode_into_libs
17762
17763 # Compile-time system search path for libraries.
17764 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17765
17766 # Run-time system search path for libraries.
17767 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17768
17769 # Whether dlopen is supported.
17770 dlopen_support=$enable_dlopen
17771
17772 # Whether dlopen of programs is supported.
17773 dlopen_self=$enable_dlopen_self
17774
17775 # Whether dlopen of statically linked programs is supported.
17776 dlopen_self_static=$enable_dlopen_self_static
17777
17778 # Commands to strip libraries.
17779 old_striplib=$lt_old_striplib
17780 striplib=$lt_striplib
17781
17782
17783 # The linker used to build libraries.
17784 LD=$lt_LD
17785
17786 # How to create reloadable object files.
17787 reload_flag=$lt_reload_flag
17788 reload_cmds=$lt_reload_cmds
17789
17790 # Commands used to build an old-style archive.
17791 old_archive_cmds=$lt_old_archive_cmds
17792
17793 # A language specific compiler.
17794 CC=$lt_compiler
17795
17796 # Is the compiler the GNU compiler?
17797 with_gcc=$GCC
17798
17799 # Compiler flag to turn off builtin functions.
17800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17801
17802 # How to pass a linker flag through the compiler.
17803 wl=$lt_lt_prog_compiler_wl
17804
17805 # Additional compiler flags for building library objects.
17806 pic_flag=$lt_lt_prog_compiler_pic
17807
17808 # Compiler flag to prevent dynamic linking.
17809 link_static_flag=$lt_lt_prog_compiler_static
17810
17811 # Does compiler simultaneously support -c and -o options?
17812 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17813
17814 # Whether or not to add -lc for building shared libraries.
17815 build_libtool_need_lc=$archive_cmds_need_lc
17816
17817 # Whether or not to disallow shared libs when runtime libs are static.
17818 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17819
17820 # Compiler flag to allow reflexive dlopens.
17821 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17822
17823 # Compiler flag to generate shared objects directly from archives.
17824 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17825
17826 # Whether the compiler copes with passing no objects directly.
17827 compiler_needs_object=$lt_compiler_needs_object
17828
17829 # Create an old-style archive from a shared archive.
17830 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17831
17832 # Create a temporary old-style archive to link instead of a shared archive.
17833 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17834
17835 # Commands used to build a shared archive.
17836 archive_cmds=$lt_archive_cmds
17837 archive_expsym_cmds=$lt_archive_expsym_cmds
17838
17839 # Commands used to build a loadable module if different from building
17840 # a shared archive.
17841 module_cmds=$lt_module_cmds
17842 module_expsym_cmds=$lt_module_expsym_cmds
17843
17844 # Whether we are building with GNU ld or not.
17845 with_gnu_ld=$lt_with_gnu_ld
17846
17847 # Flag that allows shared libraries with undefined symbols to be built.
17848 allow_undefined_flag=$lt_allow_undefined_flag
17849
17850 # Flag that enforces no undefined symbols.
17851 no_undefined_flag=$lt_no_undefined_flag
17852
17853 # Flag to hardcode \$libdir into a binary during linking.
17854 # This must work even if \$libdir does not exist
17855 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17856
17857 # If ld is used when linking, flag to hardcode \$libdir into a binary
17858 # during linking. This must work even if \$libdir does not exist.
17859 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17860
17861 # Whether we need a single "-rpath" flag with a separated argument.
17862 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17863
17864 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17865 # DIR into the resulting binary.
17866 hardcode_direct=$hardcode_direct
17867
17868 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17869 # DIR into the resulting binary and the resulting library dependency is
17870 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17871 # library is relocated.
17872 hardcode_direct_absolute=$hardcode_direct_absolute
17873
17874 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17875 # into the resulting binary.
17876 hardcode_minus_L=$hardcode_minus_L
17877
17878 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17879 # into the resulting binary.
17880 hardcode_shlibpath_var=$hardcode_shlibpath_var
17881
17882 # Set to "yes" if building a shared library automatically hardcodes DIR
17883 # into the library and all subsequent libraries and executables linked
17884 # against it.
17885 hardcode_automatic=$hardcode_automatic
17886
17887 # Set to yes if linker adds runtime paths of dependent libraries
17888 # to runtime path list.
17889 inherit_rpath=$inherit_rpath
17890
17891 # Whether libtool must link a program against all its dependency libraries.
17892 link_all_deplibs=$link_all_deplibs
17893
17894 # Fix the shell variable \$srcfile for the compiler.
17895 fix_srcfile_path=$lt_fix_srcfile_path
17896
17897 # Set to "yes" if exported symbols are required.
17898 always_export_symbols=$always_export_symbols
17899
17900 # The commands to list exported symbols.
17901 export_symbols_cmds=$lt_export_symbols_cmds
17902
17903 # Symbols that should not be listed in the preloaded symbols.
17904 exclude_expsyms=$lt_exclude_expsyms
17905
17906 # Symbols that must always be exported.
17907 include_expsyms=$lt_include_expsyms
17908
17909 # Commands necessary for linking programs (against libraries) with templates.
17910 prelink_cmds=$lt_prelink_cmds
17911
17912 # Specify filename containing input files.
17913 file_list_spec=$lt_file_list_spec
17914
17915 # How to hardcode a shared library path into an executable.
17916 hardcode_action=$hardcode_action
17917
17918 # The directories searched by this compiler when creating a shared library.
17919 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17920
17921 # Dependencies to place before and after the objects being linked to
17922 # create a shared library.
17923 predep_objects=$lt_predep_objects
17924 postdep_objects=$lt_postdep_objects
17925 predeps=$lt_predeps
17926 postdeps=$lt_postdeps
17927
17928 # The library search path used internally by the compiler when linking
17929 # a shared library.
17930 compiler_lib_search_path=$lt_compiler_lib_search_path
17931
17932 # ### END LIBTOOL CONFIG
17933
17934 _LT_EOF
17935
17936 case $host_os in
17937 aix3*)
17938 cat <<\_LT_EOF >> "$cfgfile"
17939 # AIX sometimes has problems with the GCC collect2 program. For some
17940 # reason, if we set the COLLECT_NAMES environment variable, the problems
17941 # vanish in a puff of smoke.
17942 if test "X${COLLECT_NAMES+set}" != Xset; then
17943 COLLECT_NAMES=
17944 export COLLECT_NAMES
17945 fi
17946 _LT_EOF
17947 ;;
17948 esac
17949
17950
17951 ltmain="$ac_aux_dir/ltmain.sh"
17952
17953
17954 # We use sed instead of cat because bash on DJGPP gets confused if
17955 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17956 # text mode, it properly converts lines to CR/LF. This bash problem
17957 # is reportedly fixed, but why not run on old versions too?
17958 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17959 || (rm -f "$cfgfile"; exit 1)
17960
17961 case $xsi_shell in
17962 yes)
17963 cat << \_LT_EOF >> "$cfgfile"
17964
17965 # func_dirname file append nondir_replacement
17966 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17967 # otherwise set result to NONDIR_REPLACEMENT.
17968 func_dirname ()
17969 {
17970 case ${1} in
17971 */*) func_dirname_result="${1%/*}${2}" ;;
17972 * ) func_dirname_result="${3}" ;;
17973 esac
17974 }
17975
17976 # func_basename file
17977 func_basename ()
17978 {
17979 func_basename_result="${1##*/}"
17980 }
17981
17982 # func_dirname_and_basename file append nondir_replacement
17983 # perform func_basename and func_dirname in a single function
17984 # call:
17985 # dirname: Compute the dirname of FILE. If nonempty,
17986 # add APPEND to the result, otherwise set result
17987 # to NONDIR_REPLACEMENT.
17988 # value returned in "$func_dirname_result"
17989 # basename: Compute filename of FILE.
17990 # value retuned in "$func_basename_result"
17991 # Implementation must be kept synchronized with func_dirname
17992 # and func_basename. For efficiency, we do not delegate to
17993 # those functions but instead duplicate the functionality here.
17994 func_dirname_and_basename ()
17995 {
17996 case ${1} in
17997 */*) func_dirname_result="${1%/*}${2}" ;;
17998 * ) func_dirname_result="${3}" ;;
17999 esac
18000 func_basename_result="${1##*/}"
18001 }
18002
18003 # func_stripname prefix suffix name
18004 # strip PREFIX and SUFFIX off of NAME.
18005 # PREFIX and SUFFIX must not contain globbing or regex special
18006 # characters, hashes, percent signs, but SUFFIX may contain a leading
18007 # dot (in which case that matches only a dot).
18008 func_stripname ()
18009 {
18010 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18011 # positional parameters, so assign one to ordinary parameter first.
18012 func_stripname_result=${3}
18013 func_stripname_result=${func_stripname_result#"${1}"}
18014 func_stripname_result=${func_stripname_result%"${2}"}
18015 }
18016
18017 # func_opt_split
18018 func_opt_split ()
18019 {
18020 func_opt_split_opt=${1%%=*}
18021 func_opt_split_arg=${1#*=}
18022 }
18023
18024 # func_lo2o object
18025 func_lo2o ()
18026 {
18027 case ${1} in
18028 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18029 *) func_lo2o_result=${1} ;;
18030 esac
18031 }
18032
18033 # func_xform libobj-or-source
18034 func_xform ()
18035 {
18036 func_xform_result=${1%.*}.lo
18037 }
18038
18039 # func_arith arithmetic-term...
18040 func_arith ()
18041 {
18042 func_arith_result=$(( $* ))
18043 }
18044
18045 # func_len string
18046 # STRING may not start with a hyphen.
18047 func_len ()
18048 {
18049 func_len_result=${#1}
18050 }
18051
18052 _LT_EOF
18053 ;;
18054 *) # Bourne compatible functions.
18055 cat << \_LT_EOF >> "$cfgfile"
18056
18057 # func_dirname file append nondir_replacement
18058 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18059 # otherwise set result to NONDIR_REPLACEMENT.
18060 func_dirname ()
18061 {
18062 # Extract subdirectory from the argument.
18063 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18064 if test "X$func_dirname_result" = "X${1}"; then
18065 func_dirname_result="${3}"
18066 else
18067 func_dirname_result="$func_dirname_result${2}"
18068 fi
18069 }
18070
18071 # func_basename file
18072 func_basename ()
18073 {
18074 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18075 }
18076
18077
18078 # func_stripname prefix suffix name
18079 # strip PREFIX and SUFFIX off of NAME.
18080 # PREFIX and SUFFIX must not contain globbing or regex special
18081 # characters, hashes, percent signs, but SUFFIX may contain a leading
18082 # dot (in which case that matches only a dot).
18083 # func_strip_suffix prefix name
18084 func_stripname ()
18085 {
18086 case ${2} in
18087 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18088 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18089 esac
18090 }
18091
18092 # sed scripts:
18093 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18094 my_sed_long_arg='1s/^-[^=]*=//'
18095
18096 # func_opt_split
18097 func_opt_split ()
18098 {
18099 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18100 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18101 }
18102
18103 # func_lo2o object
18104 func_lo2o ()
18105 {
18106 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18107 }
18108
18109 # func_xform libobj-or-source
18110 func_xform ()
18111 {
18112 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18113 }
18114
18115 # func_arith arithmetic-term...
18116 func_arith ()
18117 {
18118 func_arith_result=`expr "$@"`
18119 }
18120
18121 # func_len string
18122 # STRING may not start with a hyphen.
18123 func_len ()
18124 {
18125 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18126 }
18127
18128 _LT_EOF
18129 esac
18130
18131 case $lt_shell_append in
18132 yes)
18133 cat << \_LT_EOF >> "$cfgfile"
18134
18135 # func_append var value
18136 # Append VALUE to the end of shell variable VAR.
18137 func_append ()
18138 {
18139 eval "$1+=\$2"
18140 }
18141 _LT_EOF
18142 ;;
18143 *)
18144 cat << \_LT_EOF >> "$cfgfile"
18145
18146 # func_append var value
18147 # Append VALUE to the end of shell variable VAR.
18148 func_append ()
18149 {
18150 eval "$1=\$$1\$2"
18151 }
18152
18153 _LT_EOF
18154 ;;
18155 esac
18156
18157
18158 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18159 || (rm -f "$cfgfile"; exit 1)
18160
18161 mv -f "$cfgfile" "$ofile" ||
18162 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18163 chmod +x "$ofile"
18164
18165
18166 cat <<_LT_EOF >> "$ofile"
18167
18168 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18169
18170 # The linker used to build libraries.
18171 LD=$lt_LD_CXX
18172
18173 # How to create reloadable object files.
18174 reload_flag=$lt_reload_flag_CXX
18175 reload_cmds=$lt_reload_cmds_CXX
18176
18177 # Commands used to build an old-style archive.
18178 old_archive_cmds=$lt_old_archive_cmds_CXX
18179
18180 # A language specific compiler.
18181 CC=$lt_compiler_CXX
18182
18183 # Is the compiler the GNU compiler?
18184 with_gcc=$GCC_CXX
18185
18186 # Compiler flag to turn off builtin functions.
18187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18188
18189 # How to pass a linker flag through the compiler.
18190 wl=$lt_lt_prog_compiler_wl_CXX
18191
18192 # Additional compiler flags for building library objects.
18193 pic_flag=$lt_lt_prog_compiler_pic_CXX
18194
18195 # Compiler flag to prevent dynamic linking.
18196 link_static_flag=$lt_lt_prog_compiler_static_CXX
18197
18198 # Does compiler simultaneously support -c and -o options?
18199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18200
18201 # Whether or not to add -lc for building shared libraries.
18202 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18203
18204 # Whether or not to disallow shared libs when runtime libs are static.
18205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18206
18207 # Compiler flag to allow reflexive dlopens.
18208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18209
18210 # Compiler flag to generate shared objects directly from archives.
18211 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18212
18213 # Whether the compiler copes with passing no objects directly.
18214 compiler_needs_object=$lt_compiler_needs_object_CXX
18215
18216 # Create an old-style archive from a shared archive.
18217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18218
18219 # Create a temporary old-style archive to link instead of a shared archive.
18220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18221
18222 # Commands used to build a shared archive.
18223 archive_cmds=$lt_archive_cmds_CXX
18224 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18225
18226 # Commands used to build a loadable module if different from building
18227 # a shared archive.
18228 module_cmds=$lt_module_cmds_CXX
18229 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18230
18231 # Whether we are building with GNU ld or not.
18232 with_gnu_ld=$lt_with_gnu_ld_CXX
18233
18234 # Flag that allows shared libraries with undefined symbols to be built.
18235 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18236
18237 # Flag that enforces no undefined symbols.
18238 no_undefined_flag=$lt_no_undefined_flag_CXX
18239
18240 # Flag to hardcode \$libdir into a binary during linking.
18241 # This must work even if \$libdir does not exist
18242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18243
18244 # If ld is used when linking, flag to hardcode \$libdir into a binary
18245 # during linking. This must work even if \$libdir does not exist.
18246 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18247
18248 # Whether we need a single "-rpath" flag with a separated argument.
18249 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18250
18251 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18252 # DIR into the resulting binary.
18253 hardcode_direct=$hardcode_direct_CXX
18254
18255 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18256 # DIR into the resulting binary and the resulting library dependency is
18257 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18258 # library is relocated.
18259 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18260
18261 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18262 # into the resulting binary.
18263 hardcode_minus_L=$hardcode_minus_L_CXX
18264
18265 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18266 # into the resulting binary.
18267 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18268
18269 # Set to "yes" if building a shared library automatically hardcodes DIR
18270 # into the library and all subsequent libraries and executables linked
18271 # against it.
18272 hardcode_automatic=$hardcode_automatic_CXX
18273
18274 # Set to yes if linker adds runtime paths of dependent libraries
18275 # to runtime path list.
18276 inherit_rpath=$inherit_rpath_CXX
18277
18278 # Whether libtool must link a program against all its dependency libraries.
18279 link_all_deplibs=$link_all_deplibs_CXX
18280
18281 # Fix the shell variable \$srcfile for the compiler.
18282 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18283
18284 # Set to "yes" if exported symbols are required.
18285 always_export_symbols=$always_export_symbols_CXX
18286
18287 # The commands to list exported symbols.
18288 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18289
18290 # Symbols that should not be listed in the preloaded symbols.
18291 exclude_expsyms=$lt_exclude_expsyms_CXX
18292
18293 # Symbols that must always be exported.
18294 include_expsyms=$lt_include_expsyms_CXX
18295
18296 # Commands necessary for linking programs (against libraries) with templates.
18297 prelink_cmds=$lt_prelink_cmds_CXX
18298
18299 # Specify filename containing input files.
18300 file_list_spec=$lt_file_list_spec_CXX
18301
18302 # How to hardcode a shared library path into an executable.
18303 hardcode_action=$hardcode_action_CXX
18304
18305 # The directories searched by this compiler when creating a shared library.
18306 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18307
18308 # Dependencies to place before and after the objects being linked to
18309 # create a shared library.
18310 predep_objects=$lt_predep_objects_CXX
18311 postdep_objects=$lt_postdep_objects_CXX
18312 predeps=$lt_predeps_CXX
18313 postdeps=$lt_postdeps_CXX
18314
18315 # The library search path used internally by the compiler when linking
18316 # a shared library.
18317 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18318
18319 # ### END LIBTOOL TAG CONFIG: CXX
18320 _LT_EOF
18321
18322 ;;
18323
18324 esac
18325 done # for ac_tag
18326
18327
18328 as_fn_exit 0
18329 _ACEOF
18330 ac_clean_files=$ac_clean_files_save
18331
18332 test $ac_write_fail = 0 ||
18333 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18334
18335
18336 # configure is writing to config.log, and then calls config.status.
18337 # config.status does its own redirection, appending to config.log.
18338 # Unfortunately, on DOS this fails, as config.log is still kept open
18339 # by configure, so config.status won't be able to write to it; its
18340 # output is simply discarded. So we exec the FD to /dev/null,
18341 # effectively closing config.log, so it can be properly (re)opened and
18342 # appended to by config.status. When coming back to configure, we
18343 # need to make the FD available again.
18344 if test "$no_create" != yes; then
18345 ac_cs_success=:
18346 ac_config_status_args=
18347 test "$silent" = yes &&
18348 ac_config_status_args="$ac_config_status_args --quiet"
18349 exec 5>/dev/null
18350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18351 exec 5>>config.log
18352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18353 # would make configure fail if this is the last instruction.
18354 $ac_cs_success || as_fn_exit $?
18355 fi
18356 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18358 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18359 fi
18360