Imported Upstream version 2.4.46
[platform/upstream/attr.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME=
569 PACKAGE_TARNAME=
570 PACKAGE_VERSION=
571 PACKAGE_STRING=
572 PACKAGE_BUGREPORT=
573 PACKAGE_URL=
574
575 ac_unique_file="include/attributes.h"
576 ac_default_prefix=/usr
577 # Factoring default headers for most tests.
578 ac_includes_default="\
579 #include <stdio.h>
580 #ifdef HAVE_SYS_TYPES_H
581 # include <sys/types.h>
582 #endif
583 #ifdef HAVE_SYS_STAT_H
584 # include <sys/stat.h>
585 #endif
586 #ifdef STDC_HEADERS
587 # include <stdlib.h>
588 # include <stddef.h>
589 #else
590 # ifdef HAVE_STDLIB_H
591 #  include <stdlib.h>
592 # endif
593 #endif
594 #ifdef HAVE_STRING_H
595 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
596 #  include <memory.h>
597 # endif
598 # include <string.h>
599 #endif
600 #ifdef HAVE_STRINGS_H
601 # include <strings.h>
602 #endif
603 #ifdef HAVE_INTTYPES_H
604 # include <inttypes.h>
605 #endif
606 #ifdef HAVE_STDINT_H
607 # include <stdint.h>
608 #endif
609 #ifdef HAVE_UNISTD_H
610 # include <unistd.h>
611 #endif"
612
613 ac_subst_vars='LTLIBOBJS
614 LIBOBJS
615 ALLOCA
616 libdirsuffix
617 have_zipped_manpages
618 rpmbuild
619 RPMBUILD
620 rpm_version
621 rpm
622 RPM
623 xgettext
624 XGETTEXT
625 msgmerge
626 MSGMERGE
627 msgfmt
628 MSGFMT
629 sort
630 SORT
631 echo
632 ECHO
633 sed
634 awk
635 makedepend
636 MAKEDEPEND
637 zip
638 ZIP
639 tar
640 TAR
641 make
642 MAKE
643 cc
644 pkg_platform
645 pkg_distribution
646 pkg_group
647 pkg_user
648 malloc_lib
649 opt_build
650 debug_build
651 pkg_release
652 pkg_version
653 pkg_name
654 enable_lib64
655 enable_gettext
656 enable_shared
657 CPP
658 OTOOL64
659 OTOOL
660 LIPO
661 NMEDIT
662 DSYMUTIL
663 MANIFEST_TOOL
664 AWK
665 RANLIB
666 STRIP
667 ac_ct_AR
668 AR
669 DLLTOOL
670 OBJDUMP
671 LN_S
672 NM
673 ac_ct_DUMPBIN
674 DUMPBIN
675 LD
676 FGREP
677 EGREP
678 GREP
679 SED
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 LIBTOOL
696 target_alias
697 host_alias
698 build_alias
699 LIBS
700 ECHO_T
701 ECHO_N
702 ECHO_C
703 DEFS
704 mandir
705 localedir
706 libdir
707 psdir
708 pdfdir
709 dvidir
710 htmldir
711 infodir
712 docdir
713 oldincludedir
714 includedir
715 localstatedir
716 sharedstatedir
717 sysconfdir
718 datadir
719 datarootdir
720 libexecdir
721 sbindir
722 bindir
723 program_transform_name
724 prefix
725 exec_prefix
726 PACKAGE_URL
727 PACKAGE_BUGREPORT
728 PACKAGE_STRING
729 PACKAGE_VERSION
730 PACKAGE_TARNAME
731 PACKAGE_NAME
732 PATH_SEPARATOR
733 SHELL'
734 ac_subst_files=''
735 ac_user_opts='
736 enable_option_checking
737 enable_shared
738 enable_static
739 with_pic
740 enable_fast_install
741 with_gnu_ld
742 with_sysroot
743 enable_libtool_lock
744 enable_gettext
745 enable_lib64
746 '
747       ac_precious_vars='build_alias
748 host_alias
749 target_alias
750 CC
751 CFLAGS
752 LDFLAGS
753 LIBS
754 CPPFLAGS
755 CPP'
756
757
758 # Initialize some variables set by options.
759 ac_init_help=
760 ac_init_version=false
761 ac_unrecognized_opts=
762 ac_unrecognized_sep=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
765 cache_file=/dev/null
766 exec_prefix=NONE
767 no_create=
768 no_recursion=
769 prefix=NONE
770 program_prefix=NONE
771 program_suffix=NONE
772 program_transform_name=s,x,x,
773 silent=
774 site=
775 srcdir=
776 verbose=
777 x_includes=NONE
778 x_libraries=NONE
779
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir='${exec_prefix}/bin'
787 sbindir='${exec_prefix}/sbin'
788 libexecdir='${exec_prefix}/libexec'
789 datarootdir='${prefix}/share'
790 datadir='${datarootdir}'
791 sysconfdir='${prefix}/etc'
792 sharedstatedir='${prefix}/com'
793 localstatedir='${prefix}/var'
794 includedir='${prefix}/include'
795 oldincludedir='/usr/include'
796 docdir='${datarootdir}/doc/${PACKAGE}'
797 infodir='${datarootdir}/info'
798 htmldir='${docdir}'
799 dvidir='${docdir}'
800 pdfdir='${docdir}'
801 psdir='${docdir}'
802 libdir='${exec_prefix}/lib'
803 localedir='${datarootdir}/locale'
804 mandir='${datarootdir}/man'
805
806 ac_prev=
807 ac_dashdash=
808 for ac_option
809 do
810   # If the previous option needs an argument, assign it.
811   if test -n "$ac_prev"; then
812     eval $ac_prev=\$ac_option
813     ac_prev=
814     continue
815   fi
816
817   case $ac_option in
818   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819   *=)   ac_optarg= ;;
820   *)    ac_optarg=yes ;;
821   esac
822
823   # Accept the important Cygnus configure options, so we can diagnose typos.
824
825   case $ac_dashdash$ac_option in
826   --)
827     ac_dashdash=yes ;;
828
829   -bindir | --bindir | --bindi | --bind | --bin | --bi)
830     ac_prev=bindir ;;
831   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832     bindir=$ac_optarg ;;
833
834   -build | --build | --buil | --bui | --bu)
835     ac_prev=build_alias ;;
836   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837     build_alias=$ac_optarg ;;
838
839   -cache-file | --cache-file | --cache-fil | --cache-fi \
840   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841     ac_prev=cache_file ;;
842   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844     cache_file=$ac_optarg ;;
845
846   --config-cache | -C)
847     cache_file=config.cache ;;
848
849   -datadir | --datadir | --datadi | --datad)
850     ac_prev=datadir ;;
851   -datadir=* | --datadir=* | --datadi=* | --datad=*)
852     datadir=$ac_optarg ;;
853
854   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855   | --dataroo | --dataro | --datar)
856     ac_prev=datarootdir ;;
857   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859     datarootdir=$ac_optarg ;;
860
861   -disable-* | --disable-*)
862     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863     # Reject names that are not valid shell variable names.
864     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865       as_fn_error $? "invalid feature name: $ac_useropt"
866     ac_useropt_orig=$ac_useropt
867     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868     case $ac_user_opts in
869       *"
870 "enable_$ac_useropt"
871 "*) ;;
872       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873          ac_unrecognized_sep=', ';;
874     esac
875     eval enable_$ac_useropt=no ;;
876
877   -docdir | --docdir | --docdi | --doc | --do)
878     ac_prev=docdir ;;
879   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880     docdir=$ac_optarg ;;
881
882   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883     ac_prev=dvidir ;;
884   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885     dvidir=$ac_optarg ;;
886
887   -enable-* | --enable-*)
888     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889     # Reject names that are not valid shell variable names.
890     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891       as_fn_error $? "invalid feature name: $ac_useropt"
892     ac_useropt_orig=$ac_useropt
893     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894     case $ac_user_opts in
895       *"
896 "enable_$ac_useropt"
897 "*) ;;
898       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899          ac_unrecognized_sep=', ';;
900     esac
901     eval enable_$ac_useropt=\$ac_optarg ;;
902
903   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905   | --exec | --exe | --ex)
906     ac_prev=exec_prefix ;;
907   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909   | --exec=* | --exe=* | --ex=*)
910     exec_prefix=$ac_optarg ;;
911
912   -gas | --gas | --ga | --g)
913     # Obsolete; use --with-gas.
914     with_gas=yes ;;
915
916   -help | --help | --hel | --he | -h)
917     ac_init_help=long ;;
918   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919     ac_init_help=recursive ;;
920   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921     ac_init_help=short ;;
922
923   -host | --host | --hos | --ho)
924     ac_prev=host_alias ;;
925   -host=* | --host=* | --hos=* | --ho=*)
926     host_alias=$ac_optarg ;;
927
928   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929     ac_prev=htmldir ;;
930   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931   | --ht=*)
932     htmldir=$ac_optarg ;;
933
934   -includedir | --includedir | --includedi | --included | --include \
935   | --includ | --inclu | --incl | --inc)
936     ac_prev=includedir ;;
937   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938   | --includ=* | --inclu=* | --incl=* | --inc=*)
939     includedir=$ac_optarg ;;
940
941   -infodir | --infodir | --infodi | --infod | --info | --inf)
942     ac_prev=infodir ;;
943   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944     infodir=$ac_optarg ;;
945
946   -libdir | --libdir | --libdi | --libd)
947     ac_prev=libdir ;;
948   -libdir=* | --libdir=* | --libdi=* | --libd=*)
949     libdir=$ac_optarg ;;
950
951   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952   | --libexe | --libex | --libe)
953     ac_prev=libexecdir ;;
954   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955   | --libexe=* | --libex=* | --libe=*)
956     libexecdir=$ac_optarg ;;
957
958   -localedir | --localedir | --localedi | --localed | --locale)
959     ac_prev=localedir ;;
960   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961     localedir=$ac_optarg ;;
962
963   -localstatedir | --localstatedir | --localstatedi | --localstated \
964   | --localstate | --localstat | --localsta | --localst | --locals)
965     ac_prev=localstatedir ;;
966   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968     localstatedir=$ac_optarg ;;
969
970   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971     ac_prev=mandir ;;
972   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973     mandir=$ac_optarg ;;
974
975   -nfp | --nfp | --nf)
976     # Obsolete; use --without-fp.
977     with_fp=no ;;
978
979   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980   | --no-cr | --no-c | -n)
981     no_create=yes ;;
982
983   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985     no_recursion=yes ;;
986
987   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989   | --oldin | --oldi | --old | --ol | --o)
990     ac_prev=oldincludedir ;;
991   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994     oldincludedir=$ac_optarg ;;
995
996   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997     ac_prev=prefix ;;
998   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999     prefix=$ac_optarg ;;
1000
1001   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002   | --program-pre | --program-pr | --program-p)
1003     ac_prev=program_prefix ;;
1004   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006     program_prefix=$ac_optarg ;;
1007
1008   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009   | --program-suf | --program-su | --program-s)
1010     ac_prev=program_suffix ;;
1011   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013     program_suffix=$ac_optarg ;;
1014
1015   -program-transform-name | --program-transform-name \
1016   | --program-transform-nam | --program-transform-na \
1017   | --program-transform-n | --program-transform- \
1018   | --program-transform | --program-transfor \
1019   | --program-transfo | --program-transf \
1020   | --program-trans | --program-tran \
1021   | --progr-tra | --program-tr | --program-t)
1022     ac_prev=program_transform_name ;;
1023   -program-transform-name=* | --program-transform-name=* \
1024   | --program-transform-nam=* | --program-transform-na=* \
1025   | --program-transform-n=* | --program-transform-=* \
1026   | --program-transform=* | --program-transfor=* \
1027   | --program-transfo=* | --program-transf=* \
1028   | --program-trans=* | --program-tran=* \
1029   | --progr-tra=* | --program-tr=* | --program-t=*)
1030     program_transform_name=$ac_optarg ;;
1031
1032   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033     ac_prev=pdfdir ;;
1034   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035     pdfdir=$ac_optarg ;;
1036
1037   -psdir | --psdir | --psdi | --psd | --ps)
1038     ac_prev=psdir ;;
1039   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040     psdir=$ac_optarg ;;
1041
1042   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043   | -silent | --silent | --silen | --sile | --sil)
1044     silent=yes ;;
1045
1046   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047     ac_prev=sbindir ;;
1048   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049   | --sbi=* | --sb=*)
1050     sbindir=$ac_optarg ;;
1051
1052   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054   | --sharedst | --shareds | --shared | --share | --shar \
1055   | --sha | --sh)
1056     ac_prev=sharedstatedir ;;
1057   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060   | --sha=* | --sh=*)
1061     sharedstatedir=$ac_optarg ;;
1062
1063   -site | --site | --sit)
1064     ac_prev=site ;;
1065   -site=* | --site=* | --sit=*)
1066     site=$ac_optarg ;;
1067
1068   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069     ac_prev=srcdir ;;
1070   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071     srcdir=$ac_optarg ;;
1072
1073   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074   | --syscon | --sysco | --sysc | --sys | --sy)
1075     ac_prev=sysconfdir ;;
1076   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078     sysconfdir=$ac_optarg ;;
1079
1080   -target | --target | --targe | --targ | --tar | --ta | --t)
1081     ac_prev=target_alias ;;
1082   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083     target_alias=$ac_optarg ;;
1084
1085   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086     verbose=yes ;;
1087
1088   -version | --version | --versio | --versi | --vers | -V)
1089     ac_init_version=: ;;
1090
1091   -with-* | --with-*)
1092     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095       as_fn_error $? "invalid package name: $ac_useropt"
1096     ac_useropt_orig=$ac_useropt
1097     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098     case $ac_user_opts in
1099       *"
1100 "with_$ac_useropt"
1101 "*) ;;
1102       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103          ac_unrecognized_sep=', ';;
1104     esac
1105     eval with_$ac_useropt=\$ac_optarg ;;
1106
1107   -without-* | --without-*)
1108     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109     # Reject names that are not valid shell variable names.
1110     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111       as_fn_error $? "invalid package name: $ac_useropt"
1112     ac_useropt_orig=$ac_useropt
1113     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114     case $ac_user_opts in
1115       *"
1116 "with_$ac_useropt"
1117 "*) ;;
1118       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119          ac_unrecognized_sep=', ';;
1120     esac
1121     eval with_$ac_useropt=no ;;
1122
1123   --x)
1124     # Obsolete; use --with-x.
1125     with_x=yes ;;
1126
1127   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128   | --x-incl | --x-inc | --x-in | --x-i)
1129     ac_prev=x_includes ;;
1130   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132     x_includes=$ac_optarg ;;
1133
1134   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136     ac_prev=x_libraries ;;
1137   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139     x_libraries=$ac_optarg ;;
1140
1141   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142 Try \`$0 --help' for more information"
1143     ;;
1144
1145   *=*)
1146     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147     # Reject names that are not valid shell variable names.
1148     case $ac_envvar in #(
1149       '' | [0-9]* | *[!_$as_cr_alnum]* )
1150       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151     esac
1152     eval $ac_envvar=\$ac_optarg
1153     export $ac_envvar ;;
1154
1155   *)
1156     # FIXME: should be removed in autoconf 3.0.
1157     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161     ;;
1162
1163   esac
1164 done
1165
1166 if test -n "$ac_prev"; then
1167   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168   as_fn_error $? "missing argument to $ac_option"
1169 fi
1170
1171 if test -n "$ac_unrecognized_opts"; then
1172   case $enable_option_checking in
1173     no) ;;
1174     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176   esac
1177 fi
1178
1179 # Check all directory arguments for consistency.
1180 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181                 datadir sysconfdir sharedstatedir localstatedir includedir \
1182                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183                 libdir localedir mandir
1184 do
1185   eval ac_val=\$$ac_var
1186   # Remove trailing slashes.
1187   case $ac_val in
1188     */ )
1189       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190       eval $ac_var=\$ac_val;;
1191   esac
1192   # Be sure to have absolute directory names.
1193   case $ac_val in
1194     [\\/$]* | ?:[\\/]* )  continue;;
1195     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196   esac
1197   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1198 done
1199
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1203 build=$build_alias
1204 host=$host_alias
1205 target=$target_alias
1206
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x; then
1209   if test "x$build_alias" = x; then
1210     cross_compiling=maybe
1211     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1212     If a cross compiler is detected then cross compile mode will be used" >&2
1213   elif test "x$build_alias" != "x$host_alias"; then
1214     cross_compiling=yes
1215   fi
1216 fi
1217
1218 ac_tool_prefix=
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220
1221 test "$silent" = yes && exec 6>/dev/null
1222
1223
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227   as_fn_error $? "working directory cannot be determined"
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229   as_fn_error $? "pwd does not report name of working directory"
1230
1231
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234   ac_srcdir_defaulted=yes
1235   # Try the directory containing this script, then the parent directory.
1236   ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238          X"$as_myself" : 'X\(//\)[^/]' \| \
1239          X"$as_myself" : 'X\(//\)$' \| \
1240          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\/\)[^/].*/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)$/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\).*/{
1255             s//\1/
1256             q
1257           }
1258           s/.*/./; q'`
1259   srcdir=$ac_confdir
1260   if test ! -r "$srcdir/$ac_unique_file"; then
1261     srcdir=..
1262   fi
1263 else
1264   ac_srcdir_defaulted=no
1265 fi
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269 fi
1270 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 ac_abs_confdir=`(
1272         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273         pwd)`
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276   srcdir=.
1277 fi
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1281 case $srcdir in
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 esac
1284 for ac_var in $ac_precious_vars; do
1285   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286   eval ac_env_${ac_var}_value=\$${ac_var}
1287   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 done
1290
1291 #
1292 # Report the --help message.
1293 #
1294 if test "$ac_init_help" = "long"; then
1295   # Omit some internal or obsolete options to make the list less imposing.
1296   # This message is too long to be a string in the A/UX 3.1 sh.
1297   cat <<_ACEOF
1298 \`configure' configures this package to adapt to many kinds of systems.
1299
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE.  See below for descriptions of some of the useful variables.
1304
1305 Defaults for the options are specified in brackets.
1306
1307 Configuration:
1308   -h, --help              display this help and exit
1309       --help=short        display options specific to this package
1310       --help=recursive    display the short help of all the included packages
1311   -V, --version           display version information and exit
1312   -q, --quiet, --silent   do not print \`checking ...' messages
1313       --cache-file=FILE   cache test results in FILE [disabled]
1314   -C, --config-cache      alias for \`--cache-file=config.cache'
1315   -n, --no-create         do not create output files
1316       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1317
1318 Installation directories:
1319   --prefix=PREFIX         install architecture-independent files in PREFIX
1320                           [$ac_default_prefix]
1321   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1322                           [PREFIX]
1323
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1328
1329 For better control, use the options below.
1330
1331 Fine tuning of the installation directories:
1332   --bindir=DIR            user executables [EPREFIX/bin]
1333   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1334   --libexecdir=DIR        program executables [EPREFIX/libexec]
1335   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1336   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1337   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1338   --libdir=DIR            object code libraries [EPREFIX/lib]
1339   --includedir=DIR        C header files [PREFIX/include]
1340   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1341   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1342   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1343   --infodir=DIR           info documentation [DATAROOTDIR/info]
1344   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1345   --mandir=DIR            man documentation [DATAROOTDIR/man]
1346   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1347   --htmldir=DIR           html documentation [DOCDIR]
1348   --dvidir=DIR            dvi documentation [DOCDIR]
1349   --pdfdir=DIR            pdf documentation [DOCDIR]
1350   --psdir=DIR             ps documentation [DOCDIR]
1351 _ACEOF
1352
1353   cat <<\_ACEOF
1354
1355 System types:
1356   --build=BUILD     configure for building on BUILD [guessed]
1357   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1358 _ACEOF
1359 fi
1360
1361 if test -n "$ac_init_help"; then
1362
1363   cat <<\_ACEOF
1364
1365 Optional Features:
1366   --disable-option-checking  ignore unrecognized --enable/--with options
1367   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1368   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1369   --enable-shared[=PKGS]  build shared libraries [default=yes]
1370   --enable-static[=PKGS]  build static libraries [default=yes]
1371   --enable-fast-install[=PKGS]
1372                           optimize for fast installation [default=yes]
1373   --disable-libtool-lock  avoid locking (might break parallel builds)
1374  --enable-shared=yes/no Enable use of shared libraries default=yes
1375  --enable-gettext=yes/no Enable alternate language support default=yes
1376  --enable-lib64=yes/no Enable lib64 support default=no
1377
1378 Optional Packages:
1379   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1380   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1381   --with-pic              try to use only PIC/non-PIC objects [default=use
1382                           both]
1383   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1384   --with-sysroot=DIR Search for dependent libraries within DIR
1385                         (or the compiler's sysroot if not specified).
1386
1387 Some influential environment variables:
1388   CC          C compiler command
1389   CFLAGS      C compiler flags
1390   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1391               nonstandard directory <lib dir>
1392   LIBS        libraries to pass to the linker, e.g. -l<library>
1393   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1394               you have headers in a nonstandard directory <include dir>
1395   CPP         C preprocessor
1396
1397 Use these variables to override the choices made by `configure' or to help
1398 it to find libraries and programs with nonstandard names/locations.
1399
1400 Report bugs to the package provider.
1401 _ACEOF
1402 ac_status=$?
1403 fi
1404
1405 if test "$ac_init_help" = "recursive"; then
1406   # If there are subdirs, report their specific --help.
1407   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408     test -d "$ac_dir" ||
1409       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1410       continue
1411     ac_builddir=.
1412
1413 case "$ac_dir" in
1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 *)
1416   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1417   # A ".." for each directory in $ac_dir_suffix.
1418   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1419   case $ac_top_builddir_sub in
1420   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422   esac ;;
1423 esac
1424 ac_abs_top_builddir=$ac_pwd
1425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426 # for backward compatibility:
1427 ac_top_builddir=$ac_top_build_prefix
1428
1429 case $srcdir in
1430   .)  # We are building in place.
1431     ac_srcdir=.
1432     ac_top_srcdir=$ac_top_builddir_sub
1433     ac_abs_top_srcdir=$ac_pwd ;;
1434   [\\/]* | ?:[\\/]* )  # Absolute name.
1435     ac_srcdir=$srcdir$ac_dir_suffix;
1436     ac_top_srcdir=$srcdir
1437     ac_abs_top_srcdir=$srcdir ;;
1438   *) # Relative name.
1439     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440     ac_top_srcdir=$ac_top_build_prefix$srcdir
1441     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1442 esac
1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1444
1445     cd "$ac_dir" || { ac_status=$?; continue; }
1446     # Check for guested configure.
1447     if test -f "$ac_srcdir/configure.gnu"; then
1448       echo &&
1449       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450     elif test -f "$ac_srcdir/configure"; then
1451       echo &&
1452       $SHELL "$ac_srcdir/configure" --help=recursive
1453     else
1454       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455     fi || ac_status=$?
1456     cd "$ac_pwd" || { ac_status=$?; break; }
1457   done
1458 fi
1459
1460 test -n "$ac_init_help" && exit $ac_status
1461 if $ac_init_version; then
1462   cat <<\_ACEOF
1463 configure
1464 generated by GNU Autoconf 2.68
1465
1466 Copyright (C) 2010 Free Software Foundation, Inc.
1467 This configure script is free software; the Free Software Foundation
1468 gives unlimited permission to copy, distribute and modify it.
1469 _ACEOF
1470   exit
1471 fi
1472
1473 ## ------------------------ ##
1474 ## Autoconf initialization. ##
1475 ## ------------------------ ##
1476
1477 # ac_fn_c_try_compile LINENO
1478 # --------------------------
1479 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1480 ac_fn_c_try_compile ()
1481 {
1482   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483   rm -f conftest.$ac_objext
1484   if { { ac_try="$ac_compile"
1485 case "(($ac_try" in
1486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487   *) ac_try_echo=$ac_try;;
1488 esac
1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 $as_echo "$ac_try_echo"; } >&5
1491   (eval "$ac_compile") 2>conftest.err
1492   ac_status=$?
1493   if test -s conftest.err; then
1494     grep -v '^ *+' conftest.err >conftest.er1
1495     cat conftest.er1 >&5
1496     mv -f conftest.er1 conftest.err
1497   fi
1498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499   test $ac_status = 0; } && {
1500          test -z "$ac_c_werror_flag" ||
1501          test ! -s conftest.err
1502        } && test -s conftest.$ac_objext; then :
1503   ac_retval=0
1504 else
1505   $as_echo "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1507
1508         ac_retval=1
1509 fi
1510   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511   as_fn_set_status $ac_retval
1512
1513 } # ac_fn_c_try_compile
1514
1515 # ac_fn_c_try_link LINENO
1516 # -----------------------
1517 # Try to link conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_link ()
1519 {
1520   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521   rm -f conftest.$ac_objext conftest$ac_exeext
1522   if { { ac_try="$ac_link"
1523 case "(($ac_try" in
1524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525   *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529   (eval "$ac_link") 2>conftest.err
1530   ac_status=$?
1531   if test -s conftest.err; then
1532     grep -v '^ *+' conftest.err >conftest.er1
1533     cat conftest.er1 >&5
1534     mv -f conftest.er1 conftest.err
1535   fi
1536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537   test $ac_status = 0; } && {
1538          test -z "$ac_c_werror_flag" ||
1539          test ! -s conftest.err
1540        } && test -s conftest$ac_exeext && {
1541          test "$cross_compiling" = yes ||
1542          $as_test_x conftest$ac_exeext
1543        }; then :
1544   ac_retval=0
1545 else
1546   $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1548
1549         ac_retval=1
1550 fi
1551   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1552   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1553   # interfere with the next link command; also delete a directory that is
1554   # left behind by Apple's compiler.  We do this before executing the actions.
1555   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1556   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557   as_fn_set_status $ac_retval
1558
1559 } # ac_fn_c_try_link
1560
1561 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1562 # -------------------------------------------------------
1563 # Tests whether HEADER exists and can be compiled using the include files in
1564 # INCLUDES, setting the cache variable VAR accordingly.
1565 ac_fn_c_check_header_compile ()
1566 {
1567   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1569 $as_echo_n "checking for $2... " >&6; }
1570 if eval \${$3+:} false; then :
1571   $as_echo_n "(cached) " >&6
1572 else
1573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h.  */
1575 $4
1576 #include <$2>
1577 _ACEOF
1578 if ac_fn_c_try_compile "$LINENO"; then :
1579   eval "$3=yes"
1580 else
1581   eval "$3=no"
1582 fi
1583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1584 fi
1585 eval ac_res=\$$3
1586                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587 $as_echo "$ac_res" >&6; }
1588   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589
1590 } # ac_fn_c_check_header_compile
1591
1592 # ac_fn_c_try_cpp LINENO
1593 # ----------------------
1594 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_cpp ()
1596 {
1597   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598   if { { ac_try="$ac_cpp conftest.$ac_ext"
1599 case "(($ac_try" in
1600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601   *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606   ac_status=$?
1607   if test -s conftest.err; then
1608     grep -v '^ *+' conftest.err >conftest.er1
1609     cat conftest.er1 >&5
1610     mv -f conftest.er1 conftest.err
1611   fi
1612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613   test $ac_status = 0; } > conftest.i && {
1614          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615          test ! -s conftest.err
1616        }; then :
1617   ac_retval=0
1618 else
1619   $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622     ac_retval=1
1623 fi
1624   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625   as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_cpp
1628
1629 # ac_fn_c_try_run LINENO
1630 # ----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1632 # that executables *can* be run.
1633 ac_fn_c_try_run ()
1634 {
1635   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636   if { { ac_try="$ac_link"
1637 case "(($ac_try" in
1638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639   *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643   (eval "$ac_link") 2>&5
1644   ac_status=$?
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1647   { { case "(($ac_try" in
1648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649   *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653   (eval "$ac_try") 2>&5
1654   ac_status=$?
1655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656   test $ac_status = 0; }; }; then :
1657   ac_retval=0
1658 else
1659   $as_echo "$as_me: program exited with status $ac_status" >&5
1660        $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663        ac_retval=$ac_status
1664 fi
1665   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667   as_fn_set_status $ac_retval
1668
1669 } # ac_fn_c_try_run
1670
1671 # ac_fn_c_check_func LINENO FUNC VAR
1672 # ----------------------------------
1673 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1674 ac_fn_c_check_func ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 $as_echo_n "checking for $2... " >&6; }
1679 if eval \${$3+:} false; then :
1680   $as_echo_n "(cached) " >&6
1681 else
1682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h.  */
1684 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1686 #define $2 innocuous_$2
1687
1688 /* System header to define __stub macros and hopefully few prototypes,
1689     which can conflict with char $2 (); below.
1690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1691     <limits.h> exists even on freestanding compilers.  */
1692
1693 #ifdef __STDC__
1694 # include <limits.h>
1695 #else
1696 # include <assert.h>
1697 #endif
1698
1699 #undef $2
1700
1701 /* Override any GCC internal prototype to avoid an error.
1702    Use char because int might match the return type of a GCC
1703    builtin and then its argument prototype would still apply.  */
1704 #ifdef __cplusplus
1705 extern "C"
1706 #endif
1707 char $2 ();
1708 /* The GNU C library defines this for functions which it implements
1709     to always fail with ENOSYS.  Some functions are actually named
1710     something starting with __ and the normal name is an alias.  */
1711 #if defined __stub_$2 || defined __stub___$2
1712 choke me
1713 #endif
1714
1715 int
1716 main ()
1717 {
1718 return $2 ();
1719   ;
1720   return 0;
1721 }
1722 _ACEOF
1723 if ac_fn_c_try_link "$LINENO"; then :
1724   eval "$3=yes"
1725 else
1726   eval "$3=no"
1727 fi
1728 rm -f core conftest.err conftest.$ac_objext \
1729     conftest$ac_exeext conftest.$ac_ext
1730 fi
1731 eval ac_res=\$$3
1732                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736 } # ac_fn_c_check_func
1737
1738 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1739 # -------------------------------------------
1740 # Tests whether TYPE exists after having included INCLUDES, setting cache
1741 # variable VAR accordingly.
1742 ac_fn_c_check_type ()
1743 {
1744   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if eval \${$3+:} false; then :
1748   $as_echo_n "(cached) " >&6
1749 else
1750   eval "$3=no"
1751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h.  */
1753 $4
1754 int
1755 main ()
1756 {
1757 if (sizeof ($2))
1758          return 0;
1759   ;
1760   return 0;
1761 }
1762 _ACEOF
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h.  */
1766 $4
1767 int
1768 main ()
1769 {
1770 if (sizeof (($2)))
1771             return 0;
1772   ;
1773   return 0;
1774 }
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"; then :
1777
1778 else
1779   eval "$3=yes"
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_type
1791 cat >config.log <<_ACEOF
1792 This file contains any messages produced by compilers while
1793 running configure, to aid debugging if configure makes a mistake.
1794
1795 It was created by $as_me, which was
1796 generated by GNU Autoconf 2.68.  Invocation command line was
1797
1798   $ $0 $@
1799
1800 _ACEOF
1801 exec 5>>config.log
1802 {
1803 cat <<_ASUNAME
1804 ## --------- ##
1805 ## Platform. ##
1806 ## --------- ##
1807
1808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1813
1814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1815 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1816
1817 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1818 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1820 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1821 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1822 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1823 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1824
1825 _ASUNAME
1826
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 for as_dir in $PATH
1829 do
1830   IFS=$as_save_IFS
1831   test -z "$as_dir" && as_dir=.
1832     $as_echo "PATH: $as_dir"
1833   done
1834 IFS=$as_save_IFS
1835
1836 } >&5
1837
1838 cat >&5 <<_ACEOF
1839
1840
1841 ## ----------- ##
1842 ## Core tests. ##
1843 ## ----------- ##
1844
1845 _ACEOF
1846
1847
1848 # Keep a trace of the command line.
1849 # Strip out --no-create and --no-recursion so they do not pile up.
1850 # Strip out --silent because we don't want to record it for future runs.
1851 # Also quote any args containing shell meta-characters.
1852 # Make two passes to allow for proper duplicate-argument suppression.
1853 ac_configure_args=
1854 ac_configure_args0=
1855 ac_configure_args1=
1856 ac_must_keep_next=false
1857 for ac_pass in 1 2
1858 do
1859   for ac_arg
1860   do
1861     case $ac_arg in
1862     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1863     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1864     | -silent | --silent | --silen | --sile | --sil)
1865       continue ;;
1866     *\'*)
1867       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868     esac
1869     case $ac_pass in
1870     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1871     2)
1872       as_fn_append ac_configure_args1 " '$ac_arg'"
1873       if test $ac_must_keep_next = true; then
1874         ac_must_keep_next=false # Got value, back to normal.
1875       else
1876         case $ac_arg in
1877           *=* | --config-cache | -C | -disable-* | --disable-* \
1878           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1879           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1880           | -with-* | --with-* | -without-* | --without-* | --x)
1881             case "$ac_configure_args0 " in
1882               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1883             esac
1884             ;;
1885           -* ) ac_must_keep_next=true ;;
1886         esac
1887       fi
1888       as_fn_append ac_configure_args " '$ac_arg'"
1889       ;;
1890     esac
1891   done
1892 done
1893 { ac_configure_args0=; unset ac_configure_args0;}
1894 { ac_configure_args1=; unset ac_configure_args1;}
1895
1896 # When interrupted or exit'd, cleanup temporary files, and complete
1897 # config.log.  We remove comments because anyway the quotes in there
1898 # would cause problems or look ugly.
1899 # WARNING: Use '\'' to represent an apostrophe within the trap.
1900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1901 trap 'exit_status=$?
1902   # Save into config.log some information that might help in debugging.
1903   {
1904     echo
1905
1906     $as_echo "## ---------------- ##
1907 ## Cache variables. ##
1908 ## ---------------- ##"
1909     echo
1910     # The following way of writing the cache mishandles newlines in values,
1911 (
1912   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1913     eval ac_val=\$$ac_var
1914     case $ac_val in #(
1915     *${as_nl}*)
1916       case $ac_var in #(
1917       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1918 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1919       esac
1920       case $ac_var in #(
1921       _ | IFS | as_nl) ;; #(
1922       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1923       *) { eval $ac_var=; unset $ac_var;} ;;
1924       esac ;;
1925     esac
1926   done
1927   (set) 2>&1 |
1928     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1929     *${as_nl}ac_space=\ *)
1930       sed -n \
1931         "s/'\''/'\''\\\\'\'''\''/g;
1932           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1933       ;; #(
1934     *)
1935       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1936       ;;
1937     esac |
1938     sort
1939 )
1940     echo
1941
1942     $as_echo "## ----------------- ##
1943 ## Output variables. ##
1944 ## ----------------- ##"
1945     echo
1946     for ac_var in $ac_subst_vars
1947     do
1948       eval ac_val=\$$ac_var
1949       case $ac_val in
1950       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1951       esac
1952       $as_echo "$ac_var='\''$ac_val'\''"
1953     done | sort
1954     echo
1955
1956     if test -n "$ac_subst_files"; then
1957       $as_echo "## ------------------- ##
1958 ## File substitutions. ##
1959 ## ------------------- ##"
1960       echo
1961       for ac_var in $ac_subst_files
1962       do
1963         eval ac_val=\$$ac_var
1964         case $ac_val in
1965         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966         esac
1967         $as_echo "$ac_var='\''$ac_val'\''"
1968       done | sort
1969       echo
1970     fi
1971
1972     if test -s confdefs.h; then
1973       $as_echo "## ----------- ##
1974 ## confdefs.h. ##
1975 ## ----------- ##"
1976       echo
1977       cat confdefs.h
1978       echo
1979     fi
1980     test "$ac_signal" != 0 &&
1981       $as_echo "$as_me: caught signal $ac_signal"
1982     $as_echo "$as_me: exit $exit_status"
1983   } >&5
1984   rm -f core *.core core.conftest.* &&
1985     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1986     exit $exit_status
1987 ' 0
1988 for ac_signal in 1 2 13 15; do
1989   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1990 done
1991 ac_signal=0
1992
1993 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1994 rm -f -r conftest* confdefs.h
1995
1996 $as_echo "/* confdefs.h */" > confdefs.h
1997
1998 # Predefined preprocessor variables.
1999
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE_NAME "$PACKAGE_NAME"
2002 _ACEOF
2003
2004 cat >>confdefs.h <<_ACEOF
2005 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2006 _ACEOF
2007
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2010 _ACEOF
2011
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_STRING "$PACKAGE_STRING"
2014 _ACEOF
2015
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2018 _ACEOF
2019
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_URL "$PACKAGE_URL"
2022 _ACEOF
2023
2024
2025 # Let the site file select an alternate cache file if it wants to.
2026 # Prefer an explicitly selected file to automatically selected ones.
2027 ac_site_file1=NONE
2028 ac_site_file2=NONE
2029 if test -n "$CONFIG_SITE"; then
2030   # We do not want a PATH search for config.site.
2031   case $CONFIG_SITE in #((
2032     -*)  ac_site_file1=./$CONFIG_SITE;;
2033     */*) ac_site_file1=$CONFIG_SITE;;
2034     *)   ac_site_file1=./$CONFIG_SITE;;
2035   esac
2036 elif test "x$prefix" != xNONE; then
2037   ac_site_file1=$prefix/share/config.site
2038   ac_site_file2=$prefix/etc/config.site
2039 else
2040   ac_site_file1=$ac_default_prefix/share/config.site
2041   ac_site_file2=$ac_default_prefix/etc/config.site
2042 fi
2043 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2044 do
2045   test "x$ac_site_file" = xNONE && continue
2046   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2047     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2048 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2049     sed 's/^/| /' "$ac_site_file" >&5
2050     . "$ac_site_file" \
2051       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 as_fn_error $? "failed to load site script $ac_site_file
2054 See \`config.log' for more details" "$LINENO" 5; }
2055   fi
2056 done
2057
2058 if test -r "$cache_file"; then
2059   # Some versions of bash will fail to source /dev/null (special files
2060   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2061   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2062     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2063 $as_echo "$as_me: loading cache $cache_file" >&6;}
2064     case $cache_file in
2065       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2066       *)                      . "./$cache_file";;
2067     esac
2068   fi
2069 else
2070   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2071 $as_echo "$as_me: creating cache $cache_file" >&6;}
2072   >$cache_file
2073 fi
2074
2075 # Check that the precious variables saved in the cache have kept the same
2076 # value.
2077 ac_cache_corrupted=false
2078 for ac_var in $ac_precious_vars; do
2079   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2080   eval ac_new_set=\$ac_env_${ac_var}_set
2081   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2082   eval ac_new_val=\$ac_env_${ac_var}_value
2083   case $ac_old_set,$ac_new_set in
2084     set,)
2085       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2086 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2087       ac_cache_corrupted=: ;;
2088     ,set)
2089       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2090 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2091       ac_cache_corrupted=: ;;
2092     ,);;
2093     *)
2094       if test "x$ac_old_val" != "x$ac_new_val"; then
2095         # differences in whitespace do not lead to failure.
2096         ac_old_val_w=`echo x $ac_old_val`
2097         ac_new_val_w=`echo x $ac_new_val`
2098         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2099           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2100 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2101           ac_cache_corrupted=:
2102         else
2103           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2104 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2105           eval $ac_var=\$ac_old_val
2106         fi
2107         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2108 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2109         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2110 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2111       fi;;
2112   esac
2113   # Pass precious variables to config.status.
2114   if test "$ac_new_set" = set; then
2115     case $ac_new_val in
2116     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2117     *) ac_arg=$ac_var=$ac_new_val ;;
2118     esac
2119     case " $ac_configure_args " in
2120       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2121       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2122     esac
2123   fi
2124 done
2125 if $ac_cache_corrupted; then
2126   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2128   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2129 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2130   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2131 fi
2132 ## -------------------- ##
2133 ## Main body of script. ##
2134 ## -------------------- ##
2135
2136 ac_ext=c
2137 ac_cpp='$CPP $CPPFLAGS'
2138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2141
2142
2143 ac_aux_dir=
2144 for ac_dir in . "$srcdir"/.; do
2145   if test -f "$ac_dir/install-sh"; then
2146     ac_aux_dir=$ac_dir
2147     ac_install_sh="$ac_aux_dir/install-sh -c"
2148     break
2149   elif test -f "$ac_dir/install.sh"; then
2150     ac_aux_dir=$ac_dir
2151     ac_install_sh="$ac_aux_dir/install.sh -c"
2152     break
2153   elif test -f "$ac_dir/shtool"; then
2154     ac_aux_dir=$ac_dir
2155     ac_install_sh="$ac_aux_dir/shtool install -c"
2156     break
2157   fi
2158 done
2159 if test -z "$ac_aux_dir"; then
2160   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2161 fi
2162
2163 # These three variables are undocumented and unsupported,
2164 # and are intended to be withdrawn in a future Autoconf release.
2165 # They can cause serious problems if a builder's source tree is in a directory
2166 # whose full name contains unusual characters.
2167 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2168 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2169 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2170
2171
2172
2173 ac_config_headers="$ac_config_headers include/config.h"
2174
2175
2176
2177 case `pwd` in
2178   *\ * | *\     *)
2179     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2180 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2181 esac
2182
2183
2184
2185 macro_version='2.4'
2186 macro_revision='1.3293'
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200 ltmain="$ac_aux_dir/ltmain.sh"
2201
2202 # Make sure we can run config.sub.
2203 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2204   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2205
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2207 $as_echo_n "checking build system type... " >&6; }
2208 if ${ac_cv_build+:} false; then :
2209   $as_echo_n "(cached) " >&6
2210 else
2211   ac_build_alias=$build_alias
2212 test "x$ac_build_alias" = x &&
2213   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2214 test "x$ac_build_alias" = x &&
2215   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2216 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2217   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2218
2219 fi
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2221 $as_echo "$ac_cv_build" >&6; }
2222 case $ac_cv_build in
2223 *-*-*) ;;
2224 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2225 esac
2226 build=$ac_cv_build
2227 ac_save_IFS=$IFS; IFS='-'
2228 set x $ac_cv_build
2229 shift
2230 build_cpu=$1
2231 build_vendor=$2
2232 shift; shift
2233 # Remember, the first character of IFS is used to create $*,
2234 # except with old shells:
2235 build_os=$*
2236 IFS=$ac_save_IFS
2237 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2238
2239
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2241 $as_echo_n "checking host system type... " >&6; }
2242 if ${ac_cv_host+:} false; then :
2243   $as_echo_n "(cached) " >&6
2244 else
2245   if test "x$host_alias" = x; then
2246   ac_cv_host=$ac_cv_build
2247 else
2248   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2249     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2250 fi
2251
2252 fi
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2254 $as_echo "$ac_cv_host" >&6; }
2255 case $ac_cv_host in
2256 *-*-*) ;;
2257 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2258 esac
2259 host=$ac_cv_host
2260 ac_save_IFS=$IFS; IFS='-'
2261 set x $ac_cv_host
2262 shift
2263 host_cpu=$1
2264 host_vendor=$2
2265 shift; shift
2266 # Remember, the first character of IFS is used to create $*,
2267 # except with old shells:
2268 host_os=$*
2269 IFS=$ac_save_IFS
2270 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2271
2272
2273 # Backslashify metacharacters that are still active within
2274 # double-quoted strings.
2275 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2276
2277 # Same as above, but do not quote variable references.
2278 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2279
2280 # Sed substitution to delay expansion of an escaped shell variable in a
2281 # double_quote_subst'ed string.
2282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2283
2284 # Sed substitution to delay expansion of an escaped single quote.
2285 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2286
2287 # Sed substitution to avoid accidental globbing in evaled expressions
2288 no_glob_subst='s/\*/\\\*/g'
2289
2290 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2291 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2292 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2293
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2295 $as_echo_n "checking how to print strings... " >&6; }
2296 # Test print first, because it will be a builtin if present.
2297 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2298    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2299   ECHO='print -r --'
2300 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2301   ECHO='printf %s\n'
2302 else
2303   # Use this function as a fallback that always works.
2304   func_fallback_echo ()
2305   {
2306     eval 'cat <<_LTECHO_EOF
2307 $1
2308 _LTECHO_EOF'
2309   }
2310   ECHO='func_fallback_echo'
2311 fi
2312
2313 # func_echo_all arg...
2314 # Invoke $ECHO with all args, space-separated.
2315 func_echo_all ()
2316 {
2317     $ECHO ""
2318 }
2319
2320 case "$ECHO" in
2321   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2322 $as_echo "printf" >&6; } ;;
2323   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2324 $as_echo "print -r" >&6; } ;;
2325   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2326 $as_echo "cat" >&6; } ;;
2327 esac
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347 if test -n "$ac_tool_prefix"; then
2348   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2349 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2351 $as_echo_n "checking for $ac_word... " >&6; }
2352 if ${ac_cv_prog_CC+:} false; then :
2353   $as_echo_n "(cached) " >&6
2354 else
2355   if test -n "$CC"; then
2356   ac_cv_prog_CC="$CC" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363     for ac_exec_ext in '' $ac_executable_extensions; do
2364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370   done
2371 IFS=$as_save_IFS
2372
2373 fi
2374 fi
2375 CC=$ac_cv_prog_CC
2376 if test -n "$CC"; then
2377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2378 $as_echo "$CC" >&6; }
2379 else
2380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2381 $as_echo "no" >&6; }
2382 fi
2383
2384
2385 fi
2386 if test -z "$ac_cv_prog_CC"; then
2387   ac_ct_CC=$CC
2388   # Extract the first word of "gcc", so it can be a program name with args.
2389 set dummy gcc; ac_word=$2
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2391 $as_echo_n "checking for $ac_word... " >&6; }
2392 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2393   $as_echo_n "(cached) " >&6
2394 else
2395   if test -n "$ac_ct_CC"; then
2396   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401   IFS=$as_save_IFS
2402   test -z "$as_dir" && as_dir=.
2403     for ac_exec_ext in '' $ac_executable_extensions; do
2404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405     ac_cv_prog_ac_ct_CC="gcc"
2406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2407     break 2
2408   fi
2409 done
2410   done
2411 IFS=$as_save_IFS
2412
2413 fi
2414 fi
2415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2416 if test -n "$ac_ct_CC"; then
2417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2418 $as_echo "$ac_ct_CC" >&6; }
2419 else
2420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2421 $as_echo "no" >&6; }
2422 fi
2423
2424   if test "x$ac_ct_CC" = x; then
2425     CC=""
2426   else
2427     case $cross_compiling:$ac_tool_warned in
2428 yes:)
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2431 ac_tool_warned=yes ;;
2432 esac
2433     CC=$ac_ct_CC
2434   fi
2435 else
2436   CC="$ac_cv_prog_CC"
2437 fi
2438
2439 if test -z "$CC"; then
2440           if test -n "$ac_tool_prefix"; then
2441     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2442 set dummy ${ac_tool_prefix}cc; ac_word=$2
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444 $as_echo_n "checking for $ac_word... " >&6; }
2445 if ${ac_cv_prog_CC+:} false; then :
2446   $as_echo_n "(cached) " >&6
2447 else
2448   if test -n "$CC"; then
2449   ac_cv_prog_CC="$CC" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454   IFS=$as_save_IFS
2455   test -z "$as_dir" && as_dir=.
2456     for ac_exec_ext in '' $ac_executable_extensions; do
2457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458     ac_cv_prog_CC="${ac_tool_prefix}cc"
2459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2460     break 2
2461   fi
2462 done
2463   done
2464 IFS=$as_save_IFS
2465
2466 fi
2467 fi
2468 CC=$ac_cv_prog_CC
2469 if test -n "$CC"; then
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2471 $as_echo "$CC" >&6; }
2472 else
2473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474 $as_echo "no" >&6; }
2475 fi
2476
2477
2478   fi
2479 fi
2480 if test -z "$CC"; then
2481   # Extract the first word of "cc", so it can be a program name with args.
2482 set dummy cc; ac_word=$2
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2484 $as_echo_n "checking for $ac_word... " >&6; }
2485 if ${ac_cv_prog_CC+:} false; then :
2486   $as_echo_n "(cached) " >&6
2487 else
2488   if test -n "$CC"; then
2489   ac_cv_prog_CC="$CC" # Let the user override the test.
2490 else
2491   ac_prog_rejected=no
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495   IFS=$as_save_IFS
2496   test -z "$as_dir" && as_dir=.
2497     for ac_exec_ext in '' $ac_executable_extensions; do
2498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2500        ac_prog_rejected=yes
2501        continue
2502      fi
2503     ac_cv_prog_CC="cc"
2504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505     break 2
2506   fi
2507 done
2508   done
2509 IFS=$as_save_IFS
2510
2511 if test $ac_prog_rejected = yes; then
2512   # We found a bogon in the path, so make sure we never use it.
2513   set dummy $ac_cv_prog_CC
2514   shift
2515   if test $# != 0; then
2516     # We chose a different compiler from the bogus one.
2517     # However, it has the same basename, so the bogon will be chosen
2518     # first if we set CC to just the basename; use the full file name.
2519     shift
2520     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2521   fi
2522 fi
2523 fi
2524 fi
2525 CC=$ac_cv_prog_CC
2526 if test -n "$CC"; then
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2528 $as_echo "$CC" >&6; }
2529 else
2530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2532 fi
2533
2534
2535 fi
2536 if test -z "$CC"; then
2537   if test -n "$ac_tool_prefix"; then
2538   for ac_prog in cl.exe
2539   do
2540     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543 $as_echo_n "checking for $ac_word... " >&6; }
2544 if ${ac_cv_prog_CC+:} false; then :
2545   $as_echo_n "(cached) " >&6
2546 else
2547   if test -n "$CC"; then
2548   ac_cv_prog_CC="$CC" # Let the user override the test.
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553   IFS=$as_save_IFS
2554   test -z "$as_dir" && as_dir=.
2555     for ac_exec_ext in '' $ac_executable_extensions; do
2556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2557     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2559     break 2
2560   fi
2561 done
2562   done
2563 IFS=$as_save_IFS
2564
2565 fi
2566 fi
2567 CC=$ac_cv_prog_CC
2568 if test -n "$CC"; then
2569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2570 $as_echo "$CC" >&6; }
2571 else
2572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2574 fi
2575
2576
2577     test -n "$CC" && break
2578   done
2579 fi
2580 if test -z "$CC"; then
2581   ac_ct_CC=$CC
2582   for ac_prog in cl.exe
2583 do
2584   # Extract the first word of "$ac_prog", so it can be a program name with args.
2585 set dummy $ac_prog; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2589   $as_echo_n "(cached) " >&6
2590 else
2591   if test -n "$ac_ct_CC"; then
2592   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599     for ac_exec_ext in '' $ac_executable_extensions; do
2600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601     ac_cv_prog_ac_ct_CC="$ac_prog"
2602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606   done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2612 if test -n "$ac_ct_CC"; then
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2614 $as_echo "$ac_ct_CC" >&6; }
2615 else
2616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2618 fi
2619
2620
2621   test -n "$ac_ct_CC" && break
2622 done
2623
2624   if test "x$ac_ct_CC" = x; then
2625     CC=""
2626   else
2627     case $cross_compiling:$ac_tool_warned in
2628 yes:)
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2631 ac_tool_warned=yes ;;
2632 esac
2633     CC=$ac_ct_CC
2634   fi
2635 fi
2636
2637 fi
2638
2639
2640 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 as_fn_error $? "no acceptable C compiler found in \$PATH
2643 See \`config.log' for more details" "$LINENO" 5; }
2644
2645 # Provide some information about the compiler.
2646 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2647 set X $ac_compile
2648 ac_compiler=$2
2649 for ac_option in --version -v -V -qversion; do
2650   { { ac_try="$ac_compiler $ac_option >&5"
2651 case "(($ac_try" in
2652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653   *) ac_try_echo=$ac_try;;
2654 esac
2655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2656 $as_echo "$ac_try_echo"; } >&5
2657   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2658   ac_status=$?
2659   if test -s conftest.err; then
2660     sed '10a\
2661 ... rest of stderr output deleted ...
2662          10q' conftest.err >conftest.er1
2663     cat conftest.er1 >&5
2664   fi
2665   rm -f conftest.er1 conftest.err
2666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2667   test $ac_status = 0; }
2668 done
2669
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h.  */
2672
2673 int
2674 main ()
2675 {
2676
2677   ;
2678   return 0;
2679 }
2680 _ACEOF
2681 ac_clean_files_save=$ac_clean_files
2682 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2683 # Try to create an executable without -o first, disregard a.out.
2684 # It will help us diagnose broken compilers, and finding out an intuition
2685 # of exeext.
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2687 $as_echo_n "checking whether the C compiler works... " >&6; }
2688 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2689
2690 # The possible output files:
2691 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2692
2693 ac_rmfiles=
2694 for ac_file in $ac_files
2695 do
2696   case $ac_file in
2697     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2698     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2699   esac
2700 done
2701 rm -f $ac_rmfiles
2702
2703 if { { ac_try="$ac_link_default"
2704 case "(($ac_try" in
2705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706   *) ac_try_echo=$ac_try;;
2707 esac
2708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2709 $as_echo "$ac_try_echo"; } >&5
2710   (eval "$ac_link_default") 2>&5
2711   ac_status=$?
2712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713   test $ac_status = 0; }; then :
2714   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2715 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2716 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2717 # so that the user can short-circuit this test for compilers unknown to
2718 # Autoconf.
2719 for ac_file in $ac_files ''
2720 do
2721   test -f "$ac_file" || continue
2722   case $ac_file in
2723     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2724         ;;
2725     [ab].out )
2726         # We found the default executable, but exeext='' is most
2727         # certainly right.
2728         break;;
2729     *.* )
2730         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2731         then :; else
2732            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2733         fi
2734         # We set ac_cv_exeext here because the later test for it is not
2735         # safe: cross compilers may not add the suffix if given an `-o'
2736         # argument, so we may need to know it at that point already.
2737         # Even if this section looks crufty: it has the advantage of
2738         # actually working.
2739         break;;
2740     * )
2741         break;;
2742   esac
2743 done
2744 test "$ac_cv_exeext" = no && ac_cv_exeext=
2745
2746 else
2747   ac_file=''
2748 fi
2749 if test -z "$ac_file"; then :
2750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2752 $as_echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2754
2755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2757 as_fn_error 77 "C compiler cannot create executables
2758 See \`config.log' for more details" "$LINENO" 5; }
2759 else
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2761 $as_echo "yes" >&6; }
2762 fi
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2764 $as_echo_n "checking for C compiler default output file name... " >&6; }
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2766 $as_echo "$ac_file" >&6; }
2767 ac_exeext=$ac_cv_exeext
2768
2769 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2770 ac_clean_files=$ac_clean_files_save
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2772 $as_echo_n "checking for suffix of executables... " >&6; }
2773 if { { ac_try="$ac_link"
2774 case "(($ac_try" in
2775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776   *) ac_try_echo=$ac_try;;
2777 esac
2778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2779 $as_echo "$ac_try_echo"; } >&5
2780   (eval "$ac_link") 2>&5
2781   ac_status=$?
2782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2783   test $ac_status = 0; }; then :
2784   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2785 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2786 # work properly (i.e., refer to `conftest.exe'), while it won't with
2787 # `rm'.
2788 for ac_file in conftest.exe conftest conftest.*; do
2789   test -f "$ac_file" || continue
2790   case $ac_file in
2791     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2792     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2793           break;;
2794     * ) break;;
2795   esac
2796 done
2797 else
2798   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2800 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2801 See \`config.log' for more details" "$LINENO" 5; }
2802 fi
2803 rm -f conftest conftest$ac_cv_exeext
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2805 $as_echo "$ac_cv_exeext" >&6; }
2806
2807 rm -f conftest.$ac_ext
2808 EXEEXT=$ac_cv_exeext
2809 ac_exeext=$EXEEXT
2810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811 /* end confdefs.h.  */
2812 #include <stdio.h>
2813 int
2814 main ()
2815 {
2816 FILE *f = fopen ("conftest.out", "w");
2817  return ferror (f) || fclose (f) != 0;
2818
2819   ;
2820   return 0;
2821 }
2822 _ACEOF
2823 ac_clean_files="$ac_clean_files conftest.out"
2824 # Check that the compiler produces executables we can run.  If not, either
2825 # the compiler is broken, or we cross compile.
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2827 $as_echo_n "checking whether we are cross compiling... " >&6; }
2828 if test "$cross_compiling" != yes; then
2829   { { ac_try="$ac_link"
2830 case "(($ac_try" in
2831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832   *) ac_try_echo=$ac_try;;
2833 esac
2834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2835 $as_echo "$ac_try_echo"; } >&5
2836   (eval "$ac_link") 2>&5
2837   ac_status=$?
2838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2839   test $ac_status = 0; }
2840   if { ac_try='./conftest$ac_cv_exeext'
2841   { { case "(($ac_try" in
2842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843   *) ac_try_echo=$ac_try;;
2844 esac
2845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846 $as_echo "$ac_try_echo"; } >&5
2847   (eval "$ac_try") 2>&5
2848   ac_status=$?
2849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850   test $ac_status = 0; }; }; then
2851     cross_compiling=no
2852   else
2853     if test "$cross_compiling" = maybe; then
2854         cross_compiling=yes
2855     else
2856         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2858 as_fn_error $? "cannot run C compiled programs.
2859 If you meant to cross compile, use \`--host'.
2860 See \`config.log' for more details" "$LINENO" 5; }
2861     fi
2862   fi
2863 fi
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2865 $as_echo "$cross_compiling" >&6; }
2866
2867 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2868 ac_clean_files=$ac_clean_files_save
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2870 $as_echo_n "checking for suffix of object files... " >&6; }
2871 if ${ac_cv_objext+:} false; then :
2872   $as_echo_n "(cached) " >&6
2873 else
2874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h.  */
2876
2877 int
2878 main ()
2879 {
2880
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 rm -f conftest.o conftest.obj
2886 if { { ac_try="$ac_compile"
2887 case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892 $as_echo "$ac_try_echo"; } >&5
2893   (eval "$ac_compile") 2>&5
2894   ac_status=$?
2895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896   test $ac_status = 0; }; then :
2897   for ac_file in conftest.o conftest.obj conftest.*; do
2898   test -f "$ac_file" || continue;
2899   case $ac_file in
2900     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2901     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2902        break;;
2903   esac
2904 done
2905 else
2906   $as_echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2911 as_fn_error $? "cannot compute suffix of object files: cannot compile
2912 See \`config.log' for more details" "$LINENO" 5; }
2913 fi
2914 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2915 fi
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2917 $as_echo "$ac_cv_objext" >&6; }
2918 OBJEXT=$ac_cv_objext
2919 ac_objext=$OBJEXT
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2921 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2922 if ${ac_cv_c_compiler_gnu+:} false; then :
2923   $as_echo_n "(cached) " >&6
2924 else
2925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h.  */
2927
2928 int
2929 main ()
2930 {
2931 #ifndef __GNUC__
2932        choke me
2933 #endif
2934
2935   ;
2936   return 0;
2937 }
2938 _ACEOF
2939 if ac_fn_c_try_compile "$LINENO"; then :
2940   ac_compiler_gnu=yes
2941 else
2942   ac_compiler_gnu=no
2943 fi
2944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2945 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2946
2947 fi
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2949 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2950 if test $ac_compiler_gnu = yes; then
2951   GCC=yes
2952 else
2953   GCC=
2954 fi
2955 ac_test_CFLAGS=${CFLAGS+set}
2956 ac_save_CFLAGS=$CFLAGS
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2958 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2959 if ${ac_cv_prog_cc_g+:} false; then :
2960   $as_echo_n "(cached) " >&6
2961 else
2962   ac_save_c_werror_flag=$ac_c_werror_flag
2963    ac_c_werror_flag=yes
2964    ac_cv_prog_cc_g=no
2965    CFLAGS="-g"
2966    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h.  */
2968
2969 int
2970 main ()
2971 {
2972
2973   ;
2974   return 0;
2975 }
2976 _ACEOF
2977 if ac_fn_c_try_compile "$LINENO"; then :
2978   ac_cv_prog_cc_g=yes
2979 else
2980   CFLAGS=""
2981       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h.  */
2983
2984 int
2985 main ()
2986 {
2987
2988   ;
2989   return 0;
2990 }
2991 _ACEOF
2992 if ac_fn_c_try_compile "$LINENO"; then :
2993
2994 else
2995   ac_c_werror_flag=$ac_save_c_werror_flag
2996          CFLAGS="-g"
2997          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998 /* end confdefs.h.  */
2999
3000 int
3001 main ()
3002 {
3003
3004   ;
3005   return 0;
3006 }
3007 _ACEOF
3008 if ac_fn_c_try_compile "$LINENO"; then :
3009   ac_cv_prog_cc_g=yes
3010 fi
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 fi
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 fi
3015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016    ac_c_werror_flag=$ac_save_c_werror_flag
3017 fi
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3019 $as_echo "$ac_cv_prog_cc_g" >&6; }
3020 if test "$ac_test_CFLAGS" = set; then
3021   CFLAGS=$ac_save_CFLAGS
3022 elif test $ac_cv_prog_cc_g = yes; then
3023   if test "$GCC" = yes; then
3024     CFLAGS="-g -O2"
3025   else
3026     CFLAGS="-g"
3027   fi
3028 else
3029   if test "$GCC" = yes; then
3030     CFLAGS="-O2"
3031   else
3032     CFLAGS=
3033   fi
3034 fi
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3036 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3037 if ${ac_cv_prog_cc_c89+:} false; then :
3038   $as_echo_n "(cached) " >&6
3039 else
3040   ac_cv_prog_cc_c89=no
3041 ac_save_CC=$CC
3042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043 /* end confdefs.h.  */
3044 #include <stdarg.h>
3045 #include <stdio.h>
3046 #include <sys/types.h>
3047 #include <sys/stat.h>
3048 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3049 struct buf { int x; };
3050 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3051 static char *e (p, i)
3052      char **p;
3053      int i;
3054 {
3055   return p[i];
3056 }
3057 static char *f (char * (*g) (char **, int), char **p, ...)
3058 {
3059   char *s;
3060   va_list v;
3061   va_start (v,p);
3062   s = g (p, va_arg (v,int));
3063   va_end (v);
3064   return s;
3065 }
3066
3067 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3068    function prototypes and stuff, but not '\xHH' hex character constants.
3069    These don't provoke an error unfortunately, instead are silently treated
3070    as 'x'.  The following induces an error, until -std is added to get
3071    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3072    array size at least.  It's necessary to write '\x00'==0 to get something
3073    that's true only with -std.  */
3074 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3075
3076 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3077    inside strings and character constants.  */
3078 #define FOO(x) 'x'
3079 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3080
3081 int test (int i, double x);
3082 struct s1 {int (*f) (int a);};
3083 struct s2 {int (*f) (double a);};
3084 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3085 int argc;
3086 char **argv;
3087 int
3088 main ()
3089 {
3090 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3096         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3097 do
3098   CC="$ac_save_CC $ac_arg"
3099   if ac_fn_c_try_compile "$LINENO"; then :
3100   ac_cv_prog_cc_c89=$ac_arg
3101 fi
3102 rm -f core conftest.err conftest.$ac_objext
3103   test "x$ac_cv_prog_cc_c89" != "xno" && break
3104 done
3105 rm -f conftest.$ac_ext
3106 CC=$ac_save_CC
3107
3108 fi
3109 # AC_CACHE_VAL
3110 case "x$ac_cv_prog_cc_c89" in
3111   x)
3112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3113 $as_echo "none needed" >&6; } ;;
3114   xno)
3115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3116 $as_echo "unsupported" >&6; } ;;
3117   *)
3118     CC="$CC $ac_cv_prog_cc_c89"
3119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3120 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3121 esac
3122 if test "x$ac_cv_prog_cc_c89" != xno; then :
3123
3124 fi
3125
3126 ac_ext=c
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3133 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3134 if ${ac_cv_path_SED+:} false; then :
3135   $as_echo_n "(cached) " >&6
3136 else
3137             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3138      for ac_i in 1 2 3 4 5 6 7; do
3139        ac_script="$ac_script$as_nl$ac_script"
3140      done
3141      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3142      { ac_script=; unset ac_script;}
3143      if test -z "$SED"; then
3144   ac_path_SED_found=false
3145   # Loop through the user's path and test for each of PROGNAME-LIST
3146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149   IFS=$as_save_IFS
3150   test -z "$as_dir" && as_dir=.
3151     for ac_prog in sed gsed; do
3152     for ac_exec_ext in '' $ac_executable_extensions; do
3153       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3154       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3155 # Check for GNU ac_path_SED and select it if it is found.
3156   # Check for GNU $ac_path_SED
3157 case `"$ac_path_SED" --version 2>&1` in
3158 *GNU*)
3159   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3160 *)
3161   ac_count=0
3162   $as_echo_n 0123456789 >"conftest.in"
3163   while :
3164   do
3165     cat "conftest.in" "conftest.in" >"conftest.tmp"
3166     mv "conftest.tmp" "conftest.in"
3167     cp "conftest.in" "conftest.nl"
3168     $as_echo '' >> "conftest.nl"
3169     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3170     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3171     as_fn_arith $ac_count + 1 && ac_count=$as_val
3172     if test $ac_count -gt ${ac_path_SED_max-0}; then
3173       # Best one so far, save it but keep looking for a better one
3174       ac_cv_path_SED="$ac_path_SED"
3175       ac_path_SED_max=$ac_count
3176     fi
3177     # 10*(2^10) chars as input seems more than enough
3178     test $ac_count -gt 10 && break
3179   done
3180   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3181 esac
3182
3183       $ac_path_SED_found && break 3
3184     done
3185   done
3186   done
3187 IFS=$as_save_IFS
3188   if test -z "$ac_cv_path_SED"; then
3189     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3190   fi
3191 else
3192   ac_cv_path_SED=$SED
3193 fi
3194
3195 fi
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3197 $as_echo "$ac_cv_path_SED" >&6; }
3198  SED="$ac_cv_path_SED"
3199   rm -f conftest.sed
3200
3201 test -z "$SED" && SED=sed
3202 Xsed="$SED -e 1s/^X//"
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3215 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3216 if ${ac_cv_path_GREP+:} false; then :
3217   $as_echo_n "(cached) " >&6
3218 else
3219   if test -z "$GREP"; then
3220   ac_path_GREP_found=false
3221   # Loop through the user's path and test for each of PROGNAME-LIST
3222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3224 do
3225   IFS=$as_save_IFS
3226   test -z "$as_dir" && as_dir=.
3227     for ac_prog in grep ggrep; do
3228     for ac_exec_ext in '' $ac_executable_extensions; do
3229       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3230       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3231 # Check for GNU ac_path_GREP and select it if it is found.
3232   # Check for GNU $ac_path_GREP
3233 case `"$ac_path_GREP" --version 2>&1` in
3234 *GNU*)
3235   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3236 *)
3237   ac_count=0
3238   $as_echo_n 0123456789 >"conftest.in"
3239   while :
3240   do
3241     cat "conftest.in" "conftest.in" >"conftest.tmp"
3242     mv "conftest.tmp" "conftest.in"
3243     cp "conftest.in" "conftest.nl"
3244     $as_echo 'GREP' >> "conftest.nl"
3245     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3246     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3247     as_fn_arith $ac_count + 1 && ac_count=$as_val
3248     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3249       # Best one so far, save it but keep looking for a better one
3250       ac_cv_path_GREP="$ac_path_GREP"
3251       ac_path_GREP_max=$ac_count
3252     fi
3253     # 10*(2^10) chars as input seems more than enough
3254     test $ac_count -gt 10 && break
3255   done
3256   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3257 esac
3258
3259       $ac_path_GREP_found && break 3
3260     done
3261   done
3262   done
3263 IFS=$as_save_IFS
3264   if test -z "$ac_cv_path_GREP"; then
3265     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3266   fi
3267 else
3268   ac_cv_path_GREP=$GREP
3269 fi
3270
3271 fi
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3273 $as_echo "$ac_cv_path_GREP" >&6; }
3274  GREP="$ac_cv_path_GREP"
3275
3276
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3278 $as_echo_n "checking for egrep... " >&6; }
3279 if ${ac_cv_path_EGREP+:} false; then :
3280   $as_echo_n "(cached) " >&6
3281 else
3282   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3283    then ac_cv_path_EGREP="$GREP -E"
3284    else
3285      if test -z "$EGREP"; then
3286   ac_path_EGREP_found=false
3287   # Loop through the user's path and test for each of PROGNAME-LIST
3288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293     for ac_prog in egrep; do
3294     for ac_exec_ext in '' $ac_executable_extensions; do
3295       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3296       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3297 # Check for GNU ac_path_EGREP and select it if it is found.
3298   # Check for GNU $ac_path_EGREP
3299 case `"$ac_path_EGREP" --version 2>&1` in
3300 *GNU*)
3301   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3302 *)
3303   ac_count=0
3304   $as_echo_n 0123456789 >"conftest.in"
3305   while :
3306   do
3307     cat "conftest.in" "conftest.in" >"conftest.tmp"
3308     mv "conftest.tmp" "conftest.in"
3309     cp "conftest.in" "conftest.nl"
3310     $as_echo 'EGREP' >> "conftest.nl"
3311     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3312     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3313     as_fn_arith $ac_count + 1 && ac_count=$as_val
3314     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3315       # Best one so far, save it but keep looking for a better one
3316       ac_cv_path_EGREP="$ac_path_EGREP"
3317       ac_path_EGREP_max=$ac_count
3318     fi
3319     # 10*(2^10) chars as input seems more than enough
3320     test $ac_count -gt 10 && break
3321   done
3322   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3323 esac
3324
3325       $ac_path_EGREP_found && break 3
3326     done
3327   done
3328   done
3329 IFS=$as_save_IFS
3330   if test -z "$ac_cv_path_EGREP"; then
3331     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3332   fi
3333 else
3334   ac_cv_path_EGREP=$EGREP
3335 fi
3336
3337    fi
3338 fi
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3340 $as_echo "$ac_cv_path_EGREP" >&6; }
3341  EGREP="$ac_cv_path_EGREP"
3342
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3345 $as_echo_n "checking for fgrep... " >&6; }
3346 if ${ac_cv_path_FGREP+:} false; then :
3347   $as_echo_n "(cached) " >&6
3348 else
3349   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3350    then ac_cv_path_FGREP="$GREP -F"
3351    else
3352      if test -z "$FGREP"; then
3353   ac_path_FGREP_found=false
3354   # Loop through the user's path and test for each of PROGNAME-LIST
3355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3357 do
3358   IFS=$as_save_IFS
3359   test -z "$as_dir" && as_dir=.
3360     for ac_prog in fgrep; do
3361     for ac_exec_ext in '' $ac_executable_extensions; do
3362       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3363       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3364 # Check for GNU ac_path_FGREP and select it if it is found.
3365   # Check for GNU $ac_path_FGREP
3366 case `"$ac_path_FGREP" --version 2>&1` in
3367 *GNU*)
3368   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3369 *)
3370   ac_count=0
3371   $as_echo_n 0123456789 >"conftest.in"
3372   while :
3373   do
3374     cat "conftest.in" "conftest.in" >"conftest.tmp"
3375     mv "conftest.tmp" "conftest.in"
3376     cp "conftest.in" "conftest.nl"
3377     $as_echo 'FGREP' >> "conftest.nl"
3378     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3379     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3380     as_fn_arith $ac_count + 1 && ac_count=$as_val
3381     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3382       # Best one so far, save it but keep looking for a better one
3383       ac_cv_path_FGREP="$ac_path_FGREP"
3384       ac_path_FGREP_max=$ac_count
3385     fi
3386     # 10*(2^10) chars as input seems more than enough
3387     test $ac_count -gt 10 && break
3388   done
3389   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3390 esac
3391
3392       $ac_path_FGREP_found && break 3
3393     done
3394   done
3395   done
3396 IFS=$as_save_IFS
3397   if test -z "$ac_cv_path_FGREP"; then
3398     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3399   fi
3400 else
3401   ac_cv_path_FGREP=$FGREP
3402 fi
3403
3404    fi
3405 fi
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3407 $as_echo "$ac_cv_path_FGREP" >&6; }
3408  FGREP="$ac_cv_path_FGREP"
3409
3410
3411 test -z "$GREP" && GREP=grep
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431 # Check whether --with-gnu-ld was given.
3432 if test "${with_gnu_ld+set}" = set; then :
3433   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3434 else
3435   with_gnu_ld=no
3436 fi
3437
3438 ac_prog=ld
3439 if test "$GCC" = yes; then
3440   # Check if gcc -print-prog-name=ld gives a path.
3441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3442 $as_echo_n "checking for ld used by $CC... " >&6; }
3443   case $host in
3444   *-*-mingw*)
3445     # gcc leaves a trailing carriage return which upsets mingw
3446     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3447   *)
3448     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3449   esac
3450   case $ac_prog in
3451     # Accept absolute paths.
3452     [\\/]* | ?:[\\/]*)
3453       re_direlt='/[^/][^/]*/\.\./'
3454       # Canonicalize the pathname of ld
3455       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3456       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3457         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3458       done
3459       test -z "$LD" && LD="$ac_prog"
3460       ;;
3461   "")
3462     # If it fails, then pretend we aren't using GCC.
3463     ac_prog=ld
3464     ;;
3465   *)
3466     # If it is relative, then search for the first ld in PATH.
3467     with_gnu_ld=unknown
3468     ;;
3469   esac
3470 elif test "$with_gnu_ld" = yes; then
3471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3472 $as_echo_n "checking for GNU ld... " >&6; }
3473 else
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3475 $as_echo_n "checking for non-GNU ld... " >&6; }
3476 fi
3477 if ${lt_cv_path_LD+:} false; then :
3478   $as_echo_n "(cached) " >&6
3479 else
3480   if test -z "$LD"; then
3481   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3482   for ac_dir in $PATH; do
3483     IFS="$lt_save_ifs"
3484     test -z "$ac_dir" && ac_dir=.
3485     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3486       lt_cv_path_LD="$ac_dir/$ac_prog"
3487       # Check to see if the program is GNU ld.  I'd rather use --version,
3488       # but apparently some variants of GNU ld only accept -v.
3489       # Break only if it was the GNU/non-GNU ld that we prefer.
3490       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3491       *GNU* | *'with BFD'*)
3492         test "$with_gnu_ld" != no && break
3493         ;;
3494       *)
3495         test "$with_gnu_ld" != yes && break
3496         ;;
3497       esac
3498     fi
3499   done
3500   IFS="$lt_save_ifs"
3501 else
3502   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3503 fi
3504 fi
3505
3506 LD="$lt_cv_path_LD"
3507 if test -n "$LD"; then
3508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3509 $as_echo "$LD" >&6; }
3510 else
3511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3513 fi
3514 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3516 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3517 if ${lt_cv_prog_gnu_ld+:} false; then :
3518   $as_echo_n "(cached) " >&6
3519 else
3520   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3521 case `$LD -v 2>&1 </dev/null` in
3522 *GNU* | *'with BFD'*)
3523   lt_cv_prog_gnu_ld=yes
3524   ;;
3525 *)
3526   lt_cv_prog_gnu_ld=no
3527   ;;
3528 esac
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3531 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3532 with_gnu_ld=$lt_cv_prog_gnu_ld
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3543 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3544 if ${lt_cv_path_NM+:} false; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   if test -n "$NM"; then
3548   # Let the user override the test.
3549   lt_cv_path_NM="$NM"
3550 else
3551   lt_nm_to_check="${ac_tool_prefix}nm"
3552   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3553     lt_nm_to_check="$lt_nm_to_check nm"
3554   fi
3555   for lt_tmp_nm in $lt_nm_to_check; do
3556     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3557     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3558       IFS="$lt_save_ifs"
3559       test -z "$ac_dir" && ac_dir=.
3560       tmp_nm="$ac_dir/$lt_tmp_nm"
3561       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3562         # Check to see if the nm accepts a BSD-compat flag.
3563         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3564         #   nm: unknown option "B" ignored
3565         # Tru64's nm complains that /dev/null is an invalid object file
3566         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3567         */dev/null* | *'Invalid file or object type'*)
3568           lt_cv_path_NM="$tmp_nm -B"
3569           break
3570           ;;
3571         *)
3572           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3573           */dev/null*)
3574             lt_cv_path_NM="$tmp_nm -p"
3575             break
3576             ;;
3577           *)
3578             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3579             continue # so that we can try to find one that supports BSD flags
3580             ;;
3581           esac
3582           ;;
3583         esac
3584       fi
3585     done
3586     IFS="$lt_save_ifs"
3587   done
3588   : ${lt_cv_path_NM=no}
3589 fi
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3592 $as_echo "$lt_cv_path_NM" >&6; }
3593 if test "$lt_cv_path_NM" != "no"; then
3594   NM="$lt_cv_path_NM"
3595 else
3596   # Didn't find any BSD compatible name lister, look for dumpbin.
3597   if test -n "$DUMPBIN"; then :
3598     # Let the user override the test.
3599   else
3600     if test -n "$ac_tool_prefix"; then
3601   for ac_prog in dumpbin "link -dump"
3602   do
3603     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if ${ac_cv_prog_DUMPBIN+:} false; then :
3608   $as_echo_n "(cached) " >&6
3609 else
3610   if test -n "$DUMPBIN"; then
3611   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616   IFS=$as_save_IFS
3617   test -z "$as_dir" && as_dir=.
3618     for ac_exec_ext in '' $ac_executable_extensions; do
3619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3620     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622     break 2
3623   fi
3624 done
3625   done
3626 IFS=$as_save_IFS
3627
3628 fi
3629 fi
3630 DUMPBIN=$ac_cv_prog_DUMPBIN
3631 if test -n "$DUMPBIN"; then
3632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3633 $as_echo "$DUMPBIN" >&6; }
3634 else
3635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3637 fi
3638
3639
3640     test -n "$DUMPBIN" && break
3641   done
3642 fi
3643 if test -z "$DUMPBIN"; then
3644   ac_ct_DUMPBIN=$DUMPBIN
3645   for ac_prog in dumpbin "link -dump"
3646 do
3647   # Extract the first word of "$ac_prog", so it can be a program name with args.
3648 set dummy $ac_prog; ac_word=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3652   $as_echo_n "(cached) " >&6
3653 else
3654   if test -n "$ac_ct_DUMPBIN"; then
3655   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660   IFS=$as_save_IFS
3661   test -z "$as_dir" && as_dir=.
3662     for ac_exec_ext in '' $ac_executable_extensions; do
3663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3664     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666     break 2
3667   fi
3668 done
3669   done
3670 IFS=$as_save_IFS
3671
3672 fi
3673 fi
3674 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3675 if test -n "$ac_ct_DUMPBIN"; then
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3677 $as_echo "$ac_ct_DUMPBIN" >&6; }
3678 else
3679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3681 fi
3682
3683
3684   test -n "$ac_ct_DUMPBIN" && break
3685 done
3686
3687   if test "x$ac_ct_DUMPBIN" = x; then
3688     DUMPBIN=":"
3689   else
3690     case $cross_compiling:$ac_tool_warned in
3691 yes:)
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3694 ac_tool_warned=yes ;;
3695 esac
3696     DUMPBIN=$ac_ct_DUMPBIN
3697   fi
3698 fi
3699
3700     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3701     *COFF*)
3702       DUMPBIN="$DUMPBIN -symbols"
3703       ;;
3704     *)
3705       DUMPBIN=:
3706       ;;
3707     esac
3708   fi
3709
3710   if test "$DUMPBIN" != ":"; then
3711     NM="$DUMPBIN"
3712   fi
3713 fi
3714 test -z "$NM" && NM=nm
3715
3716
3717
3718
3719
3720
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3722 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3723 if ${lt_cv_nm_interface+:} false; then :
3724   $as_echo_n "(cached) " >&6
3725 else
3726   lt_cv_nm_interface="BSD nm"
3727   echo "int some_variable = 0;" > conftest.$ac_ext
3728   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3729   (eval "$ac_compile" 2>conftest.err)
3730   cat conftest.err >&5
3731   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3732   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3733   cat conftest.err >&5
3734   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3735   cat conftest.out >&5
3736   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3737     lt_cv_nm_interface="MS dumpbin"
3738   fi
3739   rm -f conftest*
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3742 $as_echo "$lt_cv_nm_interface" >&6; }
3743
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3745 $as_echo_n "checking whether ln -s works... " >&6; }
3746 LN_S=$as_ln_s
3747 if test "$LN_S" = "ln -s"; then
3748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3749 $as_echo "yes" >&6; }
3750 else
3751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3752 $as_echo "no, using $LN_S" >&6; }
3753 fi
3754
3755 # find the maximum length of command line arguments
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3757 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3758 if ${lt_cv_sys_max_cmd_len+:} false; then :
3759   $as_echo_n "(cached) " >&6
3760 else
3761     i=0
3762   teststring="ABCD"
3763
3764   case $build_os in
3765   msdosdjgpp*)
3766     # On DJGPP, this test can blow up pretty badly due to problems in libc
3767     # (any single argument exceeding 2000 bytes causes a buffer overrun
3768     # during glob expansion).  Even if it were fixed, the result of this
3769     # check would be larger than it should be.
3770     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3771     ;;
3772
3773   gnu*)
3774     # Under GNU Hurd, this test is not required because there is
3775     # no limit to the length of command line arguments.
3776     # Libtool will interpret -1 as no limit whatsoever
3777     lt_cv_sys_max_cmd_len=-1;
3778     ;;
3779
3780   cygwin* | mingw* | cegcc*)
3781     # On Win9x/ME, this test blows up -- it succeeds, but takes
3782     # about 5 minutes as the teststring grows exponentially.
3783     # Worse, since 9x/ME are not pre-emptively multitasking,
3784     # you end up with a "frozen" computer, even though with patience
3785     # the test eventually succeeds (with a max line length of 256k).
3786     # Instead, let's just punt: use the minimum linelength reported by
3787     # all of the supported platforms: 8192 (on NT/2K/XP).
3788     lt_cv_sys_max_cmd_len=8192;
3789     ;;
3790
3791   mint*)
3792     # On MiNT this can take a long time and run out of memory.
3793     lt_cv_sys_max_cmd_len=8192;
3794     ;;
3795
3796   amigaos*)
3797     # On AmigaOS with pdksh, this test takes hours, literally.
3798     # So we just punt and use a minimum line length of 8192.
3799     lt_cv_sys_max_cmd_len=8192;
3800     ;;
3801
3802   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3803     # This has been around since 386BSD, at least.  Likely further.
3804     if test -x /sbin/sysctl; then
3805       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3806     elif test -x /usr/sbin/sysctl; then
3807       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3808     else
3809       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3810     fi
3811     # And add a safety zone
3812     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3813     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3814     ;;
3815
3816   interix*)
3817     # We know the value 262144 and hardcode it with a safety zone (like BSD)
3818     lt_cv_sys_max_cmd_len=196608
3819     ;;
3820
3821   osf*)
3822     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3823     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3824     # nice to cause kernel panics so lets avoid the loop below.
3825     # First set a reasonable default.
3826     lt_cv_sys_max_cmd_len=16384
3827     #
3828     if test -x /sbin/sysconfig; then
3829       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3830         *1*) lt_cv_sys_max_cmd_len=-1 ;;
3831       esac
3832     fi
3833     ;;
3834   sco3.2v5*)
3835     lt_cv_sys_max_cmd_len=102400
3836     ;;
3837   sysv5* | sco5v6* | sysv4.2uw2*)
3838     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3839     if test -n "$kargmax"; then
3840       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3841     else
3842       lt_cv_sys_max_cmd_len=32768
3843     fi
3844     ;;
3845   *)
3846     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3847     if test -n "$lt_cv_sys_max_cmd_len"; then
3848       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3849       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3850     else
3851       # Make teststring a little bigger before we do anything with it.
3852       # a 1K string should be a reasonable start.
3853       for i in 1 2 3 4 5 6 7 8 ; do
3854         teststring=$teststring$teststring
3855       done
3856       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3857       # If test is not a shell built-in, we'll probably end up computing a
3858       # maximum length that is only half of the actual maximum length, but
3859       # we can't tell.
3860       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
3861                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3862               test $i != 17 # 1/2 MB should be enough
3863       do
3864         i=`expr $i + 1`
3865         teststring=$teststring$teststring
3866       done
3867       # Only check the string length outside the loop.
3868       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3869       teststring=
3870       # Add a significant safety factor because C++ compilers can tack on
3871       # massive amounts of additional arguments before passing them to the
3872       # linker.  It appears as though 1/2 is a usable value.
3873       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3874     fi
3875     ;;
3876   esac
3877
3878 fi
3879
3880 if test -n $lt_cv_sys_max_cmd_len ; then
3881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
3882 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3883 else
3884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
3885 $as_echo "none" >&6; }
3886 fi
3887 max_cmd_len=$lt_cv_sys_max_cmd_len
3888
3889
3890
3891
3892
3893
3894 : ${CP="cp -f"}
3895 : ${MV="mv -f"}
3896 : ${RM="rm -f"}
3897
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
3899 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3900 # Try some XSI features
3901 xsi_shell=no
3902 ( _lt_dummy="a/b/c"
3903   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
3904       = c,a/b,b/c, \
3905     && eval 'test $(( 1 + 1 )) -eq 2 \
3906     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3907   && xsi_shell=yes
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
3909 $as_echo "$xsi_shell" >&6; }
3910
3911
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
3913 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3914 lt_shell_append=no
3915 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3916     >/dev/null 2>&1 \
3917   && lt_shell_append=yes
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
3919 $as_echo "$lt_shell_append" >&6; }
3920
3921
3922 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3923   lt_unset=unset
3924 else
3925   lt_unset=false
3926 fi
3927
3928
3929
3930
3931
3932 # test EBCDIC or ASCII
3933 case `echo X|tr X '\101'` in
3934  A) # ASCII based system
3935     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3936   lt_SP2NL='tr \040 \012'
3937   lt_NL2SP='tr \015\012 \040\040'
3938   ;;
3939  *) # EBCDIC based system
3940   lt_SP2NL='tr \100 \n'
3941   lt_NL2SP='tr \r\n \100\100'
3942   ;;
3943 esac
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
3954 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
3955 if ${lt_cv_to_host_file_cmd+:} false; then :
3956   $as_echo_n "(cached) " >&6
3957 else
3958   case $host in
3959   *-*-mingw* )
3960     case $build in
3961       *-*-mingw* ) # actually msys
3962         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
3963         ;;
3964       *-*-cygwin* )
3965         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
3966         ;;
3967       * ) # otherwise, assume *nix
3968         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
3969         ;;
3970     esac
3971     ;;
3972   *-*-cygwin* )
3973     case $build in
3974       *-*-mingw* ) # actually msys
3975         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
3976         ;;
3977       *-*-cygwin* )
3978         lt_cv_to_host_file_cmd=func_convert_file_noop
3979         ;;
3980       * ) # otherwise, assume *nix
3981         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
3982         ;;
3983     esac
3984     ;;
3985   * ) # unhandled hosts (and "normal" native builds)
3986     lt_cv_to_host_file_cmd=func_convert_file_noop
3987     ;;
3988 esac
3989
3990 fi
3991
3992 to_host_file_cmd=$lt_cv_to_host_file_cmd
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
3994 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
3995
3996
3997
3998
3999
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4001 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4002 if ${lt_cv_to_tool_file_cmd+:} false; then :
4003   $as_echo_n "(cached) " >&6
4004 else
4005   #assume ordinary cross tools, or native build.
4006 lt_cv_to_tool_file_cmd=func_convert_file_noop
4007 case $host in
4008   *-*-mingw* )
4009     case $build in
4010       *-*-mingw* ) # actually msys
4011         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4012         ;;
4013     esac
4014     ;;
4015 esac
4016
4017 fi
4018
4019 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4021 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4022
4023
4024
4025
4026
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4028 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4029 if ${lt_cv_ld_reload_flag+:} false; then :
4030   $as_echo_n "(cached) " >&6
4031 else
4032   lt_cv_ld_reload_flag='-r'
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4035 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4036 reload_flag=$lt_cv_ld_reload_flag
4037 case $reload_flag in
4038 "" | " "*) ;;
4039 *) reload_flag=" $reload_flag" ;;
4040 esac
4041 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4042 case $host_os in
4043   cygwin* | mingw* | pw32* | cegcc*)
4044     if test "$GCC" != yes; then
4045       reload_cmds=false
4046     fi
4047     ;;
4048   darwin*)
4049     if test "$GCC" = yes; then
4050       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4051     else
4052       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4053     fi
4054     ;;
4055 esac
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065 if test -n "$ac_tool_prefix"; then
4066   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4067 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if ${ac_cv_prog_OBJDUMP+:} false; then :
4071   $as_echo_n "(cached) " >&6
4072 else
4073   if test -n "$OBJDUMP"; then
4074   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079   IFS=$as_save_IFS
4080   test -z "$as_dir" && as_dir=.
4081     for ac_exec_ext in '' $ac_executable_extensions; do
4082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085     break 2
4086   fi
4087 done
4088   done
4089 IFS=$as_save_IFS
4090
4091 fi
4092 fi
4093 OBJDUMP=$ac_cv_prog_OBJDUMP
4094 if test -n "$OBJDUMP"; then
4095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4096 $as_echo "$OBJDUMP" >&6; }
4097 else
4098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100 fi
4101
4102
4103 fi
4104 if test -z "$ac_cv_prog_OBJDUMP"; then
4105   ac_ct_OBJDUMP=$OBJDUMP
4106   # Extract the first word of "objdump", so it can be a program name with args.
4107 set dummy objdump; ac_word=$2
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 $as_echo_n "checking for $ac_word... " >&6; }
4110 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4111   $as_echo_n "(cached) " >&6
4112 else
4113   if test -n "$ac_ct_OBJDUMP"; then
4114   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119   IFS=$as_save_IFS
4120   test -z "$as_dir" && as_dir=.
4121     for ac_exec_ext in '' $ac_executable_extensions; do
4122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4123     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125     break 2
4126   fi
4127 done
4128   done
4129 IFS=$as_save_IFS
4130
4131 fi
4132 fi
4133 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4134 if test -n "$ac_ct_OBJDUMP"; then
4135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4136 $as_echo "$ac_ct_OBJDUMP" >&6; }
4137 else
4138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4140 fi
4141
4142   if test "x$ac_ct_OBJDUMP" = x; then
4143     OBJDUMP="false"
4144   else
4145     case $cross_compiling:$ac_tool_warned in
4146 yes:)
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4149 ac_tool_warned=yes ;;
4150 esac
4151     OBJDUMP=$ac_ct_OBJDUMP
4152   fi
4153 else
4154   OBJDUMP="$ac_cv_prog_OBJDUMP"
4155 fi
4156
4157 test -z "$OBJDUMP" && OBJDUMP=objdump
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4168 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4169 if ${lt_cv_deplibs_check_method+:} false; then :
4170   $as_echo_n "(cached) " >&6
4171 else
4172   lt_cv_file_magic_cmd='$MAGIC_CMD'
4173 lt_cv_file_magic_test_file=
4174 lt_cv_deplibs_check_method='unknown'
4175 # Need to set the preceding variable on all platforms that support
4176 # interlibrary dependencies.
4177 # 'none' -- dependencies not supported.
4178 # `unknown' -- same as none, but documents that we really don't know.
4179 # 'pass_all' -- all dependencies passed with no checks.
4180 # 'test_compile' -- check by making test program.
4181 # 'file_magic [[regex]]' -- check by looking for files in library path
4182 # which responds to the $file_magic_cmd with a given extended regex.
4183 # If you have `file' or equivalent on your system and you're not sure
4184 # whether `pass_all' will *always* work, you probably want this one.
4185
4186 case $host_os in
4187 aix[4-9]*)
4188   lt_cv_deplibs_check_method=pass_all
4189   ;;
4190
4191 beos*)
4192   lt_cv_deplibs_check_method=pass_all
4193   ;;
4194
4195 bsdi[45]*)
4196   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4197   lt_cv_file_magic_cmd='/usr/bin/file -L'
4198   lt_cv_file_magic_test_file=/shlib/libc.so
4199   ;;
4200
4201 cygwin*)
4202   # func_win32_libid is a shell function defined in ltmain.sh
4203   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4204   lt_cv_file_magic_cmd='func_win32_libid'
4205   ;;
4206
4207 mingw* | pw32*)
4208   # Base MSYS/MinGW do not provide the 'file' command needed by
4209   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4210   # unless we find 'file', for example because we are cross-compiling.
4211   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4212   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4213     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4214     lt_cv_file_magic_cmd='func_win32_libid'
4215   else
4216     # Keep this pattern in sync with the one in func_win32_libid.
4217     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4218     lt_cv_file_magic_cmd='$OBJDUMP -f'
4219   fi
4220   ;;
4221
4222 cegcc*)
4223   # use the weaker test based on 'objdump'. See mingw*.
4224   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4225   lt_cv_file_magic_cmd='$OBJDUMP -f'
4226   ;;
4227
4228 darwin* | rhapsody*)
4229   lt_cv_deplibs_check_method=pass_all
4230   ;;
4231
4232 freebsd* | dragonfly*)
4233   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4234     case $host_cpu in
4235     i*86 )
4236       # Not sure whether the presence of OpenBSD here was a mistake.
4237       # Let's accept both of them until this is cleared up.
4238       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4239       lt_cv_file_magic_cmd=/usr/bin/file
4240       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4241       ;;
4242     esac
4243   else
4244     lt_cv_deplibs_check_method=pass_all
4245   fi
4246   ;;
4247
4248 gnu*)
4249   lt_cv_deplibs_check_method=pass_all
4250   ;;
4251
4252 haiku*)
4253   lt_cv_deplibs_check_method=pass_all
4254   ;;
4255
4256 hpux10.20* | hpux11*)
4257   lt_cv_file_magic_cmd=/usr/bin/file
4258   case $host_cpu in
4259   ia64*)
4260     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4261     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4262     ;;
4263   hppa*64*)
4264     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]'
4265     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4266     ;;
4267   *)
4268     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4269     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4270     ;;
4271   esac
4272   ;;
4273
4274 interix[3-9]*)
4275   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4276   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4277   ;;
4278
4279 irix5* | irix6* | nonstopux*)
4280   case $LD in
4281   *-32|*"-32 ") libmagic=32-bit;;
4282   *-n32|*"-n32 ") libmagic=N32;;
4283   *-64|*"-64 ") libmagic=64-bit;;
4284   *) libmagic=never-match;;
4285   esac
4286   lt_cv_deplibs_check_method=pass_all
4287   ;;
4288
4289 # This must be Linux ELF.
4290 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4291   lt_cv_deplibs_check_method=pass_all
4292   ;;
4293
4294 netbsd*)
4295   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4296     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4297   else
4298     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4299   fi
4300   ;;
4301
4302 newos6*)
4303   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4304   lt_cv_file_magic_cmd=/usr/bin/file
4305   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4306   ;;
4307
4308 *nto* | *qnx*)
4309   lt_cv_deplibs_check_method=pass_all
4310   ;;
4311
4312 openbsd*)
4313   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4314     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4315   else
4316     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4317   fi
4318   ;;
4319
4320 osf3* | osf4* | osf5*)
4321   lt_cv_deplibs_check_method=pass_all
4322   ;;
4323
4324 rdos*)
4325   lt_cv_deplibs_check_method=pass_all
4326   ;;
4327
4328 solaris*)
4329   lt_cv_deplibs_check_method=pass_all
4330   ;;
4331
4332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4333   lt_cv_deplibs_check_method=pass_all
4334   ;;
4335
4336 sysv4 | sysv4.3*)
4337   case $host_vendor in
4338   motorola)
4339     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]'
4340     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4341     ;;
4342   ncr)
4343     lt_cv_deplibs_check_method=pass_all
4344     ;;
4345   sequent)
4346     lt_cv_file_magic_cmd='/bin/file'
4347     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4348     ;;
4349   sni)
4350     lt_cv_file_magic_cmd='/bin/file'
4351     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4352     lt_cv_file_magic_test_file=/lib/libc.so
4353     ;;
4354   siemens)
4355     lt_cv_deplibs_check_method=pass_all
4356     ;;
4357   pc)
4358     lt_cv_deplibs_check_method=pass_all
4359     ;;
4360   esac
4361   ;;
4362
4363 tpf*)
4364   lt_cv_deplibs_check_method=pass_all
4365   ;;
4366 esac
4367
4368 fi
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4370 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4371
4372 file_magic_glob=
4373 want_nocaseglob=no
4374 if test "$build" = "$host"; then
4375   case $host_os in
4376   mingw* | pw32*)
4377     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4378       want_nocaseglob=yes
4379     else
4380       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4381     fi
4382     ;;
4383   esac
4384 fi
4385
4386 file_magic_cmd=$lt_cv_file_magic_cmd
4387 deplibs_check_method=$lt_cv_deplibs_check_method
4388 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411 if test -n "$ac_tool_prefix"; then
4412   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4413 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if ${ac_cv_prog_DLLTOOL+:} false; then :
4417   $as_echo_n "(cached) " >&6
4418 else
4419   if test -n "$DLLTOOL"; then
4420   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425   IFS=$as_save_IFS
4426   test -z "$as_dir" && as_dir=.
4427     for ac_exec_ext in '' $ac_executable_extensions; do
4428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431     break 2
4432   fi
4433 done
4434   done
4435 IFS=$as_save_IFS
4436
4437 fi
4438 fi
4439 DLLTOOL=$ac_cv_prog_DLLTOOL
4440 if test -n "$DLLTOOL"; then
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4442 $as_echo "$DLLTOOL" >&6; }
4443 else
4444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4446 fi
4447
4448
4449 fi
4450 if test -z "$ac_cv_prog_DLLTOOL"; then
4451   ac_ct_DLLTOOL=$DLLTOOL
4452   # Extract the first word of "dlltool", so it can be a program name with args.
4453 set dummy dlltool; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4457   $as_echo_n "(cached) " >&6
4458 else
4459   if test -n "$ac_ct_DLLTOOL"; then
4460   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465   IFS=$as_save_IFS
4466   test -z "$as_dir" && as_dir=.
4467     for ac_exec_ext in '' $ac_executable_extensions; do
4468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471     break 2
4472   fi
4473 done
4474   done
4475 IFS=$as_save_IFS
4476
4477 fi
4478 fi
4479 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4480 if test -n "$ac_ct_DLLTOOL"; then
4481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4482 $as_echo "$ac_ct_DLLTOOL" >&6; }
4483 else
4484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486 fi
4487
4488   if test "x$ac_ct_DLLTOOL" = x; then
4489     DLLTOOL="false"
4490   else
4491     case $cross_compiling:$ac_tool_warned in
4492 yes:)
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495 ac_tool_warned=yes ;;
4496 esac
4497     DLLTOOL=$ac_ct_DLLTOOL
4498   fi
4499 else
4500   DLLTOOL="$ac_cv_prog_DLLTOOL"
4501 fi
4502
4503 test -z "$DLLTOOL" && DLLTOOL=dlltool
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4515 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4516 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4517   $as_echo_n "(cached) " >&6
4518 else
4519   lt_cv_sharedlib_from_linklib_cmd='unknown'
4520
4521 case $host_os in
4522 cygwin* | mingw* | pw32* | cegcc*)
4523   # two different shell functions defined in ltmain.sh
4524   # decide which to use based on capabilities of $DLLTOOL
4525   case `$DLLTOOL --help 2>&1` in
4526   *--identify-strict*)
4527     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4528     ;;
4529   *)
4530     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4531     ;;
4532   esac
4533   ;;
4534 *)
4535   # fallback: assume linklib IS sharedlib
4536   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4537   ;;
4538 esac
4539
4540 fi
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4542 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4543 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4544 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4545
4546
4547
4548
4549
4550
4551
4552
4553 if test -n "$ac_tool_prefix"; then
4554   for ac_prog in ar
4555   do
4556     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if ${ac_cv_prog_AR+:} false; then :
4561   $as_echo_n "(cached) " >&6
4562 else
4563   if test -n "$AR"; then
4564   ac_cv_prog_AR="$AR" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571     for ac_exec_ext in '' $ac_executable_extensions; do
4572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578   done
4579 IFS=$as_save_IFS
4580
4581 fi
4582 fi
4583 AR=$ac_cv_prog_AR
4584 if test -n "$AR"; then
4585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4586 $as_echo "$AR" >&6; }
4587 else
4588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4590 fi
4591
4592
4593     test -n "$AR" && break
4594   done
4595 fi
4596 if test -z "$AR"; then
4597   ac_ct_AR=$AR
4598   for ac_prog in ar
4599 do
4600   # Extract the first word of "$ac_prog", so it can be a program name with args.
4601 set dummy $ac_prog; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4605   $as_echo_n "(cached) " >&6
4606 else
4607   if test -n "$ac_ct_AR"; then
4608   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4612 do
4613   IFS=$as_save_IFS
4614   test -z "$as_dir" && as_dir=.
4615     for ac_exec_ext in '' $ac_executable_extensions; do
4616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617     ac_cv_prog_ac_ct_AR="$ac_prog"
4618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619     break 2
4620   fi
4621 done
4622   done
4623 IFS=$as_save_IFS
4624
4625 fi
4626 fi
4627 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4628 if test -n "$ac_ct_AR"; then
4629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4630 $as_echo "$ac_ct_AR" >&6; }
4631 else
4632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4634 fi
4635
4636
4637   test -n "$ac_ct_AR" && break
4638 done
4639
4640   if test "x$ac_ct_AR" = x; then
4641     AR="false"
4642   else
4643     case $cross_compiling:$ac_tool_warned in
4644 yes:)
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4647 ac_tool_warned=yes ;;
4648 esac
4649     AR=$ac_ct_AR
4650   fi
4651 fi
4652
4653 : ${AR=ar}
4654 : ${AR_FLAGS=cru}
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4667 $as_echo_n "checking for archiver @FILE support... " >&6; }
4668 if ${lt_cv_ar_at_file+:} false; then :
4669   $as_echo_n "(cached) " >&6
4670 else
4671   lt_cv_ar_at_file=no
4672    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h.  */
4674
4675 int
4676 main ()
4677 {
4678
4679   ;
4680   return 0;
4681 }
4682 _ACEOF
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684   echo conftest.$ac_objext > conftest.lst
4685       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4686       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4687   (eval $lt_ar_try) 2>&5
4688   ac_status=$?
4689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690   test $ac_status = 0; }
4691       if test "$ac_status" -eq 0; then
4692         # Ensure the archiver fails upon bogus file names.
4693         rm -f conftest.$ac_objext libconftest.a
4694         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4695   (eval $lt_ar_try) 2>&5
4696   ac_status=$?
4697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4698   test $ac_status = 0; }
4699         if test "$ac_status" -ne 0; then
4700           lt_cv_ar_at_file=@
4701         fi
4702       fi
4703       rm -f conftest.* libconftest.a
4704
4705 fi
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4710 $as_echo "$lt_cv_ar_at_file" >&6; }
4711
4712 if test "x$lt_cv_ar_at_file" = xno; then
4713   archiver_list_spec=
4714 else
4715   archiver_list_spec=$lt_cv_ar_at_file
4716 fi
4717
4718
4719
4720
4721
4722
4723
4724 if test -n "$ac_tool_prefix"; then
4725   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4726 set dummy ${ac_tool_prefix}strip; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if ${ac_cv_prog_STRIP+:} false; then :
4730   $as_echo_n "(cached) " >&6
4731 else
4732   if test -n "$STRIP"; then
4733   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738   IFS=$as_save_IFS
4739   test -z "$as_dir" && as_dir=.
4740     for ac_exec_ext in '' $ac_executable_extensions; do
4741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744     break 2
4745   fi
4746 done
4747   done
4748 IFS=$as_save_IFS
4749
4750 fi
4751 fi
4752 STRIP=$ac_cv_prog_STRIP
4753 if test -n "$STRIP"; then
4754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4755 $as_echo "$STRIP" >&6; }
4756 else
4757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4759 fi
4760
4761
4762 fi
4763 if test -z "$ac_cv_prog_STRIP"; then
4764   ac_ct_STRIP=$STRIP
4765   # Extract the first word of "strip", so it can be a program name with args.
4766 set dummy strip; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4770   $as_echo_n "(cached) " >&6
4771 else
4772   if test -n "$ac_ct_STRIP"; then
4773   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4774 else
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778   IFS=$as_save_IFS
4779   test -z "$as_dir" && as_dir=.
4780     for ac_exec_ext in '' $ac_executable_extensions; do
4781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782     ac_cv_prog_ac_ct_STRIP="strip"
4783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784     break 2
4785   fi
4786 done
4787   done
4788 IFS=$as_save_IFS
4789
4790 fi
4791 fi
4792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4793 if test -n "$ac_ct_STRIP"; then
4794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4795 $as_echo "$ac_ct_STRIP" >&6; }
4796 else
4797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4799 fi
4800
4801   if test "x$ac_ct_STRIP" = x; then
4802     STRIP=":"
4803   else
4804     case $cross_compiling:$ac_tool_warned in
4805 yes:)
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4808 ac_tool_warned=yes ;;
4809 esac
4810     STRIP=$ac_ct_STRIP
4811   fi
4812 else
4813   STRIP="$ac_cv_prog_STRIP"
4814 fi
4815
4816 test -z "$STRIP" && STRIP=:
4817
4818
4819
4820
4821
4822
4823 if test -n "$ac_tool_prefix"; then
4824   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4825 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if ${ac_cv_prog_RANLIB+:} false; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831   if test -n "$RANLIB"; then
4832   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839     for ac_exec_ext in '' $ac_executable_extensions; do
4840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843     break 2
4844   fi
4845 done
4846   done
4847 IFS=$as_save_IFS
4848
4849 fi
4850 fi
4851 RANLIB=$ac_cv_prog_RANLIB
4852 if test -n "$RANLIB"; then
4853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4854 $as_echo "$RANLIB" >&6; }
4855 else
4856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4858 fi
4859
4860
4861 fi
4862 if test -z "$ac_cv_prog_RANLIB"; then
4863   ac_ct_RANLIB=$RANLIB
4864   # Extract the first word of "ranlib", so it can be a program name with args.
4865 set dummy ranlib; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4869   $as_echo_n "(cached) " >&6
4870 else
4871   if test -n "$ac_ct_RANLIB"; then
4872   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877   IFS=$as_save_IFS
4878   test -z "$as_dir" && as_dir=.
4879     for ac_exec_ext in '' $ac_executable_extensions; do
4880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881     ac_cv_prog_ac_ct_RANLIB="ranlib"
4882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883     break 2
4884   fi
4885 done
4886   done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4892 if test -n "$ac_ct_RANLIB"; then
4893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4894 $as_echo "$ac_ct_RANLIB" >&6; }
4895 else
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4898 fi
4899
4900   if test "x$ac_ct_RANLIB" = x; then
4901     RANLIB=":"
4902   else
4903     case $cross_compiling:$ac_tool_warned in
4904 yes:)
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned=yes ;;
4908 esac
4909     RANLIB=$ac_ct_RANLIB
4910   fi
4911 else
4912   RANLIB="$ac_cv_prog_RANLIB"
4913 fi
4914
4915 test -z "$RANLIB" && RANLIB=:
4916
4917
4918
4919
4920
4921
4922 # Determine commands to create old-style static archives.
4923 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4924 old_postinstall_cmds='chmod 644 $oldlib'
4925 old_postuninstall_cmds=
4926
4927 if test -n "$RANLIB"; then
4928   case $host_os in
4929   openbsd*)
4930     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4931     ;;
4932   *)
4933     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4934     ;;
4935   esac
4936   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4937 fi
4938
4939 case $host_os in
4940   darwin*)
4941     lock_old_archive_extraction=yes ;;
4942   *)
4943     lock_old_archive_extraction=no ;;
4944 esac
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966 for ac_prog in gawk mawk nawk awk
4967 do
4968   # Extract the first word of "$ac_prog", so it can be a program name with args.
4969 set dummy $ac_prog; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if ${ac_cv_prog_AWK+:} false; then :
4973   $as_echo_n "(cached) " >&6
4974 else
4975   if test -n "$AWK"; then
4976   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981   IFS=$as_save_IFS
4982   test -z "$as_dir" && as_dir=.
4983     for ac_exec_ext in '' $ac_executable_extensions; do
4984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985     ac_cv_prog_AWK="$ac_prog"
4986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987     break 2
4988   fi
4989 done
4990   done
4991 IFS=$as_save_IFS
4992
4993 fi
4994 fi
4995 AWK=$ac_cv_prog_AWK
4996 if test -n "$AWK"; then
4997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4998 $as_echo "$AWK" >&6; }
4999 else
5000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5002 fi
5003
5004
5005   test -n "$AWK" && break
5006 done
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026 # If no C compiler was specified, use CC.
5027 LTCC=${LTCC-"$CC"}
5028
5029 # If no C compiler flags were specified, use CFLAGS.
5030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5031
5032 # Allow CC to be a program name with arguments.
5033 compiler=$CC
5034
5035
5036 # Check for command to grab the raw symbol name followed by C symbol from nm.
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5038 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5039 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5040   $as_echo_n "(cached) " >&6
5041 else
5042
5043 # These are sane defaults that work on at least a few old systems.
5044 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5045
5046 # Character class describing NM global symbol codes.
5047 symcode='[BCDEGRST]'
5048
5049 # Regexp to match symbols that can be accessed directly from C.
5050 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5051
5052 # Define system-specific variables.
5053 case $host_os in
5054 aix*)
5055   symcode='[BCDT]'
5056   ;;
5057 cygwin* | mingw* | pw32* | cegcc*)
5058   symcode='[ABCDGISTW]'
5059   ;;
5060 hpux*)
5061   if test "$host_cpu" = ia64; then
5062     symcode='[ABCDEGRST]'
5063   fi
5064   ;;
5065 irix* | nonstopux*)
5066   symcode='[BCDEGRST]'
5067   ;;
5068 osf*)
5069   symcode='[BCDEGQRST]'
5070   ;;
5071 solaris*)
5072   symcode='[BDRT]'
5073   ;;
5074 sco3.2v5*)
5075   symcode='[DT]'
5076   ;;
5077 sysv4.2uw2*)
5078   symcode='[DT]'
5079   ;;
5080 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5081   symcode='[ABDT]'
5082   ;;
5083 sysv4)
5084   symcode='[DFNSTU]'
5085   ;;
5086 esac
5087
5088 # If we're using GNU nm, then use its standard symbol codes.
5089 case `$NM -V 2>&1` in
5090 *GNU* | *'with BFD'*)
5091   symcode='[ABCDGIRSTW]' ;;
5092 esac
5093
5094 # Transform an extracted symbol line into a proper C declaration.
5095 # Some systems (esp. on ia64) link data and code symbols differently,
5096 # so use this general approach.
5097 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5098
5099 # Transform an extracted symbol line into symbol name and symbol address
5100 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5101 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'"
5102
5103 # Handle CRLF in mingw tool chain
5104 opt_cr=
5105 case $build_os in
5106 mingw*)
5107   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5108   ;;
5109 esac
5110
5111 # Try without a prefix underscore, then with it.
5112 for ac_symprfx in "" "_"; do
5113
5114   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5115   symxfrm="\\1 $ac_symprfx\\2 \\2"
5116
5117   # Write the raw and C identifiers.
5118   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5119     # Fake it for dumpbin and say T for any non-static function
5120     # and D for any global variable.
5121     # Also find C++ and __fastcall symbols from MSVC++,
5122     # which start with @ or ?.
5123     lt_cv_sys_global_symbol_pipe="$AWK '"\
5124 "     {last_section=section; section=\$ 3};"\
5125 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5126 "     \$ 0!~/External *\|/{next};"\
5127 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5128 "     {if(hide[section]) next};"\
5129 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5130 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5131 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5132 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5133 "     ' prfx=^$ac_symprfx"
5134   else
5135     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5136   fi
5137   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5138
5139   # Check to see that the pipe works correctly.
5140   pipe_works=no
5141
5142   rm -f conftest*
5143   cat > conftest.$ac_ext <<_LT_EOF
5144 #ifdef __cplusplus
5145 extern "C" {
5146 #endif
5147 char nm_test_var;
5148 void nm_test_func(void);
5149 void nm_test_func(void){}
5150 #ifdef __cplusplus
5151 }
5152 #endif
5153 int main(){nm_test_var='a';nm_test_func();return(0);}
5154 _LT_EOF
5155
5156   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5157   (eval $ac_compile) 2>&5
5158   ac_status=$?
5159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5160   test $ac_status = 0; }; then
5161     # Now try to grab the symbols.
5162     nlist=conftest.nm
5163     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5164   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5165   ac_status=$?
5166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167   test $ac_status = 0; } && test -s "$nlist"; then
5168       # Try sorting and uniquifying the output.
5169       if sort "$nlist" | uniq > "$nlist"T; then
5170         mv -f "$nlist"T "$nlist"
5171       else
5172         rm -f "$nlist"T
5173       fi
5174
5175       # Make sure that we snagged all the symbols we need.
5176       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5177         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5178           cat <<_LT_EOF > conftest.$ac_ext
5179 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5180 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5181 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5182    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5183 # define LT_DLSYM_CONST
5184 #elif defined(__osf__)
5185 /* This system does not cope well with relocations in const data.  */
5186 # define LT_DLSYM_CONST
5187 #else
5188 # define LT_DLSYM_CONST const
5189 #endif
5190
5191 #ifdef __cplusplus
5192 extern "C" {
5193 #endif
5194
5195 _LT_EOF
5196           # Now generate the symbol file.
5197           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5198
5199           cat <<_LT_EOF >> conftest.$ac_ext
5200
5201 /* The mapping between symbol names and symbols.  */
5202 LT_DLSYM_CONST struct {
5203   const char *name;
5204   void       *address;
5205 }
5206 lt__PROGRAM__LTX_preloaded_symbols[] =
5207 {
5208   { "@PROGRAM@", (void *) 0 },
5209 _LT_EOF
5210           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5211           cat <<\_LT_EOF >> conftest.$ac_ext
5212   {0, (void *) 0}
5213 };
5214
5215 /* This works around a problem in FreeBSD linker */
5216 #ifdef FREEBSD_WORKAROUND
5217 static const void *lt_preloaded_setup() {
5218   return lt__PROGRAM__LTX_preloaded_symbols;
5219 }
5220 #endif
5221
5222 #ifdef __cplusplus
5223 }
5224 #endif
5225 _LT_EOF
5226           # Now try linking the two files.
5227           mv conftest.$ac_objext conftstm.$ac_objext
5228           lt_globsym_save_LIBS=$LIBS
5229           lt_globsym_save_CFLAGS=$CFLAGS
5230           LIBS="conftstm.$ac_objext"
5231           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5232           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5233   (eval $ac_link) 2>&5
5234   ac_status=$?
5235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5236   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5237             pipe_works=yes
5238           fi
5239           LIBS=$lt_globsym_save_LIBS
5240           CFLAGS=$lt_globsym_save_CFLAGS
5241         else
5242           echo "cannot find nm_test_func in $nlist" >&5
5243         fi
5244       else
5245         echo "cannot find nm_test_var in $nlist" >&5
5246       fi
5247     else
5248       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5249     fi
5250   else
5251     echo "$progname: failed program was:" >&5
5252     cat conftest.$ac_ext >&5
5253   fi
5254   rm -rf conftest* conftst*
5255
5256   # Do not use the global_symbol_pipe unless it works.
5257   if test "$pipe_works" = yes; then
5258     break
5259   else
5260     lt_cv_sys_global_symbol_pipe=
5261   fi
5262 done
5263
5264 fi
5265
5266 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5267   lt_cv_sys_global_symbol_to_cdecl=
5268 fi
5269 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5271 $as_echo "failed" >&6; }
5272 else
5273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5274 $as_echo "ok" >&6; }
5275 fi
5276
5277 # Response file support.
5278 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5279   nm_file_list_spec='@'
5280 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5281   nm_file_list_spec='@'
5282 fi
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5311 $as_echo_n "checking for sysroot... " >&6; }
5312
5313 # Check whether --with-sysroot was given.
5314 if test "${with_sysroot+set}" = set; then :
5315   withval=$with_sysroot;
5316 else
5317   with_sysroot=no
5318 fi
5319
5320
5321 lt_sysroot=
5322 case ${with_sysroot} in #(
5323  yes)
5324    if test "$GCC" = yes; then
5325      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5326    fi
5327    ;; #(
5328  /*)
5329    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5330    ;; #(
5331  no|'')
5332    ;; #(
5333  *)
5334    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5335 $as_echo "${with_sysroot}" >&6; }
5336    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5337    ;;
5338 esac
5339
5340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5341 $as_echo "${lt_sysroot:-no}" >&6; }
5342
5343
5344
5345
5346
5347 # Check whether --enable-libtool-lock was given.
5348 if test "${enable_libtool_lock+set}" = set; then :
5349   enableval=$enable_libtool_lock;
5350 fi
5351
5352 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5353
5354 # Some flags need to be propagated to the compiler or linker for good
5355 # libtool support.
5356 case $host in
5357 ia64-*-hpux*)
5358   # Find out which ABI we are using.
5359   echo 'int i;' > conftest.$ac_ext
5360   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5361   (eval $ac_compile) 2>&5
5362   ac_status=$?
5363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5364   test $ac_status = 0; }; then
5365     case `/usr/bin/file conftest.$ac_objext` in
5366       *ELF-32*)
5367         HPUX_IA64_MODE="32"
5368         ;;
5369       *ELF-64*)
5370         HPUX_IA64_MODE="64"
5371         ;;
5372     esac
5373   fi
5374   rm -rf conftest*
5375   ;;
5376 *-*-irix6*)
5377   # Find out which ABI we are using.
5378   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5379   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5380   (eval $ac_compile) 2>&5
5381   ac_status=$?
5382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5383   test $ac_status = 0; }; then
5384     if test "$lt_cv_prog_gnu_ld" = yes; then
5385       case `/usr/bin/file conftest.$ac_objext` in
5386         *32-bit*)
5387           LD="${LD-ld} -melf32bsmip"
5388           ;;
5389         *N32*)
5390           LD="${LD-ld} -melf32bmipn32"
5391           ;;
5392         *64-bit*)
5393           LD="${LD-ld} -melf64bmip"
5394         ;;
5395       esac
5396     else
5397       case `/usr/bin/file conftest.$ac_objext` in
5398         *32-bit*)
5399           LD="${LD-ld} -32"
5400           ;;
5401         *N32*)
5402           LD="${LD-ld} -n32"
5403           ;;
5404         *64-bit*)
5405           LD="${LD-ld} -64"
5406           ;;
5407       esac
5408     fi
5409   fi
5410   rm -rf conftest*
5411   ;;
5412
5413 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5414 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5415   # Find out which ABI we are using.
5416   echo 'int i;' > conftest.$ac_ext
5417   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5418   (eval $ac_compile) 2>&5
5419   ac_status=$?
5420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5421   test $ac_status = 0; }; then
5422     case `/usr/bin/file conftest.o` in
5423       *32-bit*)
5424         case $host in
5425           x86_64-*kfreebsd*-gnu)
5426             LD="${LD-ld} -m elf_i386_fbsd"
5427             ;;
5428           x86_64-*linux*)
5429             LD="${LD-ld} -m elf_i386"
5430             ;;
5431           ppc64-*linux*|powerpc64-*linux*)
5432             LD="${LD-ld} -m elf32ppclinux"
5433             ;;
5434           s390x-*linux*)
5435             LD="${LD-ld} -m elf_s390"
5436             ;;
5437           sparc64-*linux*)
5438             LD="${LD-ld} -m elf32_sparc"
5439             ;;
5440         esac
5441         ;;
5442       *64-bit*)
5443         case $host in
5444           x86_64-*kfreebsd*-gnu)
5445             LD="${LD-ld} -m elf_x86_64_fbsd"
5446             ;;
5447           x86_64-*linux*)
5448             LD="${LD-ld} -m elf_x86_64"
5449             ;;
5450           ppc*-*linux*|powerpc*-*linux*)
5451             LD="${LD-ld} -m elf64ppc"
5452             ;;
5453           s390*-*linux*|s390*-*tpf*)
5454             LD="${LD-ld} -m elf64_s390"
5455             ;;
5456           sparc*-*linux*)
5457             LD="${LD-ld} -m elf64_sparc"
5458             ;;
5459         esac
5460         ;;
5461     esac
5462   fi
5463   rm -rf conftest*
5464   ;;
5465
5466 *-*-sco3.2v5*)
5467   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5468   SAVE_CFLAGS="$CFLAGS"
5469   CFLAGS="$CFLAGS -belf"
5470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5471 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5472 if ${lt_cv_cc_needs_belf+:} false; then :
5473   $as_echo_n "(cached) " >&6
5474 else
5475   ac_ext=c
5476 ac_cpp='$CPP $CPPFLAGS'
5477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5480
5481      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h.  */
5483
5484 int
5485 main ()
5486 {
5487
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 if ac_fn_c_try_link "$LINENO"; then :
5493   lt_cv_cc_needs_belf=yes
5494 else
5495   lt_cv_cc_needs_belf=no
5496 fi
5497 rm -f core conftest.err conftest.$ac_objext \
5498     conftest$ac_exeext conftest.$ac_ext
5499      ac_ext=c
5500 ac_cpp='$CPP $CPPFLAGS'
5501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5504
5505 fi
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5507 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5508   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5509     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5510     CFLAGS="$SAVE_CFLAGS"
5511   fi
5512   ;;
5513 sparc*-*solaris*)
5514   # Find out which ABI we are using.
5515   echo 'int i;' > conftest.$ac_ext
5516   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5517   (eval $ac_compile) 2>&5
5518   ac_status=$?
5519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5520   test $ac_status = 0; }; then
5521     case `/usr/bin/file conftest.o` in
5522     *64-bit*)
5523       case $lt_cv_prog_gnu_ld in
5524       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5525       *)
5526         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5527           LD="${LD-ld} -64"
5528         fi
5529         ;;
5530       esac
5531       ;;
5532     esac
5533   fi
5534   rm -rf conftest*
5535   ;;
5536 esac
5537
5538 need_locks="$enable_libtool_lock"
5539
5540 if test -n "$ac_tool_prefix"; then
5541   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5542 set dummy ${ac_tool_prefix}mt; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5546   $as_echo_n "(cached) " >&6
5547 else
5548   if test -n "$MANIFEST_TOOL"; then
5549   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554   IFS=$as_save_IFS
5555   test -z "$as_dir" && as_dir=.
5556     for ac_exec_ext in '' $ac_executable_extensions; do
5557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560     break 2
5561   fi
5562 done
5563   done
5564 IFS=$as_save_IFS
5565
5566 fi
5567 fi
5568 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5569 if test -n "$MANIFEST_TOOL"; then
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5571 $as_echo "$MANIFEST_TOOL" >&6; }
5572 else
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5575 fi
5576
5577
5578 fi
5579 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5580   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5581   # Extract the first word of "mt", so it can be a program name with args.
5582 set dummy mt; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5586   $as_echo_n "(cached) " >&6
5587 else
5588   if test -n "$ac_ct_MANIFEST_TOOL"; then
5589   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596     for ac_exec_ext in '' $ac_executable_extensions; do
5597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5598     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603   done
5604 IFS=$as_save_IFS
5605
5606 fi
5607 fi
5608 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5609 if test -n "$ac_ct_MANIFEST_TOOL"; then
5610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5611 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5612 else
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5615 fi
5616
5617   if test "x$ac_ct_MANIFEST_TOOL" = x; then
5618     MANIFEST_TOOL=":"
5619   else
5620     case $cross_compiling:$ac_tool_warned in
5621 yes:)
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624 ac_tool_warned=yes ;;
5625 esac
5626     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5627   fi
5628 else
5629   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5630 fi
5631
5632 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5634 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5635 if ${lt_cv_path_mainfest_tool+:} false; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   lt_cv_path_mainfest_tool=no
5639   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5640   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5641   cat conftest.err >&5
5642   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5643     lt_cv_path_mainfest_tool=yes
5644   fi
5645   rm -f conftest*
5646 fi
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5648 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
5649 if test "x$lt_cv_path_mainfest_tool" != xyes; then
5650   MANIFEST_TOOL=:
5651 fi
5652
5653
5654
5655
5656
5657
5658   case $host_os in
5659     rhapsody* | darwin*)
5660     if test -n "$ac_tool_prefix"; then
5661   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5662 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5666   $as_echo_n "(cached) " >&6
5667 else
5668   if test -n "$DSYMUTIL"; then
5669   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674   IFS=$as_save_IFS
5675   test -z "$as_dir" && as_dir=.
5676     for ac_exec_ext in '' $ac_executable_extensions; do
5677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5678     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680     break 2
5681   fi
5682 done
5683   done
5684 IFS=$as_save_IFS
5685
5686 fi
5687 fi
5688 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5689 if test -n "$DSYMUTIL"; then
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5691 $as_echo "$DSYMUTIL" >&6; }
5692 else
5693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695 fi
5696
5697
5698 fi
5699 if test -z "$ac_cv_prog_DSYMUTIL"; then
5700   ac_ct_DSYMUTIL=$DSYMUTIL
5701   # Extract the first word of "dsymutil", so it can be a program name with args.
5702 set dummy dsymutil; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5706   $as_echo_n "(cached) " >&6
5707 else
5708   if test -n "$ac_ct_DSYMUTIL"; then
5709   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714   IFS=$as_save_IFS
5715   test -z "$as_dir" && as_dir=.
5716     for ac_exec_ext in '' $ac_executable_extensions; do
5717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720     break 2
5721   fi
5722 done
5723   done
5724 IFS=$as_save_IFS
5725
5726 fi
5727 fi
5728 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5729 if test -n "$ac_ct_DSYMUTIL"; then
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5731 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5732 else
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736
5737   if test "x$ac_ct_DSYMUTIL" = x; then
5738     DSYMUTIL=":"
5739   else
5740     case $cross_compiling:$ac_tool_warned in
5741 yes:)
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5744 ac_tool_warned=yes ;;
5745 esac
5746     DSYMUTIL=$ac_ct_DSYMUTIL
5747   fi
5748 else
5749   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5750 fi
5751
5752     if test -n "$ac_tool_prefix"; then
5753   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5754 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if ${ac_cv_prog_NMEDIT+:} false; then :
5758   $as_echo_n "(cached) " >&6
5759 else
5760   if test -n "$NMEDIT"; then
5761   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768     for ac_exec_ext in '' $ac_executable_extensions; do
5769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5770     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775   done
5776 IFS=$as_save_IFS
5777
5778 fi
5779 fi
5780 NMEDIT=$ac_cv_prog_NMEDIT
5781 if test -n "$NMEDIT"; then
5782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5783 $as_echo "$NMEDIT" >&6; }
5784 else
5785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 fi
5788
5789
5790 fi
5791 if test -z "$ac_cv_prog_NMEDIT"; then
5792   ac_ct_NMEDIT=$NMEDIT
5793   # Extract the first word of "nmedit", so it can be a program name with args.
5794 set dummy nmedit; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5798   $as_echo_n "(cached) " >&6
5799 else
5800   if test -n "$ac_ct_NMEDIT"; then
5801   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808     for ac_exec_ext in '' $ac_executable_extensions; do
5809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810     ac_cv_prog_ac_ct_NMEDIT="nmedit"
5811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815   done
5816 IFS=$as_save_IFS
5817
5818 fi
5819 fi
5820 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5821 if test -n "$ac_ct_NMEDIT"; then
5822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5823 $as_echo "$ac_ct_NMEDIT" >&6; }
5824 else
5825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5828
5829   if test "x$ac_ct_NMEDIT" = x; then
5830     NMEDIT=":"
5831   else
5832     case $cross_compiling:$ac_tool_warned in
5833 yes:)
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836 ac_tool_warned=yes ;;
5837 esac
5838     NMEDIT=$ac_ct_NMEDIT
5839   fi
5840 else
5841   NMEDIT="$ac_cv_prog_NMEDIT"
5842 fi
5843
5844     if test -n "$ac_tool_prefix"; then
5845   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5846 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_prog_LIPO+:} false; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   if test -n "$LIPO"; then
5853   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860     for ac_exec_ext in '' $ac_executable_extensions; do
5861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864     break 2
5865   fi
5866 done
5867   done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 LIPO=$ac_cv_prog_LIPO
5873 if test -n "$LIPO"; then
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5875 $as_echo "$LIPO" >&6; }
5876 else
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881
5882 fi
5883 if test -z "$ac_cv_prog_LIPO"; then
5884   ac_ct_LIPO=$LIPO
5885   # Extract the first word of "lipo", so it can be a program name with args.
5886 set dummy lipo; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5890   $as_echo_n "(cached) " >&6
5891 else
5892   if test -n "$ac_ct_LIPO"; then
5893   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900     for ac_exec_ext in '' $ac_executable_extensions; do
5901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902     ac_cv_prog_ac_ct_LIPO="lipo"
5903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907   done
5908 IFS=$as_save_IFS
5909
5910 fi
5911 fi
5912 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5913 if test -n "$ac_ct_LIPO"; then
5914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5915 $as_echo "$ac_ct_LIPO" >&6; }
5916 else
5917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5919 fi
5920
5921   if test "x$ac_ct_LIPO" = x; then
5922     LIPO=":"
5923   else
5924     case $cross_compiling:$ac_tool_warned in
5925 yes:)
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5928 ac_tool_warned=yes ;;
5929 esac
5930     LIPO=$ac_ct_LIPO
5931   fi
5932 else
5933   LIPO="$ac_cv_prog_LIPO"
5934 fi
5935
5936     if test -n "$ac_tool_prefix"; then
5937   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5938 set dummy ${ac_tool_prefix}otool; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_OTOOL+:} false; then :
5942   $as_echo_n "(cached) " >&6
5943 else
5944   if test -n "$OTOOL"; then
5945   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950   IFS=$as_save_IFS
5951   test -z "$as_dir" && as_dir=.
5952     for ac_exec_ext in '' $ac_executable_extensions; do
5953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5954     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956     break 2
5957   fi
5958 done
5959   done
5960 IFS=$as_save_IFS
5961
5962 fi
5963 fi
5964 OTOOL=$ac_cv_prog_OTOOL
5965 if test -n "$OTOOL"; then
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5967 $as_echo "$OTOOL" >&6; }
5968 else
5969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5971 fi
5972
5973
5974 fi
5975 if test -z "$ac_cv_prog_OTOOL"; then
5976   ac_ct_OTOOL=$OTOOL
5977   # Extract the first word of "otool", so it can be a program name with args.
5978 set dummy otool; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5982   $as_echo_n "(cached) " >&6
5983 else
5984   if test -n "$ac_ct_OTOOL"; then
5985   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990   IFS=$as_save_IFS
5991   test -z "$as_dir" && as_dir=.
5992     for ac_exec_ext in '' $ac_executable_extensions; do
5993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994     ac_cv_prog_ac_ct_OTOOL="otool"
5995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996     break 2
5997   fi
5998 done
5999   done
6000 IFS=$as_save_IFS
6001
6002 fi
6003 fi
6004 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6005 if test -n "$ac_ct_OTOOL"; then
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6007 $as_echo "$ac_ct_OTOOL" >&6; }
6008 else
6009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6011 fi
6012
6013   if test "x$ac_ct_OTOOL" = x; then
6014     OTOOL=":"
6015   else
6016     case $cross_compiling:$ac_tool_warned in
6017 yes:)
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6020 ac_tool_warned=yes ;;
6021 esac
6022     OTOOL=$ac_ct_OTOOL
6023   fi
6024 else
6025   OTOOL="$ac_cv_prog_OTOOL"
6026 fi
6027
6028     if test -n "$ac_tool_prefix"; then
6029   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6030 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if ${ac_cv_prog_OTOOL64+:} false; then :
6034   $as_echo_n "(cached) " >&6
6035 else
6036   if test -n "$OTOOL64"; then
6037   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042   IFS=$as_save_IFS
6043   test -z "$as_dir" && as_dir=.
6044     for ac_exec_ext in '' $ac_executable_extensions; do
6045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048     break 2
6049   fi
6050 done
6051   done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 OTOOL64=$ac_cv_prog_OTOOL64
6057 if test -n "$OTOOL64"; then
6058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6059 $as_echo "$OTOOL64" >&6; }
6060 else
6061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6063 fi
6064
6065
6066 fi
6067 if test -z "$ac_cv_prog_OTOOL64"; then
6068   ac_ct_OTOOL64=$OTOOL64
6069   # Extract the first word of "otool64", so it can be a program name with args.
6070 set dummy otool64; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6074   $as_echo_n "(cached) " >&6
6075 else
6076   if test -n "$ac_ct_OTOOL64"; then
6077   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082   IFS=$as_save_IFS
6083   test -z "$as_dir" && as_dir=.
6084     for ac_exec_ext in '' $ac_executable_extensions; do
6085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086     ac_cv_prog_ac_ct_OTOOL64="otool64"
6087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088     break 2
6089   fi
6090 done
6091   done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6097 if test -n "$ac_ct_OTOOL64"; then
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6099 $as_echo "$ac_ct_OTOOL64" >&6; }
6100 else
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6103 fi
6104
6105   if test "x$ac_ct_OTOOL64" = x; then
6106     OTOOL64=":"
6107   else
6108     case $cross_compiling:$ac_tool_warned in
6109 yes:)
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned=yes ;;
6113 esac
6114     OTOOL64=$ac_ct_OTOOL64
6115   fi
6116 else
6117   OTOOL64="$ac_cv_prog_OTOOL64"
6118 fi
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6147 $as_echo_n "checking for -single_module linker flag... " >&6; }
6148 if ${lt_cv_apple_cc_single_mod+:} false; then :
6149   $as_echo_n "(cached) " >&6
6150 else
6151   lt_cv_apple_cc_single_mod=no
6152       if test -z "${LT_MULTI_MODULE}"; then
6153         # By default we will add the -single_module flag. You can override
6154         # by either setting the environment variable LT_MULTI_MODULE
6155         # non-empty at configure time, or by adding -multi_module to the
6156         # link flags.
6157         rm -rf libconftest.dylib*
6158         echo "int foo(void){return 1;}" > conftest.c
6159         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6160 -dynamiclib -Wl,-single_module conftest.c" >&5
6161         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6162           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6163         _lt_result=$?
6164         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6165           lt_cv_apple_cc_single_mod=yes
6166         else
6167           cat conftest.err >&5
6168         fi
6169         rm -rf libconftest.dylib*
6170         rm -f conftest.*
6171       fi
6172 fi
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6174 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6176 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6177 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   lt_cv_ld_exported_symbols_list=no
6181       save_LDFLAGS=$LDFLAGS
6182       echo "_main" > conftest.sym
6183       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6184       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h.  */
6186
6187 int
6188 main ()
6189 {
6190
6191   ;
6192   return 0;
6193 }
6194 _ACEOF
6195 if ac_fn_c_try_link "$LINENO"; then :
6196   lt_cv_ld_exported_symbols_list=yes
6197 else
6198   lt_cv_ld_exported_symbols_list=no
6199 fi
6200 rm -f core conftest.err conftest.$ac_objext \
6201     conftest$ac_exeext conftest.$ac_ext
6202         LDFLAGS="$save_LDFLAGS"
6203
6204 fi
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6206 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6208 $as_echo_n "checking for -force_load linker flag... " >&6; }
6209 if ${lt_cv_ld_force_load+:} false; then :
6210   $as_echo_n "(cached) " >&6
6211 else
6212   lt_cv_ld_force_load=no
6213       cat > conftest.c << _LT_EOF
6214 int forced_loaded() { return 2;}
6215 _LT_EOF
6216       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6217       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6218       echo "$AR cru libconftest.a conftest.o" >&5
6219       $AR cru libconftest.a conftest.o 2>&5
6220       echo "$RANLIB libconftest.a" >&5
6221       $RANLIB libconftest.a 2>&5
6222       cat > conftest.c << _LT_EOF
6223 int main() { return 0;}
6224 _LT_EOF
6225       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6226       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6227       _lt_result=$?
6228       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6229         lt_cv_ld_force_load=yes
6230       else
6231         cat conftest.err >&5
6232       fi
6233         rm -f conftest.err libconftest.a conftest conftest.c
6234         rm -rf conftest.dSYM
6235
6236 fi
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6238 $as_echo "$lt_cv_ld_force_load" >&6; }
6239     case $host_os in
6240     rhapsody* | darwin1.[012])
6241       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6242     darwin1.*)
6243       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6244     darwin*) # darwin 5.x on
6245       # if running on 10.5 or later, the deployment target defaults
6246       # to the OS version, if on x86, and 10.4, the deployment
6247       # target defaults to 10.4. Don't you love it?
6248       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6249         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6250           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6251         10.[012]*)
6252           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6253         10.*)
6254           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6255       esac
6256     ;;
6257   esac
6258     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6259       _lt_dar_single_mod='$single_module'
6260     fi
6261     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6262       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6263     else
6264       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6265     fi
6266     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6267       _lt_dsymutil='~$DSYMUTIL $lib || :'
6268     else
6269       _lt_dsymutil=
6270     fi
6271     ;;
6272   esac
6273
6274 ac_ext=c
6275 ac_cpp='$CPP $CPPFLAGS'
6276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6280 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6281 # On Suns, sometimes $CPP names a directory.
6282 if test -n "$CPP" && test -d "$CPP"; then
6283   CPP=
6284 fi
6285 if test -z "$CPP"; then
6286   if ${ac_cv_prog_CPP+:} false; then :
6287   $as_echo_n "(cached) " >&6
6288 else
6289       # Double quotes because CPP needs to be expanded
6290     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6291     do
6292       ac_preproc_ok=false
6293 for ac_c_preproc_warn_flag in '' yes
6294 do
6295   # Use a header file that comes with gcc, so configuring glibc
6296   # with a fresh cross-compiler works.
6297   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6298   # <limits.h> exists even on freestanding compilers.
6299   # On the NeXT, cc -E runs the code through the compiler's parser,
6300   # not just through cpp. "Syntax error" is here to catch this case.
6301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h.  */
6303 #ifdef __STDC__
6304 # include <limits.h>
6305 #else
6306 # include <assert.h>
6307 #endif
6308                      Syntax error
6309 _ACEOF
6310 if ac_fn_c_try_cpp "$LINENO"; then :
6311
6312 else
6313   # Broken: fails on valid input.
6314 continue
6315 fi
6316 rm -f conftest.err conftest.i conftest.$ac_ext
6317
6318   # OK, works on sane cases.  Now check whether nonexistent headers
6319   # can be detected and how.
6320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h.  */
6322 #include <ac_nonexistent.h>
6323 _ACEOF
6324 if ac_fn_c_try_cpp "$LINENO"; then :
6325   # Broken: success on invalid input.
6326 continue
6327 else
6328   # Passes both tests.
6329 ac_preproc_ok=:
6330 break
6331 fi
6332 rm -f conftest.err conftest.i conftest.$ac_ext
6333
6334 done
6335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6336 rm -f conftest.i conftest.err conftest.$ac_ext
6337 if $ac_preproc_ok; then :
6338   break
6339 fi
6340
6341     done
6342     ac_cv_prog_CPP=$CPP
6343
6344 fi
6345   CPP=$ac_cv_prog_CPP
6346 else
6347   ac_cv_prog_CPP=$CPP
6348 fi
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6350 $as_echo "$CPP" >&6; }
6351 ac_preproc_ok=false
6352 for ac_c_preproc_warn_flag in '' yes
6353 do
6354   # Use a header file that comes with gcc, so configuring glibc
6355   # with a fresh cross-compiler works.
6356   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6357   # <limits.h> exists even on freestanding compilers.
6358   # On the NeXT, cc -E runs the code through the compiler's parser,
6359   # not just through cpp. "Syntax error" is here to catch this case.
6360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h.  */
6362 #ifdef __STDC__
6363 # include <limits.h>
6364 #else
6365 # include <assert.h>
6366 #endif
6367                      Syntax error
6368 _ACEOF
6369 if ac_fn_c_try_cpp "$LINENO"; then :
6370
6371 else
6372   # Broken: fails on valid input.
6373 continue
6374 fi
6375 rm -f conftest.err conftest.i conftest.$ac_ext
6376
6377   # OK, works on sane cases.  Now check whether nonexistent headers
6378   # can be detected and how.
6379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380 /* end confdefs.h.  */
6381 #include <ac_nonexistent.h>
6382 _ACEOF
6383 if ac_fn_c_try_cpp "$LINENO"; then :
6384   # Broken: success on invalid input.
6385 continue
6386 else
6387   # Passes both tests.
6388 ac_preproc_ok=:
6389 break
6390 fi
6391 rm -f conftest.err conftest.i conftest.$ac_ext
6392
6393 done
6394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6395 rm -f conftest.i conftest.err conftest.$ac_ext
6396 if $ac_preproc_ok; then :
6397
6398 else
6399   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6401 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6402 See \`config.log' for more details" "$LINENO" 5; }
6403 fi
6404
6405 ac_ext=c
6406 ac_cpp='$CPP $CPPFLAGS'
6407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6410
6411
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6413 $as_echo_n "checking for ANSI C header files... " >&6; }
6414 if ${ac_cv_header_stdc+:} false; then :
6415   $as_echo_n "(cached) " >&6
6416 else
6417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h.  */
6419 #include <stdlib.h>
6420 #include <stdarg.h>
6421 #include <string.h>
6422 #include <float.h>
6423
6424 int
6425 main ()
6426 {
6427
6428   ;
6429   return 0;
6430 }
6431 _ACEOF
6432 if ac_fn_c_try_compile "$LINENO"; then :
6433   ac_cv_header_stdc=yes
6434 else
6435   ac_cv_header_stdc=no
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438
6439 if test $ac_cv_header_stdc = yes; then
6440   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h.  */
6443 #include <string.h>
6444
6445 _ACEOF
6446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6447   $EGREP "memchr" >/dev/null 2>&1; then :
6448
6449 else
6450   ac_cv_header_stdc=no
6451 fi
6452 rm -f conftest*
6453
6454 fi
6455
6456 if test $ac_cv_header_stdc = yes; then
6457   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h.  */
6460 #include <stdlib.h>
6461
6462 _ACEOF
6463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6464   $EGREP "free" >/dev/null 2>&1; then :
6465
6466 else
6467   ac_cv_header_stdc=no
6468 fi
6469 rm -f conftest*
6470
6471 fi
6472
6473 if test $ac_cv_header_stdc = yes; then
6474   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6475   if test "$cross_compiling" = yes; then :
6476   :
6477 else
6478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h.  */
6480 #include <ctype.h>
6481 #include <stdlib.h>
6482 #if ((' ' & 0x0FF) == 0x020)
6483 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6484 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6485 #else
6486 # define ISLOWER(c) \
6487                    (('a' <= (c) && (c) <= 'i') \
6488                      || ('j' <= (c) && (c) <= 'r') \
6489                      || ('s' <= (c) && (c) <= 'z'))
6490 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6491 #endif
6492
6493 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6494 int
6495 main ()
6496 {
6497   int i;
6498   for (i = 0; i < 256; i++)
6499     if (XOR (islower (i), ISLOWER (i))
6500         || toupper (i) != TOUPPER (i))
6501       return 2;
6502   return 0;
6503 }
6504 _ACEOF
6505 if ac_fn_c_try_run "$LINENO"; then :
6506
6507 else
6508   ac_cv_header_stdc=no
6509 fi
6510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6511   conftest.$ac_objext conftest.beam conftest.$ac_ext
6512 fi
6513
6514 fi
6515 fi
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6517 $as_echo "$ac_cv_header_stdc" >&6; }
6518 if test $ac_cv_header_stdc = yes; then
6519
6520 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6521
6522 fi
6523
6524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6525 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6526                   inttypes.h stdint.h unistd.h
6527 do :
6528   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6529 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6530 "
6531 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6532   cat >>confdefs.h <<_ACEOF
6533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6534 _ACEOF
6535
6536 fi
6537
6538 done
6539
6540
6541 for ac_header in dlfcn.h
6542 do :
6543   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6544 "
6545 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6546   cat >>confdefs.h <<_ACEOF
6547 #define HAVE_DLFCN_H 1
6548 _ACEOF
6549
6550 fi
6551
6552 done
6553
6554
6555
6556
6557
6558 # Set options
6559
6560
6561
6562         enable_dlopen=no
6563
6564
6565   enable_win32_dll=no
6566
6567
6568             # Check whether --enable-shared was given.
6569 if test "${enable_shared+set}" = set; then :
6570   enableval=$enable_shared; p=${PACKAGE-default}
6571     case $enableval in
6572     yes) enable_shared=yes ;;
6573     no) enable_shared=no ;;
6574     *)
6575       enable_shared=no
6576       # Look at the argument we got.  We use all the common list separators.
6577       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6578       for pkg in $enableval; do
6579         IFS="$lt_save_ifs"
6580         if test "X$pkg" = "X$p"; then
6581           enable_shared=yes
6582         fi
6583       done
6584       IFS="$lt_save_ifs"
6585       ;;
6586     esac
6587 else
6588   enable_shared=yes
6589 fi
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599   # Check whether --enable-static was given.
6600 if test "${enable_static+set}" = set; then :
6601   enableval=$enable_static; p=${PACKAGE-default}
6602     case $enableval in
6603     yes) enable_static=yes ;;
6604     no) enable_static=no ;;
6605     *)
6606      enable_static=no
6607       # Look at the argument we got.  We use all the common list separators.
6608       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6609       for pkg in $enableval; do
6610         IFS="$lt_save_ifs"
6611         if test "X$pkg" = "X$p"; then
6612           enable_static=yes
6613         fi
6614       done
6615       IFS="$lt_save_ifs"
6616       ;;
6617     esac
6618 else
6619   enable_static=yes
6620 fi
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631 # Check whether --with-pic was given.
6632 if test "${with_pic+set}" = set; then :
6633   withval=$with_pic; pic_mode="$withval"
6634 else
6635   pic_mode=default
6636 fi
6637
6638
6639 test -z "$pic_mode" && pic_mode=default
6640
6641
6642
6643
6644
6645
6646
6647   # Check whether --enable-fast-install was given.
6648 if test "${enable_fast_install+set}" = set; then :
6649   enableval=$enable_fast_install; p=${PACKAGE-default}
6650     case $enableval in
6651     yes) enable_fast_install=yes ;;
6652     no) enable_fast_install=no ;;
6653     *)
6654       enable_fast_install=no
6655       # Look at the argument we got.  We use all the common list separators.
6656       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6657       for pkg in $enableval; do
6658         IFS="$lt_save_ifs"
6659         if test "X$pkg" = "X$p"; then
6660           enable_fast_install=yes
6661         fi
6662       done
6663       IFS="$lt_save_ifs"
6664       ;;
6665     esac
6666 else
6667   enable_fast_install=yes
6668 fi
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680 # This can be used to rebuild libtool when needed
6681 LIBTOOL_DEPS="$ltmain"
6682
6683 # Always use our own libtool.
6684 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711 test -z "$LN_S" && LN_S="ln -s"
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726 if test -n "${ZSH_VERSION+set}" ; then
6727    setopt NO_GLOB_SUBST
6728 fi
6729
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6731 $as_echo_n "checking for objdir... " >&6; }
6732 if ${lt_cv_objdir+:} false; then :
6733   $as_echo_n "(cached) " >&6
6734 else
6735   rm -f .libs 2>/dev/null
6736 mkdir .libs 2>/dev/null
6737 if test -d .libs; then
6738   lt_cv_objdir=.libs
6739 else
6740   # MS-DOS does not allow filenames that begin with a dot.
6741   lt_cv_objdir=_libs
6742 fi
6743 rmdir .libs 2>/dev/null
6744 fi
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6746 $as_echo "$lt_cv_objdir" >&6; }
6747 objdir=$lt_cv_objdir
6748
6749
6750
6751
6752
6753 cat >>confdefs.h <<_ACEOF
6754 #define LT_OBJDIR "$lt_cv_objdir/"
6755 _ACEOF
6756
6757
6758
6759
6760 case $host_os in
6761 aix3*)
6762   # AIX sometimes has problems with the GCC collect2 program.  For some
6763   # reason, if we set the COLLECT_NAMES environment variable, the problems
6764   # vanish in a puff of smoke.
6765   if test "X${COLLECT_NAMES+set}" != Xset; then
6766     COLLECT_NAMES=
6767     export COLLECT_NAMES
6768   fi
6769   ;;
6770 esac
6771
6772 # Global variables:
6773 ofile=libtool
6774 can_build_shared=yes
6775
6776 # All known linkers require a `.a' archive for static linking (except MSVC,
6777 # which needs '.lib').
6778 libext=a
6779
6780 with_gnu_ld="$lt_cv_prog_gnu_ld"
6781
6782 old_CC="$CC"
6783 old_CFLAGS="$CFLAGS"
6784
6785 # Set sane defaults for various variables
6786 test -z "$CC" && CC=cc
6787 test -z "$LTCC" && LTCC=$CC
6788 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6789 test -z "$LD" && LD=ld
6790 test -z "$ac_objext" && ac_objext=o
6791
6792 for cc_temp in $compiler""; do
6793   case $cc_temp in
6794     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6795     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6796     \-*) ;;
6797     *) break;;
6798   esac
6799 done
6800 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6801
6802
6803 # Only perform the check for file, if the check method requires it
6804 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6805 case $deplibs_check_method in
6806 file_magic*)
6807   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6809 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6810 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6811   $as_echo_n "(cached) " >&6
6812 else
6813   case $MAGIC_CMD in
6814 [\\/*] |  ?:[\\/]*)
6815   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6816   ;;
6817 *)
6818   lt_save_MAGIC_CMD="$MAGIC_CMD"
6819   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6820   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6821   for ac_dir in $ac_dummy; do
6822     IFS="$lt_save_ifs"
6823     test -z "$ac_dir" && ac_dir=.
6824     if test -f $ac_dir/${ac_tool_prefix}file; then
6825       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6826       if test -n "$file_magic_test_file"; then
6827         case $deplibs_check_method in
6828         "file_magic "*)
6829           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6830           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6831           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6832             $EGREP "$file_magic_regex" > /dev/null; then
6833             :
6834           else
6835             cat <<_LT_EOF 1>&2
6836
6837 *** Warning: the command libtool uses to detect shared libraries,
6838 *** $file_magic_cmd, produces output that libtool cannot recognize.
6839 *** The result is that libtool may fail to recognize shared libraries
6840 *** as such.  This will affect the creation of libtool libraries that
6841 *** depend on shared libraries, but programs linked with such libtool
6842 *** libraries will work regardless of this problem.  Nevertheless, you
6843 *** may want to report the problem to your system manager and/or to
6844 *** bug-libtool@gnu.org
6845
6846 _LT_EOF
6847           fi ;;
6848         esac
6849       fi
6850       break
6851     fi
6852   done
6853   IFS="$lt_save_ifs"
6854   MAGIC_CMD="$lt_save_MAGIC_CMD"
6855   ;;
6856 esac
6857 fi
6858
6859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6860 if test -n "$MAGIC_CMD"; then
6861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6862 $as_echo "$MAGIC_CMD" >&6; }
6863 else
6864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867
6868
6869
6870
6871
6872 if test -z "$lt_cv_path_MAGIC_CMD"; then
6873   if test -n "$ac_tool_prefix"; then
6874     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6875 $as_echo_n "checking for file... " >&6; }
6876 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6877   $as_echo_n "(cached) " >&6
6878 else
6879   case $MAGIC_CMD in
6880 [\\/*] |  ?:[\\/]*)
6881   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6882   ;;
6883 *)
6884   lt_save_MAGIC_CMD="$MAGIC_CMD"
6885   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6886   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6887   for ac_dir in $ac_dummy; do
6888     IFS="$lt_save_ifs"
6889     test -z "$ac_dir" && ac_dir=.
6890     if test -f $ac_dir/file; then
6891       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6892       if test -n "$file_magic_test_file"; then
6893         case $deplibs_check_method in
6894         "file_magic "*)
6895           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6896           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6897           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6898             $EGREP "$file_magic_regex" > /dev/null; then
6899             :
6900           else
6901             cat <<_LT_EOF 1>&2
6902
6903 *** Warning: the command libtool uses to detect shared libraries,
6904 *** $file_magic_cmd, produces output that libtool cannot recognize.
6905 *** The result is that libtool may fail to recognize shared libraries
6906 *** as such.  This will affect the creation of libtool libraries that
6907 *** depend on shared libraries, but programs linked with such libtool
6908 *** libraries will work regardless of this problem.  Nevertheless, you
6909 *** may want to report the problem to your system manager and/or to
6910 *** bug-libtool@gnu.org
6911
6912 _LT_EOF
6913           fi ;;
6914         esac
6915       fi
6916       break
6917     fi
6918   done
6919   IFS="$lt_save_ifs"
6920   MAGIC_CMD="$lt_save_MAGIC_CMD"
6921   ;;
6922 esac
6923 fi
6924
6925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6926 if test -n "$MAGIC_CMD"; then
6927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6928 $as_echo "$MAGIC_CMD" >&6; }
6929 else
6930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6932 fi
6933
6934
6935   else
6936     MAGIC_CMD=:
6937   fi
6938 fi
6939
6940   fi
6941   ;;
6942 esac
6943
6944 # Use C for the default configuration in the libtool script
6945
6946 lt_save_CC="$CC"
6947 ac_ext=c
6948 ac_cpp='$CPP $CPPFLAGS'
6949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952
6953
6954 # Source file extension for C test sources.
6955 ac_ext=c
6956
6957 # Object file extension for compiled C test sources.
6958 objext=o
6959 objext=$objext
6960
6961 # Code to be used in simple compile tests
6962 lt_simple_compile_test_code="int some_variable = 0;"
6963
6964 # Code to be used in simple link tests
6965 lt_simple_link_test_code='int main(){return(0);}'
6966
6967
6968
6969
6970
6971
6972
6973 # If no C compiler was specified, use CC.
6974 LTCC=${LTCC-"$CC"}
6975
6976 # If no C compiler flags were specified, use CFLAGS.
6977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6978
6979 # Allow CC to be a program name with arguments.
6980 compiler=$CC
6981
6982 # Save the default compiler, since it gets overwritten when the other
6983 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6984 compiler_DEFAULT=$CC
6985
6986 # save warnings/boilerplate of simple test code
6987 ac_outfile=conftest.$ac_objext
6988 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6989 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6990 _lt_compiler_boilerplate=`cat conftest.err`
6991 $RM conftest*
6992
6993 ac_outfile=conftest.$ac_objext
6994 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6995 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6996 _lt_linker_boilerplate=`cat conftest.err`
6997 $RM -r conftest*
6998
6999
7000 ## CAVEAT EMPTOR:
7001 ## There is no encapsulation within the following macros, do not change
7002 ## the running order or otherwise move them around unless you know exactly
7003 ## what you are doing...
7004 if test -n "$compiler"; then
7005
7006 lt_prog_compiler_no_builtin_flag=
7007
7008 if test "$GCC" = yes; then
7009   case $cc_basename in
7010   nvcc*)
7011     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7012   *)
7013     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7014   esac
7015
7016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7017 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7018 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7019   $as_echo_n "(cached) " >&6
7020 else
7021   lt_cv_prog_compiler_rtti_exceptions=no
7022    ac_outfile=conftest.$ac_objext
7023    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7024    lt_compiler_flag="-fno-rtti -fno-exceptions"
7025    # Insert the option either (1) after the last *FLAGS variable, or
7026    # (2) before a word containing "conftest.", or (3) at the end.
7027    # Note that $ac_compile itself does not contain backslashes and begins
7028    # with a dollar sign (not a hyphen), so the echo should work correctly.
7029    # The option is referenced via a variable to avoid confusing sed.
7030    lt_compile=`echo "$ac_compile" | $SED \
7031    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7032    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7033    -e 's:$: $lt_compiler_flag:'`
7034    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7035    (eval "$lt_compile" 2>conftest.err)
7036    ac_status=$?
7037    cat conftest.err >&5
7038    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039    if (exit $ac_status) && test -s "$ac_outfile"; then
7040      # The compiler can only warn and ignore the option if not recognized
7041      # So say no if there are warnings other than the usual output.
7042      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7043      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7044      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7045        lt_cv_prog_compiler_rtti_exceptions=yes
7046      fi
7047    fi
7048    $RM conftest*
7049
7050 fi
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7052 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7053
7054 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7055     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7056 else
7057     :
7058 fi
7059
7060 fi
7061
7062
7063
7064
7065
7066
7067   lt_prog_compiler_wl=
7068 lt_prog_compiler_pic=
7069 lt_prog_compiler_static=
7070
7071
7072   if test "$GCC" = yes; then
7073     lt_prog_compiler_wl='-Wl,'
7074     lt_prog_compiler_static='-static'
7075
7076     case $host_os in
7077       aix*)
7078       # All AIX code is PIC.
7079       if test "$host_cpu" = ia64; then
7080         # AIX 5 now supports IA64 processor
7081         lt_prog_compiler_static='-Bstatic'
7082       fi
7083       ;;
7084
7085     amigaos*)
7086       case $host_cpu in
7087       powerpc)
7088             # see comment about AmigaOS4 .so support
7089             lt_prog_compiler_pic='-fPIC'
7090         ;;
7091       m68k)
7092             # FIXME: we need at least 68020 code to build shared libraries, but
7093             # adding the `-m68020' flag to GCC prevents building anything better,
7094             # like `-m68040'.
7095             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7096         ;;
7097       esac
7098       ;;
7099
7100     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7101       # PIC is the default for these OSes.
7102       ;;
7103
7104     mingw* | cygwin* | pw32* | os2* | cegcc*)
7105       # This hack is so that the source file can tell whether it is being
7106       # built for inclusion in a dll (and should export symbols for example).
7107       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7108       # (--disable-auto-import) libraries
7109       lt_prog_compiler_pic='-DDLL_EXPORT'
7110       ;;
7111
7112     darwin* | rhapsody*)
7113       # PIC is the default on this platform
7114       # Common symbols not allowed in MH_DYLIB files
7115       lt_prog_compiler_pic='-fno-common'
7116       ;;
7117
7118     haiku*)
7119       # PIC is the default for Haiku.
7120       # The "-static" flag exists, but is broken.
7121       lt_prog_compiler_static=
7122       ;;
7123
7124     hpux*)
7125       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7126       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7127       # sets the default TLS model and affects inlining.
7128       case $host_cpu in
7129       hppa*64*)
7130         # +Z the default
7131         ;;
7132       *)
7133         lt_prog_compiler_pic='-fPIC'
7134         ;;
7135       esac
7136       ;;
7137
7138     interix[3-9]*)
7139       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7140       # Instead, we relocate shared libraries at runtime.
7141       ;;
7142
7143     msdosdjgpp*)
7144       # Just because we use GCC doesn't mean we suddenly get shared libraries
7145       # on systems that don't support them.
7146       lt_prog_compiler_can_build_shared=no
7147       enable_shared=no
7148       ;;
7149
7150     *nto* | *qnx*)
7151       # QNX uses GNU C++, but need to define -shared option too, otherwise
7152       # it will coredump.
7153       lt_prog_compiler_pic='-fPIC -shared'
7154       ;;
7155
7156     sysv4*MP*)
7157       if test -d /usr/nec; then
7158         lt_prog_compiler_pic=-Kconform_pic
7159       fi
7160       ;;
7161
7162     *)
7163       lt_prog_compiler_pic='-fPIC'
7164       ;;
7165     esac
7166
7167     case $cc_basename in
7168     nvcc*) # Cuda Compiler Driver 2.2
7169       lt_prog_compiler_wl='-Xlinker '
7170       lt_prog_compiler_pic='-Xcompiler -fPIC'
7171       ;;
7172     esac
7173   else
7174     # PORTME Check for flag to pass linker flags through the system compiler.
7175     case $host_os in
7176     aix*)
7177       lt_prog_compiler_wl='-Wl,'
7178       if test "$host_cpu" = ia64; then
7179         # AIX 5 now supports IA64 processor
7180         lt_prog_compiler_static='-Bstatic'
7181       else
7182         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7183       fi
7184       ;;
7185
7186     mingw* | cygwin* | pw32* | os2* | cegcc*)
7187       # This hack is so that the source file can tell whether it is being
7188       # built for inclusion in a dll (and should export symbols for example).
7189       lt_prog_compiler_pic='-DDLL_EXPORT'
7190       ;;
7191
7192     hpux9* | hpux10* | hpux11*)
7193       lt_prog_compiler_wl='-Wl,'
7194       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7195       # not for PA HP-UX.
7196       case $host_cpu in
7197       hppa*64*|ia64*)
7198         # +Z the default
7199         ;;
7200       *)
7201         lt_prog_compiler_pic='+Z'
7202         ;;
7203       esac
7204       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7205       lt_prog_compiler_static='${wl}-a ${wl}archive'
7206       ;;
7207
7208     irix5* | irix6* | nonstopux*)
7209       lt_prog_compiler_wl='-Wl,'
7210       # PIC (with -KPIC) is the default.
7211       lt_prog_compiler_static='-non_shared'
7212       ;;
7213
7214     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7215       case $cc_basename in
7216       # old Intel for x86_64 which still supported -KPIC.
7217       ecc*)
7218         lt_prog_compiler_wl='-Wl,'
7219         lt_prog_compiler_pic='-KPIC'
7220         lt_prog_compiler_static='-static'
7221         ;;
7222       # icc used to be incompatible with GCC.
7223       # ICC 10 doesn't accept -KPIC any more.
7224       icc* | ifort*)
7225         lt_prog_compiler_wl='-Wl,'
7226         lt_prog_compiler_pic='-fPIC'
7227         lt_prog_compiler_static='-static'
7228         ;;
7229       # Lahey Fortran 8.1.
7230       lf95*)
7231         lt_prog_compiler_wl='-Wl,'
7232         lt_prog_compiler_pic='--shared'
7233         lt_prog_compiler_static='--static'
7234         ;;
7235       nagfor*)
7236         # NAG Fortran compiler
7237         lt_prog_compiler_wl='-Wl,-Wl,,'
7238         lt_prog_compiler_pic='-PIC'
7239         lt_prog_compiler_static='-Bstatic'
7240         ;;
7241       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7242         # Portland Group compilers (*not* the Pentium gcc compiler,
7243         # which looks to be a dead project)
7244         lt_prog_compiler_wl='-Wl,'
7245         lt_prog_compiler_pic='-fpic'
7246         lt_prog_compiler_static='-Bstatic'
7247         ;;
7248       ccc*)
7249         lt_prog_compiler_wl='-Wl,'
7250         # All Alpha code is PIC.
7251         lt_prog_compiler_static='-non_shared'
7252         ;;
7253       xl* | bgxl* | bgf* | mpixl*)
7254         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7255         lt_prog_compiler_wl='-Wl,'
7256         lt_prog_compiler_pic='-qpic'
7257         lt_prog_compiler_static='-qstaticlink'
7258         ;;
7259       *)
7260         case `$CC -V 2>&1 | sed 5q` in
7261         *Sun\ F* | *Sun*Fortran*)
7262           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7263           lt_prog_compiler_pic='-KPIC'
7264           lt_prog_compiler_static='-Bstatic'
7265           lt_prog_compiler_wl=''
7266           ;;
7267         *Sun\ C*)
7268           # Sun C 5.9
7269           lt_prog_compiler_pic='-KPIC'
7270           lt_prog_compiler_static='-Bstatic'
7271           lt_prog_compiler_wl='-Wl,'
7272           ;;
7273         esac
7274         ;;
7275       esac
7276       ;;
7277
7278     newsos6)
7279       lt_prog_compiler_pic='-KPIC'
7280       lt_prog_compiler_static='-Bstatic'
7281       ;;
7282
7283     *nto* | *qnx*)
7284       # QNX uses GNU C++, but need to define -shared option too, otherwise
7285       # it will coredump.
7286       lt_prog_compiler_pic='-fPIC -shared'
7287       ;;
7288
7289     osf3* | osf4* | osf5*)
7290       lt_prog_compiler_wl='-Wl,'
7291       # All OSF/1 code is PIC.
7292       lt_prog_compiler_static='-non_shared'
7293       ;;
7294
7295     rdos*)
7296       lt_prog_compiler_static='-non_shared'
7297       ;;
7298
7299     solaris*)
7300       lt_prog_compiler_pic='-KPIC'
7301       lt_prog_compiler_static='-Bstatic'
7302       case $cc_basename in
7303       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7304         lt_prog_compiler_wl='-Qoption ld ';;
7305       *)
7306         lt_prog_compiler_wl='-Wl,';;
7307       esac
7308       ;;
7309
7310     sunos4*)
7311       lt_prog_compiler_wl='-Qoption ld '
7312       lt_prog_compiler_pic='-PIC'
7313       lt_prog_compiler_static='-Bstatic'
7314       ;;
7315
7316     sysv4 | sysv4.2uw2* | sysv4.3*)
7317       lt_prog_compiler_wl='-Wl,'
7318       lt_prog_compiler_pic='-KPIC'
7319       lt_prog_compiler_static='-Bstatic'
7320       ;;
7321
7322     sysv4*MP*)
7323       if test -d /usr/nec ;then
7324         lt_prog_compiler_pic='-Kconform_pic'
7325         lt_prog_compiler_static='-Bstatic'
7326       fi
7327       ;;
7328
7329     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7330       lt_prog_compiler_wl='-Wl,'
7331       lt_prog_compiler_pic='-KPIC'
7332       lt_prog_compiler_static='-Bstatic'
7333       ;;
7334
7335     unicos*)
7336       lt_prog_compiler_wl='-Wl,'
7337       lt_prog_compiler_can_build_shared=no
7338       ;;
7339
7340     uts4*)
7341       lt_prog_compiler_pic='-pic'
7342       lt_prog_compiler_static='-Bstatic'
7343       ;;
7344
7345     *)
7346       lt_prog_compiler_can_build_shared=no
7347       ;;
7348     esac
7349   fi
7350
7351 case $host_os in
7352   # For platforms which do not support PIC, -DPIC is meaningless:
7353   *djgpp*)
7354     lt_prog_compiler_pic=
7355     ;;
7356   *)
7357     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7358     ;;
7359 esac
7360
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7362 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7363 if ${lt_cv_prog_compiler_pic+:} false; then :
7364   $as_echo_n "(cached) " >&6
7365 else
7366   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7367 fi
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7369 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7370 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7371
7372 #
7373 # Check to make sure the PIC flag actually works.
7374 #
7375 if test -n "$lt_prog_compiler_pic"; then
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7377 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7378 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7379   $as_echo_n "(cached) " >&6
7380 else
7381   lt_cv_prog_compiler_pic_works=no
7382    ac_outfile=conftest.$ac_objext
7383    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7384    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7385    # Insert the option either (1) after the last *FLAGS variable, or
7386    # (2) before a word containing "conftest.", or (3) at the end.
7387    # Note that $ac_compile itself does not contain backslashes and begins
7388    # with a dollar sign (not a hyphen), so the echo should work correctly.
7389    # The option is referenced via a variable to avoid confusing sed.
7390    lt_compile=`echo "$ac_compile" | $SED \
7391    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7392    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7393    -e 's:$: $lt_compiler_flag:'`
7394    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7395    (eval "$lt_compile" 2>conftest.err)
7396    ac_status=$?
7397    cat conftest.err >&5
7398    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399    if (exit $ac_status) && test -s "$ac_outfile"; then
7400      # The compiler can only warn and ignore the option if not recognized
7401      # So say no if there are warnings other than the usual output.
7402      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7403      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7404      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7405        lt_cv_prog_compiler_pic_works=yes
7406      fi
7407    fi
7408    $RM conftest*
7409
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7412 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7413
7414 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7415     case $lt_prog_compiler_pic in
7416      "" | " "*) ;;
7417      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7418      esac
7419 else
7420     lt_prog_compiler_pic=
7421      lt_prog_compiler_can_build_shared=no
7422 fi
7423
7424 fi
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436 #
7437 # Check to make sure the static flag actually works.
7438 #
7439 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7441 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7442 if ${lt_cv_prog_compiler_static_works+:} false; then :
7443   $as_echo_n "(cached) " >&6
7444 else
7445   lt_cv_prog_compiler_static_works=no
7446    save_LDFLAGS="$LDFLAGS"
7447    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7448    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7449    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7450      # The linker can only warn and ignore the option if not recognized
7451      # So say no if there are warnings
7452      if test -s conftest.err; then
7453        # Append any errors to the config.log.
7454        cat conftest.err 1>&5
7455        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7456        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7457        if diff conftest.exp conftest.er2 >/dev/null; then
7458          lt_cv_prog_compiler_static_works=yes
7459        fi
7460      else
7461        lt_cv_prog_compiler_static_works=yes
7462      fi
7463    fi
7464    $RM -r conftest*
7465    LDFLAGS="$save_LDFLAGS"
7466
7467 fi
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7469 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7470
7471 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7472     :
7473 else
7474     lt_prog_compiler_static=
7475 fi
7476
7477
7478
7479
7480
7481
7482
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7484 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7485 if ${lt_cv_prog_compiler_c_o+:} false; then :
7486   $as_echo_n "(cached) " >&6
7487 else
7488   lt_cv_prog_compiler_c_o=no
7489    $RM -r conftest 2>/dev/null
7490    mkdir conftest
7491    cd conftest
7492    mkdir out
7493    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7494
7495    lt_compiler_flag="-o out/conftest2.$ac_objext"
7496    # Insert the option either (1) after the last *FLAGS variable, or
7497    # (2) before a word containing "conftest.", or (3) at the end.
7498    # Note that $ac_compile itself does not contain backslashes and begins
7499    # with a dollar sign (not a hyphen), so the echo should work correctly.
7500    lt_compile=`echo "$ac_compile" | $SED \
7501    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7503    -e 's:$: $lt_compiler_flag:'`
7504    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7505    (eval "$lt_compile" 2>out/conftest.err)
7506    ac_status=$?
7507    cat out/conftest.err >&5
7508    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7510    then
7511      # The compiler can only warn and ignore the option if not recognized
7512      # So say no if there are warnings
7513      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7514      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7515      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7516        lt_cv_prog_compiler_c_o=yes
7517      fi
7518    fi
7519    chmod u+w . 2>&5
7520    $RM conftest*
7521    # SGI C++ compiler will create directory out/ii_files/ for
7522    # template instantiation
7523    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7524    $RM out/* && rmdir out
7525    cd ..
7526    $RM -r conftest
7527    $RM conftest*
7528
7529 fi
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7531 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7532
7533
7534
7535
7536
7537
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7539 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7540 if ${lt_cv_prog_compiler_c_o+:} false; then :
7541   $as_echo_n "(cached) " >&6
7542 else
7543   lt_cv_prog_compiler_c_o=no
7544    $RM -r conftest 2>/dev/null
7545    mkdir conftest
7546    cd conftest
7547    mkdir out
7548    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7549
7550    lt_compiler_flag="-o out/conftest2.$ac_objext"
7551    # Insert the option either (1) after the last *FLAGS variable, or
7552    # (2) before a word containing "conftest.", or (3) at the end.
7553    # Note that $ac_compile itself does not contain backslashes and begins
7554    # with a dollar sign (not a hyphen), so the echo should work correctly.
7555    lt_compile=`echo "$ac_compile" | $SED \
7556    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7557    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7558    -e 's:$: $lt_compiler_flag:'`
7559    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7560    (eval "$lt_compile" 2>out/conftest.err)
7561    ac_status=$?
7562    cat out/conftest.err >&5
7563    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7565    then
7566      # The compiler can only warn and ignore the option if not recognized
7567      # So say no if there are warnings
7568      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7569      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7570      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7571        lt_cv_prog_compiler_c_o=yes
7572      fi
7573    fi
7574    chmod u+w . 2>&5
7575    $RM conftest*
7576    # SGI C++ compiler will create directory out/ii_files/ for
7577    # template instantiation
7578    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7579    $RM out/* && rmdir out
7580    cd ..
7581    $RM -r conftest
7582    $RM conftest*
7583
7584 fi
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7586 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7587
7588
7589
7590
7591 hard_links="nottested"
7592 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7593   # do not overwrite the value of need_locks provided by the user
7594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7595 $as_echo_n "checking if we can lock with hard links... " >&6; }
7596   hard_links=yes
7597   $RM conftest*
7598   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7599   touch conftest.a
7600   ln conftest.a conftest.b 2>&5 || hard_links=no
7601   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7603 $as_echo "$hard_links" >&6; }
7604   if test "$hard_links" = no; then
7605     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7606 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7607     need_locks=warn
7608   fi
7609 else
7610   need_locks=no
7611 fi
7612
7613
7614
7615
7616
7617
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7619 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7620
7621   runpath_var=
7622   allow_undefined_flag=
7623   always_export_symbols=no
7624   archive_cmds=
7625   archive_expsym_cmds=
7626   compiler_needs_object=no
7627   enable_shared_with_static_runtimes=no
7628   export_dynamic_flag_spec=
7629   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7630   hardcode_automatic=no
7631   hardcode_direct=no
7632   hardcode_direct_absolute=no
7633   hardcode_libdir_flag_spec=
7634   hardcode_libdir_flag_spec_ld=
7635   hardcode_libdir_separator=
7636   hardcode_minus_L=no
7637   hardcode_shlibpath_var=unsupported
7638   inherit_rpath=no
7639   link_all_deplibs=unknown
7640   module_cmds=
7641   module_expsym_cmds=
7642   old_archive_from_new_cmds=
7643   old_archive_from_expsyms_cmds=
7644   thread_safe_flag_spec=
7645   whole_archive_flag_spec=
7646   # include_expsyms should be a list of space-separated symbols to be *always*
7647   # included in the symbol list
7648   include_expsyms=
7649   # exclude_expsyms can be an extended regexp of symbols to exclude
7650   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7651   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7652   # as well as any symbol that contains `d'.
7653   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7654   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7655   # platforms (ab)use it in PIC code, but their linkers get confused if
7656   # the symbol is explicitly referenced.  Since portable code cannot
7657   # rely on this symbol name, it's probably fine to never include it in
7658   # preloaded symbol tables.
7659   # Exclude shared library initialization/finalization symbols.
7660   extract_expsyms_cmds=
7661
7662   case $host_os in
7663   cygwin* | mingw* | pw32* | cegcc*)
7664     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7665     # When not using gcc, we currently assume that we are using
7666     # Microsoft Visual C++.
7667     if test "$GCC" != yes; then
7668       with_gnu_ld=no
7669     fi
7670     ;;
7671   interix*)
7672     # we just hope/assume this is gcc and not c89 (= MSVC++)
7673     with_gnu_ld=yes
7674     ;;
7675   openbsd*)
7676     with_gnu_ld=no
7677     ;;
7678   esac
7679
7680   ld_shlibs=yes
7681
7682   # On some targets, GNU ld is compatible enough with the native linker
7683   # that we're better off using the native interface for both.
7684   lt_use_gnu_ld_interface=no
7685   if test "$with_gnu_ld" = yes; then
7686     case $host_os in
7687       aix*)
7688         # The AIX port of GNU ld has always aspired to compatibility
7689         # with the native linker.  However, as the warning in the GNU ld
7690         # block says, versions before 2.19.5* couldn't really create working
7691         # shared libraries, regardless of the interface used.
7692         case `$LD -v 2>&1` in
7693           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7694           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7695           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7696           *)
7697             lt_use_gnu_ld_interface=yes
7698             ;;
7699         esac
7700         ;;
7701       *)
7702         lt_use_gnu_ld_interface=yes
7703         ;;
7704     esac
7705   fi
7706
7707   if test "$lt_use_gnu_ld_interface" = yes; then
7708     # If archive_cmds runs LD, not CC, wlarc should be empty
7709     wlarc='${wl}'
7710
7711     # Set some defaults for GNU ld with shared library support. These
7712     # are reset later if shared libraries are not supported. Putting them
7713     # here allows them to be overridden if necessary.
7714     runpath_var=LD_RUN_PATH
7715     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7716     export_dynamic_flag_spec='${wl}--export-dynamic'
7717     # ancient GNU ld didn't support --whole-archive et. al.
7718     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7719       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7720     else
7721       whole_archive_flag_spec=
7722     fi
7723     supports_anon_versioning=no
7724     case `$LD -v 2>&1` in
7725       *GNU\ gold*) supports_anon_versioning=yes ;;
7726       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7727       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7728       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7729       *\ 2.11.*) ;; # other 2.11 versions
7730       *) supports_anon_versioning=yes ;;
7731     esac
7732
7733     # See if GNU ld supports shared libraries.
7734     case $host_os in
7735     aix[3-9]*)
7736       # On AIX/PPC, the GNU linker is very broken
7737       if test "$host_cpu" != ia64; then
7738         ld_shlibs=no
7739         cat <<_LT_EOF 1>&2
7740
7741 *** Warning: the GNU linker, at least up to release 2.19, is reported
7742 *** to be unable to reliably create shared libraries on AIX.
7743 *** Therefore, libtool is disabling shared libraries support.  If you
7744 *** really care for shared libraries, you may want to install binutils
7745 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7746 *** You will then need to restart the configuration process.
7747
7748 _LT_EOF
7749       fi
7750       ;;
7751
7752     amigaos*)
7753       case $host_cpu in
7754       powerpc)
7755             # see comment about AmigaOS4 .so support
7756             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7757             archive_expsym_cmds=''
7758         ;;
7759       m68k)
7760             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)'
7761             hardcode_libdir_flag_spec='-L$libdir'
7762             hardcode_minus_L=yes
7763         ;;
7764       esac
7765       ;;
7766
7767     beos*)
7768       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7769         allow_undefined_flag=unsupported
7770         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7771         # support --undefined.  This deserves some investigation.  FIXME
7772         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7773       else
7774         ld_shlibs=no
7775       fi
7776       ;;
7777
7778     cygwin* | mingw* | pw32* | cegcc*)
7779       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7780       # as there is no search path for DLLs.
7781       hardcode_libdir_flag_spec='-L$libdir'
7782       export_dynamic_flag_spec='${wl}--export-all-symbols'
7783       allow_undefined_flag=unsupported
7784       always_export_symbols=no
7785       enable_shared_with_static_runtimes=yes
7786       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
7787       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
7788
7789       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7790         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7791         # If the export-symbols file already is a .def file (1st line
7792         # is EXPORTS), use it as is; otherwise, prepend...
7793         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7794           cp $export_symbols $output_objdir/$soname.def;
7795         else
7796           echo EXPORTS > $output_objdir/$soname.def;
7797           cat $export_symbols >> $output_objdir/$soname.def;
7798         fi~
7799         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7800       else
7801         ld_shlibs=no
7802       fi
7803       ;;
7804
7805     haiku*)
7806       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7807       link_all_deplibs=yes
7808       ;;
7809
7810     interix[3-9]*)
7811       hardcode_direct=no
7812       hardcode_shlibpath_var=no
7813       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7814       export_dynamic_flag_spec='${wl}-E'
7815       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7816       # Instead, shared libraries are loaded at an image base (0x10000000 by
7817       # default) and relocated if they conflict, which is a slow very memory
7818       # consuming and fragmenting process.  To avoid this, we pick a random,
7819       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7820       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7821       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7822       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'
7823       ;;
7824
7825     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7826       tmp_diet=no
7827       if test "$host_os" = linux-dietlibc; then
7828         case $cc_basename in
7829           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7830         esac
7831       fi
7832       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7833          && test "$tmp_diet" = no
7834       then
7835         tmp_addflag=' $pic_flag'
7836         tmp_sharedflag='-shared'
7837         case $cc_basename,$host_cpu in
7838         pgcc*)                          # Portland Group C compiler
7839           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'
7840           tmp_addflag=' $pic_flag'
7841           ;;
7842         pgf77* | pgf90* | pgf95* | pgfortran*)
7843                                         # Portland Group f77 and f90 compilers
7844           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'
7845           tmp_addflag=' $pic_flag -Mnomain' ;;
7846         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7847           tmp_addflag=' -i_dynamic' ;;
7848         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7849           tmp_addflag=' -i_dynamic -nofor_main' ;;
7850         ifc* | ifort*)                  # Intel Fortran compiler
7851           tmp_addflag=' -nofor_main' ;;
7852         lf95*)                          # Lahey Fortran 8.1
7853           whole_archive_flag_spec=
7854           tmp_sharedflag='--shared' ;;
7855         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7856           tmp_sharedflag='-qmkshrobj'
7857           tmp_addflag= ;;
7858         nvcc*)  # Cuda Compiler Driver 2.2
7859           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'
7860           compiler_needs_object=yes
7861           ;;
7862         esac
7863         case `$CC -V 2>&1 | sed 5q` in
7864         *Sun\ C*)                       # Sun C 5.9
7865           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'
7866           compiler_needs_object=yes
7867           tmp_sharedflag='-G' ;;
7868         *Sun\ F*)                       # Sun Fortran 8.3
7869           tmp_sharedflag='-G' ;;
7870         esac
7871         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7872
7873         if test "x$supports_anon_versioning" = xyes; then
7874           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7875             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7876             echo "local: *; };" >> $output_objdir/$libname.ver~
7877             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7878         fi
7879
7880         case $cc_basename in
7881         xlf* | bgf* | bgxlf* | mpixlf*)
7882           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7883           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7884           hardcode_libdir_flag_spec=
7885           hardcode_libdir_flag_spec_ld='-rpath $libdir'
7886           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
7887           if test "x$supports_anon_versioning" = xyes; then
7888             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7889               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7890               echo "local: *; };" >> $output_objdir/$libname.ver~
7891               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7892           fi
7893           ;;
7894         esac
7895       else
7896         ld_shlibs=no
7897       fi
7898       ;;
7899
7900     netbsd*)
7901       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7902         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7903         wlarc=
7904       else
7905         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7906         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7907       fi
7908       ;;
7909
7910     solaris*)
7911       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7912         ld_shlibs=no
7913         cat <<_LT_EOF 1>&2
7914
7915 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7916 *** create shared libraries on Solaris systems.  Therefore, libtool
7917 *** is disabling shared libraries support.  We urge you to upgrade GNU
7918 *** binutils to release 2.9.1 or newer.  Another option is to modify
7919 *** your PATH or compiler configuration so that the native linker is
7920 *** used, and then restart.
7921
7922 _LT_EOF
7923       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7924         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7925         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7926       else
7927         ld_shlibs=no
7928       fi
7929       ;;
7930
7931     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7932       case `$LD -v 2>&1` in
7933         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7934         ld_shlibs=no
7935         cat <<_LT_EOF 1>&2
7936
7937 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7938 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7939 *** is disabling shared libraries support.  We urge you to upgrade GNU
7940 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7941 *** your PATH or compiler configuration so that the native linker is
7942 *** used, and then restart.
7943
7944 _LT_EOF
7945         ;;
7946         *)
7947           # For security reasons, it is highly recommended that you always
7948           # use absolute paths for naming shared libraries, and exclude the
7949           # DT_RUNPATH tag from executables and libraries.  But doing so
7950           # requires that you compile everything twice, which is a pain.
7951           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7952             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7953             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7954             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7955           else
7956             ld_shlibs=no
7957           fi
7958         ;;
7959       esac
7960       ;;
7961
7962     sunos4*)
7963       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7964       wlarc=
7965       hardcode_direct=yes
7966       hardcode_shlibpath_var=no
7967       ;;
7968
7969     *)
7970       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7971         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7972         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7973       else
7974         ld_shlibs=no
7975       fi
7976       ;;
7977     esac
7978
7979     if test "$ld_shlibs" = no; then
7980       runpath_var=
7981       hardcode_libdir_flag_spec=
7982       export_dynamic_flag_spec=
7983       whole_archive_flag_spec=
7984     fi
7985   else
7986     # PORTME fill in a description of your system's linker (not GNU ld)
7987     case $host_os in
7988     aix3*)
7989       allow_undefined_flag=unsupported
7990       always_export_symbols=yes
7991       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'
7992       # Note: this linker hardcodes the directories in LIBPATH if there
7993       # are no directories specified by -L.
7994       hardcode_minus_L=yes
7995       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7996         # Neither direct hardcoding nor static linking is supported with a
7997         # broken collect2.
7998         hardcode_direct=unsupported
7999       fi
8000       ;;
8001
8002     aix[4-9]*)
8003       if test "$host_cpu" = ia64; then
8004         # On IA64, the linker does run time linking by default, so we don't
8005         # have to do anything special.
8006         aix_use_runtimelinking=no
8007         exp_sym_flag='-Bexport'
8008         no_entry_flag=""
8009       else
8010         # If we're using GNU nm, then we don't want the "-C" option.
8011         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8012         # Also, AIX nm treats weak defined symbols like other global
8013         # defined symbols, whereas GNU nm marks them as "W".
8014         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8015           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'
8016         else
8017           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'
8018         fi
8019         aix_use_runtimelinking=no
8020
8021         # Test if we are trying to use run time linking or normal
8022         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8023         # need to do runtime linking.
8024         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8025           for ld_flag in $LDFLAGS; do
8026           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8027             aix_use_runtimelinking=yes
8028             break
8029           fi
8030           done
8031           ;;
8032         esac
8033
8034         exp_sym_flag='-bexport'
8035         no_entry_flag='-bnoentry'
8036       fi
8037
8038       # When large executables or shared objects are built, AIX ld can
8039       # have problems creating the table of contents.  If linking a library
8040       # or program results in "error TOC overflow" add -mminimal-toc to
8041       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8042       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8043
8044       archive_cmds=''
8045       hardcode_direct=yes
8046       hardcode_direct_absolute=yes
8047       hardcode_libdir_separator=':'
8048       link_all_deplibs=yes
8049       file_list_spec='${wl}-f,'
8050
8051       if test "$GCC" = yes; then
8052         case $host_os in aix4.[012]|aix4.[012].*)
8053         # We only want to do this on AIX 4.2 and lower, the check
8054         # below for broken collect2 doesn't work under 4.3+
8055           collect2name=`${CC} -print-prog-name=collect2`
8056           if test -f "$collect2name" &&
8057            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8058           then
8059           # We have reworked collect2
8060           :
8061           else
8062           # We have old collect2
8063           hardcode_direct=unsupported
8064           # It fails to find uninstalled libraries when the uninstalled
8065           # path is not listed in the libpath.  Setting hardcode_minus_L
8066           # to unsupported forces relinking
8067           hardcode_minus_L=yes
8068           hardcode_libdir_flag_spec='-L$libdir'
8069           hardcode_libdir_separator=
8070           fi
8071           ;;
8072         esac
8073         shared_flag='-shared'
8074         if test "$aix_use_runtimelinking" = yes; then
8075           shared_flag="$shared_flag "'${wl}-G'
8076         fi
8077       else
8078         # not using gcc
8079         if test "$host_cpu" = ia64; then
8080         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8081         # chokes on -Wl,-G. The following line is correct:
8082           shared_flag='-G'
8083         else
8084           if test "$aix_use_runtimelinking" = yes; then
8085             shared_flag='${wl}-G'
8086           else
8087             shared_flag='${wl}-bM:SRE'
8088           fi
8089         fi
8090       fi
8091
8092       export_dynamic_flag_spec='${wl}-bexpall'
8093       # It seems that -bexpall does not export symbols beginning with
8094       # underscore (_), so it is better to generate a list of symbols to export.
8095       always_export_symbols=yes
8096       if test "$aix_use_runtimelinking" = yes; then
8097         # Warning - without using the other runtime loading flags (-brtl),
8098         # -berok will link without error, but may produce a broken library.
8099         allow_undefined_flag='-berok'
8100         # Determine the default libpath from the value encoded in an
8101         # empty executable.
8102         if test "${lt_cv_aix_libpath+set}" = set; then
8103   aix_libpath=$lt_cv_aix_libpath
8104 else
8105   if ${lt_cv_aix_libpath_+:} false; then :
8106   $as_echo_n "(cached) " >&6
8107 else
8108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h.  */
8110
8111 int
8112 main ()
8113 {
8114
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 if ac_fn_c_try_link "$LINENO"; then :
8120
8121   lt_aix_libpath_sed='
8122       /Import File Strings/,/^$/ {
8123           /^0/ {
8124               s/^0  *\([^ ]*\) *$/\1/
8125               p
8126           }
8127       }'
8128   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8129   # Check for a 64-bit object if we didn't find anything.
8130   if test -z "$lt_cv_aix_libpath_"; then
8131     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8132   fi
8133 fi
8134 rm -f core conftest.err conftest.$ac_objext \
8135     conftest$ac_exeext conftest.$ac_ext
8136   if test -z "$lt_cv_aix_libpath_"; then
8137     lt_cv_aix_libpath_="/usr/lib:/lib"
8138   fi
8139
8140 fi
8141
8142   aix_libpath=$lt_cv_aix_libpath_
8143 fi
8144
8145         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8146         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"
8147       else
8148         if test "$host_cpu" = ia64; then
8149           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8150           allow_undefined_flag="-z nodefs"
8151           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"
8152         else
8153          # Determine the default libpath from the value encoded in an
8154          # empty executable.
8155          if test "${lt_cv_aix_libpath+set}" = set; then
8156   aix_libpath=$lt_cv_aix_libpath
8157 else
8158   if ${lt_cv_aix_libpath_+:} false; then :
8159   $as_echo_n "(cached) " >&6
8160 else
8161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h.  */
8163
8164 int
8165 main ()
8166 {
8167
8168   ;
8169   return 0;
8170 }
8171 _ACEOF
8172 if ac_fn_c_try_link "$LINENO"; then :
8173
8174   lt_aix_libpath_sed='
8175       /Import File Strings/,/^$/ {
8176           /^0/ {
8177               s/^0  *\([^ ]*\) *$/\1/
8178               p
8179           }
8180       }'
8181   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8182   # Check for a 64-bit object if we didn't find anything.
8183   if test -z "$lt_cv_aix_libpath_"; then
8184     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8185   fi
8186 fi
8187 rm -f core conftest.err conftest.$ac_objext \
8188     conftest$ac_exeext conftest.$ac_ext
8189   if test -z "$lt_cv_aix_libpath_"; then
8190     lt_cv_aix_libpath_="/usr/lib:/lib"
8191   fi
8192
8193 fi
8194
8195   aix_libpath=$lt_cv_aix_libpath_
8196 fi
8197
8198          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8199           # Warning - without using the other run time loading flags,
8200           # -berok will link without error, but may produce a broken library.
8201           no_undefined_flag=' ${wl}-bernotok'
8202           allow_undefined_flag=' ${wl}-berok'
8203           if test "$with_gnu_ld" = yes; then
8204             # We only use this code for GNU lds that support --whole-archive.
8205             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8206           else
8207             # Exported symbols can be pulled into shared objects from archives
8208             whole_archive_flag_spec='$convenience'
8209           fi
8210           archive_cmds_need_lc=yes
8211           # This is similar to how AIX traditionally builds its shared libraries.
8212           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'
8213         fi
8214       fi
8215       ;;
8216
8217     amigaos*)
8218       case $host_cpu in
8219       powerpc)
8220             # see comment about AmigaOS4 .so support
8221             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8222             archive_expsym_cmds=''
8223         ;;
8224       m68k)
8225             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)'
8226             hardcode_libdir_flag_spec='-L$libdir'
8227             hardcode_minus_L=yes
8228         ;;
8229       esac
8230       ;;
8231
8232     bsdi[45]*)
8233       export_dynamic_flag_spec=-rdynamic
8234       ;;
8235
8236     cygwin* | mingw* | pw32* | cegcc*)
8237       # When not using gcc, we currently assume that we are using
8238       # Microsoft Visual C++.
8239       # hardcode_libdir_flag_spec is actually meaningless, as there is
8240       # no search path for DLLs.
8241       case $cc_basename in
8242       cl*)
8243         # Native MSVC
8244         hardcode_libdir_flag_spec=' '
8245         allow_undefined_flag=unsupported
8246         always_export_symbols=yes
8247         file_list_spec='@'
8248         # Tell ltmain to make .lib files, not .a files.
8249         libext=lib
8250         # Tell ltmain to make .dll files, not .so files.
8251         shrext_cmds=".dll"
8252         # FIXME: Setting linknames here is a bad hack.
8253         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8254         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8255             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8256           else
8257             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8258           fi~
8259           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8260           linknames='
8261         # The linker will not automatically build a static lib if we build a DLL.
8262         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8263         enable_shared_with_static_runtimes=yes
8264         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8265         # Don't use ranlib
8266         old_postinstall_cmds='chmod 644 $oldlib'
8267         postlink_cmds='lt_outputfile="@OUTPUT@"~
8268           lt_tool_outputfile="@TOOL_OUTPUT@"~
8269           case $lt_outputfile in
8270             *.exe|*.EXE) ;;
8271             *)
8272               lt_outputfile="$lt_outputfile.exe"
8273               lt_tool_outputfile="$lt_tool_outputfile.exe"
8274               ;;
8275           esac~
8276           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8277             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8278             $RM "$lt_outputfile.manifest";
8279           fi'
8280         ;;
8281       *)
8282         # Assume MSVC wrapper
8283         hardcode_libdir_flag_spec=' '
8284         allow_undefined_flag=unsupported
8285         # Tell ltmain to make .lib files, not .a files.
8286         libext=lib
8287         # Tell ltmain to make .dll files, not .so files.
8288         shrext_cmds=".dll"
8289         # FIXME: Setting linknames here is a bad hack.
8290         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8291         # The linker will automatically build a .lib file if we build a DLL.
8292         old_archive_from_new_cmds='true'
8293         # FIXME: Should let the user specify the lib program.
8294         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8295         enable_shared_with_static_runtimes=yes
8296         ;;
8297       esac
8298       ;;
8299
8300     darwin* | rhapsody*)
8301
8302
8303   archive_cmds_need_lc=no
8304   hardcode_direct=no
8305   hardcode_automatic=yes
8306   hardcode_shlibpath_var=unsupported
8307   if test "$lt_cv_ld_force_load" = "yes"; then
8308     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\"`'
8309   else
8310     whole_archive_flag_spec=''
8311   fi
8312   link_all_deplibs=yes
8313   allow_undefined_flag="$_lt_dar_allow_undefined"
8314   case $cc_basename in
8315      ifort*) _lt_dar_can_shared=yes ;;
8316      *) _lt_dar_can_shared=$GCC ;;
8317   esac
8318   if test "$_lt_dar_can_shared" = "yes"; then
8319     output_verbose_link_cmd=func_echo_all
8320     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8321     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8322     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}"
8323     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}"
8324
8325   else
8326   ld_shlibs=no
8327   fi
8328
8329       ;;
8330
8331     dgux*)
8332       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8333       hardcode_libdir_flag_spec='-L$libdir'
8334       hardcode_shlibpath_var=no
8335       ;;
8336
8337     freebsd1*)
8338       ld_shlibs=no
8339       ;;
8340
8341     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8342     # support.  Future versions do this automatically, but an explicit c++rt0.o
8343     # does not break anything, and helps significantly (at the cost of a little
8344     # extra space).
8345     freebsd2.2*)
8346       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8347       hardcode_libdir_flag_spec='-R$libdir'
8348       hardcode_direct=yes
8349       hardcode_shlibpath_var=no
8350       ;;
8351
8352     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8353     freebsd2*)
8354       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8355       hardcode_direct=yes
8356       hardcode_minus_L=yes
8357       hardcode_shlibpath_var=no
8358       ;;
8359
8360     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8361     freebsd* | dragonfly*)
8362       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8363       hardcode_libdir_flag_spec='-R$libdir'
8364       hardcode_direct=yes
8365       hardcode_shlibpath_var=no
8366       ;;
8367
8368     hpux9*)
8369       if test "$GCC" = yes; then
8370         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8371       else
8372         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'
8373       fi
8374       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8375       hardcode_libdir_separator=:
8376       hardcode_direct=yes
8377
8378       # hardcode_minus_L: Not really in the search PATH,
8379       # but as the default location of the library.
8380       hardcode_minus_L=yes
8381       export_dynamic_flag_spec='${wl}-E'
8382       ;;
8383
8384     hpux10*)
8385       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8386         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8387       else
8388         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8389       fi
8390       if test "$with_gnu_ld" = no; then
8391         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8392         hardcode_libdir_flag_spec_ld='+b $libdir'
8393         hardcode_libdir_separator=:
8394         hardcode_direct=yes
8395         hardcode_direct_absolute=yes
8396         export_dynamic_flag_spec='${wl}-E'
8397         # hardcode_minus_L: Not really in the search PATH,
8398         # but as the default location of the library.
8399         hardcode_minus_L=yes
8400       fi
8401       ;;
8402
8403     hpux11*)
8404       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8405         case $host_cpu in
8406         hppa*64*)
8407           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8408           ;;
8409         ia64*)
8410           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8411           ;;
8412         *)
8413           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8414           ;;
8415         esac
8416       else
8417         case $host_cpu in
8418         hppa*64*)
8419           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8420           ;;
8421         ia64*)
8422           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8423           ;;
8424         *)
8425
8426           # Older versions of the 11.00 compiler do not understand -b yet
8427           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8428           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8429 $as_echo_n "checking if $CC understands -b... " >&6; }
8430 if ${lt_cv_prog_compiler__b+:} false; then :
8431   $as_echo_n "(cached) " >&6
8432 else
8433   lt_cv_prog_compiler__b=no
8434    save_LDFLAGS="$LDFLAGS"
8435    LDFLAGS="$LDFLAGS -b"
8436    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8437    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8438      # The linker can only warn and ignore the option if not recognized
8439      # So say no if there are warnings
8440      if test -s conftest.err; then
8441        # Append any errors to the config.log.
8442        cat conftest.err 1>&5
8443        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8444        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8445        if diff conftest.exp conftest.er2 >/dev/null; then
8446          lt_cv_prog_compiler__b=yes
8447        fi
8448      else
8449        lt_cv_prog_compiler__b=yes
8450      fi
8451    fi
8452    $RM -r conftest*
8453    LDFLAGS="$save_LDFLAGS"
8454
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8457 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8458
8459 if test x"$lt_cv_prog_compiler__b" = xyes; then
8460     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8461 else
8462     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8463 fi
8464
8465           ;;
8466         esac
8467       fi
8468       if test "$with_gnu_ld" = no; then
8469         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8470         hardcode_libdir_separator=:
8471
8472         case $host_cpu in
8473         hppa*64*|ia64*)
8474           hardcode_direct=no
8475           hardcode_shlibpath_var=no
8476           ;;
8477         *)
8478           hardcode_direct=yes
8479           hardcode_direct_absolute=yes
8480           export_dynamic_flag_spec='${wl}-E'
8481
8482           # hardcode_minus_L: Not really in the search PATH,
8483           # but as the default location of the library.
8484           hardcode_minus_L=yes
8485           ;;
8486         esac
8487       fi
8488       ;;
8489
8490     irix5* | irix6* | nonstopux*)
8491       if test "$GCC" = yes; then
8492         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8493         # Try to use the -exported_symbol ld option, if it does not
8494         # work, assume that -exports_file does not work either and
8495         # implicitly export all symbols.
8496         # This should be the same for all languages, so no per-tag cache variable.
8497         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8498 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8499 if ${lt_cv_irix_exported_symbol+:} false; then :
8500   $as_echo_n "(cached) " >&6
8501 else
8502   save_LDFLAGS="$LDFLAGS"
8503            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8504            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h.  */
8506 int foo (void) { return 0; }
8507 _ACEOF
8508 if ac_fn_c_try_link "$LINENO"; then :
8509   lt_cv_irix_exported_symbol=yes
8510 else
8511   lt_cv_irix_exported_symbol=no
8512 fi
8513 rm -f core conftest.err conftest.$ac_objext \
8514     conftest$ac_exeext conftest.$ac_ext
8515            LDFLAGS="$save_LDFLAGS"
8516 fi
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8518 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
8519         if test "$lt_cv_irix_exported_symbol" = yes; then
8520           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8521         fi
8522       else
8523         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'
8524         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'
8525       fi
8526       archive_cmds_need_lc='no'
8527       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8528       hardcode_libdir_separator=:
8529       inherit_rpath=yes
8530       link_all_deplibs=yes
8531       ;;
8532
8533     netbsd*)
8534       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8535         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8536       else
8537         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8538       fi
8539       hardcode_libdir_flag_spec='-R$libdir'
8540       hardcode_direct=yes
8541       hardcode_shlibpath_var=no
8542       ;;
8543
8544     newsos6)
8545       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8546       hardcode_direct=yes
8547       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8548       hardcode_libdir_separator=:
8549       hardcode_shlibpath_var=no
8550       ;;
8551
8552     *nto* | *qnx*)
8553       ;;
8554
8555     openbsd*)
8556       if test -f /usr/libexec/ld.so; then
8557         hardcode_direct=yes
8558         hardcode_shlibpath_var=no
8559         hardcode_direct_absolute=yes
8560         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8561           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8562           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8563           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8564           export_dynamic_flag_spec='${wl}-E'
8565         else
8566           case $host_os in
8567            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8568              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8569              hardcode_libdir_flag_spec='-R$libdir'
8570              ;;
8571            *)
8572              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8573              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8574              ;;
8575           esac
8576         fi
8577       else
8578         ld_shlibs=no
8579       fi
8580       ;;
8581
8582     os2*)
8583       hardcode_libdir_flag_spec='-L$libdir'
8584       hardcode_minus_L=yes
8585       allow_undefined_flag=unsupported
8586       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'
8587       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8588       ;;
8589
8590     osf3*)
8591       if test "$GCC" = yes; then
8592         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8593         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'
8594       else
8595         allow_undefined_flag=' -expect_unresolved \*'
8596         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'
8597       fi
8598       archive_cmds_need_lc='no'
8599       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8600       hardcode_libdir_separator=:
8601       ;;
8602
8603     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8604       if test "$GCC" = yes; then
8605         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8606         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8607         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8608       else
8609         allow_undefined_flag=' -expect_unresolved \*'
8610         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'
8611         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~
8612         $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'
8613
8614         # Both c and cxx compiler support -rpath directly
8615         hardcode_libdir_flag_spec='-rpath $libdir'
8616       fi
8617       archive_cmds_need_lc='no'
8618       hardcode_libdir_separator=:
8619       ;;
8620
8621     solaris*)
8622       no_undefined_flag=' -z defs'
8623       if test "$GCC" = yes; then
8624         wlarc='${wl}'
8625         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8626         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8627           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8628       else
8629         case `$CC -V 2>&1` in
8630         *"Compilers 5.0"*)
8631           wlarc=''
8632           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8633           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8634           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8635           ;;
8636         *)
8637           wlarc='${wl}'
8638           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8639           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8640           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8641           ;;
8642         esac
8643       fi
8644       hardcode_libdir_flag_spec='-R$libdir'
8645       hardcode_shlibpath_var=no
8646       case $host_os in
8647       solaris2.[0-5] | solaris2.[0-5].*) ;;
8648       *)
8649         # The compiler driver will combine and reorder linker options,
8650         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8651         # but is careful enough not to reorder.
8652         # Supported since Solaris 2.6 (maybe 2.5.1?)
8653         if test "$GCC" = yes; then
8654           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8655         else
8656           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8657         fi
8658         ;;
8659       esac
8660       link_all_deplibs=yes
8661       ;;
8662
8663     sunos4*)
8664       if test "x$host_vendor" = xsequent; then
8665         # Use $CC to link under sequent, because it throws in some extra .o
8666         # files that make .init and .fini sections work.
8667         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8668       else
8669         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8670       fi
8671       hardcode_libdir_flag_spec='-L$libdir'
8672       hardcode_direct=yes
8673       hardcode_minus_L=yes
8674       hardcode_shlibpath_var=no
8675       ;;
8676
8677     sysv4)
8678       case $host_vendor in
8679         sni)
8680           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8681           hardcode_direct=yes # is this really true???
8682         ;;
8683         siemens)
8684           ## LD is ld it makes a PLAMLIB
8685           ## CC just makes a GrossModule.
8686           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8687           reload_cmds='$CC -r -o $output$reload_objs'
8688           hardcode_direct=no
8689         ;;
8690         motorola)
8691           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8692           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8693         ;;
8694       esac
8695       runpath_var='LD_RUN_PATH'
8696       hardcode_shlibpath_var=no
8697       ;;
8698
8699     sysv4.3*)
8700       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8701       hardcode_shlibpath_var=no
8702       export_dynamic_flag_spec='-Bexport'
8703       ;;
8704
8705     sysv4*MP*)
8706       if test -d /usr/nec; then
8707         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8708         hardcode_shlibpath_var=no
8709         runpath_var=LD_RUN_PATH
8710         hardcode_runpath_var=yes
8711         ld_shlibs=yes
8712       fi
8713       ;;
8714
8715     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8716       no_undefined_flag='${wl}-z,text'
8717       archive_cmds_need_lc=no
8718       hardcode_shlibpath_var=no
8719       runpath_var='LD_RUN_PATH'
8720
8721       if test "$GCC" = yes; then
8722         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8723         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8724       else
8725         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8726         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8727       fi
8728       ;;
8729
8730     sysv5* | sco3.2v5* | sco5v6*)
8731       # Note: We can NOT use -z defs as we might desire, because we do not
8732       # link with -lc, and that would cause any symbols used from libc to
8733       # always be unresolved, which means just about no library would
8734       # ever link correctly.  If we're not using GNU ld we use -z text
8735       # though, which does catch some bad symbols but isn't as heavy-handed
8736       # as -z defs.
8737       no_undefined_flag='${wl}-z,text'
8738       allow_undefined_flag='${wl}-z,nodefs'
8739       archive_cmds_need_lc=no
8740       hardcode_shlibpath_var=no
8741       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8742       hardcode_libdir_separator=':'
8743       link_all_deplibs=yes
8744       export_dynamic_flag_spec='${wl}-Bexport'
8745       runpath_var='LD_RUN_PATH'
8746
8747       if test "$GCC" = yes; then
8748         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8749         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8750       else
8751         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8752         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8753       fi
8754       ;;
8755
8756     uts4*)
8757       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8758       hardcode_libdir_flag_spec='-L$libdir'
8759       hardcode_shlibpath_var=no
8760       ;;
8761
8762     *)
8763       ld_shlibs=no
8764       ;;
8765     esac
8766
8767     if test x$host_vendor = xsni; then
8768       case $host in
8769       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8770         export_dynamic_flag_spec='${wl}-Blargedynsym'
8771         ;;
8772       esac
8773     fi
8774   fi
8775
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8777 $as_echo "$ld_shlibs" >&6; }
8778 test "$ld_shlibs" = no && can_build_shared=no
8779
8780 with_gnu_ld=$with_gnu_ld
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796 #
8797 # Do we need to explicitly link libc?
8798 #
8799 case "x$archive_cmds_need_lc" in
8800 x|xyes)
8801   # Assume -lc should be added
8802   archive_cmds_need_lc=yes
8803
8804   if test "$enable_shared" = yes && test "$GCC" = yes; then
8805     case $archive_cmds in
8806     *'~'*)
8807       # FIXME: we may have to deal with multi-command sequences.
8808       ;;
8809     '$CC '*)
8810       # Test whether the compiler implicitly links with -lc since on some
8811       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8812       # to ld, don't add -lc before -lgcc.
8813       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8814 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8815 if ${lt_cv_archive_cmds_need_lc+:} false; then :
8816   $as_echo_n "(cached) " >&6
8817 else
8818   $RM conftest*
8819         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8820
8821         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8822   (eval $ac_compile) 2>&5
8823   ac_status=$?
8824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8825   test $ac_status = 0; } 2>conftest.err; then
8826           soname=conftest
8827           lib=conftest
8828           libobjs=conftest.$ac_objext
8829           deplibs=
8830           wl=$lt_prog_compiler_wl
8831           pic_flag=$lt_prog_compiler_pic
8832           compiler_flags=-v
8833           linker_flags=-v
8834           verstring=
8835           output_objdir=.
8836           libname=conftest
8837           lt_save_allow_undefined_flag=$allow_undefined_flag
8838           allow_undefined_flag=
8839           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8840   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8841   ac_status=$?
8842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8843   test $ac_status = 0; }
8844           then
8845             lt_cv_archive_cmds_need_lc=no
8846           else
8847             lt_cv_archive_cmds_need_lc=yes
8848           fi
8849           allow_undefined_flag=$lt_save_allow_undefined_flag
8850         else
8851           cat conftest.err 1>&5
8852         fi
8853         $RM conftest*
8854
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8857 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8858       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8859       ;;
8860     esac
8861   fi
8862   ;;
8863 esac
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9022 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9023
9024 if test "$GCC" = yes; then
9025   case $host_os in
9026     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9027     *) lt_awk_arg="/^libraries:/" ;;
9028   esac
9029   case $host_os in
9030     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9031     *) lt_sed_strip_eq="s,=/,/,g" ;;
9032   esac
9033   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9034   case $lt_search_path_spec in
9035   *\;*)
9036     # if the path contains ";" then we assume it to be the separator
9037     # otherwise default to the standard path separator (i.e. ":") - it is
9038     # assumed that no part of a normal pathname contains ";" but that should
9039     # okay in the real world where ";" in dirpaths is itself problematic.
9040     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9041     ;;
9042   *)
9043     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9044     ;;
9045   esac
9046   # Ok, now we have the path, separated by spaces, we can step through it
9047   # and add multilib dir if necessary.
9048   lt_tmp_lt_search_path_spec=
9049   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9050   for lt_sys_path in $lt_search_path_spec; do
9051     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9052       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9053     else
9054       test -d "$lt_sys_path" && \
9055         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9056     fi
9057   done
9058   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9059 BEGIN {RS=" "; FS="/|\n";} {
9060   lt_foo="";
9061   lt_count=0;
9062   for (lt_i = NF; lt_i > 0; lt_i--) {
9063     if ($lt_i != "" && $lt_i != ".") {
9064       if ($lt_i == "..") {
9065         lt_count++;
9066       } else {
9067         if (lt_count == 0) {
9068           lt_foo="/" $lt_i lt_foo;
9069         } else {
9070           lt_count--;
9071         }
9072       }
9073     }
9074   }
9075   if (lt_foo != "") { lt_freq[lt_foo]++; }
9076   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9077 }'`
9078   # AWK program above erroneously prepends '/' to C:/dos/paths
9079   # for these hosts.
9080   case $host_os in
9081     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9082       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9083   esac
9084   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9085 else
9086   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9087 fi
9088 library_names_spec=
9089 libname_spec='lib$name'
9090 soname_spec=
9091 shrext_cmds=".so"
9092 postinstall_cmds=
9093 postuninstall_cmds=
9094 finish_cmds=
9095 finish_eval=
9096 shlibpath_var=
9097 shlibpath_overrides_runpath=unknown
9098 version_type=none
9099 dynamic_linker="$host_os ld.so"
9100 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9101 need_lib_prefix=unknown
9102 hardcode_into_libs=no
9103
9104 # when you set need_version to no, make sure it does not cause -set_version
9105 # flags to be left without arguments
9106 need_version=unknown
9107
9108 case $host_os in
9109 aix3*)
9110   version_type=linux
9111   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9112   shlibpath_var=LIBPATH
9113
9114   # AIX 3 has no versioning support, so we append a major version to the name.
9115   soname_spec='${libname}${release}${shared_ext}$major'
9116   ;;
9117
9118 aix[4-9]*)
9119   version_type=linux
9120   need_lib_prefix=no
9121   need_version=no
9122   hardcode_into_libs=yes
9123   if test "$host_cpu" = ia64; then
9124     # AIX 5 supports IA64
9125     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9126     shlibpath_var=LD_LIBRARY_PATH
9127   else
9128     # With GCC up to 2.95.x, collect2 would create an import file
9129     # for dependence libraries.  The import file would start with
9130     # the line `#! .'.  This would cause the generated library to
9131     # depend on `.', always an invalid library.  This was fixed in
9132     # development snapshots of GCC prior to 3.0.
9133     case $host_os in
9134       aix4 | aix4.[01] | aix4.[01].*)
9135       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9136            echo ' yes '
9137            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9138         :
9139       else
9140         can_build_shared=no
9141       fi
9142       ;;
9143     esac
9144     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9145     # soname into executable. Probably we can add versioning support to
9146     # collect2, so additional links can be useful in future.
9147     if test "$aix_use_runtimelinking" = yes; then
9148       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9149       # instead of lib<name>.a to let people know that these are not
9150       # typical AIX shared libraries.
9151       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152     else
9153       # We preserve .a as extension for shared libraries through AIX4.2
9154       # and later when we are not doing run time linking.
9155       library_names_spec='${libname}${release}.a $libname.a'
9156       soname_spec='${libname}${release}${shared_ext}$major'
9157     fi
9158     shlibpath_var=LIBPATH
9159   fi
9160   ;;
9161
9162 amigaos*)
9163   case $host_cpu in
9164   powerpc)
9165     # Since July 2007 AmigaOS4 officially supports .so libraries.
9166     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168     ;;
9169   m68k)
9170     library_names_spec='$libname.ixlibrary $libname.a'
9171     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9172     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'
9173     ;;
9174   esac
9175   ;;
9176
9177 beos*)
9178   library_names_spec='${libname}${shared_ext}'
9179   dynamic_linker="$host_os ld.so"
9180   shlibpath_var=LIBRARY_PATH
9181   ;;
9182
9183 bsdi[45]*)
9184   version_type=linux
9185   need_version=no
9186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187   soname_spec='${libname}${release}${shared_ext}$major'
9188   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9189   shlibpath_var=LD_LIBRARY_PATH
9190   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9191   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9192   # the default ld.so.conf also contains /usr/contrib/lib and
9193   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9194   # libtool to hard-code these into programs
9195   ;;
9196
9197 cygwin* | mingw* | pw32* | cegcc*)
9198   version_type=windows
9199   shrext_cmds=".dll"
9200   need_version=no
9201   need_lib_prefix=no
9202
9203   case $GCC,$cc_basename in
9204   yes,*)
9205     # gcc
9206     library_names_spec='$libname.dll.a'
9207     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9208     postinstall_cmds='base_file=`basename \${file}`~
9209       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9210       dldir=$destdir/`dirname \$dlpath`~
9211       test -d \$dldir || mkdir -p \$dldir~
9212       $install_prog $dir/$dlname \$dldir/$dlname~
9213       chmod a+x \$dldir/$dlname~
9214       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9215         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9216       fi'
9217     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9218       dlpath=$dir/\$dldll~
9219        $RM \$dlpath'
9220     shlibpath_overrides_runpath=yes
9221
9222     case $host_os in
9223     cygwin*)
9224       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9225       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9226
9227       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9228       ;;
9229     mingw* | cegcc*)
9230       # MinGW DLLs use traditional 'lib' prefix
9231       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9232       ;;
9233     pw32*)
9234       # pw32 DLLs use 'pw' prefix rather than 'lib'
9235       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9236       ;;
9237     esac
9238     dynamic_linker='Win32 ld.exe'
9239     ;;
9240
9241   *,cl*)
9242     # Native MSVC
9243     libname_spec='$name'
9244     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9245     library_names_spec='${libname}.dll.lib'
9246
9247     case $build_os in
9248     mingw*)
9249       sys_lib_search_path_spec=
9250       lt_save_ifs=$IFS
9251       IFS=';'
9252       for lt_path in $LIB
9253       do
9254         IFS=$lt_save_ifs
9255         # Let DOS variable expansion print the short 8.3 style file name.
9256         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9257         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9258       done
9259       IFS=$lt_save_ifs
9260       # Convert to MSYS style.
9261       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9262       ;;
9263     cygwin*)
9264       # Convert to unix form, then to dos form, then back to unix form
9265       # but this time dos style (no spaces!) so that the unix form looks
9266       # like /cygdrive/c/PROGRA~1:/cygdr...
9267       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9268       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9269       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9270       ;;
9271     *)
9272       sys_lib_search_path_spec="$LIB"
9273       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9274         # It is most probably a Windows format PATH.
9275         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9276       else
9277         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9278       fi
9279       # FIXME: find the short name or the path components, as spaces are
9280       # common. (e.g. "Program Files" -> "PROGRA~1")
9281       ;;
9282     esac
9283
9284     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9285     postinstall_cmds='base_file=`basename \${file}`~
9286       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9287       dldir=$destdir/`dirname \$dlpath`~
9288       test -d \$dldir || mkdir -p \$dldir~
9289       $install_prog $dir/$dlname \$dldir/$dlname'
9290     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9291       dlpath=$dir/\$dldll~
9292        $RM \$dlpath'
9293     shlibpath_overrides_runpath=yes
9294     dynamic_linker='Win32 link.exe'
9295     ;;
9296
9297   *)
9298     # Assume MSVC wrapper
9299     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9300     dynamic_linker='Win32 ld.exe'
9301     ;;
9302   esac
9303   # FIXME: first we should search . and the directory the executable is in
9304   shlibpath_var=PATH
9305   ;;
9306
9307 darwin* | rhapsody*)
9308   dynamic_linker="$host_os dyld"
9309   version_type=darwin
9310   need_lib_prefix=no
9311   need_version=no
9312   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9313   soname_spec='${libname}${release}${major}$shared_ext'
9314   shlibpath_overrides_runpath=yes
9315   shlibpath_var=DYLD_LIBRARY_PATH
9316   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9317
9318   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9319   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9320   ;;
9321
9322 dgux*)
9323   version_type=linux
9324   need_lib_prefix=no
9325   need_version=no
9326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9327   soname_spec='${libname}${release}${shared_ext}$major'
9328   shlibpath_var=LD_LIBRARY_PATH
9329   ;;
9330
9331 freebsd1*)
9332   dynamic_linker=no
9333   ;;
9334
9335 freebsd* | dragonfly*)
9336   # DragonFly does not have aout.  When/if they implement a new
9337   # versioning mechanism, adjust this.
9338   if test -x /usr/bin/objformat; then
9339     objformat=`/usr/bin/objformat`
9340   else
9341     case $host_os in
9342     freebsd[123]*) objformat=aout ;;
9343     *) objformat=elf ;;
9344     esac
9345   fi
9346   version_type=freebsd-$objformat
9347   case $version_type in
9348     freebsd-elf*)
9349       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9350       need_version=no
9351       need_lib_prefix=no
9352       ;;
9353     freebsd-*)
9354       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9355       need_version=yes
9356       ;;
9357   esac
9358   shlibpath_var=LD_LIBRARY_PATH
9359   case $host_os in
9360   freebsd2*)
9361     shlibpath_overrides_runpath=yes
9362     ;;
9363   freebsd3.[01]* | freebsdelf3.[01]*)
9364     shlibpath_overrides_runpath=yes
9365     hardcode_into_libs=yes
9366     ;;
9367   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9368   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9369     shlibpath_overrides_runpath=no
9370     hardcode_into_libs=yes
9371     ;;
9372   *) # from 4.6 on, and DragonFly
9373     shlibpath_overrides_runpath=yes
9374     hardcode_into_libs=yes
9375     ;;
9376   esac
9377   ;;
9378
9379 gnu*)
9380   version_type=linux
9381   need_lib_prefix=no
9382   need_version=no
9383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9384   soname_spec='${libname}${release}${shared_ext}$major'
9385   shlibpath_var=LD_LIBRARY_PATH
9386   hardcode_into_libs=yes
9387   ;;
9388
9389 haiku*)
9390   version_type=linux
9391   need_lib_prefix=no
9392   need_version=no
9393   dynamic_linker="$host_os runtime_loader"
9394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9395   soname_spec='${libname}${release}${shared_ext}$major'
9396   shlibpath_var=LIBRARY_PATH
9397   shlibpath_overrides_runpath=yes
9398   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9399   hardcode_into_libs=yes
9400   ;;
9401
9402 hpux9* | hpux10* | hpux11*)
9403   # Give a soname corresponding to the major version so that dld.sl refuses to
9404   # link against other versions.
9405   version_type=sunos
9406   need_lib_prefix=no
9407   need_version=no
9408   case $host_cpu in
9409   ia64*)
9410     shrext_cmds='.so'
9411     hardcode_into_libs=yes
9412     dynamic_linker="$host_os dld.so"
9413     shlibpath_var=LD_LIBRARY_PATH
9414     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416     soname_spec='${libname}${release}${shared_ext}$major'
9417     if test "X$HPUX_IA64_MODE" = X32; then
9418       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9419     else
9420       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9421     fi
9422     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9423     ;;
9424   hppa*64*)
9425     shrext_cmds='.sl'
9426     hardcode_into_libs=yes
9427     dynamic_linker="$host_os dld.sl"
9428     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9429     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431     soname_spec='${libname}${release}${shared_ext}$major'
9432     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9433     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9434     ;;
9435   *)
9436     shrext_cmds='.sl'
9437     dynamic_linker="$host_os dld.sl"
9438     shlibpath_var=SHLIB_PATH
9439     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441     soname_spec='${libname}${release}${shared_ext}$major'
9442     ;;
9443   esac
9444   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9445   postinstall_cmds='chmod 555 $lib'
9446   # or fails outright, so override atomically:
9447   install_override_mode=555
9448   ;;
9449
9450 interix[3-9]*)
9451   version_type=linux
9452   need_lib_prefix=no
9453   need_version=no
9454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9455   soname_spec='${libname}${release}${shared_ext}$major'
9456   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9457   shlibpath_var=LD_LIBRARY_PATH
9458   shlibpath_overrides_runpath=no
9459   hardcode_into_libs=yes
9460   ;;
9461
9462 irix5* | irix6* | nonstopux*)
9463   case $host_os in
9464     nonstopux*) version_type=nonstopux ;;
9465     *)
9466         if test "$lt_cv_prog_gnu_ld" = yes; then
9467                 version_type=linux
9468         else
9469                 version_type=irix
9470         fi ;;
9471   esac
9472   need_lib_prefix=no
9473   need_version=no
9474   soname_spec='${libname}${release}${shared_ext}$major'
9475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9476   case $host_os in
9477   irix5* | nonstopux*)
9478     libsuff= shlibsuff=
9479     ;;
9480   *)
9481     case $LD in # libtool.m4 will add one of these switches to LD
9482     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9483       libsuff= shlibsuff= libmagic=32-bit;;
9484     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9485       libsuff=32 shlibsuff=N32 libmagic=N32;;
9486     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9487       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9488     *) libsuff= shlibsuff= libmagic=never-match;;
9489     esac
9490     ;;
9491   esac
9492   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9493   shlibpath_overrides_runpath=no
9494   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9495   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9496   hardcode_into_libs=yes
9497   ;;
9498
9499 # No shared lib support for Linux oldld, aout, or coff.
9500 linux*oldld* | linux*aout* | linux*coff*)
9501   dynamic_linker=no
9502   ;;
9503
9504 # This must be Linux ELF.
9505 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9506   version_type=linux
9507   need_lib_prefix=no
9508   need_version=no
9509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9510   soname_spec='${libname}${release}${shared_ext}$major'
9511   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9512   shlibpath_var=LD_LIBRARY_PATH
9513   shlibpath_overrides_runpath=no
9514
9515   # Some binutils ld are patched to set DT_RUNPATH
9516   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9517   $as_echo_n "(cached) " >&6
9518 else
9519   lt_cv_shlibpath_overrides_runpath=no
9520     save_LDFLAGS=$LDFLAGS
9521     save_libdir=$libdir
9522     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9523          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h.  */
9526
9527 int
9528 main ()
9529 {
9530
9531   ;
9532   return 0;
9533 }
9534 _ACEOF
9535 if ac_fn_c_try_link "$LINENO"; then :
9536   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9537   lt_cv_shlibpath_overrides_runpath=yes
9538 fi
9539 fi
9540 rm -f core conftest.err conftest.$ac_objext \
9541     conftest$ac_exeext conftest.$ac_ext
9542     LDFLAGS=$save_LDFLAGS
9543     libdir=$save_libdir
9544
9545 fi
9546
9547   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9548
9549   # This implies no fast_install, which is unacceptable.
9550   # Some rework will be needed to allow for fast_install
9551   # before this can be enabled.
9552   hardcode_into_libs=yes
9553
9554   # Append ld.so.conf contents to the search path
9555   if test -f /etc/ld.so.conf; then
9556     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' ' '`
9557     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9558   fi
9559
9560   # We used to test for /lib/ld.so.1 and disable shared libraries on
9561   # powerpc, because MkLinux only supported shared libraries with the
9562   # GNU dynamic linker.  Since this was broken with cross compilers,
9563   # most powerpc-linux boxes support dynamic linking these days and
9564   # people can always --disable-shared, the test was removed, and we
9565   # assume the GNU/Linux dynamic linker is in use.
9566   dynamic_linker='GNU/Linux ld.so'
9567   ;;
9568
9569 netbsd*)
9570   version_type=sunos
9571   need_lib_prefix=no
9572   need_version=no
9573   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9575     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9576     dynamic_linker='NetBSD (a.out) ld.so'
9577   else
9578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9579     soname_spec='${libname}${release}${shared_ext}$major'
9580     dynamic_linker='NetBSD ld.elf_so'
9581   fi
9582   shlibpath_var=LD_LIBRARY_PATH
9583   shlibpath_overrides_runpath=yes
9584   hardcode_into_libs=yes
9585   ;;
9586
9587 newsos6)
9588   version_type=linux
9589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590   shlibpath_var=LD_LIBRARY_PATH
9591   shlibpath_overrides_runpath=yes
9592   ;;
9593
9594 *nto* | *qnx*)
9595   version_type=qnx
9596   need_lib_prefix=no
9597   need_version=no
9598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599   soname_spec='${libname}${release}${shared_ext}$major'
9600   shlibpath_var=LD_LIBRARY_PATH
9601   shlibpath_overrides_runpath=no
9602   hardcode_into_libs=yes
9603   dynamic_linker='ldqnx.so'
9604   ;;
9605
9606 openbsd*)
9607   version_type=sunos
9608   sys_lib_dlsearch_path_spec="/usr/lib"
9609   need_lib_prefix=no
9610   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9611   case $host_os in
9612     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9613     *)                          need_version=no  ;;
9614   esac
9615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9616   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9617   shlibpath_var=LD_LIBRARY_PATH
9618   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9619     case $host_os in
9620       openbsd2.[89] | openbsd2.[89].*)
9621         shlibpath_overrides_runpath=no
9622         ;;
9623       *)
9624         shlibpath_overrides_runpath=yes
9625         ;;
9626       esac
9627   else
9628     shlibpath_overrides_runpath=yes
9629   fi
9630   ;;
9631
9632 os2*)
9633   libname_spec='$name'
9634   shrext_cmds=".dll"
9635   need_lib_prefix=no
9636   library_names_spec='$libname${shared_ext} $libname.a'
9637   dynamic_linker='OS/2 ld.exe'
9638   shlibpath_var=LIBPATH
9639   ;;
9640
9641 osf3* | osf4* | osf5*)
9642   version_type=osf
9643   need_lib_prefix=no
9644   need_version=no
9645   soname_spec='${libname}${release}${shared_ext}$major'
9646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9647   shlibpath_var=LD_LIBRARY_PATH
9648   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9649   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9650   ;;
9651
9652 rdos*)
9653   dynamic_linker=no
9654   ;;
9655
9656 solaris*)
9657   version_type=linux
9658   need_lib_prefix=no
9659   need_version=no
9660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661   soname_spec='${libname}${release}${shared_ext}$major'
9662   shlibpath_var=LD_LIBRARY_PATH
9663   shlibpath_overrides_runpath=yes
9664   hardcode_into_libs=yes
9665   # ldd complains unless libraries are executable
9666   postinstall_cmds='chmod +x $lib'
9667   ;;
9668
9669 sunos4*)
9670   version_type=sunos
9671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9672   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9673   shlibpath_var=LD_LIBRARY_PATH
9674   shlibpath_overrides_runpath=yes
9675   if test "$with_gnu_ld" = yes; then
9676     need_lib_prefix=no
9677   fi
9678   need_version=yes
9679   ;;
9680
9681 sysv4 | sysv4.3*)
9682   version_type=linux
9683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684   soname_spec='${libname}${release}${shared_ext}$major'
9685   shlibpath_var=LD_LIBRARY_PATH
9686   case $host_vendor in
9687     sni)
9688       shlibpath_overrides_runpath=no
9689       need_lib_prefix=no
9690       runpath_var=LD_RUN_PATH
9691       ;;
9692     siemens)
9693       need_lib_prefix=no
9694       ;;
9695     motorola)
9696       need_lib_prefix=no
9697       need_version=no
9698       shlibpath_overrides_runpath=no
9699       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9700       ;;
9701   esac
9702   ;;
9703
9704 sysv4*MP*)
9705   if test -d /usr/nec ;then
9706     version_type=linux
9707     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9708     soname_spec='$libname${shared_ext}.$major'
9709     shlibpath_var=LD_LIBRARY_PATH
9710   fi
9711   ;;
9712
9713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9714   version_type=freebsd-elf
9715   need_lib_prefix=no
9716   need_version=no
9717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9718   soname_spec='${libname}${release}${shared_ext}$major'
9719   shlibpath_var=LD_LIBRARY_PATH
9720   shlibpath_overrides_runpath=yes
9721   hardcode_into_libs=yes
9722   if test "$with_gnu_ld" = yes; then
9723     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9724   else
9725     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9726     case $host_os in
9727       sco3.2v5*)
9728         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9729         ;;
9730     esac
9731   fi
9732   sys_lib_dlsearch_path_spec='/usr/lib'
9733   ;;
9734
9735 tpf*)
9736   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9737   version_type=linux
9738   need_lib_prefix=no
9739   need_version=no
9740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741   shlibpath_var=LD_LIBRARY_PATH
9742   shlibpath_overrides_runpath=no
9743   hardcode_into_libs=yes
9744   ;;
9745
9746 uts4*)
9747   version_type=linux
9748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749   soname_spec='${libname}${release}${shared_ext}$major'
9750   shlibpath_var=LD_LIBRARY_PATH
9751   ;;
9752
9753 *)
9754   dynamic_linker=no
9755   ;;
9756 esac
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9758 $as_echo "$dynamic_linker" >&6; }
9759 test "$dynamic_linker" = no && can_build_shared=no
9760
9761 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9762 if test "$GCC" = yes; then
9763   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9764 fi
9765
9766 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9767   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9768 fi
9769 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9770   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9771 fi
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9865 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9866 hardcode_action=
9867 if test -n "$hardcode_libdir_flag_spec" ||
9868    test -n "$runpath_var" ||
9869    test "X$hardcode_automatic" = "Xyes" ; then
9870
9871   # We can hardcode non-existent directories.
9872   if test "$hardcode_direct" != no &&
9873      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9874      # have to relink, otherwise we might link with an installed library
9875      # when we should be linking with a yet-to-be-installed one
9876      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9877      test "$hardcode_minus_L" != no; then
9878     # Linking always hardcodes the temporary library directory.
9879     hardcode_action=relink
9880   else
9881     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9882     hardcode_action=immediate
9883   fi
9884 else
9885   # We cannot hardcode anything, or else we can only hardcode existing
9886   # directories.
9887   hardcode_action=unsupported
9888 fi
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9890 $as_echo "$hardcode_action" >&6; }
9891
9892 if test "$hardcode_action" = relink ||
9893    test "$inherit_rpath" = yes; then
9894   # Fast installation is not supported
9895   enable_fast_install=no
9896 elif test "$shlibpath_overrides_runpath" = yes ||
9897      test "$enable_shared" = no; then
9898   # Fast installation is not necessary
9899   enable_fast_install=needless
9900 fi
9901
9902
9903
9904
9905
9906
9907   if test "x$enable_dlopen" != xyes; then
9908   enable_dlopen=unknown
9909   enable_dlopen_self=unknown
9910   enable_dlopen_self_static=unknown
9911 else
9912   lt_cv_dlopen=no
9913   lt_cv_dlopen_libs=
9914
9915   case $host_os in
9916   beos*)
9917     lt_cv_dlopen="load_add_on"
9918     lt_cv_dlopen_libs=
9919     lt_cv_dlopen_self=yes
9920     ;;
9921
9922   mingw* | pw32* | cegcc*)
9923     lt_cv_dlopen="LoadLibrary"
9924     lt_cv_dlopen_libs=
9925     ;;
9926
9927   cygwin*)
9928     lt_cv_dlopen="dlopen"
9929     lt_cv_dlopen_libs=
9930     ;;
9931
9932   darwin*)
9933   # if libdl is installed we need to link against it
9934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9935 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9936 if ${ac_cv_lib_dl_dlopen+:} false; then :
9937   $as_echo_n "(cached) " >&6
9938 else
9939   ac_check_lib_save_LIBS=$LIBS
9940 LIBS="-ldl  $LIBS"
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h.  */
9943
9944 /* Override any GCC internal prototype to avoid an error.
9945    Use char because int might match the return type of a GCC
9946    builtin and then its argument prototype would still apply.  */
9947 #ifdef __cplusplus
9948 extern "C"
9949 #endif
9950 char dlopen ();
9951 int
9952 main ()
9953 {
9954 return dlopen ();
9955   ;
9956   return 0;
9957 }
9958 _ACEOF
9959 if ac_fn_c_try_link "$LINENO"; then :
9960   ac_cv_lib_dl_dlopen=yes
9961 else
9962   ac_cv_lib_dl_dlopen=no
9963 fi
9964 rm -f core conftest.err conftest.$ac_objext \
9965     conftest$ac_exeext conftest.$ac_ext
9966 LIBS=$ac_check_lib_save_LIBS
9967 fi
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9969 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9970 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9971   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9972 else
9973
9974     lt_cv_dlopen="dyld"
9975     lt_cv_dlopen_libs=
9976     lt_cv_dlopen_self=yes
9977
9978 fi
9979
9980     ;;
9981
9982   *)
9983     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9984 if test "x$ac_cv_func_shl_load" = xyes; then :
9985   lt_cv_dlopen="shl_load"
9986 else
9987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9988 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9989 if ${ac_cv_lib_dld_shl_load+:} false; then :
9990   $as_echo_n "(cached) " >&6
9991 else
9992   ac_check_lib_save_LIBS=$LIBS
9993 LIBS="-ldld  $LIBS"
9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h.  */
9996
9997 /* Override any GCC internal prototype to avoid an error.
9998    Use char because int might match the return type of a GCC
9999    builtin and then its argument prototype would still apply.  */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 char shl_load ();
10004 int
10005 main ()
10006 {
10007 return shl_load ();
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 if ac_fn_c_try_link "$LINENO"; then :
10013   ac_cv_lib_dld_shl_load=yes
10014 else
10015   ac_cv_lib_dld_shl_load=no
10016 fi
10017 rm -f core conftest.err conftest.$ac_objext \
10018     conftest$ac_exeext conftest.$ac_ext
10019 LIBS=$ac_check_lib_save_LIBS
10020 fi
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10022 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10023 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10024   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10025 else
10026   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10027 if test "x$ac_cv_func_dlopen" = xyes; then :
10028   lt_cv_dlopen="dlopen"
10029 else
10030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10031 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10032 if ${ac_cv_lib_dl_dlopen+:} false; then :
10033   $as_echo_n "(cached) " >&6
10034 else
10035   ac_check_lib_save_LIBS=$LIBS
10036 LIBS="-ldl  $LIBS"
10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h.  */
10039
10040 /* Override any GCC internal prototype to avoid an error.
10041    Use char because int might match the return type of a GCC
10042    builtin and then its argument prototype would still apply.  */
10043 #ifdef __cplusplus
10044 extern "C"
10045 #endif
10046 char dlopen ();
10047 int
10048 main ()
10049 {
10050 return dlopen ();
10051   ;
10052   return 0;
10053 }
10054 _ACEOF
10055 if ac_fn_c_try_link "$LINENO"; then :
10056   ac_cv_lib_dl_dlopen=yes
10057 else
10058   ac_cv_lib_dl_dlopen=no
10059 fi
10060 rm -f core conftest.err conftest.$ac_objext \
10061     conftest$ac_exeext conftest.$ac_ext
10062 LIBS=$ac_check_lib_save_LIBS
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10065 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10066 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10067   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10068 else
10069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10070 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10071 if ${ac_cv_lib_svld_dlopen+:} false; then :
10072   $as_echo_n "(cached) " >&6
10073 else
10074   ac_check_lib_save_LIBS=$LIBS
10075 LIBS="-lsvld  $LIBS"
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h.  */
10078
10079 /* Override any GCC internal prototype to avoid an error.
10080    Use char because int might match the return type of a GCC
10081    builtin and then its argument prototype would still apply.  */
10082 #ifdef __cplusplus
10083 extern "C"
10084 #endif
10085 char dlopen ();
10086 int
10087 main ()
10088 {
10089 return dlopen ();
10090   ;
10091   return 0;
10092 }
10093 _ACEOF
10094 if ac_fn_c_try_link "$LINENO"; then :
10095   ac_cv_lib_svld_dlopen=yes
10096 else
10097   ac_cv_lib_svld_dlopen=no
10098 fi
10099 rm -f core conftest.err conftest.$ac_objext \
10100     conftest$ac_exeext conftest.$ac_ext
10101 LIBS=$ac_check_lib_save_LIBS
10102 fi
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10104 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10105 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10106   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10107 else
10108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10109 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10110 if ${ac_cv_lib_dld_dld_link+:} false; then :
10111   $as_echo_n "(cached) " >&6
10112 else
10113   ac_check_lib_save_LIBS=$LIBS
10114 LIBS="-ldld  $LIBS"
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h.  */
10117
10118 /* Override any GCC internal prototype to avoid an error.
10119    Use char because int might match the return type of a GCC
10120    builtin and then its argument prototype would still apply.  */
10121 #ifdef __cplusplus
10122 extern "C"
10123 #endif
10124 char dld_link ();
10125 int
10126 main ()
10127 {
10128 return dld_link ();
10129   ;
10130   return 0;
10131 }
10132 _ACEOF
10133 if ac_fn_c_try_link "$LINENO"; then :
10134   ac_cv_lib_dld_dld_link=yes
10135 else
10136   ac_cv_lib_dld_dld_link=no
10137 fi
10138 rm -f core conftest.err conftest.$ac_objext \
10139     conftest$ac_exeext conftest.$ac_ext
10140 LIBS=$ac_check_lib_save_LIBS
10141 fi
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10143 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10144 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10145   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10146 fi
10147
10148
10149 fi
10150
10151
10152 fi
10153
10154
10155 fi
10156
10157
10158 fi
10159
10160
10161 fi
10162
10163     ;;
10164   esac
10165
10166   if test "x$lt_cv_dlopen" != xno; then
10167     enable_dlopen=yes
10168   else
10169     enable_dlopen=no
10170   fi
10171
10172   case $lt_cv_dlopen in
10173   dlopen)
10174     save_CPPFLAGS="$CPPFLAGS"
10175     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10176
10177     save_LDFLAGS="$LDFLAGS"
10178     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10179
10180     save_LIBS="$LIBS"
10181     LIBS="$lt_cv_dlopen_libs $LIBS"
10182
10183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10184 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10185 if ${lt_cv_dlopen_self+:} false; then :
10186   $as_echo_n "(cached) " >&6
10187 else
10188           if test "$cross_compiling" = yes; then :
10189   lt_cv_dlopen_self=cross
10190 else
10191   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10192   lt_status=$lt_dlunknown
10193   cat > conftest.$ac_ext <<_LT_EOF
10194 #line $LINENO "configure"
10195 #include "confdefs.h"
10196
10197 #if HAVE_DLFCN_H
10198 #include <dlfcn.h>
10199 #endif
10200
10201 #include <stdio.h>
10202
10203 #ifdef RTLD_GLOBAL
10204 #  define LT_DLGLOBAL           RTLD_GLOBAL
10205 #else
10206 #  ifdef DL_GLOBAL
10207 #    define LT_DLGLOBAL         DL_GLOBAL
10208 #  else
10209 #    define LT_DLGLOBAL         0
10210 #  endif
10211 #endif
10212
10213 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10214    find out it does not work in some platform. */
10215 #ifndef LT_DLLAZY_OR_NOW
10216 #  ifdef RTLD_LAZY
10217 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10218 #  else
10219 #    ifdef DL_LAZY
10220 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10221 #    else
10222 #      ifdef RTLD_NOW
10223 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10224 #      else
10225 #        ifdef DL_NOW
10226 #          define LT_DLLAZY_OR_NOW      DL_NOW
10227 #        else
10228 #          define LT_DLLAZY_OR_NOW      0
10229 #        endif
10230 #      endif
10231 #    endif
10232 #  endif
10233 #endif
10234
10235 /* When -fvisbility=hidden is used, assume the code has been annotated
10236    correspondingly for the symbols needed.  */
10237 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10238 int fnord () __attribute__((visibility("default")));
10239 #endif
10240
10241 int fnord () { return 42; }
10242 int main ()
10243 {
10244   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10245   int status = $lt_dlunknown;
10246
10247   if (self)
10248     {
10249       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10250       else
10251         {
10252           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10253           else puts (dlerror ());
10254         }
10255       /* dlclose (self); */
10256     }
10257   else
10258     puts (dlerror ());
10259
10260   return status;
10261 }
10262 _LT_EOF
10263   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10264   (eval $ac_link) 2>&5
10265   ac_status=$?
10266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10267   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10268     (./conftest; exit; ) >&5 2>/dev/null
10269     lt_status=$?
10270     case x$lt_status in
10271       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10272       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10273       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10274     esac
10275   else :
10276     # compilation failed
10277     lt_cv_dlopen_self=no
10278   fi
10279 fi
10280 rm -fr conftest*
10281
10282
10283 fi
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10285 $as_echo "$lt_cv_dlopen_self" >&6; }
10286
10287     if test "x$lt_cv_dlopen_self" = xyes; then
10288       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10289       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10290 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10291 if ${lt_cv_dlopen_self_static+:} false; then :
10292   $as_echo_n "(cached) " >&6
10293 else
10294           if test "$cross_compiling" = yes; then :
10295   lt_cv_dlopen_self_static=cross
10296 else
10297   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10298   lt_status=$lt_dlunknown
10299   cat > conftest.$ac_ext <<_LT_EOF
10300 #line $LINENO "configure"
10301 #include "confdefs.h"
10302
10303 #if HAVE_DLFCN_H
10304 #include <dlfcn.h>
10305 #endif
10306
10307 #include <stdio.h>
10308
10309 #ifdef RTLD_GLOBAL
10310 #  define LT_DLGLOBAL           RTLD_GLOBAL
10311 #else
10312 #  ifdef DL_GLOBAL
10313 #    define LT_DLGLOBAL         DL_GLOBAL
10314 #  else
10315 #    define LT_DLGLOBAL         0
10316 #  endif
10317 #endif
10318
10319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10320    find out it does not work in some platform. */
10321 #ifndef LT_DLLAZY_OR_NOW
10322 #  ifdef RTLD_LAZY
10323 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10324 #  else
10325 #    ifdef DL_LAZY
10326 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10327 #    else
10328 #      ifdef RTLD_NOW
10329 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10330 #      else
10331 #        ifdef DL_NOW
10332 #          define LT_DLLAZY_OR_NOW      DL_NOW
10333 #        else
10334 #          define LT_DLLAZY_OR_NOW      0
10335 #        endif
10336 #      endif
10337 #    endif
10338 #  endif
10339 #endif
10340
10341 /* When -fvisbility=hidden is used, assume the code has been annotated
10342    correspondingly for the symbols needed.  */
10343 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10344 int fnord () __attribute__((visibility("default")));
10345 #endif
10346
10347 int fnord () { return 42; }
10348 int main ()
10349 {
10350   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10351   int status = $lt_dlunknown;
10352
10353   if (self)
10354     {
10355       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10356       else
10357         {
10358           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10359           else puts (dlerror ());
10360         }
10361       /* dlclose (self); */
10362     }
10363   else
10364     puts (dlerror ());
10365
10366   return status;
10367 }
10368 _LT_EOF
10369   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10370   (eval $ac_link) 2>&5
10371   ac_status=$?
10372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10373   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10374     (./conftest; exit; ) >&5 2>/dev/null
10375     lt_status=$?
10376     case x$lt_status in
10377       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10378       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10379       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10380     esac
10381   else :
10382     # compilation failed
10383     lt_cv_dlopen_self_static=no
10384   fi
10385 fi
10386 rm -fr conftest*
10387
10388
10389 fi
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10391 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10392     fi
10393
10394     CPPFLAGS="$save_CPPFLAGS"
10395     LDFLAGS="$save_LDFLAGS"
10396     LIBS="$save_LIBS"
10397     ;;
10398   esac
10399
10400   case $lt_cv_dlopen_self in
10401   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10402   *) enable_dlopen_self=unknown ;;
10403   esac
10404
10405   case $lt_cv_dlopen_self_static in
10406   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10407   *) enable_dlopen_self_static=unknown ;;
10408   esac
10409 fi
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427 striplib=
10428 old_striplib=
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10430 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10431 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10432   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10433   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10435 $as_echo "yes" >&6; }
10436 else
10437 # FIXME - insert some real tests, host_os isn't really good enough
10438   case $host_os in
10439   darwin*)
10440     if test -n "$STRIP" ; then
10441       striplib="$STRIP -x"
10442       old_striplib="$STRIP -S"
10443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10444 $as_echo "yes" >&6; }
10445     else
10446       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447 $as_echo "no" >&6; }
10448     fi
10449     ;;
10450   *)
10451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452 $as_echo "no" >&6; }
10453     ;;
10454   esac
10455 fi
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468   # Report which library types will actually be built
10469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10470 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10472 $as_echo "$can_build_shared" >&6; }
10473
10474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10475 $as_echo_n "checking whether to build shared libraries... " >&6; }
10476   test "$can_build_shared" = "no" && enable_shared=no
10477
10478   # On AIX, shared libraries and static libraries use the same namespace, and
10479   # are all built from PIC.
10480   case $host_os in
10481   aix3*)
10482     test "$enable_shared" = yes && enable_static=no
10483     if test -n "$RANLIB"; then
10484       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10485       postinstall_cmds='$RANLIB $lib'
10486     fi
10487     ;;
10488
10489   aix[4-9]*)
10490     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10491       test "$enable_shared" = yes && enable_static=no
10492     fi
10493     ;;
10494   esac
10495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10496 $as_echo "$enable_shared" >&6; }
10497
10498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10499 $as_echo_n "checking whether to build static libraries... " >&6; }
10500   # Make sure either enable_shared or enable_static is yes.
10501   test "$enable_shared" = yes || enable_static=yes
10502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10503 $as_echo "$enable_static" >&6; }
10504
10505
10506
10507
10508 fi
10509 ac_ext=c
10510 ac_cpp='$CPP $CPPFLAGS'
10511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10514
10515 CC="$lt_save_CC"
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529         ac_config_commands="$ac_config_commands libtool"
10530
10531
10532
10533
10534 # Only expand once:
10535
10536
10537
10538 # Check whether --enable-shared was given.
10539 if test "${enable_shared+set}" = set; then :
10540   enableval=$enable_shared;
10541 else
10542   enable_shared=yes
10543 fi
10544
10545
10546
10547 # Check whether --enable-gettext was given.
10548 if test "${enable_gettext+set}" = set; then :
10549   enableval=$enable_gettext;
10550 else
10551   enable_gettext=yes
10552 fi
10553
10554
10555
10556 # Check whether --enable-lib64 was given.
10557 if test "${enable_lib64+set}" = set; then :
10558   enableval=$enable_lib64;
10559 else
10560   enable_lib64=no
10561 fi
10562
10563
10564
10565  pkg_name="attr"
10566
10567
10568     ac_ext=c
10569 ac_cpp='$CPP $CPPFLAGS'
10570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10573 if test -n "$ac_tool_prefix"; then
10574   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10575 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10577 $as_echo_n "checking for $ac_word... " >&6; }
10578 if ${ac_cv_prog_CC+:} false; then :
10579   $as_echo_n "(cached) " >&6
10580 else
10581   if test -n "$CC"; then
10582   ac_cv_prog_CC="$CC" # Let the user override the test.
10583 else
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585 for as_dir in $PATH
10586 do
10587   IFS=$as_save_IFS
10588   test -z "$as_dir" && as_dir=.
10589     for ac_exec_ext in '' $ac_executable_extensions; do
10590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10591     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10593     break 2
10594   fi
10595 done
10596   done
10597 IFS=$as_save_IFS
10598
10599 fi
10600 fi
10601 CC=$ac_cv_prog_CC
10602 if test -n "$CC"; then
10603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10604 $as_echo "$CC" >&6; }
10605 else
10606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10608 fi
10609
10610
10611 fi
10612 if test -z "$ac_cv_prog_CC"; then
10613   ac_ct_CC=$CC
10614   # Extract the first word of "gcc", so it can be a program name with args.
10615 set dummy gcc; ac_word=$2
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617 $as_echo_n "checking for $ac_word... " >&6; }
10618 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10619   $as_echo_n "(cached) " >&6
10620 else
10621   if test -n "$ac_ct_CC"; then
10622   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10623 else
10624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10626 do
10627   IFS=$as_save_IFS
10628   test -z "$as_dir" && as_dir=.
10629     for ac_exec_ext in '' $ac_executable_extensions; do
10630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10631     ac_cv_prog_ac_ct_CC="gcc"
10632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10633     break 2
10634   fi
10635 done
10636   done
10637 IFS=$as_save_IFS
10638
10639 fi
10640 fi
10641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10642 if test -n "$ac_ct_CC"; then
10643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10644 $as_echo "$ac_ct_CC" >&6; }
10645 else
10646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647 $as_echo "no" >&6; }
10648 fi
10649
10650   if test "x$ac_ct_CC" = x; then
10651     CC=""
10652   else
10653     case $cross_compiling:$ac_tool_warned in
10654 yes:)
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10657 ac_tool_warned=yes ;;
10658 esac
10659     CC=$ac_ct_CC
10660   fi
10661 else
10662   CC="$ac_cv_prog_CC"
10663 fi
10664
10665 if test -z "$CC"; then
10666           if test -n "$ac_tool_prefix"; then
10667     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10668 set dummy ${ac_tool_prefix}cc; ac_word=$2
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670 $as_echo_n "checking for $ac_word... " >&6; }
10671 if ${ac_cv_prog_CC+:} false; then :
10672   $as_echo_n "(cached) " >&6
10673 else
10674   if test -n "$CC"; then
10675   ac_cv_prog_CC="$CC" # Let the user override the test.
10676 else
10677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678 for as_dir in $PATH
10679 do
10680   IFS=$as_save_IFS
10681   test -z "$as_dir" && as_dir=.
10682     for ac_exec_ext in '' $ac_executable_extensions; do
10683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10684     ac_cv_prog_CC="${ac_tool_prefix}cc"
10685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10686     break 2
10687   fi
10688 done
10689   done
10690 IFS=$as_save_IFS
10691
10692 fi
10693 fi
10694 CC=$ac_cv_prog_CC
10695 if test -n "$CC"; then
10696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10697 $as_echo "$CC" >&6; }
10698 else
10699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10701 fi
10702
10703
10704   fi
10705 fi
10706 if test -z "$CC"; then
10707   # Extract the first word of "cc", so it can be a program name with args.
10708 set dummy cc; ac_word=$2
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10710 $as_echo_n "checking for $ac_word... " >&6; }
10711 if ${ac_cv_prog_CC+:} false; then :
10712   $as_echo_n "(cached) " >&6
10713 else
10714   if test -n "$CC"; then
10715   ac_cv_prog_CC="$CC" # Let the user override the test.
10716 else
10717   ac_prog_rejected=no
10718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719 for as_dir in $PATH
10720 do
10721   IFS=$as_save_IFS
10722   test -z "$as_dir" && as_dir=.
10723     for ac_exec_ext in '' $ac_executable_extensions; do
10724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10725     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10726        ac_prog_rejected=yes
10727        continue
10728      fi
10729     ac_cv_prog_CC="cc"
10730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731     break 2
10732   fi
10733 done
10734   done
10735 IFS=$as_save_IFS
10736
10737 if test $ac_prog_rejected = yes; then
10738   # We found a bogon in the path, so make sure we never use it.
10739   set dummy $ac_cv_prog_CC
10740   shift
10741   if test $# != 0; then
10742     # We chose a different compiler from the bogus one.
10743     # However, it has the same basename, so the bogon will be chosen
10744     # first if we set CC to just the basename; use the full file name.
10745     shift
10746     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10747   fi
10748 fi
10749 fi
10750 fi
10751 CC=$ac_cv_prog_CC
10752 if test -n "$CC"; then
10753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10754 $as_echo "$CC" >&6; }
10755 else
10756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10757 $as_echo "no" >&6; }
10758 fi
10759
10760
10761 fi
10762 if test -z "$CC"; then
10763   if test -n "$ac_tool_prefix"; then
10764   for ac_prog in cl.exe
10765   do
10766     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10769 $as_echo_n "checking for $ac_word... " >&6; }
10770 if ${ac_cv_prog_CC+:} false; then :
10771   $as_echo_n "(cached) " >&6
10772 else
10773   if test -n "$CC"; then
10774   ac_cv_prog_CC="$CC" # Let the user override the test.
10775 else
10776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777 for as_dir in $PATH
10778 do
10779   IFS=$as_save_IFS
10780   test -z "$as_dir" && as_dir=.
10781     for ac_exec_ext in '' $ac_executable_extensions; do
10782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10783     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10785     break 2
10786   fi
10787 done
10788   done
10789 IFS=$as_save_IFS
10790
10791 fi
10792 fi
10793 CC=$ac_cv_prog_CC
10794 if test -n "$CC"; then
10795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10796 $as_echo "$CC" >&6; }
10797 else
10798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10799 $as_echo "no" >&6; }
10800 fi
10801
10802
10803     test -n "$CC" && break
10804   done
10805 fi
10806 if test -z "$CC"; then
10807   ac_ct_CC=$CC
10808   for ac_prog in cl.exe
10809 do
10810   # Extract the first word of "$ac_prog", so it can be a program name with args.
10811 set dummy $ac_prog; ac_word=$2
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10813 $as_echo_n "checking for $ac_word... " >&6; }
10814 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10815   $as_echo_n "(cached) " >&6
10816 else
10817   if test -n "$ac_ct_CC"; then
10818   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10819 else
10820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10821 for as_dir in $PATH
10822 do
10823   IFS=$as_save_IFS
10824   test -z "$as_dir" && as_dir=.
10825     for ac_exec_ext in '' $ac_executable_extensions; do
10826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10827     ac_cv_prog_ac_ct_CC="$ac_prog"
10828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10829     break 2
10830   fi
10831 done
10832   done
10833 IFS=$as_save_IFS
10834
10835 fi
10836 fi
10837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10838 if test -n "$ac_ct_CC"; then
10839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10840 $as_echo "$ac_ct_CC" >&6; }
10841 else
10842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843 $as_echo "no" >&6; }
10844 fi
10845
10846
10847   test -n "$ac_ct_CC" && break
10848 done
10849
10850   if test "x$ac_ct_CC" = x; then
10851     CC=""
10852   else
10853     case $cross_compiling:$ac_tool_warned in
10854 yes:)
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10857 ac_tool_warned=yes ;;
10858 esac
10859     CC=$ac_ct_CC
10860   fi
10861 fi
10862
10863 fi
10864
10865
10866 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10868 as_fn_error $? "no acceptable C compiler found in \$PATH
10869 See \`config.log' for more details" "$LINENO" 5; }
10870
10871 # Provide some information about the compiler.
10872 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10873 set X $ac_compile
10874 ac_compiler=$2
10875 for ac_option in --version -v -V -qversion; do
10876   { { ac_try="$ac_compiler $ac_option >&5"
10877 case "(($ac_try" in
10878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879   *) ac_try_echo=$ac_try;;
10880 esac
10881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10882 $as_echo "$ac_try_echo"; } >&5
10883   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10884   ac_status=$?
10885   if test -s conftest.err; then
10886     sed '10a\
10887 ... rest of stderr output deleted ...
10888          10q' conftest.err >conftest.er1
10889     cat conftest.er1 >&5
10890   fi
10891   rm -f conftest.er1 conftest.err
10892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10893   test $ac_status = 0; }
10894 done
10895
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10897 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10898 if ${ac_cv_c_compiler_gnu+:} false; then :
10899   $as_echo_n "(cached) " >&6
10900 else
10901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h.  */
10903
10904 int
10905 main ()
10906 {
10907 #ifndef __GNUC__
10908        choke me
10909 #endif
10910
10911   ;
10912   return 0;
10913 }
10914 _ACEOF
10915 if ac_fn_c_try_compile "$LINENO"; then :
10916   ac_compiler_gnu=yes
10917 else
10918   ac_compiler_gnu=no
10919 fi
10920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10921 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10922
10923 fi
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10925 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10926 if test $ac_compiler_gnu = yes; then
10927   GCC=yes
10928 else
10929   GCC=
10930 fi
10931 ac_test_CFLAGS=${CFLAGS+set}
10932 ac_save_CFLAGS=$CFLAGS
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10934 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10935 if ${ac_cv_prog_cc_g+:} false; then :
10936   $as_echo_n "(cached) " >&6
10937 else
10938   ac_save_c_werror_flag=$ac_c_werror_flag
10939    ac_c_werror_flag=yes
10940    ac_cv_prog_cc_g=no
10941    CFLAGS="-g"
10942    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h.  */
10944
10945 int
10946 main ()
10947 {
10948
10949   ;
10950   return 0;
10951 }
10952 _ACEOF
10953 if ac_fn_c_try_compile "$LINENO"; then :
10954   ac_cv_prog_cc_g=yes
10955 else
10956   CFLAGS=""
10957       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h.  */
10959
10960 int
10961 main ()
10962 {
10963
10964   ;
10965   return 0;
10966 }
10967 _ACEOF
10968 if ac_fn_c_try_compile "$LINENO"; then :
10969
10970 else
10971   ac_c_werror_flag=$ac_save_c_werror_flag
10972          CFLAGS="-g"
10973          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h.  */
10975
10976 int
10977 main ()
10978 {
10979
10980   ;
10981   return 0;
10982 }
10983 _ACEOF
10984 if ac_fn_c_try_compile "$LINENO"; then :
10985   ac_cv_prog_cc_g=yes
10986 fi
10987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10988 fi
10989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10990 fi
10991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10992    ac_c_werror_flag=$ac_save_c_werror_flag
10993 fi
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10995 $as_echo "$ac_cv_prog_cc_g" >&6; }
10996 if test "$ac_test_CFLAGS" = set; then
10997   CFLAGS=$ac_save_CFLAGS
10998 elif test $ac_cv_prog_cc_g = yes; then
10999   if test "$GCC" = yes; then
11000     CFLAGS="-g -O2"
11001   else
11002     CFLAGS="-g"
11003   fi
11004 else
11005   if test "$GCC" = yes; then
11006     CFLAGS="-O2"
11007   else
11008     CFLAGS=
11009   fi
11010 fi
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11012 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11013 if ${ac_cv_prog_cc_c89+:} false; then :
11014   $as_echo_n "(cached) " >&6
11015 else
11016   ac_cv_prog_cc_c89=no
11017 ac_save_CC=$CC
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h.  */
11020 #include <stdarg.h>
11021 #include <stdio.h>
11022 #include <sys/types.h>
11023 #include <sys/stat.h>
11024 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11025 struct buf { int x; };
11026 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11027 static char *e (p, i)
11028      char **p;
11029      int i;
11030 {
11031   return p[i];
11032 }
11033 static char *f (char * (*g) (char **, int), char **p, ...)
11034 {
11035   char *s;
11036   va_list v;
11037   va_start (v,p);
11038   s = g (p, va_arg (v,int));
11039   va_end (v);
11040   return s;
11041 }
11042
11043 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11044    function prototypes and stuff, but not '\xHH' hex character constants.
11045    These don't provoke an error unfortunately, instead are silently treated
11046    as 'x'.  The following induces an error, until -std is added to get
11047    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11048    array size at least.  It's necessary to write '\x00'==0 to get something
11049    that's true only with -std.  */
11050 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11051
11052 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11053    inside strings and character constants.  */
11054 #define FOO(x) 'x'
11055 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11056
11057 int test (int i, double x);
11058 struct s1 {int (*f) (int a);};
11059 struct s2 {int (*f) (double a);};
11060 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11061 int argc;
11062 char **argv;
11063 int
11064 main ()
11065 {
11066 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11067   ;
11068   return 0;
11069 }
11070 _ACEOF
11071 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11072         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11073 do
11074   CC="$ac_save_CC $ac_arg"
11075   if ac_fn_c_try_compile "$LINENO"; then :
11076   ac_cv_prog_cc_c89=$ac_arg
11077 fi
11078 rm -f core conftest.err conftest.$ac_objext
11079   test "x$ac_cv_prog_cc_c89" != "xno" && break
11080 done
11081 rm -f conftest.$ac_ext
11082 CC=$ac_save_CC
11083
11084 fi
11085 # AC_CACHE_VAL
11086 case "x$ac_cv_prog_cc_c89" in
11087   x)
11088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11089 $as_echo "none needed" >&6; } ;;
11090   xno)
11091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11092 $as_echo "unsupported" >&6; } ;;
11093   *)
11094     CC="$CC $ac_cv_prog_cc_c89"
11095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11096 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11097 esac
11098 if test "x$ac_cv_prog_cc_c89" != xno; then :
11099
11100 fi
11101
11102 ac_ext=c
11103 ac_cpp='$CPP $CPPFLAGS'
11104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11107
11108
11109     . ./VERSION
11110     pkg_version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
11111
11112     pkg_release=$PKG_BUILD
11113     test -z "$BUILD_VERSION" || pkg_release="$BUILD_VERSION"
11114
11115
11116     DEBUG=${DEBUG:-'-DDEBUG'}               debug_build="$DEBUG"
11117
11118
11119     OPTIMIZER=${OPTIMIZER:-'-g -O2'}
11120     opt_build="$OPTIMIZER"
11121
11122
11123     MALLOCLIB=${MALLOCLIB:-''}              malloc_lib="$MALLOCLIB"
11124
11125
11126     pkg_user=`id -u -n`
11127     test -z "$INSTALL_USER" || pkg_user="$INSTALL_USER"
11128
11129
11130     pkg_group=`id -g -n`
11131     test -z "$INSTALL_GROUP" || pkg_group="$INSTALL_GROUP"
11132
11133
11134     pkg_distribution=`uname -s`
11135     test -z "$DISTRIBUTION" || pkg_distribution="$DISTRIBUTION"
11136
11137
11138     pkg_platform=`uname -s | tr 'A-Z' 'a-z' | sed -e 's/irix64/irix/'`
11139     test -z "$PLATFORM" || pkg_platform="$PLATFORM"
11140
11141
11142  ac_ext=c
11143 ac_cpp='$CPP $CPPFLAGS'
11144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11147 if test -n "$ac_tool_prefix"; then
11148   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11151 $as_echo_n "checking for $ac_word... " >&6; }
11152 if ${ac_cv_prog_CC+:} false; then :
11153   $as_echo_n "(cached) " >&6
11154 else
11155   if test -n "$CC"; then
11156   ac_cv_prog_CC="$CC" # Let the user override the test.
11157 else
11158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11160 do
11161   IFS=$as_save_IFS
11162   test -z "$as_dir" && as_dir=.
11163     for ac_exec_ext in '' $ac_executable_extensions; do
11164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11165     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11167     break 2
11168   fi
11169 done
11170   done
11171 IFS=$as_save_IFS
11172
11173 fi
11174 fi
11175 CC=$ac_cv_prog_CC
11176 if test -n "$CC"; then
11177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11178 $as_echo "$CC" >&6; }
11179 else
11180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11182 fi
11183
11184
11185 fi
11186 if test -z "$ac_cv_prog_CC"; then
11187   ac_ct_CC=$CC
11188   # Extract the first word of "gcc", so it can be a program name with args.
11189 set dummy gcc; ac_word=$2
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191 $as_echo_n "checking for $ac_word... " >&6; }
11192 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11193   $as_echo_n "(cached) " >&6
11194 else
11195   if test -n "$ac_ct_CC"; then
11196   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11197 else
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11200 do
11201   IFS=$as_save_IFS
11202   test -z "$as_dir" && as_dir=.
11203     for ac_exec_ext in '' $ac_executable_extensions; do
11204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11205     ac_cv_prog_ac_ct_CC="gcc"
11206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11207     break 2
11208   fi
11209 done
11210   done
11211 IFS=$as_save_IFS
11212
11213 fi
11214 fi
11215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11216 if test -n "$ac_ct_CC"; then
11217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11218 $as_echo "$ac_ct_CC" >&6; }
11219 else
11220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11222 fi
11223
11224   if test "x$ac_ct_CC" = x; then
11225     CC=""
11226   else
11227     case $cross_compiling:$ac_tool_warned in
11228 yes:)
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11231 ac_tool_warned=yes ;;
11232 esac
11233     CC=$ac_ct_CC
11234   fi
11235 else
11236   CC="$ac_cv_prog_CC"
11237 fi
11238
11239 if test -z "$CC"; then
11240           if test -n "$ac_tool_prefix"; then
11241     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11242 set dummy ${ac_tool_prefix}cc; ac_word=$2
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244 $as_echo_n "checking for $ac_word... " >&6; }
11245 if ${ac_cv_prog_CC+:} false; then :
11246   $as_echo_n "(cached) " >&6
11247 else
11248   if test -n "$CC"; then
11249   ac_cv_prog_CC="$CC" # Let the user override the test.
11250 else
11251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11253 do
11254   IFS=$as_save_IFS
11255   test -z "$as_dir" && as_dir=.
11256     for ac_exec_ext in '' $ac_executable_extensions; do
11257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11258     ac_cv_prog_CC="${ac_tool_prefix}cc"
11259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11260     break 2
11261   fi
11262 done
11263   done
11264 IFS=$as_save_IFS
11265
11266 fi
11267 fi
11268 CC=$ac_cv_prog_CC
11269 if test -n "$CC"; then
11270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11271 $as_echo "$CC" >&6; }
11272 else
11273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11275 fi
11276
11277
11278   fi
11279 fi
11280 if test -z "$CC"; then
11281   # Extract the first word of "cc", so it can be a program name with args.
11282 set dummy cc; ac_word=$2
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284 $as_echo_n "checking for $ac_word... " >&6; }
11285 if ${ac_cv_prog_CC+:} false; then :
11286   $as_echo_n "(cached) " >&6
11287 else
11288   if test -n "$CC"; then
11289   ac_cv_prog_CC="$CC" # Let the user override the test.
11290 else
11291   ac_prog_rejected=no
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in $PATH
11294 do
11295   IFS=$as_save_IFS
11296   test -z "$as_dir" && as_dir=.
11297     for ac_exec_ext in '' $ac_executable_extensions; do
11298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11299     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11300        ac_prog_rejected=yes
11301        continue
11302      fi
11303     ac_cv_prog_CC="cc"
11304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305     break 2
11306   fi
11307 done
11308   done
11309 IFS=$as_save_IFS
11310
11311 if test $ac_prog_rejected = yes; then
11312   # We found a bogon in the path, so make sure we never use it.
11313   set dummy $ac_cv_prog_CC
11314   shift
11315   if test $# != 0; then
11316     # We chose a different compiler from the bogus one.
11317     # However, it has the same basename, so the bogon will be chosen
11318     # first if we set CC to just the basename; use the full file name.
11319     shift
11320     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11321   fi
11322 fi
11323 fi
11324 fi
11325 CC=$ac_cv_prog_CC
11326 if test -n "$CC"; then
11327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11328 $as_echo "$CC" >&6; }
11329 else
11330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11332 fi
11333
11334
11335 fi
11336 if test -z "$CC"; then
11337   if test -n "$ac_tool_prefix"; then
11338   for ac_prog in cl.exe
11339   do
11340     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343 $as_echo_n "checking for $ac_word... " >&6; }
11344 if ${ac_cv_prog_CC+:} false; then :
11345   $as_echo_n "(cached) " >&6
11346 else
11347   if test -n "$CC"; then
11348   ac_cv_prog_CC="$CC" # Let the user override the test.
11349 else
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11352 do
11353   IFS=$as_save_IFS
11354   test -z "$as_dir" && as_dir=.
11355     for ac_exec_ext in '' $ac_executable_extensions; do
11356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11357     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11359     break 2
11360   fi
11361 done
11362   done
11363 IFS=$as_save_IFS
11364
11365 fi
11366 fi
11367 CC=$ac_cv_prog_CC
11368 if test -n "$CC"; then
11369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11370 $as_echo "$CC" >&6; }
11371 else
11372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373 $as_echo "no" >&6; }
11374 fi
11375
11376
11377     test -n "$CC" && break
11378   done
11379 fi
11380 if test -z "$CC"; then
11381   ac_ct_CC=$CC
11382   for ac_prog in cl.exe
11383 do
11384   # Extract the first word of "$ac_prog", so it can be a program name with args.
11385 set dummy $ac_prog; ac_word=$2
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11387 $as_echo_n "checking for $ac_word... " >&6; }
11388 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11389   $as_echo_n "(cached) " >&6
11390 else
11391   if test -n "$ac_ct_CC"; then
11392   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11393 else
11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395 for as_dir in $PATH
11396 do
11397   IFS=$as_save_IFS
11398   test -z "$as_dir" && as_dir=.
11399     for ac_exec_ext in '' $ac_executable_extensions; do
11400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11401     ac_cv_prog_ac_ct_CC="$ac_prog"
11402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11403     break 2
11404   fi
11405 done
11406   done
11407 IFS=$as_save_IFS
11408
11409 fi
11410 fi
11411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11412 if test -n "$ac_ct_CC"; then
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11414 $as_echo "$ac_ct_CC" >&6; }
11415 else
11416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 $as_echo "no" >&6; }
11418 fi
11419
11420
11421   test -n "$ac_ct_CC" && break
11422 done
11423
11424   if test "x$ac_ct_CC" = x; then
11425     CC=""
11426   else
11427     case $cross_compiling:$ac_tool_warned in
11428 yes:)
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11431 ac_tool_warned=yes ;;
11432 esac
11433     CC=$ac_ct_CC
11434   fi
11435 fi
11436
11437 fi
11438
11439
11440 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11442 as_fn_error $? "no acceptable C compiler found in \$PATH
11443 See \`config.log' for more details" "$LINENO" 5; }
11444
11445 # Provide some information about the compiler.
11446 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11447 set X $ac_compile
11448 ac_compiler=$2
11449 for ac_option in --version -v -V -qversion; do
11450   { { ac_try="$ac_compiler $ac_option >&5"
11451 case "(($ac_try" in
11452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453   *) ac_try_echo=$ac_try;;
11454 esac
11455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11456 $as_echo "$ac_try_echo"; } >&5
11457   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11458   ac_status=$?
11459   if test -s conftest.err; then
11460     sed '10a\
11461 ... rest of stderr output deleted ...
11462          10q' conftest.err >conftest.er1
11463     cat conftest.er1 >&5
11464   fi
11465   rm -f conftest.er1 conftest.err
11466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11467   test $ac_status = 0; }
11468 done
11469
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11471 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11472 if ${ac_cv_c_compiler_gnu+:} false; then :
11473   $as_echo_n "(cached) " >&6
11474 else
11475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h.  */
11477
11478 int
11479 main ()
11480 {
11481 #ifndef __GNUC__
11482        choke me
11483 #endif
11484
11485   ;
11486   return 0;
11487 }
11488 _ACEOF
11489 if ac_fn_c_try_compile "$LINENO"; then :
11490   ac_compiler_gnu=yes
11491 else
11492   ac_compiler_gnu=no
11493 fi
11494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11496
11497 fi
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11499 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11500 if test $ac_compiler_gnu = yes; then
11501   GCC=yes
11502 else
11503   GCC=
11504 fi
11505 ac_test_CFLAGS=${CFLAGS+set}
11506 ac_save_CFLAGS=$CFLAGS
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11508 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11509 if ${ac_cv_prog_cc_g+:} false; then :
11510   $as_echo_n "(cached) " >&6
11511 else
11512   ac_save_c_werror_flag=$ac_c_werror_flag
11513    ac_c_werror_flag=yes
11514    ac_cv_prog_cc_g=no
11515    CFLAGS="-g"
11516    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h.  */
11518
11519 int
11520 main ()
11521 {
11522
11523   ;
11524   return 0;
11525 }
11526 _ACEOF
11527 if ac_fn_c_try_compile "$LINENO"; then :
11528   ac_cv_prog_cc_g=yes
11529 else
11530   CFLAGS=""
11531       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532 /* end confdefs.h.  */
11533
11534 int
11535 main ()
11536 {
11537
11538   ;
11539   return 0;
11540 }
11541 _ACEOF
11542 if ac_fn_c_try_compile "$LINENO"; then :
11543
11544 else
11545   ac_c_werror_flag=$ac_save_c_werror_flag
11546          CFLAGS="-g"
11547          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h.  */
11549
11550 int
11551 main ()
11552 {
11553
11554   ;
11555   return 0;
11556 }
11557 _ACEOF
11558 if ac_fn_c_try_compile "$LINENO"; then :
11559   ac_cv_prog_cc_g=yes
11560 fi
11561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11562 fi
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 fi
11565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566    ac_c_werror_flag=$ac_save_c_werror_flag
11567 fi
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11569 $as_echo "$ac_cv_prog_cc_g" >&6; }
11570 if test "$ac_test_CFLAGS" = set; then
11571   CFLAGS=$ac_save_CFLAGS
11572 elif test $ac_cv_prog_cc_g = yes; then
11573   if test "$GCC" = yes; then
11574     CFLAGS="-g -O2"
11575   else
11576     CFLAGS="-g"
11577   fi
11578 else
11579   if test "$GCC" = yes; then
11580     CFLAGS="-O2"
11581   else
11582     CFLAGS=
11583   fi
11584 fi
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11586 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11587 if ${ac_cv_prog_cc_c89+:} false; then :
11588   $as_echo_n "(cached) " >&6
11589 else
11590   ac_cv_prog_cc_c89=no
11591 ac_save_CC=$CC
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h.  */
11594 #include <stdarg.h>
11595 #include <stdio.h>
11596 #include <sys/types.h>
11597 #include <sys/stat.h>
11598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11599 struct buf { int x; };
11600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11601 static char *e (p, i)
11602      char **p;
11603      int i;
11604 {
11605   return p[i];
11606 }
11607 static char *f (char * (*g) (char **, int), char **p, ...)
11608 {
11609   char *s;
11610   va_list v;
11611   va_start (v,p);
11612   s = g (p, va_arg (v,int));
11613   va_end (v);
11614   return s;
11615 }
11616
11617 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11618    function prototypes and stuff, but not '\xHH' hex character constants.
11619    These don't provoke an error unfortunately, instead are silently treated
11620    as 'x'.  The following induces an error, until -std is added to get
11621    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11622    array size at least.  It's necessary to write '\x00'==0 to get something
11623    that's true only with -std.  */
11624 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11625
11626 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11627    inside strings and character constants.  */
11628 #define FOO(x) 'x'
11629 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11630
11631 int test (int i, double x);
11632 struct s1 {int (*f) (int a);};
11633 struct s2 {int (*f) (double a);};
11634 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11635 int argc;
11636 char **argv;
11637 int
11638 main ()
11639 {
11640 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11641   ;
11642   return 0;
11643 }
11644 _ACEOF
11645 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11646         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11647 do
11648   CC="$ac_save_CC $ac_arg"
11649   if ac_fn_c_try_compile "$LINENO"; then :
11650   ac_cv_prog_cc_c89=$ac_arg
11651 fi
11652 rm -f core conftest.err conftest.$ac_objext
11653   test "x$ac_cv_prog_cc_c89" != "xno" && break
11654 done
11655 rm -f conftest.$ac_ext
11656 CC=$ac_save_CC
11657
11658 fi
11659 # AC_CACHE_VAL
11660 case "x$ac_cv_prog_cc_c89" in
11661   x)
11662     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11663 $as_echo "none needed" >&6; } ;;
11664   xno)
11665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11666 $as_echo "unsupported" >&6; } ;;
11667   *)
11668     CC="$CC $ac_cv_prog_cc_c89"
11669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11670 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11671 esac
11672 if test "x$ac_cv_prog_cc_c89" != xno; then :
11673
11674 fi
11675
11676 ac_ext=c
11677 ac_cpp='$CPP $CPPFLAGS'
11678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11681
11682     cc="$CC"
11683
11684      if test -z ""$cc""; then
11685         echo
11686         echo FATAL ERROR: cc does not seem to be installed.
11687         echo attr cannot be built without a working C compiler installation.
11688         exit 1
11689     fi
11690
11691
11692     search_path="$PATH$PATH_SEPARATOR/usr/freeware/bin$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR/usr/local/bin"
11693
11694     for ac_prog in gmake make
11695 do
11696   # Extract the first word of "$ac_prog", so it can be a program name with args.
11697 set dummy $ac_prog; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_path_MAKE+:} false; then :
11701   $as_echo_n "(cached) " >&6
11702 else
11703   case $MAKE in
11704   [\\/]* | ?:[\\/]*)
11705   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
11706   ;;
11707   *)
11708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $search_path
11710 do
11711   IFS=$as_save_IFS
11712   test -z "$as_dir" && as_dir=.
11713     for ac_exec_ext in '' $ac_executable_extensions; do
11714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
11716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717     break 2
11718   fi
11719 done
11720   done
11721 IFS=$as_save_IFS
11722
11723   ;;
11724 esac
11725 fi
11726 MAKE=$ac_cv_path_MAKE
11727 if test -n "$MAKE"; then
11728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
11729 $as_echo "$MAKE" >&6; }
11730 else
11731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11733 fi
11734
11735
11736   test -n "$MAKE" && break
11737 done
11738
11739     make=$MAKE
11740
11741      if test -z ""$make""; then
11742         echo
11743         echo FATAL ERROR: make does not seem to be installed.
11744         echo attr cannot be built without a working GNU make installation.
11745         exit 1
11746     fi
11747
11748
11749     # Extract the first word of "tar", so it can be a program name with args.
11750 set dummy tar; ac_word=$2
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752 $as_echo_n "checking for $ac_word... " >&6; }
11753 if ${ac_cv_path_TAR+:} false; then :
11754   $as_echo_n "(cached) " >&6
11755 else
11756   case $TAR in
11757   [\\/]* | ?:[\\/]*)
11758   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11759   ;;
11760   *)
11761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762 for as_dir in $search_path
11763 do
11764   IFS=$as_save_IFS
11765   test -z "$as_dir" && as_dir=.
11766     for ac_exec_ext in '' $ac_executable_extensions; do
11767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11768     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11770     break 2
11771   fi
11772 done
11773   done
11774 IFS=$as_save_IFS
11775
11776   ;;
11777 esac
11778 fi
11779 TAR=$ac_cv_path_TAR
11780 if test -n "$TAR"; then
11781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11782 $as_echo "$TAR" >&6; }
11783 else
11784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785 $as_echo "no" >&6; }
11786 fi
11787
11788
11789     tar=$TAR
11790
11791
11792     # Extract the first word of "gzip", so it can be a program name with args.
11793 set dummy gzip; ac_word=$2
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795 $as_echo_n "checking for $ac_word... " >&6; }
11796 if ${ac_cv_path_ZIP+:} false; then :
11797   $as_echo_n "(cached) " >&6
11798 else
11799   case $ZIP in
11800   [\\/]* | ?:[\\/]*)
11801   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
11802   ;;
11803   *)
11804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $search_path
11806 do
11807   IFS=$as_save_IFS
11808   test -z "$as_dir" && as_dir=.
11809     for ac_exec_ext in '' $ac_executable_extensions; do
11810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11811     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
11812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813     break 2
11814   fi
11815 done
11816   done
11817 IFS=$as_save_IFS
11818
11819   ;;
11820 esac
11821 fi
11822 ZIP=$ac_cv_path_ZIP
11823 if test -n "$ZIP"; then
11824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
11825 $as_echo "$ZIP" >&6; }
11826 else
11827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11829 fi
11830
11831
11832     zip=$ZIP
11833
11834
11835     # Extract the first word of "makedepend", so it can be a program name with args.
11836 set dummy makedepend; ac_word=$2
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838 $as_echo_n "checking for $ac_word... " >&6; }
11839 if ${ac_cv_path_MAKEDEPEND+:} false; then :
11840   $as_echo_n "(cached) " >&6
11841 else
11842   case $MAKEDEPEND in
11843   [\\/]* | ?:[\\/]*)
11844   ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
11845   ;;
11846   *)
11847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848 for as_dir in $PATH
11849 do
11850   IFS=$as_save_IFS
11851   test -z "$as_dir" && as_dir=.
11852     for ac_exec_ext in '' $ac_executable_extensions; do
11853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11854     ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
11855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856     break 2
11857   fi
11858 done
11859   done
11860 IFS=$as_save_IFS
11861
11862   test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="/bin/true"
11863   ;;
11864 esac
11865 fi
11866 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
11867 if test -n "$MAKEDEPEND"; then
11868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
11869 $as_echo "$MAKEDEPEND" >&6; }
11870 else
11871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11873 fi
11874
11875
11876     makedepend=$MAKEDEPEND
11877
11878
11879     # Extract the first word of "awk", so it can be a program name with args.
11880 set dummy awk; ac_word=$2
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882 $as_echo_n "checking for $ac_word... " >&6; }
11883 if ${ac_cv_path_AWK+:} false; then :
11884   $as_echo_n "(cached) " >&6
11885 else
11886   case $AWK in
11887   [\\/]* | ?:[\\/]*)
11888   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11889   ;;
11890   *)
11891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in $search_path
11893 do
11894   IFS=$as_save_IFS
11895   test -z "$as_dir" && as_dir=.
11896     for ac_exec_ext in '' $ac_executable_extensions; do
11897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11898     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900     break 2
11901   fi
11902 done
11903   done
11904 IFS=$as_save_IFS
11905
11906   ;;
11907 esac
11908 fi
11909 AWK=$ac_cv_path_AWK
11910 if test -n "$AWK"; then
11911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11912 $as_echo "$AWK" >&6; }
11913 else
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11916 fi
11917
11918
11919     awk=$AWK
11920
11921
11922     # Extract the first word of "sed", so it can be a program name with args.
11923 set dummy sed; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if ${ac_cv_path_SED+:} false; then :
11927   $as_echo_n "(cached) " >&6
11928 else
11929   case $SED in
11930   [\\/]* | ?:[\\/]*)
11931   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11932   ;;
11933   *)
11934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935 for as_dir in $search_path
11936 do
11937   IFS=$as_save_IFS
11938   test -z "$as_dir" && as_dir=.
11939     for ac_exec_ext in '' $ac_executable_extensions; do
11940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11941     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11943     break 2
11944   fi
11945 done
11946   done
11947 IFS=$as_save_IFS
11948
11949   ;;
11950 esac
11951 fi
11952 SED=$ac_cv_path_SED
11953 if test -n "$SED"; then
11954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11955 $as_echo "$SED" >&6; }
11956 else
11957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11959 fi
11960
11961
11962     sed=$SED
11963
11964
11965     # Extract the first word of "echo", so it can be a program name with args.
11966 set dummy echo; ac_word=$2
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11968 $as_echo_n "checking for $ac_word... " >&6; }
11969 if ${ac_cv_path_ECHO+:} false; then :
11970   $as_echo_n "(cached) " >&6
11971 else
11972   case $ECHO in
11973   [\\/]* | ?:[\\/]*)
11974   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
11975   ;;
11976   *)
11977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11978 for as_dir in $search_path
11979 do
11980   IFS=$as_save_IFS
11981   test -z "$as_dir" && as_dir=.
11982     for ac_exec_ext in '' $ac_executable_extensions; do
11983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11984     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
11985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11986     break 2
11987   fi
11988 done
11989   done
11990 IFS=$as_save_IFS
11991
11992   ;;
11993 esac
11994 fi
11995 ECHO=$ac_cv_path_ECHO
11996 if test -n "$ECHO"; then
11997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
11998 $as_echo "$ECHO" >&6; }
11999 else
12000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001 $as_echo "no" >&6; }
12002 fi
12003
12004
12005     echo=$ECHO
12006
12007
12008     # Extract the first word of "sort", so it can be a program name with args.
12009 set dummy sort; ac_word=$2
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011 $as_echo_n "checking for $ac_word... " >&6; }
12012 if ${ac_cv_path_SORT+:} false; then :
12013   $as_echo_n "(cached) " >&6
12014 else
12015   case $SORT in
12016   [\\/]* | ?:[\\/]*)
12017   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
12018   ;;
12019   *)
12020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $search_path
12022 do
12023   IFS=$as_save_IFS
12024   test -z "$as_dir" && as_dir=.
12025     for ac_exec_ext in '' $ac_executable_extensions; do
12026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12027     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
12028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12029     break 2
12030   fi
12031 done
12032   done
12033 IFS=$as_save_IFS
12034
12035   ;;
12036 esac
12037 fi
12038 SORT=$ac_cv_path_SORT
12039 if test -n "$SORT"; then
12040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
12041 $as_echo "$SORT" >&6; }
12042 else
12043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044 $as_echo "no" >&6; }
12045 fi
12046
12047
12048     sort=$SORT
12049
12050
12051         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12052 $as_echo_n "checking whether ln -s works... " >&6; }
12053 LN_S=$as_ln_s
12054 if test "$LN_S" = "ln -s"; then
12055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12056 $as_echo "yes" >&6; }
12057 else
12058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12059 $as_echo "no, using $LN_S" >&6; }
12060 fi
12061
12062
12063     if test "$enable_gettext" = yes; then
12064         # Extract the first word of "msgfmt", so it can be a program name with args.
12065 set dummy msgfmt; ac_word=$2
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12067 $as_echo_n "checking for $ac_word... " >&6; }
12068 if ${ac_cv_path_MSGFMT+:} false; then :
12069   $as_echo_n "(cached) " >&6
12070 else
12071   case $MSGFMT in
12072   [\\/]* | ?:[\\/]*)
12073   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12074   ;;
12075   *)
12076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12077 for as_dir in $search_path
12078 do
12079   IFS=$as_save_IFS
12080   test -z "$as_dir" && as_dir=.
12081     for ac_exec_ext in '' $ac_executable_extensions; do
12082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12083     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
12084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12085     break 2
12086   fi
12087 done
12088   done
12089 IFS=$as_save_IFS
12090
12091   ;;
12092 esac
12093 fi
12094 MSGFMT=$ac_cv_path_MSGFMT
12095 if test -n "$MSGFMT"; then
12096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12097 $as_echo "$MSGFMT" >&6; }
12098 else
12099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100 $as_echo "no" >&6; }
12101 fi
12102
12103
12104         msgfmt=$MSGFMT
12105
12106          if test -z ""$msgfmt""; then
12107         echo
12108         echo FATAL ERROR: msgfmt does not seem to be installed.
12109         echo attr cannot be built without a working gettext installation.
12110         exit 1
12111     fi
12112
12113
12114         # Extract the first word of "msgmerge", so it can be a program name with args.
12115 set dummy msgmerge; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if ${ac_cv_path_MSGMERGE+:} false; then :
12119   $as_echo_n "(cached) " >&6
12120 else
12121   case $MSGMERGE in
12122   [\\/]* | ?:[\\/]*)
12123   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12124   ;;
12125   *)
12126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $search_path
12128 do
12129   IFS=$as_save_IFS
12130   test -z "$as_dir" && as_dir=.
12131     for ac_exec_ext in '' $ac_executable_extensions; do
12132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12133     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
12134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12135     break 2
12136   fi
12137 done
12138   done
12139 IFS=$as_save_IFS
12140
12141   ;;
12142 esac
12143 fi
12144 MSGMERGE=$ac_cv_path_MSGMERGE
12145 if test -n "$MSGMERGE"; then
12146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12147 $as_echo "$MSGMERGE" >&6; }
12148 else
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151 fi
12152
12153
12154         msgmerge=$MSGMERGE
12155
12156          if test -z ""$msgmerge""; then
12157         echo
12158         echo FATAL ERROR: msgmerge does not seem to be installed.
12159         echo attr cannot be built without a working gettext installation.
12160         exit 1
12161     fi
12162
12163
12164         # Extract the first word of "xgettext", so it can be a program name with args.
12165 set dummy xgettext; ac_word=$2
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12167 $as_echo_n "checking for $ac_word... " >&6; }
12168 if ${ac_cv_path_XGETTEXT+:} false; then :
12169   $as_echo_n "(cached) " >&6
12170 else
12171   case $XGETTEXT in
12172   [\\/]* | ?:[\\/]*)
12173   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12174   ;;
12175   *)
12176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in $search_path
12178 do
12179   IFS=$as_save_IFS
12180   test -z "$as_dir" && as_dir=.
12181     for ac_exec_ext in '' $ac_executable_extensions; do
12182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12183     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
12184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12185     break 2
12186   fi
12187 done
12188   done
12189 IFS=$as_save_IFS
12190
12191   ;;
12192 esac
12193 fi
12194 XGETTEXT=$ac_cv_path_XGETTEXT
12195 if test -n "$XGETTEXT"; then
12196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12197 $as_echo "$XGETTEXT" >&6; }
12198 else
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12201 fi
12202
12203
12204         xgettext=$XGETTEXT
12205
12206          if test -z ""$xgettext""; then
12207         echo
12208         echo FATAL ERROR: xgettext does not seem to be installed.
12209         echo attr cannot be built without a working gettext installation.
12210         exit 1
12211     fi
12212
12213
12214
12215 $as_echo "#define ENABLE_GETTEXT 1" >>confdefs.h
12216
12217     fi
12218
12219     # Extract the first word of "rpm", so it can be a program name with args.
12220 set dummy rpm; ac_word=$2
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222 $as_echo_n "checking for $ac_word... " >&6; }
12223 if ${ac_cv_path_RPM+:} false; then :
12224   $as_echo_n "(cached) " >&6
12225 else
12226   case $RPM in
12227   [\\/]* | ?:[\\/]*)
12228   ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
12229   ;;
12230   *)
12231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232 for as_dir in $search_path
12233 do
12234   IFS=$as_save_IFS
12235   test -z "$as_dir" && as_dir=.
12236     for ac_exec_ext in '' $ac_executable_extensions; do
12237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12238     ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
12239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240     break 2
12241   fi
12242 done
12243   done
12244 IFS=$as_save_IFS
12245
12246   ;;
12247 esac
12248 fi
12249 RPM=$ac_cv_path_RPM
12250 if test -n "$RPM"; then
12251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
12252 $as_echo "$RPM" >&6; }
12253 else
12254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12256 fi
12257
12258
12259     rpm=$RPM
12260
12261
12262         rpm_version=0
12263     test -n "$RPM" && test -x "$RPM" && rpm_version=`$RPM --version \
12264                         | awk '{print $NF}' | awk -F. '{V=1; print $V}'`
12265
12266                 if test $rpm_version -ge 4; then
12267         # Extract the first word of "rpmbuild", so it can be a program name with args.
12268 set dummy rpmbuild; ac_word=$2
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12270 $as_echo_n "checking for $ac_word... " >&6; }
12271 if ${ac_cv_path_RPMBUILD+:} false; then :
12272   $as_echo_n "(cached) " >&6
12273 else
12274   case $RPMBUILD in
12275   [\\/]* | ?:[\\/]*)
12276   ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
12277   ;;
12278   *)
12279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12281 do
12282   IFS=$as_save_IFS
12283   test -z "$as_dir" && as_dir=.
12284     for ac_exec_ext in '' $ac_executable_extensions; do
12285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286     ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
12287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288     break 2
12289   fi
12290 done
12291   done
12292 IFS=$as_save_IFS
12293
12294   ;;
12295 esac
12296 fi
12297 RPMBUILD=$ac_cv_path_RPMBUILD
12298 if test -n "$RPMBUILD"; then
12299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
12300 $as_echo "$RPMBUILD" >&6; }
12301 else
12302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12304 fi
12305
12306
12307         rpmbuild=$RPMBUILD
12308     else
12309         rpmbuild=$RPM
12310     fi
12311
12312
12313  have_zipped_manpages=false
12314     for d in ${prefix}/share/man ${prefix}/man ; do
12315         if test -f $d/man1/man.1.gz
12316         then
12317             have_zipped_manpages=true
12318             break
12319         fi
12320     done
12321
12322
12323
12324                   enable_lib64="$enable_lib64"
12325   libdirsuffix=""
12326   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12327   if test "$enable_lib64" = "yes" -a -n "$searchpath"; then
12328     save_IFS="${IFS=    }"; IFS=":"
12329     for searchdir in $searchpath; do
12330       if test -d "$searchdir"; then
12331         case "$searchdir" in
12332           */lib64/ | */lib64 ) libdirsuffix=64 ;;
12333           *) searchdir=`cd "$searchdir" && pwd`
12334              case "$searchdir" in
12335                */lib64 ) libdirsuffix=64 ;;
12336              esac ;;
12337         esac
12338       fi
12339     done
12340     IFS="$save_IFS"
12341   fi
12342
12343
12344
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12346 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12347 if ${ac_cv_c_const+:} false; then :
12348   $as_echo_n "(cached) " >&6
12349 else
12350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h.  */
12352
12353 int
12354 main ()
12355 {
12356 /* FIXME: Include the comments suggested by Paul. */
12357 #ifndef __cplusplus
12358   /* Ultrix mips cc rejects this.  */
12359   typedef int charset[2];
12360   const charset cs;
12361   /* SunOS 4.1.1 cc rejects this.  */
12362   char const *const *pcpcc;
12363   char **ppc;
12364   /* NEC SVR4.0.2 mips cc rejects this.  */
12365   struct point {int x, y;};
12366   static struct point const zero = {0,0};
12367   /* AIX XL C 1.02.0.0 rejects this.
12368      It does not let you subtract one const X* pointer from another in
12369      an arm of an if-expression whose if-part is not a constant
12370      expression */
12371   const char *g = "string";
12372   pcpcc = &g + (g ? g-g : 0);
12373   /* HPUX 7.0 cc rejects these. */
12374   ++pcpcc;
12375   ppc = (char**) pcpcc;
12376   pcpcc = (char const *const *) ppc;
12377   { /* SCO 3.2v4 cc rejects this.  */
12378     char *t;
12379     char const *s = 0 ? (char *) 0 : (char const *) 0;
12380
12381     *t++ = 0;
12382     if (s) return 0;
12383   }
12384   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12385     int x[] = {25, 17};
12386     const int *foo = &x[0];
12387     ++foo;
12388   }
12389   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12390     typedef const int *iptr;
12391     iptr p = 0;
12392     ++p;
12393   }
12394   { /* AIX XL C 1.02.0.0 rejects this saying
12395        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12396     struct s { int j; const int *ap[3]; };
12397     struct s *b; b->j = 5;
12398   }
12399   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12400     const int foo = 10;
12401     if (!foo) return 0;
12402   }
12403   return !cs[0] && !zero.x;
12404 #endif
12405
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 if ac_fn_c_try_compile "$LINENO"; then :
12411   ac_cv_c_const=yes
12412 else
12413   ac_cv_c_const=no
12414 fi
12415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416 fi
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12418 $as_echo "$ac_cv_c_const" >&6; }
12419 if test $ac_cv_c_const = no; then
12420
12421 $as_echo "#define const /**/" >>confdefs.h
12422
12423 fi
12424
12425 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12426 if test "x$ac_cv_type_mode_t" = xyes; then :
12427
12428 else
12429
12430 cat >>confdefs.h <<_ACEOF
12431 #define mode_t int
12432 _ACEOF
12433
12434 fi
12435
12436 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12437 if test "x$ac_cv_type_size_t" = xyes; then :
12438
12439 else
12440
12441 cat >>confdefs.h <<_ACEOF
12442 #define size_t unsigned int
12443 _ACEOF
12444
12445 fi
12446
12447 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12448 # for constant arguments.  Useless!
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12450 $as_echo_n "checking for working alloca.h... " >&6; }
12451 if ${ac_cv_working_alloca_h+:} false; then :
12452   $as_echo_n "(cached) " >&6
12453 else
12454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h.  */
12456 #include <alloca.h>
12457 int
12458 main ()
12459 {
12460 char *p = (char *) alloca (2 * sizeof (int));
12461                           if (p) return 0;
12462   ;
12463   return 0;
12464 }
12465 _ACEOF
12466 if ac_fn_c_try_link "$LINENO"; then :
12467   ac_cv_working_alloca_h=yes
12468 else
12469   ac_cv_working_alloca_h=no
12470 fi
12471 rm -f core conftest.err conftest.$ac_objext \
12472     conftest$ac_exeext conftest.$ac_ext
12473 fi
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12475 $as_echo "$ac_cv_working_alloca_h" >&6; }
12476 if test $ac_cv_working_alloca_h = yes; then
12477
12478 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12479
12480 fi
12481
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12483 $as_echo_n "checking for alloca... " >&6; }
12484 if ${ac_cv_func_alloca_works+:} false; then :
12485   $as_echo_n "(cached) " >&6
12486 else
12487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h.  */
12489 #ifdef __GNUC__
12490 # define alloca __builtin_alloca
12491 #else
12492 # ifdef _MSC_VER
12493 #  include <malloc.h>
12494 #  define alloca _alloca
12495 # else
12496 #  ifdef HAVE_ALLOCA_H
12497 #   include <alloca.h>
12498 #  else
12499 #   ifdef _AIX
12500  #pragma alloca
12501 #   else
12502 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12503 void *alloca (size_t);
12504 #    endif
12505 #   endif
12506 #  endif
12507 # endif
12508 #endif
12509
12510 int
12511 main ()
12512 {
12513 char *p = (char *) alloca (1);
12514                                     if (p) return 0;
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 if ac_fn_c_try_link "$LINENO"; then :
12520   ac_cv_func_alloca_works=yes
12521 else
12522   ac_cv_func_alloca_works=no
12523 fi
12524 rm -f core conftest.err conftest.$ac_objext \
12525     conftest$ac_exeext conftest.$ac_ext
12526 fi
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12528 $as_echo "$ac_cv_func_alloca_works" >&6; }
12529
12530 if test $ac_cv_func_alloca_works = yes; then
12531
12532 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12533
12534 else
12535   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12536 # that cause trouble.  Some versions do not even contain alloca or
12537 # contain a buggy version.  If you still want to use their alloca,
12538 # use ar to extract alloca.o from them instead of compiling alloca.c.
12539
12540 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12541
12542 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12543
12544
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12546 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12547 if ${ac_cv_os_cray+:} false; then :
12548   $as_echo_n "(cached) " >&6
12549 else
12550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h.  */
12552 #if defined CRAY && ! defined CRAY2
12553 webecray
12554 #else
12555 wenotbecray
12556 #endif
12557
12558 _ACEOF
12559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12560   $EGREP "webecray" >/dev/null 2>&1; then :
12561   ac_cv_os_cray=yes
12562 else
12563   ac_cv_os_cray=no
12564 fi
12565 rm -f conftest*
12566
12567 fi
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12569 $as_echo "$ac_cv_os_cray" >&6; }
12570 if test $ac_cv_os_cray = yes; then
12571   for ac_func in _getb67 GETB67 getb67; do
12572     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12573 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12574 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12575
12576 cat >>confdefs.h <<_ACEOF
12577 #define CRAY_STACKSEG_END $ac_func
12578 _ACEOF
12579
12580     break
12581 fi
12582
12583   done
12584 fi
12585
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12587 $as_echo_n "checking stack direction for C alloca... " >&6; }
12588 if ${ac_cv_c_stack_direction+:} false; then :
12589   $as_echo_n "(cached) " >&6
12590 else
12591   if test "$cross_compiling" = yes; then :
12592   ac_cv_c_stack_direction=0
12593 else
12594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h.  */
12596 $ac_includes_default
12597 int
12598 find_stack_direction ()
12599 {
12600   static char *addr = 0;
12601   auto char dummy;
12602   if (addr == 0)
12603     {
12604       addr = &dummy;
12605       return find_stack_direction ();
12606     }
12607   else
12608     return (&dummy > addr) ? 1 : -1;
12609 }
12610
12611 int
12612 main ()
12613 {
12614   return find_stack_direction () < 0;
12615 }
12616 _ACEOF
12617 if ac_fn_c_try_run "$LINENO"; then :
12618   ac_cv_c_stack_direction=1
12619 else
12620   ac_cv_c_stack_direction=-1
12621 fi
12622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12623   conftest.$ac_objext conftest.beam conftest.$ac_ext
12624 fi
12625
12626 fi
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12628 $as_echo "$ac_cv_c_stack_direction" >&6; }
12629 cat >>confdefs.h <<_ACEOF
12630 #define STACK_DIRECTION $ac_cv_c_stack_direction
12631 _ACEOF
12632
12633
12634 fi
12635
12636
12637 ac_config_files="$ac_config_files include/builddefs"
12638
12639 cat >confcache <<\_ACEOF
12640 # This file is a shell script that caches the results of configure
12641 # tests run on this system so they can be shared between configure
12642 # scripts and configure runs, see configure's option --config-cache.
12643 # It is not useful on other systems.  If it contains results you don't
12644 # want to keep, you may remove or edit it.
12645 #
12646 # config.status only pays attention to the cache file if you give it
12647 # the --recheck option to rerun configure.
12648 #
12649 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12651 # following values.
12652
12653 _ACEOF
12654
12655 # The following way of writing the cache mishandles newlines in values,
12656 # but we know of no workaround that is simple, portable, and efficient.
12657 # So, we kill variables containing newlines.
12658 # Ultrix sh set writes to stderr and can't be redirected directly,
12659 # and sets the high bit in the cache file unless we assign to the vars.
12660 (
12661   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12662     eval ac_val=\$$ac_var
12663     case $ac_val in #(
12664     *${as_nl}*)
12665       case $ac_var in #(
12666       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12667 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12668       esac
12669       case $ac_var in #(
12670       _ | IFS | as_nl) ;; #(
12671       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12672       *) { eval $ac_var=; unset $ac_var;} ;;
12673       esac ;;
12674     esac
12675   done
12676
12677   (set) 2>&1 |
12678     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12679     *${as_nl}ac_space=\ *)
12680       # `set' does not quote correctly, so add quotes: double-quote
12681       # substitution turns \\\\ into \\, and sed turns \\ into \.
12682       sed -n \
12683         "s/'/'\\\\''/g;
12684           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12685       ;; #(
12686     *)
12687       # `set' quotes correctly as required by POSIX, so do not add quotes.
12688       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12689       ;;
12690     esac |
12691     sort
12692 ) |
12693   sed '
12694      /^ac_cv_env_/b end
12695      t clear
12696      :clear
12697      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12698      t end
12699      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12700      :end' >>confcache
12701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12702   if test -w "$cache_file"; then
12703     if test "x$cache_file" != "x/dev/null"; then
12704       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12705 $as_echo "$as_me: updating cache $cache_file" >&6;}
12706       if test ! -f "$cache_file" || test -h "$cache_file"; then
12707         cat confcache >"$cache_file"
12708       else
12709         case $cache_file in #(
12710         */* | ?:*)
12711           mv -f confcache "$cache_file"$$ &&
12712           mv -f "$cache_file"$$ "$cache_file" ;; #(
12713         *)
12714           mv -f confcache "$cache_file" ;;
12715         esac
12716       fi
12717     fi
12718   else
12719     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12720 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12721   fi
12722 fi
12723 rm -f confcache
12724
12725 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12726 # Let make expand exec_prefix.
12727 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12728
12729 DEFS=-DHAVE_CONFIG_H
12730
12731 ac_libobjs=
12732 ac_ltlibobjs=
12733 U=
12734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12735   # 1. Remove the extension, and $U if already installed.
12736   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12737   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12738   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12739   #    will be set to the directory where LIBOBJS objects are built.
12740   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12741   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12742 done
12743 LIBOBJS=$ac_libobjs
12744
12745 LTLIBOBJS=$ac_ltlibobjs
12746
12747
12748
12749 : "${CONFIG_STATUS=./config.status}"
12750 ac_write_fail=0
12751 ac_clean_files_save=$ac_clean_files
12752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12754 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12755 as_write_fail=0
12756 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12757 #! $SHELL
12758 # Generated by $as_me.
12759 # Run this file to recreate the current configuration.
12760 # Compiler output produced by configure, useful for debugging
12761 # configure, is in config.log if it exists.
12762
12763 debug=false
12764 ac_cs_recheck=false
12765 ac_cs_silent=false
12766
12767 SHELL=\${CONFIG_SHELL-$SHELL}
12768 export SHELL
12769 _ASEOF
12770 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12771 ## -------------------- ##
12772 ## M4sh Initialization. ##
12773 ## -------------------- ##
12774
12775 # Be more Bourne compatible
12776 DUALCASE=1; export DUALCASE # for MKS sh
12777 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12778   emulate sh
12779   NULLCMD=:
12780   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12781   # is contrary to our usage.  Disable this feature.
12782   alias -g '${1+"$@"}'='"$@"'
12783   setopt NO_GLOB_SUBST
12784 else
12785   case `(set -o) 2>/dev/null` in #(
12786   *posix*) :
12787     set -o posix ;; #(
12788   *) :
12789      ;;
12790 esac
12791 fi
12792
12793
12794 as_nl='
12795 '
12796 export as_nl
12797 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12798 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12799 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12800 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12801 # Prefer a ksh shell builtin over an external printf program on Solaris,
12802 # but without wasting forks for bash or zsh.
12803 if test -z "$BASH_VERSION$ZSH_VERSION" \
12804     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12805   as_echo='print -r --'
12806   as_echo_n='print -rn --'
12807 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12808   as_echo='printf %s\n'
12809   as_echo_n='printf %s'
12810 else
12811   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12812     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12813     as_echo_n='/usr/ucb/echo -n'
12814   else
12815     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12816     as_echo_n_body='eval
12817       arg=$1;
12818       case $arg in #(
12819       *"$as_nl"*)
12820         expr "X$arg" : "X\\(.*\\)$as_nl";
12821         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12822       esac;
12823       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12824     '
12825     export as_echo_n_body
12826     as_echo_n='sh -c $as_echo_n_body as_echo'
12827   fi
12828   export as_echo_body
12829   as_echo='sh -c $as_echo_body as_echo'
12830 fi
12831
12832 # The user is always right.
12833 if test "${PATH_SEPARATOR+set}" != set; then
12834   PATH_SEPARATOR=:
12835   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12836     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12837       PATH_SEPARATOR=';'
12838   }
12839 fi
12840
12841
12842 # IFS
12843 # We need space, tab and new line, in precisely that order.  Quoting is
12844 # there to prevent editors from complaining about space-tab.
12845 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12846 # splitting by setting IFS to empty value.)
12847 IFS=" ""        $as_nl"
12848
12849 # Find who we are.  Look in the path if we contain no directory separator.
12850 as_myself=
12851 case $0 in #((
12852   *[\\/]* ) as_myself=$0 ;;
12853   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854 for as_dir in $PATH
12855 do
12856   IFS=$as_save_IFS
12857   test -z "$as_dir" && as_dir=.
12858     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12859   done
12860 IFS=$as_save_IFS
12861
12862      ;;
12863 esac
12864 # We did not find ourselves, most probably we were run as `sh COMMAND'
12865 # in which case we are not to be found in the path.
12866 if test "x$as_myself" = x; then
12867   as_myself=$0
12868 fi
12869 if test ! -f "$as_myself"; then
12870   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12871   exit 1
12872 fi
12873
12874 # Unset variables that we do not need and which cause bugs (e.g. in
12875 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12876 # suppresses any "Segmentation fault" message there.  '((' could
12877 # trigger a bug in pdksh 5.2.14.
12878 for as_var in BASH_ENV ENV MAIL MAILPATH
12879 do eval test x\${$as_var+set} = xset \
12880   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12881 done
12882 PS1='$ '
12883 PS2='> '
12884 PS4='+ '
12885
12886 # NLS nuisances.
12887 LC_ALL=C
12888 export LC_ALL
12889 LANGUAGE=C
12890 export LANGUAGE
12891
12892 # CDPATH.
12893 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12894
12895
12896 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12897 # ----------------------------------------
12898 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12899 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12900 # script with STATUS, using 1 if that was 0.
12901 as_fn_error ()
12902 {
12903   as_status=$1; test $as_status -eq 0 && as_status=1
12904   if test "$4"; then
12905     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12906     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12907   fi
12908   $as_echo "$as_me: error: $2" >&2
12909   as_fn_exit $as_status
12910 } # as_fn_error
12911
12912
12913 # as_fn_set_status STATUS
12914 # -----------------------
12915 # Set $? to STATUS, without forking.
12916 as_fn_set_status ()
12917 {
12918   return $1
12919 } # as_fn_set_status
12920
12921 # as_fn_exit STATUS
12922 # -----------------
12923 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12924 as_fn_exit ()
12925 {
12926   set +e
12927   as_fn_set_status $1
12928   exit $1
12929 } # as_fn_exit
12930
12931 # as_fn_unset VAR
12932 # ---------------
12933 # Portably unset VAR.
12934 as_fn_unset ()
12935 {
12936   { eval $1=; unset $1;}
12937 }
12938 as_unset=as_fn_unset
12939 # as_fn_append VAR VALUE
12940 # ----------------------
12941 # Append the text in VALUE to the end of the definition contained in VAR. Take
12942 # advantage of any shell optimizations that allow amortized linear growth over
12943 # repeated appends, instead of the typical quadratic growth present in naive
12944 # implementations.
12945 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12946   eval 'as_fn_append ()
12947   {
12948     eval $1+=\$2
12949   }'
12950 else
12951   as_fn_append ()
12952   {
12953     eval $1=\$$1\$2
12954   }
12955 fi # as_fn_append
12956
12957 # as_fn_arith ARG...
12958 # ------------------
12959 # Perform arithmetic evaluation on the ARGs, and store the result in the
12960 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12961 # must be portable across $(()) and expr.
12962 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12963   eval 'as_fn_arith ()
12964   {
12965     as_val=$(( $* ))
12966   }'
12967 else
12968   as_fn_arith ()
12969   {
12970     as_val=`expr "$@" || test $? -eq 1`
12971   }
12972 fi # as_fn_arith
12973
12974
12975 if expr a : '\(a\)' >/dev/null 2>&1 &&
12976    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12977   as_expr=expr
12978 else
12979   as_expr=false
12980 fi
12981
12982 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12983   as_basename=basename
12984 else
12985   as_basename=false
12986 fi
12987
12988 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12989   as_dirname=dirname
12990 else
12991   as_dirname=false
12992 fi
12993
12994 as_me=`$as_basename -- "$0" ||
12995 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12996          X"$0" : 'X\(//\)$' \| \
12997          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12998 $as_echo X/"$0" |
12999     sed '/^.*\/\([^/][^/]*\)\/*$/{
13000             s//\1/
13001             q
13002           }
13003           /^X\/\(\/\/\)$/{
13004             s//\1/
13005             q
13006           }
13007           /^X\/\(\/\).*/{
13008             s//\1/
13009             q
13010           }
13011           s/.*/./; q'`
13012
13013 # Avoid depending upon Character Ranges.
13014 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13015 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13016 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13017 as_cr_digits='0123456789'
13018 as_cr_alnum=$as_cr_Letters$as_cr_digits
13019
13020 ECHO_C= ECHO_N= ECHO_T=
13021 case `echo -n x` in #(((((
13022 -n*)
13023   case `echo 'xy\c'` in
13024   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13025   xy)  ECHO_C='\c';;
13026   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13027        ECHO_T=' ';;
13028   esac;;
13029 *)
13030   ECHO_N='-n';;
13031 esac
13032
13033 rm -f conf$$ conf$$.exe conf$$.file
13034 if test -d conf$$.dir; then
13035   rm -f conf$$.dir/conf$$.file
13036 else
13037   rm -f conf$$.dir
13038   mkdir conf$$.dir 2>/dev/null
13039 fi
13040 if (echo >conf$$.file) 2>/dev/null; then
13041   if ln -s conf$$.file conf$$ 2>/dev/null; then
13042     as_ln_s='ln -s'
13043     # ... but there are two gotchas:
13044     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13045     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13046     # In both cases, we have to default to `cp -p'.
13047     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13048       as_ln_s='cp -p'
13049   elif ln conf$$.file conf$$ 2>/dev/null; then
13050     as_ln_s=ln
13051   else
13052     as_ln_s='cp -p'
13053   fi
13054 else
13055   as_ln_s='cp -p'
13056 fi
13057 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13058 rmdir conf$$.dir 2>/dev/null
13059
13060
13061 # as_fn_mkdir_p
13062 # -------------
13063 # Create "$as_dir" as a directory, including parents if necessary.
13064 as_fn_mkdir_p ()
13065 {
13066
13067   case $as_dir in #(
13068   -*) as_dir=./$as_dir;;
13069   esac
13070   test -d "$as_dir" || eval $as_mkdir_p || {
13071     as_dirs=
13072     while :; do
13073       case $as_dir in #(
13074       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13075       *) as_qdir=$as_dir;;
13076       esac
13077       as_dirs="'$as_qdir' $as_dirs"
13078       as_dir=`$as_dirname -- "$as_dir" ||
13079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13080          X"$as_dir" : 'X\(//\)[^/]' \| \
13081          X"$as_dir" : 'X\(//\)$' \| \
13082          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13083 $as_echo X"$as_dir" |
13084     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13085             s//\1/
13086             q
13087           }
13088           /^X\(\/\/\)[^/].*/{
13089             s//\1/
13090             q
13091           }
13092           /^X\(\/\/\)$/{
13093             s//\1/
13094             q
13095           }
13096           /^X\(\/\).*/{
13097             s//\1/
13098             q
13099           }
13100           s/.*/./; q'`
13101       test -d "$as_dir" && break
13102     done
13103     test -z "$as_dirs" || eval "mkdir $as_dirs"
13104   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13105
13106
13107 } # as_fn_mkdir_p
13108 if mkdir -p . 2>/dev/null; then
13109   as_mkdir_p='mkdir -p "$as_dir"'
13110 else
13111   test -d ./-p && rmdir ./-p
13112   as_mkdir_p=false
13113 fi
13114
13115 if test -x / >/dev/null 2>&1; then
13116   as_test_x='test -x'
13117 else
13118   if ls -dL / >/dev/null 2>&1; then
13119     as_ls_L_option=L
13120   else
13121     as_ls_L_option=
13122   fi
13123   as_test_x='
13124     eval sh -c '\''
13125       if test -d "$1"; then
13126         test -d "$1/.";
13127       else
13128         case $1 in #(
13129         -*)set "./$1";;
13130         esac;
13131         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13132         ???[sx]*):;;*)false;;esac;fi
13133     '\'' sh
13134   '
13135 fi
13136 as_executable_p=$as_test_x
13137
13138 # Sed expression to map a string onto a valid CPP name.
13139 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13140
13141 # Sed expression to map a string onto a valid variable name.
13142 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13143
13144
13145 exec 6>&1
13146 ## ----------------------------------- ##
13147 ## Main body of $CONFIG_STATUS script. ##
13148 ## ----------------------------------- ##
13149 _ASEOF
13150 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13151
13152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13153 # Save the log message, to keep $0 and so on meaningful, and to
13154 # report actual input values of CONFIG_FILES etc. instead of their
13155 # values after options handling.
13156 ac_log="
13157 This file was extended by $as_me, which was
13158 generated by GNU Autoconf 2.68.  Invocation command line was
13159
13160   CONFIG_FILES    = $CONFIG_FILES
13161   CONFIG_HEADERS  = $CONFIG_HEADERS
13162   CONFIG_LINKS    = $CONFIG_LINKS
13163   CONFIG_COMMANDS = $CONFIG_COMMANDS
13164   $ $0 $@
13165
13166 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13167 "
13168
13169 _ACEOF
13170
13171 case $ac_config_files in *"
13172 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13173 esac
13174
13175 case $ac_config_headers in *"
13176 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13177 esac
13178
13179
13180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13181 # Files that config.status was made for.
13182 config_files="$ac_config_files"
13183 config_headers="$ac_config_headers"
13184 config_commands="$ac_config_commands"
13185
13186 _ACEOF
13187
13188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13189 ac_cs_usage="\
13190 \`$as_me' instantiates files and other configuration actions
13191 from templates according to the current configuration.  Unless the files
13192 and actions are specified as TAGs, all are instantiated by default.
13193
13194 Usage: $0 [OPTION]... [TAG]...
13195
13196   -h, --help       print this help, then exit
13197   -V, --version    print version number and configuration settings, then exit
13198       --config     print configuration, then exit
13199   -q, --quiet, --silent
13200                    do not print progress messages
13201   -d, --debug      don't remove temporary files
13202       --recheck    update $as_me by reconfiguring in the same conditions
13203       --file=FILE[:TEMPLATE]
13204                    instantiate the configuration file FILE
13205       --header=FILE[:TEMPLATE]
13206                    instantiate the configuration header FILE
13207
13208 Configuration files:
13209 $config_files
13210
13211 Configuration headers:
13212 $config_headers
13213
13214 Configuration commands:
13215 $config_commands
13216
13217 Report bugs to the package provider."
13218
13219 _ACEOF
13220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13221 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13222 ac_cs_version="\\
13223 config.status
13224 configured by $0, generated by GNU Autoconf 2.68,
13225   with options \\"\$ac_cs_config\\"
13226
13227 Copyright (C) 2010 Free Software Foundation, Inc.
13228 This config.status script is free software; the Free Software Foundation
13229 gives unlimited permission to copy, distribute and modify it."
13230
13231 ac_pwd='$ac_pwd'
13232 srcdir='$srcdir'
13233 AWK='$AWK'
13234 test -n "\$AWK" || AWK=awk
13235 _ACEOF
13236
13237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13238 # The default lists apply if the user does not specify any file.
13239 ac_need_defaults=:
13240 while test $# != 0
13241 do
13242   case $1 in
13243   --*=?*)
13244     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13245     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13246     ac_shift=:
13247     ;;
13248   --*=)
13249     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13250     ac_optarg=
13251     ac_shift=:
13252     ;;
13253   *)
13254     ac_option=$1
13255     ac_optarg=$2
13256     ac_shift=shift
13257     ;;
13258   esac
13259
13260   case $ac_option in
13261   # Handling of the options.
13262   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13263     ac_cs_recheck=: ;;
13264   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13265     $as_echo "$ac_cs_version"; exit ;;
13266   --config | --confi | --conf | --con | --co | --c )
13267     $as_echo "$ac_cs_config"; exit ;;
13268   --debug | --debu | --deb | --de | --d | -d )
13269     debug=: ;;
13270   --file | --fil | --fi | --f )
13271     $ac_shift
13272     case $ac_optarg in
13273     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13274     '') as_fn_error $? "missing file argument" ;;
13275     esac
13276     as_fn_append CONFIG_FILES " '$ac_optarg'"
13277     ac_need_defaults=false;;
13278   --header | --heade | --head | --hea )
13279     $ac_shift
13280     case $ac_optarg in
13281     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13282     esac
13283     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13284     ac_need_defaults=false;;
13285   --he | --h)
13286     # Conflict between --help and --header
13287     as_fn_error $? "ambiguous option: \`$1'
13288 Try \`$0 --help' for more information.";;
13289   --help | --hel | -h )
13290     $as_echo "$ac_cs_usage"; exit ;;
13291   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13292   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13293     ac_cs_silent=: ;;
13294
13295   # This is an error.
13296   -*) as_fn_error $? "unrecognized option: \`$1'
13297 Try \`$0 --help' for more information." ;;
13298
13299   *) as_fn_append ac_config_targets " $1"
13300      ac_need_defaults=false ;;
13301
13302   esac
13303   shift
13304 done
13305
13306 ac_configure_extra_args=
13307
13308 if $ac_cs_silent; then
13309   exec 6>/dev/null
13310   ac_configure_extra_args="$ac_configure_extra_args --silent"
13311 fi
13312
13313 _ACEOF
13314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13315 if \$ac_cs_recheck; then
13316   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13317   shift
13318   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13319   CONFIG_SHELL='$SHELL'
13320   export CONFIG_SHELL
13321   exec "\$@"
13322 fi
13323
13324 _ACEOF
13325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13326 exec 5>>config.log
13327 {
13328   echo
13329   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13330 ## Running $as_me. ##
13331 _ASBOX
13332   $as_echo "$ac_log"
13333 } >&5
13334
13335 _ACEOF
13336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13337 #
13338 # INIT-COMMANDS
13339 #
13340
13341
13342 # The HP-UX ksh and POSIX shell print the target directory to stdout
13343 # if CDPATH is set.
13344 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13345
13346 sed_quote_subst='$sed_quote_subst'
13347 double_quote_subst='$double_quote_subst'
13348 delay_variable_subst='$delay_variable_subst'
13349 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13350 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13351 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13352 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13353 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13354 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13355 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13356 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13357 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13358 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13359 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13360 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13361 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13362 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13363 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13364 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13365 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13366 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13367 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13368 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13369 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13370 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13371 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13372 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13373 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13374 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13375 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13376 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13377 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13378 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13379 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13380 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13381 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13382 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13383 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13384 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13385 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13386 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13387 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13388 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13389 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13390 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13391 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13392 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13393 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13394 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13395 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13396 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13397 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13398 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13399 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13400 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13401 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13402 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13403 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13404 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"`'
13405 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13406 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13407 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13408 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13409 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13410 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13411 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13412 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13413 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13414 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13415 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13416 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13417 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13418 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13419 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13420 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13421 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13422 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13423 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13424 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13425 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13426 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13427 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13428 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13429 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13430 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13431 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13432 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13433 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13434 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13435 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13436 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13437 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13438 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13439 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13440 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13441 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13442 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13443 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13444 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13445 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13446 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13447 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13448 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13449 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13450 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13451 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13452 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13453 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13454 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13455 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13456 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13457 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13458 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13459 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13460 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13461 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13462 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13463 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13464 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13465 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13466 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13467 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13468 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13469 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13470 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13471 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13472 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13473 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13474 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13475 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13476 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13477 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13478 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13479
13480 LTCC='$LTCC'
13481 LTCFLAGS='$LTCFLAGS'
13482 compiler='$compiler_DEFAULT'
13483
13484 # A function that is used when there is no print builtin or printf.
13485 func_fallback_echo ()
13486 {
13487   eval 'cat <<_LTECHO_EOF
13488 \$1
13489 _LTECHO_EOF'
13490 }
13491
13492 # Quote evaled strings.
13493 for var in SHELL \
13494 ECHO \
13495 SED \
13496 GREP \
13497 EGREP \
13498 FGREP \
13499 LD \
13500 NM \
13501 LN_S \
13502 lt_SP2NL \
13503 lt_NL2SP \
13504 reload_flag \
13505 OBJDUMP \
13506 deplibs_check_method \
13507 file_magic_cmd \
13508 file_magic_glob \
13509 want_nocaseglob \
13510 DLLTOOL \
13511 sharedlib_from_linklib_cmd \
13512 AR \
13513 AR_FLAGS \
13514 archiver_list_spec \
13515 STRIP \
13516 RANLIB \
13517 CC \
13518 CFLAGS \
13519 compiler \
13520 lt_cv_sys_global_symbol_pipe \
13521 lt_cv_sys_global_symbol_to_cdecl \
13522 lt_cv_sys_global_symbol_to_c_name_address \
13523 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13524 nm_file_list_spec \
13525 lt_prog_compiler_no_builtin_flag \
13526 lt_prog_compiler_pic \
13527 lt_prog_compiler_wl \
13528 lt_prog_compiler_static \
13529 lt_cv_prog_compiler_c_o \
13530 need_locks \
13531 MANIFEST_TOOL \
13532 DSYMUTIL \
13533 NMEDIT \
13534 LIPO \
13535 OTOOL \
13536 OTOOL64 \
13537 shrext_cmds \
13538 export_dynamic_flag_spec \
13539 whole_archive_flag_spec \
13540 compiler_needs_object \
13541 with_gnu_ld \
13542 allow_undefined_flag \
13543 no_undefined_flag \
13544 hardcode_libdir_flag_spec \
13545 hardcode_libdir_flag_spec_ld \
13546 hardcode_libdir_separator \
13547 exclude_expsyms \
13548 include_expsyms \
13549 file_list_spec \
13550 variables_saved_for_relink \
13551 libname_spec \
13552 library_names_spec \
13553 soname_spec \
13554 install_override_mode \
13555 finish_eval \
13556 old_striplib \
13557 striplib; do
13558     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13559     *[\\\\\\\`\\"\\\$]*)
13560       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13561       ;;
13562     *)
13563       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13564       ;;
13565     esac
13566 done
13567
13568 # Double-quote double-evaled strings.
13569 for var in reload_cmds \
13570 old_postinstall_cmds \
13571 old_postuninstall_cmds \
13572 old_archive_cmds \
13573 extract_expsyms_cmds \
13574 old_archive_from_new_cmds \
13575 old_archive_from_expsyms_cmds \
13576 archive_cmds \
13577 archive_expsym_cmds \
13578 module_cmds \
13579 module_expsym_cmds \
13580 export_symbols_cmds \
13581 prelink_cmds \
13582 postlink_cmds \
13583 postinstall_cmds \
13584 postuninstall_cmds \
13585 finish_cmds \
13586 sys_lib_search_path_spec \
13587 sys_lib_dlsearch_path_spec; do
13588     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13589     *[\\\\\\\`\\"\\\$]*)
13590       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13591       ;;
13592     *)
13593       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13594       ;;
13595     esac
13596 done
13597
13598 ac_aux_dir='$ac_aux_dir'
13599 xsi_shell='$xsi_shell'
13600 lt_shell_append='$lt_shell_append'
13601
13602 # See if we are running on zsh, and set the options which allow our
13603 # commands through without removal of \ escapes INIT.
13604 if test -n "\${ZSH_VERSION+set}" ; then
13605    setopt NO_GLOB_SUBST
13606 fi
13607
13608
13609     PACKAGE='$PACKAGE'
13610     VERSION='$VERSION'
13611     TIMESTAMP='$TIMESTAMP'
13612     RM='$RM'
13613     ofile='$ofile'
13614
13615
13616
13617
13618 _ACEOF
13619
13620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13621
13622 # Handling of arguments.
13623 for ac_config_target in $ac_config_targets
13624 do
13625   case $ac_config_target in
13626     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13627     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13628     "include/builddefs") CONFIG_FILES="$CONFIG_FILES include/builddefs" ;;
13629
13630   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13631   esac
13632 done
13633
13634
13635 # If the user did not use the arguments to specify the items to instantiate,
13636 # then the envvar interface is used.  Set only those that are not.
13637 # We use the long form for the default assignment because of an extremely
13638 # bizarre bug on SunOS 4.1.3.
13639 if $ac_need_defaults; then
13640   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13641   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13642   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13643 fi
13644
13645 # Have a temporary directory for convenience.  Make it in the build tree
13646 # simply because there is no reason against having it here, and in addition,
13647 # creating and moving files from /tmp can sometimes cause problems.
13648 # Hook for its removal unless debugging.
13649 # Note that there is a small window in which the directory will not be cleaned:
13650 # after its creation but before its name has been assigned to `$tmp'.
13651 $debug ||
13652 {
13653   tmp= ac_tmp=
13654   trap 'exit_status=$?
13655   : "${ac_tmp:=$tmp}"
13656   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13657 ' 0
13658   trap 'as_fn_exit 1' 1 2 13 15
13659 }
13660 # Create a (secure) tmp directory for tmp files.
13661
13662 {
13663   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13664   test -d "$tmp"
13665 }  ||
13666 {
13667   tmp=./conf$$-$RANDOM
13668   (umask 077 && mkdir "$tmp")
13669 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13670 ac_tmp=$tmp
13671
13672 # Set up the scripts for CONFIG_FILES section.
13673 # No need to generate them if there are no CONFIG_FILES.
13674 # This happens for instance with `./config.status config.h'.
13675 if test -n "$CONFIG_FILES"; then
13676
13677
13678 ac_cr=`echo X | tr X '\015'`
13679 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13680 # But we know of no other shell where ac_cr would be empty at this
13681 # point, so we can use a bashism as a fallback.
13682 if test "x$ac_cr" = x; then
13683   eval ac_cr=\$\'\\r\'
13684 fi
13685 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13686 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13687   ac_cs_awk_cr='\\r'
13688 else
13689   ac_cs_awk_cr=$ac_cr
13690 fi
13691
13692 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13693 _ACEOF
13694
13695
13696 {
13697   echo "cat >conf$$subs.awk <<_ACEOF" &&
13698   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13699   echo "_ACEOF"
13700 } >conf$$subs.sh ||
13701   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13702 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13703 ac_delim='%!_!# '
13704 for ac_last_try in false false false false false :; do
13705   . ./conf$$subs.sh ||
13706     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13707
13708   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13709   if test $ac_delim_n = $ac_delim_num; then
13710     break
13711   elif $ac_last_try; then
13712     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13713   else
13714     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13715   fi
13716 done
13717 rm -f conf$$subs.sh
13718
13719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13720 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13721 _ACEOF
13722 sed -n '
13723 h
13724 s/^/S["/; s/!.*/"]=/
13725 p
13726 g
13727 s/^[^!]*!//
13728 :repl
13729 t repl
13730 s/'"$ac_delim"'$//
13731 t delim
13732 :nl
13733 h
13734 s/\(.\{148\}\)..*/\1/
13735 t more1
13736 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13737 p
13738 n
13739 b repl
13740 :more1
13741 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13742 p
13743 g
13744 s/.\{148\}//
13745 t nl
13746 :delim
13747 h
13748 s/\(.\{148\}\)..*/\1/
13749 t more2
13750 s/["\\]/\\&/g; s/^/"/; s/$/"/
13751 p
13752 b
13753 :more2
13754 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13755 p
13756 g
13757 s/.\{148\}//
13758 t delim
13759 ' <conf$$subs.awk | sed '
13760 /^[^""]/{
13761   N
13762   s/\n//
13763 }
13764 ' >>$CONFIG_STATUS || ac_write_fail=1
13765 rm -f conf$$subs.awk
13766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13767 _ACAWK
13768 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13769   for (key in S) S_is_set[key] = 1
13770   FS = "\a"
13771
13772 }
13773 {
13774   line = $ 0
13775   nfields = split(line, field, "@")
13776   substed = 0
13777   len = length(field[1])
13778   for (i = 2; i < nfields; i++) {
13779     key = field[i]
13780     keylen = length(key)
13781     if (S_is_set[key]) {
13782       value = S[key]
13783       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13784       len += length(value) + length(field[++i])
13785       substed = 1
13786     } else
13787       len += 1 + keylen
13788   }
13789
13790   print line
13791 }
13792
13793 _ACAWK
13794 _ACEOF
13795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13796 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13797   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13798 else
13799   cat
13800 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13801   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13802 _ACEOF
13803
13804 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13805 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13806 # trailing colons and then remove the whole line if VPATH becomes empty
13807 # (actually we leave an empty line to preserve line numbers).
13808 if test "x$srcdir" = x.; then
13809   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13810 h
13811 s///
13812 s/^/:/
13813 s/[      ]*$/:/
13814 s/:\$(srcdir):/:/g
13815 s/:\${srcdir}:/:/g
13816 s/:@srcdir@:/:/g
13817 s/^:*//
13818 s/:*$//
13819 x
13820 s/\(=[   ]*\).*/\1/
13821 G
13822 s/\n//
13823 s/^[^=]*=[       ]*$//
13824 }'
13825 fi
13826
13827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13828 fi # test -n "$CONFIG_FILES"
13829
13830 # Set up the scripts for CONFIG_HEADERS section.
13831 # No need to generate them if there are no CONFIG_HEADERS.
13832 # This happens for instance with `./config.status Makefile'.
13833 if test -n "$CONFIG_HEADERS"; then
13834 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13835 BEGIN {
13836 _ACEOF
13837
13838 # Transform confdefs.h into an awk script `defines.awk', embedded as
13839 # here-document in config.status, that substitutes the proper values into
13840 # config.h.in to produce config.h.
13841
13842 # Create a delimiter string that does not exist in confdefs.h, to ease
13843 # handling of long lines.
13844 ac_delim='%!_!# '
13845 for ac_last_try in false false :; do
13846   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13847   if test -z "$ac_tt"; then
13848     break
13849   elif $ac_last_try; then
13850     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13851   else
13852     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13853   fi
13854 done
13855
13856 # For the awk script, D is an array of macro values keyed by name,
13857 # likewise P contains macro parameters if any.  Preserve backslash
13858 # newline sequences.
13859
13860 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13861 sed -n '
13862 s/.\{148\}/&'"$ac_delim"'/g
13863 t rset
13864 :rset
13865 s/^[     ]*#[    ]*define[       ][      ]*/ /
13866 t def
13867 d
13868 :def
13869 s/\\$//
13870 t bsnl
13871 s/["\\]/\\&/g
13872 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13873 D["\1"]=" \3"/p
13874 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13875 d
13876 :bsnl
13877 s/["\\]/\\&/g
13878 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13879 D["\1"]=" \3\\\\\\n"\\/p
13880 t cont
13881 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13882 t cont
13883 d
13884 :cont
13885 n
13886 s/.\{148\}/&'"$ac_delim"'/g
13887 t clear
13888 :clear
13889 s/\\$//
13890 t bsnlc
13891 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13892 d
13893 :bsnlc
13894 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13895 b cont
13896 ' <confdefs.h | sed '
13897 s/'"$ac_delim"'/"\\\
13898 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13899
13900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13901   for (key in D) D_is_set[key] = 1
13902   FS = "\a"
13903 }
13904 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13905   line = \$ 0
13906   split(line, arg, " ")
13907   if (arg[1] == "#") {
13908     defundef = arg[2]
13909     mac1 = arg[3]
13910   } else {
13911     defundef = substr(arg[1], 2)
13912     mac1 = arg[2]
13913   }
13914   split(mac1, mac2, "(") #)
13915   macro = mac2[1]
13916   prefix = substr(line, 1, index(line, defundef) - 1)
13917   if (D_is_set[macro]) {
13918     # Preserve the white space surrounding the "#".
13919     print prefix "define", macro P[macro] D[macro]
13920     next
13921   } else {
13922     # Replace #undef with comments.  This is necessary, for example,
13923     # in the case of _POSIX_SOURCE, which is predefined and required
13924     # on some systems where configure will not decide to define it.
13925     if (defundef == "undef") {
13926       print "/*", prefix defundef, macro, "*/"
13927       next
13928     }
13929   }
13930 }
13931 { print }
13932 _ACAWK
13933 _ACEOF
13934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13935   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13936 fi # test -n "$CONFIG_HEADERS"
13937
13938
13939 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13940 shift
13941 for ac_tag
13942 do
13943   case $ac_tag in
13944   :[FHLC]) ac_mode=$ac_tag; continue;;
13945   esac
13946   case $ac_mode$ac_tag in
13947   :[FHL]*:*);;
13948   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13949   :[FH]-) ac_tag=-:-;;
13950   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13951   esac
13952   ac_save_IFS=$IFS
13953   IFS=:
13954   set x $ac_tag
13955   IFS=$ac_save_IFS
13956   shift
13957   ac_file=$1
13958   shift
13959
13960   case $ac_mode in
13961   :L) ac_source=$1;;
13962   :[FH])
13963     ac_file_inputs=
13964     for ac_f
13965     do
13966       case $ac_f in
13967       -) ac_f="$ac_tmp/stdin";;
13968       *) # Look for the file first in the build tree, then in the source tree
13969          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13970          # because $ac_f cannot contain `:'.
13971          test -f "$ac_f" ||
13972            case $ac_f in
13973            [\\/$]*) false;;
13974            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13975            esac ||
13976            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13977       esac
13978       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13979       as_fn_append ac_file_inputs " '$ac_f'"
13980     done
13981
13982     # Let's still pretend it is `configure' which instantiates (i.e., don't
13983     # use $as_me), people would be surprised to read:
13984     #    /* config.h.  Generated by config.status.  */
13985     configure_input='Generated from '`
13986           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13987         `' by configure.'
13988     if test x"$ac_file" != x-; then
13989       configure_input="$ac_file.  $configure_input"
13990       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13991 $as_echo "$as_me: creating $ac_file" >&6;}
13992     fi
13993     # Neutralize special characters interpreted by sed in replacement strings.
13994     case $configure_input in #(
13995     *\&* | *\|* | *\\* )
13996        ac_sed_conf_input=`$as_echo "$configure_input" |
13997        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13998     *) ac_sed_conf_input=$configure_input;;
13999     esac
14000
14001     case $ac_tag in
14002     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14003       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14004     esac
14005     ;;
14006   esac
14007
14008   ac_dir=`$as_dirname -- "$ac_file" ||
14009 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14010          X"$ac_file" : 'X\(//\)[^/]' \| \
14011          X"$ac_file" : 'X\(//\)$' \| \
14012          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14013 $as_echo X"$ac_file" |
14014     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14015             s//\1/
14016             q
14017           }
14018           /^X\(\/\/\)[^/].*/{
14019             s//\1/
14020             q
14021           }
14022           /^X\(\/\/\)$/{
14023             s//\1/
14024             q
14025           }
14026           /^X\(\/\).*/{
14027             s//\1/
14028             q
14029           }
14030           s/.*/./; q'`
14031   as_dir="$ac_dir"; as_fn_mkdir_p
14032   ac_builddir=.
14033
14034 case "$ac_dir" in
14035 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14036 *)
14037   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14038   # A ".." for each directory in $ac_dir_suffix.
14039   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14040   case $ac_top_builddir_sub in
14041   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14042   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14043   esac ;;
14044 esac
14045 ac_abs_top_builddir=$ac_pwd
14046 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14047 # for backward compatibility:
14048 ac_top_builddir=$ac_top_build_prefix
14049
14050 case $srcdir in
14051   .)  # We are building in place.
14052     ac_srcdir=.
14053     ac_top_srcdir=$ac_top_builddir_sub
14054     ac_abs_top_srcdir=$ac_pwd ;;
14055   [\\/]* | ?:[\\/]* )  # Absolute name.
14056     ac_srcdir=$srcdir$ac_dir_suffix;
14057     ac_top_srcdir=$srcdir
14058     ac_abs_top_srcdir=$srcdir ;;
14059   *) # Relative name.
14060     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14061     ac_top_srcdir=$ac_top_build_prefix$srcdir
14062     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14063 esac
14064 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14065
14066
14067   case $ac_mode in
14068   :F)
14069   #
14070   # CONFIG_FILE
14071   #
14072
14073 _ACEOF
14074
14075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14076 # If the template does not know about datarootdir, expand it.
14077 # FIXME: This hack should be removed a few years after 2.60.
14078 ac_datarootdir_hack=; ac_datarootdir_seen=
14079 ac_sed_dataroot='
14080 /datarootdir/ {
14081   p
14082   q
14083 }
14084 /@datadir@/p
14085 /@docdir@/p
14086 /@infodir@/p
14087 /@localedir@/p
14088 /@mandir@/p'
14089 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14090 *datarootdir*) ac_datarootdir_seen=yes;;
14091 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14092   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14093 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14094 _ACEOF
14095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14096   ac_datarootdir_hack='
14097   s&@datadir@&$datadir&g
14098   s&@docdir@&$docdir&g
14099   s&@infodir@&$infodir&g
14100   s&@localedir@&$localedir&g
14101   s&@mandir@&$mandir&g
14102   s&\\\${datarootdir}&$datarootdir&g' ;;
14103 esac
14104 _ACEOF
14105
14106 # Neutralize VPATH when `$srcdir' = `.'.
14107 # Shell code in configure.ac might set extrasub.
14108 # FIXME: do we really want to maintain this feature?
14109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14110 ac_sed_extra="$ac_vpsub
14111 $extrasub
14112 _ACEOF
14113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14114 :t
14115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14116 s|@configure_input@|$ac_sed_conf_input|;t t
14117 s&@top_builddir@&$ac_top_builddir_sub&;t t
14118 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14119 s&@srcdir@&$ac_srcdir&;t t
14120 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14121 s&@top_srcdir@&$ac_top_srcdir&;t t
14122 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14123 s&@builddir@&$ac_builddir&;t t
14124 s&@abs_builddir@&$ac_abs_builddir&;t t
14125 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14126 $ac_datarootdir_hack
14127 "
14128 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14129   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14130
14131 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14132   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14133   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14134       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14135   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14136 which seems to be undefined.  Please make sure it is defined" >&5
14137 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14138 which seems to be undefined.  Please make sure it is defined" >&2;}
14139
14140   rm -f "$ac_tmp/stdin"
14141   case $ac_file in
14142   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14143   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14144   esac \
14145   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14146  ;;
14147   :H)
14148   #
14149   # CONFIG_HEADER
14150   #
14151   if test x"$ac_file" != x-; then
14152     {
14153       $as_echo "/* $configure_input  */" \
14154       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14155     } >"$ac_tmp/config.h" \
14156       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14157     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14158       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14159 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14160     else
14161       rm -f "$ac_file"
14162       mv "$ac_tmp/config.h" "$ac_file" \
14163         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14164     fi
14165   else
14166     $as_echo "/* $configure_input  */" \
14167       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14168       || as_fn_error $? "could not create -" "$LINENO" 5
14169   fi
14170  ;;
14171
14172   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14173 $as_echo "$as_me: executing $ac_file commands" >&6;}
14174  ;;
14175   esac
14176
14177
14178   case $ac_file$ac_mode in
14179     "libtool":C)
14180
14181     # See if we are running on zsh, and set the options which allow our
14182     # commands through without removal of \ escapes.
14183     if test -n "${ZSH_VERSION+set}" ; then
14184       setopt NO_GLOB_SUBST
14185     fi
14186
14187     cfgfile="${ofile}T"
14188     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14189     $RM "$cfgfile"
14190
14191     cat <<_LT_EOF >> "$cfgfile"
14192 #! $SHELL
14193
14194 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14195 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14196 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14197 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14198 #
14199 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14200 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14201 #                 Inc.
14202 #   Written by Gordon Matzigkeit, 1996
14203 #
14204 #   This file is part of GNU Libtool.
14205 #
14206 # GNU Libtool is free software; you can redistribute it and/or
14207 # modify it under the terms of the GNU General Public License as
14208 # published by the Free Software Foundation; either version 2 of
14209 # the License, or (at your option) any later version.
14210 #
14211 # As a special exception to the GNU General Public License,
14212 # if you distribute this file as part of a program or library that
14213 # is built using GNU Libtool, you may include this file under the
14214 # same distribution terms that you use for the rest of that program.
14215 #
14216 # GNU Libtool is distributed in the hope that it will be useful,
14217 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14218 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14219 # GNU General Public License for more details.
14220 #
14221 # You should have received a copy of the GNU General Public License
14222 # along with GNU Libtool; see the file COPYING.  If not, a copy
14223 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14224 # obtained by writing to the Free Software Foundation, Inc.,
14225 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14226
14227
14228 # The names of the tagged configurations supported by this script.
14229 available_tags=""
14230
14231 # ### BEGIN LIBTOOL CONFIG
14232
14233 # Which release of libtool.m4 was used?
14234 macro_version=$macro_version
14235 macro_revision=$macro_revision
14236
14237 # Whether or not to build shared libraries.
14238 build_libtool_libs=$enable_shared
14239
14240 # Whether or not to build static libraries.
14241 build_old_libs=$enable_static
14242
14243 # What type of objects to build.
14244 pic_mode=$pic_mode
14245
14246 # Whether or not to optimize for fast installation.
14247 fast_install=$enable_fast_install
14248
14249 # Shell to use when invoking shell scripts.
14250 SHELL=$lt_SHELL
14251
14252 # An echo program that protects backslashes.
14253 ECHO=$lt_ECHO
14254
14255 # The host system.
14256 host_alias=$host_alias
14257 host=$host
14258 host_os=$host_os
14259
14260 # The build system.
14261 build_alias=$build_alias
14262 build=$build
14263 build_os=$build_os
14264
14265 # A sed program that does not truncate output.
14266 SED=$lt_SED
14267
14268 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14269 Xsed="\$SED -e 1s/^X//"
14270
14271 # A grep program that handles long lines.
14272 GREP=$lt_GREP
14273
14274 # An ERE matcher.
14275 EGREP=$lt_EGREP
14276
14277 # A literal string matcher.
14278 FGREP=$lt_FGREP
14279
14280 # A BSD- or MS-compatible name lister.
14281 NM=$lt_NM
14282
14283 # Whether we need soft or hard links.
14284 LN_S=$lt_LN_S
14285
14286 # What is the maximum length of a command?
14287 max_cmd_len=$max_cmd_len
14288
14289 # Object file suffix (normally "o").
14290 objext=$ac_objext
14291
14292 # Executable file suffix (normally "").
14293 exeext=$exeext
14294
14295 # whether the shell understands "unset".
14296 lt_unset=$lt_unset
14297
14298 # turn spaces into newlines.
14299 SP2NL=$lt_lt_SP2NL
14300
14301 # turn newlines into spaces.
14302 NL2SP=$lt_lt_NL2SP
14303
14304 # convert \$build file names to \$host format.
14305 to_host_file_cmd=$lt_cv_to_host_file_cmd
14306
14307 # convert \$build files to toolchain format.
14308 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14309
14310 # An object symbol dumper.
14311 OBJDUMP=$lt_OBJDUMP
14312
14313 # Method to check whether dependent libraries are shared objects.
14314 deplibs_check_method=$lt_deplibs_check_method
14315
14316 # Command to use when deplibs_check_method = "file_magic".
14317 file_magic_cmd=$lt_file_magic_cmd
14318
14319 # How to find potential files when deplibs_check_method = "file_magic".
14320 file_magic_glob=$lt_file_magic_glob
14321
14322 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14323 want_nocaseglob=$lt_want_nocaseglob
14324
14325 # DLL creation program.
14326 DLLTOOL=$lt_DLLTOOL
14327
14328 # Command to associate shared and link libraries.
14329 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14330
14331 # The archiver.
14332 AR=$lt_AR
14333
14334 # Flags to create an archive.
14335 AR_FLAGS=$lt_AR_FLAGS
14336
14337 # How to feed a file listing to the archiver.
14338 archiver_list_spec=$lt_archiver_list_spec
14339
14340 # A symbol stripping program.
14341 STRIP=$lt_STRIP
14342
14343 # Commands used to install an old-style archive.
14344 RANLIB=$lt_RANLIB
14345 old_postinstall_cmds=$lt_old_postinstall_cmds
14346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14347
14348 # Whether to use a lock for old archive extraction.
14349 lock_old_archive_extraction=$lock_old_archive_extraction
14350
14351 # A C compiler.
14352 LTCC=$lt_CC
14353
14354 # LTCC compiler flags.
14355 LTCFLAGS=$lt_CFLAGS
14356
14357 # Take the output of nm and produce a listing of raw symbols and C names.
14358 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14359
14360 # Transform the output of nm in a proper C declaration.
14361 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14362
14363 # Transform the output of nm in a C name address pair.
14364 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14365
14366 # Transform the output of nm in a C name address pair when lib prefix is needed.
14367 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14368
14369 # Specify filename containing input files for \$NM.
14370 nm_file_list_spec=$lt_nm_file_list_spec
14371
14372 # The root where to search for dependent libraries,and in which our libraries should be installed.
14373 lt_sysroot=$lt_sysroot
14374
14375 # The name of the directory that contains temporary libtool files.
14376 objdir=$objdir
14377
14378 # Used to examine libraries when file_magic_cmd begins with "file".
14379 MAGIC_CMD=$MAGIC_CMD
14380
14381 # Must we lock files when doing compilation?
14382 need_locks=$lt_need_locks
14383
14384 # Manifest tool.
14385 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14386
14387 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14388 DSYMUTIL=$lt_DSYMUTIL
14389
14390 # Tool to change global to local symbols on Mac OS X.
14391 NMEDIT=$lt_NMEDIT
14392
14393 # Tool to manipulate fat objects and archives on Mac OS X.
14394 LIPO=$lt_LIPO
14395
14396 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14397 OTOOL=$lt_OTOOL
14398
14399 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14400 OTOOL64=$lt_OTOOL64
14401
14402 # Old archive suffix (normally "a").
14403 libext=$libext
14404
14405 # Shared library suffix (normally ".so").
14406 shrext_cmds=$lt_shrext_cmds
14407
14408 # The commands to extract the exported symbol list from a shared archive.
14409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14410
14411 # Variables whose values should be saved in libtool wrapper scripts and
14412 # restored at link time.
14413 variables_saved_for_relink=$lt_variables_saved_for_relink
14414
14415 # Do we need the "lib" prefix for modules?
14416 need_lib_prefix=$need_lib_prefix
14417
14418 # Do we need a version for libraries?
14419 need_version=$need_version
14420
14421 # Library versioning type.
14422 version_type=$version_type
14423
14424 # Shared library runtime path variable.
14425 runpath_var=$runpath_var
14426
14427 # Shared library path variable.
14428 shlibpath_var=$shlibpath_var
14429
14430 # Is shlibpath searched before the hard-coded library search path?
14431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14432
14433 # Format of library name prefix.
14434 libname_spec=$lt_libname_spec
14435
14436 # List of archive names.  First name is the real one, the rest are links.
14437 # The last name is the one that the linker finds with -lNAME
14438 library_names_spec=$lt_library_names_spec
14439
14440 # The coded name of the library, if different from the real name.
14441 soname_spec=$lt_soname_spec
14442
14443 # Permission mode override for installation of shared libraries.
14444 install_override_mode=$lt_install_override_mode
14445
14446 # Command to use after installation of a shared archive.
14447 postinstall_cmds=$lt_postinstall_cmds
14448
14449 # Command to use after uninstallation of a shared archive.
14450 postuninstall_cmds=$lt_postuninstall_cmds
14451
14452 # Commands used to finish a libtool library installation in a directory.
14453 finish_cmds=$lt_finish_cmds
14454
14455 # As "finish_cmds", except a single script fragment to be evaled but
14456 # not shown.
14457 finish_eval=$lt_finish_eval
14458
14459 # Whether we should hardcode library paths into libraries.
14460 hardcode_into_libs=$hardcode_into_libs
14461
14462 # Compile-time system search path for libraries.
14463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14464
14465 # Run-time system search path for libraries.
14466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14467
14468 # Whether dlopen is supported.
14469 dlopen_support=$enable_dlopen
14470
14471 # Whether dlopen of programs is supported.
14472 dlopen_self=$enable_dlopen_self
14473
14474 # Whether dlopen of statically linked programs is supported.
14475 dlopen_self_static=$enable_dlopen_self_static
14476
14477 # Commands to strip libraries.
14478 old_striplib=$lt_old_striplib
14479 striplib=$lt_striplib
14480
14481
14482 # The linker used to build libraries.
14483 LD=$lt_LD
14484
14485 # How to create reloadable object files.
14486 reload_flag=$lt_reload_flag
14487 reload_cmds=$lt_reload_cmds
14488
14489 # Commands used to build an old-style archive.
14490 old_archive_cmds=$lt_old_archive_cmds
14491
14492 # A language specific compiler.
14493 CC=$lt_compiler
14494
14495 # Is the compiler the GNU compiler?
14496 with_gcc=$GCC
14497
14498 # Compiler flag to turn off builtin functions.
14499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14500
14501 # Additional compiler flags for building library objects.
14502 pic_flag=$lt_lt_prog_compiler_pic
14503
14504 # How to pass a linker flag through the compiler.
14505 wl=$lt_lt_prog_compiler_wl
14506
14507 # Compiler flag to prevent dynamic linking.
14508 link_static_flag=$lt_lt_prog_compiler_static
14509
14510 # Does compiler simultaneously support -c and -o options?
14511 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14512
14513 # Whether or not to add -lc for building shared libraries.
14514 build_libtool_need_lc=$archive_cmds_need_lc
14515
14516 # Whether or not to disallow shared libs when runtime libs are static.
14517 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14518
14519 # Compiler flag to allow reflexive dlopens.
14520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14521
14522 # Compiler flag to generate shared objects directly from archives.
14523 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14524
14525 # Whether the compiler copes with passing no objects directly.
14526 compiler_needs_object=$lt_compiler_needs_object
14527
14528 # Create an old-style archive from a shared archive.
14529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14530
14531 # Create a temporary old-style archive to link instead of a shared archive.
14532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14533
14534 # Commands used to build a shared archive.
14535 archive_cmds=$lt_archive_cmds
14536 archive_expsym_cmds=$lt_archive_expsym_cmds
14537
14538 # Commands used to build a loadable module if different from building
14539 # a shared archive.
14540 module_cmds=$lt_module_cmds
14541 module_expsym_cmds=$lt_module_expsym_cmds
14542
14543 # Whether we are building with GNU ld or not.
14544 with_gnu_ld=$lt_with_gnu_ld
14545
14546 # Flag that allows shared libraries with undefined symbols to be built.
14547 allow_undefined_flag=$lt_allow_undefined_flag
14548
14549 # Flag that enforces no undefined symbols.
14550 no_undefined_flag=$lt_no_undefined_flag
14551
14552 # Flag to hardcode \$libdir into a binary during linking.
14553 # This must work even if \$libdir does not exist
14554 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14555
14556 # If ld is used when linking, flag to hardcode \$libdir into a binary
14557 # during linking.  This must work even if \$libdir does not exist.
14558 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14559
14560 # Whether we need a single "-rpath" flag with a separated argument.
14561 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14562
14563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14564 # DIR into the resulting binary.
14565 hardcode_direct=$hardcode_direct
14566
14567 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14568 # DIR into the resulting binary and the resulting library dependency is
14569 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14570 # library is relocated.
14571 hardcode_direct_absolute=$hardcode_direct_absolute
14572
14573 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14574 # into the resulting binary.
14575 hardcode_minus_L=$hardcode_minus_L
14576
14577 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14578 # into the resulting binary.
14579 hardcode_shlibpath_var=$hardcode_shlibpath_var
14580
14581 # Set to "yes" if building a shared library automatically hardcodes DIR
14582 # into the library and all subsequent libraries and executables linked
14583 # against it.
14584 hardcode_automatic=$hardcode_automatic
14585
14586 # Set to yes if linker adds runtime paths of dependent libraries
14587 # to runtime path list.
14588 inherit_rpath=$inherit_rpath
14589
14590 # Whether libtool must link a program against all its dependency libraries.
14591 link_all_deplibs=$link_all_deplibs
14592
14593 # Set to "yes" if exported symbols are required.
14594 always_export_symbols=$always_export_symbols
14595
14596 # The commands to list exported symbols.
14597 export_symbols_cmds=$lt_export_symbols_cmds
14598
14599 # Symbols that should not be listed in the preloaded symbols.
14600 exclude_expsyms=$lt_exclude_expsyms
14601
14602 # Symbols that must always be exported.
14603 include_expsyms=$lt_include_expsyms
14604
14605 # Commands necessary for linking programs (against libraries) with templates.
14606 prelink_cmds=$lt_prelink_cmds
14607
14608 # Commands necessary for finishing linking programs.
14609 postlink_cmds=$lt_postlink_cmds
14610
14611 # Specify filename containing input files.
14612 file_list_spec=$lt_file_list_spec
14613
14614 # How to hardcode a shared library path into an executable.
14615 hardcode_action=$hardcode_action
14616
14617 # ### END LIBTOOL CONFIG
14618
14619 _LT_EOF
14620
14621   case $host_os in
14622   aix3*)
14623     cat <<\_LT_EOF >> "$cfgfile"
14624 # AIX sometimes has problems with the GCC collect2 program.  For some
14625 # reason, if we set the COLLECT_NAMES environment variable, the problems
14626 # vanish in a puff of smoke.
14627 if test "X${COLLECT_NAMES+set}" != Xset; then
14628   COLLECT_NAMES=
14629   export COLLECT_NAMES
14630 fi
14631 _LT_EOF
14632     ;;
14633   esac
14634
14635
14636 ltmain="$ac_aux_dir/ltmain.sh"
14637
14638
14639   # We use sed instead of cat because bash on DJGPP gets confused if
14640   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14641   # text mode, it properly converts lines to CR/LF.  This bash problem
14642   # is reportedly fixed, but why not run on old versions too?
14643   sed '$q' "$ltmain" >> "$cfgfile" \
14644      || (rm -f "$cfgfile"; exit 1)
14645
14646   if test x"$xsi_shell" = xyes; then
14647   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14648 func_dirname ()\
14649 {\
14650 \    case ${1} in\
14651 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14652 \      *  ) func_dirname_result="${3}" ;;\
14653 \    esac\
14654 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14655   && mv -f "$cfgfile.tmp" "$cfgfile" \
14656     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14657 test 0 -eq $? || _lt_function_replace_fail=:
14658
14659
14660   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14661 func_basename ()\
14662 {\
14663 \    func_basename_result="${1##*/}"\
14664 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14665   && mv -f "$cfgfile.tmp" "$cfgfile" \
14666     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14667 test 0 -eq $? || _lt_function_replace_fail=:
14668
14669
14670   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14671 func_dirname_and_basename ()\
14672 {\
14673 \    case ${1} in\
14674 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14675 \      *  ) func_dirname_result="${3}" ;;\
14676 \    esac\
14677 \    func_basename_result="${1##*/}"\
14678 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14679   && mv -f "$cfgfile.tmp" "$cfgfile" \
14680     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14681 test 0 -eq $? || _lt_function_replace_fail=:
14682
14683
14684   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14685 func_stripname ()\
14686 {\
14687 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14688 \    # positional parameters, so assign one to ordinary parameter first.\
14689 \    func_stripname_result=${3}\
14690 \    func_stripname_result=${func_stripname_result#"${1}"}\
14691 \    func_stripname_result=${func_stripname_result%"${2}"}\
14692 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14693   && mv -f "$cfgfile.tmp" "$cfgfile" \
14694     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14695 test 0 -eq $? || _lt_function_replace_fail=:
14696
14697
14698   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14699 func_split_long_opt ()\
14700 {\
14701 \    func_split_long_opt_name=${1%%=*}\
14702 \    func_split_long_opt_arg=${1#*=}\
14703 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14704   && mv -f "$cfgfile.tmp" "$cfgfile" \
14705     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14706 test 0 -eq $? || _lt_function_replace_fail=:
14707
14708
14709   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14710 func_split_short_opt ()\
14711 {\
14712 \    func_split_short_opt_arg=${1#??}\
14713 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14714 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14715   && mv -f "$cfgfile.tmp" "$cfgfile" \
14716     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14717 test 0 -eq $? || _lt_function_replace_fail=:
14718
14719
14720   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14721 func_lo2o ()\
14722 {\
14723 \    case ${1} in\
14724 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14725 \      *)    func_lo2o_result=${1} ;;\
14726 \    esac\
14727 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14728   && mv -f "$cfgfile.tmp" "$cfgfile" \
14729     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14730 test 0 -eq $? || _lt_function_replace_fail=:
14731
14732
14733   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14734 func_xform ()\
14735 {\
14736     func_xform_result=${1%.*}.lo\
14737 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14738   && mv -f "$cfgfile.tmp" "$cfgfile" \
14739     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14740 test 0 -eq $? || _lt_function_replace_fail=:
14741
14742
14743   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14744 func_arith ()\
14745 {\
14746     func_arith_result=$(( $* ))\
14747 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14748   && mv -f "$cfgfile.tmp" "$cfgfile" \
14749     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14750 test 0 -eq $? || _lt_function_replace_fail=:
14751
14752
14753   sed -e '/^func_len ()$/,/^} # func_len /c\
14754 func_len ()\
14755 {\
14756     func_len_result=${#1}\
14757 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14758   && mv -f "$cfgfile.tmp" "$cfgfile" \
14759     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14760 test 0 -eq $? || _lt_function_replace_fail=:
14761
14762 fi
14763
14764 if test x"$lt_shell_append" = xyes; then
14765   sed -e '/^func_append ()$/,/^} # func_append /c\
14766 func_append ()\
14767 {\
14768     eval "${1}+=\\${2}"\
14769 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14770   && mv -f "$cfgfile.tmp" "$cfgfile" \
14771     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14772 test 0 -eq $? || _lt_function_replace_fail=:
14773
14774
14775   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14776 func_append_quoted ()\
14777 {\
14778 \    func_quote_for_eval "${2}"\
14779 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14780 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14781   && mv -f "$cfgfile.tmp" "$cfgfile" \
14782     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14783 test 0 -eq $? || _lt_function_replace_fail=:
14784
14785
14786   # Save a `func_append' function call where possible by direct use of '+='
14787   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14788     && mv -f "$cfgfile.tmp" "$cfgfile" \
14789       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14790   test 0 -eq $? || _lt_function_replace_fail=:
14791 else
14792   # Save a `func_append' function call even when '+=' is not available
14793   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14794     && mv -f "$cfgfile.tmp" "$cfgfile" \
14795       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14796   test 0 -eq $? || _lt_function_replace_fail=:
14797 fi
14798
14799 if test x"$_lt_function_replace_fail" = x":"; then
14800   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14801 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14802 fi
14803
14804
14805    mv -f "$cfgfile" "$ofile" ||
14806     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14807   chmod +x "$ofile"
14808
14809  ;;
14810
14811   esac
14812 done # for ac_tag
14813
14814
14815 as_fn_exit 0
14816 _ACEOF
14817 ac_clean_files=$ac_clean_files_save
14818
14819 test $ac_write_fail = 0 ||
14820   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14821
14822
14823 # configure is writing to config.log, and then calls config.status.
14824 # config.status does its own redirection, appending to config.log.
14825 # Unfortunately, on DOS this fails, as config.log is still kept open
14826 # by configure, so config.status won't be able to write to it; its
14827 # output is simply discarded.  So we exec the FD to /dev/null,
14828 # effectively closing config.log, so it can be properly (re)opened and
14829 # appended to by config.status.  When coming back to configure, we
14830 # need to make the FD available again.
14831 if test "$no_create" != yes; then
14832   ac_cs_success=:
14833   ac_config_status_args=
14834   test "$silent" = yes &&
14835     ac_config_status_args="$ac_config_status_args --quiet"
14836   exec 5>/dev/null
14837   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14838   exec 5>>config.log
14839   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14840   # would make configure fail if this is the last instruction.
14841   $ac_cs_success || as_fn_exit 1
14842 fi
14843 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14844   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14845 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14846 fi
14847