45e6941825c5f346fa29a3d2167e22ca92b23720
[deliverable/binutils-gdb.git] / gprof / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for gprof 2.24.51.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='gprof'
558 PACKAGE_TARNAME='gprof'
559 PACKAGE_VERSION='2.24.51'
560 PACKAGE_STRING='gprof 2.24.51'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="gprof.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 NO_WERROR
606 WARN_CFLAGS
607 GENINSRC_NEVER_FALSE
608 GENINSRC_NEVER_TRUE
609 MAINT
610 MAINTAINER_MODE_FALSE
611 MAINTAINER_MODE_TRUE
612 MSGMERGE
613 MSGFMT
614 MKINSTALLDIRS
615 CATOBJEXT
616 GENCAT
617 INSTOBJEXT
618 DATADIRNAME
619 CATALOGS
620 POSUB
621 GMSGFMT
622 XGETTEXT
623 INCINTL
624 LIBINTL_DEP
625 LIBINTL
626 USE_NLS
627 OTOOL64
628 OTOOL
629 LIPO
630 NMEDIT
631 DSYMUTIL
632 RANLIB
633 AR
634 OBJDUMP
635 LN_S
636 NM
637 ac_ct_DUMPBIN
638 DUMPBIN
639 LD
640 FGREP
641 SED
642 LIBTOOL
643 EGREP
644 GREP
645 CPP
646 am__fastdepCC_FALSE
647 am__fastdepCC_TRUE
648 CCDEPMODE
649 AMDEPBACKSLASH
650 AMDEP_FALSE
651 AMDEP_TRUE
652 am__quote
653 am__include
654 DEPDIR
655 am__untar
656 am__tar
657 AMTAR
658 am__leading_dot
659 SET_MAKE
660 AWK
661 mkdir_p
662 MKDIR_P
663 INSTALL_STRIP_PROGRAM
664 STRIP
665 install_sh
666 MAKEINFO
667 AUTOHEADER
668 AUTOMAKE
669 AUTOCONF
670 ACLOCAL
671 VERSION
672 PACKAGE
673 CYGPATH_W
674 am__isrc
675 INSTALL_DATA
676 INSTALL_SCRIPT
677 INSTALL_PROGRAM
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
684 CC
685 target_os
686 target_vendor
687 target_cpu
688 target
689 host_os
690 host_vendor
691 host_cpu
692 host
693 build_os
694 build_vendor
695 build_cpu
696 build
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files=''
736 ac_user_opts='
737 enable_option_checking
738 enable_dependency_tracking
739 enable_plugins
740 enable_largefile
741 enable_shared
742 enable_static
743 with_pic
744 enable_fast_install
745 with_gnu_ld
746 enable_libtool_lock
747 enable_nls
748 enable_maintainer_mode
749 enable_werror
750 enable_build_warnings
751 '
752 ac_precious_vars='build_alias
753 host_alias
754 target_alias
755 CC
756 CFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS
760 CPP'
761
762
763 # Initialize some variables set by options.
764 ac_init_help=
765 ac_init_version=false
766 ac_unrecognized_opts=
767 ac_unrecognized_sep=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
770 cache_file=/dev/null
771 exec_prefix=NONE
772 no_create=
773 no_recursion=
774 prefix=NONE
775 program_prefix=NONE
776 program_suffix=NONE
777 program_transform_name=s,x,x,
778 silent=
779 site=
780 srcdir=
781 verbose=
782 x_includes=NONE
783 x_libraries=NONE
784
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802 infodir='${datarootdir}/info'
803 htmldir='${docdir}'
804 dvidir='${docdir}'
805 pdfdir='${docdir}'
806 psdir='${docdir}'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
810
811 ac_prev=
812 ac_dashdash=
813 for ac_option
814 do
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
820 fi
821
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
826
827 # Accept the important Cygnus configure options, so we can diagnose typos.
828
829 case $ac_dashdash$ac_option in
830 --)
831 ac_dashdash=yes ;;
832
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
837
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
842
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
849
850 --config-cache | -C)
851 cache_file=config.cache ;;
852
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
857
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
864
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
880
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
885
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
890
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
906
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
915
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
919
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
926
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
931
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
937
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
944
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
949
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
954
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
961
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
966
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
973
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
978
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
982
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
986
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
990
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
999
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1004
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1011
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1018
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1035
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1040
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1045
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1049
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1055
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1066
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1071
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1076
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1083
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1088
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1091
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1094
1095 -with-* | --with-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104 "with_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=\$ac_optarg ;;
1110
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
1126
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1130
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1137
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1144
1145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information."
1147 ;;
1148
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1158
1159 *)
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1165 ;;
1166
1167 esac
1168 done
1169
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error "missing argument to $ac_option"
1173 fi
1174
1175 if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1181 fi
1182
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1188 do
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1202 done
1203
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1207 build=$build_alias
1208 host=$host_alias
1209 target=$target_alias
1210
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1219 fi
1220 fi
1221
1222 ac_tool_prefix=
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225 test "$silent" = yes && exec 6>/dev/null
1226
1227
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error "pwd does not report name of working directory"
1234
1235
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245 $as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
1263 srcdir=$ac_confdir
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 srcdir=..
1266 fi
1267 else
1268 ac_srcdir_defaulted=no
1269 fi
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1273 fi
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 pwd)`
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281 fi
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1285 case $srcdir in
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 esac
1288 for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293 done
1294
1295 #
1296 # Report the --help message.
1297 #
1298 if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302 \`configure' configures gprof 2.24.51 to adapt to many kinds of systems.
1303
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE. See below for descriptions of some of the useful variables.
1308
1309 Defaults for the options are specified in brackets.
1310
1311 Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321
1322 Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 [PREFIX]
1327
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1332
1333 For better control, use the options below.
1334
1335 Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/gprof]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1355 _ACEOF
1356
1357 cat <<\_ACEOF
1358
1359 Program names:
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363
1364 System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1368 _ACEOF
1369 fi
1370
1371 if test -n "$ac_init_help"; then
1372 case $ac_init_help in
1373 short | recursive ) echo "Configuration of gprof 2.24.51:";;
1374 esac
1375 cat <<\_ACEOF
1376
1377 Optional Features:
1378 --disable-option-checking ignore unrecognized --enable/--with options
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1381 --disable-dependency-tracking speeds up one-time build
1382 --enable-dependency-tracking do not reject slow dependency extractors
1383 --enable-plugins Enable support for plugins (defaults no)
1384 --disable-largefile omit support for large files
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 --disable-nls do not use Native Language Support
1391 --enable-maintainer-mode enable make rules and dependencies not useful
1392 (and sometimes confusing) to the casual installer
1393 --enable-werror treat compile warnings as errors
1394 --enable-build-warnings enable build-time compiler warnings
1395
1396 Optional Packages:
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399 --with-pic try to use only PIC/non-PIC objects [default=use
1400 both]
1401 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1402
1403 Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1411 CPP C preprocessor
1412
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1415
1416 Report bugs to the package provider.
1417 _ACEOF
1418 ac_status=$?
1419 fi
1420
1421 if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" ||
1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 continue
1427 ac_builddir=.
1428
1429 case "$ac_dir" in
1430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 *)
1432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1433 # A ".." for each directory in $ac_dir_suffix.
1434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 esac ;;
1439 esac
1440 ac_abs_top_builddir=$ac_pwd
1441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442 # for backward compatibility:
1443 ac_top_builddir=$ac_top_build_prefix
1444
1445 case $srcdir in
1446 .) # We are building in place.
1447 ac_srcdir=.
1448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
1451 ac_srcdir=$srcdir$ac_dir_suffix;
1452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1454 *) # Relative name.
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 esac
1459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460
1461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure" --help=recursive
1469 else
1470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 fi || ac_status=$?
1472 cd "$ac_pwd" || { ac_status=$?; break; }
1473 done
1474 fi
1475
1476 test -n "$ac_init_help" && exit $ac_status
1477 if $ac_init_version; then
1478 cat <<\_ACEOF
1479 gprof configure 2.24.51
1480 generated by GNU Autoconf 2.64
1481
1482 Copyright (C) 2009 Free Software Foundation, Inc.
1483 This configure script is free software; the Free Software Foundation
1484 gives unlimited permission to copy, distribute and modify it.
1485 _ACEOF
1486 exit
1487 fi
1488
1489 ## ------------------------ ##
1490 ## Autoconf initialization. ##
1491 ## ------------------------ ##
1492
1493 # ac_fn_c_try_compile LINENO
1494 # --------------------------
1495 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1496 ac_fn_c_try_compile ()
1497 {
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 rm -f conftest.$ac_objext
1500 if { { ac_try="$ac_compile"
1501 case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504 esac
1505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506 $as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_compile") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && {
1516 test -z "$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 } && test -s conftest.$ac_objext; then :
1519 ac_retval=0
1520 else
1521 $as_echo "$as_me: failed program was:" >&5
1522 sed 's/^/| /' conftest.$ac_ext >&5
1523
1524 ac_retval=1
1525 fi
1526 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1527 return $ac_retval
1528
1529 } # ac_fn_c_try_compile
1530
1531 # ac_fn_c_try_link LINENO
1532 # -----------------------
1533 # Try to link conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_link ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext conftest$ac_exeext
1538 if { { ac_try="$ac_link"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_link") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest$ac_exeext && {
1557 test "$cross_compiling" = yes ||
1558 $as_test_x conftest$ac_exeext
1559 }; then :
1560 ac_retval=0
1561 else
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566 fi
1567 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1568 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1569 # interfere with the next link command; also delete a directory that is
1570 # left behind by Apple's compiler. We do this before executing the actions.
1571 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573 return $ac_retval
1574
1575 } # ac_fn_c_try_link
1576
1577 # ac_fn_c_try_cpp LINENO
1578 # ----------------------
1579 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_cpp ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_cpp conftest.$ac_ext"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } >/dev/null && {
1599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 }; then :
1602 ac_retval=0
1603 else
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608 fi
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 return $ac_retval
1611
1612 } # ac_fn_c_try_cpp
1613
1614 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1617 # the include files in INCLUDES and setting the cache variable VAR
1618 # accordingly.
1619 ac_fn_c_check_header_mongrel ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 $as_echo_n "checking for $2... " >&6; }
1625 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1626 $as_echo_n "(cached) " >&6
1627 fi
1628 eval ac_res=\$$3
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630 $as_echo "$ac_res" >&6; }
1631 else
1632 # Is the header compilable?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1634 $as_echo_n "checking $2 usability... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1637 $4
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641 ac_header_compiler=yes
1642 else
1643 ac_header_compiler=no
1644 fi
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1647 $as_echo "$ac_header_compiler" >&6; }
1648
1649 # Is the header present?
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1651 $as_echo_n "checking $2 presence... " >&6; }
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_cpp "$LINENO"; then :
1657 ac_header_preproc=yes
1658 else
1659 ac_header_preproc=no
1660 fi
1661 rm -f conftest.err conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1663 $as_echo "$ac_header_preproc" >&6; }
1664
1665 # So? What about this header?
1666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1667 yes:no: )
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1669 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672 ;;
1673 no:yes:* )
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1675 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1677 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1679 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1681 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1684 ;;
1685 esac
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1689 $as_echo_n "(cached) " >&6
1690 else
1691 eval "$3=\$ac_header_compiler"
1692 fi
1693 eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696 fi
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698
1699 } # ac_fn_c_check_header_mongrel
1700
1701 # ac_fn_c_try_run LINENO
1702 # ----------------------
1703 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704 # that executables *can* be run.
1705 ac_fn_c_try_run ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: program exited with status $ac_status" >&5
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=$ac_status
1736 fi
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739 return $ac_retval
1740
1741 } # ac_fn_c_try_run
1742
1743 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1744 # -------------------------------------------------------
1745 # Tests whether HEADER exists and can be compiled using the include files in
1746 # INCLUDES, setting the cache variable VAR accordingly.
1747 ac_fn_c_check_header_compile ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753 $as_echo_n "(cached) " >&6
1754 else
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 $4
1758 #include <$2>
1759 _ACEOF
1760 if ac_fn_c_try_compile "$LINENO"; then :
1761 eval "$3=yes"
1762 else
1763 eval "$3=no"
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766 fi
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771
1772 } # ac_fn_c_check_header_compile
1773
1774 # ac_fn_c_check_func LINENO FUNC VAR
1775 # ----------------------------------
1776 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1777 ac_fn_c_check_func ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1783 $as_echo_n "(cached) " >&6
1784 else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1789 #define $2 innocuous_$2
1790
1791 /* System header to define __stub macros and hopefully few prototypes,
1792 which can conflict with char $2 (); below.
1793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1794 <limits.h> exists even on freestanding compilers. */
1795
1796 #ifdef __STDC__
1797 # include <limits.h>
1798 #else
1799 # include <assert.h>
1800 #endif
1801
1802 #undef $2
1803
1804 /* Override any GCC internal prototype to avoid an error.
1805 Use char because int might match the return type of a GCC
1806 builtin and then its argument prototype would still apply. */
1807 #ifdef __cplusplus
1808 extern "C"
1809 #endif
1810 char $2 ();
1811 /* The GNU C library defines this for functions which it implements
1812 to always fail with ENOSYS. Some functions are actually named
1813 something starting with __ and the normal name is an alias. */
1814 #if defined __stub_$2 || defined __stub___$2
1815 choke me
1816 #endif
1817
1818 int
1819 main ()
1820 {
1821 return $2 ();
1822 ;
1823 return 0;
1824 }
1825 _ACEOF
1826 if ac_fn_c_try_link "$LINENO"; then :
1827 eval "$3=yes"
1828 else
1829 eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext \
1832 conftest$ac_exeext conftest.$ac_ext
1833 fi
1834 eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838
1839 } # ac_fn_c_check_func
1840 cat >config.log <<_ACEOF
1841 This file contains any messages produced by compilers while
1842 running configure, to aid debugging if configure makes a mistake.
1843
1844 It was created by gprof $as_me 2.24.51, which was
1845 generated by GNU Autoconf 2.64. Invocation command line was
1846
1847 $ $0 $@
1848
1849 _ACEOF
1850 exec 5>>config.log
1851 {
1852 cat <<_ASUNAME
1853 ## --------- ##
1854 ## Platform. ##
1855 ## --------- ##
1856
1857 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1858 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1859 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1860 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1861 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1862
1863 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1864 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1865
1866 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1867 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1868 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1869 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1870 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1871 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1872 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1873
1874 _ASUNAME
1875
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1878 do
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 $as_echo "PATH: $as_dir"
1882 done
1883 IFS=$as_save_IFS
1884
1885 } >&5
1886
1887 cat >&5 <<_ACEOF
1888
1889
1890 ## ----------- ##
1891 ## Core tests. ##
1892 ## ----------- ##
1893
1894 _ACEOF
1895
1896
1897 # Keep a trace of the command line.
1898 # Strip out --no-create and --no-recursion so they do not pile up.
1899 # Strip out --silent because we don't want to record it for future runs.
1900 # Also quote any args containing shell meta-characters.
1901 # Make two passes to allow for proper duplicate-argument suppression.
1902 ac_configure_args=
1903 ac_configure_args0=
1904 ac_configure_args1=
1905 ac_must_keep_next=false
1906 for ac_pass in 1 2
1907 do
1908 for ac_arg
1909 do
1910 case $ac_arg in
1911 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1913 | -silent | --silent | --silen | --sile | --sil)
1914 continue ;;
1915 *\'*)
1916 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1917 esac
1918 case $ac_pass in
1919 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1920 2)
1921 as_fn_append ac_configure_args1 " '$ac_arg'"
1922 if test $ac_must_keep_next = true; then
1923 ac_must_keep_next=false # Got value, back to normal.
1924 else
1925 case $ac_arg in
1926 *=* | --config-cache | -C | -disable-* | --disable-* \
1927 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1928 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1929 | -with-* | --with-* | -without-* | --without-* | --x)
1930 case "$ac_configure_args0 " in
1931 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1932 esac
1933 ;;
1934 -* ) ac_must_keep_next=true ;;
1935 esac
1936 fi
1937 as_fn_append ac_configure_args " '$ac_arg'"
1938 ;;
1939 esac
1940 done
1941 done
1942 { ac_configure_args0=; unset ac_configure_args0;}
1943 { ac_configure_args1=; unset ac_configure_args1;}
1944
1945 # When interrupted or exit'd, cleanup temporary files, and complete
1946 # config.log. We remove comments because anyway the quotes in there
1947 # would cause problems or look ugly.
1948 # WARNING: Use '\'' to represent an apostrophe within the trap.
1949 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1950 trap 'exit_status=$?
1951 # Save into config.log some information that might help in debugging.
1952 {
1953 echo
1954
1955 cat <<\_ASBOX
1956 ## ---------------- ##
1957 ## Cache variables. ##
1958 ## ---------------- ##
1959 _ASBOX
1960 echo
1961 # The following way of writing the cache mishandles newlines in values,
1962 (
1963 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1964 eval ac_val=\$$ac_var
1965 case $ac_val in #(
1966 *${as_nl}*)
1967 case $ac_var in #(
1968 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1969 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1970 esac
1971 case $ac_var in #(
1972 _ | IFS | as_nl) ;; #(
1973 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1974 *) { eval $ac_var=; unset $ac_var;} ;;
1975 esac ;;
1976 esac
1977 done
1978 (set) 2>&1 |
1979 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1980 *${as_nl}ac_space=\ *)
1981 sed -n \
1982 "s/'\''/'\''\\\\'\'''\''/g;
1983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1984 ;; #(
1985 *)
1986 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1987 ;;
1988 esac |
1989 sort
1990 )
1991 echo
1992
1993 cat <<\_ASBOX
1994 ## ----------------- ##
1995 ## Output variables. ##
1996 ## ----------------- ##
1997 _ASBOX
1998 echo
1999 for ac_var in $ac_subst_vars
2000 do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in
2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 esac
2005 $as_echo "$ac_var='\''$ac_val'\''"
2006 done | sort
2007 echo
2008
2009 if test -n "$ac_subst_files"; then
2010 cat <<\_ASBOX
2011 ## ------------------- ##
2012 ## File substitutions. ##
2013 ## ------------------- ##
2014 _ASBOX
2015 echo
2016 for ac_var in $ac_subst_files
2017 do
2018 eval ac_val=\$$ac_var
2019 case $ac_val in
2020 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 esac
2022 $as_echo "$ac_var='\''$ac_val'\''"
2023 done | sort
2024 echo
2025 fi
2026
2027 if test -s confdefs.h; then
2028 cat <<\_ASBOX
2029 ## ----------- ##
2030 ## confdefs.h. ##
2031 ## ----------- ##
2032 _ASBOX
2033 echo
2034 cat confdefs.h
2035 echo
2036 fi
2037 test "$ac_signal" != 0 &&
2038 $as_echo "$as_me: caught signal $ac_signal"
2039 $as_echo "$as_me: exit $exit_status"
2040 } >&5
2041 rm -f core *.core core.conftest.* &&
2042 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2043 exit $exit_status
2044 ' 0
2045 for ac_signal in 1 2 13 15; do
2046 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2047 done
2048 ac_signal=0
2049
2050 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2051 rm -f -r conftest* confdefs.h
2052
2053 $as_echo "/* confdefs.h */" > confdefs.h
2054
2055 # Predefined preprocessor variables.
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_NAME "$PACKAGE_NAME"
2059 _ACEOF
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2063 _ACEOF
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2067 _ACEOF
2068
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_STRING "$PACKAGE_STRING"
2071 _ACEOF
2072
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2075 _ACEOF
2076
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_URL "$PACKAGE_URL"
2079 _ACEOF
2080
2081
2082 # Let the site file select an alternate cache file if it wants to.
2083 # Prefer an explicitly selected file to automatically selected ones.
2084 ac_site_file1=NONE
2085 ac_site_file2=NONE
2086 if test -n "$CONFIG_SITE"; then
2087 ac_site_file1=$CONFIG_SITE
2088 elif test "x$prefix" != xNONE; then
2089 ac_site_file1=$prefix/share/config.site
2090 ac_site_file2=$prefix/etc/config.site
2091 else
2092 ac_site_file1=$ac_default_prefix/share/config.site
2093 ac_site_file2=$ac_default_prefix/etc/config.site
2094 fi
2095 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2096 do
2097 test "x$ac_site_file" = xNONE && continue
2098 if test -r "$ac_site_file"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2100 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2101 sed 's/^/| /' "$ac_site_file" >&5
2102 . "$ac_site_file"
2103 fi
2104 done
2105
2106 if test -r "$cache_file"; then
2107 # Some versions of bash will fail to source /dev/null (special
2108 # files actually), so we avoid doing that.
2109 if test -f "$cache_file"; then
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2111 $as_echo "$as_me: loading cache $cache_file" >&6;}
2112 case $cache_file in
2113 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114 *) . "./$cache_file";;
2115 esac
2116 fi
2117 else
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2119 $as_echo "$as_me: creating cache $cache_file" >&6;}
2120 >$cache_file
2121 fi
2122
2123 # Check that the precious variables saved in the cache have kept the same
2124 # value.
2125 ac_cache_corrupted=false
2126 for ac_var in $ac_precious_vars; do
2127 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2128 eval ac_new_set=\$ac_env_${ac_var}_set
2129 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2130 eval ac_new_val=\$ac_env_${ac_var}_value
2131 case $ac_old_set,$ac_new_set in
2132 set,)
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2134 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2135 ac_cache_corrupted=: ;;
2136 ,set)
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2138 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2139 ac_cache_corrupted=: ;;
2140 ,);;
2141 *)
2142 if test "x$ac_old_val" != "x$ac_new_val"; then
2143 # differences in whitespace do not lead to failure.
2144 ac_old_val_w=`echo x $ac_old_val`
2145 ac_new_val_w=`echo x $ac_new_val`
2146 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2148 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2149 ac_cache_corrupted=:
2150 else
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2152 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2153 eval $ac_var=\$ac_old_val
2154 fi
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2156 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2158 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2159 fi;;
2160 esac
2161 # Pass precious variables to config.status.
2162 if test "$ac_new_set" = set; then
2163 case $ac_new_val in
2164 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2165 *) ac_arg=$ac_var=$ac_new_val ;;
2166 esac
2167 case " $ac_configure_args " in
2168 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2169 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2170 esac
2171 fi
2172 done
2173 if $ac_cache_corrupted; then
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2177 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2178 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2179 fi
2180 ## -------------------- ##
2181 ## Main body of script. ##
2182 ## -------------------- ##
2183
2184 ac_ext=c
2185 ac_cpp='$CPP $CPPFLAGS'
2186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189
2190
2191
2192
2193
2194
2195
2196 ac_aux_dir=
2197 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2198 for ac_t in install-sh install.sh shtool; do
2199 if test -f "$ac_dir/$ac_t"; then
2200 ac_aux_dir=$ac_dir
2201 ac_install_sh="$ac_aux_dir/$ac_t -c"
2202 break 2
2203 fi
2204 done
2205 done
2206 if test -z "$ac_aux_dir"; then
2207 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2208 fi
2209
2210 # These three variables are undocumented and unsupported,
2211 # and are intended to be withdrawn in a future Autoconf release.
2212 # They can cause serious problems if a builder's source tree is in a directory
2213 # whose full name contains unusual characters.
2214 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2215 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2216 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2217
2218
2219 # Make sure we can run config.sub.
2220 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2221 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2222
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2224 $as_echo_n "checking build system type... " >&6; }
2225 if test "${ac_cv_build+set}" = set; then :
2226 $as_echo_n "(cached) " >&6
2227 else
2228 ac_build_alias=$build_alias
2229 test "x$ac_build_alias" = x &&
2230 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2231 test "x$ac_build_alias" = x &&
2232 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2233 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2234 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2235
2236 fi
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2238 $as_echo "$ac_cv_build" >&6; }
2239 case $ac_cv_build in
2240 *-*-*) ;;
2241 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2242 esac
2243 build=$ac_cv_build
2244 ac_save_IFS=$IFS; IFS='-'
2245 set x $ac_cv_build
2246 shift
2247 build_cpu=$1
2248 build_vendor=$2
2249 shift; shift
2250 # Remember, the first character of IFS is used to create $*,
2251 # except with old shells:
2252 build_os=$*
2253 IFS=$ac_save_IFS
2254 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2255
2256
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2258 $as_echo_n "checking host system type... " >&6; }
2259 if test "${ac_cv_host+set}" = set; then :
2260 $as_echo_n "(cached) " >&6
2261 else
2262 if test "x$host_alias" = x; then
2263 ac_cv_host=$ac_cv_build
2264 else
2265 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2266 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2267 fi
2268
2269 fi
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2271 $as_echo "$ac_cv_host" >&6; }
2272 case $ac_cv_host in
2273 *-*-*) ;;
2274 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2275 esac
2276 host=$ac_cv_host
2277 ac_save_IFS=$IFS; IFS='-'
2278 set x $ac_cv_host
2279 shift
2280 host_cpu=$1
2281 host_vendor=$2
2282 shift; shift
2283 # Remember, the first character of IFS is used to create $*,
2284 # except with old shells:
2285 host_os=$*
2286 IFS=$ac_save_IFS
2287 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2288
2289
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2291 $as_echo_n "checking target system type... " >&6; }
2292 if test "${ac_cv_target+set}" = set; then :
2293 $as_echo_n "(cached) " >&6
2294 else
2295 if test "x$target_alias" = x; then
2296 ac_cv_target=$ac_cv_host
2297 else
2298 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2299 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2300 fi
2301
2302 fi
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2304 $as_echo "$ac_cv_target" >&6; }
2305 case $ac_cv_target in
2306 *-*-*) ;;
2307 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2308 esac
2309 target=$ac_cv_target
2310 ac_save_IFS=$IFS; IFS='-'
2311 set x $ac_cv_target
2312 shift
2313 target_cpu=$1
2314 target_vendor=$2
2315 shift; shift
2316 # Remember, the first character of IFS is used to create $*,
2317 # except with old shells:
2318 target_os=$*
2319 IFS=$ac_save_IFS
2320 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2321
2322
2323 # The aliases save the names the user supplied, while $host etc.
2324 # will get canonicalized.
2325 test -n "$target_alias" &&
2326 test "$program_prefix$program_suffix$program_transform_name" = \
2327 NONENONEs,x,x, &&
2328 program_prefix=${target_alias}-
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2338 $as_echo_n "checking for $ac_word... " >&6; }
2339 if test "${ac_cv_prog_CC+set}" = set; then :
2340 $as_echo_n "(cached) " >&6
2341 else
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356 done
2357 done
2358 IFS=$as_save_IFS
2359
2360 fi
2361 fi
2362 CC=$ac_cv_prog_CC
2363 if test -n "$CC"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2365 $as_echo "$CC" >&6; }
2366 else
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2368 $as_echo "no" >&6; }
2369 fi
2370
2371
2372 fi
2373 if test -z "$ac_cv_prog_CC"; then
2374 ac_ct_CC=$CC
2375 # Extract the first word of "gcc", so it can be a program name with args.
2376 set dummy gcc; ac_word=$2
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2378 $as_echo_n "checking for $ac_word... " >&6; }
2379 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 if test -n "$ac_ct_CC"; then
2383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2387 do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_ac_ct_CC="gcc"
2393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2395 fi
2396 done
2397 done
2398 IFS=$as_save_IFS
2399
2400 fi
2401 fi
2402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403 if test -n "$ac_ct_CC"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2405 $as_echo "$ac_ct_CC" >&6; }
2406 else
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2408 $as_echo "no" >&6; }
2409 fi
2410
2411 if test "x$ac_ct_CC" = x; then
2412 CC=""
2413 else
2414 case $cross_compiling:$ac_tool_warned in
2415 yes:)
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2418 ac_tool_warned=yes ;;
2419 esac
2420 CC=$ac_ct_CC
2421 fi
2422 else
2423 CC="$ac_cv_prog_CC"
2424 fi
2425
2426 if test -z "$CC"; then
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}cc; ac_word=$2
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2431 $as_echo_n "checking for $ac_word... " >&6; }
2432 if test "${ac_cv_prog_CC+set}" = set; then :
2433 $as_echo_n "(cached) " >&6
2434 else
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC="$CC" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
2441 IFS=$as_save_IFS
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_CC="${ac_tool_prefix}cc"
2446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 break 2
2448 fi
2449 done
2450 done
2451 IFS=$as_save_IFS
2452
2453 fi
2454 fi
2455 CC=$ac_cv_prog_CC
2456 if test -n "$CC"; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2458 $as_echo "$CC" >&6; }
2459 else
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461 $as_echo "no" >&6; }
2462 fi
2463
2464
2465 fi
2466 fi
2467 if test -z "$CC"; then
2468 # Extract the first word of "cc", so it can be a program name with args.
2469 set dummy cc; ac_word=$2
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if test "${ac_cv_prog_CC+set}" = set; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 if test -n "$CC"; then
2476 ac_cv_prog_CC="$CC" # Let the user override the test.
2477 else
2478 ac_prog_rejected=no
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2481 do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2487 ac_prog_rejected=yes
2488 continue
2489 fi
2490 ac_cv_prog_CC="cc"
2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 if test $ac_prog_rejected = yes; then
2499 # We found a bogon in the path, so make sure we never use it.
2500 set dummy $ac_cv_prog_CC
2501 shift
2502 if test $# != 0; then
2503 # We chose a different compiler from the bogus one.
2504 # However, it has the same basename, so the bogon will be chosen
2505 # first if we set CC to just the basename; use the full file name.
2506 shift
2507 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2508 fi
2509 fi
2510 fi
2511 fi
2512 CC=$ac_cv_prog_CC
2513 if test -n "$CC"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2515 $as_echo "$CC" >&6; }
2516 else
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2519 fi
2520
2521
2522 fi
2523 if test -z "$CC"; then
2524 if test -n "$ac_tool_prefix"; then
2525 for ac_prog in cl.exe
2526 do
2527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if test "${ac_cv_prog_CC+set}" = set; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2547 fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 fi
2553 fi
2554 CC=$ac_cv_prog_CC
2555 if test -n "$CC"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2557 $as_echo "$CC" >&6; }
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2561 fi
2562
2563
2564 test -n "$CC" && break
2565 done
2566 fi
2567 if test -z "$CC"; then
2568 ac_ct_CC=$CC
2569 for ac_prog in cl.exe
2570 do
2571 # Extract the first word of "$ac_prog", so it can be a program name with args.
2572 set dummy $ac_prog; ac_word=$2
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574 $as_echo_n "checking for $ac_word... " >&6; }
2575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 if test -n "$ac_ct_CC"; then
2579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 ac_cv_prog_ac_ct_CC="$ac_prog"
2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592 done
2593 done
2594 IFS=$as_save_IFS
2595
2596 fi
2597 fi
2598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2599 if test -n "$ac_ct_CC"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2601 $as_echo "$ac_ct_CC" >&6; }
2602 else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2605 fi
2606
2607
2608 test -n "$ac_ct_CC" && break
2609 done
2610
2611 if test "x$ac_ct_CC" = x; then
2612 CC=""
2613 else
2614 case $cross_compiling:$ac_tool_warned in
2615 yes:)
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2618 ac_tool_warned=yes ;;
2619 esac
2620 CC=$ac_ct_CC
2621 fi
2622 fi
2623
2624 fi
2625
2626
2627 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 as_fn_error "no acceptable C compiler found in \$PATH
2630 See \`config.log' for more details." "$LINENO" 5; }
2631
2632 # Provide some information about the compiler.
2633 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2634 set X $ac_compile
2635 ac_compiler=$2
2636 for ac_option in --version -v -V -qversion; do
2637 { { ac_try="$ac_compiler $ac_option >&5"
2638 case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641 esac
2642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2643 $as_echo "$ac_try_echo"; } >&5
2644 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2645 ac_status=$?
2646 if test -s conftest.err; then
2647 sed '10a\
2648 ... rest of stderr output deleted ...
2649 10q' conftest.err >conftest.er1
2650 cat conftest.er1 >&5
2651 rm -f conftest.er1 conftest.err
2652 fi
2653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2654 test $ac_status = 0; }
2655 done
2656
2657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2658 /* end confdefs.h. */
2659
2660 int
2661 main ()
2662 {
2663
2664 ;
2665 return 0;
2666 }
2667 _ACEOF
2668 ac_clean_files_save=$ac_clean_files
2669 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2670 # Try to create an executable without -o first, disregard a.out.
2671 # It will help us diagnose broken compilers, and finding out an intuition
2672 # of exeext.
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2674 $as_echo_n "checking for C compiler default output file name... " >&6; }
2675 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2676
2677 # The possible output files:
2678 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2679
2680 ac_rmfiles=
2681 for ac_file in $ac_files
2682 do
2683 case $ac_file in
2684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2685 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2686 esac
2687 done
2688 rm -f $ac_rmfiles
2689
2690 if { { ac_try="$ac_link_default"
2691 case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694 esac
2695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2696 $as_echo "$ac_try_echo"; } >&5
2697 (eval "$ac_link_default") 2>&5
2698 ac_status=$?
2699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2700 test $ac_status = 0; }; then :
2701 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2702 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2703 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2704 # so that the user can short-circuit this test for compilers unknown to
2705 # Autoconf.
2706 for ac_file in $ac_files ''
2707 do
2708 test -f "$ac_file" || continue
2709 case $ac_file in
2710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2711 ;;
2712 [ab].out )
2713 # We found the default executable, but exeext='' is most
2714 # certainly right.
2715 break;;
2716 *.* )
2717 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2718 then :; else
2719 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2720 fi
2721 # We set ac_cv_exeext here because the later test for it is not
2722 # safe: cross compilers may not add the suffix if given an `-o'
2723 # argument, so we may need to know it at that point already.
2724 # Even if this section looks crufty: it has the advantage of
2725 # actually working.
2726 break;;
2727 * )
2728 break;;
2729 esac
2730 done
2731 test "$ac_cv_exeext" = no && ac_cv_exeext=
2732
2733 else
2734 ac_file=''
2735 fi
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2737 $as_echo "$ac_file" >&6; }
2738 if test -z "$ac_file"; then :
2739 $as_echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2744 { as_fn_set_status 77
2745 as_fn_error "C compiler cannot create executables
2746 See \`config.log' for more details." "$LINENO" 5; }; }
2747 fi
2748 ac_exeext=$ac_cv_exeext
2749
2750 # Check that the compiler produces executables we can run. If not, either
2751 # the compiler is broken, or we cross compile.
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2753 $as_echo_n "checking whether the C compiler works... " >&6; }
2754 # If not cross compiling, check that we can run a simple program.
2755 if test "$cross_compiling" != yes; then
2756 if { ac_try='./$ac_file'
2757 { { case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760 esac
2761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2762 $as_echo "$ac_try_echo"; } >&5
2763 (eval "$ac_try") 2>&5
2764 ac_status=$?
2765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2766 test $ac_status = 0; }; }; then
2767 cross_compiling=no
2768 else
2769 if test "$cross_compiling" = maybe; then
2770 cross_compiling=yes
2771 else
2772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774 as_fn_error "cannot run C compiled programs.
2775 If you meant to cross compile, use \`--host'.
2776 See \`config.log' for more details." "$LINENO" 5; }
2777 fi
2778 fi
2779 fi
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2781 $as_echo "yes" >&6; }
2782
2783 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2784 ac_clean_files=$ac_clean_files_save
2785 # Check that the compiler produces executables we can run. If not, either
2786 # the compiler is broken, or we cross compile.
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2788 $as_echo_n "checking whether we are cross compiling... " >&6; }
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2790 $as_echo "$cross_compiling" >&6; }
2791
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2793 $as_echo_n "checking for suffix of executables... " >&6; }
2794 if { { ac_try="$ac_link"
2795 case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798 esac
2799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800 $as_echo "$ac_try_echo"; } >&5
2801 (eval "$ac_link") 2>&5
2802 ac_status=$?
2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804 test $ac_status = 0; }; then :
2805 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2806 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2807 # work properly (i.e., refer to `conftest.exe'), while it won't with
2808 # `rm'.
2809 for ac_file in conftest.exe conftest conftest.*; do
2810 test -f "$ac_file" || continue
2811 case $ac_file in
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2813 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2814 break;;
2815 * ) break;;
2816 esac
2817 done
2818 else
2819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821 as_fn_error "cannot compute suffix of executables: cannot compile and link
2822 See \`config.log' for more details." "$LINENO" 5; }
2823 fi
2824 rm -f conftest$ac_cv_exeext
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2826 $as_echo "$ac_cv_exeext" >&6; }
2827
2828 rm -f conftest.$ac_ext
2829 EXEEXT=$ac_cv_exeext
2830 ac_exeext=$EXEEXT
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2832 $as_echo_n "checking for suffix of object files... " >&6; }
2833 if test "${ac_cv_objext+set}" = set; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2837 /* end confdefs.h. */
2838
2839 int
2840 main ()
2841 {
2842
2843 ;
2844 return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.o conftest.obj
2848 if { { ac_try="$ac_compile"
2849 case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852 esac
2853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854 $as_echo "$ac_try_echo"; } >&5
2855 (eval "$ac_compile") 2>&5
2856 ac_status=$?
2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858 test $ac_status = 0; }; then :
2859 for ac_file in conftest.o conftest.obj conftest.*; do
2860 test -f "$ac_file" || continue;
2861 case $ac_file in
2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2863 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2864 break;;
2865 esac
2866 done
2867 else
2868 $as_echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2870
2871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873 as_fn_error "cannot compute suffix of object files: cannot compile
2874 See \`config.log' for more details." "$LINENO" 5; }
2875 fi
2876 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2877 fi
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2879 $as_echo "$ac_cv_objext" >&6; }
2880 OBJEXT=$ac_cv_objext
2881 ac_objext=$OBJEXT
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2883 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2884 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888 /* end confdefs.h. */
2889
2890 int
2891 main ()
2892 {
2893 #ifndef __GNUC__
2894 choke me
2895 #endif
2896
2897 ;
2898 return 0;
2899 }
2900 _ACEOF
2901 if ac_fn_c_try_compile "$LINENO"; then :
2902 ac_compiler_gnu=yes
2903 else
2904 ac_compiler_gnu=no
2905 fi
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2908
2909 fi
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2911 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2912 if test $ac_compiler_gnu = yes; then
2913 GCC=yes
2914 else
2915 GCC=
2916 fi
2917 ac_test_CFLAGS=${CFLAGS+set}
2918 ac_save_CFLAGS=$CFLAGS
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2920 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2921 if test "${ac_cv_prog_cc_g+set}" = set; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 ac_save_c_werror_flag=$ac_c_werror_flag
2925 ac_c_werror_flag=yes
2926 ac_cv_prog_cc_g=no
2927 CFLAGS="-g"
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2930
2931 int
2932 main ()
2933 {
2934
2935 ;
2936 return 0;
2937 }
2938 _ACEOF
2939 if ac_fn_c_try_compile "$LINENO"; then :
2940 ac_cv_prog_cc_g=yes
2941 else
2942 CFLAGS=""
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944 /* end confdefs.h. */
2945
2946 int
2947 main ()
2948 {
2949
2950 ;
2951 return 0;
2952 }
2953 _ACEOF
2954 if ac_fn_c_try_compile "$LINENO"; then :
2955
2956 else
2957 ac_c_werror_flag=$ac_save_c_werror_flag
2958 CFLAGS="-g"
2959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2960 /* end confdefs.h. */
2961
2962 int
2963 main ()
2964 {
2965
2966 ;
2967 return 0;
2968 }
2969 _ACEOF
2970 if ac_fn_c_try_compile "$LINENO"; then :
2971 ac_cv_prog_cc_g=yes
2972 fi
2973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974 fi
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 fi
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_c_werror_flag=$ac_save_c_werror_flag
2979 fi
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2981 $as_echo "$ac_cv_prog_cc_g" >&6; }
2982 if test "$ac_test_CFLAGS" = set; then
2983 CFLAGS=$ac_save_CFLAGS
2984 elif test $ac_cv_prog_cc_g = yes; then
2985 if test "$GCC" = yes; then
2986 CFLAGS="-g -O2"
2987 else
2988 CFLAGS="-g"
2989 fi
2990 else
2991 if test "$GCC" = yes; then
2992 CFLAGS="-O2"
2993 else
2994 CFLAGS=
2995 fi
2996 fi
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2998 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2999 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 ac_cv_prog_cc_c89=no
3003 ac_save_CC=$CC
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3006 #include <stdarg.h>
3007 #include <stdio.h>
3008 #include <sys/types.h>
3009 #include <sys/stat.h>
3010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3011 struct buf { int x; };
3012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3013 static char *e (p, i)
3014 char **p;
3015 int i;
3016 {
3017 return p[i];
3018 }
3019 static char *f (char * (*g) (char **, int), char **p, ...)
3020 {
3021 char *s;
3022 va_list v;
3023 va_start (v,p);
3024 s = g (p, va_arg (v,int));
3025 va_end (v);
3026 return s;
3027 }
3028
3029 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3030 function prototypes and stuff, but not '\xHH' hex character constants.
3031 These don't provoke an error unfortunately, instead are silently treated
3032 as 'x'. The following induces an error, until -std is added to get
3033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3034 array size at least. It's necessary to write '\x00'==0 to get something
3035 that's true only with -std. */
3036 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3037
3038 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3039 inside strings and character constants. */
3040 #define FOO(x) 'x'
3041 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3042
3043 int test (int i, double x);
3044 struct s1 {int (*f) (int a);};
3045 struct s2 {int (*f) (double a);};
3046 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3047 int argc;
3048 char **argv;
3049 int
3050 main ()
3051 {
3052 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3053 ;
3054 return 0;
3055 }
3056 _ACEOF
3057 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3059 do
3060 CC="$ac_save_CC $ac_arg"
3061 if ac_fn_c_try_compile "$LINENO"; then :
3062 ac_cv_prog_cc_c89=$ac_arg
3063 fi
3064 rm -f core conftest.err conftest.$ac_objext
3065 test "x$ac_cv_prog_cc_c89" != "xno" && break
3066 done
3067 rm -f conftest.$ac_ext
3068 CC=$ac_save_CC
3069
3070 fi
3071 # AC_CACHE_VAL
3072 case "x$ac_cv_prog_cc_c89" in
3073 x)
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3075 $as_echo "none needed" >&6; } ;;
3076 xno)
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3078 $as_echo "unsupported" >&6; } ;;
3079 *)
3080 CC="$CC $ac_cv_prog_cc_c89"
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3082 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3083 esac
3084 if test "x$ac_cv_prog_cc_c89" != xno; then :
3085
3086 fi
3087
3088 ac_ext=c
3089 ac_cpp='$CPP $CPPFLAGS'
3090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3093
3094
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3096 $as_echo_n "checking for library containing strerror... " >&6; }
3097 if test "${ac_cv_search_strerror+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 ac_func_search_save_LIBS=$LIBS
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3103
3104 /* Override any GCC internal prototype to avoid an error.
3105 Use char because int might match the return type of a GCC
3106 builtin and then its argument prototype would still apply. */
3107 #ifdef __cplusplus
3108 extern "C"
3109 #endif
3110 char strerror ();
3111 int
3112 main ()
3113 {
3114 return strerror ();
3115 ;
3116 return 0;
3117 }
3118 _ACEOF
3119 for ac_lib in '' cposix; do
3120 if test -z "$ac_lib"; then
3121 ac_res="none required"
3122 else
3123 ac_res=-l$ac_lib
3124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3125 fi
3126 if ac_fn_c_try_link "$LINENO"; then :
3127 ac_cv_search_strerror=$ac_res
3128 fi
3129 rm -f core conftest.err conftest.$ac_objext \
3130 conftest$ac_exeext
3131 if test "${ac_cv_search_strerror+set}" = set; then :
3132 break
3133 fi
3134 done
3135 if test "${ac_cv_search_strerror+set}" = set; then :
3136
3137 else
3138 ac_cv_search_strerror=no
3139 fi
3140 rm conftest.$ac_ext
3141 LIBS=$ac_func_search_save_LIBS
3142 fi
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3144 $as_echo "$ac_cv_search_strerror" >&6; }
3145 ac_res=$ac_cv_search_strerror
3146 if test "$ac_res" != no; then :
3147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3148
3149 fi
3150
3151
3152 am__api_version='1.11'
3153
3154 # Find a good install program. We prefer a C program (faster),
3155 # so one script is as good as another. But avoid the broken or
3156 # incompatible versions:
3157 # SysV /etc/install, /usr/sbin/install
3158 # SunOS /usr/etc/install
3159 # IRIX /sbin/install
3160 # AIX /bin/install
3161 # AmigaOS /C/install, which installs bootblocks on floppy discs
3162 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3163 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3164 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3165 # OS/2's system install, which has a completely different semantic
3166 # ./install, which can be erroneously created by make from ./install.sh.
3167 # Reject install programs that cannot install multiple files.
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3169 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3170 if test -z "$INSTALL"; then
3171 if test "${ac_cv_path_install+set}" = set; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 # Account for people who put trailing slashes in PATH elements.
3180 case $as_dir/ in #((
3181 ./ | .// | /[cC]/* | \
3182 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3183 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3184 /usr/ucb/* ) ;;
3185 *)
3186 # OSF1 and SCO ODT 3.0 have their own names for install.
3187 # Don't use installbsd from OSF since it installs stuff as root
3188 # by default.
3189 for ac_prog in ginstall scoinst install; do
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3192 if test $ac_prog = install &&
3193 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3194 # AIX install. It has an incompatible calling convention.
3195 :
3196 elif test $ac_prog = install &&
3197 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3198 # program-specific install script used by HP pwplus--don't use.
3199 :
3200 else
3201 rm -rf conftest.one conftest.two conftest.dir
3202 echo one > conftest.one
3203 echo two > conftest.two
3204 mkdir conftest.dir
3205 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3206 test -s conftest.one && test -s conftest.two &&
3207 test -s conftest.dir/conftest.one &&
3208 test -s conftest.dir/conftest.two
3209 then
3210 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3211 break 3
3212 fi
3213 fi
3214 fi
3215 done
3216 done
3217 ;;
3218 esac
3219
3220 done
3221 IFS=$as_save_IFS
3222
3223 rm -rf conftest.one conftest.two conftest.dir
3224
3225 fi
3226 if test "${ac_cv_path_install+set}" = set; then
3227 INSTALL=$ac_cv_path_install
3228 else
3229 # As a last resort, use the slow shell script. Don't cache a
3230 # value for INSTALL within a source directory, because that will
3231 # break other packages using the cache if that directory is
3232 # removed, or if the value is a relative name.
3233 INSTALL=$ac_install_sh
3234 fi
3235 fi
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3237 $as_echo "$INSTALL" >&6; }
3238
3239 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3240 # It thinks the first close brace ends the variable substitution.
3241 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3242
3243 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3244
3245 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3246
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3248 $as_echo_n "checking whether build environment is sane... " >&6; }
3249 # Just in case
3250 sleep 1
3251 echo timestamp > conftest.file
3252 # Reject unsafe characters in $srcdir or the absolute working directory
3253 # name. Accept space and tab only in the latter.
3254 am_lf='
3255 '
3256 case `pwd` in
3257 *[\\\"\#\$\&\'\`$am_lf]*)
3258 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3259 esac
3260 case $srcdir in
3261 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3262 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3263 esac
3264
3265 # Do `set' in a subshell so we don't clobber the current shell's
3266 # arguments. Must try -L first in case configure is actually a
3267 # symlink; some systems play weird games with the mod time of symlinks
3268 # (eg FreeBSD returns the mod time of the symlink's containing
3269 # directory).
3270 if (
3271 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3272 if test "$*" = "X"; then
3273 # -L didn't work.
3274 set X `ls -t "$srcdir/configure" conftest.file`
3275 fi
3276 rm -f conftest.file
3277 if test "$*" != "X $srcdir/configure conftest.file" \
3278 && test "$*" != "X conftest.file $srcdir/configure"; then
3279
3280 # If neither matched, then we have a broken ls. This can happen
3281 # if, for instance, CONFIG_SHELL is bash and it inherits a
3282 # broken ls alias from the environment. This has actually
3283 # happened. Such a system could not be considered "sane".
3284 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3285 alias in your environment" "$LINENO" 5
3286 fi
3287
3288 test "$2" = conftest.file
3289 )
3290 then
3291 # Ok.
3292 :
3293 else
3294 as_fn_error "newly created file is older than distributed files!
3295 Check your system clock" "$LINENO" 5
3296 fi
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298 $as_echo "yes" >&6; }
3299 test "$program_prefix" != NONE &&
3300 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3301 # Use a double $ so make ignores it.
3302 test "$program_suffix" != NONE &&
3303 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3304 # Double any \ or $.
3305 # By default was `s,x,x', remove it if useless.
3306 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3307 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3308
3309 # expand $ac_aux_dir to an absolute path
3310 am_aux_dir=`cd $ac_aux_dir && pwd`
3311
3312 if test x"${MISSING+set}" != xset; then
3313 case $am_aux_dir in
3314 *\ * | *\ *)
3315 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3316 *)
3317 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3318 esac
3319 fi
3320 # Use eval to expand $SHELL
3321 if eval "$MISSING --run true"; then
3322 am_missing_run="$MISSING --run "
3323 else
3324 am_missing_run=
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3326 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3327 fi
3328
3329 if test x"${install_sh}" != xset; then
3330 case $am_aux_dir in
3331 *\ * | *\ *)
3332 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3333 *)
3334 install_sh="\${SHELL} $am_aux_dir/install-sh"
3335 esac
3336 fi
3337
3338 # Installed binaries are usually stripped using `strip' when the user
3339 # run `make install-strip'. However `strip' might not be the right
3340 # tool to use in cross-compilation environments, therefore Automake
3341 # will honor the `STRIP' environment variable to overrule this program.
3342 if test "$cross_compiling" != no; then
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}strip; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if test "${ac_cv_prog_STRIP+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$STRIP"; then
3352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365 done
3366 done
3367 IFS=$as_save_IFS
3368
3369 fi
3370 fi
3371 STRIP=$ac_cv_prog_STRIP
3372 if test -n "$STRIP"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3374 $as_echo "$STRIP" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 fi
3379
3380
3381 fi
3382 if test -z "$ac_cv_prog_STRIP"; then
3383 ac_ct_STRIP=$STRIP
3384 # Extract the first word of "strip", so it can be a program name with args.
3385 set dummy strip; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3389 $as_echo_n "(cached) " >&6
3390 else
3391 if test -n "$ac_ct_STRIP"; then
3392 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_ac_ct_STRIP="strip"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3404 fi
3405 done
3406 done
3407 IFS=$as_save_IFS
3408
3409 fi
3410 fi
3411 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3412 if test -n "$ac_ct_STRIP"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3414 $as_echo "$ac_ct_STRIP" >&6; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 fi
3419
3420 if test "x$ac_ct_STRIP" = x; then
3421 STRIP=":"
3422 else
3423 case $cross_compiling:$ac_tool_warned in
3424 yes:)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427 ac_tool_warned=yes ;;
3428 esac
3429 STRIP=$ac_ct_STRIP
3430 fi
3431 else
3432 STRIP="$ac_cv_prog_STRIP"
3433 fi
3434
3435 fi
3436 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3437
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3439 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3440 if test -z "$MKDIR_P"; then
3441 if test "${ac_cv_path_mkdir+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3446 do
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_prog in mkdir gmkdir; do
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3452 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3453 'mkdir (GNU coreutils) '* | \
3454 'mkdir (coreutils) '* | \
3455 'mkdir (fileutils) '4.1*)
3456 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3457 break 3;;
3458 esac
3459 done
3460 done
3461 done
3462 IFS=$as_save_IFS
3463
3464 fi
3465
3466 if test "${ac_cv_path_mkdir+set}" = set; then
3467 MKDIR_P="$ac_cv_path_mkdir -p"
3468 else
3469 # As a last resort, use the slow shell script. Don't cache a
3470 # value for MKDIR_P within a source directory, because that will
3471 # break other packages using the cache if that directory is
3472 # removed, or if the value is a relative name.
3473 test -d ./--version && rmdir ./--version
3474 MKDIR_P="$ac_install_sh -d"
3475 fi
3476 fi
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3478 $as_echo "$MKDIR_P" >&6; }
3479
3480 mkdir_p="$MKDIR_P"
3481 case $mkdir_p in
3482 [\\/$]* | ?:[\\/]*) ;;
3483 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3484 esac
3485
3486 for ac_prog in gawk mawk nawk awk
3487 do
3488 # Extract the first word of "$ac_prog", so it can be a program name with args.
3489 set dummy $ac_prog; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if test "${ac_cv_prog_AWK+set}" = set; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 if test -n "$AWK"; then
3496 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 ac_cv_prog_AWK="$ac_prog"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509 done
3510 done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 AWK=$ac_cv_prog_AWK
3516 if test -n "$AWK"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3518 $as_echo "$AWK" >&6; }
3519 else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 fi
3523
3524
3525 test -n "$AWK" && break
3526 done
3527
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3529 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3530 set x ${MAKE-make}
3531 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3532 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 cat >conftest.make <<\_ACEOF
3536 SHELL = /bin/sh
3537 all:
3538 @echo '@@@%%%=$(MAKE)=@@@%%%'
3539 _ACEOF
3540 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3541 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3542 *@@@%%%=?*=@@@%%%*)
3543 eval ac_cv_prog_make_${ac_make}_set=yes;;
3544 *)
3545 eval ac_cv_prog_make_${ac_make}_set=no;;
3546 esac
3547 rm -f conftest.make
3548 fi
3549 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 $as_echo "yes" >&6; }
3552 SET_MAKE=
3553 else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556 SET_MAKE="MAKE=${MAKE-make}"
3557 fi
3558
3559 rm -rf .tst 2>/dev/null
3560 mkdir .tst 2>/dev/null
3561 if test -d .tst; then
3562 am__leading_dot=.
3563 else
3564 am__leading_dot=_
3565 fi
3566 rmdir .tst 2>/dev/null
3567
3568 DEPDIR="${am__leading_dot}deps"
3569
3570 ac_config_commands="$ac_config_commands depfiles"
3571
3572
3573 am_make=${MAKE-make}
3574 cat > confinc << 'END'
3575 am__doit:
3576 @echo this is the am__doit target
3577 .PHONY: am__doit
3578 END
3579 # If we don't find an include directive, just comment out the code.
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3581 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3582 am__include="#"
3583 am__quote=
3584 _am_result=none
3585 # First try GNU make style include.
3586 echo "include confinc" > confmf
3587 # Ignore all kinds of additional output from `make'.
3588 case `$am_make -s -f confmf 2> /dev/null` in #(
3589 *the\ am__doit\ target*)
3590 am__include=include
3591 am__quote=
3592 _am_result=GNU
3593 ;;
3594 esac
3595 # Now try BSD make style include.
3596 if test "$am__include" = "#"; then
3597 echo '.include "confinc"' > confmf
3598 case `$am_make -s -f confmf 2> /dev/null` in #(
3599 *the\ am__doit\ target*)
3600 am__include=.include
3601 am__quote="\""
3602 _am_result=BSD
3603 ;;
3604 esac
3605 fi
3606
3607
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3609 $as_echo "$_am_result" >&6; }
3610 rm -f confinc confmf
3611
3612 # Check whether --enable-dependency-tracking was given.
3613 if test "${enable_dependency_tracking+set}" = set; then :
3614 enableval=$enable_dependency_tracking;
3615 fi
3616
3617 if test "x$enable_dependency_tracking" != xno; then
3618 am_depcomp="$ac_aux_dir/depcomp"
3619 AMDEPBACKSLASH='\'
3620 fi
3621 if test "x$enable_dependency_tracking" != xno; then
3622 AMDEP_TRUE=
3623 AMDEP_FALSE='#'
3624 else
3625 AMDEP_TRUE='#'
3626 AMDEP_FALSE=
3627 fi
3628
3629
3630 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3631 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3632 # is not polluted with repeated "-I."
3633 am__isrc=' -I$(srcdir)'
3634 # test to see if srcdir already configured
3635 if test -f $srcdir/config.status; then
3636 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3637 fi
3638 fi
3639
3640 # test whether we have cygpath
3641 if test -z "$CYGPATH_W"; then
3642 if (cygpath --version) >/dev/null 2>/dev/null; then
3643 CYGPATH_W='cygpath -w'
3644 else
3645 CYGPATH_W=echo
3646 fi
3647 fi
3648
3649
3650 # Define the identity of the package.
3651 PACKAGE='gprof'
3652 VERSION='2.24.51'
3653
3654
3655 cat >>confdefs.h <<_ACEOF
3656 #define PACKAGE "$PACKAGE"
3657 _ACEOF
3658
3659
3660 cat >>confdefs.h <<_ACEOF
3661 #define VERSION "$VERSION"
3662 _ACEOF
3663
3664 # Some tools Automake needs.
3665
3666 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3667
3668
3669 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3670
3671
3672 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3673
3674
3675 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3676
3677
3678 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3679
3680 # We need awk for the "check" target. The system "awk" is bad on
3681 # some platforms.
3682 # Always define AMTAR for backward compatibility.
3683
3684 AMTAR=${AMTAR-"${am_missing_run}tar"}
3685
3686 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3687
3688
3689
3690
3691 depcc="$CC" am_compiler_list=
3692
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3694 $as_echo_n "checking dependency style of $depcc... " >&6; }
3695 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3699 # We make a subdir and do the tests there. Otherwise we can end up
3700 # making bogus files that we don't know about and never remove. For
3701 # instance it was reported that on HP-UX the gcc test will end up
3702 # making a dummy file named `D' -- because `-MD' means `put the output
3703 # in D'.
3704 mkdir conftest.dir
3705 # Copy depcomp to subdir because otherwise we won't find it if we're
3706 # using a relative directory.
3707 cp "$am_depcomp" conftest.dir
3708 cd conftest.dir
3709 # We will build objects and dependencies in a subdirectory because
3710 # it helps to detect inapplicable dependency modes. For instance
3711 # both Tru64's cc and ICC support -MD to output dependencies as a
3712 # side effect of compilation, but ICC will put the dependencies in
3713 # the current directory while Tru64 will put them in the object
3714 # directory.
3715 mkdir sub
3716
3717 am_cv_CC_dependencies_compiler_type=none
3718 if test "$am_compiler_list" = ""; then
3719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3720 fi
3721 am__universal=false
3722 case " $depcc " in #(
3723 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3724 esac
3725
3726 for depmode in $am_compiler_list; do
3727 # Setup a source with many dependencies, because some compilers
3728 # like to wrap large dependency lists on column 80 (with \), and
3729 # we should not choose a depcomp mode which is confused by this.
3730 #
3731 # We need to recreate these files for each test, as the compiler may
3732 # overwrite some of them when testing with obscure command lines.
3733 # This happens at least with the AIX C compiler.
3734 : > sub/conftest.c
3735 for i in 1 2 3 4 5 6; do
3736 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3737 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3738 # Solaris 8's {/usr,}/bin/sh.
3739 touch sub/conftst$i.h
3740 done
3741 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3742
3743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3744 # mode. It turns out that the SunPro C++ compiler does not properly
3745 # handle `-M -o', and we need to detect this. Also, some Intel
3746 # versions had trouble with output in subdirs
3747 am__obj=sub/conftest.${OBJEXT-o}
3748 am__minus_obj="-o $am__obj"
3749 case $depmode in
3750 gcc)
3751 # This depmode causes a compiler race in universal mode.
3752 test "$am__universal" = false || continue
3753 ;;
3754 nosideeffect)
3755 # after this tag, mechanisms are not by side-effect, so they'll
3756 # only be used when explicitly requested
3757 if test "x$enable_dependency_tracking" = xyes; then
3758 continue
3759 else
3760 break
3761 fi
3762 ;;
3763 msvisualcpp | msvcmsys)
3764 # This compiler won't grok `-c -o', but also, the minuso test has
3765 # not run yet. These depmodes are late enough in the game, and
3766 # so weak that their functioning should not be impacted.
3767 am__obj=conftest.${OBJEXT-o}
3768 am__minus_obj=
3769 ;;
3770 none) break ;;
3771 esac
3772 if depmode=$depmode \
3773 source=sub/conftest.c object=$am__obj \
3774 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3775 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3776 >/dev/null 2>conftest.err &&
3777 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3779 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3781 # icc doesn't choke on unknown options, it will just issue warnings
3782 # or remarks (even with -Werror). So we grep stderr for any message
3783 # that says an option was ignored or not supported.
3784 # When given -MP, icc 7.0 and 7.1 complain thusly:
3785 # icc: Command line warning: ignoring option '-M'; no argument required
3786 # The diagnosis changed in icc 8.0:
3787 # icc: Command line remark: option '-MP' not supported
3788 if (grep 'ignoring option' conftest.err ||
3789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3790 am_cv_CC_dependencies_compiler_type=$depmode
3791 break
3792 fi
3793 fi
3794 done
3795
3796 cd ..
3797 rm -rf conftest.dir
3798 else
3799 am_cv_CC_dependencies_compiler_type=none
3800 fi
3801
3802 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3804 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3805 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3806
3807 if
3808 test "x$enable_dependency_tracking" != xno \
3809 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3810 am__fastdepCC_TRUE=
3811 am__fastdepCC_FALSE='#'
3812 else
3813 am__fastdepCC_TRUE='#'
3814 am__fastdepCC_FALSE=
3815 fi
3816
3817
3818
3819
3820 ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
3821
3822
3823 ac_ext=c
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 if test -n "$ac_tool_prefix"; then
3829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3830 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if test "${ac_cv_prog_CC+set}" = set; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 if test -n "$CC"; then
3837 ac_cv_prog_CC="$CC" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3846 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 break 2
3849 fi
3850 done
3851 done
3852 IFS=$as_save_IFS
3853
3854 fi
3855 fi
3856 CC=$ac_cv_prog_CC
3857 if test -n "$CC"; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3859 $as_echo "$CC" >&6; }
3860 else
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 fi
3864
3865
3866 fi
3867 if test -z "$ac_cv_prog_CC"; then
3868 ac_ct_CC=$CC
3869 # Extract the first word of "gcc", so it can be a program name with args.
3870 set dummy gcc; ac_word=$2
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3875 else
3876 if test -n "$ac_ct_CC"; then
3877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3878 else
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3881 do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3886 ac_cv_prog_ac_ct_CC="gcc"
3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 break 2
3889 fi
3890 done
3891 done
3892 IFS=$as_save_IFS
3893
3894 fi
3895 fi
3896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3897 if test -n "$ac_ct_CC"; then
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3899 $as_echo "$ac_ct_CC" >&6; }
3900 else
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3903 fi
3904
3905 if test "x$ac_ct_CC" = x; then
3906 CC=""
3907 else
3908 case $cross_compiling:$ac_tool_warned in
3909 yes:)
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3912 ac_tool_warned=yes ;;
3913 esac
3914 CC=$ac_ct_CC
3915 fi
3916 else
3917 CC="$ac_cv_prog_CC"
3918 fi
3919
3920 if test -z "$CC"; then
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}cc; ac_word=$2
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925 $as_echo_n "checking for $ac_word... " >&6; }
3926 if test "${ac_cv_prog_CC+set}" = set; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 if test -n "$CC"; then
3930 ac_cv_prog_CC="$CC" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3939 ac_cv_prog_CC="${ac_tool_prefix}cc"
3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943 done
3944 done
3945 IFS=$as_save_IFS
3946
3947 fi
3948 fi
3949 CC=$ac_cv_prog_CC
3950 if test -n "$CC"; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3952 $as_echo "$CC" >&6; }
3953 else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955 $as_echo "no" >&6; }
3956 fi
3957
3958
3959 fi
3960 fi
3961 if test -z "$CC"; then
3962 # Extract the first word of "cc", so it can be a program name with args.
3963 set dummy cc; ac_word=$2
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 $as_echo_n "checking for $ac_word... " >&6; }
3966 if test "${ac_cv_prog_CC+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 if test -n "$CC"; then
3970 ac_cv_prog_CC="$CC" # Let the user override the test.
3971 else
3972 ac_prog_rejected=no
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3980 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3981 ac_prog_rejected=yes
3982 continue
3983 fi
3984 ac_cv_prog_CC="cc"
3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 break 2
3987 fi
3988 done
3989 done
3990 IFS=$as_save_IFS
3991
3992 if test $ac_prog_rejected = yes; then
3993 # We found a bogon in the path, so make sure we never use it.
3994 set dummy $ac_cv_prog_CC
3995 shift
3996 if test $# != 0; then
3997 # We chose a different compiler from the bogus one.
3998 # However, it has the same basename, so the bogon will be chosen
3999 # first if we set CC to just the basename; use the full file name.
4000 shift
4001 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4002 fi
4003 fi
4004 fi
4005 fi
4006 CC=$ac_cv_prog_CC
4007 if test -n "$CC"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4009 $as_echo "$CC" >&6; }
4010 else
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4013 fi
4014
4015
4016 fi
4017 if test -z "$CC"; then
4018 if test -n "$ac_tool_prefix"; then
4019 for ac_prog in cl.exe
4020 do
4021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024 $as_echo_n "checking for $ac_word... " >&6; }
4025 if test "${ac_cv_prog_CC+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 if test -n "$CC"; then
4029 ac_cv_prog_CC="$CC" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 break 2
4041 fi
4042 done
4043 done
4044 IFS=$as_save_IFS
4045
4046 fi
4047 fi
4048 CC=$ac_cv_prog_CC
4049 if test -n "$CC"; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4051 $as_echo "$CC" >&6; }
4052 else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4055 fi
4056
4057
4058 test -n "$CC" && break
4059 done
4060 fi
4061 if test -z "$CC"; then
4062 ac_ct_CC=$CC
4063 for ac_prog in cl.exe
4064 do
4065 # Extract the first word of "$ac_prog", so it can be a program name with args.
4066 set dummy $ac_prog; ac_word=$2
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 $as_echo_n "checking for $ac_word... " >&6; }
4069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 if test -n "$ac_ct_CC"; then
4073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4082 ac_cv_prog_ac_ct_CC="$ac_prog"
4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2
4085 fi
4086 done
4087 done
4088 IFS=$as_save_IFS
4089
4090 fi
4091 fi
4092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4093 if test -n "$ac_ct_CC"; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4095 $as_echo "$ac_ct_CC" >&6; }
4096 else
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4099 fi
4100
4101
4102 test -n "$ac_ct_CC" && break
4103 done
4104
4105 if test "x$ac_ct_CC" = x; then
4106 CC=""
4107 else
4108 case $cross_compiling:$ac_tool_warned in
4109 yes:)
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4112 ac_tool_warned=yes ;;
4113 esac
4114 CC=$ac_ct_CC
4115 fi
4116 fi
4117
4118 fi
4119
4120
4121 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4123 as_fn_error "no acceptable C compiler found in \$PATH
4124 See \`config.log' for more details." "$LINENO" 5; }
4125
4126 # Provide some information about the compiler.
4127 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4128 set X $ac_compile
4129 ac_compiler=$2
4130 for ac_option in --version -v -V -qversion; do
4131 { { ac_try="$ac_compiler $ac_option >&5"
4132 case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135 esac
4136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4137 $as_echo "$ac_try_echo"; } >&5
4138 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4139 ac_status=$?
4140 if test -s conftest.err; then
4141 sed '10a\
4142 ... rest of stderr output deleted ...
4143 10q' conftest.err >conftest.er1
4144 cat conftest.er1 >&5
4145 rm -f conftest.er1 conftest.err
4146 fi
4147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148 test $ac_status = 0; }
4149 done
4150
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4152 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4153 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158
4159 int
4160 main ()
4161 {
4162 #ifndef __GNUC__
4163 choke me
4164 #endif
4165
4166 ;
4167 return 0;
4168 }
4169 _ACEOF
4170 if ac_fn_c_try_compile "$LINENO"; then :
4171 ac_compiler_gnu=yes
4172 else
4173 ac_compiler_gnu=no
4174 fi
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4177
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4180 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4181 if test $ac_compiler_gnu = yes; then
4182 GCC=yes
4183 else
4184 GCC=
4185 fi
4186 ac_test_CFLAGS=${CFLAGS+set}
4187 ac_save_CFLAGS=$CFLAGS
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4189 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4190 if test "${ac_cv_prog_cc_g+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 ac_save_c_werror_flag=$ac_c_werror_flag
4194 ac_c_werror_flag=yes
4195 ac_cv_prog_cc_g=no
4196 CFLAGS="-g"
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199
4200 int
4201 main ()
4202 {
4203
4204 ;
4205 return 0;
4206 }
4207 _ACEOF
4208 if ac_fn_c_try_compile "$LINENO"; then :
4209 ac_cv_prog_cc_g=yes
4210 else
4211 CFLAGS=""
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214
4215 int
4216 main ()
4217 {
4218
4219 ;
4220 return 0;
4221 }
4222 _ACEOF
4223 if ac_fn_c_try_compile "$LINENO"; then :
4224
4225 else
4226 ac_c_werror_flag=$ac_save_c_werror_flag
4227 CFLAGS="-g"
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230
4231 int
4232 main ()
4233 {
4234
4235 ;
4236 return 0;
4237 }
4238 _ACEOF
4239 if ac_fn_c_try_compile "$LINENO"; then :
4240 ac_cv_prog_cc_g=yes
4241 fi
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 ac_c_werror_flag=$ac_save_c_werror_flag
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4250 $as_echo "$ac_cv_prog_cc_g" >&6; }
4251 if test "$ac_test_CFLAGS" = set; then
4252 CFLAGS=$ac_save_CFLAGS
4253 elif test $ac_cv_prog_cc_g = yes; then
4254 if test "$GCC" = yes; then
4255 CFLAGS="-g -O2"
4256 else
4257 CFLAGS="-g"
4258 fi
4259 else
4260 if test "$GCC" = yes; then
4261 CFLAGS="-O2"
4262 else
4263 CFLAGS=
4264 fi
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4267 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4268 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 ac_cv_prog_cc_c89=no
4272 ac_save_CC=$CC
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275 #include <stdarg.h>
4276 #include <stdio.h>
4277 #include <sys/types.h>
4278 #include <sys/stat.h>
4279 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4280 struct buf { int x; };
4281 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4282 static char *e (p, i)
4283 char **p;
4284 int i;
4285 {
4286 return p[i];
4287 }
4288 static char *f (char * (*g) (char **, int), char **p, ...)
4289 {
4290 char *s;
4291 va_list v;
4292 va_start (v,p);
4293 s = g (p, va_arg (v,int));
4294 va_end (v);
4295 return s;
4296 }
4297
4298 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4299 function prototypes and stuff, but not '\xHH' hex character constants.
4300 These don't provoke an error unfortunately, instead are silently treated
4301 as 'x'. The following induces an error, until -std is added to get
4302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4303 array size at least. It's necessary to write '\x00'==0 to get something
4304 that's true only with -std. */
4305 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4306
4307 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4308 inside strings and character constants. */
4309 #define FOO(x) 'x'
4310 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4311
4312 int test (int i, double x);
4313 struct s1 {int (*f) (int a);};
4314 struct s2 {int (*f) (double a);};
4315 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4316 int argc;
4317 char **argv;
4318 int
4319 main ()
4320 {
4321 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4322 ;
4323 return 0;
4324 }
4325 _ACEOF
4326 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4328 do
4329 CC="$ac_save_CC $ac_arg"
4330 if ac_fn_c_try_compile "$LINENO"; then :
4331 ac_cv_prog_cc_c89=$ac_arg
4332 fi
4333 rm -f core conftest.err conftest.$ac_objext
4334 test "x$ac_cv_prog_cc_c89" != "xno" && break
4335 done
4336 rm -f conftest.$ac_ext
4337 CC=$ac_save_CC
4338
4339 fi
4340 # AC_CACHE_VAL
4341 case "x$ac_cv_prog_cc_c89" in
4342 x)
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4344 $as_echo "none needed" >&6; } ;;
4345 xno)
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4347 $as_echo "unsupported" >&6; } ;;
4348 *)
4349 CC="$CC $ac_cv_prog_cc_c89"
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4351 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4352 esac
4353 if test "x$ac_cv_prog_cc_c89" != xno; then :
4354
4355 fi
4356
4357 ac_ext=c
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362
4363 ac_ext=c
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4369 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4370 # On Suns, sometimes $CPP names a directory.
4371 if test -n "$CPP" && test -d "$CPP"; then
4372 CPP=
4373 fi
4374 if test -z "$CPP"; then
4375 if test "${ac_cv_prog_CPP+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 # Double quotes because CPP needs to be expanded
4379 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4380 do
4381 ac_preproc_ok=false
4382 for ac_c_preproc_warn_flag in '' yes
4383 do
4384 # Use a header file that comes with gcc, so configuring glibc
4385 # with a fresh cross-compiler works.
4386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4387 # <limits.h> exists even on freestanding compilers.
4388 # On the NeXT, cc -E runs the code through the compiler's parser,
4389 # not just through cpp. "Syntax error" is here to catch this case.
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392 #ifdef __STDC__
4393 # include <limits.h>
4394 #else
4395 # include <assert.h>
4396 #endif
4397 Syntax error
4398 _ACEOF
4399 if ac_fn_c_try_cpp "$LINENO"; then :
4400
4401 else
4402 # Broken: fails on valid input.
4403 continue
4404 fi
4405 rm -f conftest.err conftest.$ac_ext
4406
4407 # OK, works on sane cases. Now check whether nonexistent headers
4408 # can be detected and how.
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #include <ac_nonexistent.h>
4412 _ACEOF
4413 if ac_fn_c_try_cpp "$LINENO"; then :
4414 # Broken: success on invalid input.
4415 continue
4416 else
4417 # Passes both tests.
4418 ac_preproc_ok=:
4419 break
4420 fi
4421 rm -f conftest.err conftest.$ac_ext
4422
4423 done
4424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4425 rm -f conftest.err conftest.$ac_ext
4426 if $ac_preproc_ok; then :
4427 break
4428 fi
4429
4430 done
4431 ac_cv_prog_CPP=$CPP
4432
4433 fi
4434 CPP=$ac_cv_prog_CPP
4435 else
4436 ac_cv_prog_CPP=$CPP
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4439 $as_echo "$CPP" >&6; }
4440 ac_preproc_ok=false
4441 for ac_c_preproc_warn_flag in '' yes
4442 do
4443 # Use a header file that comes with gcc, so configuring glibc
4444 # with a fresh cross-compiler works.
4445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4446 # <limits.h> exists even on freestanding compilers.
4447 # On the NeXT, cc -E runs the code through the compiler's parser,
4448 # not just through cpp. "Syntax error" is here to catch this case.
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451 #ifdef __STDC__
4452 # include <limits.h>
4453 #else
4454 # include <assert.h>
4455 #endif
4456 Syntax error
4457 _ACEOF
4458 if ac_fn_c_try_cpp "$LINENO"; then :
4459
4460 else
4461 # Broken: fails on valid input.
4462 continue
4463 fi
4464 rm -f conftest.err conftest.$ac_ext
4465
4466 # OK, works on sane cases. Now check whether nonexistent headers
4467 # can be detected and how.
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <ac_nonexistent.h>
4471 _ACEOF
4472 if ac_fn_c_try_cpp "$LINENO"; then :
4473 # Broken: success on invalid input.
4474 continue
4475 else
4476 # Passes both tests.
4477 ac_preproc_ok=:
4478 break
4479 fi
4480 rm -f conftest.err conftest.$ac_ext
4481
4482 done
4483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4484 rm -f conftest.err conftest.$ac_ext
4485 if $ac_preproc_ok; then :
4486
4487 else
4488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4490 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4491 See \`config.log' for more details." "$LINENO" 5; }
4492 fi
4493
4494 ac_ext=c
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499
4500
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4502 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4503 if test "${ac_cv_path_GREP+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 if test -z "$GREP"; then
4507 ac_path_GREP_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4511 do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in grep ggrep; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4517 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4518 # Check for GNU ac_path_GREP and select it if it is found.
4519 # Check for GNU $ac_path_GREP
4520 case `"$ac_path_GREP" --version 2>&1` in
4521 *GNU*)
4522 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4523 *)
4524 ac_count=0
4525 $as_echo_n 0123456789 >"conftest.in"
4526 while :
4527 do
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo 'GREP' >> "conftest.nl"
4532 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_GREP="$ac_path_GREP"
4538 ac_path_GREP_max=$ac_count
4539 fi
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 esac
4545
4546 $ac_path_GREP_found && break 3
4547 done
4548 done
4549 done
4550 IFS=$as_save_IFS
4551 if test -z "$ac_cv_path_GREP"; then
4552 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4553 fi
4554 else
4555 ac_cv_path_GREP=$GREP
4556 fi
4557
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4560 $as_echo "$ac_cv_path_GREP" >&6; }
4561 GREP="$ac_cv_path_GREP"
4562
4563
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4565 $as_echo_n "checking for egrep... " >&6; }
4566 if test "${ac_cv_path_EGREP+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4570 then ac_cv_path_EGREP="$GREP -E"
4571 else
4572 if test -z "$EGREP"; then
4573 ac_path_EGREP_found=false
4574 # Loop through the user's path and test for each of PROGNAME-LIST
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4577 do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_prog in egrep; do
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4583 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4584 # Check for GNU ac_path_EGREP and select it if it is found.
4585 # Check for GNU $ac_path_EGREP
4586 case `"$ac_path_EGREP" --version 2>&1` in
4587 *GNU*)
4588 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4589 *)
4590 ac_count=0
4591 $as_echo_n 0123456789 >"conftest.in"
4592 while :
4593 do
4594 cat "conftest.in" "conftest.in" >"conftest.tmp"
4595 mv "conftest.tmp" "conftest.in"
4596 cp "conftest.in" "conftest.nl"
4597 $as_echo 'EGREP' >> "conftest.nl"
4598 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4600 as_fn_arith $ac_count + 1 && ac_count=$as_val
4601 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4602 # Best one so far, save it but keep looking for a better one
4603 ac_cv_path_EGREP="$ac_path_EGREP"
4604 ac_path_EGREP_max=$ac_count
4605 fi
4606 # 10*(2^10) chars as input seems more than enough
4607 test $ac_count -gt 10 && break
4608 done
4609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610 esac
4611
4612 $ac_path_EGREP_found && break 3
4613 done
4614 done
4615 done
4616 IFS=$as_save_IFS
4617 if test -z "$ac_cv_path_EGREP"; then
4618 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4619 fi
4620 else
4621 ac_cv_path_EGREP=$EGREP
4622 fi
4623
4624 fi
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4627 $as_echo "$ac_cv_path_EGREP" >&6; }
4628 EGREP="$ac_cv_path_EGREP"
4629
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4632 $as_echo_n "checking for ANSI C header files... " >&6; }
4633 if test "${ac_cv_header_stdc+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638 #include <stdlib.h>
4639 #include <stdarg.h>
4640 #include <string.h>
4641 #include <float.h>
4642
4643 int
4644 main ()
4645 {
4646
4647 ;
4648 return 0;
4649 }
4650 _ACEOF
4651 if ac_fn_c_try_compile "$LINENO"; then :
4652 ac_cv_header_stdc=yes
4653 else
4654 ac_cv_header_stdc=no
4655 fi
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657
4658 if test $ac_cv_header_stdc = yes; then
4659 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 #include <string.h>
4663
4664 _ACEOF
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666 $EGREP "memchr" >/dev/null 2>&1; then :
4667
4668 else
4669 ac_cv_header_stdc=no
4670 fi
4671 rm -f conftest*
4672
4673 fi
4674
4675 if test $ac_cv_header_stdc = yes; then
4676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679 #include <stdlib.h>
4680
4681 _ACEOF
4682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4683 $EGREP "free" >/dev/null 2>&1; then :
4684
4685 else
4686 ac_cv_header_stdc=no
4687 fi
4688 rm -f conftest*
4689
4690 fi
4691
4692 if test $ac_cv_header_stdc = yes; then
4693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4694 if test "$cross_compiling" = yes; then :
4695 :
4696 else
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 #include <ctype.h>
4700 #include <stdlib.h>
4701 #if ((' ' & 0x0FF) == 0x020)
4702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4704 #else
4705 # define ISLOWER(c) \
4706 (('a' <= (c) && (c) <= 'i') \
4707 || ('j' <= (c) && (c) <= 'r') \
4708 || ('s' <= (c) && (c) <= 'z'))
4709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4710 #endif
4711
4712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4713 int
4714 main ()
4715 {
4716 int i;
4717 for (i = 0; i < 256; i++)
4718 if (XOR (islower (i), ISLOWER (i))
4719 || toupper (i) != TOUPPER (i))
4720 return 2;
4721 return 0;
4722 }
4723 _ACEOF
4724 if ac_fn_c_try_run "$LINENO"; then :
4725
4726 else
4727 ac_cv_header_stdc=no
4728 fi
4729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4730 conftest.$ac_objext conftest.beam conftest.$ac_ext
4731 fi
4732
4733 fi
4734 fi
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4736 $as_echo "$ac_cv_header_stdc" >&6; }
4737 if test $ac_cv_header_stdc = yes; then
4738
4739 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4740
4741 fi
4742
4743 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4744 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4745 inttypes.h stdint.h unistd.h
4746 do :
4747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4748 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4749 "
4750 eval as_val=\$$as_ac_Header
4751 if test "x$as_val" = x""yes; then :
4752 cat >>confdefs.h <<_ACEOF
4753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4754 _ACEOF
4755
4756 fi
4757
4758 done
4759
4760
4761
4762 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4763 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4764 MINIX=yes
4765 else
4766 MINIX=
4767 fi
4768
4769
4770 if test "$MINIX" = yes; then
4771
4772 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4773
4774
4775 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4776
4777
4778 $as_echo "#define _MINIX 1" >>confdefs.h
4779
4780 fi
4781
4782
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4784 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4785 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790
4791 # define __EXTENSIONS__ 1
4792 $ac_includes_default
4793 int
4794 main ()
4795 {
4796
4797 ;
4798 return 0;
4799 }
4800 _ACEOF
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 ac_cv_safe_to_define___extensions__=yes
4803 else
4804 ac_cv_safe_to_define___extensions__=no
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4809 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4810 test $ac_cv_safe_to_define___extensions__ = yes &&
4811 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4812
4813 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4814
4815 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4816
4817 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4818
4819 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4820
4821
4822
4823
4824
4825 # The tests for host and target for $enable_largefile require
4826 # canonical names.
4827
4828
4829
4830 # As the $enable_largefile decision depends on --enable-plugins we must set it
4831 # even in directories otherwise not depending on the $plugins option.
4832
4833
4834 # Check whether --enable-plugins was given.
4835 if test "${enable_plugins+set}" = set; then :
4836 enableval=$enable_plugins; case "${enableval}" in
4837 yes | "") plugins=yes ;;
4838 no) plugins=no ;;
4839 *) plugins=yes ;;
4840 esac
4841 else
4842 plugins=no
4843 fi
4844
4845
4846
4847 case "${host}" in
4848 sparc-*-solaris*|i[3-7]86-*-solaris*)
4849 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4850 # are mutually exclusive; and without procfs support, the bfd/ elf module
4851 # cannot provide certain routines such as elfcore_write_prpsinfo
4852 # or elfcore_write_prstatus. So unless the user explicitly requested
4853 # large-file support through the --enable-largefile switch, disable
4854 # large-file support in favor of procfs support.
4855 test "${target}" = "${host}" -a "x$plugins" = xno \
4856 && : ${enable_largefile="no"}
4857 ;;
4858 esac
4859
4860 # Check whether --enable-largefile was given.
4861 if test "${enable_largefile+set}" = set; then :
4862 enableval=$enable_largefile;
4863 fi
4864
4865 if test "$enable_largefile" != no; then
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4868 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4869 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 ac_cv_sys_largefile_CC=no
4873 if test "$GCC" != yes; then
4874 ac_save_CC=$CC
4875 while :; do
4876 # IRIX 6.2 and later do not support large files by default,
4877 # so use the C compiler's -n32 option if that helps.
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 #include <sys/types.h>
4881 /* Check that off_t can represent 2**63 - 1 correctly.
4882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4883 since some C++ compilers masquerading as C compilers
4884 incorrectly reject 9223372036854775807. */
4885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4887 && LARGE_OFF_T % 2147483647 == 1)
4888 ? 1 : -1];
4889 int
4890 main ()
4891 {
4892
4893 ;
4894 return 0;
4895 }
4896 _ACEOF
4897 if ac_fn_c_try_compile "$LINENO"; then :
4898 break
4899 fi
4900 rm -f core conftest.err conftest.$ac_objext
4901 CC="$CC -n32"
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_cv_sys_largefile_CC=' -n32'; break
4904 fi
4905 rm -f core conftest.err conftest.$ac_objext
4906 break
4907 done
4908 CC=$ac_save_CC
4909 rm -f conftest.$ac_ext
4910 fi
4911 fi
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4913 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4914 if test "$ac_cv_sys_largefile_CC" != no; then
4915 CC=$CC$ac_cv_sys_largefile_CC
4916 fi
4917
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4919 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4920 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 while :; do
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #include <sys/types.h>
4927 /* Check that off_t can represent 2**63 - 1 correctly.
4928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4929 since some C++ compilers masquerading as C compilers
4930 incorrectly reject 9223372036854775807. */
4931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4933 && LARGE_OFF_T % 2147483647 == 1)
4934 ? 1 : -1];
4935 int
4936 main ()
4937 {
4938
4939 ;
4940 return 0;
4941 }
4942 _ACEOF
4943 if ac_fn_c_try_compile "$LINENO"; then :
4944 ac_cv_sys_file_offset_bits=no; break
4945 fi
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4949 #define _FILE_OFFSET_BITS 64
4950 #include <sys/types.h>
4951 /* Check that off_t can represent 2**63 - 1 correctly.
4952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4953 since some C++ compilers masquerading as C compilers
4954 incorrectly reject 9223372036854775807. */
4955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4957 && LARGE_OFF_T % 2147483647 == 1)
4958 ? 1 : -1];
4959 int
4960 main ()
4961 {
4962
4963 ;
4964 return 0;
4965 }
4966 _ACEOF
4967 if ac_fn_c_try_compile "$LINENO"; then :
4968 ac_cv_sys_file_offset_bits=64; break
4969 fi
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 ac_cv_sys_file_offset_bits=unknown
4972 break
4973 done
4974 fi
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4976 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4977 case $ac_cv_sys_file_offset_bits in #(
4978 no | unknown) ;;
4979 *)
4980 cat >>confdefs.h <<_ACEOF
4981 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4982 _ACEOF
4983 ;;
4984 esac
4985 rm -rf conftest*
4986 if test $ac_cv_sys_file_offset_bits = unknown; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4988 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4989 if test "${ac_cv_sys_large_files+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 while :; do
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995 #include <sys/types.h>
4996 /* Check that off_t can represent 2**63 - 1 correctly.
4997 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4998 since some C++ compilers masquerading as C compilers
4999 incorrectly reject 9223372036854775807. */
5000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5002 && LARGE_OFF_T % 2147483647 == 1)
5003 ? 1 : -1];
5004 int
5005 main ()
5006 {
5007
5008 ;
5009 return 0;
5010 }
5011 _ACEOF
5012 if ac_fn_c_try_compile "$LINENO"; then :
5013 ac_cv_sys_large_files=no; break
5014 fi
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018 #define _LARGE_FILES 1
5019 #include <sys/types.h>
5020 /* Check that off_t can represent 2**63 - 1 correctly.
5021 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5022 since some C++ compilers masquerading as C compilers
5023 incorrectly reject 9223372036854775807. */
5024 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5026 && LARGE_OFF_T % 2147483647 == 1)
5027 ? 1 : -1];
5028 int
5029 main ()
5030 {
5031
5032 ;
5033 return 0;
5034 }
5035 _ACEOF
5036 if ac_fn_c_try_compile "$LINENO"; then :
5037 ac_cv_sys_large_files=1; break
5038 fi
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040 ac_cv_sys_large_files=unknown
5041 break
5042 done
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5045 $as_echo "$ac_cv_sys_large_files" >&6; }
5046 case $ac_cv_sys_large_files in #(
5047 no | unknown) ;;
5048 *)
5049 cat >>confdefs.h <<_ACEOF
5050 #define _LARGE_FILES $ac_cv_sys_large_files
5051 _ACEOF
5052 ;;
5053 esac
5054 rm -rf conftest*
5055 fi
5056 fi
5057
5058
5059
5060
5061 case `pwd` in
5062 *\ * | *\ *)
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5064 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5065 esac
5066
5067
5068
5069 macro_version='2.2.7a'
5070 macro_revision='1.3134'
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084 ltmain="$ac_aux_dir/ltmain.sh"
5085
5086 # Backslashify metacharacters that are still active within
5087 # double-quoted strings.
5088 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5089
5090 # Same as above, but do not quote variable references.
5091 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5092
5093 # Sed substitution to delay expansion of an escaped shell variable in a
5094 # double_quote_subst'ed string.
5095 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5096
5097 # Sed substitution to delay expansion of an escaped single quote.
5098 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5099
5100 # Sed substitution to avoid accidental globbing in evaled expressions
5101 no_glob_subst='s/\*/\\\*/g'
5102
5103 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5104 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5105 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5106
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5108 $as_echo_n "checking how to print strings... " >&6; }
5109 # Test print first, because it will be a builtin if present.
5110 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5111 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5112 ECHO='print -r --'
5113 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5114 ECHO='printf %s\n'
5115 else
5116 # Use this function as a fallback that always works.
5117 func_fallback_echo ()
5118 {
5119 eval 'cat <<_LTECHO_EOF
5120 $1
5121 _LTECHO_EOF'
5122 }
5123 ECHO='func_fallback_echo'
5124 fi
5125
5126 # func_echo_all arg...
5127 # Invoke $ECHO with all args, space-separated.
5128 func_echo_all ()
5129 {
5130 $ECHO ""
5131 }
5132
5133 case "$ECHO" in
5134 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5135 $as_echo "printf" >&6; } ;;
5136 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5137 $as_echo "print -r" >&6; } ;;
5138 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5139 $as_echo "cat" >&6; } ;;
5140 esac
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5156 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5157 if test "${ac_cv_path_SED+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5161 for ac_i in 1 2 3 4 5 6 7; do
5162 ac_script="$ac_script$as_nl$ac_script"
5163 done
5164 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5165 { ac_script=; unset ac_script;}
5166 if test -z "$SED"; then
5167 ac_path_SED_found=false
5168 # Loop through the user's path and test for each of PROGNAME-LIST
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_prog in sed gsed; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5177 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5178 # Check for GNU ac_path_SED and select it if it is found.
5179 # Check for GNU $ac_path_SED
5180 case `"$ac_path_SED" --version 2>&1` in
5181 *GNU*)
5182 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5183 *)
5184 ac_count=0
5185 $as_echo_n 0123456789 >"conftest.in"
5186 while :
5187 do
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 $as_echo '' >> "conftest.nl"
5192 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 as_fn_arith $ac_count + 1 && ac_count=$as_val
5195 if test $ac_count -gt ${ac_path_SED_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_SED="$ac_path_SED"
5198 ac_path_SED_max=$ac_count
5199 fi
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5202 done
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204 esac
5205
5206 $ac_path_SED_found && break 3
5207 done
5208 done
5209 done
5210 IFS=$as_save_IFS
5211 if test -z "$ac_cv_path_SED"; then
5212 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5213 fi
5214 else
5215 ac_cv_path_SED=$SED
5216 fi
5217
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5220 $as_echo "$ac_cv_path_SED" >&6; }
5221 SED="$ac_cv_path_SED"
5222 rm -f conftest.sed
5223
5224 test -z "$SED" && SED=sed
5225 Xsed="$SED -e 1s/^X//"
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5238 $as_echo_n "checking for fgrep... " >&6; }
5239 if test "${ac_cv_path_FGREP+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5243 then ac_cv_path_FGREP="$GREP -F"
5244 else
5245 if test -z "$FGREP"; then
5246 ac_path_FGREP_found=false
5247 # Loop through the user's path and test for each of PROGNAME-LIST
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5250 do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_prog in fgrep; do
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5256 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5257 # Check for GNU ac_path_FGREP and select it if it is found.
5258 # Check for GNU $ac_path_FGREP
5259 case `"$ac_path_FGREP" --version 2>&1` in
5260 *GNU*)
5261 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5262 *)
5263 ac_count=0
5264 $as_echo_n 0123456789 >"conftest.in"
5265 while :
5266 do
5267 cat "conftest.in" "conftest.in" >"conftest.tmp"
5268 mv "conftest.tmp" "conftest.in"
5269 cp "conftest.in" "conftest.nl"
5270 $as_echo 'FGREP' >> "conftest.nl"
5271 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5273 as_fn_arith $ac_count + 1 && ac_count=$as_val
5274 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5275 # Best one so far, save it but keep looking for a better one
5276 ac_cv_path_FGREP="$ac_path_FGREP"
5277 ac_path_FGREP_max=$ac_count
5278 fi
5279 # 10*(2^10) chars as input seems more than enough
5280 test $ac_count -gt 10 && break
5281 done
5282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5283 esac
5284
5285 $ac_path_FGREP_found && break 3
5286 done
5287 done
5288 done
5289 IFS=$as_save_IFS
5290 if test -z "$ac_cv_path_FGREP"; then
5291 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5292 fi
5293 else
5294 ac_cv_path_FGREP=$FGREP
5295 fi
5296
5297 fi
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5300 $as_echo "$ac_cv_path_FGREP" >&6; }
5301 FGREP="$ac_cv_path_FGREP"
5302
5303
5304 test -z "$GREP" && GREP=grep
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324 # Check whether --with-gnu-ld was given.
5325 if test "${with_gnu_ld+set}" = set; then :
5326 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5327 else
5328 with_gnu_ld=no
5329 fi
5330
5331 ac_prog=ld
5332 if test "$GCC" = yes; then
5333 # Check if gcc -print-prog-name=ld gives a path.
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5335 $as_echo_n "checking for ld used by $CC... " >&6; }
5336 case $host in
5337 *-*-mingw*)
5338 # gcc leaves a trailing carriage return which upsets mingw
5339 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5340 *)
5341 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5342 esac
5343 case $ac_prog in
5344 # Accept absolute paths.
5345 [\\/]* | ?:[\\/]*)
5346 re_direlt='/[^/][^/]*/\.\./'
5347 # Canonicalize the pathname of ld
5348 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5349 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5350 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5351 done
5352 test -z "$LD" && LD="$ac_prog"
5353 ;;
5354 "")
5355 # If it fails, then pretend we aren't using GCC.
5356 ac_prog=ld
5357 ;;
5358 *)
5359 # If it is relative, then search for the first ld in PATH.
5360 with_gnu_ld=unknown
5361 ;;
5362 esac
5363 elif test "$with_gnu_ld" = yes; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5365 $as_echo_n "checking for GNU ld... " >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5368 $as_echo_n "checking for non-GNU ld... " >&6; }
5369 fi
5370 if test "${lt_cv_path_LD+set}" = set; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if test -z "$LD"; then
5374 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5375 for ac_dir in $PATH; do
5376 IFS="$lt_save_ifs"
5377 test -z "$ac_dir" && ac_dir=.
5378 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5379 lt_cv_path_LD="$ac_dir/$ac_prog"
5380 # Check to see if the program is GNU ld. I'd rather use --version,
5381 # but apparently some variants of GNU ld only accept -v.
5382 # Break only if it was the GNU/non-GNU ld that we prefer.
5383 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5384 *GNU* | *'with BFD'*)
5385 test "$with_gnu_ld" != no && break
5386 ;;
5387 *)
5388 test "$with_gnu_ld" != yes && break
5389 ;;
5390 esac
5391 fi
5392 done
5393 IFS="$lt_save_ifs"
5394 else
5395 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5396 fi
5397 fi
5398
5399 LD="$lt_cv_path_LD"
5400 if test -n "$LD"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5402 $as_echo "$LD" >&6; }
5403 else
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5409 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5410 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5414 case `$LD -v 2>&1 </dev/null` in
5415 *GNU* | *'with BFD'*)
5416 lt_cv_prog_gnu_ld=yes
5417 ;;
5418 *)
5419 lt_cv_prog_gnu_ld=no
5420 ;;
5421 esac
5422 fi
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5424 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5425 with_gnu_ld=$lt_cv_prog_gnu_ld
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5436 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5437 if test "${lt_cv_path_NM+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 if test -n "$NM"; then
5441 # Let the user override the test.
5442 lt_cv_path_NM="$NM"
5443 else
5444 lt_nm_to_check="${ac_tool_prefix}nm"
5445 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5446 lt_nm_to_check="$lt_nm_to_check nm"
5447 fi
5448 for lt_tmp_nm in $lt_nm_to_check; do
5449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5450 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5451 IFS="$lt_save_ifs"
5452 test -z "$ac_dir" && ac_dir=.
5453 tmp_nm="$ac_dir/$lt_tmp_nm"
5454 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5455 # Check to see if the nm accepts a BSD-compat flag.
5456 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5457 # nm: unknown option "B" ignored
5458 # Tru64's nm complains that /dev/null is an invalid object file
5459 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5460 */dev/null* | *'Invalid file or object type'*)
5461 lt_cv_path_NM="$tmp_nm -B"
5462 break
5463 ;;
5464 *)
5465 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5466 */dev/null*)
5467 lt_cv_path_NM="$tmp_nm -p"
5468 break
5469 ;;
5470 *)
5471 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5472 continue # so that we can try to find one that supports BSD flags
5473 ;;
5474 esac
5475 ;;
5476 esac
5477 fi
5478 done
5479 IFS="$lt_save_ifs"
5480 done
5481 : ${lt_cv_path_NM=no}
5482 fi
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5485 $as_echo "$lt_cv_path_NM" >&6; }
5486 if test "$lt_cv_path_NM" != "no"; then
5487 NM="$lt_cv_path_NM"
5488 else
5489 # Didn't find any BSD compatible name lister, look for dumpbin.
5490 if test -n "$DUMPBIN"; then :
5491 # Let the user override the test.
5492 else
5493 if test -n "$ac_tool_prefix"; then
5494 for ac_prog in dumpbin "link -dump"
5495 do
5496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -n "$DUMPBIN"; then
5504 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517 done
5518 done
5519 IFS=$as_save_IFS
5520
5521 fi
5522 fi
5523 DUMPBIN=$ac_cv_prog_DUMPBIN
5524 if test -n "$DUMPBIN"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5526 $as_echo "$DUMPBIN" >&6; }
5527 else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5530 fi
5531
5532
5533 test -n "$DUMPBIN" && break
5534 done
5535 fi
5536 if test -z "$DUMPBIN"; then
5537 ac_ct_DUMPBIN=$DUMPBIN
5538 for ac_prog in dumpbin "link -dump"
5539 do
5540 # Extract the first word of "$ac_prog", so it can be a program name with args.
5541 set dummy $ac_prog; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 if test -n "$ac_ct_DUMPBIN"; then
5548 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 break 2
5560 fi
5561 done
5562 done
5563 IFS=$as_save_IFS
5564
5565 fi
5566 fi
5567 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5568 if test -n "$ac_ct_DUMPBIN"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5570 $as_echo "$ac_ct_DUMPBIN" >&6; }
5571 else
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5574 fi
5575
5576
5577 test -n "$ac_ct_DUMPBIN" && break
5578 done
5579
5580 if test "x$ac_ct_DUMPBIN" = x; then
5581 DUMPBIN=":"
5582 else
5583 case $cross_compiling:$ac_tool_warned in
5584 yes:)
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587 ac_tool_warned=yes ;;
5588 esac
5589 DUMPBIN=$ac_ct_DUMPBIN
5590 fi
5591 fi
5592
5593 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5594 *COFF*)
5595 DUMPBIN="$DUMPBIN -symbols"
5596 ;;
5597 *)
5598 DUMPBIN=:
5599 ;;
5600 esac
5601 fi
5602
5603 if test "$DUMPBIN" != ":"; then
5604 NM="$DUMPBIN"
5605 fi
5606 fi
5607 test -z "$NM" && NM=nm
5608
5609
5610
5611
5612
5613
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5615 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5616 if test "${lt_cv_nm_interface+set}" = set; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 lt_cv_nm_interface="BSD nm"
5620 echo "int some_variable = 0;" > conftest.$ac_ext
5621 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5622 (eval "$ac_compile" 2>conftest.err)
5623 cat conftest.err >&5
5624 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5625 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5626 cat conftest.err >&5
5627 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5628 cat conftest.out >&5
5629 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5630 lt_cv_nm_interface="MS dumpbin"
5631 fi
5632 rm -f conftest*
5633 fi
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5635 $as_echo "$lt_cv_nm_interface" >&6; }
5636
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5638 $as_echo_n "checking whether ln -s works... " >&6; }
5639 LN_S=$as_ln_s
5640 if test "$LN_S" = "ln -s"; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5642 $as_echo "yes" >&6; }
5643 else
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5645 $as_echo "no, using $LN_S" >&6; }
5646 fi
5647
5648 # find the maximum length of command line arguments
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5650 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5651 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 i=0
5655 teststring="ABCD"
5656
5657 case $build_os in
5658 msdosdjgpp*)
5659 # On DJGPP, this test can blow up pretty badly due to problems in libc
5660 # (any single argument exceeding 2000 bytes causes a buffer overrun
5661 # during glob expansion). Even if it were fixed, the result of this
5662 # check would be larger than it should be.
5663 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5664 ;;
5665
5666 gnu*)
5667 # Under GNU Hurd, this test is not required because there is
5668 # no limit to the length of command line arguments.
5669 # Libtool will interpret -1 as no limit whatsoever
5670 lt_cv_sys_max_cmd_len=-1;
5671 ;;
5672
5673 cygwin* | mingw* | cegcc*)
5674 # On Win9x/ME, this test blows up -- it succeeds, but takes
5675 # about 5 minutes as the teststring grows exponentially.
5676 # Worse, since 9x/ME are not pre-emptively multitasking,
5677 # you end up with a "frozen" computer, even though with patience
5678 # the test eventually succeeds (with a max line length of 256k).
5679 # Instead, let's just punt: use the minimum linelength reported by
5680 # all of the supported platforms: 8192 (on NT/2K/XP).
5681 lt_cv_sys_max_cmd_len=8192;
5682 ;;
5683
5684 mint*)
5685 # On MiNT this can take a long time and run out of memory.
5686 lt_cv_sys_max_cmd_len=8192;
5687 ;;
5688
5689 amigaos*)
5690 # On AmigaOS with pdksh, this test takes hours, literally.
5691 # So we just punt and use a minimum line length of 8192.
5692 lt_cv_sys_max_cmd_len=8192;
5693 ;;
5694
5695 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5696 # This has been around since 386BSD, at least. Likely further.
5697 if test -x /sbin/sysctl; then
5698 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5699 elif test -x /usr/sbin/sysctl; then
5700 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5701 else
5702 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5703 fi
5704 # And add a safety zone
5705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5707 ;;
5708
5709 interix*)
5710 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5711 lt_cv_sys_max_cmd_len=196608
5712 ;;
5713
5714 osf*)
5715 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5716 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5717 # nice to cause kernel panics so lets avoid the loop below.
5718 # First set a reasonable default.
5719 lt_cv_sys_max_cmd_len=16384
5720 #
5721 if test -x /sbin/sysconfig; then
5722 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5723 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5724 esac
5725 fi
5726 ;;
5727 sco3.2v5*)
5728 lt_cv_sys_max_cmd_len=102400
5729 ;;
5730 sysv5* | sco5v6* | sysv4.2uw2*)
5731 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5732 if test -n "$kargmax"; then
5733 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5734 else
5735 lt_cv_sys_max_cmd_len=32768
5736 fi
5737 ;;
5738 *)
5739 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5740 if test -n "$lt_cv_sys_max_cmd_len"; then
5741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5743 else
5744 # Make teststring a little bigger before we do anything with it.
5745 # a 1K string should be a reasonable start.
5746 for i in 1 2 3 4 5 6 7 8 ; do
5747 teststring=$teststring$teststring
5748 done
5749 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5750 # If test is not a shell built-in, we'll probably end up computing a
5751 # maximum length that is only half of the actual maximum length, but
5752 # we can't tell.
5753 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5754 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5755 test $i != 17 # 1/2 MB should be enough
5756 do
5757 i=`expr $i + 1`
5758 teststring=$teststring$teststring
5759 done
5760 # Only check the string length outside the loop.
5761 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5762 teststring=
5763 # Add a significant safety factor because C++ compilers can tack on
5764 # massive amounts of additional arguments before passing them to the
5765 # linker. It appears as though 1/2 is a usable value.
5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5767 fi
5768 ;;
5769 esac
5770
5771 fi
5772
5773 if test -n $lt_cv_sys_max_cmd_len ; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5775 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5778 $as_echo "none" >&6; }
5779 fi
5780 max_cmd_len=$lt_cv_sys_max_cmd_len
5781
5782
5783
5784
5785
5786
5787 : ${CP="cp -f"}
5788 : ${MV="mv -f"}
5789 : ${RM="rm -f"}
5790
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5792 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5793 # Try some XSI features
5794 xsi_shell=no
5795 ( _lt_dummy="a/b/c"
5796 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5797 = c,a/b,, \
5798 && eval 'test $(( 1 + 1 )) -eq 2 \
5799 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5800 && xsi_shell=yes
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5802 $as_echo "$xsi_shell" >&6; }
5803
5804
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5806 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5807 lt_shell_append=no
5808 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5809 >/dev/null 2>&1 \
5810 && lt_shell_append=yes
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5812 $as_echo "$lt_shell_append" >&6; }
5813
5814
5815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5816 lt_unset=unset
5817 else
5818 lt_unset=false
5819 fi
5820
5821
5822
5823
5824
5825 # test EBCDIC or ASCII
5826 case `echo X|tr X '\101'` in
5827 A) # ASCII based system
5828 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5829 lt_SP2NL='tr \040 \012'
5830 lt_NL2SP='tr \015\012 \040\040'
5831 ;;
5832 *) # EBCDIC based system
5833 lt_SP2NL='tr \100 \n'
5834 lt_NL2SP='tr \r\n \100\100'
5835 ;;
5836 esac
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5847 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5848 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 lt_cv_ld_reload_flag='-r'
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5854 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5855 reload_flag=$lt_cv_ld_reload_flag
5856 case $reload_flag in
5857 "" | " "*) ;;
5858 *) reload_flag=" $reload_flag" ;;
5859 esac
5860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5861 case $host_os in
5862 darwin*)
5863 if test "$GCC" = yes; then
5864 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5865 else
5866 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5867 fi
5868 ;;
5869 esac
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879 if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5881 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 if test -n "$OBJDUMP"; then
5888 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5889 else
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5892 do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5897 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901 done
5902 done
5903 IFS=$as_save_IFS
5904
5905 fi
5906 fi
5907 OBJDUMP=$ac_cv_prog_OBJDUMP
5908 if test -n "$OBJDUMP"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5910 $as_echo "$OBJDUMP" >&6; }
5911 else
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5914 fi
5915
5916
5917 fi
5918 if test -z "$ac_cv_prog_OBJDUMP"; then
5919 ac_ct_OBJDUMP=$OBJDUMP
5920 # Extract the first word of "objdump", so it can be a program name with args.
5921 set dummy objdump; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if test -n "$ac_ct_OBJDUMP"; then
5928 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941 done
5942 done
5943 IFS=$as_save_IFS
5944
5945 fi
5946 fi
5947 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5948 if test -n "$ac_ct_OBJDUMP"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5950 $as_echo "$ac_ct_OBJDUMP" >&6; }
5951 else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955
5956 if test "x$ac_ct_OBJDUMP" = x; then
5957 OBJDUMP="false"
5958 else
5959 case $cross_compiling:$ac_tool_warned in
5960 yes:)
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned=yes ;;
5964 esac
5965 OBJDUMP=$ac_ct_OBJDUMP
5966 fi
5967 else
5968 OBJDUMP="$ac_cv_prog_OBJDUMP"
5969 fi
5970
5971 test -z "$OBJDUMP" && OBJDUMP=objdump
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5982 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5983 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 lt_cv_file_magic_cmd='$MAGIC_CMD'
5987 lt_cv_file_magic_test_file=
5988 lt_cv_deplibs_check_method='unknown'
5989 # Need to set the preceding variable on all platforms that support
5990 # interlibrary dependencies.
5991 # 'none' -- dependencies not supported.
5992 # `unknown' -- same as none, but documents that we really don't know.
5993 # 'pass_all' -- all dependencies passed with no checks.
5994 # 'test_compile' -- check by making test program.
5995 # 'file_magic [[regex]]' -- check by looking for files in library path
5996 # which responds to the $file_magic_cmd with a given extended regex.
5997 # If you have `file' or equivalent on your system and you're not sure
5998 # whether `pass_all' will *always* work, you probably want this one.
5999
6000 case $host_os in
6001 aix[4-9]*)
6002 lt_cv_deplibs_check_method=pass_all
6003 ;;
6004
6005 beos*)
6006 lt_cv_deplibs_check_method=pass_all
6007 ;;
6008
6009 bsdi[45]*)
6010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6011 lt_cv_file_magic_cmd='/usr/bin/file -L'
6012 lt_cv_file_magic_test_file=/shlib/libc.so
6013 ;;
6014
6015 cygwin*)
6016 # func_win32_libid is a shell function defined in ltmain.sh
6017 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6018 lt_cv_file_magic_cmd='func_win32_libid'
6019 ;;
6020
6021 mingw* | pw32*)
6022 # Base MSYS/MinGW do not provide the 'file' command needed by
6023 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6024 # unless we find 'file', for example because we are cross-compiling.
6025 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6026 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6027 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6028 lt_cv_file_magic_cmd='func_win32_libid'
6029 else
6030 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6031 lt_cv_file_magic_cmd='$OBJDUMP -f'
6032 fi
6033 ;;
6034
6035 cegcc*)
6036 # use the weaker test based on 'objdump'. See mingw*.
6037 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6038 lt_cv_file_magic_cmd='$OBJDUMP -f'
6039 ;;
6040
6041 darwin* | rhapsody*)
6042 lt_cv_deplibs_check_method=pass_all
6043 ;;
6044
6045 freebsd* | dragonfly*)
6046 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6047 case $host_cpu in
6048 i*86 )
6049 # Not sure whether the presence of OpenBSD here was a mistake.
6050 # Let's accept both of them until this is cleared up.
6051 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6052 lt_cv_file_magic_cmd=/usr/bin/file
6053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6054 ;;
6055 esac
6056 else
6057 lt_cv_deplibs_check_method=pass_all
6058 fi
6059 ;;
6060
6061 gnu*)
6062 lt_cv_deplibs_check_method=pass_all
6063 ;;
6064
6065 haiku*)
6066 lt_cv_deplibs_check_method=pass_all
6067 ;;
6068
6069 hpux10.20* | hpux11*)
6070 lt_cv_file_magic_cmd=/usr/bin/file
6071 case $host_cpu in
6072 ia64*)
6073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6075 ;;
6076 hppa*64*)
6077 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]'
6078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6079 ;;
6080 *)
6081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6082 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6083 ;;
6084 esac
6085 ;;
6086
6087 interix[3-9]*)
6088 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6090 ;;
6091
6092 irix5* | irix6* | nonstopux*)
6093 case $LD in
6094 *-32|*"-32 ") libmagic=32-bit;;
6095 *-n32|*"-n32 ") libmagic=N32;;
6096 *-64|*"-64 ") libmagic=64-bit;;
6097 *) libmagic=never-match;;
6098 esac
6099 lt_cv_deplibs_check_method=pass_all
6100 ;;
6101
6102 # This must be Linux ELF.
6103 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
6106
6107 netbsd*)
6108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6110 else
6111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6112 fi
6113 ;;
6114
6115 newos6*)
6116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6117 lt_cv_file_magic_cmd=/usr/bin/file
6118 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6119 ;;
6120
6121 *nto* | *qnx*)
6122 lt_cv_deplibs_check_method=pass_all
6123 ;;
6124
6125 openbsd*)
6126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6128 else
6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6130 fi
6131 ;;
6132
6133 osf3* | osf4* | osf5*)
6134 lt_cv_deplibs_check_method=pass_all
6135 ;;
6136
6137 rdos*)
6138 lt_cv_deplibs_check_method=pass_all
6139 ;;
6140
6141 solaris*)
6142 lt_cv_deplibs_check_method=pass_all
6143 ;;
6144
6145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148
6149 sysv4 | sysv4.3*)
6150 case $host_vendor in
6151 motorola)
6152 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]'
6153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6154 ;;
6155 ncr)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158 sequent)
6159 lt_cv_file_magic_cmd='/bin/file'
6160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6161 ;;
6162 sni)
6163 lt_cv_file_magic_cmd='/bin/file'
6164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6165 lt_cv_file_magic_test_file=/lib/libc.so
6166 ;;
6167 siemens)
6168 lt_cv_deplibs_check_method=pass_all
6169 ;;
6170 pc)
6171 lt_cv_deplibs_check_method=pass_all
6172 ;;
6173 esac
6174 ;;
6175
6176 tpf*)
6177 lt_cv_deplibs_check_method=pass_all
6178 ;;
6179 esac
6180
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6183 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6184 file_magic_cmd=$lt_cv_file_magic_cmd
6185 deplibs_check_method=$lt_cv_deplibs_check_method
6186 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6201 set dummy ${ac_tool_prefix}ar; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if test "${ac_cv_prog_AR+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 if test -n "$AR"; then
6208 ac_cv_prog_AR="$AR" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_AR="${ac_tool_prefix}ar"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 AR=$ac_cv_prog_AR
6228 if test -n "$AR"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6230 $as_echo "$AR" >&6; }
6231 else
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6234 fi
6235
6236
6237 fi
6238 if test -z "$ac_cv_prog_AR"; then
6239 ac_ct_AR=$AR
6240 # Extract the first word of "ar", so it can be a program name with args.
6241 set dummy ar; ac_word=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 if test -n "$ac_ct_AR"; then
6248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_ac_ct_AR="ar"
6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 break 2
6260 fi
6261 done
6262 done
6263 IFS=$as_save_IFS
6264
6265 fi
6266 fi
6267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6268 if test -n "$ac_ct_AR"; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6270 $as_echo "$ac_ct_AR" >&6; }
6271 else
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6274 fi
6275
6276 if test "x$ac_ct_AR" = x; then
6277 AR="false"
6278 else
6279 case $cross_compiling:$ac_tool_warned in
6280 yes:)
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6283 ac_tool_warned=yes ;;
6284 esac
6285 AR=$ac_ct_AR
6286 fi
6287 else
6288 AR="$ac_cv_prog_AR"
6289 fi
6290
6291 test -z "$AR" && AR=ar
6292 test -z "$AR_FLAGS" && AR_FLAGS=cru
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}strip; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if test "${ac_cv_prog_STRIP+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 if test -n "$STRIP"; then
6313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326 done
6327 done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 STRIP=$ac_cv_prog_STRIP
6333 if test -n "$STRIP"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6335 $as_echo "$STRIP" >&6; }
6336 else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340
6341
6342 fi
6343 if test -z "$ac_cv_prog_STRIP"; then
6344 ac_ct_STRIP=$STRIP
6345 # Extract the first word of "strip", so it can be a program name with args.
6346 set dummy strip; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 if test -n "$ac_ct_STRIP"; then
6353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_ac_ct_STRIP="strip"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366 done
6367 done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6373 if test -n "$ac_ct_STRIP"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6375 $as_echo "$ac_ct_STRIP" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381 if test "x$ac_ct_STRIP" = x; then
6382 STRIP=":"
6383 else
6384 case $cross_compiling:$ac_tool_warned in
6385 yes:)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390 STRIP=$ac_ct_STRIP
6391 fi
6392 else
6393 STRIP="$ac_cv_prog_STRIP"
6394 fi
6395
6396 test -z "$STRIP" && STRIP=:
6397
6398
6399
6400
6401
6402
6403 if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$RANLIB"; then
6412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6424 fi
6425 done
6426 done
6427 IFS=$as_save_IFS
6428
6429 fi
6430 fi
6431 RANLIB=$ac_cv_prog_RANLIB
6432 if test -n "$RANLIB"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6434 $as_echo "$RANLIB" >&6; }
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6438 fi
6439
6440
6441 fi
6442 if test -z "$ac_cv_prog_RANLIB"; then
6443 ac_ct_RANLIB=$RANLIB
6444 # Extract the first word of "ranlib", so it can be a program name with args.
6445 set dummy ranlib; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 if test -n "$ac_ct_RANLIB"; then
6452 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_prog_ac_ct_RANLIB="ranlib"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469 fi
6470 fi
6471 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6472 if test -n "$ac_ct_RANLIB"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6474 $as_echo "$ac_ct_RANLIB" >&6; }
6475 else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 fi
6479
6480 if test "x$ac_ct_RANLIB" = x; then
6481 RANLIB=":"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484 yes:)
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned=yes ;;
6488 esac
6489 RANLIB=$ac_ct_RANLIB
6490 fi
6491 else
6492 RANLIB="$ac_cv_prog_RANLIB"
6493 fi
6494
6495 test -z "$RANLIB" && RANLIB=:
6496
6497
6498
6499
6500
6501
6502 # Determine commands to create old-style static archives.
6503 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6504 old_postinstall_cmds='chmod 644 $oldlib'
6505 old_postuninstall_cmds=
6506
6507 if test -n "$RANLIB"; then
6508 case $host_os in
6509 openbsd*)
6510 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6511 ;;
6512 *)
6513 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6514 ;;
6515 esac
6516 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6517 fi
6518
6519 case $host_os in
6520 darwin*)
6521 lock_old_archive_extraction=yes ;;
6522 *)
6523 lock_old_archive_extraction=no ;;
6524 esac
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564 # If no C compiler was specified, use CC.
6565 LTCC=${LTCC-"$CC"}
6566
6567 # If no C compiler flags were specified, use CFLAGS.
6568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6569
6570 # Allow CC to be a program name with arguments.
6571 compiler=$CC
6572
6573
6574 # Check for command to grab the raw symbol name followed by C symbol from nm.
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6576 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6577 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580
6581 # These are sane defaults that work on at least a few old systems.
6582 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6583
6584 # Character class describing NM global symbol codes.
6585 symcode='[BCDEGRST]'
6586
6587 # Regexp to match symbols that can be accessed directly from C.
6588 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6589
6590 # Define system-specific variables.
6591 case $host_os in
6592 aix*)
6593 symcode='[BCDT]'
6594 ;;
6595 cygwin* | mingw* | pw32* | cegcc*)
6596 symcode='[ABCDGISTW]'
6597 ;;
6598 hpux*)
6599 if test "$host_cpu" = ia64; then
6600 symcode='[ABCDEGRST]'
6601 fi
6602 ;;
6603 irix* | nonstopux*)
6604 symcode='[BCDEGRST]'
6605 ;;
6606 osf*)
6607 symcode='[BCDEGQRST]'
6608 ;;
6609 solaris*)
6610 symcode='[BDRT]'
6611 ;;
6612 sco3.2v5*)
6613 symcode='[DT]'
6614 ;;
6615 sysv4.2uw2*)
6616 symcode='[DT]'
6617 ;;
6618 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6619 symcode='[ABDT]'
6620 ;;
6621 sysv4)
6622 symcode='[DFNSTU]'
6623 ;;
6624 esac
6625
6626 # If we're using GNU nm, then use its standard symbol codes.
6627 case `$NM -V 2>&1` in
6628 *GNU* | *'with BFD'*)
6629 symcode='[ABCDGIRSTW]' ;;
6630 esac
6631
6632 # Transform an extracted symbol line into a proper C declaration.
6633 # Some systems (esp. on ia64) link data and code symbols differently,
6634 # so use this general approach.
6635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6636
6637 # Transform an extracted symbol line into symbol name and symbol address
6638 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6639 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'"
6640
6641 # Handle CRLF in mingw tool chain
6642 opt_cr=
6643 case $build_os in
6644 mingw*)
6645 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6646 ;;
6647 esac
6648
6649 # Try without a prefix underscore, then with it.
6650 for ac_symprfx in "" "_"; do
6651
6652 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6653 symxfrm="\\1 $ac_symprfx\\2 \\2"
6654
6655 # Write the raw and C identifiers.
6656 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6657 # Fake it for dumpbin and say T for any non-static function
6658 # and D for any global variable.
6659 # Also find C++ and __fastcall symbols from MSVC++,
6660 # which start with @ or ?.
6661 lt_cv_sys_global_symbol_pipe="$AWK '"\
6662 " {last_section=section; section=\$ 3};"\
6663 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6664 " \$ 0!~/External *\|/{next};"\
6665 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6666 " {if(hide[section]) next};"\
6667 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6668 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6669 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6670 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6671 " ' prfx=^$ac_symprfx"
6672 else
6673 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6674 fi
6675
6676 # Check to see that the pipe works correctly.
6677 pipe_works=no
6678
6679 rm -f conftest*
6680 cat > conftest.$ac_ext <<_LT_EOF
6681 #ifdef __cplusplus
6682 extern "C" {
6683 #endif
6684 char nm_test_var;
6685 void nm_test_func(void);
6686 void nm_test_func(void){}
6687 #ifdef __cplusplus
6688 }
6689 #endif
6690 int main(){nm_test_var='a';nm_test_func();return(0);}
6691 _LT_EOF
6692
6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6694 (eval $ac_compile) 2>&5
6695 ac_status=$?
6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; }; then
6698 # Now try to grab the symbols.
6699 nlist=conftest.nm
6700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6701 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6702 ac_status=$?
6703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6704 test $ac_status = 0; } && test -s "$nlist"; then
6705 # Try sorting and uniquifying the output.
6706 if sort "$nlist" | uniq > "$nlist"T; then
6707 mv -f "$nlist"T "$nlist"
6708 else
6709 rm -f "$nlist"T
6710 fi
6711
6712 # Make sure that we snagged all the symbols we need.
6713 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6714 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6715 cat <<_LT_EOF > conftest.$ac_ext
6716 #ifdef __cplusplus
6717 extern "C" {
6718 #endif
6719
6720 _LT_EOF
6721 # Now generate the symbol file.
6722 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6723
6724 cat <<_LT_EOF >> conftest.$ac_ext
6725
6726 /* The mapping between symbol names and symbols. */
6727 const struct {
6728 const char *name;
6729 void *address;
6730 }
6731 lt__PROGRAM__LTX_preloaded_symbols[] =
6732 {
6733 { "@PROGRAM@", (void *) 0 },
6734 _LT_EOF
6735 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6736 cat <<\_LT_EOF >> conftest.$ac_ext
6737 {0, (void *) 0}
6738 };
6739
6740 /* This works around a problem in FreeBSD linker */
6741 #ifdef FREEBSD_WORKAROUND
6742 static const void *lt_preloaded_setup() {
6743 return lt__PROGRAM__LTX_preloaded_symbols;
6744 }
6745 #endif
6746
6747 #ifdef __cplusplus
6748 }
6749 #endif
6750 _LT_EOF
6751 # Now try linking the two files.
6752 mv conftest.$ac_objext conftstm.$ac_objext
6753 lt_save_LIBS="$LIBS"
6754 lt_save_CFLAGS="$CFLAGS"
6755 LIBS="conftstm.$ac_objext"
6756 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6758 (eval $ac_link) 2>&5
6759 ac_status=$?
6760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6761 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6762 pipe_works=yes
6763 fi
6764 LIBS="$lt_save_LIBS"
6765 CFLAGS="$lt_save_CFLAGS"
6766 else
6767 echo "cannot find nm_test_func in $nlist" >&5
6768 fi
6769 else
6770 echo "cannot find nm_test_var in $nlist" >&5
6771 fi
6772 else
6773 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6774 fi
6775 else
6776 echo "$progname: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6778 fi
6779 rm -rf conftest* conftst*
6780
6781 # Do not use the global_symbol_pipe unless it works.
6782 if test "$pipe_works" = yes; then
6783 break
6784 else
6785 lt_cv_sys_global_symbol_pipe=
6786 fi
6787 done
6788
6789 fi
6790
6791 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6792 lt_cv_sys_global_symbol_to_cdecl=
6793 fi
6794 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6796 $as_echo "failed" >&6; }
6797 else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6799 $as_echo "ok" >&6; }
6800 fi
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823 # Check whether --enable-libtool-lock was given.
6824 if test "${enable_libtool_lock+set}" = set; then :
6825 enableval=$enable_libtool_lock;
6826 fi
6827
6828 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6829
6830 # Some flags need to be propagated to the compiler or linker for good
6831 # libtool support.
6832 case $host in
6833 ia64-*-hpux*)
6834 # Find out which ABI we are using.
6835 echo 'int i;' > conftest.$ac_ext
6836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6837 (eval $ac_compile) 2>&5
6838 ac_status=$?
6839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6840 test $ac_status = 0; }; then
6841 case `/usr/bin/file conftest.$ac_objext` in
6842 *ELF-32*)
6843 HPUX_IA64_MODE="32"
6844 ;;
6845 *ELF-64*)
6846 HPUX_IA64_MODE="64"
6847 ;;
6848 esac
6849 fi
6850 rm -rf conftest*
6851 ;;
6852 *-*-irix6*)
6853 # Find out which ABI we are using.
6854 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6856 (eval $ac_compile) 2>&5
6857 ac_status=$?
6858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859 test $ac_status = 0; }; then
6860 if test "$lt_cv_prog_gnu_ld" = yes; then
6861 case `/usr/bin/file conftest.$ac_objext` in
6862 *32-bit*)
6863 LD="${LD-ld} -melf32bsmip"
6864 ;;
6865 *N32*)
6866 LD="${LD-ld} -melf32bmipn32"
6867 ;;
6868 *64-bit*)
6869 LD="${LD-ld} -melf64bmip"
6870 ;;
6871 esac
6872 else
6873 case `/usr/bin/file conftest.$ac_objext` in
6874 *32-bit*)
6875 LD="${LD-ld} -32"
6876 ;;
6877 *N32*)
6878 LD="${LD-ld} -n32"
6879 ;;
6880 *64-bit*)
6881 LD="${LD-ld} -64"
6882 ;;
6883 esac
6884 fi
6885 fi
6886 rm -rf conftest*
6887 ;;
6888
6889 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6890 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6891 # Find out which ABI we are using.
6892 echo 'int i;' > conftest.$ac_ext
6893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6894 (eval $ac_compile) 2>&5
6895 ac_status=$?
6896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897 test $ac_status = 0; }; then
6898 case `/usr/bin/file conftest.o` in
6899 *32-bit*)
6900 case $host in
6901 x86_64-*kfreebsd*-gnu)
6902 LD="${LD-ld} -m elf_i386_fbsd"
6903 ;;
6904 x86_64-*linux*)
6905 case `/usr/bin/file conftest.o` in
6906 *x86-64*)
6907 LD="${LD-ld} -m elf32_x86_64"
6908 ;;
6909 *)
6910 LD="${LD-ld} -m elf_i386"
6911 ;;
6912 esac
6913 ;;
6914 powerpc64le-*linux*)
6915 LD="${LD-ld} -m elf32lppclinux"
6916 ;;
6917 powerpc64-*linux*)
6918 LD="${LD-ld} -m elf32ppclinux"
6919 ;;
6920 s390x-*linux*)
6921 LD="${LD-ld} -m elf_s390"
6922 ;;
6923 sparc64-*linux*)
6924 LD="${LD-ld} -m elf32_sparc"
6925 ;;
6926 esac
6927 ;;
6928 *64-bit*)
6929 case $host in
6930 x86_64-*kfreebsd*-gnu)
6931 LD="${LD-ld} -m elf_x86_64_fbsd"
6932 ;;
6933 x86_64-*linux*)
6934 LD="${LD-ld} -m elf_x86_64"
6935 ;;
6936 powerpcle-*linux*)
6937 LD="${LD-ld} -m elf64lppc"
6938 ;;
6939 powerpc-*linux*)
6940 LD="${LD-ld} -m elf64ppc"
6941 ;;
6942 s390*-*linux*|s390*-*tpf*)
6943 LD="${LD-ld} -m elf64_s390"
6944 ;;
6945 sparc*-*linux*)
6946 LD="${LD-ld} -m elf64_sparc"
6947 ;;
6948 esac
6949 ;;
6950 esac
6951 fi
6952 rm -rf conftest*
6953 ;;
6954
6955 *-*-sco3.2v5*)
6956 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6957 SAVE_CFLAGS="$CFLAGS"
6958 CFLAGS="$CFLAGS -belf"
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6960 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6961 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 ac_ext=c
6965 ac_cpp='$CPP $CPPFLAGS'
6966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6969
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6972
6973 int
6974 main ()
6975 {
6976
6977 ;
6978 return 0;
6979 }
6980 _ACEOF
6981 if ac_fn_c_try_link "$LINENO"; then :
6982 lt_cv_cc_needs_belf=yes
6983 else
6984 lt_cv_cc_needs_belf=no
6985 fi
6986 rm -f core conftest.err conftest.$ac_objext \
6987 conftest$ac_exeext conftest.$ac_ext
6988 ac_ext=c
6989 ac_cpp='$CPP $CPPFLAGS'
6990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6993
6994 fi
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6996 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6997 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6998 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6999 CFLAGS="$SAVE_CFLAGS"
7000 fi
7001 ;;
7002 sparc*-*solaris*)
7003 # Find out which ABI we are using.
7004 echo 'int i;' > conftest.$ac_ext
7005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7006 (eval $ac_compile) 2>&5
7007 ac_status=$?
7008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7009 test $ac_status = 0; }; then
7010 case `/usr/bin/file conftest.o` in
7011 *64-bit*)
7012 case $lt_cv_prog_gnu_ld in
7013 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7014 *)
7015 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7016 LD="${LD-ld} -64"
7017 fi
7018 ;;
7019 esac
7020 ;;
7021 esac
7022 fi
7023 rm -rf conftest*
7024 ;;
7025 esac
7026
7027 need_locks="$enable_libtool_lock"
7028
7029
7030 case $host_os in
7031 rhapsody* | darwin*)
7032 if test -n "$ac_tool_prefix"; then
7033 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7034 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 $as_echo_n "checking for $ac_word... " >&6; }
7037 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7038 $as_echo_n "(cached) " >&6
7039 else
7040 if test -n "$DSYMUTIL"; then
7041 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058 fi
7059 fi
7060 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7061 if test -n "$DSYMUTIL"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7063 $as_echo "$DSYMUTIL" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7067 fi
7068
7069
7070 fi
7071 if test -z "$ac_cv_prog_DSYMUTIL"; then
7072 ac_ct_DSYMUTIL=$DSYMUTIL
7073 # Extract the first word of "dsymutil", so it can be a program name with args.
7074 set dummy dsymutil; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 if test -n "$ac_ct_DSYMUTIL"; then
7081 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7082 else
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7085 do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7093 fi
7094 done
7095 done
7096 IFS=$as_save_IFS
7097
7098 fi
7099 fi
7100 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7101 if test -n "$ac_ct_DSYMUTIL"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7103 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7104 else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7107 fi
7108
7109 if test "x$ac_ct_DSYMUTIL" = x; then
7110 DSYMUTIL=":"
7111 else
7112 case $cross_compiling:$ac_tool_warned in
7113 yes:)
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116 ac_tool_warned=yes ;;
7117 esac
7118 DSYMUTIL=$ac_ct_DSYMUTIL
7119 fi
7120 else
7121 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7122 fi
7123
7124 if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 if test -n "$NMEDIT"; then
7133 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 NMEDIT=$ac_cv_prog_NMEDIT
7153 if test -n "$NMEDIT"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7155 $as_echo "$NMEDIT" >&6; }
7156 else
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161
7162 fi
7163 if test -z "$ac_cv_prog_NMEDIT"; then
7164 ac_ct_NMEDIT=$NMEDIT
7165 # Extract the first word of "nmedit", so it can be a program name with args.
7166 set dummy nmedit; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 if test -n "$ac_ct_NMEDIT"; then
7173 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 break 2
7185 fi
7186 done
7187 done
7188 IFS=$as_save_IFS
7189
7190 fi
7191 fi
7192 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7193 if test -n "$ac_ct_NMEDIT"; then
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7195 $as_echo "$ac_ct_NMEDIT" >&6; }
7196 else
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7199 fi
7200
7201 if test "x$ac_ct_NMEDIT" = x; then
7202 NMEDIT=":"
7203 else
7204 case $cross_compiling:$ac_tool_warned in
7205 yes:)
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7208 ac_tool_warned=yes ;;
7209 esac
7210 NMEDIT=$ac_ct_NMEDIT
7211 fi
7212 else
7213 NMEDIT="$ac_cv_prog_NMEDIT"
7214 fi
7215
7216 if test -n "$ac_tool_prefix"; then
7217 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7218 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if test "${ac_cv_prog_LIPO+set}" = set; then :
7222 $as_echo_n "(cached) " >&6
7223 else
7224 if test -n "$LIPO"; then
7225 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 break 2
7237 fi
7238 done
7239 done
7240 IFS=$as_save_IFS
7241
7242 fi
7243 fi
7244 LIPO=$ac_cv_prog_LIPO
7245 if test -n "$LIPO"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7247 $as_echo "$LIPO" >&6; }
7248 else
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253
7254 fi
7255 if test -z "$ac_cv_prog_LIPO"; then
7256 ac_ct_LIPO=$LIPO
7257 # Extract the first word of "lipo", so it can be a program name with args.
7258 set dummy lipo; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7262 $as_echo_n "(cached) " >&6
7263 else
7264 if test -n "$ac_ct_LIPO"; then
7265 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_prog_ac_ct_LIPO="lipo"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7277 fi
7278 done
7279 done
7280 IFS=$as_save_IFS
7281
7282 fi
7283 fi
7284 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7285 if test -n "$ac_ct_LIPO"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7287 $as_echo "$ac_ct_LIPO" >&6; }
7288 else
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293 if test "x$ac_ct_LIPO" = x; then
7294 LIPO=":"
7295 else
7296 case $cross_compiling:$ac_tool_warned in
7297 yes:)
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300 ac_tool_warned=yes ;;
7301 esac
7302 LIPO=$ac_ct_LIPO
7303 fi
7304 else
7305 LIPO="$ac_cv_prog_LIPO"
7306 fi
7307
7308 if test -n "$ac_tool_prefix"; then
7309 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7310 set dummy ${ac_tool_prefix}otool; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 if test -n "$OTOOL"; then
7317 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7326 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7329 fi
7330 done
7331 done
7332 IFS=$as_save_IFS
7333
7334 fi
7335 fi
7336 OTOOL=$ac_cv_prog_OTOOL
7337 if test -n "$OTOOL"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7339 $as_echo "$OTOOL" >&6; }
7340 else
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344
7345
7346 fi
7347 if test -z "$ac_cv_prog_OTOOL"; then
7348 ac_ct_OTOOL=$OTOOL
7349 # Extract the first word of "otool", so it can be a program name with args.
7350 set dummy otool; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356 if test -n "$ac_ct_OTOOL"; then
7357 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366 ac_cv_prog_ac_ct_OTOOL="otool"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7369 fi
7370 done
7371 done
7372 IFS=$as_save_IFS
7373
7374 fi
7375 fi
7376 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7377 if test -n "$ac_ct_OTOOL"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7379 $as_echo "$ac_ct_OTOOL" >&6; }
7380 else
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7383 fi
7384
7385 if test "x$ac_ct_OTOOL" = x; then
7386 OTOOL=":"
7387 else
7388 case $cross_compiling:$ac_tool_warned in
7389 yes:)
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7393 esac
7394 OTOOL=$ac_ct_OTOOL
7395 fi
7396 else
7397 OTOOL="$ac_cv_prog_OTOOL"
7398 fi
7399
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 if test -n "$OTOOL64"; then
7409 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 OTOOL64=$ac_cv_prog_OTOOL64
7429 if test -n "$OTOOL64"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7431 $as_echo "$OTOOL64" >&6; }
7432 else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437
7438 fi
7439 if test -z "$ac_cv_prog_OTOOL64"; then
7440 ac_ct_OTOOL64=$OTOOL64
7441 # Extract the first word of "otool64", so it can be a program name with args.
7442 set dummy otool64; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 if test -n "$ac_ct_OTOOL64"; then
7449 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_prog_ac_ct_OTOOL64="otool64"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7461 fi
7462 done
7463 done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7469 if test -n "$ac_ct_OTOOL64"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7471 $as_echo "$ac_ct_OTOOL64" >&6; }
7472 else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476
7477 if test "x$ac_ct_OTOOL64" = x; then
7478 OTOOL64=":"
7479 else
7480 case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486 OTOOL64=$ac_ct_OTOOL64
7487 fi
7488 else
7489 OTOOL64="$ac_cv_prog_OTOOL64"
7490 fi
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7519 $as_echo_n "checking for -single_module linker flag... " >&6; }
7520 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523 lt_cv_apple_cc_single_mod=no
7524 if test -z "${LT_MULTI_MODULE}"; then
7525 # By default we will add the -single_module flag. You can override
7526 # by either setting the environment variable LT_MULTI_MODULE
7527 # non-empty at configure time, or by adding -multi_module to the
7528 # link flags.
7529 rm -rf libconftest.dylib*
7530 echo "int foo(void){return 1;}" > conftest.c
7531 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7532 -dynamiclib -Wl,-single_module conftest.c" >&5
7533 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7534 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7535 _lt_result=$?
7536 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7537 lt_cv_apple_cc_single_mod=yes
7538 else
7539 cat conftest.err >&5
7540 fi
7541 rm -rf libconftest.dylib*
7542 rm -f conftest.*
7543 fi
7544 fi
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7546 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7548 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7549 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552 lt_cv_ld_exported_symbols_list=no
7553 save_LDFLAGS=$LDFLAGS
7554 echo "_main" > conftest.sym
7555 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558
7559 int
7560 main ()
7561 {
7562
7563 ;
7564 return 0;
7565 }
7566 _ACEOF
7567 if ac_fn_c_try_link "$LINENO"; then :
7568 lt_cv_ld_exported_symbols_list=yes
7569 else
7570 lt_cv_ld_exported_symbols_list=no
7571 fi
7572 rm -f core conftest.err conftest.$ac_objext \
7573 conftest$ac_exeext conftest.$ac_ext
7574 LDFLAGS="$save_LDFLAGS"
7575
7576 fi
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7578 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7580 $as_echo_n "checking for -force_load linker flag... " >&6; }
7581 if test "${lt_cv_ld_force_load+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 lt_cv_ld_force_load=no
7585 cat > conftest.c << _LT_EOF
7586 int forced_loaded() { return 2;}
7587 _LT_EOF
7588 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7589 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7590 echo "$AR cru libconftest.a conftest.o" >&5
7591 $AR cru libconftest.a conftest.o 2>&5
7592 cat > conftest.c << _LT_EOF
7593 int main() { return 0;}
7594 _LT_EOF
7595 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7596 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7597 _lt_result=$?
7598 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7599 lt_cv_ld_force_load=yes
7600 else
7601 cat conftest.err >&5
7602 fi
7603 rm -f conftest.err libconftest.a conftest conftest.c
7604 rm -rf conftest.dSYM
7605
7606 fi
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7608 $as_echo "$lt_cv_ld_force_load" >&6; }
7609 case $host_os in
7610 rhapsody* | darwin1.[012])
7611 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7612 darwin1.*)
7613 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7614 darwin*) # darwin 5.x on
7615 # if running on 10.5 or later, the deployment target defaults
7616 # to the OS version, if on x86, and 10.4, the deployment
7617 # target defaults to 10.4. Don't you love it?
7618 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7619 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7620 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7621 10.[012]*)
7622 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7623 10.*)
7624 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7625 esac
7626 ;;
7627 esac
7628 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7629 _lt_dar_single_mod='$single_module'
7630 fi
7631 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7632 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7633 else
7634 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7635 fi
7636 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7637 _lt_dsymutil='~$DSYMUTIL $lib || :'
7638 else
7639 _lt_dsymutil=
7640 fi
7641 ;;
7642 esac
7643
7644 for ac_header in dlfcn.h
7645 do :
7646 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7647 "
7648 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7649 cat >>confdefs.h <<_ACEOF
7650 #define HAVE_DLFCN_H 1
7651 _ACEOF
7652
7653 fi
7654
7655 done
7656
7657
7658
7659
7660
7661 # Set options
7662
7663
7664
7665 enable_dlopen=no
7666
7667
7668 enable_win32_dll=no
7669
7670
7671 # Check whether --enable-shared was given.
7672 if test "${enable_shared+set}" = set; then :
7673 enableval=$enable_shared; p=${PACKAGE-default}
7674 case $enableval in
7675 yes) enable_shared=yes ;;
7676 no) enable_shared=no ;;
7677 *)
7678 enable_shared=no
7679 # Look at the argument we got. We use all the common list separators.
7680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7681 for pkg in $enableval; do
7682 IFS="$lt_save_ifs"
7683 if test "X$pkg" = "X$p"; then
7684 enable_shared=yes
7685 fi
7686 done
7687 IFS="$lt_save_ifs"
7688 ;;
7689 esac
7690 else
7691 enable_shared=yes
7692 fi
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702 # Check whether --enable-static was given.
7703 if test "${enable_static+set}" = set; then :
7704 enableval=$enable_static; p=${PACKAGE-default}
7705 case $enableval in
7706 yes) enable_static=yes ;;
7707 no) enable_static=no ;;
7708 *)
7709 enable_static=no
7710 # Look at the argument we got. We use all the common list separators.
7711 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7712 for pkg in $enableval; do
7713 IFS="$lt_save_ifs"
7714 if test "X$pkg" = "X$p"; then
7715 enable_static=yes
7716 fi
7717 done
7718 IFS="$lt_save_ifs"
7719 ;;
7720 esac
7721 else
7722 enable_static=yes
7723 fi
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734 # Check whether --with-pic was given.
7735 if test "${with_pic+set}" = set; then :
7736 withval=$with_pic; pic_mode="$withval"
7737 else
7738 pic_mode=default
7739 fi
7740
7741
7742 test -z "$pic_mode" && pic_mode=default
7743
7744
7745
7746
7747
7748
7749
7750 # Check whether --enable-fast-install was given.
7751 if test "${enable_fast_install+set}" = set; then :
7752 enableval=$enable_fast_install; p=${PACKAGE-default}
7753 case $enableval in
7754 yes) enable_fast_install=yes ;;
7755 no) enable_fast_install=no ;;
7756 *)
7757 enable_fast_install=no
7758 # Look at the argument we got. We use all the common list separators.
7759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7760 for pkg in $enableval; do
7761 IFS="$lt_save_ifs"
7762 if test "X$pkg" = "X$p"; then
7763 enable_fast_install=yes
7764 fi
7765 done
7766 IFS="$lt_save_ifs"
7767 ;;
7768 esac
7769 else
7770 enable_fast_install=yes
7771 fi
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783 # This can be used to rebuild libtool when needed
7784 LIBTOOL_DEPS="$ltmain"
7785
7786 # Always use our own libtool.
7787 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814 test -z "$LN_S" && LN_S="ln -s"
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829 if test -n "${ZSH_VERSION+set}" ; then
7830 setopt NO_GLOB_SUBST
7831 fi
7832
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7834 $as_echo_n "checking for objdir... " >&6; }
7835 if test "${lt_cv_objdir+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 rm -f .libs 2>/dev/null
7839 mkdir .libs 2>/dev/null
7840 if test -d .libs; then
7841 lt_cv_objdir=.libs
7842 else
7843 # MS-DOS does not allow filenames that begin with a dot.
7844 lt_cv_objdir=_libs
7845 fi
7846 rmdir .libs 2>/dev/null
7847 fi
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7849 $as_echo "$lt_cv_objdir" >&6; }
7850 objdir=$lt_cv_objdir
7851
7852
7853
7854
7855
7856 cat >>confdefs.h <<_ACEOF
7857 #define LT_OBJDIR "$lt_cv_objdir/"
7858 _ACEOF
7859
7860
7861
7862
7863 case $host_os in
7864 aix3*)
7865 # AIX sometimes has problems with the GCC collect2 program. For some
7866 # reason, if we set the COLLECT_NAMES environment variable, the problems
7867 # vanish in a puff of smoke.
7868 if test "X${COLLECT_NAMES+set}" != Xset; then
7869 COLLECT_NAMES=
7870 export COLLECT_NAMES
7871 fi
7872 ;;
7873 esac
7874
7875 # Global variables:
7876 ofile=libtool
7877 can_build_shared=yes
7878
7879 # All known linkers require a `.a' archive for static linking (except MSVC,
7880 # which needs '.lib').
7881 libext=a
7882
7883 with_gnu_ld="$lt_cv_prog_gnu_ld"
7884
7885 old_CC="$CC"
7886 old_CFLAGS="$CFLAGS"
7887
7888 # Set sane defaults for various variables
7889 test -z "$CC" && CC=cc
7890 test -z "$LTCC" && LTCC=$CC
7891 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7892 test -z "$LD" && LD=ld
7893 test -z "$ac_objext" && ac_objext=o
7894
7895 for cc_temp in $compiler""; do
7896 case $cc_temp in
7897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7899 \-*) ;;
7900 *) break;;
7901 esac
7902 done
7903 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7904
7905
7906 # Only perform the check for file, if the check method requires it
7907 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7908 case $deplibs_check_method in
7909 file_magic*)
7910 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7912 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7913 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 case $MAGIC_CMD in
7917 [\\/*] | ?:[\\/]*)
7918 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7919 ;;
7920 *)
7921 lt_save_MAGIC_CMD="$MAGIC_CMD"
7922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7923 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7924 for ac_dir in $ac_dummy; do
7925 IFS="$lt_save_ifs"
7926 test -z "$ac_dir" && ac_dir=.
7927 if test -f $ac_dir/${ac_tool_prefix}file; then
7928 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7929 if test -n "$file_magic_test_file"; then
7930 case $deplibs_check_method in
7931 "file_magic "*)
7932 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7934 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7935 $EGREP "$file_magic_regex" > /dev/null; then
7936 :
7937 else
7938 cat <<_LT_EOF 1>&2
7939
7940 *** Warning: the command libtool uses to detect shared libraries,
7941 *** $file_magic_cmd, produces output that libtool cannot recognize.
7942 *** The result is that libtool may fail to recognize shared libraries
7943 *** as such. This will affect the creation of libtool libraries that
7944 *** depend on shared libraries, but programs linked with such libtool
7945 *** libraries will work regardless of this problem. Nevertheless, you
7946 *** may want to report the problem to your system manager and/or to
7947 *** bug-libtool@gnu.org
7948
7949 _LT_EOF
7950 fi ;;
7951 esac
7952 fi
7953 break
7954 fi
7955 done
7956 IFS="$lt_save_ifs"
7957 MAGIC_CMD="$lt_save_MAGIC_CMD"
7958 ;;
7959 esac
7960 fi
7961
7962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7963 if test -n "$MAGIC_CMD"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7965 $as_echo "$MAGIC_CMD" >&6; }
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7969 fi
7970
7971
7972
7973
7974
7975 if test -z "$lt_cv_path_MAGIC_CMD"; then
7976 if test -n "$ac_tool_prefix"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7978 $as_echo_n "checking for file... " >&6; }
7979 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 case $MAGIC_CMD in
7983 [\\/*] | ?:[\\/]*)
7984 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7985 ;;
7986 *)
7987 lt_save_MAGIC_CMD="$MAGIC_CMD"
7988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7989 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7990 for ac_dir in $ac_dummy; do
7991 IFS="$lt_save_ifs"
7992 test -z "$ac_dir" && ac_dir=.
7993 if test -f $ac_dir/file; then
7994 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7995 if test -n "$file_magic_test_file"; then
7996 case $deplibs_check_method in
7997 "file_magic "*)
7998 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7999 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8000 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8001 $EGREP "$file_magic_regex" > /dev/null; then
8002 :
8003 else
8004 cat <<_LT_EOF 1>&2
8005
8006 *** Warning: the command libtool uses to detect shared libraries,
8007 *** $file_magic_cmd, produces output that libtool cannot recognize.
8008 *** The result is that libtool may fail to recognize shared libraries
8009 *** as such. This will affect the creation of libtool libraries that
8010 *** depend on shared libraries, but programs linked with such libtool
8011 *** libraries will work regardless of this problem. Nevertheless, you
8012 *** may want to report the problem to your system manager and/or to
8013 *** bug-libtool@gnu.org
8014
8015 _LT_EOF
8016 fi ;;
8017 esac
8018 fi
8019 break
8020 fi
8021 done
8022 IFS="$lt_save_ifs"
8023 MAGIC_CMD="$lt_save_MAGIC_CMD"
8024 ;;
8025 esac
8026 fi
8027
8028 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8029 if test -n "$MAGIC_CMD"; then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8031 $as_echo "$MAGIC_CMD" >&6; }
8032 else
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8035 fi
8036
8037
8038 else
8039 MAGIC_CMD=:
8040 fi
8041 fi
8042
8043 fi
8044 ;;
8045 esac
8046
8047 # Use C for the default configuration in the libtool script
8048
8049 lt_save_CC="$CC"
8050 ac_ext=c
8051 ac_cpp='$CPP $CPPFLAGS'
8052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8055
8056
8057 # Source file extension for C test sources.
8058 ac_ext=c
8059
8060 # Object file extension for compiled C test sources.
8061 objext=o
8062 objext=$objext
8063
8064 # Code to be used in simple compile tests
8065 lt_simple_compile_test_code="int some_variable = 0;"
8066
8067 # Code to be used in simple link tests
8068 lt_simple_link_test_code='int main(){return(0);}'
8069
8070
8071
8072
8073
8074
8075
8076 # If no C compiler was specified, use CC.
8077 LTCC=${LTCC-"$CC"}
8078
8079 # If no C compiler flags were specified, use CFLAGS.
8080 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8081
8082 # Allow CC to be a program name with arguments.
8083 compiler=$CC
8084
8085 # Save the default compiler, since it gets overwritten when the other
8086 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8087 compiler_DEFAULT=$CC
8088
8089 # save warnings/boilerplate of simple test code
8090 ac_outfile=conftest.$ac_objext
8091 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8092 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8093 _lt_compiler_boilerplate=`cat conftest.err`
8094 $RM conftest*
8095
8096 ac_outfile=conftest.$ac_objext
8097 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8098 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8099 _lt_linker_boilerplate=`cat conftest.err`
8100 $RM -r conftest*
8101
8102
8103 ## CAVEAT EMPTOR:
8104 ## There is no encapsulation within the following macros, do not change
8105 ## the running order or otherwise move them around unless you know exactly
8106 ## what you are doing...
8107 if test -n "$compiler"; then
8108
8109 lt_prog_compiler_no_builtin_flag=
8110
8111 if test "$GCC" = yes; then
8112 case $cc_basename in
8113 nvcc*)
8114 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8115 *)
8116 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8117 esac
8118
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8120 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8121 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 lt_cv_prog_compiler_rtti_exceptions=no
8125 ac_outfile=conftest.$ac_objext
8126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8127 lt_compiler_flag="-fno-rtti -fno-exceptions"
8128 # Insert the option either (1) after the last *FLAGS variable, or
8129 # (2) before a word containing "conftest.", or (3) at the end.
8130 # Note that $ac_compile itself does not contain backslashes and begins
8131 # with a dollar sign (not a hyphen), so the echo should work correctly.
8132 # The option is referenced via a variable to avoid confusing sed.
8133 lt_compile=`echo "$ac_compile" | $SED \
8134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8136 -e 's:$: $lt_compiler_flag:'`
8137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8138 (eval "$lt_compile" 2>conftest.err)
8139 ac_status=$?
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 if (exit $ac_status) && test -s "$ac_outfile"; then
8143 # The compiler can only warn and ignore the option if not recognized
8144 # So say no if there are warnings other than the usual output.
8145 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8147 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8148 lt_cv_prog_compiler_rtti_exceptions=yes
8149 fi
8150 fi
8151 $RM conftest*
8152
8153 fi
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8155 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8156
8157 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8158 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8159 else
8160 :
8161 fi
8162
8163 fi
8164
8165
8166
8167
8168
8169
8170 lt_prog_compiler_wl=
8171 lt_prog_compiler_pic=
8172 lt_prog_compiler_static=
8173
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8175 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8176
8177 if test "$GCC" = yes; then
8178 lt_prog_compiler_wl='-Wl,'
8179 lt_prog_compiler_static='-static'
8180
8181 case $host_os in
8182 aix*)
8183 # All AIX code is PIC.
8184 if test "$host_cpu" = ia64; then
8185 # AIX 5 now supports IA64 processor
8186 lt_prog_compiler_static='-Bstatic'
8187 fi
8188 lt_prog_compiler_pic='-fPIC'
8189 ;;
8190
8191 amigaos*)
8192 case $host_cpu in
8193 powerpc)
8194 # see comment about AmigaOS4 .so support
8195 lt_prog_compiler_pic='-fPIC'
8196 ;;
8197 m68k)
8198 # FIXME: we need at least 68020 code to build shared libraries, but
8199 # adding the `-m68020' flag to GCC prevents building anything better,
8200 # like `-m68040'.
8201 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8202 ;;
8203 esac
8204 ;;
8205
8206 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8207 # PIC is the default for these OSes.
8208 ;;
8209
8210 mingw* | cygwin* | pw32* | os2* | cegcc*)
8211 # This hack is so that the source file can tell whether it is being
8212 # built for inclusion in a dll (and should export symbols for example).
8213 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8214 # (--disable-auto-import) libraries
8215 lt_prog_compiler_pic='-DDLL_EXPORT'
8216 ;;
8217
8218 darwin* | rhapsody*)
8219 # PIC is the default on this platform
8220 # Common symbols not allowed in MH_DYLIB files
8221 lt_prog_compiler_pic='-fno-common'
8222 ;;
8223
8224 haiku*)
8225 # PIC is the default for Haiku.
8226 # The "-static" flag exists, but is broken.
8227 lt_prog_compiler_static=
8228 ;;
8229
8230 hpux*)
8231 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8232 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8233 # sets the default TLS model and affects inlining.
8234 case $host_cpu in
8235 hppa*64*)
8236 # +Z the default
8237 ;;
8238 *)
8239 lt_prog_compiler_pic='-fPIC'
8240 ;;
8241 esac
8242 ;;
8243
8244 interix[3-9]*)
8245 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8246 # Instead, we relocate shared libraries at runtime.
8247 ;;
8248
8249 msdosdjgpp*)
8250 # Just because we use GCC doesn't mean we suddenly get shared libraries
8251 # on systems that don't support them.
8252 lt_prog_compiler_can_build_shared=no
8253 enable_shared=no
8254 ;;
8255
8256 *nto* | *qnx*)
8257 # QNX uses GNU C++, but need to define -shared option too, otherwise
8258 # it will coredump.
8259 lt_prog_compiler_pic='-fPIC -shared'
8260 ;;
8261
8262 sysv4*MP*)
8263 if test -d /usr/nec; then
8264 lt_prog_compiler_pic=-Kconform_pic
8265 fi
8266 ;;
8267
8268 *)
8269 lt_prog_compiler_pic='-fPIC'
8270 ;;
8271 esac
8272
8273 case $cc_basename in
8274 nvcc*) # Cuda Compiler Driver 2.2
8275 lt_prog_compiler_wl='-Xlinker '
8276 lt_prog_compiler_pic='-Xcompiler -fPIC'
8277 ;;
8278 esac
8279 else
8280 # PORTME Check for flag to pass linker flags through the system compiler.
8281 case $host_os in
8282 aix*)
8283 lt_prog_compiler_wl='-Wl,'
8284 if test "$host_cpu" = ia64; then
8285 # AIX 5 now supports IA64 processor
8286 lt_prog_compiler_static='-Bstatic'
8287 else
8288 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8289 fi
8290 ;;
8291
8292 mingw* | cygwin* | pw32* | os2* | cegcc*)
8293 # This hack is so that the source file can tell whether it is being
8294 # built for inclusion in a dll (and should export symbols for example).
8295 lt_prog_compiler_pic='-DDLL_EXPORT'
8296 ;;
8297
8298 hpux9* | hpux10* | hpux11*)
8299 lt_prog_compiler_wl='-Wl,'
8300 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8301 # not for PA HP-UX.
8302 case $host_cpu in
8303 hppa*64*|ia64*)
8304 # +Z the default
8305 ;;
8306 *)
8307 lt_prog_compiler_pic='+Z'
8308 ;;
8309 esac
8310 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8311 lt_prog_compiler_static='${wl}-a ${wl}archive'
8312 ;;
8313
8314 irix5* | irix6* | nonstopux*)
8315 lt_prog_compiler_wl='-Wl,'
8316 # PIC (with -KPIC) is the default.
8317 lt_prog_compiler_static='-non_shared'
8318 ;;
8319
8320 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8321 case $cc_basename in
8322 # old Intel for x86_64 which still supported -KPIC.
8323 ecc*)
8324 lt_prog_compiler_wl='-Wl,'
8325 lt_prog_compiler_pic='-KPIC'
8326 lt_prog_compiler_static='-static'
8327 ;;
8328 # icc used to be incompatible with GCC.
8329 # ICC 10 doesn't accept -KPIC any more.
8330 icc* | ifort*)
8331 lt_prog_compiler_wl='-Wl,'
8332 lt_prog_compiler_pic='-fPIC'
8333 lt_prog_compiler_static='-static'
8334 ;;
8335 # Lahey Fortran 8.1.
8336 lf95*)
8337 lt_prog_compiler_wl='-Wl,'
8338 lt_prog_compiler_pic='--shared'
8339 lt_prog_compiler_static='--static'
8340 ;;
8341 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8342 # Portland Group compilers (*not* the Pentium gcc compiler,
8343 # which looks to be a dead project)
8344 lt_prog_compiler_wl='-Wl,'
8345 lt_prog_compiler_pic='-fpic'
8346 lt_prog_compiler_static='-Bstatic'
8347 ;;
8348 ccc*)
8349 lt_prog_compiler_wl='-Wl,'
8350 # All Alpha code is PIC.
8351 lt_prog_compiler_static='-non_shared'
8352 ;;
8353 xl* | bgxl* | bgf* | mpixl*)
8354 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8355 lt_prog_compiler_wl='-Wl,'
8356 lt_prog_compiler_pic='-qpic'
8357 lt_prog_compiler_static='-qstaticlink'
8358 ;;
8359 *)
8360 case `$CC -V 2>&1 | sed 5q` in
8361 *Sun\ F* | *Sun*Fortran*)
8362 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8363 lt_prog_compiler_pic='-KPIC'
8364 lt_prog_compiler_static='-Bstatic'
8365 lt_prog_compiler_wl=''
8366 ;;
8367 *Sun\ C*)
8368 # Sun C 5.9
8369 lt_prog_compiler_pic='-KPIC'
8370 lt_prog_compiler_static='-Bstatic'
8371 lt_prog_compiler_wl='-Wl,'
8372 ;;
8373 esac
8374 ;;
8375 esac
8376 ;;
8377
8378 newsos6)
8379 lt_prog_compiler_pic='-KPIC'
8380 lt_prog_compiler_static='-Bstatic'
8381 ;;
8382
8383 *nto* | *qnx*)
8384 # QNX uses GNU C++, but need to define -shared option too, otherwise
8385 # it will coredump.
8386 lt_prog_compiler_pic='-fPIC -shared'
8387 ;;
8388
8389 osf3* | osf4* | osf5*)
8390 lt_prog_compiler_wl='-Wl,'
8391 # All OSF/1 code is PIC.
8392 lt_prog_compiler_static='-non_shared'
8393 ;;
8394
8395 rdos*)
8396 lt_prog_compiler_static='-non_shared'
8397 ;;
8398
8399 solaris*)
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-Bstatic'
8402 case $cc_basename in
8403 f77* | f90* | f95*)
8404 lt_prog_compiler_wl='-Qoption ld ';;
8405 *)
8406 lt_prog_compiler_wl='-Wl,';;
8407 esac
8408 ;;
8409
8410 sunos4*)
8411 lt_prog_compiler_wl='-Qoption ld '
8412 lt_prog_compiler_pic='-PIC'
8413 lt_prog_compiler_static='-Bstatic'
8414 ;;
8415
8416 sysv4 | sysv4.2uw2* | sysv4.3*)
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_pic='-KPIC'
8419 lt_prog_compiler_static='-Bstatic'
8420 ;;
8421
8422 sysv4*MP*)
8423 if test -d /usr/nec ;then
8424 lt_prog_compiler_pic='-Kconform_pic'
8425 lt_prog_compiler_static='-Bstatic'
8426 fi
8427 ;;
8428
8429 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_pic='-KPIC'
8432 lt_prog_compiler_static='-Bstatic'
8433 ;;
8434
8435 unicos*)
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_can_build_shared=no
8438 ;;
8439
8440 uts4*)
8441 lt_prog_compiler_pic='-pic'
8442 lt_prog_compiler_static='-Bstatic'
8443 ;;
8444
8445 *)
8446 lt_prog_compiler_can_build_shared=no
8447 ;;
8448 esac
8449 fi
8450
8451 case $host_os in
8452 # For platforms which do not support PIC, -DPIC is meaningless:
8453 *djgpp*)
8454 lt_prog_compiler_pic=
8455 ;;
8456 *)
8457 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8458 ;;
8459 esac
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8461 $as_echo "$lt_prog_compiler_pic" >&6; }
8462
8463
8464
8465
8466
8467
8468 #
8469 # Check to make sure the PIC flag actually works.
8470 #
8471 if test -n "$lt_prog_compiler_pic"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8473 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8474 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 lt_cv_prog_compiler_pic_works=no
8478 ac_outfile=conftest.$ac_objext
8479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8480 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8481 # Insert the option either (1) after the last *FLAGS variable, or
8482 # (2) before a word containing "conftest.", or (3) at the end.
8483 # Note that $ac_compile itself does not contain backslashes and begins
8484 # with a dollar sign (not a hyphen), so the echo should work correctly.
8485 # The option is referenced via a variable to avoid confusing sed.
8486 lt_compile=`echo "$ac_compile" | $SED \
8487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8489 -e 's:$: $lt_compiler_flag:'`
8490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8491 (eval "$lt_compile" 2>conftest.err)
8492 ac_status=$?
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 if (exit $ac_status) && test -s "$ac_outfile"; then
8496 # The compiler can only warn and ignore the option if not recognized
8497 # So say no if there are warnings other than the usual output.
8498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8501 lt_cv_prog_compiler_pic_works=yes
8502 fi
8503 fi
8504 $RM conftest*
8505
8506 fi
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8508 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8509
8510 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8511 case $lt_prog_compiler_pic in
8512 "" | " "*) ;;
8513 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8514 esac
8515 else
8516 lt_prog_compiler_pic=
8517 lt_prog_compiler_can_build_shared=no
8518 fi
8519
8520 fi
8521
8522
8523
8524
8525
8526
8527 #
8528 # Check to make sure the static flag actually works.
8529 #
8530 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8532 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8533 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8536 lt_cv_prog_compiler_static_works=no
8537 save_LDFLAGS="$LDFLAGS"
8538 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8539 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8540 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8541 # The linker can only warn and ignore the option if not recognized
8542 # So say no if there are warnings
8543 if test -s conftest.err; then
8544 # Append any errors to the config.log.
8545 cat conftest.err 1>&5
8546 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8548 if diff conftest.exp conftest.er2 >/dev/null; then
8549 lt_cv_prog_compiler_static_works=yes
8550 fi
8551 else
8552 lt_cv_prog_compiler_static_works=yes
8553 fi
8554 fi
8555 $RM -r conftest*
8556 LDFLAGS="$save_LDFLAGS"
8557
8558 fi
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8560 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8561
8562 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8563 :
8564 else
8565 lt_prog_compiler_static=
8566 fi
8567
8568
8569
8570
8571
8572
8573
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8575 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8576 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8577 $as_echo_n "(cached) " >&6
8578 else
8579 lt_cv_prog_compiler_c_o=no
8580 $RM -r conftest 2>/dev/null
8581 mkdir conftest
8582 cd conftest
8583 mkdir out
8584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8585
8586 lt_compiler_flag="-o out/conftest2.$ac_objext"
8587 # Insert the option either (1) after the last *FLAGS variable, or
8588 # (2) before a word containing "conftest.", or (3) at the end.
8589 # Note that $ac_compile itself does not contain backslashes and begins
8590 # with a dollar sign (not a hyphen), so the echo should work correctly.
8591 lt_compile=`echo "$ac_compile" | $SED \
8592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8594 -e 's:$: $lt_compiler_flag:'`
8595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8596 (eval "$lt_compile" 2>out/conftest.err)
8597 ac_status=$?
8598 cat out/conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8601 then
8602 # The compiler can only warn and ignore the option if not recognized
8603 # So say no if there are warnings
8604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8607 lt_cv_prog_compiler_c_o=yes
8608 fi
8609 fi
8610 chmod u+w . 2>&5
8611 $RM conftest*
8612 # SGI C++ compiler will create directory out/ii_files/ for
8613 # template instantiation
8614 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8615 $RM out/* && rmdir out
8616 cd ..
8617 $RM -r conftest
8618 $RM conftest*
8619
8620 fi
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8622 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8623
8624
8625
8626
8627
8628
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8630 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8631 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
8633 else
8634 lt_cv_prog_compiler_c_o=no
8635 $RM -r conftest 2>/dev/null
8636 mkdir conftest
8637 cd conftest
8638 mkdir out
8639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8640
8641 lt_compiler_flag="-o out/conftest2.$ac_objext"
8642 # Insert the option either (1) after the last *FLAGS variable, or
8643 # (2) before a word containing "conftest.", or (3) at the end.
8644 # Note that $ac_compile itself does not contain backslashes and begins
8645 # with a dollar sign (not a hyphen), so the echo should work correctly.
8646 lt_compile=`echo "$ac_compile" | $SED \
8647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8649 -e 's:$: $lt_compiler_flag:'`
8650 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8651 (eval "$lt_compile" 2>out/conftest.err)
8652 ac_status=$?
8653 cat out/conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8656 then
8657 # The compiler can only warn and ignore the option if not recognized
8658 # So say no if there are warnings
8659 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8660 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8661 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8662 lt_cv_prog_compiler_c_o=yes
8663 fi
8664 fi
8665 chmod u+w . 2>&5
8666 $RM conftest*
8667 # SGI C++ compiler will create directory out/ii_files/ for
8668 # template instantiation
8669 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8670 $RM out/* && rmdir out
8671 cd ..
8672 $RM -r conftest
8673 $RM conftest*
8674
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8677 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8678
8679
8680
8681
8682 hard_links="nottested"
8683 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8684 # do not overwrite the value of need_locks provided by the user
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8686 $as_echo_n "checking if we can lock with hard links... " >&6; }
8687 hard_links=yes
8688 $RM conftest*
8689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8690 touch conftest.a
8691 ln conftest.a conftest.b 2>&5 || hard_links=no
8692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8694 $as_echo "$hard_links" >&6; }
8695 if test "$hard_links" = no; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8697 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8698 need_locks=warn
8699 fi
8700 else
8701 need_locks=no
8702 fi
8703
8704
8705
8706
8707
8708
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8710 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8711
8712 runpath_var=
8713 allow_undefined_flag=
8714 always_export_symbols=no
8715 archive_cmds=
8716 archive_expsym_cmds=
8717 compiler_needs_object=no
8718 enable_shared_with_static_runtimes=no
8719 export_dynamic_flag_spec=
8720 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8721 hardcode_automatic=no
8722 hardcode_direct=no
8723 hardcode_direct_absolute=no
8724 hardcode_libdir_flag_spec=
8725 hardcode_libdir_flag_spec_ld=
8726 hardcode_libdir_separator=
8727 hardcode_minus_L=no
8728 hardcode_shlibpath_var=unsupported
8729 inherit_rpath=no
8730 link_all_deplibs=unknown
8731 module_cmds=
8732 module_expsym_cmds=
8733 old_archive_from_new_cmds=
8734 old_archive_from_expsyms_cmds=
8735 thread_safe_flag_spec=
8736 whole_archive_flag_spec=
8737 # include_expsyms should be a list of space-separated symbols to be *always*
8738 # included in the symbol list
8739 include_expsyms=
8740 # exclude_expsyms can be an extended regexp of symbols to exclude
8741 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8742 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8743 # as well as any symbol that contains `d'.
8744 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8745 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8746 # platforms (ab)use it in PIC code, but their linkers get confused if
8747 # the symbol is explicitly referenced. Since portable code cannot
8748 # rely on this symbol name, it's probably fine to never include it in
8749 # preloaded symbol tables.
8750 # Exclude shared library initialization/finalization symbols.
8751 extract_expsyms_cmds=
8752
8753 case $host_os in
8754 cygwin* | mingw* | pw32* | cegcc*)
8755 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8756 # When not using gcc, we currently assume that we are using
8757 # Microsoft Visual C++.
8758 if test "$GCC" != yes; then
8759 with_gnu_ld=no
8760 fi
8761 ;;
8762 interix*)
8763 # we just hope/assume this is gcc and not c89 (= MSVC++)
8764 with_gnu_ld=yes
8765 ;;
8766 openbsd*)
8767 with_gnu_ld=no
8768 ;;
8769 esac
8770
8771 ld_shlibs=yes
8772
8773 # On some targets, GNU ld is compatible enough with the native linker
8774 # that we're better off using the native interface for both.
8775 lt_use_gnu_ld_interface=no
8776 if test "$with_gnu_ld" = yes; then
8777 case $host_os in
8778 aix*)
8779 # The AIX port of GNU ld has always aspired to compatibility
8780 # with the native linker. However, as the warning in the GNU ld
8781 # block says, versions before 2.19.5* couldn't really create working
8782 # shared libraries, regardless of the interface used.
8783 case `$LD -v 2>&1` in
8784 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8785 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8786 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8787 *)
8788 lt_use_gnu_ld_interface=yes
8789 ;;
8790 esac
8791 ;;
8792 *)
8793 lt_use_gnu_ld_interface=yes
8794 ;;
8795 esac
8796 fi
8797
8798 if test "$lt_use_gnu_ld_interface" = yes; then
8799 # If archive_cmds runs LD, not CC, wlarc should be empty
8800 wlarc='${wl}'
8801
8802 # Set some defaults for GNU ld with shared library support. These
8803 # are reset later if shared libraries are not supported. Putting them
8804 # here allows them to be overridden if necessary.
8805 runpath_var=LD_RUN_PATH
8806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8807 export_dynamic_flag_spec='${wl}--export-dynamic'
8808 # ancient GNU ld didn't support --whole-archive et. al.
8809 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8810 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8811 else
8812 whole_archive_flag_spec=
8813 fi
8814 supports_anon_versioning=no
8815 case `$LD -v 2>&1` in
8816 *GNU\ gold*) supports_anon_versioning=yes ;;
8817 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8818 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8819 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8820 *\ 2.11.*) ;; # other 2.11 versions
8821 *) supports_anon_versioning=yes ;;
8822 esac
8823
8824 # See if GNU ld supports shared libraries.
8825 case $host_os in
8826 aix[3-9]*)
8827 # On AIX/PPC, the GNU linker is very broken
8828 if test "$host_cpu" != ia64; then
8829 ld_shlibs=no
8830 cat <<_LT_EOF 1>&2
8831
8832 *** Warning: the GNU linker, at least up to release 2.19, is reported
8833 *** to be unable to reliably create shared libraries on AIX.
8834 *** Therefore, libtool is disabling shared libraries support. If you
8835 *** really care for shared libraries, you may want to install binutils
8836 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8837 *** You will then need to restart the configuration process.
8838
8839 _LT_EOF
8840 fi
8841 ;;
8842
8843 amigaos*)
8844 case $host_cpu in
8845 powerpc)
8846 # see comment about AmigaOS4 .so support
8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8848 archive_expsym_cmds=''
8849 ;;
8850 m68k)
8851 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)'
8852 hardcode_libdir_flag_spec='-L$libdir'
8853 hardcode_minus_L=yes
8854 ;;
8855 esac
8856 ;;
8857
8858 beos*)
8859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8860 allow_undefined_flag=unsupported
8861 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8862 # support --undefined. This deserves some investigation. FIXME
8863 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864 else
8865 ld_shlibs=no
8866 fi
8867 ;;
8868
8869 cygwin* | mingw* | pw32* | cegcc*)
8870 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8871 # as there is no search path for DLLs.
8872 hardcode_libdir_flag_spec='-L$libdir'
8873 export_dynamic_flag_spec='${wl}--export-all-symbols'
8874 allow_undefined_flag=unsupported
8875 always_export_symbols=no
8876 enable_shared_with_static_runtimes=yes
8877 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8878
8879 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8881 # If the export-symbols file already is a .def file (1st line
8882 # is EXPORTS), use it as is; otherwise, prepend...
8883 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8884 cp $export_symbols $output_objdir/$soname.def;
8885 else
8886 echo EXPORTS > $output_objdir/$soname.def;
8887 cat $export_symbols >> $output_objdir/$soname.def;
8888 fi~
8889 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8890 else
8891 ld_shlibs=no
8892 fi
8893 ;;
8894
8895 haiku*)
8896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8897 link_all_deplibs=yes
8898 ;;
8899
8900 interix[3-9]*)
8901 hardcode_direct=no
8902 hardcode_shlibpath_var=no
8903 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8904 export_dynamic_flag_spec='${wl}-E'
8905 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8906 # Instead, shared libraries are loaded at an image base (0x10000000 by
8907 # default) and relocated if they conflict, which is a slow very memory
8908 # consuming and fragmenting process. To avoid this, we pick a random,
8909 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8910 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8911 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8912 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'
8913 ;;
8914
8915 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8916 tmp_diet=no
8917 if test "$host_os" = linux-dietlibc; then
8918 case $cc_basename in
8919 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8920 esac
8921 fi
8922 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8923 && test "$tmp_diet" = no
8924 then
8925 tmp_addflag=
8926 tmp_sharedflag='-shared'
8927 case $cc_basename,$host_cpu in
8928 pgcc*) # Portland Group C compiler
8929 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'
8930 tmp_addflag=' $pic_flag'
8931 ;;
8932 pgf77* | pgf90* | pgf95* | pgfortran*)
8933 # Portland Group f77 and f90 compilers
8934 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'
8935 tmp_addflag=' $pic_flag -Mnomain' ;;
8936 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8937 tmp_addflag=' -i_dynamic' ;;
8938 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8939 tmp_addflag=' -i_dynamic -nofor_main' ;;
8940 ifc* | ifort*) # Intel Fortran compiler
8941 tmp_addflag=' -nofor_main' ;;
8942 lf95*) # Lahey Fortran 8.1
8943 whole_archive_flag_spec=
8944 tmp_sharedflag='--shared' ;;
8945 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8946 tmp_sharedflag='-qmkshrobj'
8947 tmp_addflag= ;;
8948 nvcc*) # Cuda Compiler Driver 2.2
8949 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'
8950 compiler_needs_object=yes
8951 ;;
8952 esac
8953 case `$CC -V 2>&1 | sed 5q` in
8954 *Sun\ C*) # Sun C 5.9
8955 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'
8956 compiler_needs_object=yes
8957 tmp_sharedflag='-G' ;;
8958 *Sun\ F*) # Sun Fortran 8.3
8959 tmp_sharedflag='-G' ;;
8960 esac
8961 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8962
8963 if test "x$supports_anon_versioning" = xyes; then
8964 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8966 echo "local: *; };" >> $output_objdir/$libname.ver~
8967 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8968 fi
8969
8970 case $cc_basename in
8971 xlf* | bgf* | bgxlf* | mpixlf*)
8972 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8973 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8974 hardcode_libdir_flag_spec=
8975 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8976 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8977 if test "x$supports_anon_versioning" = xyes; then
8978 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8980 echo "local: *; };" >> $output_objdir/$libname.ver~
8981 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8982 fi
8983 ;;
8984 esac
8985 else
8986 ld_shlibs=no
8987 fi
8988 ;;
8989
8990 netbsd*)
8991 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8992 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8993 wlarc=
8994 else
8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8996 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8997 fi
8998 ;;
8999
9000 solaris*)
9001 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9002 ld_shlibs=no
9003 cat <<_LT_EOF 1>&2
9004
9005 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9006 *** create shared libraries on Solaris systems. Therefore, libtool
9007 *** is disabling shared libraries support. We urge you to upgrade GNU
9008 *** binutils to release 2.9.1 or newer. Another option is to modify
9009 *** your PATH or compiler configuration so that the native linker is
9010 *** used, and then restart.
9011
9012 _LT_EOF
9013 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9016 else
9017 ld_shlibs=no
9018 fi
9019 ;;
9020
9021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9022 case `$LD -v 2>&1` in
9023 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9024 ld_shlibs=no
9025 cat <<_LT_EOF 1>&2
9026
9027 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9028 *** reliably create shared libraries on SCO systems. Therefore, libtool
9029 *** is disabling shared libraries support. We urge you to upgrade GNU
9030 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9031 *** your PATH or compiler configuration so that the native linker is
9032 *** used, and then restart.
9033
9034 _LT_EOF
9035 ;;
9036 *)
9037 # For security reasons, it is highly recommended that you always
9038 # use absolute paths for naming shared libraries, and exclude the
9039 # DT_RUNPATH tag from executables and libraries. But doing so
9040 # requires that you compile everything twice, which is a pain.
9041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9045 else
9046 ld_shlibs=no
9047 fi
9048 ;;
9049 esac
9050 ;;
9051
9052 sunos4*)
9053 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9054 wlarc=
9055 hardcode_direct=yes
9056 hardcode_shlibpath_var=no
9057 ;;
9058
9059 *)
9060 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9062 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9063 else
9064 ld_shlibs=no
9065 fi
9066 ;;
9067 esac
9068
9069 if test "$ld_shlibs" = no; then
9070 runpath_var=
9071 hardcode_libdir_flag_spec=
9072 export_dynamic_flag_spec=
9073 whole_archive_flag_spec=
9074 fi
9075 else
9076 # PORTME fill in a description of your system's linker (not GNU ld)
9077 case $host_os in
9078 aix3*)
9079 allow_undefined_flag=unsupported
9080 always_export_symbols=yes
9081 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'
9082 # Note: this linker hardcodes the directories in LIBPATH if there
9083 # are no directories specified by -L.
9084 hardcode_minus_L=yes
9085 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9086 # Neither direct hardcoding nor static linking is supported with a
9087 # broken collect2.
9088 hardcode_direct=unsupported
9089 fi
9090 ;;
9091
9092 aix[4-9]*)
9093 if test "$host_cpu" = ia64; then
9094 # On IA64, the linker does run time linking by default, so we don't
9095 # have to do anything special.
9096 aix_use_runtimelinking=no
9097 exp_sym_flag='-Bexport'
9098 no_entry_flag=""
9099 else
9100 # If we're using GNU nm, then we don't want the "-C" option.
9101 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9102 # Also, AIX nm treats weak defined symbols like other global
9103 # defined symbols, whereas GNU nm marks them as "W".
9104 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9105 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'
9106 else
9107 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'
9108 fi
9109 aix_use_runtimelinking=no
9110
9111 # Test if we are trying to use run time linking or normal
9112 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9113 # need to do runtime linking.
9114 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9115 for ld_flag in $LDFLAGS; do
9116 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9117 aix_use_runtimelinking=yes
9118 break
9119 fi
9120 done
9121 ;;
9122 esac
9123
9124 exp_sym_flag='-bexport'
9125 no_entry_flag='-bnoentry'
9126 fi
9127
9128 # When large executables or shared objects are built, AIX ld can
9129 # have problems creating the table of contents. If linking a library
9130 # or program results in "error TOC overflow" add -mminimal-toc to
9131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9133
9134 archive_cmds=''
9135 hardcode_direct=yes
9136 hardcode_direct_absolute=yes
9137 hardcode_libdir_separator=':'
9138 link_all_deplibs=yes
9139 file_list_spec='${wl}-f,'
9140
9141 if test "$GCC" = yes; then
9142 case $host_os in aix4.[012]|aix4.[012].*)
9143 # We only want to do this on AIX 4.2 and lower, the check
9144 # below for broken collect2 doesn't work under 4.3+
9145 collect2name=`${CC} -print-prog-name=collect2`
9146 if test -f "$collect2name" &&
9147 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9148 then
9149 # We have reworked collect2
9150 :
9151 else
9152 # We have old collect2
9153 hardcode_direct=unsupported
9154 # It fails to find uninstalled libraries when the uninstalled
9155 # path is not listed in the libpath. Setting hardcode_minus_L
9156 # to unsupported forces relinking
9157 hardcode_minus_L=yes
9158 hardcode_libdir_flag_spec='-L$libdir'
9159 hardcode_libdir_separator=
9160 fi
9161 ;;
9162 esac
9163 shared_flag='-shared'
9164 if test "$aix_use_runtimelinking" = yes; then
9165 shared_flag="$shared_flag "'${wl}-G'
9166 fi
9167 else
9168 # not using gcc
9169 if test "$host_cpu" = ia64; then
9170 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9171 # chokes on -Wl,-G. The following line is correct:
9172 shared_flag='-G'
9173 else
9174 if test "$aix_use_runtimelinking" = yes; then
9175 shared_flag='${wl}-G'
9176 else
9177 shared_flag='${wl}-bM:SRE'
9178 fi
9179 fi
9180 fi
9181
9182 export_dynamic_flag_spec='${wl}-bexpall'
9183 # It seems that -bexpall does not export symbols beginning with
9184 # underscore (_), so it is better to generate a list of symbols to export.
9185 always_export_symbols=yes
9186 if test "$aix_use_runtimelinking" = yes; then
9187 # Warning - without using the other runtime loading flags (-brtl),
9188 # -berok will link without error, but may produce a broken library.
9189 allow_undefined_flag='-berok'
9190 # Determine the default libpath from the value encoded in an
9191 # empty executable.
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9194
9195 int
9196 main ()
9197 {
9198
9199 ;
9200 return 0;
9201 }
9202 _ACEOF
9203 if ac_fn_c_try_link "$LINENO"; then :
9204
9205 lt_aix_libpath_sed='
9206 /Import File Strings/,/^$/ {
9207 /^0/ {
9208 s/^0 *\(.*\)$/\1/
9209 p
9210 }
9211 }'
9212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9213 # Check for a 64-bit object if we didn't find anything.
9214 if test -z "$aix_libpath"; then
9215 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9216 fi
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9220 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9221
9222 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9223 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"
9224 else
9225 if test "$host_cpu" = ia64; then
9226 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9227 allow_undefined_flag="-z nodefs"
9228 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"
9229 else
9230 # Determine the default libpath from the value encoded in an
9231 # empty executable.
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9234
9235 int
9236 main ()
9237 {
9238
9239 ;
9240 return 0;
9241 }
9242 _ACEOF
9243 if ac_fn_c_try_link "$LINENO"; then :
9244
9245 lt_aix_libpath_sed='
9246 /Import File Strings/,/^$/ {
9247 /^0/ {
9248 s/^0 *\(.*\)$/\1/
9249 p
9250 }
9251 }'
9252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9253 # Check for a 64-bit object if we didn't find anything.
9254 if test -z "$aix_libpath"; then
9255 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9256 fi
9257 fi
9258 rm -f core conftest.err conftest.$ac_objext \
9259 conftest$ac_exeext conftest.$ac_ext
9260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9261
9262 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9263 # Warning - without using the other run time loading flags,
9264 # -berok will link without error, but may produce a broken library.
9265 no_undefined_flag=' ${wl}-bernotok'
9266 allow_undefined_flag=' ${wl}-berok'
9267 if test "$with_gnu_ld" = yes; then
9268 # We only use this code for GNU lds that support --whole-archive.
9269 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9270 else
9271 # Exported symbols can be pulled into shared objects from archives
9272 whole_archive_flag_spec='$convenience'
9273 fi
9274 archive_cmds_need_lc=yes
9275 # This is similar to how AIX traditionally builds its shared libraries.
9276 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9277 fi
9278 fi
9279 ;;
9280
9281 amigaos*)
9282 case $host_cpu in
9283 powerpc)
9284 # see comment about AmigaOS4 .so support
9285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286 archive_expsym_cmds=''
9287 ;;
9288 m68k)
9289 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9290 hardcode_libdir_flag_spec='-L$libdir'
9291 hardcode_minus_L=yes
9292 ;;
9293 esac
9294 ;;
9295
9296 bsdi[45]*)
9297 export_dynamic_flag_spec=-rdynamic
9298 ;;
9299
9300 cygwin* | mingw* | pw32* | cegcc*)
9301 # When not using gcc, we currently assume that we are using
9302 # Microsoft Visual C++.
9303 # hardcode_libdir_flag_spec is actually meaningless, as there is
9304 # no search path for DLLs.
9305 hardcode_libdir_flag_spec=' '
9306 allow_undefined_flag=unsupported
9307 # Tell ltmain to make .lib files, not .a files.
9308 libext=lib
9309 # Tell ltmain to make .dll files, not .so files.
9310 shrext_cmds=".dll"
9311 # FIXME: Setting linknames here is a bad hack.
9312 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9313 # The linker will automatically build a .lib file if we build a DLL.
9314 old_archive_from_new_cmds='true'
9315 # FIXME: Should let the user specify the lib program.
9316 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9317 fix_srcfile_path='`cygpath -w "$srcfile"`'
9318 enable_shared_with_static_runtimes=yes
9319 ;;
9320
9321 darwin* | rhapsody*)
9322
9323
9324 archive_cmds_need_lc=no
9325 hardcode_direct=no
9326 hardcode_automatic=yes
9327 hardcode_shlibpath_var=unsupported
9328 if test "$lt_cv_ld_force_load" = "yes"; then
9329 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\"`'
9330 else
9331 whole_archive_flag_spec=''
9332 fi
9333 link_all_deplibs=yes
9334 allow_undefined_flag="$_lt_dar_allow_undefined"
9335 case $cc_basename in
9336 ifort*) _lt_dar_can_shared=yes ;;
9337 *) _lt_dar_can_shared=$GCC ;;
9338 esac
9339 if test "$_lt_dar_can_shared" = "yes"; then
9340 output_verbose_link_cmd=func_echo_all
9341 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9342 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9343 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}"
9344 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}"
9345
9346 else
9347 ld_shlibs=no
9348 fi
9349
9350 ;;
9351
9352 dgux*)
9353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9354 hardcode_libdir_flag_spec='-L$libdir'
9355 hardcode_shlibpath_var=no
9356 ;;
9357
9358 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9359 # support. Future versions do this automatically, but an explicit c++rt0.o
9360 # does not break anything, and helps significantly (at the cost of a little
9361 # extra space).
9362 freebsd2.2*)
9363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9364 hardcode_libdir_flag_spec='-R$libdir'
9365 hardcode_direct=yes
9366 hardcode_shlibpath_var=no
9367 ;;
9368
9369 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9370 freebsd2.*)
9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_direct=yes
9373 hardcode_minus_L=yes
9374 hardcode_shlibpath_var=no
9375 ;;
9376
9377 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9378 freebsd* | dragonfly*)
9379 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9380 hardcode_libdir_flag_spec='-R$libdir'
9381 hardcode_direct=yes
9382 hardcode_shlibpath_var=no
9383 ;;
9384
9385 hpux9*)
9386 if test "$GCC" = yes; then
9387 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'
9388 else
9389 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'
9390 fi
9391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9392 hardcode_libdir_separator=:
9393 hardcode_direct=yes
9394
9395 # hardcode_minus_L: Not really in the search PATH,
9396 # but as the default location of the library.
9397 hardcode_minus_L=yes
9398 export_dynamic_flag_spec='${wl}-E'
9399 ;;
9400
9401 hpux10*)
9402 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9403 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9404 else
9405 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9406 fi
9407 if test "$with_gnu_ld" = no; then
9408 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9409 hardcode_libdir_flag_spec_ld='+b $libdir'
9410 hardcode_libdir_separator=:
9411 hardcode_direct=yes
9412 hardcode_direct_absolute=yes
9413 export_dynamic_flag_spec='${wl}-E'
9414 # hardcode_minus_L: Not really in the search PATH,
9415 # but as the default location of the library.
9416 hardcode_minus_L=yes
9417 fi
9418 ;;
9419
9420 hpux11*)
9421 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9422 case $host_cpu in
9423 hppa*64*)
9424 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9425 ;;
9426 ia64*)
9427 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9428 ;;
9429 *)
9430 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9431 ;;
9432 esac
9433 else
9434 case $host_cpu in
9435 hppa*64*)
9436 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 ;;
9438 ia64*)
9439 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9440 ;;
9441 *)
9442
9443 # Older versions of the 11.00 compiler do not understand -b yet
9444 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9446 $as_echo_n "checking if $CC understands -b... " >&6; }
9447 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 lt_cv_prog_compiler__b=no
9451 save_LDFLAGS="$LDFLAGS"
9452 LDFLAGS="$LDFLAGS -b"
9453 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9454 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9455 # The linker can only warn and ignore the option if not recognized
9456 # So say no if there are warnings
9457 if test -s conftest.err; then
9458 # Append any errors to the config.log.
9459 cat conftest.err 1>&5
9460 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9462 if diff conftest.exp conftest.er2 >/dev/null; then
9463 lt_cv_prog_compiler__b=yes
9464 fi
9465 else
9466 lt_cv_prog_compiler__b=yes
9467 fi
9468 fi
9469 $RM -r conftest*
9470 LDFLAGS="$save_LDFLAGS"
9471
9472 fi
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9474 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9475
9476 if test x"$lt_cv_prog_compiler__b" = xyes; then
9477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9478 else
9479 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9480 fi
9481
9482 ;;
9483 esac
9484 fi
9485 if test "$with_gnu_ld" = no; then
9486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9487 hardcode_libdir_separator=:
9488
9489 case $host_cpu in
9490 hppa*64*|ia64*)
9491 hardcode_direct=no
9492 hardcode_shlibpath_var=no
9493 ;;
9494 *)
9495 hardcode_direct=yes
9496 hardcode_direct_absolute=yes
9497 export_dynamic_flag_spec='${wl}-E'
9498
9499 # hardcode_minus_L: Not really in the search PATH,
9500 # but as the default location of the library.
9501 hardcode_minus_L=yes
9502 ;;
9503 esac
9504 fi
9505 ;;
9506
9507 irix5* | irix6* | nonstopux*)
9508 if test "$GCC" = yes; then
9509 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'
9510 # Try to use the -exported_symbol ld option, if it does not
9511 # work, assume that -exports_file does not work either and
9512 # implicitly export all symbols.
9513 save_LDFLAGS="$LDFLAGS"
9514 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9517 int foo(void) {}
9518 _ACEOF
9519 if ac_fn_c_try_link "$LINENO"; then :
9520 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'
9521
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
9525 LDFLAGS="$save_LDFLAGS"
9526 else
9527 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'
9528 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'
9529 fi
9530 archive_cmds_need_lc='no'
9531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9532 hardcode_libdir_separator=:
9533 inherit_rpath=yes
9534 link_all_deplibs=yes
9535 ;;
9536
9537 netbsd*)
9538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9540 else
9541 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9542 fi
9543 hardcode_libdir_flag_spec='-R$libdir'
9544 hardcode_direct=yes
9545 hardcode_shlibpath_var=no
9546 ;;
9547
9548 newsos6)
9549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9550 hardcode_direct=yes
9551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552 hardcode_libdir_separator=:
9553 hardcode_shlibpath_var=no
9554 ;;
9555
9556 *nto* | *qnx*)
9557 ;;
9558
9559 openbsd*)
9560 if test -f /usr/libexec/ld.so; then
9561 hardcode_direct=yes
9562 hardcode_shlibpath_var=no
9563 hardcode_direct_absolute=yes
9564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9567 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9568 export_dynamic_flag_spec='${wl}-E'
9569 else
9570 case $host_os in
9571 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9573 hardcode_libdir_flag_spec='-R$libdir'
9574 ;;
9575 *)
9576 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9577 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9578 ;;
9579 esac
9580 fi
9581 else
9582 ld_shlibs=no
9583 fi
9584 ;;
9585
9586 os2*)
9587 hardcode_libdir_flag_spec='-L$libdir'
9588 hardcode_minus_L=yes
9589 allow_undefined_flag=unsupported
9590 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'
9591 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9592 ;;
9593
9594 osf3*)
9595 if test "$GCC" = yes; then
9596 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9597 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'
9598 else
9599 allow_undefined_flag=' -expect_unresolved \*'
9600 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'
9601 fi
9602 archive_cmds_need_lc='no'
9603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604 hardcode_libdir_separator=:
9605 ;;
9606
9607 osf4* | osf5*) # as osf3* with the addition of -msym flag
9608 if test "$GCC" = yes; then
9609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9610 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'
9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 else
9613 allow_undefined_flag=' -expect_unresolved \*'
9614 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'
9615 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~
9616 $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'
9617
9618 # Both c and cxx compiler support -rpath directly
9619 hardcode_libdir_flag_spec='-rpath $libdir'
9620 fi
9621 archive_cmds_need_lc='no'
9622 hardcode_libdir_separator=:
9623 ;;
9624
9625 solaris*)
9626 no_undefined_flag=' -z defs'
9627 if test "$GCC" = yes; then
9628 wlarc='${wl}'
9629 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9631 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9632 else
9633 case `$CC -V 2>&1` in
9634 *"Compilers 5.0"*)
9635 wlarc=''
9636 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9638 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9639 ;;
9640 *)
9641 wlarc='${wl}'
9642 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9644 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9645 ;;
9646 esac
9647 fi
9648 hardcode_libdir_flag_spec='-R$libdir'
9649 hardcode_shlibpath_var=no
9650 case $host_os in
9651 solaris2.[0-5] | solaris2.[0-5].*) ;;
9652 *)
9653 # The compiler driver will combine and reorder linker options,
9654 # but understands `-z linker_flag'. GCC discards it without `$wl',
9655 # but is careful enough not to reorder.
9656 # Supported since Solaris 2.6 (maybe 2.5.1?)
9657 if test "$GCC" = yes; then
9658 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9659 else
9660 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9661 fi
9662 ;;
9663 esac
9664 link_all_deplibs=yes
9665 ;;
9666
9667 sunos4*)
9668 if test "x$host_vendor" = xsequent; then
9669 # Use $CC to link under sequent, because it throws in some extra .o
9670 # files that make .init and .fini sections work.
9671 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9672 else
9673 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9674 fi
9675 hardcode_libdir_flag_spec='-L$libdir'
9676 hardcode_direct=yes
9677 hardcode_minus_L=yes
9678 hardcode_shlibpath_var=no
9679 ;;
9680
9681 sysv4)
9682 case $host_vendor in
9683 sni)
9684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_direct=yes # is this really true???
9686 ;;
9687 siemens)
9688 ## LD is ld it makes a PLAMLIB
9689 ## CC just makes a GrossModule.
9690 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9691 reload_cmds='$CC -r -o $output$reload_objs'
9692 hardcode_direct=no
9693 ;;
9694 motorola)
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9697 ;;
9698 esac
9699 runpath_var='LD_RUN_PATH'
9700 hardcode_shlibpath_var=no
9701 ;;
9702
9703 sysv4.3*)
9704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705 hardcode_shlibpath_var=no
9706 export_dynamic_flag_spec='-Bexport'
9707 ;;
9708
9709 sysv4*MP*)
9710 if test -d /usr/nec; then
9711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_shlibpath_var=no
9713 runpath_var=LD_RUN_PATH
9714 hardcode_runpath_var=yes
9715 ld_shlibs=yes
9716 fi
9717 ;;
9718
9719 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9720 no_undefined_flag='${wl}-z,text'
9721 archive_cmds_need_lc=no
9722 hardcode_shlibpath_var=no
9723 runpath_var='LD_RUN_PATH'
9724
9725 if test "$GCC" = yes; then
9726 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 else
9729 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 fi
9732 ;;
9733
9734 sysv5* | sco3.2v5* | sco5v6*)
9735 # Note: We can NOT use -z defs as we might desire, because we do not
9736 # link with -lc, and that would cause any symbols used from libc to
9737 # always be unresolved, which means just about no library would
9738 # ever link correctly. If we're not using GNU ld we use -z text
9739 # though, which does catch some bad symbols but isn't as heavy-handed
9740 # as -z defs.
9741 no_undefined_flag='${wl}-z,text'
9742 allow_undefined_flag='${wl}-z,nodefs'
9743 archive_cmds_need_lc=no
9744 hardcode_shlibpath_var=no
9745 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9746 hardcode_libdir_separator=':'
9747 link_all_deplibs=yes
9748 export_dynamic_flag_spec='${wl}-Bexport'
9749 runpath_var='LD_RUN_PATH'
9750
9751 if test "$GCC" = yes; then
9752 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 else
9755 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 fi
9758 ;;
9759
9760 uts4*)
9761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 hardcode_shlibpath_var=no
9764 ;;
9765
9766 *)
9767 ld_shlibs=no
9768 ;;
9769 esac
9770
9771 if test x$host_vendor = xsni; then
9772 case $host in
9773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9774 export_dynamic_flag_spec='${wl}-Blargedynsym'
9775 ;;
9776 esac
9777 fi
9778 fi
9779
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9781 $as_echo "$ld_shlibs" >&6; }
9782 test "$ld_shlibs" = no && can_build_shared=no
9783
9784 with_gnu_ld=$with_gnu_ld
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800 #
9801 # Do we need to explicitly link libc?
9802 #
9803 case "x$archive_cmds_need_lc" in
9804 x|xyes)
9805 # Assume -lc should be added
9806 archive_cmds_need_lc=yes
9807
9808 if test "$enable_shared" = yes && test "$GCC" = yes; then
9809 case $archive_cmds in
9810 *'~'*)
9811 # FIXME: we may have to deal with multi-command sequences.
9812 ;;
9813 '$CC '*)
9814 # Test whether the compiler implicitly links with -lc since on some
9815 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9816 # to ld, don't add -lc before -lgcc.
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9818 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9819 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 $RM conftest*
9823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9824
9825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9826 (eval $ac_compile) 2>&5
9827 ac_status=$?
9828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9829 test $ac_status = 0; } 2>conftest.err; then
9830 soname=conftest
9831 lib=conftest
9832 libobjs=conftest.$ac_objext
9833 deplibs=
9834 wl=$lt_prog_compiler_wl
9835 pic_flag=$lt_prog_compiler_pic
9836 compiler_flags=-v
9837 linker_flags=-v
9838 verstring=
9839 output_objdir=.
9840 libname=conftest
9841 lt_save_allow_undefined_flag=$allow_undefined_flag
9842 allow_undefined_flag=
9843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9844 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9845 ac_status=$?
9846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9847 test $ac_status = 0; }
9848 then
9849 lt_cv_archive_cmds_need_lc=no
9850 else
9851 lt_cv_archive_cmds_need_lc=yes
9852 fi
9853 allow_undefined_flag=$lt_save_allow_undefined_flag
9854 else
9855 cat conftest.err 1>&5
9856 fi
9857 $RM conftest*
9858
9859 fi
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9861 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9862 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9863 ;;
9864 esac
9865 fi
9866 ;;
9867 esac
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10026 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10027
10028 if test "$GCC" = yes; then
10029 case $host_os in
10030 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10031 *) lt_awk_arg="/^libraries:/" ;;
10032 esac
10033 case $host_os in
10034 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10035 *) lt_sed_strip_eq="s,=/,/,g" ;;
10036 esac
10037 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10038 case $lt_search_path_spec in
10039 *\;*)
10040 # if the path contains ";" then we assume it to be the separator
10041 # otherwise default to the standard path separator (i.e. ":") - it is
10042 # assumed that no part of a normal pathname contains ";" but that should
10043 # okay in the real world where ";" in dirpaths is itself problematic.
10044 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10045 ;;
10046 *)
10047 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10048 ;;
10049 esac
10050 # Ok, now we have the path, separated by spaces, we can step through it
10051 # and add multilib dir if necessary.
10052 lt_tmp_lt_search_path_spec=
10053 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10054 for lt_sys_path in $lt_search_path_spec; do
10055 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10057 else
10058 test -d "$lt_sys_path" && \
10059 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10060 fi
10061 done
10062 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10063 BEGIN {RS=" "; FS="/|\n";} {
10064 lt_foo="";
10065 lt_count=0;
10066 for (lt_i = NF; lt_i > 0; lt_i--) {
10067 if ($lt_i != "" && $lt_i != ".") {
10068 if ($lt_i == "..") {
10069 lt_count++;
10070 } else {
10071 if (lt_count == 0) {
10072 lt_foo="/" $lt_i lt_foo;
10073 } else {
10074 lt_count--;
10075 }
10076 }
10077 }
10078 }
10079 if (lt_foo != "") { lt_freq[lt_foo]++; }
10080 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10081 }'`
10082 # AWK program above erroneously prepends '/' to C:/dos/paths
10083 # for these hosts.
10084 case $host_os in
10085 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10086 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10087 esac
10088 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10089 else
10090 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10091 fi
10092 library_names_spec=
10093 libname_spec='lib$name'
10094 soname_spec=
10095 shrext_cmds=".so"
10096 postinstall_cmds=
10097 postuninstall_cmds=
10098 finish_cmds=
10099 finish_eval=
10100 shlibpath_var=
10101 shlibpath_overrides_runpath=unknown
10102 version_type=none
10103 dynamic_linker="$host_os ld.so"
10104 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10105 need_lib_prefix=unknown
10106 hardcode_into_libs=no
10107
10108 # when you set need_version to no, make sure it does not cause -set_version
10109 # flags to be left without arguments
10110 need_version=unknown
10111
10112 case $host_os in
10113 aix3*)
10114 version_type=linux
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10116 shlibpath_var=LIBPATH
10117
10118 # AIX 3 has no versioning support, so we append a major version to the name.
10119 soname_spec='${libname}${release}${shared_ext}$major'
10120 ;;
10121
10122 aix[4-9]*)
10123 version_type=linux
10124 need_lib_prefix=no
10125 need_version=no
10126 hardcode_into_libs=yes
10127 if test "$host_cpu" = ia64; then
10128 # AIX 5 supports IA64
10129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10130 shlibpath_var=LD_LIBRARY_PATH
10131 else
10132 # With GCC up to 2.95.x, collect2 would create an import file
10133 # for dependence libraries. The import file would start with
10134 # the line `#! .'. This would cause the generated library to
10135 # depend on `.', always an invalid library. This was fixed in
10136 # development snapshots of GCC prior to 3.0.
10137 case $host_os in
10138 aix4 | aix4.[01] | aix4.[01].*)
10139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10140 echo ' yes '
10141 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10142 :
10143 else
10144 can_build_shared=no
10145 fi
10146 ;;
10147 esac
10148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10149 # soname into executable. Probably we can add versioning support to
10150 # collect2, so additional links can be useful in future.
10151 if test "$aix_use_runtimelinking" = yes; then
10152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10153 # instead of lib<name>.a to let people know that these are not
10154 # typical AIX shared libraries.
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 else
10157 # We preserve .a as extension for shared libraries through AIX4.2
10158 # and later when we are not doing run time linking.
10159 library_names_spec='${libname}${release}.a $libname.a'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 fi
10162 shlibpath_var=LIBPATH
10163 fi
10164 ;;
10165
10166 amigaos*)
10167 case $host_cpu in
10168 powerpc)
10169 # Since July 2007 AmigaOS4 officially supports .so libraries.
10170 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 ;;
10173 m68k)
10174 library_names_spec='$libname.ixlibrary $libname.a'
10175 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10176 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'
10177 ;;
10178 esac
10179 ;;
10180
10181 beos*)
10182 library_names_spec='${libname}${shared_ext}'
10183 dynamic_linker="$host_os ld.so"
10184 shlibpath_var=LIBRARY_PATH
10185 ;;
10186
10187 bsdi[45]*)
10188 version_type=linux
10189 need_version=no
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10196 # the default ld.so.conf also contains /usr/contrib/lib and
10197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10198 # libtool to hard-code these into programs
10199 ;;
10200
10201 cygwin* | mingw* | pw32* | cegcc*)
10202 version_type=windows
10203 shrext_cmds=".dll"
10204 need_version=no
10205 need_lib_prefix=no
10206
10207 case $GCC,$host_os in
10208 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10209 library_names_spec='$libname.dll.a'
10210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10211 postinstall_cmds='base_file=`basename \${file}`~
10212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10213 dldir=$destdir/`dirname \$dlpath`~
10214 test -d \$dldir || mkdir -p \$dldir~
10215 $install_prog $dir/$dlname \$dldir/$dlname~
10216 chmod a+x \$dldir/$dlname~
10217 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10218 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10219 fi'
10220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10221 dlpath=$dir/\$dldll~
10222 $RM \$dlpath'
10223 shlibpath_overrides_runpath=yes
10224
10225 case $host_os in
10226 cygwin*)
10227 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10228 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10229
10230 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10231 ;;
10232 mingw* | cegcc*)
10233 # MinGW DLLs use traditional 'lib' prefix
10234 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10235 ;;
10236 pw32*)
10237 # pw32 DLLs use 'pw' prefix rather than 'lib'
10238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10239 ;;
10240 esac
10241 ;;
10242
10243 *)
10244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10245 ;;
10246 esac
10247 dynamic_linker='Win32 ld.exe'
10248 # FIXME: first we should search . and the directory the executable is in
10249 shlibpath_var=PATH
10250 ;;
10251
10252 darwin* | rhapsody*)
10253 dynamic_linker="$host_os dyld"
10254 version_type=darwin
10255 need_lib_prefix=no
10256 need_version=no
10257 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10258 soname_spec='${libname}${release}${major}$shared_ext'
10259 shlibpath_overrides_runpath=yes
10260 shlibpath_var=DYLD_LIBRARY_PATH
10261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10262
10263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10265 ;;
10266
10267 dgux*)
10268 version_type=linux
10269 need_lib_prefix=no
10270 need_version=no
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 ;;
10275
10276 freebsd* | dragonfly*)
10277 # DragonFly does not have aout. When/if they implement a new
10278 # versioning mechanism, adjust this.
10279 if test -x /usr/bin/objformat; then
10280 objformat=`/usr/bin/objformat`
10281 else
10282 case $host_os in
10283 freebsd[23].*) objformat=aout ;;
10284 *) objformat=elf ;;
10285 esac
10286 fi
10287 version_type=freebsd-$objformat
10288 case $version_type in
10289 freebsd-elf*)
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10291 need_version=no
10292 need_lib_prefix=no
10293 ;;
10294 freebsd-*)
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10296 need_version=yes
10297 ;;
10298 esac
10299 shlibpath_var=LD_LIBRARY_PATH
10300 case $host_os in
10301 freebsd2.*)
10302 shlibpath_overrides_runpath=yes
10303 ;;
10304 freebsd3.[01]* | freebsdelf3.[01]*)
10305 shlibpath_overrides_runpath=yes
10306 hardcode_into_libs=yes
10307 ;;
10308 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10309 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10310 shlibpath_overrides_runpath=no
10311 hardcode_into_libs=yes
10312 ;;
10313 *) # from 4.6 on, and DragonFly
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10316 ;;
10317 esac
10318 ;;
10319
10320 gnu*)
10321 version_type=linux
10322 need_lib_prefix=no
10323 need_version=no
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 hardcode_into_libs=yes
10328 ;;
10329
10330 haiku*)
10331 version_type=linux
10332 need_lib_prefix=no
10333 need_version=no
10334 dynamic_linker="$host_os runtime_loader"
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 shlibpath_var=LIBRARY_PATH
10338 shlibpath_overrides_runpath=yes
10339 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10340 hardcode_into_libs=yes
10341 ;;
10342
10343 hpux9* | hpux10* | hpux11*)
10344 # Give a soname corresponding to the major version so that dld.sl refuses to
10345 # link against other versions.
10346 version_type=sunos
10347 need_lib_prefix=no
10348 need_version=no
10349 case $host_cpu in
10350 ia64*)
10351 shrext_cmds='.so'
10352 hardcode_into_libs=yes
10353 dynamic_linker="$host_os dld.so"
10354 shlibpath_var=LD_LIBRARY_PATH
10355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 if test "X$HPUX_IA64_MODE" = X32; then
10359 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10360 else
10361 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10362 fi
10363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10364 ;;
10365 hppa*64*)
10366 shrext_cmds='.sl'
10367 hardcode_into_libs=yes
10368 dynamic_linker="$host_os dld.sl"
10369 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10375 ;;
10376 *)
10377 shrext_cmds='.sl'
10378 dynamic_linker="$host_os dld.sl"
10379 shlibpath_var=SHLIB_PATH
10380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 ;;
10384 esac
10385 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10386 postinstall_cmds='chmod 555 $lib'
10387 # or fails outright, so override atomically:
10388 install_override_mode=555
10389 ;;
10390
10391 interix[3-9]*)
10392 version_type=linux
10393 need_lib_prefix=no
10394 need_version=no
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 shlibpath_overrides_runpath=no
10400 hardcode_into_libs=yes
10401 ;;
10402
10403 irix5* | irix6* | nonstopux*)
10404 case $host_os in
10405 nonstopux*) version_type=nonstopux ;;
10406 *)
10407 if test "$lt_cv_prog_gnu_ld" = yes; then
10408 version_type=linux
10409 else
10410 version_type=irix
10411 fi ;;
10412 esac
10413 need_lib_prefix=no
10414 need_version=no
10415 soname_spec='${libname}${release}${shared_ext}$major'
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10417 case $host_os in
10418 irix5* | nonstopux*)
10419 libsuff= shlibsuff=
10420 ;;
10421 *)
10422 case $LD in # libtool.m4 will add one of these switches to LD
10423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10424 libsuff= shlibsuff= libmagic=32-bit;;
10425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10426 libsuff=32 shlibsuff=N32 libmagic=N32;;
10427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10428 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10429 *) libsuff= shlibsuff= libmagic=never-match;;
10430 esac
10431 ;;
10432 esac
10433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10434 shlibpath_overrides_runpath=no
10435 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10436 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10437 hardcode_into_libs=yes
10438 ;;
10439
10440 # No shared lib support for Linux oldld, aout, or coff.
10441 linux*oldld* | linux*aout* | linux*coff*)
10442 dynamic_linker=no
10443 ;;
10444
10445 # This must be Linux ELF.
10446 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10447 version_type=linux
10448 need_lib_prefix=no
10449 need_version=no
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=no
10455
10456 # Some binutils ld are patched to set DT_RUNPATH
10457 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 lt_cv_shlibpath_overrides_runpath=no
10461 save_LDFLAGS=$LDFLAGS
10462 save_libdir=$libdir
10463 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10464 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10467
10468 int
10469 main ()
10470 {
10471
10472 ;
10473 return 0;
10474 }
10475 _ACEOF
10476 if ac_fn_c_try_link "$LINENO"; then :
10477 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10478 lt_cv_shlibpath_overrides_runpath=yes
10479 fi
10480 fi
10481 rm -f core conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10483 LDFLAGS=$save_LDFLAGS
10484 libdir=$save_libdir
10485
10486 fi
10487
10488 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10489
10490 # This implies no fast_install, which is unacceptable.
10491 # Some rework will be needed to allow for fast_install
10492 # before this can be enabled.
10493 hardcode_into_libs=yes
10494
10495 # Append ld.so.conf contents to the search path
10496 if test -f /etc/ld.so.conf; then
10497 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' ' '`
10498 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10499 fi
10500
10501 # We used to test for /lib/ld.so.1 and disable shared libraries on
10502 # powerpc, because MkLinux only supported shared libraries with the
10503 # GNU dynamic linker. Since this was broken with cross compilers,
10504 # most powerpc-linux boxes support dynamic linking these days and
10505 # people can always --disable-shared, the test was removed, and we
10506 # assume the GNU/Linux dynamic linker is in use.
10507 dynamic_linker='GNU/Linux ld.so'
10508 ;;
10509
10510 netbsd*)
10511 version_type=sunos
10512 need_lib_prefix=no
10513 need_version=no
10514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10517 dynamic_linker='NetBSD (a.out) ld.so'
10518 else
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 dynamic_linker='NetBSD ld.elf_so'
10522 fi
10523 shlibpath_var=LD_LIBRARY_PATH
10524 shlibpath_overrides_runpath=yes
10525 hardcode_into_libs=yes
10526 ;;
10527
10528 newsos6)
10529 version_type=linux
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531 shlibpath_var=LD_LIBRARY_PATH
10532 shlibpath_overrides_runpath=yes
10533 ;;
10534
10535 *nto* | *qnx*)
10536 version_type=qnx
10537 need_lib_prefix=no
10538 need_version=no
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540 soname_spec='${libname}${release}${shared_ext}$major'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 shlibpath_overrides_runpath=no
10543 hardcode_into_libs=yes
10544 dynamic_linker='ldqnx.so'
10545 ;;
10546
10547 openbsd*)
10548 version_type=sunos
10549 sys_lib_dlsearch_path_spec="/usr/lib"
10550 need_lib_prefix=no
10551 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10552 case $host_os in
10553 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10554 *) need_version=no ;;
10555 esac
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10560 case $host_os in
10561 openbsd2.[89] | openbsd2.[89].*)
10562 shlibpath_overrides_runpath=no
10563 ;;
10564 *)
10565 shlibpath_overrides_runpath=yes
10566 ;;
10567 esac
10568 else
10569 shlibpath_overrides_runpath=yes
10570 fi
10571 ;;
10572
10573 os2*)
10574 libname_spec='$name'
10575 shrext_cmds=".dll"
10576 need_lib_prefix=no
10577 library_names_spec='$libname${shared_ext} $libname.a'
10578 dynamic_linker='OS/2 ld.exe'
10579 shlibpath_var=LIBPATH
10580 ;;
10581
10582 osf3* | osf4* | osf5*)
10583 version_type=osf
10584 need_lib_prefix=no
10585 need_version=no
10586 soname_spec='${libname}${release}${shared_ext}$major'
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10590 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10591 ;;
10592
10593 rdos*)
10594 dynamic_linker=no
10595 ;;
10596
10597 solaris*)
10598 version_type=linux
10599 need_lib_prefix=no
10600 need_version=no
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 shlibpath_var=LD_LIBRARY_PATH
10604 shlibpath_overrides_runpath=yes
10605 hardcode_into_libs=yes
10606 # ldd complains unless libraries are executable
10607 postinstall_cmds='chmod +x $lib'
10608 ;;
10609
10610 sunos4*)
10611 version_type=sunos
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10613 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10614 shlibpath_var=LD_LIBRARY_PATH
10615 shlibpath_overrides_runpath=yes
10616 if test "$with_gnu_ld" = yes; then
10617 need_lib_prefix=no
10618 fi
10619 need_version=yes
10620 ;;
10621
10622 sysv4 | sysv4.3*)
10623 version_type=linux
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625 soname_spec='${libname}${release}${shared_ext}$major'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 case $host_vendor in
10628 sni)
10629 shlibpath_overrides_runpath=no
10630 need_lib_prefix=no
10631 runpath_var=LD_RUN_PATH
10632 ;;
10633 siemens)
10634 need_lib_prefix=no
10635 ;;
10636 motorola)
10637 need_lib_prefix=no
10638 need_version=no
10639 shlibpath_overrides_runpath=no
10640 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10641 ;;
10642 esac
10643 ;;
10644
10645 sysv4*MP*)
10646 if test -d /usr/nec ;then
10647 version_type=linux
10648 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10649 soname_spec='$libname${shared_ext}.$major'
10650 shlibpath_var=LD_LIBRARY_PATH
10651 fi
10652 ;;
10653
10654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10655 version_type=freebsd-elf
10656 need_lib_prefix=no
10657 need_version=no
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 shlibpath_overrides_runpath=yes
10662 hardcode_into_libs=yes
10663 if test "$with_gnu_ld" = yes; then
10664 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10665 else
10666 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10667 case $host_os in
10668 sco3.2v5*)
10669 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10670 ;;
10671 esac
10672 fi
10673 sys_lib_dlsearch_path_spec='/usr/lib'
10674 ;;
10675
10676 tpf*)
10677 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10678 version_type=linux
10679 need_lib_prefix=no
10680 need_version=no
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 shlibpath_overrides_runpath=no
10684 hardcode_into_libs=yes
10685 ;;
10686
10687 uts4*)
10688 version_type=linux
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 ;;
10693
10694 *)
10695 dynamic_linker=no
10696 ;;
10697 esac
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10699 $as_echo "$dynamic_linker" >&6; }
10700 test "$dynamic_linker" = no && can_build_shared=no
10701
10702 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10703 if test "$GCC" = yes; then
10704 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10705 fi
10706
10707 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10708 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10709 fi
10710 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10711 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10712 fi
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10806 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10807 hardcode_action=
10808 if test -n "$hardcode_libdir_flag_spec" ||
10809 test -n "$runpath_var" ||
10810 test "X$hardcode_automatic" = "Xyes" ; then
10811
10812 # We can hardcode non-existent directories.
10813 if test "$hardcode_direct" != no &&
10814 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10815 # have to relink, otherwise we might link with an installed library
10816 # when we should be linking with a yet-to-be-installed one
10817 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10818 test "$hardcode_minus_L" != no; then
10819 # Linking always hardcodes the temporary library directory.
10820 hardcode_action=relink
10821 else
10822 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10823 hardcode_action=immediate
10824 fi
10825 else
10826 # We cannot hardcode anything, or else we can only hardcode existing
10827 # directories.
10828 hardcode_action=unsupported
10829 fi
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10831 $as_echo "$hardcode_action" >&6; }
10832
10833 if test "$hardcode_action" = relink ||
10834 test "$inherit_rpath" = yes; then
10835 # Fast installation is not supported
10836 enable_fast_install=no
10837 elif test "$shlibpath_overrides_runpath" = yes ||
10838 test "$enable_shared" = no; then
10839 # Fast installation is not necessary
10840 enable_fast_install=needless
10841 fi
10842
10843
10844
10845
10846
10847
10848 if test "x$enable_dlopen" != xyes; then
10849 enable_dlopen=unknown
10850 enable_dlopen_self=unknown
10851 enable_dlopen_self_static=unknown
10852 else
10853 lt_cv_dlopen=no
10854 lt_cv_dlopen_libs=
10855
10856 case $host_os in
10857 beos*)
10858 lt_cv_dlopen="load_add_on"
10859 lt_cv_dlopen_libs=
10860 lt_cv_dlopen_self=yes
10861 ;;
10862
10863 mingw* | pw32* | cegcc*)
10864 lt_cv_dlopen="LoadLibrary"
10865 lt_cv_dlopen_libs=
10866 ;;
10867
10868 cygwin*)
10869 lt_cv_dlopen="dlopen"
10870 lt_cv_dlopen_libs=
10871 ;;
10872
10873 darwin*)
10874 # if libdl is installed we need to link against it
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10876 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10877 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10879 else
10880 ac_check_lib_save_LIBS=$LIBS
10881 LIBS="-ldl $LIBS"
10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10884
10885 /* Override any GCC internal prototype to avoid an error.
10886 Use char because int might match the return type of a GCC
10887 builtin and then its argument prototype would still apply. */
10888 #ifdef __cplusplus
10889 extern "C"
10890 #endif
10891 char dlopen ();
10892 int
10893 main ()
10894 {
10895 return dlopen ();
10896 ;
10897 return 0;
10898 }
10899 _ACEOF
10900 if ac_fn_c_try_link "$LINENO"; then :
10901 ac_cv_lib_dl_dlopen=yes
10902 else
10903 ac_cv_lib_dl_dlopen=no
10904 fi
10905 rm -f core conftest.err conftest.$ac_objext \
10906 conftest$ac_exeext conftest.$ac_ext
10907 LIBS=$ac_check_lib_save_LIBS
10908 fi
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10910 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10911 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10913 else
10914
10915 lt_cv_dlopen="dyld"
10916 lt_cv_dlopen_libs=
10917 lt_cv_dlopen_self=yes
10918
10919 fi
10920
10921 ;;
10922
10923 *)
10924 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10925 if test "x$ac_cv_func_shl_load" = x""yes; then :
10926 lt_cv_dlopen="shl_load"
10927 else
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10929 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10930 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933 ac_check_lib_save_LIBS=$LIBS
10934 LIBS="-ldld $LIBS"
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10937
10938 /* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10941 #ifdef __cplusplus
10942 extern "C"
10943 #endif
10944 char shl_load ();
10945 int
10946 main ()
10947 {
10948 return shl_load ();
10949 ;
10950 return 0;
10951 }
10952 _ACEOF
10953 if ac_fn_c_try_link "$LINENO"; then :
10954 ac_cv_lib_dld_shl_load=yes
10955 else
10956 ac_cv_lib_dld_shl_load=no
10957 fi
10958 rm -f core conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
10960 LIBS=$ac_check_lib_save_LIBS
10961 fi
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10963 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10964 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10965 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10966 else
10967 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10968 if test "x$ac_cv_func_dlopen" = x""yes; then :
10969 lt_cv_dlopen="dlopen"
10970 else
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10972 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10973 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10974 $as_echo_n "(cached) " >&6
10975 else
10976 ac_check_lib_save_LIBS=$LIBS
10977 LIBS="-ldl $LIBS"
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10980
10981 /* Override any GCC internal prototype to avoid an error.
10982 Use char because int might match the return type of a GCC
10983 builtin and then its argument prototype would still apply. */
10984 #ifdef __cplusplus
10985 extern "C"
10986 #endif
10987 char dlopen ();
10988 int
10989 main ()
10990 {
10991 return dlopen ();
10992 ;
10993 return 0;
10994 }
10995 _ACEOF
10996 if ac_fn_c_try_link "$LINENO"; then :
10997 ac_cv_lib_dl_dlopen=yes
10998 else
10999 ac_cv_lib_dl_dlopen=no
11000 fi
11001 rm -f core conftest.err conftest.$ac_objext \
11002 conftest$ac_exeext conftest.$ac_ext
11003 LIBS=$ac_check_lib_save_LIBS
11004 fi
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11006 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11007 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11008 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11009 else
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11011 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11012 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11013 $as_echo_n "(cached) " >&6
11014 else
11015 ac_check_lib_save_LIBS=$LIBS
11016 LIBS="-lsvld $LIBS"
11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11019
11020 /* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
11023 #ifdef __cplusplus
11024 extern "C"
11025 #endif
11026 char dlopen ();
11027 int
11028 main ()
11029 {
11030 return dlopen ();
11031 ;
11032 return 0;
11033 }
11034 _ACEOF
11035 if ac_fn_c_try_link "$LINENO"; then :
11036 ac_cv_lib_svld_dlopen=yes
11037 else
11038 ac_cv_lib_svld_dlopen=no
11039 fi
11040 rm -f core conftest.err conftest.$ac_objext \
11041 conftest$ac_exeext conftest.$ac_ext
11042 LIBS=$ac_check_lib_save_LIBS
11043 fi
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11045 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11046 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11047 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11048 else
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11050 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11051 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11052 $as_echo_n "(cached) " >&6
11053 else
11054 ac_check_lib_save_LIBS=$LIBS
11055 LIBS="-ldld $LIBS"
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11058
11059 /* Override any GCC internal prototype to avoid an error.
11060 Use char because int might match the return type of a GCC
11061 builtin and then its argument prototype would still apply. */
11062 #ifdef __cplusplus
11063 extern "C"
11064 #endif
11065 char dld_link ();
11066 int
11067 main ()
11068 {
11069 return dld_link ();
11070 ;
11071 return 0;
11072 }
11073 _ACEOF
11074 if ac_fn_c_try_link "$LINENO"; then :
11075 ac_cv_lib_dld_dld_link=yes
11076 else
11077 ac_cv_lib_dld_dld_link=no
11078 fi
11079 rm -f core conftest.err conftest.$ac_objext \
11080 conftest$ac_exeext conftest.$ac_ext
11081 LIBS=$ac_check_lib_save_LIBS
11082 fi
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11084 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11085 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11086 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11087 fi
11088
11089
11090 fi
11091
11092
11093 fi
11094
11095
11096 fi
11097
11098
11099 fi
11100
11101
11102 fi
11103
11104 ;;
11105 esac
11106
11107 if test "x$lt_cv_dlopen" != xno; then
11108 enable_dlopen=yes
11109 else
11110 enable_dlopen=no
11111 fi
11112
11113 case $lt_cv_dlopen in
11114 dlopen)
11115 save_CPPFLAGS="$CPPFLAGS"
11116 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11117
11118 save_LDFLAGS="$LDFLAGS"
11119 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11120
11121 save_LIBS="$LIBS"
11122 LIBS="$lt_cv_dlopen_libs $LIBS"
11123
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11125 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11126 if test "${lt_cv_dlopen_self+set}" = set; then :
11127 $as_echo_n "(cached) " >&6
11128 else
11129 if test "$cross_compiling" = yes; then :
11130 lt_cv_dlopen_self=cross
11131 else
11132 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11133 lt_status=$lt_dlunknown
11134 cat > conftest.$ac_ext <<_LT_EOF
11135 #line 11135 "configure"
11136 #include "confdefs.h"
11137
11138 #if HAVE_DLFCN_H
11139 #include <dlfcn.h>
11140 #endif
11141
11142 #include <stdio.h>
11143
11144 #ifdef RTLD_GLOBAL
11145 # define LT_DLGLOBAL RTLD_GLOBAL
11146 #else
11147 # ifdef DL_GLOBAL
11148 # define LT_DLGLOBAL DL_GLOBAL
11149 # else
11150 # define LT_DLGLOBAL 0
11151 # endif
11152 #endif
11153
11154 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11155 find out it does not work in some platform. */
11156 #ifndef LT_DLLAZY_OR_NOW
11157 # ifdef RTLD_LAZY
11158 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11159 # else
11160 # ifdef DL_LAZY
11161 # define LT_DLLAZY_OR_NOW DL_LAZY
11162 # else
11163 # ifdef RTLD_NOW
11164 # define LT_DLLAZY_OR_NOW RTLD_NOW
11165 # else
11166 # ifdef DL_NOW
11167 # define LT_DLLAZY_OR_NOW DL_NOW
11168 # else
11169 # define LT_DLLAZY_OR_NOW 0
11170 # endif
11171 # endif
11172 # endif
11173 # endif
11174 #endif
11175
11176 /* When -fvisbility=hidden is used, assume the code has been annotated
11177 correspondingly for the symbols needed. */
11178 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11179 void fnord () __attribute__((visibility("default")));
11180 #endif
11181
11182 void fnord () { int i=42; }
11183 int main ()
11184 {
11185 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11186 int status = $lt_dlunknown;
11187
11188 if (self)
11189 {
11190 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11191 else
11192 {
11193 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11194 else puts (dlerror ());
11195 }
11196 /* dlclose (self); */
11197 }
11198 else
11199 puts (dlerror ());
11200
11201 return status;
11202 }
11203 _LT_EOF
11204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11205 (eval $ac_link) 2>&5
11206 ac_status=$?
11207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11208 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11209 (./conftest; exit; ) >&5 2>/dev/null
11210 lt_status=$?
11211 case x$lt_status in
11212 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11213 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11214 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11215 esac
11216 else :
11217 # compilation failed
11218 lt_cv_dlopen_self=no
11219 fi
11220 fi
11221 rm -fr conftest*
11222
11223
11224 fi
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11226 $as_echo "$lt_cv_dlopen_self" >&6; }
11227
11228 if test "x$lt_cv_dlopen_self" = xyes; then
11229 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11231 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11232 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 if test "$cross_compiling" = yes; then :
11236 lt_cv_dlopen_self_static=cross
11237 else
11238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11239 lt_status=$lt_dlunknown
11240 cat > conftest.$ac_ext <<_LT_EOF
11241 #line 11241 "configure"
11242 #include "confdefs.h"
11243
11244 #if HAVE_DLFCN_H
11245 #include <dlfcn.h>
11246 #endif
11247
11248 #include <stdio.h>
11249
11250 #ifdef RTLD_GLOBAL
11251 # define LT_DLGLOBAL RTLD_GLOBAL
11252 #else
11253 # ifdef DL_GLOBAL
11254 # define LT_DLGLOBAL DL_GLOBAL
11255 # else
11256 # define LT_DLGLOBAL 0
11257 # endif
11258 #endif
11259
11260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11261 find out it does not work in some platform. */
11262 #ifndef LT_DLLAZY_OR_NOW
11263 # ifdef RTLD_LAZY
11264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11265 # else
11266 # ifdef DL_LAZY
11267 # define LT_DLLAZY_OR_NOW DL_LAZY
11268 # else
11269 # ifdef RTLD_NOW
11270 # define LT_DLLAZY_OR_NOW RTLD_NOW
11271 # else
11272 # ifdef DL_NOW
11273 # define LT_DLLAZY_OR_NOW DL_NOW
11274 # else
11275 # define LT_DLLAZY_OR_NOW 0
11276 # endif
11277 # endif
11278 # endif
11279 # endif
11280 #endif
11281
11282 /* When -fvisbility=hidden is used, assume the code has been annotated
11283 correspondingly for the symbols needed. */
11284 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11285 void fnord () __attribute__((visibility("default")));
11286 #endif
11287
11288 void fnord () { int i=42; }
11289 int main ()
11290 {
11291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11292 int status = $lt_dlunknown;
11293
11294 if (self)
11295 {
11296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11297 else
11298 {
11299 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11300 else puts (dlerror ());
11301 }
11302 /* dlclose (self); */
11303 }
11304 else
11305 puts (dlerror ());
11306
11307 return status;
11308 }
11309 _LT_EOF
11310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11311 (eval $ac_link) 2>&5
11312 ac_status=$?
11313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11314 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11315 (./conftest; exit; ) >&5 2>/dev/null
11316 lt_status=$?
11317 case x$lt_status in
11318 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11319 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11320 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11321 esac
11322 else :
11323 # compilation failed
11324 lt_cv_dlopen_self_static=no
11325 fi
11326 fi
11327 rm -fr conftest*
11328
11329
11330 fi
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11332 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11333 fi
11334
11335 CPPFLAGS="$save_CPPFLAGS"
11336 LDFLAGS="$save_LDFLAGS"
11337 LIBS="$save_LIBS"
11338 ;;
11339 esac
11340
11341 case $lt_cv_dlopen_self in
11342 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11343 *) enable_dlopen_self=unknown ;;
11344 esac
11345
11346 case $lt_cv_dlopen_self_static in
11347 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11348 *) enable_dlopen_self_static=unknown ;;
11349 esac
11350 fi
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368 striplib=
11369 old_striplib=
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11371 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11372 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11373 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11374 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11376 $as_echo "yes" >&6; }
11377 else
11378 # FIXME - insert some real tests, host_os isn't really good enough
11379 case $host_os in
11380 darwin*)
11381 if test -n "$STRIP" ; then
11382 striplib="$STRIP -x"
11383 old_striplib="$STRIP -S"
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11385 $as_echo "yes" >&6; }
11386 else
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388 $as_echo "no" >&6; }
11389 fi
11390 ;;
11391 *)
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; }
11394 ;;
11395 esac
11396 fi
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409 # Report which library types will actually be built
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11411 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11413 $as_echo "$can_build_shared" >&6; }
11414
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11416 $as_echo_n "checking whether to build shared libraries... " >&6; }
11417 test "$can_build_shared" = "no" && enable_shared=no
11418
11419 # On AIX, shared libraries and static libraries use the same namespace, and
11420 # are all built from PIC.
11421 case $host_os in
11422 aix3*)
11423 test "$enable_shared" = yes && enable_static=no
11424 if test -n "$RANLIB"; then
11425 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11426 postinstall_cmds='$RANLIB $lib'
11427 fi
11428 ;;
11429
11430 aix[4-9]*)
11431 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11432 test "$enable_shared" = yes && enable_static=no
11433 fi
11434 ;;
11435 esac
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11437 $as_echo "$enable_shared" >&6; }
11438
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11440 $as_echo_n "checking whether to build static libraries... " >&6; }
11441 # Make sure either enable_shared or enable_static is yes.
11442 test "$enable_shared" = yes || enable_static=yes
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11444 $as_echo "$enable_static" >&6; }
11445
11446
11447
11448
11449 fi
11450 ac_ext=c
11451 ac_cpp='$CPP $CPPFLAGS'
11452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11455
11456 CC="$lt_save_CC"
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470 ac_config_commands="$ac_config_commands libtool"
11471
11472
11473
11474
11475 # Only expand once:
11476
11477
11478
11479 for ac_func in setmode
11480 do :
11481 ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode"
11482 if test "x$ac_cv_func_setmode" = x""yes; then :
11483 cat >>confdefs.h <<_ACEOF
11484 #define HAVE_SETMODE 1
11485 _ACEOF
11486
11487 fi
11488 done
11489
11490
11491 ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl bg eo ja sr"
11492 # If we haven't got the data from the intl directory,
11493 # assume NLS is disabled.
11494 USE_NLS=no
11495 LIBINTL=
11496 LIBINTL_DEP=
11497 INCINTL=
11498 XGETTEXT=
11499 GMSGFMT=
11500 POSUB=
11501
11502 if test -f ../intl/config.intl; then
11503 . ../intl/config.intl
11504 fi
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11506 $as_echo_n "checking whether NLS is requested... " >&6; }
11507 if test x"$USE_NLS" != xyes; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11510 else
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11512 $as_echo "yes" >&6; }
11513
11514 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11515
11516
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11518 $as_echo_n "checking for catalogs to be installed... " >&6; }
11519 # Look for .po and .gmo files in the source directory.
11520 CATALOGS=
11521 XLINGUAS=
11522 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11523 # If there aren't any .gmo files the shell will give us the
11524 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11525 # weeded out.
11526 case "$cat" in *\**)
11527 continue;;
11528 esac
11529 # The quadruple backslash is collapsed to a double backslash
11530 # by the backticks, then collapsed again by the double quotes,
11531 # leaving us with one backslash in the sed expression (right
11532 # before the dot that mustn't act as a wildcard).
11533 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11534 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11535 # The user is allowed to set LINGUAS to a list of languages to
11536 # install catalogs for. If it's empty that means "all of them."
11537 if test "x$LINGUAS" = x; then
11538 CATALOGS="$CATALOGS $cat"
11539 XLINGUAS="$XLINGUAS $lang"
11540 else
11541 case "$LINGUAS" in *$lang*)
11542 CATALOGS="$CATALOGS $cat"
11543 XLINGUAS="$XLINGUAS $lang"
11544 ;;
11545 esac
11546 fi
11547 done
11548 LINGUAS="$XLINGUAS"
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11550 $as_echo "$LINGUAS" >&6; }
11551
11552
11553 DATADIRNAME=share
11554
11555 INSTOBJEXT=.mo
11556
11557 GENCAT=gencat
11558
11559 CATOBJEXT=.gmo
11560
11561 fi
11562
11563 MKINSTALLDIRS=
11564 if test -n "$ac_aux_dir"; then
11565 case "$ac_aux_dir" in
11566 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11567 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11568 esac
11569 fi
11570 if test -z "$MKINSTALLDIRS"; then
11571 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11572 fi
11573
11574
11575
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11577 $as_echo_n "checking whether NLS is requested... " >&6; }
11578 # Check whether --enable-nls was given.
11579 if test "${enable_nls+set}" = set; then :
11580 enableval=$enable_nls; USE_NLS=$enableval
11581 else
11582 USE_NLS=yes
11583 fi
11584
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11586 $as_echo "$USE_NLS" >&6; }
11587
11588
11589
11590
11591
11592
11593 # Prepare PATH_SEPARATOR.
11594 # The user is always right.
11595 if test "${PATH_SEPARATOR+set}" != set; then
11596 echo "#! /bin/sh" >conf$$.sh
11597 echo "exit 0" >>conf$$.sh
11598 chmod +x conf$$.sh
11599 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11600 PATH_SEPARATOR=';'
11601 else
11602 PATH_SEPARATOR=:
11603 fi
11604 rm -f conf$$.sh
11605 fi
11606
11607 # Find out how to test for executable files. Don't use a zero-byte file,
11608 # as systems may use methods other than mode bits to determine executability.
11609 cat >conf$$.file <<_ASEOF
11610 #! /bin/sh
11611 exit 0
11612 _ASEOF
11613 chmod +x conf$$.file
11614 if test -x conf$$.file >/dev/null 2>&1; then
11615 ac_executable_p="test -x"
11616 else
11617 ac_executable_p="test -f"
11618 fi
11619 rm -f conf$$.file
11620
11621 # Extract the first word of "msgfmt", so it can be a program name with args.
11622 set dummy msgfmt; ac_word=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 case "$MSGFMT" in
11629 [\\/]* | ?:[\\/]*)
11630 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11631 ;;
11632 *)
11633 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11634 for ac_dir in $PATH; do
11635 IFS="$ac_save_IFS"
11636 test -z "$ac_dir" && ac_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11639 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11640 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11641 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11642 break 2
11643 fi
11644 fi
11645 done
11646 done
11647 IFS="$ac_save_IFS"
11648 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11649 ;;
11650 esac
11651 fi
11652 MSGFMT="$ac_cv_path_MSGFMT"
11653 if test "$MSGFMT" != ":"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11655 $as_echo "$MSGFMT" >&6; }
11656 else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11659 fi
11660
11661 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11662 set dummy gmsgfmt; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 case $GMSGFMT in
11669 [\\/]* | ?:[\\/]*)
11670 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11671 ;;
11672 *)
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11675 do
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11680 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 break 2
11683 fi
11684 done
11685 done
11686 IFS=$as_save_IFS
11687
11688 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11689 ;;
11690 esac
11691 fi
11692 GMSGFMT=$ac_cv_path_GMSGFMT
11693 if test -n "$GMSGFMT"; then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11695 $as_echo "$GMSGFMT" >&6; }
11696 else
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698 $as_echo "no" >&6; }
11699 fi
11700
11701
11702
11703
11704 # Prepare PATH_SEPARATOR.
11705 # The user is always right.
11706 if test "${PATH_SEPARATOR+set}" != set; then
11707 echo "#! /bin/sh" >conf$$.sh
11708 echo "exit 0" >>conf$$.sh
11709 chmod +x conf$$.sh
11710 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11711 PATH_SEPARATOR=';'
11712 else
11713 PATH_SEPARATOR=:
11714 fi
11715 rm -f conf$$.sh
11716 fi
11717
11718 # Find out how to test for executable files. Don't use a zero-byte file,
11719 # as systems may use methods other than mode bits to determine executability.
11720 cat >conf$$.file <<_ASEOF
11721 #! /bin/sh
11722 exit 0
11723 _ASEOF
11724 chmod +x conf$$.file
11725 if test -x conf$$.file >/dev/null 2>&1; then
11726 ac_executable_p="test -x"
11727 else
11728 ac_executable_p="test -f"
11729 fi
11730 rm -f conf$$.file
11731
11732 # Extract the first word of "xgettext", so it can be a program name with args.
11733 set dummy xgettext; ac_word=$2
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735 $as_echo_n "checking for $ac_word... " >&6; }
11736 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11737 $as_echo_n "(cached) " >&6
11738 else
11739 case "$XGETTEXT" in
11740 [\\/]* | ?:[\\/]*)
11741 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11742 ;;
11743 *)
11744 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11745 for ac_dir in $PATH; do
11746 IFS="$ac_save_IFS"
11747 test -z "$ac_dir" && ac_dir=.
11748 for ac_exec_ext in '' $ac_executable_extensions; do
11749 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11750 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11751 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11752 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11753 break 2
11754 fi
11755 fi
11756 done
11757 done
11758 IFS="$ac_save_IFS"
11759 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11760 ;;
11761 esac
11762 fi
11763 XGETTEXT="$ac_cv_path_XGETTEXT"
11764 if test "$XGETTEXT" != ":"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11766 $as_echo "$XGETTEXT" >&6; }
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11770 fi
11771
11772 rm -f messages.po
11773
11774
11775 # Prepare PATH_SEPARATOR.
11776 # The user is always right.
11777 if test "${PATH_SEPARATOR+set}" != set; then
11778 echo "#! /bin/sh" >conf$$.sh
11779 echo "exit 0" >>conf$$.sh
11780 chmod +x conf$$.sh
11781 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11782 PATH_SEPARATOR=';'
11783 else
11784 PATH_SEPARATOR=:
11785 fi
11786 rm -f conf$$.sh
11787 fi
11788
11789 # Find out how to test for executable files. Don't use a zero-byte file,
11790 # as systems may use methods other than mode bits to determine executability.
11791 cat >conf$$.file <<_ASEOF
11792 #! /bin/sh
11793 exit 0
11794 _ASEOF
11795 chmod +x conf$$.file
11796 if test -x conf$$.file >/dev/null 2>&1; then
11797 ac_executable_p="test -x"
11798 else
11799 ac_executable_p="test -f"
11800 fi
11801 rm -f conf$$.file
11802
11803 # Extract the first word of "msgmerge", so it can be a program name with args.
11804 set dummy msgmerge; ac_word=$2
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806 $as_echo_n "checking for $ac_word... " >&6; }
11807 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 case "$MSGMERGE" in
11811 [\\/]* | ?:[\\/]*)
11812 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11813 ;;
11814 *)
11815 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11816 for ac_dir in $PATH; do
11817 IFS="$ac_save_IFS"
11818 test -z "$ac_dir" && ac_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11821 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11822 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11823 break 2
11824 fi
11825 fi
11826 done
11827 done
11828 IFS="$ac_save_IFS"
11829 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11830 ;;
11831 esac
11832 fi
11833 MSGMERGE="$ac_cv_path_MSGMERGE"
11834 if test "$MSGMERGE" != ":"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11836 $as_echo "$MSGMERGE" >&6; }
11837 else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839 $as_echo "no" >&6; }
11840 fi
11841
11842
11843 if test "$GMSGFMT" != ":"; then
11844 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11845 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11846 : ;
11847 else
11848 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11850 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11851 GMSGFMT=":"
11852 fi
11853 fi
11854
11855 if test "$XGETTEXT" != ":"; then
11856 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11857 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11858 : ;
11859 else
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11861 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11862 XGETTEXT=":"
11863 fi
11864 rm -f messages.po
11865 fi
11866
11867 ac_config_commands="$ac_config_commands default-1"
11868
11869
11870
11871
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11873 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11874 # Check whether --enable-maintainer-mode was given.
11875 if test "${enable_maintainer_mode+set}" = set; then :
11876 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11877 else
11878 USE_MAINTAINER_MODE=no
11879 fi
11880
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11882 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11883 if test $USE_MAINTAINER_MODE = yes; then
11884 MAINTAINER_MODE_TRUE=
11885 MAINTAINER_MODE_FALSE='#'
11886 else
11887 MAINTAINER_MODE_TRUE='#'
11888 MAINTAINER_MODE_FALSE=
11889 fi
11890
11891 MAINT=$MAINTAINER_MODE_TRUE
11892
11893
11894 if false; then
11895 GENINSRC_NEVER_TRUE=
11896 GENINSRC_NEVER_FALSE='#'
11897 else
11898 GENINSRC_NEVER_TRUE='#'
11899 GENINSRC_NEVER_FALSE=
11900 fi
11901
11902
11903
11904 for ac_header in sys/gmon_out.h
11905 do :
11906 ac_fn_c_check_header_mongrel "$LINENO" "sys/gmon_out.h" "ac_cv_header_sys_gmon_out_h" "$ac_includes_default"
11907 if test "x$ac_cv_header_sys_gmon_out_h" = x""yes; then :
11908 cat >>confdefs.h <<_ACEOF
11909 #define HAVE_SYS_GMON_OUT_H 1
11910 _ACEOF
11911
11912 fi
11913
11914 done
11915
11916
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
11918 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
11919 if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11924 #include <unistd.h>
11925 int
11926 main ()
11927 {
11928 extern int getopt (int, char *const*, const char *);
11929 ;
11930 return 0;
11931 }
11932 _ACEOF
11933 if ac_fn_c_try_compile "$LINENO"; then :
11934 gprof_cv_decl_getopt_unistd_h=yes
11935 else
11936 gprof_cv_decl_getopt_unistd_h=no
11937 fi
11938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939 fi
11940
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gprof_cv_decl_getopt_unistd_h" >&5
11942 $as_echo "$gprof_cv_decl_getopt_unistd_h" >&6; }
11943 if test $gprof_cv_decl_getopt_unistd_h = yes; then
11944
11945 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
11946
11947 fi
11948
11949 # Some systems have fabs only in -lm, not in -lc.
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
11951 $as_echo_n "checking for library containing fabs... " >&6; }
11952 if test "${ac_cv_search_fabs+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 ac_func_search_save_LIBS=$LIBS
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11958
11959 /* Override any GCC internal prototype to avoid an error.
11960 Use char because int might match the return type of a GCC
11961 builtin and then its argument prototype would still apply. */
11962 #ifdef __cplusplus
11963 extern "C"
11964 #endif
11965 char fabs ();
11966 int
11967 main ()
11968 {
11969 return fabs ();
11970 ;
11971 return 0;
11972 }
11973 _ACEOF
11974 for ac_lib in '' m; do
11975 if test -z "$ac_lib"; then
11976 ac_res="none required"
11977 else
11978 ac_res=-l$ac_lib
11979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11980 fi
11981 if ac_fn_c_try_link "$LINENO"; then :
11982 ac_cv_search_fabs=$ac_res
11983 fi
11984 rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext
11986 if test "${ac_cv_search_fabs+set}" = set; then :
11987 break
11988 fi
11989 done
11990 if test "${ac_cv_search_fabs+set}" = set; then :
11991
11992 else
11993 ac_cv_search_fabs=no
11994 fi
11995 rm conftest.$ac_ext
11996 LIBS=$ac_func_search_save_LIBS
11997 fi
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
11999 $as_echo "$ac_cv_search_fabs" >&6; }
12000 ac_res=$ac_cv_search_fabs
12001 if test "$ac_res" != no; then :
12002 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12003
12004 fi
12005
12006
12007
12008 # Set the 'development' global.
12009 . $srcdir/../bfd/development.sh
12010
12011 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12014 __GNUC__
12015 _ACEOF
12016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12017 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12018
12019 else
12020 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12021 fi
12022 rm -f conftest*
12023
12024
12025 # Check whether --enable-werror was given.
12026 if test "${enable_werror+set}" = set; then :
12027 enableval=$enable_werror; case "${enableval}" in
12028 yes | y) ERROR_ON_WARNING="yes" ;;
12029 no | n) ERROR_ON_WARNING="no" ;;
12030 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12031 esac
12032 fi
12033
12034
12035 # Disable -Wformat by default when using gcc on mingw
12036 case "${host}" in
12037 *-*-mingw32*)
12038 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12039 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12040 fi
12041 ;;
12042 *) ;;
12043 esac
12044
12045 # Enable -Werror by default when using gcc. Turn it off for releases.
12046 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12047 ERROR_ON_WARNING=yes
12048 fi
12049
12050 NO_WERROR=
12051 if test "${ERROR_ON_WARNING}" = yes ; then
12052 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12053 NO_WERROR="-Wno-error"
12054 fi
12055
12056 if test "${GCC}" = yes ; then
12057 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12058 fi
12059
12060 # Check whether --enable-build-warnings was given.
12061 if test "${enable_build_warnings+set}" = set; then :
12062 enableval=$enable_build_warnings; case "${enableval}" in
12063 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12064 no) if test "${GCC}" = yes ; then
12065 WARN_CFLAGS="-w"
12066 fi;;
12067 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12068 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12069 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12070 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12071 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12072 esac
12073 fi
12074
12075
12076 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12077 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12078 fi
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12090
12091 cat >confcache <<\_ACEOF
12092 # This file is a shell script that caches the results of configure
12093 # tests run on this system so they can be shared between configure
12094 # scripts and configure runs, see configure's option --config-cache.
12095 # It is not useful on other systems. If it contains results you don't
12096 # want to keep, you may remove or edit it.
12097 #
12098 # config.status only pays attention to the cache file if you give it
12099 # the --recheck option to rerun configure.
12100 #
12101 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12102 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12103 # following values.
12104
12105 _ACEOF
12106
12107 # The following way of writing the cache mishandles newlines in values,
12108 # but we know of no workaround that is simple, portable, and efficient.
12109 # So, we kill variables containing newlines.
12110 # Ultrix sh set writes to stderr and can't be redirected directly,
12111 # and sets the high bit in the cache file unless we assign to the vars.
12112 (
12113 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12114 eval ac_val=\$$ac_var
12115 case $ac_val in #(
12116 *${as_nl}*)
12117 case $ac_var in #(
12118 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12119 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12120 esac
12121 case $ac_var in #(
12122 _ | IFS | as_nl) ;; #(
12123 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12124 *) { eval $ac_var=; unset $ac_var;} ;;
12125 esac ;;
12126 esac
12127 done
12128
12129 (set) 2>&1 |
12130 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12131 *${as_nl}ac_space=\ *)
12132 # `set' does not quote correctly, so add quotes: double-quote
12133 # substitution turns \\\\ into \\, and sed turns \\ into \.
12134 sed -n \
12135 "s/'/'\\\\''/g;
12136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12137 ;; #(
12138 *)
12139 # `set' quotes correctly as required by POSIX, so do not add quotes.
12140 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12141 ;;
12142 esac |
12143 sort
12144 ) |
12145 sed '
12146 /^ac_cv_env_/b end
12147 t clear
12148 :clear
12149 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12150 t end
12151 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12152 :end' >>confcache
12153 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12154 if test -w "$cache_file"; then
12155 test "x$cache_file" != "x/dev/null" &&
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12157 $as_echo "$as_me: updating cache $cache_file" >&6;}
12158 cat confcache >$cache_file
12159 else
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12161 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12162 fi
12163 fi
12164 rm -f confcache
12165
12166 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12167 # Let make expand exec_prefix.
12168 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12169
12170 DEFS=-DHAVE_CONFIG_H
12171
12172 ac_libobjs=
12173 ac_ltlibobjs=
12174 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12175 # 1. Remove the extension, and $U if already installed.
12176 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12177 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12178 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12179 # will be set to the directory where LIBOBJS objects are built.
12180 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12181 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12182 done
12183 LIBOBJS=$ac_libobjs
12184
12185 LTLIBOBJS=$ac_ltlibobjs
12186
12187
12188 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12189 as_fn_error "conditional \"AMDEP\" was never defined.
12190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12191 fi
12192 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12193 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12195 fi
12196 if test -n "$EXEEXT"; then
12197 am__EXEEXT_TRUE=
12198 am__EXEEXT_FALSE='#'
12199 else
12200 am__EXEEXT_TRUE='#'
12201 am__EXEEXT_FALSE=
12202 fi
12203
12204 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12205 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12207 fi
12208 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12209 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
12210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12211 fi
12212
12213 : ${CONFIG_STATUS=./config.status}
12214 ac_write_fail=0
12215 ac_clean_files_save=$ac_clean_files
12216 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12218 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12219 as_write_fail=0
12220 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12221 #! $SHELL
12222 # Generated by $as_me.
12223 # Run this file to recreate the current configuration.
12224 # Compiler output produced by configure, useful for debugging
12225 # configure, is in config.log if it exists.
12226
12227 debug=false
12228 ac_cs_recheck=false
12229 ac_cs_silent=false
12230
12231 SHELL=\${CONFIG_SHELL-$SHELL}
12232 export SHELL
12233 _ASEOF
12234 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12235 ## -------------------- ##
12236 ## M4sh Initialization. ##
12237 ## -------------------- ##
12238
12239 # Be more Bourne compatible
12240 DUALCASE=1; export DUALCASE # for MKS sh
12241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12242 emulate sh
12243 NULLCMD=:
12244 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12245 # is contrary to our usage. Disable this feature.
12246 alias -g '${1+"$@"}'='"$@"'
12247 setopt NO_GLOB_SUBST
12248 else
12249 case `(set -o) 2>/dev/null` in #(
12250 *posix*) :
12251 set -o posix ;; #(
12252 *) :
12253 ;;
12254 esac
12255 fi
12256
12257
12258 as_nl='
12259 '
12260 export as_nl
12261 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12262 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12263 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12264 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12265 # Prefer a ksh shell builtin over an external printf program on Solaris,
12266 # but without wasting forks for bash or zsh.
12267 if test -z "$BASH_VERSION$ZSH_VERSION" \
12268 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12269 as_echo='print -r --'
12270 as_echo_n='print -rn --'
12271 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12272 as_echo='printf %s\n'
12273 as_echo_n='printf %s'
12274 else
12275 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12276 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12277 as_echo_n='/usr/ucb/echo -n'
12278 else
12279 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12280 as_echo_n_body='eval
12281 arg=$1;
12282 case $arg in #(
12283 *"$as_nl"*)
12284 expr "X$arg" : "X\\(.*\\)$as_nl";
12285 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12286 esac;
12287 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12288 '
12289 export as_echo_n_body
12290 as_echo_n='sh -c $as_echo_n_body as_echo'
12291 fi
12292 export as_echo_body
12293 as_echo='sh -c $as_echo_body as_echo'
12294 fi
12295
12296 # The user is always right.
12297 if test "${PATH_SEPARATOR+set}" != set; then
12298 PATH_SEPARATOR=:
12299 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12300 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12301 PATH_SEPARATOR=';'
12302 }
12303 fi
12304
12305
12306 # IFS
12307 # We need space, tab and new line, in precisely that order. Quoting is
12308 # there to prevent editors from complaining about space-tab.
12309 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12310 # splitting by setting IFS to empty value.)
12311 IFS=" "" $as_nl"
12312
12313 # Find who we are. Look in the path if we contain no directory separator.
12314 case $0 in #((
12315 *[\\/]* ) as_myself=$0 ;;
12316 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12318 do
12319 IFS=$as_save_IFS
12320 test -z "$as_dir" && as_dir=.
12321 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12322 done
12323 IFS=$as_save_IFS
12324
12325 ;;
12326 esac
12327 # We did not find ourselves, most probably we were run as `sh COMMAND'
12328 # in which case we are not to be found in the path.
12329 if test "x$as_myself" = x; then
12330 as_myself=$0
12331 fi
12332 if test ! -f "$as_myself"; then
12333 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12334 exit 1
12335 fi
12336
12337 # Unset variables that we do not need and which cause bugs (e.g. in
12338 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12339 # suppresses any "Segmentation fault" message there. '((' could
12340 # trigger a bug in pdksh 5.2.14.
12341 for as_var in BASH_ENV ENV MAIL MAILPATH
12342 do eval test x\${$as_var+set} = xset \
12343 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12344 done
12345 PS1='$ '
12346 PS2='> '
12347 PS4='+ '
12348
12349 # NLS nuisances.
12350 LC_ALL=C
12351 export LC_ALL
12352 LANGUAGE=C
12353 export LANGUAGE
12354
12355 # CDPATH.
12356 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12357
12358
12359 # as_fn_error ERROR [LINENO LOG_FD]
12360 # ---------------------------------
12361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12363 # script with status $?, using 1 if that was 0.
12364 as_fn_error ()
12365 {
12366 as_status=$?; test $as_status -eq 0 && as_status=1
12367 if test "$3"; then
12368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12370 fi
12371 $as_echo "$as_me: error: $1" >&2
12372 as_fn_exit $as_status
12373 } # as_fn_error
12374
12375
12376 # as_fn_set_status STATUS
12377 # -----------------------
12378 # Set $? to STATUS, without forking.
12379 as_fn_set_status ()
12380 {
12381 return $1
12382 } # as_fn_set_status
12383
12384 # as_fn_exit STATUS
12385 # -----------------
12386 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12387 as_fn_exit ()
12388 {
12389 set +e
12390 as_fn_set_status $1
12391 exit $1
12392 } # as_fn_exit
12393
12394 # as_fn_unset VAR
12395 # ---------------
12396 # Portably unset VAR.
12397 as_fn_unset ()
12398 {
12399 { eval $1=; unset $1;}
12400 }
12401 as_unset=as_fn_unset
12402 # as_fn_append VAR VALUE
12403 # ----------------------
12404 # Append the text in VALUE to the end of the definition contained in VAR. Take
12405 # advantage of any shell optimizations that allow amortized linear growth over
12406 # repeated appends, instead of the typical quadratic growth present in naive
12407 # implementations.
12408 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12409 eval 'as_fn_append ()
12410 {
12411 eval $1+=\$2
12412 }'
12413 else
12414 as_fn_append ()
12415 {
12416 eval $1=\$$1\$2
12417 }
12418 fi # as_fn_append
12419
12420 # as_fn_arith ARG...
12421 # ------------------
12422 # Perform arithmetic evaluation on the ARGs, and store the result in the
12423 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12424 # must be portable across $(()) and expr.
12425 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12426 eval 'as_fn_arith ()
12427 {
12428 as_val=$(( $* ))
12429 }'
12430 else
12431 as_fn_arith ()
12432 {
12433 as_val=`expr "$@" || test $? -eq 1`
12434 }
12435 fi # as_fn_arith
12436
12437
12438 if expr a : '\(a\)' >/dev/null 2>&1 &&
12439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12440 as_expr=expr
12441 else
12442 as_expr=false
12443 fi
12444
12445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12446 as_basename=basename
12447 else
12448 as_basename=false
12449 fi
12450
12451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12452 as_dirname=dirname
12453 else
12454 as_dirname=false
12455 fi
12456
12457 as_me=`$as_basename -- "$0" ||
12458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12459 X"$0" : 'X\(//\)$' \| \
12460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12461 $as_echo X/"$0" |
12462 sed '/^.*\/\([^/][^/]*\)\/*$/{
12463 s//\1/
12464 q
12465 }
12466 /^X\/\(\/\/\)$/{
12467 s//\1/
12468 q
12469 }
12470 /^X\/\(\/\).*/{
12471 s//\1/
12472 q
12473 }
12474 s/.*/./; q'`
12475
12476 # Avoid depending upon Character Ranges.
12477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12480 as_cr_digits='0123456789'
12481 as_cr_alnum=$as_cr_Letters$as_cr_digits
12482
12483 ECHO_C= ECHO_N= ECHO_T=
12484 case `echo -n x` in #(((((
12485 -n*)
12486 case `echo 'xy\c'` in
12487 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12488 xy) ECHO_C='\c';;
12489 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12490 ECHO_T=' ';;
12491 esac;;
12492 *)
12493 ECHO_N='-n';;
12494 esac
12495
12496 rm -f conf$$ conf$$.exe conf$$.file
12497 if test -d conf$$.dir; then
12498 rm -f conf$$.dir/conf$$.file
12499 else
12500 rm -f conf$$.dir
12501 mkdir conf$$.dir 2>/dev/null
12502 fi
12503 if (echo >conf$$.file) 2>/dev/null; then
12504 if ln -s conf$$.file conf$$ 2>/dev/null; then
12505 as_ln_s='ln -s'
12506 # ... but there are two gotchas:
12507 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12508 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12509 # In both cases, we have to default to `cp -p'.
12510 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12511 as_ln_s='cp -p'
12512 elif ln conf$$.file conf$$ 2>/dev/null; then
12513 as_ln_s=ln
12514 else
12515 as_ln_s='cp -p'
12516 fi
12517 else
12518 as_ln_s='cp -p'
12519 fi
12520 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12521 rmdir conf$$.dir 2>/dev/null
12522
12523
12524 # as_fn_mkdir_p
12525 # -------------
12526 # Create "$as_dir" as a directory, including parents if necessary.
12527 as_fn_mkdir_p ()
12528 {
12529
12530 case $as_dir in #(
12531 -*) as_dir=./$as_dir;;
12532 esac
12533 test -d "$as_dir" || eval $as_mkdir_p || {
12534 as_dirs=
12535 while :; do
12536 case $as_dir in #(
12537 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12538 *) as_qdir=$as_dir;;
12539 esac
12540 as_dirs="'$as_qdir' $as_dirs"
12541 as_dir=`$as_dirname -- "$as_dir" ||
12542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12543 X"$as_dir" : 'X\(//\)[^/]' \| \
12544 X"$as_dir" : 'X\(//\)$' \| \
12545 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12546 $as_echo X"$as_dir" |
12547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12548 s//\1/
12549 q
12550 }
12551 /^X\(\/\/\)[^/].*/{
12552 s//\1/
12553 q
12554 }
12555 /^X\(\/\/\)$/{
12556 s//\1/
12557 q
12558 }
12559 /^X\(\/\).*/{
12560 s//\1/
12561 q
12562 }
12563 s/.*/./; q'`
12564 test -d "$as_dir" && break
12565 done
12566 test -z "$as_dirs" || eval "mkdir $as_dirs"
12567 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12568
12569
12570 } # as_fn_mkdir_p
12571 if mkdir -p . 2>/dev/null; then
12572 as_mkdir_p='mkdir -p "$as_dir"'
12573 else
12574 test -d ./-p && rmdir ./-p
12575 as_mkdir_p=false
12576 fi
12577
12578 if test -x / >/dev/null 2>&1; then
12579 as_test_x='test -x'
12580 else
12581 if ls -dL / >/dev/null 2>&1; then
12582 as_ls_L_option=L
12583 else
12584 as_ls_L_option=
12585 fi
12586 as_test_x='
12587 eval sh -c '\''
12588 if test -d "$1"; then
12589 test -d "$1/.";
12590 else
12591 case $1 in #(
12592 -*)set "./$1";;
12593 esac;
12594 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12595 ???[sx]*):;;*)false;;esac;fi
12596 '\'' sh
12597 '
12598 fi
12599 as_executable_p=$as_test_x
12600
12601 # Sed expression to map a string onto a valid CPP name.
12602 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12603
12604 # Sed expression to map a string onto a valid variable name.
12605 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12606
12607
12608 exec 6>&1
12609 ## ----------------------------------- ##
12610 ## Main body of $CONFIG_STATUS script. ##
12611 ## ----------------------------------- ##
12612 _ASEOF
12613 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12614
12615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12616 # Save the log message, to keep $0 and so on meaningful, and to
12617 # report actual input values of CONFIG_FILES etc. instead of their
12618 # values after options handling.
12619 ac_log="
12620 This file was extended by gprof $as_me 2.24.51, which was
12621 generated by GNU Autoconf 2.64. Invocation command line was
12622
12623 CONFIG_FILES = $CONFIG_FILES
12624 CONFIG_HEADERS = $CONFIG_HEADERS
12625 CONFIG_LINKS = $CONFIG_LINKS
12626 CONFIG_COMMANDS = $CONFIG_COMMANDS
12627 $ $0 $@
12628
12629 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12630 "
12631
12632 _ACEOF
12633
12634 case $ac_config_files in *"
12635 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12636 esac
12637
12638 case $ac_config_headers in *"
12639 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12640 esac
12641
12642
12643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12644 # Files that config.status was made for.
12645 config_files="$ac_config_files"
12646 config_headers="$ac_config_headers"
12647 config_commands="$ac_config_commands"
12648
12649 _ACEOF
12650
12651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12652 ac_cs_usage="\
12653 \`$as_me' instantiates files and other configuration actions
12654 from templates according to the current configuration. Unless the files
12655 and actions are specified as TAGs, all are instantiated by default.
12656
12657 Usage: $0 [OPTION]... [TAG]...
12658
12659 -h, --help print this help, then exit
12660 -V, --version print version number and configuration settings, then exit
12661 -q, --quiet, --silent
12662 do not print progress messages
12663 -d, --debug don't remove temporary files
12664 --recheck update $as_me by reconfiguring in the same conditions
12665 --file=FILE[:TEMPLATE]
12666 instantiate the configuration file FILE
12667 --header=FILE[:TEMPLATE]
12668 instantiate the configuration header FILE
12669
12670 Configuration files:
12671 $config_files
12672
12673 Configuration headers:
12674 $config_headers
12675
12676 Configuration commands:
12677 $config_commands
12678
12679 Report bugs to the package provider."
12680
12681 _ACEOF
12682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12683 ac_cs_version="\\
12684 gprof config.status 2.24.51
12685 configured by $0, generated by GNU Autoconf 2.64,
12686 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12687
12688 Copyright (C) 2009 Free Software Foundation, Inc.
12689 This config.status script is free software; the Free Software Foundation
12690 gives unlimited permission to copy, distribute and modify it."
12691
12692 ac_pwd='$ac_pwd'
12693 srcdir='$srcdir'
12694 INSTALL='$INSTALL'
12695 MKDIR_P='$MKDIR_P'
12696 AWK='$AWK'
12697 test -n "\$AWK" || AWK=awk
12698 _ACEOF
12699
12700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12701 # The default lists apply if the user does not specify any file.
12702 ac_need_defaults=:
12703 while test $# != 0
12704 do
12705 case $1 in
12706 --*=*)
12707 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12708 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12709 ac_shift=:
12710 ;;
12711 *)
12712 ac_option=$1
12713 ac_optarg=$2
12714 ac_shift=shift
12715 ;;
12716 esac
12717
12718 case $ac_option in
12719 # Handling of the options.
12720 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12721 ac_cs_recheck=: ;;
12722 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12723 $as_echo "$ac_cs_version"; exit ;;
12724 --debug | --debu | --deb | --de | --d | -d )
12725 debug=: ;;
12726 --file | --fil | --fi | --f )
12727 $ac_shift
12728 case $ac_optarg in
12729 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12730 esac
12731 as_fn_append CONFIG_FILES " '$ac_optarg'"
12732 ac_need_defaults=false;;
12733 --header | --heade | --head | --hea )
12734 $ac_shift
12735 case $ac_optarg in
12736 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12737 esac
12738 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12739 ac_need_defaults=false;;
12740 --he | --h)
12741 # Conflict between --help and --header
12742 as_fn_error "ambiguous option: \`$1'
12743 Try \`$0 --help' for more information.";;
12744 --help | --hel | -h )
12745 $as_echo "$ac_cs_usage"; exit ;;
12746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12747 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12748 ac_cs_silent=: ;;
12749
12750 # This is an error.
12751 -*) as_fn_error "unrecognized option: \`$1'
12752 Try \`$0 --help' for more information." ;;
12753
12754 *) as_fn_append ac_config_targets " $1"
12755 ac_need_defaults=false ;;
12756
12757 esac
12758 shift
12759 done
12760
12761 ac_configure_extra_args=
12762
12763 if $ac_cs_silent; then
12764 exec 6>/dev/null
12765 ac_configure_extra_args="$ac_configure_extra_args --silent"
12766 fi
12767
12768 _ACEOF
12769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12770 if \$ac_cs_recheck; then
12771 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12772 shift
12773 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12774 CONFIG_SHELL='$SHELL'
12775 export CONFIG_SHELL
12776 exec "\$@"
12777 fi
12778
12779 _ACEOF
12780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12781 exec 5>>config.log
12782 {
12783 echo
12784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12785 ## Running $as_me. ##
12786 _ASBOX
12787 $as_echo "$ac_log"
12788 } >&5
12789
12790 _ACEOF
12791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12792 #
12793 # INIT-COMMANDS
12794 #
12795 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12796
12797
12798 # The HP-UX ksh and POSIX shell print the target directory to stdout
12799 # if CDPATH is set.
12800 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12801
12802 sed_quote_subst='$sed_quote_subst'
12803 double_quote_subst='$double_quote_subst'
12804 delay_variable_subst='$delay_variable_subst'
12805 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12806 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12807 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12808 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12809 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12810 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12811 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12812 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12813 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12814 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12815 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12816 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12817 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12818 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12819 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12820 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12821 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12822 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12823 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12824 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12825 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12826 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12827 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12828 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12829 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12830 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12831 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12832 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12833 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12834 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12835 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12836 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12837 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12838 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12839 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12840 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12841 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12842 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12843 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12844 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12845 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12846 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12847 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12848 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12849 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12850 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12851 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12852 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12853 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"`'
12854 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12855 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12856 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12857 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12858 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12859 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12860 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12861 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12862 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12863 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12864 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12865 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12866 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12867 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12868 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12869 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12870 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12871 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12872 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12873 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12874 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12875 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12876 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12877 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12878 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12879 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12880 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12881 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12882 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12883 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12884 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12885 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12886 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12887 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12888 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12889 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12890 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12891 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12892 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12893 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12894 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12895 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12896 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12897 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12898 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12899 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12900 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12901 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12902 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12903 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12904 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12905 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12906 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12907 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12908 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12909 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12910 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12911 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12912 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12913 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12914 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12915 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12916 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12917 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12918 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12919 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12920 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12921 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12922 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12923 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12924 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12925
12926 LTCC='$LTCC'
12927 LTCFLAGS='$LTCFLAGS'
12928 compiler='$compiler_DEFAULT'
12929
12930 # A function that is used when there is no print builtin or printf.
12931 func_fallback_echo ()
12932 {
12933 eval 'cat <<_LTECHO_EOF
12934 \$1
12935 _LTECHO_EOF'
12936 }
12937
12938 # Quote evaled strings.
12939 for var in SHELL \
12940 ECHO \
12941 SED \
12942 GREP \
12943 EGREP \
12944 FGREP \
12945 LD \
12946 NM \
12947 LN_S \
12948 lt_SP2NL \
12949 lt_NL2SP \
12950 reload_flag \
12951 OBJDUMP \
12952 deplibs_check_method \
12953 file_magic_cmd \
12954 AR \
12955 AR_FLAGS \
12956 STRIP \
12957 RANLIB \
12958 CC \
12959 CFLAGS \
12960 compiler \
12961 lt_cv_sys_global_symbol_pipe \
12962 lt_cv_sys_global_symbol_to_cdecl \
12963 lt_cv_sys_global_symbol_to_c_name_address \
12964 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12965 lt_prog_compiler_no_builtin_flag \
12966 lt_prog_compiler_wl \
12967 lt_prog_compiler_pic \
12968 lt_prog_compiler_static \
12969 lt_cv_prog_compiler_c_o \
12970 need_locks \
12971 DSYMUTIL \
12972 NMEDIT \
12973 LIPO \
12974 OTOOL \
12975 OTOOL64 \
12976 shrext_cmds \
12977 export_dynamic_flag_spec \
12978 whole_archive_flag_spec \
12979 compiler_needs_object \
12980 with_gnu_ld \
12981 allow_undefined_flag \
12982 no_undefined_flag \
12983 hardcode_libdir_flag_spec \
12984 hardcode_libdir_flag_spec_ld \
12985 hardcode_libdir_separator \
12986 fix_srcfile_path \
12987 exclude_expsyms \
12988 include_expsyms \
12989 file_list_spec \
12990 variables_saved_for_relink \
12991 libname_spec \
12992 library_names_spec \
12993 soname_spec \
12994 install_override_mode \
12995 finish_eval \
12996 old_striplib \
12997 striplib; do
12998 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12999 *[\\\\\\\`\\"\\\$]*)
13000 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13001 ;;
13002 *)
13003 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13004 ;;
13005 esac
13006 done
13007
13008 # Double-quote double-evaled strings.
13009 for var in reload_cmds \
13010 old_postinstall_cmds \
13011 old_postuninstall_cmds \
13012 old_archive_cmds \
13013 extract_expsyms_cmds \
13014 old_archive_from_new_cmds \
13015 old_archive_from_expsyms_cmds \
13016 archive_cmds \
13017 archive_expsym_cmds \
13018 module_cmds \
13019 module_expsym_cmds \
13020 export_symbols_cmds \
13021 prelink_cmds \
13022 postinstall_cmds \
13023 postuninstall_cmds \
13024 finish_cmds \
13025 sys_lib_search_path_spec \
13026 sys_lib_dlsearch_path_spec; do
13027 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13028 *[\\\\\\\`\\"\\\$]*)
13029 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13030 ;;
13031 *)
13032 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13033 ;;
13034 esac
13035 done
13036
13037 ac_aux_dir='$ac_aux_dir'
13038 xsi_shell='$xsi_shell'
13039 lt_shell_append='$lt_shell_append'
13040
13041 # See if we are running on zsh, and set the options which allow our
13042 # commands through without removal of \ escapes INIT.
13043 if test -n "\${ZSH_VERSION+set}" ; then
13044 setopt NO_GLOB_SUBST
13045 fi
13046
13047
13048 PACKAGE='$PACKAGE'
13049 VERSION='$VERSION'
13050 TIMESTAMP='$TIMESTAMP'
13051 RM='$RM'
13052 ofile='$ofile'
13053
13054
13055
13056 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13057 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13058 # from automake.
13059 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13060 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13061 LINGUAS="${LINGUAS-%UNSET%}"
13062
13063
13064 _ACEOF
13065
13066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13067
13068 # Handling of arguments.
13069 for ac_config_target in $ac_config_targets
13070 do
13071 case $ac_config_target in
13072 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13073 "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
13074 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13075 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13076 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13077 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13078
13079 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13080 esac
13081 done
13082
13083
13084 # If the user did not use the arguments to specify the items to instantiate,
13085 # then the envvar interface is used. Set only those that are not.
13086 # We use the long form for the default assignment because of an extremely
13087 # bizarre bug on SunOS 4.1.3.
13088 if $ac_need_defaults; then
13089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13090 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13091 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13092 fi
13093
13094 # Have a temporary directory for convenience. Make it in the build tree
13095 # simply because there is no reason against having it here, and in addition,
13096 # creating and moving files from /tmp can sometimes cause problems.
13097 # Hook for its removal unless debugging.
13098 # Note that there is a small window in which the directory will not be cleaned:
13099 # after its creation but before its name has been assigned to `$tmp'.
13100 $debug ||
13101 {
13102 tmp=
13103 trap 'exit_status=$?
13104 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13105 ' 0
13106 trap 'as_fn_exit 1' 1 2 13 15
13107 }
13108 # Create a (secure) tmp directory for tmp files.
13109
13110 {
13111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13112 test -n "$tmp" && test -d "$tmp"
13113 } ||
13114 {
13115 tmp=./conf$$-$RANDOM
13116 (umask 077 && mkdir "$tmp")
13117 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13118
13119 # Set up the scripts for CONFIG_FILES section.
13120 # No need to generate them if there are no CONFIG_FILES.
13121 # This happens for instance with `./config.status config.h'.
13122 if test -n "$CONFIG_FILES"; then
13123
13124
13125 ac_cr=`echo X | tr X '\015'`
13126 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13127 # But we know of no other shell where ac_cr would be empty at this
13128 # point, so we can use a bashism as a fallback.
13129 if test "x$ac_cr" = x; then
13130 eval ac_cr=\$\'\\r\'
13131 fi
13132 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13133 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13134 ac_cs_awk_cr='\r'
13135 else
13136 ac_cs_awk_cr=$ac_cr
13137 fi
13138
13139 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13140 _ACEOF
13141
13142
13143 {
13144 echo "cat >conf$$subs.awk <<_ACEOF" &&
13145 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13146 echo "_ACEOF"
13147 } >conf$$subs.sh ||
13148 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13149 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13150 ac_delim='%!_!# '
13151 for ac_last_try in false false false false false :; do
13152 . ./conf$$subs.sh ||
13153 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13154
13155 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13156 if test $ac_delim_n = $ac_delim_num; then
13157 break
13158 elif $ac_last_try; then
13159 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13160 else
13161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13162 fi
13163 done
13164 rm -f conf$$subs.sh
13165
13166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13167 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13168 _ACEOF
13169 sed -n '
13170 h
13171 s/^/S["/; s/!.*/"]=/
13172 p
13173 g
13174 s/^[^!]*!//
13175 :repl
13176 t repl
13177 s/'"$ac_delim"'$//
13178 t delim
13179 :nl
13180 h
13181 s/\(.\{148\}\).*/\1/
13182 t more1
13183 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13184 p
13185 n
13186 b repl
13187 :more1
13188 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13189 p
13190 g
13191 s/.\{148\}//
13192 t nl
13193 :delim
13194 h
13195 s/\(.\{148\}\).*/\1/
13196 t more2
13197 s/["\\]/\\&/g; s/^/"/; s/$/"/
13198 p
13199 b
13200 :more2
13201 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13202 p
13203 g
13204 s/.\{148\}//
13205 t delim
13206 ' <conf$$subs.awk | sed '
13207 /^[^""]/{
13208 N
13209 s/\n//
13210 }
13211 ' >>$CONFIG_STATUS || ac_write_fail=1
13212 rm -f conf$$subs.awk
13213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13214 _ACAWK
13215 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13216 for (key in S) S_is_set[key] = 1
13217 FS = "\a"
13218
13219 }
13220 {
13221 line = $ 0
13222 nfields = split(line, field, "@")
13223 substed = 0
13224 len = length(field[1])
13225 for (i = 2; i < nfields; i++) {
13226 key = field[i]
13227 keylen = length(key)
13228 if (S_is_set[key]) {
13229 value = S[key]
13230 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13231 len += length(value) + length(field[++i])
13232 substed = 1
13233 } else
13234 len += 1 + keylen
13235 }
13236
13237 print line
13238 }
13239
13240 _ACAWK
13241 _ACEOF
13242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13243 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13244 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13245 else
13246 cat
13247 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13248 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13249 _ACEOF
13250
13251 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13252 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13253 # trailing colons and then remove the whole line if VPATH becomes empty
13254 # (actually we leave an empty line to preserve line numbers).
13255 if test "x$srcdir" = x.; then
13256 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13257 s/:*\$(srcdir):*/:/
13258 s/:*\${srcdir}:*/:/
13259 s/:*@srcdir@:*/:/
13260 s/^\([^=]*=[ ]*\):*/\1/
13261 s/:*$//
13262 s/^[^=]*=[ ]*$//
13263 }'
13264 fi
13265
13266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13267 fi # test -n "$CONFIG_FILES"
13268
13269 # Set up the scripts for CONFIG_HEADERS section.
13270 # No need to generate them if there are no CONFIG_HEADERS.
13271 # This happens for instance with `./config.status Makefile'.
13272 if test -n "$CONFIG_HEADERS"; then
13273 cat >"$tmp/defines.awk" <<\_ACAWK ||
13274 BEGIN {
13275 _ACEOF
13276
13277 # Transform confdefs.h into an awk script `defines.awk', embedded as
13278 # here-document in config.status, that substitutes the proper values into
13279 # config.h.in to produce config.h.
13280
13281 # Create a delimiter string that does not exist in confdefs.h, to ease
13282 # handling of long lines.
13283 ac_delim='%!_!# '
13284 for ac_last_try in false false :; do
13285 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13286 if test -z "$ac_t"; then
13287 break
13288 elif $ac_last_try; then
13289 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13290 else
13291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13292 fi
13293 done
13294
13295 # For the awk script, D is an array of macro values keyed by name,
13296 # likewise P contains macro parameters if any. Preserve backslash
13297 # newline sequences.
13298
13299 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13300 sed -n '
13301 s/.\{148\}/&'"$ac_delim"'/g
13302 t rset
13303 :rset
13304 s/^[ ]*#[ ]*define[ ][ ]*/ /
13305 t def
13306 d
13307 :def
13308 s/\\$//
13309 t bsnl
13310 s/["\\]/\\&/g
13311 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13312 D["\1"]=" \3"/p
13313 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13314 d
13315 :bsnl
13316 s/["\\]/\\&/g
13317 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13318 D["\1"]=" \3\\\\\\n"\\/p
13319 t cont
13320 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13321 t cont
13322 d
13323 :cont
13324 n
13325 s/.\{148\}/&'"$ac_delim"'/g
13326 t clear
13327 :clear
13328 s/\\$//
13329 t bsnlc
13330 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13331 d
13332 :bsnlc
13333 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13334 b cont
13335 ' <confdefs.h | sed '
13336 s/'"$ac_delim"'/"\\\
13337 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13338
13339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13340 for (key in D) D_is_set[key] = 1
13341 FS = "\a"
13342 }
13343 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13344 line = \$ 0
13345 split(line, arg, " ")
13346 if (arg[1] == "#") {
13347 defundef = arg[2]
13348 mac1 = arg[3]
13349 } else {
13350 defundef = substr(arg[1], 2)
13351 mac1 = arg[2]
13352 }
13353 split(mac1, mac2, "(") #)
13354 macro = mac2[1]
13355 prefix = substr(line, 1, index(line, defundef) - 1)
13356 if (D_is_set[macro]) {
13357 # Preserve the white space surrounding the "#".
13358 print prefix "define", macro P[macro] D[macro]
13359 next
13360 } else {
13361 # Replace #undef with comments. This is necessary, for example,
13362 # in the case of _POSIX_SOURCE, which is predefined and required
13363 # on some systems where configure will not decide to define it.
13364 if (defundef == "undef") {
13365 print "/*", prefix defundef, macro, "*/"
13366 next
13367 }
13368 }
13369 }
13370 { print }
13371 _ACAWK
13372 _ACEOF
13373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13374 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13375 fi # test -n "$CONFIG_HEADERS"
13376
13377
13378 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13379 shift
13380 for ac_tag
13381 do
13382 case $ac_tag in
13383 :[FHLC]) ac_mode=$ac_tag; continue;;
13384 esac
13385 case $ac_mode$ac_tag in
13386 :[FHL]*:*);;
13387 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13388 :[FH]-) ac_tag=-:-;;
13389 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13390 esac
13391 ac_save_IFS=$IFS
13392 IFS=:
13393 set x $ac_tag
13394 IFS=$ac_save_IFS
13395 shift
13396 ac_file=$1
13397 shift
13398
13399 case $ac_mode in
13400 :L) ac_source=$1;;
13401 :[FH])
13402 ac_file_inputs=
13403 for ac_f
13404 do
13405 case $ac_f in
13406 -) ac_f="$tmp/stdin";;
13407 *) # Look for the file first in the build tree, then in the source tree
13408 # (if the path is not absolute). The absolute path cannot be DOS-style,
13409 # because $ac_f cannot contain `:'.
13410 test -f "$ac_f" ||
13411 case $ac_f in
13412 [\\/$]*) false;;
13413 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13414 esac ||
13415 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13416 esac
13417 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13418 as_fn_append ac_file_inputs " '$ac_f'"
13419 done
13420
13421 # Let's still pretend it is `configure' which instantiates (i.e., don't
13422 # use $as_me), people would be surprised to read:
13423 # /* config.h. Generated by config.status. */
13424 configure_input='Generated from '`
13425 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13426 `' by configure.'
13427 if test x"$ac_file" != x-; then
13428 configure_input="$ac_file. $configure_input"
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13430 $as_echo "$as_me: creating $ac_file" >&6;}
13431 fi
13432 # Neutralize special characters interpreted by sed in replacement strings.
13433 case $configure_input in #(
13434 *\&* | *\|* | *\\* )
13435 ac_sed_conf_input=`$as_echo "$configure_input" |
13436 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13437 *) ac_sed_conf_input=$configure_input;;
13438 esac
13439
13440 case $ac_tag in
13441 *:-:* | *:-) cat >"$tmp/stdin" \
13442 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13443 esac
13444 ;;
13445 esac
13446
13447 ac_dir=`$as_dirname -- "$ac_file" ||
13448 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13449 X"$ac_file" : 'X\(//\)[^/]' \| \
13450 X"$ac_file" : 'X\(//\)$' \| \
13451 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13452 $as_echo X"$ac_file" |
13453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13454 s//\1/
13455 q
13456 }
13457 /^X\(\/\/\)[^/].*/{
13458 s//\1/
13459 q
13460 }
13461 /^X\(\/\/\)$/{
13462 s//\1/
13463 q
13464 }
13465 /^X\(\/\).*/{
13466 s//\1/
13467 q
13468 }
13469 s/.*/./; q'`
13470 as_dir="$ac_dir"; as_fn_mkdir_p
13471 ac_builddir=.
13472
13473 case "$ac_dir" in
13474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13475 *)
13476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13477 # A ".." for each directory in $ac_dir_suffix.
13478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13479 case $ac_top_builddir_sub in
13480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13482 esac ;;
13483 esac
13484 ac_abs_top_builddir=$ac_pwd
13485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13486 # for backward compatibility:
13487 ac_top_builddir=$ac_top_build_prefix
13488
13489 case $srcdir in
13490 .) # We are building in place.
13491 ac_srcdir=.
13492 ac_top_srcdir=$ac_top_builddir_sub
13493 ac_abs_top_srcdir=$ac_pwd ;;
13494 [\\/]* | ?:[\\/]* ) # Absolute name.
13495 ac_srcdir=$srcdir$ac_dir_suffix;
13496 ac_top_srcdir=$srcdir
13497 ac_abs_top_srcdir=$srcdir ;;
13498 *) # Relative name.
13499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13500 ac_top_srcdir=$ac_top_build_prefix$srcdir
13501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13502 esac
13503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13504
13505
13506 case $ac_mode in
13507 :F)
13508 #
13509 # CONFIG_FILE
13510 #
13511
13512 case $INSTALL in
13513 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13514 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13515 esac
13516 ac_MKDIR_P=$MKDIR_P
13517 case $MKDIR_P in
13518 [\\/$]* | ?:[\\/]* ) ;;
13519 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13520 esac
13521 _ACEOF
13522
13523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13524 # If the template does not know about datarootdir, expand it.
13525 # FIXME: This hack should be removed a few years after 2.60.
13526 ac_datarootdir_hack=; ac_datarootdir_seen=
13527 ac_sed_dataroot='
13528 /datarootdir/ {
13529 p
13530 q
13531 }
13532 /@datadir@/p
13533 /@docdir@/p
13534 /@infodir@/p
13535 /@localedir@/p
13536 /@mandir@/p'
13537 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13538 *datarootdir*) ac_datarootdir_seen=yes;;
13539 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13541 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13542 _ACEOF
13543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13544 ac_datarootdir_hack='
13545 s&@datadir@&$datadir&g
13546 s&@docdir@&$docdir&g
13547 s&@infodir@&$infodir&g
13548 s&@localedir@&$localedir&g
13549 s&@mandir@&$mandir&g
13550 s&\\\${datarootdir}&$datarootdir&g' ;;
13551 esac
13552 _ACEOF
13553
13554 # Neutralize VPATH when `$srcdir' = `.'.
13555 # Shell code in configure.ac might set extrasub.
13556 # FIXME: do we really want to maintain this feature?
13557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13558 ac_sed_extra="$ac_vpsub
13559 $extrasub
13560 _ACEOF
13561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13562 :t
13563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13564 s|@configure_input@|$ac_sed_conf_input|;t t
13565 s&@top_builddir@&$ac_top_builddir_sub&;t t
13566 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13567 s&@srcdir@&$ac_srcdir&;t t
13568 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13569 s&@top_srcdir@&$ac_top_srcdir&;t t
13570 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13571 s&@builddir@&$ac_builddir&;t t
13572 s&@abs_builddir@&$ac_abs_builddir&;t t
13573 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13574 s&@INSTALL@&$ac_INSTALL&;t t
13575 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13576 $ac_datarootdir_hack
13577 "
13578 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13579 || as_fn_error "could not create $ac_file" "$LINENO" 5
13580
13581 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13582 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13585 which seems to be undefined. Please make sure it is defined." >&5
13586 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13587 which seems to be undefined. Please make sure it is defined." >&2;}
13588
13589 rm -f "$tmp/stdin"
13590 case $ac_file in
13591 -) cat "$tmp/out" && rm -f "$tmp/out";;
13592 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13593 esac \
13594 || as_fn_error "could not create $ac_file" "$LINENO" 5
13595 ;;
13596 :H)
13597 #
13598 # CONFIG_HEADER
13599 #
13600 if test x"$ac_file" != x-; then
13601 {
13602 $as_echo "/* $configure_input */" \
13603 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13604 } >"$tmp/config.h" \
13605 || as_fn_error "could not create $ac_file" "$LINENO" 5
13606 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13608 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13609 else
13610 rm -f "$ac_file"
13611 mv "$tmp/config.h" "$ac_file" \
13612 || as_fn_error "could not create $ac_file" "$LINENO" 5
13613 fi
13614 else
13615 $as_echo "/* $configure_input */" \
13616 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13617 || as_fn_error "could not create -" "$LINENO" 5
13618 fi
13619 # Compute "$ac_file"'s index in $config_headers.
13620 _am_arg="$ac_file"
13621 _am_stamp_count=1
13622 for _am_header in $config_headers :; do
13623 case $_am_header in
13624 $_am_arg | $_am_arg:* )
13625 break ;;
13626 * )
13627 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13628 esac
13629 done
13630 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13631 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13632 X"$_am_arg" : 'X\(//\)[^/]' \| \
13633 X"$_am_arg" : 'X\(//\)$' \| \
13634 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13635 $as_echo X"$_am_arg" |
13636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13637 s//\1/
13638 q
13639 }
13640 /^X\(\/\/\)[^/].*/{
13641 s//\1/
13642 q
13643 }
13644 /^X\(\/\/\)$/{
13645 s//\1/
13646 q
13647 }
13648 /^X\(\/\).*/{
13649 s//\1/
13650 q
13651 }
13652 s/.*/./; q'`/stamp-h$_am_stamp_count
13653 ;;
13654
13655 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13656 $as_echo "$as_me: executing $ac_file commands" >&6;}
13657 ;;
13658 esac
13659
13660
13661 case $ac_file$ac_mode in
13662 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13663 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13664 # are listed without --file. Let's play safe and only enable the eval
13665 # if we detect the quoting.
13666 case $CONFIG_FILES in
13667 *\'*) eval set x "$CONFIG_FILES" ;;
13668 *) set x $CONFIG_FILES ;;
13669 esac
13670 shift
13671 for mf
13672 do
13673 # Strip MF so we end up with the name of the file.
13674 mf=`echo "$mf" | sed -e 's/:.*$//'`
13675 # Check whether this is an Automake generated Makefile or not.
13676 # We used to match only the files named `Makefile.in', but
13677 # some people rename them; so instead we look at the file content.
13678 # Grep'ing the first line is not enough: some people post-process
13679 # each Makefile.in and add a new line on top of each file to say so.
13680 # Grep'ing the whole file is not good either: AIX grep has a line
13681 # limit of 2048, but all sed's we know have understand at least 4000.
13682 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13683 dirpart=`$as_dirname -- "$mf" ||
13684 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13685 X"$mf" : 'X\(//\)[^/]' \| \
13686 X"$mf" : 'X\(//\)$' \| \
13687 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13688 $as_echo X"$mf" |
13689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13690 s//\1/
13691 q
13692 }
13693 /^X\(\/\/\)[^/].*/{
13694 s//\1/
13695 q
13696 }
13697 /^X\(\/\/\)$/{
13698 s//\1/
13699 q
13700 }
13701 /^X\(\/\).*/{
13702 s//\1/
13703 q
13704 }
13705 s/.*/./; q'`
13706 else
13707 continue
13708 fi
13709 # Extract the definition of DEPDIR, am__include, and am__quote
13710 # from the Makefile without running `make'.
13711 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13712 test -z "$DEPDIR" && continue
13713 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13714 test -z "am__include" && continue
13715 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13716 # When using ansi2knr, U may be empty or an underscore; expand it
13717 U=`sed -n 's/^U = //p' < "$mf"`
13718 # Find all dependency output files, they are included files with
13719 # $(DEPDIR) in their names. We invoke sed twice because it is the
13720 # simplest approach to changing $(DEPDIR) to its actual value in the
13721 # expansion.
13722 for file in `sed -n "
13723 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13724 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13725 # Make sure the directory exists.
13726 test -f "$dirpart/$file" && continue
13727 fdir=`$as_dirname -- "$file" ||
13728 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13729 X"$file" : 'X\(//\)[^/]' \| \
13730 X"$file" : 'X\(//\)$' \| \
13731 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13732 $as_echo X"$file" |
13733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13734 s//\1/
13735 q
13736 }
13737 /^X\(\/\/\)[^/].*/{
13738 s//\1/
13739 q
13740 }
13741 /^X\(\/\/\)$/{
13742 s//\1/
13743 q
13744 }
13745 /^X\(\/\).*/{
13746 s//\1/
13747 q
13748 }
13749 s/.*/./; q'`
13750 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13751 # echo "creating $dirpart/$file"
13752 echo '# dummy' > "$dirpart/$file"
13753 done
13754 done
13755 }
13756 ;;
13757 "libtool":C)
13758
13759 # See if we are running on zsh, and set the options which allow our
13760 # commands through without removal of \ escapes.
13761 if test -n "${ZSH_VERSION+set}" ; then
13762 setopt NO_GLOB_SUBST
13763 fi
13764
13765 cfgfile="${ofile}T"
13766 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13767 $RM "$cfgfile"
13768
13769 cat <<_LT_EOF >> "$cfgfile"
13770 #! $SHELL
13771
13772 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13773 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13774 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13775 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13776 #
13777 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13778 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13779 # Written by Gordon Matzigkeit, 1996
13780 #
13781 # This file is part of GNU Libtool.
13782 #
13783 # GNU Libtool is free software; you can redistribute it and/or
13784 # modify it under the terms of the GNU General Public License as
13785 # published by the Free Software Foundation; either version 2 of
13786 # the License, or (at your option) any later version.
13787 #
13788 # As a special exception to the GNU General Public License,
13789 # if you distribute this file as part of a program or library that
13790 # is built using GNU Libtool, you may include this file under the
13791 # same distribution terms that you use for the rest of that program.
13792 #
13793 # GNU Libtool is distributed in the hope that it will be useful,
13794 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13795 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13796 # GNU General Public License for more details.
13797 #
13798 # You should have received a copy of the GNU General Public License
13799 # along with GNU Libtool; see the file COPYING. If not, a copy
13800 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13801 # obtained by writing to the Free Software Foundation, Inc.,
13802 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13803
13804
13805 # The names of the tagged configurations supported by this script.
13806 available_tags=""
13807
13808 # ### BEGIN LIBTOOL CONFIG
13809
13810 # Which release of libtool.m4 was used?
13811 macro_version=$macro_version
13812 macro_revision=$macro_revision
13813
13814 # Whether or not to build shared libraries.
13815 build_libtool_libs=$enable_shared
13816
13817 # Whether or not to build static libraries.
13818 build_old_libs=$enable_static
13819
13820 # What type of objects to build.
13821 pic_mode=$pic_mode
13822
13823 # Whether or not to optimize for fast installation.
13824 fast_install=$enable_fast_install
13825
13826 # Shell to use when invoking shell scripts.
13827 SHELL=$lt_SHELL
13828
13829 # An echo program that protects backslashes.
13830 ECHO=$lt_ECHO
13831
13832 # The host system.
13833 host_alias=$host_alias
13834 host=$host
13835 host_os=$host_os
13836
13837 # The build system.
13838 build_alias=$build_alias
13839 build=$build
13840 build_os=$build_os
13841
13842 # A sed program that does not truncate output.
13843 SED=$lt_SED
13844
13845 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13846 Xsed="\$SED -e 1s/^X//"
13847
13848 # A grep program that handles long lines.
13849 GREP=$lt_GREP
13850
13851 # An ERE matcher.
13852 EGREP=$lt_EGREP
13853
13854 # A literal string matcher.
13855 FGREP=$lt_FGREP
13856
13857 # A BSD- or MS-compatible name lister.
13858 NM=$lt_NM
13859
13860 # Whether we need soft or hard links.
13861 LN_S=$lt_LN_S
13862
13863 # What is the maximum length of a command?
13864 max_cmd_len=$max_cmd_len
13865
13866 # Object file suffix (normally "o").
13867 objext=$ac_objext
13868
13869 # Executable file suffix (normally "").
13870 exeext=$exeext
13871
13872 # whether the shell understands "unset".
13873 lt_unset=$lt_unset
13874
13875 # turn spaces into newlines.
13876 SP2NL=$lt_lt_SP2NL
13877
13878 # turn newlines into spaces.
13879 NL2SP=$lt_lt_NL2SP
13880
13881 # An object symbol dumper.
13882 OBJDUMP=$lt_OBJDUMP
13883
13884 # Method to check whether dependent libraries are shared objects.
13885 deplibs_check_method=$lt_deplibs_check_method
13886
13887 # Command to use when deplibs_check_method == "file_magic".
13888 file_magic_cmd=$lt_file_magic_cmd
13889
13890 # The archiver.
13891 AR=$lt_AR
13892 AR_FLAGS=$lt_AR_FLAGS
13893
13894 # A symbol stripping program.
13895 STRIP=$lt_STRIP
13896
13897 # Commands used to install an old-style archive.
13898 RANLIB=$lt_RANLIB
13899 old_postinstall_cmds=$lt_old_postinstall_cmds
13900 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13901
13902 # Whether to use a lock for old archive extraction.
13903 lock_old_archive_extraction=$lock_old_archive_extraction
13904
13905 # A C compiler.
13906 LTCC=$lt_CC
13907
13908 # LTCC compiler flags.
13909 LTCFLAGS=$lt_CFLAGS
13910
13911 # Take the output of nm and produce a listing of raw symbols and C names.
13912 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13913
13914 # Transform the output of nm in a proper C declaration.
13915 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13916
13917 # Transform the output of nm in a C name address pair.
13918 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13919
13920 # Transform the output of nm in a C name address pair when lib prefix is needed.
13921 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13922
13923 # The name of the directory that contains temporary libtool files.
13924 objdir=$objdir
13925
13926 # Used to examine libraries when file_magic_cmd begins with "file".
13927 MAGIC_CMD=$MAGIC_CMD
13928
13929 # Must we lock files when doing compilation?
13930 need_locks=$lt_need_locks
13931
13932 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13933 DSYMUTIL=$lt_DSYMUTIL
13934
13935 # Tool to change global to local symbols on Mac OS X.
13936 NMEDIT=$lt_NMEDIT
13937
13938 # Tool to manipulate fat objects and archives on Mac OS X.
13939 LIPO=$lt_LIPO
13940
13941 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13942 OTOOL=$lt_OTOOL
13943
13944 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13945 OTOOL64=$lt_OTOOL64
13946
13947 # Old archive suffix (normally "a").
13948 libext=$libext
13949
13950 # Shared library suffix (normally ".so").
13951 shrext_cmds=$lt_shrext_cmds
13952
13953 # The commands to extract the exported symbol list from a shared archive.
13954 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13955
13956 # Variables whose values should be saved in libtool wrapper scripts and
13957 # restored at link time.
13958 variables_saved_for_relink=$lt_variables_saved_for_relink
13959
13960 # Do we need the "lib" prefix for modules?
13961 need_lib_prefix=$need_lib_prefix
13962
13963 # Do we need a version for libraries?
13964 need_version=$need_version
13965
13966 # Library versioning type.
13967 version_type=$version_type
13968
13969 # Shared library runtime path variable.
13970 runpath_var=$runpath_var
13971
13972 # Shared library path variable.
13973 shlibpath_var=$shlibpath_var
13974
13975 # Is shlibpath searched before the hard-coded library search path?
13976 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13977
13978 # Format of library name prefix.
13979 libname_spec=$lt_libname_spec
13980
13981 # List of archive names. First name is the real one, the rest are links.
13982 # The last name is the one that the linker finds with -lNAME
13983 library_names_spec=$lt_library_names_spec
13984
13985 # The coded name of the library, if different from the real name.
13986 soname_spec=$lt_soname_spec
13987
13988 # Permission mode override for installation of shared libraries.
13989 install_override_mode=$lt_install_override_mode
13990
13991 # Command to use after installation of a shared archive.
13992 postinstall_cmds=$lt_postinstall_cmds
13993
13994 # Command to use after uninstallation of a shared archive.
13995 postuninstall_cmds=$lt_postuninstall_cmds
13996
13997 # Commands used to finish a libtool library installation in a directory.
13998 finish_cmds=$lt_finish_cmds
13999
14000 # As "finish_cmds", except a single script fragment to be evaled but
14001 # not shown.
14002 finish_eval=$lt_finish_eval
14003
14004 # Whether we should hardcode library paths into libraries.
14005 hardcode_into_libs=$hardcode_into_libs
14006
14007 # Compile-time system search path for libraries.
14008 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14009
14010 # Run-time system search path for libraries.
14011 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14012
14013 # Whether dlopen is supported.
14014 dlopen_support=$enable_dlopen
14015
14016 # Whether dlopen of programs is supported.
14017 dlopen_self=$enable_dlopen_self
14018
14019 # Whether dlopen of statically linked programs is supported.
14020 dlopen_self_static=$enable_dlopen_self_static
14021
14022 # Commands to strip libraries.
14023 old_striplib=$lt_old_striplib
14024 striplib=$lt_striplib
14025
14026
14027 # The linker used to build libraries.
14028 LD=$lt_LD
14029
14030 # How to create reloadable object files.
14031 reload_flag=$lt_reload_flag
14032 reload_cmds=$lt_reload_cmds
14033
14034 # Commands used to build an old-style archive.
14035 old_archive_cmds=$lt_old_archive_cmds
14036
14037 # A language specific compiler.
14038 CC=$lt_compiler
14039
14040 # Is the compiler the GNU compiler?
14041 with_gcc=$GCC
14042
14043 # Compiler flag to turn off builtin functions.
14044 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14045
14046 # How to pass a linker flag through the compiler.
14047 wl=$lt_lt_prog_compiler_wl
14048
14049 # Additional compiler flags for building library objects.
14050 pic_flag=$lt_lt_prog_compiler_pic
14051
14052 # Compiler flag to prevent dynamic linking.
14053 link_static_flag=$lt_lt_prog_compiler_static
14054
14055 # Does compiler simultaneously support -c and -o options?
14056 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14057
14058 # Whether or not to add -lc for building shared libraries.
14059 build_libtool_need_lc=$archive_cmds_need_lc
14060
14061 # Whether or not to disallow shared libs when runtime libs are static.
14062 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14063
14064 # Compiler flag to allow reflexive dlopens.
14065 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14066
14067 # Compiler flag to generate shared objects directly from archives.
14068 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14069
14070 # Whether the compiler copes with passing no objects directly.
14071 compiler_needs_object=$lt_compiler_needs_object
14072
14073 # Create an old-style archive from a shared archive.
14074 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14075
14076 # Create a temporary old-style archive to link instead of a shared archive.
14077 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14078
14079 # Commands used to build a shared archive.
14080 archive_cmds=$lt_archive_cmds
14081 archive_expsym_cmds=$lt_archive_expsym_cmds
14082
14083 # Commands used to build a loadable module if different from building
14084 # a shared archive.
14085 module_cmds=$lt_module_cmds
14086 module_expsym_cmds=$lt_module_expsym_cmds
14087
14088 # Whether we are building with GNU ld or not.
14089 with_gnu_ld=$lt_with_gnu_ld
14090
14091 # Flag that allows shared libraries with undefined symbols to be built.
14092 allow_undefined_flag=$lt_allow_undefined_flag
14093
14094 # Flag that enforces no undefined symbols.
14095 no_undefined_flag=$lt_no_undefined_flag
14096
14097 # Flag to hardcode \$libdir into a binary during linking.
14098 # This must work even if \$libdir does not exist
14099 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14100
14101 # If ld is used when linking, flag to hardcode \$libdir into a binary
14102 # during linking. This must work even if \$libdir does not exist.
14103 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14104
14105 # Whether we need a single "-rpath" flag with a separated argument.
14106 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14107
14108 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14109 # DIR into the resulting binary.
14110 hardcode_direct=$hardcode_direct
14111
14112 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14113 # DIR into the resulting binary and the resulting library dependency is
14114 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14115 # library is relocated.
14116 hardcode_direct_absolute=$hardcode_direct_absolute
14117
14118 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14119 # into the resulting binary.
14120 hardcode_minus_L=$hardcode_minus_L
14121
14122 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14123 # into the resulting binary.
14124 hardcode_shlibpath_var=$hardcode_shlibpath_var
14125
14126 # Set to "yes" if building a shared library automatically hardcodes DIR
14127 # into the library and all subsequent libraries and executables linked
14128 # against it.
14129 hardcode_automatic=$hardcode_automatic
14130
14131 # Set to yes if linker adds runtime paths of dependent libraries
14132 # to runtime path list.
14133 inherit_rpath=$inherit_rpath
14134
14135 # Whether libtool must link a program against all its dependency libraries.
14136 link_all_deplibs=$link_all_deplibs
14137
14138 # Fix the shell variable \$srcfile for the compiler.
14139 fix_srcfile_path=$lt_fix_srcfile_path
14140
14141 # Set to "yes" if exported symbols are required.
14142 always_export_symbols=$always_export_symbols
14143
14144 # The commands to list exported symbols.
14145 export_symbols_cmds=$lt_export_symbols_cmds
14146
14147 # Symbols that should not be listed in the preloaded symbols.
14148 exclude_expsyms=$lt_exclude_expsyms
14149
14150 # Symbols that must always be exported.
14151 include_expsyms=$lt_include_expsyms
14152
14153 # Commands necessary for linking programs (against libraries) with templates.
14154 prelink_cmds=$lt_prelink_cmds
14155
14156 # Specify filename containing input files.
14157 file_list_spec=$lt_file_list_spec
14158
14159 # How to hardcode a shared library path into an executable.
14160 hardcode_action=$hardcode_action
14161
14162 # ### END LIBTOOL CONFIG
14163
14164 _LT_EOF
14165
14166 case $host_os in
14167 aix3*)
14168 cat <<\_LT_EOF >> "$cfgfile"
14169 # AIX sometimes has problems with the GCC collect2 program. For some
14170 # reason, if we set the COLLECT_NAMES environment variable, the problems
14171 # vanish in a puff of smoke.
14172 if test "X${COLLECT_NAMES+set}" != Xset; then
14173 COLLECT_NAMES=
14174 export COLLECT_NAMES
14175 fi
14176 _LT_EOF
14177 ;;
14178 esac
14179
14180
14181 ltmain="$ac_aux_dir/ltmain.sh"
14182
14183
14184 # We use sed instead of cat because bash on DJGPP gets confused if
14185 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14186 # text mode, it properly converts lines to CR/LF. This bash problem
14187 # is reportedly fixed, but why not run on old versions too?
14188 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14189 || (rm -f "$cfgfile"; exit 1)
14190
14191 case $xsi_shell in
14192 yes)
14193 cat << \_LT_EOF >> "$cfgfile"
14194
14195 # func_dirname file append nondir_replacement
14196 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14197 # otherwise set result to NONDIR_REPLACEMENT.
14198 func_dirname ()
14199 {
14200 case ${1} in
14201 */*) func_dirname_result="${1%/*}${2}" ;;
14202 * ) func_dirname_result="${3}" ;;
14203 esac
14204 }
14205
14206 # func_basename file
14207 func_basename ()
14208 {
14209 func_basename_result="${1##*/}"
14210 }
14211
14212 # func_dirname_and_basename file append nondir_replacement
14213 # perform func_basename and func_dirname in a single function
14214 # call:
14215 # dirname: Compute the dirname of FILE. If nonempty,
14216 # add APPEND to the result, otherwise set result
14217 # to NONDIR_REPLACEMENT.
14218 # value returned in "$func_dirname_result"
14219 # basename: Compute filename of FILE.
14220 # value retuned in "$func_basename_result"
14221 # Implementation must be kept synchronized with func_dirname
14222 # and func_basename. For efficiency, we do not delegate to
14223 # those functions but instead duplicate the functionality here.
14224 func_dirname_and_basename ()
14225 {
14226 case ${1} in
14227 */*) func_dirname_result="${1%/*}${2}" ;;
14228 * ) func_dirname_result="${3}" ;;
14229 esac
14230 func_basename_result="${1##*/}"
14231 }
14232
14233 # func_stripname prefix suffix name
14234 # strip PREFIX and SUFFIX off of NAME.
14235 # PREFIX and SUFFIX must not contain globbing or regex special
14236 # characters, hashes, percent signs, but SUFFIX may contain a leading
14237 # dot (in which case that matches only a dot).
14238 func_stripname ()
14239 {
14240 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14241 # positional parameters, so assign one to ordinary parameter first.
14242 func_stripname_result=${3}
14243 func_stripname_result=${func_stripname_result#"${1}"}
14244 func_stripname_result=${func_stripname_result%"${2}"}
14245 }
14246
14247 # func_opt_split
14248 func_opt_split ()
14249 {
14250 func_opt_split_opt=${1%%=*}
14251 func_opt_split_arg=${1#*=}
14252 }
14253
14254 # func_lo2o object
14255 func_lo2o ()
14256 {
14257 case ${1} in
14258 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14259 *) func_lo2o_result=${1} ;;
14260 esac
14261 }
14262
14263 # func_xform libobj-or-source
14264 func_xform ()
14265 {
14266 func_xform_result=${1%.*}.lo
14267 }
14268
14269 # func_arith arithmetic-term...
14270 func_arith ()
14271 {
14272 func_arith_result=$(( $* ))
14273 }
14274
14275 # func_len string
14276 # STRING may not start with a hyphen.
14277 func_len ()
14278 {
14279 func_len_result=${#1}
14280 }
14281
14282 _LT_EOF
14283 ;;
14284 *) # Bourne compatible functions.
14285 cat << \_LT_EOF >> "$cfgfile"
14286
14287 # func_dirname file append nondir_replacement
14288 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14289 # otherwise set result to NONDIR_REPLACEMENT.
14290 func_dirname ()
14291 {
14292 # Extract subdirectory from the argument.
14293 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14294 if test "X$func_dirname_result" = "X${1}"; then
14295 func_dirname_result="${3}"
14296 else
14297 func_dirname_result="$func_dirname_result${2}"
14298 fi
14299 }
14300
14301 # func_basename file
14302 func_basename ()
14303 {
14304 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14305 }
14306
14307
14308 # func_stripname prefix suffix name
14309 # strip PREFIX and SUFFIX off of NAME.
14310 # PREFIX and SUFFIX must not contain globbing or regex special
14311 # characters, hashes, percent signs, but SUFFIX may contain a leading
14312 # dot (in which case that matches only a dot).
14313 # func_strip_suffix prefix name
14314 func_stripname ()
14315 {
14316 case ${2} in
14317 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14318 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14319 esac
14320 }
14321
14322 # sed scripts:
14323 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14324 my_sed_long_arg='1s/^-[^=]*=//'
14325
14326 # func_opt_split
14327 func_opt_split ()
14328 {
14329 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14330 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14331 }
14332
14333 # func_lo2o object
14334 func_lo2o ()
14335 {
14336 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14337 }
14338
14339 # func_xform libobj-or-source
14340 func_xform ()
14341 {
14342 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14343 }
14344
14345 # func_arith arithmetic-term...
14346 func_arith ()
14347 {
14348 func_arith_result=`expr "$@"`
14349 }
14350
14351 # func_len string
14352 # STRING may not start with a hyphen.
14353 func_len ()
14354 {
14355 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14356 }
14357
14358 _LT_EOF
14359 esac
14360
14361 case $lt_shell_append in
14362 yes)
14363 cat << \_LT_EOF >> "$cfgfile"
14364
14365 # func_append var value
14366 # Append VALUE to the end of shell variable VAR.
14367 func_append ()
14368 {
14369 eval "$1+=\$2"
14370 }
14371 _LT_EOF
14372 ;;
14373 *)
14374 cat << \_LT_EOF >> "$cfgfile"
14375
14376 # func_append var value
14377 # Append VALUE to the end of shell variable VAR.
14378 func_append ()
14379 {
14380 eval "$1=\$$1\$2"
14381 }
14382
14383 _LT_EOF
14384 ;;
14385 esac
14386
14387
14388 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14389 || (rm -f "$cfgfile"; exit 1)
14390
14391 mv -f "$cfgfile" "$ofile" ||
14392 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14393 chmod +x "$ofile"
14394
14395 ;;
14396 "default-1":C)
14397 for ac_file in $CONFIG_FILES; do
14398 # Support "outfile[:infile[:infile...]]"
14399 case "$ac_file" in
14400 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14401 esac
14402 # PO directories have a Makefile.in generated from Makefile.in.in.
14403 case "$ac_file" in */Makefile.in)
14404 # Adjust a relative srcdir.
14405 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14406 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14407 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14408 # In autoconf-2.13 it is called $ac_given_srcdir.
14409 # In autoconf-2.50 it is called $srcdir.
14410 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14411 case "$ac_given_srcdir" in
14412 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14413 /*) top_srcdir="$ac_given_srcdir" ;;
14414 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14415 esac
14416 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14417 rm -f "$ac_dir/POTFILES"
14418 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14419 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14420 POMAKEFILEDEPS="POTFILES.in"
14421 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14422 # on $ac_dir but don't depend on user-specified configuration
14423 # parameters.
14424 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14425 # The LINGUAS file contains the set of available languages.
14426 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14427 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14428 fi
14429 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14430 # Hide the ALL_LINGUAS assigment from automake.
14431 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14432 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14433 else
14434 # The set of available languages was given in configure.in.
14435 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14436 fi
14437 case "$ac_given_srcdir" in
14438 .) srcdirpre= ;;
14439 *) srcdirpre='$(srcdir)/' ;;
14440 esac
14441 POFILES=
14442 GMOFILES=
14443 UPDATEPOFILES=
14444 DUMMYPOFILES=
14445 for lang in $ALL_LINGUAS; do
14446 POFILES="$POFILES $srcdirpre$lang.po"
14447 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14448 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14449 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14450 done
14451 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14452 # environment variable.
14453 INST_LINGUAS=
14454 if test -n "$ALL_LINGUAS"; then
14455 for presentlang in $ALL_LINGUAS; do
14456 useit=no
14457 if test "%UNSET%" != "$LINGUAS"; then
14458 desiredlanguages="$LINGUAS"
14459 else
14460 desiredlanguages="$ALL_LINGUAS"
14461 fi
14462 for desiredlang in $desiredlanguages; do
14463 # Use the presentlang catalog if desiredlang is
14464 # a. equal to presentlang, or
14465 # b. a variant of presentlang (because in this case,
14466 # presentlang can be used as a fallback for messages
14467 # which are not translated in the desiredlang catalog).
14468 case "$desiredlang" in
14469 "$presentlang"*) useit=yes;;
14470 esac
14471 done
14472 if test $useit = yes; then
14473 INST_LINGUAS="$INST_LINGUAS $presentlang"
14474 fi
14475 done
14476 fi
14477 CATALOGS=
14478 if test -n "$INST_LINGUAS"; then
14479 for lang in $INST_LINGUAS; do
14480 CATALOGS="$CATALOGS $lang.gmo"
14481 done
14482 fi
14483 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14484 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14485 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14486 if test -f "$f"; then
14487 case "$f" in
14488 *.orig | *.bak | *~) ;;
14489 *) cat "$f" >> "$ac_dir/Makefile" ;;
14490 esac
14491 fi
14492 done
14493 fi
14494 ;;
14495 esac
14496 done ;;
14497
14498 esac
14499 done # for ac_tag
14500
14501
14502 as_fn_exit 0
14503 _ACEOF
14504 ac_clean_files=$ac_clean_files_save
14505
14506 test $ac_write_fail = 0 ||
14507 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14508
14509
14510 # configure is writing to config.log, and then calls config.status.
14511 # config.status does its own redirection, appending to config.log.
14512 # Unfortunately, on DOS this fails, as config.log is still kept open
14513 # by configure, so config.status won't be able to write to it; its
14514 # output is simply discarded. So we exec the FD to /dev/null,
14515 # effectively closing config.log, so it can be properly (re)opened and
14516 # appended to by config.status. When coming back to configure, we
14517 # need to make the FD available again.
14518 if test "$no_create" != yes; then
14519 ac_cs_success=:
14520 ac_config_status_args=
14521 test "$silent" = yes &&
14522 ac_config_status_args="$ac_config_status_args --quiet"
14523 exec 5>/dev/null
14524 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14525 exec 5>>config.log
14526 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14527 # would make configure fail if this is the last instruction.
14528 $ac_cs_success || as_fn_exit $?
14529 fi
14530 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14532 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14533 fi
14534
This page took 0.368923 seconds and 3 git commands to generate.