Tizen 2.0 Release
[framework/graphics/fontconfig.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="fonts.dtd"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 ac_header_list=
613 ac_subst_vars='am__EXEEXT_FALSE
614 am__EXEEXT_TRUE
615 LTLIBOBJS
616 LIBOBJS
617 DOCMAN3
618 DOCSRC
619 ENABLE_DOCS_FALSE
620 ENABLE_DOCS_TRUE
621 USEDOCBOOK_FALSE
622 USEDOCBOOK_TRUE
623 HASDOCBOOK
624 CONFDIR
625 confdir
626 FC_FONTDATE
627 FC_CACHEDIR
628 fc_cachedir
629 FC_FONTPATH
630 FC_ADD_FONTS
631 FC_DEFAULT_FONTS
632 LIBXML2_LIBS
633 LIBXML2_CFLAGS
634 PKG_CONFIG_LIBDIR
635 PKG_CONFIG_PATH
636 PKG_CONFIG
637 EXPAT_LIBS
638 EXPAT_CFLAGS
639 HAVE_EXPAT
640 HAVE_XMLPARSE_H
641 FREETYPE_CFLAGS
642 FREETYPE_LIBS
643 ft_config
644 ICONV_LIBS
645 CROSS_COMPILING_FALSE
646 CROSS_COMPILING_TRUE
647 WARN_CFLAGS
648 MS_LIB_AVAILABLE_FALSE
649 MS_LIB_AVAILABLE_TRUE
650 ms_librarian
651 OS_WIN32_FALSE
652 OS_WIN32_TRUE
653 CPP
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 MANIFEST_TOOL
660 RANLIB
661 ac_ct_AR
662 AR
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 EGREP
669 GREP
670 SED
671 LIBTOOL
672 OBJDUMP
673 DLLTOOL
674 AS
675 host_os
676 host_vendor
677 host_cpu
678 host
679 build_os
680 build_vendor
681 build_cpu
682 build
683 LN_S
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__quote
691 am__include
692 DEPDIR
693 OBJEXT
694 EXEEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
699 CC
700 LIBT_CURRENT_MINUS_AGE
701 LIBT_VERSION_INFO
702 LIBT_REVISION
703 LIBT_CURRENT
704 AM_BACKSLASH
705 AM_DEFAULT_VERBOSITY
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
711 AWK
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 enable_silent_rules
771 enable_dependency_tracking
772 enable_shared
773 enable_static
774 with_pic
775 enable_fast_install
776 with_gnu_ld
777 with_sysroot
778 enable_libtool_lock
779 with_arch
780 with_freetype_config
781 with_expat
782 with_expat_includes
783 with_expat_lib
784 enable_libxml2
785 with_default_fonts
786 with_add_fonts
787 with_cache_dir
788 with_confdir
789 enable_docs
790 '
791       ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
799 CPP
800 PKG_CONFIG
801 PKG_CONFIG_PATH
802 PKG_CONFIG_LIBDIR
803 LIBXML2_CFLAGS
804 LIBXML2_LIBS'
805
806
807 # Initialize some variables set by options.
808 ac_init_help=
809 ac_init_version=false
810 ac_unrecognized_opts=
811 ac_unrecognized_sep=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
814 cache_file=/dev/null
815 exec_prefix=NONE
816 no_create=
817 no_recursion=
818 prefix=NONE
819 program_prefix=NONE
820 program_suffix=NONE
821 program_transform_name=s,x,x,
822 silent=
823 site=
824 srcdir=
825 verbose=
826 x_includes=NONE
827 x_libraries=NONE
828
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir='${exec_prefix}/bin'
836 sbindir='${exec_prefix}/sbin'
837 libexecdir='${exec_prefix}/libexec'
838 datarootdir='${prefix}/share'
839 datadir='${datarootdir}'
840 sysconfdir='${prefix}/etc'
841 sharedstatedir='${prefix}/com'
842 localstatedir='${prefix}/var'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE}'
846 infodir='${datarootdir}/info'
847 htmldir='${docdir}'
848 dvidir='${docdir}'
849 pdfdir='${docdir}'
850 psdir='${docdir}'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
854
855 ac_prev=
856 ac_dashdash=
857 for ac_option
858 do
859   # If the previous option needs an argument, assign it.
860   if test -n "$ac_prev"; then
861     eval $ac_prev=\$ac_option
862     ac_prev=
863     continue
864   fi
865
866   case $ac_option in
867   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868   *=)   ac_optarg= ;;
869   *)    ac_optarg=yes ;;
870   esac
871
872   # Accept the important Cygnus configure options, so we can diagnose typos.
873
874   case $ac_dashdash$ac_option in
875   --)
876     ac_dashdash=yes ;;
877
878   -bindir | --bindir | --bindi | --bind | --bin | --bi)
879     ac_prev=bindir ;;
880   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881     bindir=$ac_optarg ;;
882
883   -build | --build | --buil | --bui | --bu)
884     ac_prev=build_alias ;;
885   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886     build_alias=$ac_optarg ;;
887
888   -cache-file | --cache-file | --cache-fil | --cache-fi \
889   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890     ac_prev=cache_file ;;
891   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893     cache_file=$ac_optarg ;;
894
895   --config-cache | -C)
896     cache_file=config.cache ;;
897
898   -datadir | --datadir | --datadi | --datad)
899     ac_prev=datadir ;;
900   -datadir=* | --datadir=* | --datadi=* | --datad=*)
901     datadir=$ac_optarg ;;
902
903   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904   | --dataroo | --dataro | --datar)
905     ac_prev=datarootdir ;;
906   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908     datarootdir=$ac_optarg ;;
909
910   -disable-* | --disable-*)
911     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912     # Reject names that are not valid shell variable names.
913     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914       as_fn_error $? "invalid feature name: $ac_useropt"
915     ac_useropt_orig=$ac_useropt
916     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917     case $ac_user_opts in
918       *"
919 "enable_$ac_useropt"
920 "*) ;;
921       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922          ac_unrecognized_sep=', ';;
923     esac
924     eval enable_$ac_useropt=no ;;
925
926   -docdir | --docdir | --docdi | --doc | --do)
927     ac_prev=docdir ;;
928   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929     docdir=$ac_optarg ;;
930
931   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932     ac_prev=dvidir ;;
933   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934     dvidir=$ac_optarg ;;
935
936   -enable-* | --enable-*)
937     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938     # Reject names that are not valid shell variable names.
939     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940       as_fn_error $? "invalid feature name: $ac_useropt"
941     ac_useropt_orig=$ac_useropt
942     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943     case $ac_user_opts in
944       *"
945 "enable_$ac_useropt"
946 "*) ;;
947       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948          ac_unrecognized_sep=', ';;
949     esac
950     eval enable_$ac_useropt=\$ac_optarg ;;
951
952   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954   | --exec | --exe | --ex)
955     ac_prev=exec_prefix ;;
956   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958   | --exec=* | --exe=* | --ex=*)
959     exec_prefix=$ac_optarg ;;
960
961   -gas | --gas | --ga | --g)
962     # Obsolete; use --with-gas.
963     with_gas=yes ;;
964
965   -help | --help | --hel | --he | -h)
966     ac_init_help=long ;;
967   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968     ac_init_help=recursive ;;
969   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970     ac_init_help=short ;;
971
972   -host | --host | --hos | --ho)
973     ac_prev=host_alias ;;
974   -host=* | --host=* | --hos=* | --ho=*)
975     host_alias=$ac_optarg ;;
976
977   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978     ac_prev=htmldir ;;
979   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980   | --ht=*)
981     htmldir=$ac_optarg ;;
982
983   -includedir | --includedir | --includedi | --included | --include \
984   | --includ | --inclu | --incl | --inc)
985     ac_prev=includedir ;;
986   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987   | --includ=* | --inclu=* | --incl=* | --inc=*)
988     includedir=$ac_optarg ;;
989
990   -infodir | --infodir | --infodi | --infod | --info | --inf)
991     ac_prev=infodir ;;
992   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993     infodir=$ac_optarg ;;
994
995   -libdir | --libdir | --libdi | --libd)
996     ac_prev=libdir ;;
997   -libdir=* | --libdir=* | --libdi=* | --libd=*)
998     libdir=$ac_optarg ;;
999
1000   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001   | --libexe | --libex | --libe)
1002     ac_prev=libexecdir ;;
1003   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004   | --libexe=* | --libex=* | --libe=*)
1005     libexecdir=$ac_optarg ;;
1006
1007   -localedir | --localedir | --localedi | --localed | --locale)
1008     ac_prev=localedir ;;
1009   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010     localedir=$ac_optarg ;;
1011
1012   -localstatedir | --localstatedir | --localstatedi | --localstated \
1013   | --localstate | --localstat | --localsta | --localst | --locals)
1014     ac_prev=localstatedir ;;
1015   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017     localstatedir=$ac_optarg ;;
1018
1019   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020     ac_prev=mandir ;;
1021   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022     mandir=$ac_optarg ;;
1023
1024   -nfp | --nfp | --nf)
1025     # Obsolete; use --without-fp.
1026     with_fp=no ;;
1027
1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029   | --no-cr | --no-c | -n)
1030     no_create=yes ;;
1031
1032   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034     no_recursion=yes ;;
1035
1036   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038   | --oldin | --oldi | --old | --ol | --o)
1039     ac_prev=oldincludedir ;;
1040   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043     oldincludedir=$ac_optarg ;;
1044
1045   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046     ac_prev=prefix ;;
1047   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048     prefix=$ac_optarg ;;
1049
1050   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051   | --program-pre | --program-pr | --program-p)
1052     ac_prev=program_prefix ;;
1053   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055     program_prefix=$ac_optarg ;;
1056
1057   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058   | --program-suf | --program-su | --program-s)
1059     ac_prev=program_suffix ;;
1060   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062     program_suffix=$ac_optarg ;;
1063
1064   -program-transform-name | --program-transform-name \
1065   | --program-transform-nam | --program-transform-na \
1066   | --program-transform-n | --program-transform- \
1067   | --program-transform | --program-transfor \
1068   | --program-transfo | --program-transf \
1069   | --program-trans | --program-tran \
1070   | --progr-tra | --program-tr | --program-t)
1071     ac_prev=program_transform_name ;;
1072   -program-transform-name=* | --program-transform-name=* \
1073   | --program-transform-nam=* | --program-transform-na=* \
1074   | --program-transform-n=* | --program-transform-=* \
1075   | --program-transform=* | --program-transfor=* \
1076   | --program-transfo=* | --program-transf=* \
1077   | --program-trans=* | --program-tran=* \
1078   | --progr-tra=* | --program-tr=* | --program-t=*)
1079     program_transform_name=$ac_optarg ;;
1080
1081   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082     ac_prev=pdfdir ;;
1083   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084     pdfdir=$ac_optarg ;;
1085
1086   -psdir | --psdir | --psdi | --psd | --ps)
1087     ac_prev=psdir ;;
1088   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089     psdir=$ac_optarg ;;
1090
1091   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092   | -silent | --silent | --silen | --sile | --sil)
1093     silent=yes ;;
1094
1095   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096     ac_prev=sbindir ;;
1097   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098   | --sbi=* | --sb=*)
1099     sbindir=$ac_optarg ;;
1100
1101   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103   | --sharedst | --shareds | --shared | --share | --shar \
1104   | --sha | --sh)
1105     ac_prev=sharedstatedir ;;
1106   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109   | --sha=* | --sh=*)
1110     sharedstatedir=$ac_optarg ;;
1111
1112   -site | --site | --sit)
1113     ac_prev=site ;;
1114   -site=* | --site=* | --sit=*)
1115     site=$ac_optarg ;;
1116
1117   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118     ac_prev=srcdir ;;
1119   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120     srcdir=$ac_optarg ;;
1121
1122   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123   | --syscon | --sysco | --sysc | --sys | --sy)
1124     ac_prev=sysconfdir ;;
1125   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127     sysconfdir=$ac_optarg ;;
1128
1129   -target | --target | --targe | --targ | --tar | --ta | --t)
1130     ac_prev=target_alias ;;
1131   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132     target_alias=$ac_optarg ;;
1133
1134   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135     verbose=yes ;;
1136
1137   -version | --version | --versio | --versi | --vers | -V)
1138     ac_init_version=: ;;
1139
1140   -with-* | --with-*)
1141     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142     # Reject names that are not valid shell variable names.
1143     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144       as_fn_error $? "invalid package name: $ac_useropt"
1145     ac_useropt_orig=$ac_useropt
1146     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147     case $ac_user_opts in
1148       *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152          ac_unrecognized_sep=', ';;
1153     esac
1154     eval with_$ac_useropt=\$ac_optarg ;;
1155
1156   -without-* | --without-*)
1157     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158     # Reject names that are not valid shell variable names.
1159     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160       as_fn_error $? "invalid package name: $ac_useropt"
1161     ac_useropt_orig=$ac_useropt
1162     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163     case $ac_user_opts in
1164       *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168          ac_unrecognized_sep=', ';;
1169     esac
1170     eval with_$ac_useropt=no ;;
1171
1172   --x)
1173     # Obsolete; use --with-x.
1174     with_x=yes ;;
1175
1176   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177   | --x-incl | --x-inc | --x-in | --x-i)
1178     ac_prev=x_includes ;;
1179   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181     x_includes=$ac_optarg ;;
1182
1183   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185     ac_prev=x_libraries ;;
1186   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188     x_libraries=$ac_optarg ;;
1189
1190   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1192     ;;
1193
1194   *=*)
1195     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196     # Reject names that are not valid shell variable names.
1197     case $ac_envvar in #(
1198       '' | [0-9]* | *[!_$as_cr_alnum]* )
1199       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200     esac
1201     eval $ac_envvar=\$ac_optarg
1202     export $ac_envvar ;;
1203
1204   *)
1205     # FIXME: should be removed in autoconf 3.0.
1206     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210     ;;
1211
1212   esac
1213 done
1214
1215 if test -n "$ac_prev"; then
1216   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217   as_fn_error $? "missing argument to $ac_option"
1218 fi
1219
1220 if test -n "$ac_unrecognized_opts"; then
1221   case $enable_option_checking in
1222     no) ;;
1223     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225   esac
1226 fi
1227
1228 # Check all directory arguments for consistency.
1229 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230                 datadir sysconfdir sharedstatedir localstatedir includedir \
1231                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232                 libdir localedir mandir
1233 do
1234   eval ac_val=\$$ac_var
1235   # Remove trailing slashes.
1236   case $ac_val in
1237     */ )
1238       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239       eval $ac_var=\$ac_val;;
1240   esac
1241   # Be sure to have absolute directory names.
1242   case $ac_val in
1243     [\\/$]* | ?:[\\/]* )  continue;;
1244     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245   esac
1246   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 done
1248
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1255
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258   if test "x$build_alias" = x; then
1259     cross_compiling=maybe
1260     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1261     If a cross compiler is detected then cross compile mode will be used" >&2
1262   elif test "x$build_alias" != "x$host_alias"; then
1263     cross_compiling=yes
1264   fi
1265 fi
1266
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270 test "$silent" = yes && exec 6>/dev/null
1271
1272
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276   as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278   as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283   ac_srcdir_defaulted=yes
1284   # Try the directory containing this script, then the parent directory.
1285   ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287          X"$as_myself" : 'X\(//\)[^/]' \| \
1288          X"$as_myself" : 'X\(//\)$' \| \
1289          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292             s//\1/
1293             q
1294           }
1295           /^X\(\/\/\)[^/].*/{
1296             s//\1/
1297             q
1298           }
1299           /^X\(\/\/\)$/{
1300             s//\1/
1301             q
1302           }
1303           /^X\(\/\).*/{
1304             s//\1/
1305             q
1306           }
1307           s/.*/./; q'`
1308   srcdir=$ac_confdir
1309   if test ! -r "$srcdir/$ac_unique_file"; then
1310     srcdir=..
1311   fi
1312 else
1313   ac_srcdir_defaulted=no
1314 fi
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 fi
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322         pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325   srcdir=.
1326 fi
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335   eval ac_env_${ac_var}_value=\$${ac_var}
1336   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1339
1340 #
1341 # Report the --help message.
1342 #
1343 if test "$ac_init_help" = "long"; then
1344   # Omit some internal or obsolete options to make the list less imposing.
1345   # This message is too long to be a string in the A/UX 3.1 sh.
1346   cat <<_ACEOF
1347 \`configure' configures this package to adapt to many kinds of systems.
1348
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE.  See below for descriptions of some of the useful variables.
1353
1354 Defaults for the options are specified in brackets.
1355
1356 Configuration:
1357   -h, --help              display this help and exit
1358       --help=short        display options specific to this package
1359       --help=recursive    display the short help of all the included packages
1360   -V, --version           display version information and exit
1361   -q, --quiet, --silent   do not print \`checking ...' messages
1362       --cache-file=FILE   cache test results in FILE [disabled]
1363   -C, --config-cache      alias for \`--cache-file=config.cache'
1364   -n, --no-create         do not create output files
1365       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1366
1367 Installation directories:
1368   --prefix=PREFIX         install architecture-independent files in PREFIX
1369                           [$ac_default_prefix]
1370   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1371                           [PREFIX]
1372
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1377
1378 For better control, use the options below.
1379
1380 Fine tuning of the installation directories:
1381   --bindir=DIR            user executables [EPREFIX/bin]
1382   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1383   --libexecdir=DIR        program executables [EPREFIX/libexec]
1384   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1385   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1386   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1387   --libdir=DIR            object code libraries [EPREFIX/lib]
1388   --includedir=DIR        C header files [PREFIX/include]
1389   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1390   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1391   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1392   --infodir=DIR           info documentation [DATAROOTDIR/info]
1393   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1394   --mandir=DIR            man documentation [DATAROOTDIR/man]
1395   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1396   --htmldir=DIR           html documentation [DOCDIR]
1397   --dvidir=DIR            dvi documentation [DOCDIR]
1398   --pdfdir=DIR            pdf documentation [DOCDIR]
1399   --psdir=DIR             ps documentation [DOCDIR]
1400 _ACEOF
1401
1402   cat <<\_ACEOF
1403
1404 Program names:
1405   --program-prefix=PREFIX            prepend PREFIX to installed program names
1406   --program-suffix=SUFFIX            append SUFFIX to installed program names
1407   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1408
1409 System types:
1410   --build=BUILD     configure for building on BUILD [guessed]
1411   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1412 _ACEOF
1413 fi
1414
1415 if test -n "$ac_init_help"; then
1416
1417   cat <<\_ACEOF
1418
1419 Optional Features:
1420   --disable-option-checking  ignore unrecognized --enable/--with options
1421   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1422   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1423   --enable-silent-rules          less verbose build output (undo: `make V=1')
1424   --disable-silent-rules         verbose build output (undo: `make V=0')
1425   --disable-dependency-tracking  speeds up one-time build
1426   --enable-dependency-tracking   do not reject slow dependency extractors
1427   --enable-shared[=PKGS]  build shared libraries [default=yes]
1428   --enable-static[=PKGS]  build static libraries [default=yes]
1429   --enable-fast-install[=PKGS]
1430                           optimize for fast installation [default=yes]
1431   --disable-libtool-lock  avoid locking (might break parallel builds)
1432   --enable-libxml2              Use libxml2 instead of Expat
1433   --disable-docs                Don't build and install documentation
1434
1435 Optional Packages:
1436   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1437   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1438   --with-pic              try to use only PIC/non-PIC objects [default=use
1439                           both]
1440   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1441   --with-sysroot=DIR Search for dependent libraries within DIR
1442                         (or the compiler's sysroot if not specified).
1443   --with-arch=ARCH      Force architecture to ARCH
1444   --with-freetype-config=PROG   Use FreeType configuration program PROG
1445   --with-expat=DIR              Use Expat in DIR
1446   --with-expat-includes=DIR     Use Expat includes in DIR
1447   --with-expat-lib=DIR          Use Expat library in DIR
1448   --with-default-fonts=DIR      Use fonts from DIR when config is busted
1449   --with-add-fonts=DIR1,DIR2,...Find additional fonts in DIR1,DIR2,...
1450   --with-cache-dir=DIR           Use DIR to store cache files (default LOCALSTATEDIR/cache/fontconfig)
1451   --with-confdir=DIR            Use DIR to store configuration files (default SYSCONFDIR/fonts)
1452
1453 Some influential environment variables:
1454   CC          C compiler command
1455   CFLAGS      C compiler flags
1456   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1457               nonstandard directory <lib dir>
1458   LIBS        libraries to pass to the linker, e.g. -l<library>
1459   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460               you have headers in a nonstandard directory <include dir>
1461   CPP         C preprocessor
1462   PKG_CONFIG  path to pkg-config utility
1463   PKG_CONFIG_PATH
1464               directories to add to pkg-config's search path
1465   PKG_CONFIG_LIBDIR
1466               path overriding pkg-config's built-in search path
1467   LIBXML2_CFLAGS
1468               C compiler flags for LIBXML2, overriding pkg-config
1469   LIBXML2_LIBS
1470               linker flags for LIBXML2, overriding pkg-config
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to the package provider.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481   # If there are subdirs, report their specific --help.
1482   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483     test -d "$ac_dir" ||
1484       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485       continue
1486     ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492   # A ".." for each directory in $ac_dir_suffix.
1493   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494   case $ac_top_builddir_sub in
1495   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497   esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505   .)  # We are building in place.
1506     ac_srcdir=.
1507     ac_top_srcdir=$ac_top_builddir_sub
1508     ac_abs_top_srcdir=$ac_pwd ;;
1509   [\\/]* | ?:[\\/]* )  # Absolute name.
1510     ac_srcdir=$srcdir$ac_dir_suffix;
1511     ac_top_srcdir=$srcdir
1512     ac_abs_top_srcdir=$srcdir ;;
1513   *) # Relative name.
1514     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515     ac_top_srcdir=$ac_top_build_prefix$srcdir
1516     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520     cd "$ac_dir" || { ac_status=$?; continue; }
1521     # Check for guested configure.
1522     if test -f "$ac_srcdir/configure.gnu"; then
1523       echo &&
1524       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525     elif test -f "$ac_srcdir/configure"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure" --help=recursive
1528     else
1529       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530     fi || ac_status=$?
1531     cd "$ac_pwd" || { ac_status=$?; break; }
1532   done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537   cat <<\_ACEOF
1538 configure
1539 generated by GNU Autoconf 2.68
1540
1541 Copyright (C) 2010 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545   exit
1546 fi
1547
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1551
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1556 {
1557   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558   rm -f conftest.$ac_objext
1559   if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562   *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566   (eval "$ac_compile") 2>conftest.err
1567   ac_status=$?
1568   if test -s conftest.err; then
1569     grep -v '^ *+' conftest.err >conftest.er1
1570     cat conftest.er1 >&5
1571     mv -f conftest.er1 conftest.err
1572   fi
1573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574   test $ac_status = 0; } && {
1575          test -z "$ac_c_werror_flag" ||
1576          test ! -s conftest.err
1577        } && test -s conftest.$ac_objext; then :
1578   ac_retval=0
1579 else
1580   $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583         ac_retval=1
1584 fi
1585   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586   as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_compile
1589
1590 # ac_fn_c_try_link LINENO
1591 # -----------------------
1592 # Try to link conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_link ()
1594 {
1595   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596   rm -f conftest.$ac_objext conftest$ac_exeext
1597   if { { ac_try="$ac_link"
1598 case "(($ac_try" in
1599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600   *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604   (eval "$ac_link") 2>conftest.err
1605   ac_status=$?
1606   if test -s conftest.err; then
1607     grep -v '^ *+' conftest.err >conftest.er1
1608     cat conftest.er1 >&5
1609     mv -f conftest.er1 conftest.err
1610   fi
1611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612   test $ac_status = 0; } && {
1613          test -z "$ac_c_werror_flag" ||
1614          test ! -s conftest.err
1615        } && test -s conftest$ac_exeext && {
1616          test "$cross_compiling" = yes ||
1617          $as_test_x conftest$ac_exeext
1618        }; then :
1619   ac_retval=0
1620 else
1621   $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624         ac_retval=1
1625 fi
1626   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628   # interfere with the next link command; also delete a directory that is
1629   # left behind by Apple's compiler.  We do this before executing the actions.
1630   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632   as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_link
1635
1636 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists and can be compiled using the include files in
1639 # INCLUDES, setting the cache variable VAR accordingly.
1640 ac_fn_c_check_header_compile ()
1641 {
1642   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646   $as_echo_n "(cached) " >&6
1647 else
1648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h.  */
1650 $4
1651 #include <$2>
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"; then :
1654   eval "$3=yes"
1655 else
1656   eval "$3=no"
1657 fi
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 fi
1660 eval ac_res=\$$3
1661                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
1665 } # ac_fn_c_check_header_compile
1666
1667 # ac_fn_c_try_cpp LINENO
1668 # ----------------------
1669 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_cpp ()
1671 {
1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673   if { { ac_try="$ac_cpp conftest.$ac_ext"
1674 case "(($ac_try" in
1675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676   *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681   ac_status=$?
1682   if test -s conftest.err; then
1683     grep -v '^ *+' conftest.err >conftest.er1
1684     cat conftest.er1 >&5
1685     mv -f conftest.er1 conftest.err
1686   fi
1687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688   test $ac_status = 0; } > conftest.i && {
1689          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690          test ! -s conftest.err
1691        }; then :
1692   ac_retval=0
1693 else
1694   $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697     ac_retval=1
1698 fi
1699   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700   as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_cpp
1703
1704 # ac_fn_c_try_run LINENO
1705 # ----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707 # that executables *can* be run.
1708 ac_fn_c_try_run ()
1709 {
1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711   if { { ac_try="$ac_link"
1712 case "(($ac_try" in
1713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714   *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718   (eval "$ac_link") 2>&5
1719   ac_status=$?
1720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722   { { case "(($ac_try" in
1723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724   *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728   (eval "$ac_try") 2>&5
1729   ac_status=$?
1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731   test $ac_status = 0; }; }; then :
1732   ac_retval=0
1733 else
1734   $as_echo "$as_me: program exited with status $ac_status" >&5
1735        $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738        ac_retval=$ac_status
1739 fi
1740   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742   as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_run
1745
1746 # ac_fn_c_check_func LINENO FUNC VAR
1747 # ----------------------------------
1748 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1749 ac_fn_c_check_func ()
1750 {
1751   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755   $as_echo_n "(cached) " >&6
1756 else
1757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h.  */
1759 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1761 #define $2 innocuous_$2
1762
1763 /* System header to define __stub macros and hopefully few prototypes,
1764     which can conflict with char $2 (); below.
1765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1766     <limits.h> exists even on freestanding compilers.  */
1767
1768 #ifdef __STDC__
1769 # include <limits.h>
1770 #else
1771 # include <assert.h>
1772 #endif
1773
1774 #undef $2
1775
1776 /* Override any GCC internal prototype to avoid an error.
1777    Use char because int might match the return type of a GCC
1778    builtin and then its argument prototype would still apply.  */
1779 #ifdef __cplusplus
1780 extern "C"
1781 #endif
1782 char $2 ();
1783 /* The GNU C library defines this for functions which it implements
1784     to always fail with ENOSYS.  Some functions are actually named
1785     something starting with __ and the normal name is an alias.  */
1786 #if defined __stub_$2 || defined __stub___$2
1787 choke me
1788 #endif
1789
1790 int
1791 main ()
1792 {
1793 return $2 ();
1794   ;
1795   return 0;
1796 }
1797 _ACEOF
1798 if ac_fn_c_try_link "$LINENO"; then :
1799   eval "$3=yes"
1800 else
1801   eval "$3=no"
1802 fi
1803 rm -f core conftest.err conftest.$ac_objext \
1804     conftest$ac_exeext conftest.$ac_ext
1805 fi
1806 eval ac_res=\$$3
1807                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811 } # ac_fn_c_check_func
1812
1813 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1814 # -------------------------------------------------------
1815 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1816 # the include files in INCLUDES and setting the cache variable VAR
1817 # accordingly.
1818 ac_fn_c_check_header_mongrel ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   if eval \${$3+:} false; then :
1822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825   $as_echo_n "(cached) " >&6
1826 fi
1827 eval ac_res=\$$3
1828                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 else
1831   # Is the header compilable?
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1833 $as_echo_n "checking $2 usability... " >&6; }
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h.  */
1836 $4
1837 #include <$2>
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840   ac_header_compiler=yes
1841 else
1842   ac_header_compiler=no
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1846 $as_echo "$ac_header_compiler" >&6; }
1847
1848 # Is the header present?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1850 $as_echo_n "checking $2 presence... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h.  */
1853 #include <$2>
1854 _ACEOF
1855 if ac_fn_c_try_cpp "$LINENO"; then :
1856   ac_header_preproc=yes
1857 else
1858   ac_header_preproc=no
1859 fi
1860 rm -f conftest.err conftest.i conftest.$ac_ext
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1862 $as_echo "$ac_header_preproc" >&6; }
1863
1864 # So?  What about this header?
1865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1866   yes:no: )
1867     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1868 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871     ;;
1872   no:yes:* )
1873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1874 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1876 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1878 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1879     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1880 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1883     ;;
1884 esac
1885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888   $as_echo_n "(cached) " >&6
1889 else
1890   eval "$3=\$ac_header_compiler"
1891 fi
1892 eval ac_res=\$$3
1893                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 fi
1896   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897
1898 } # ac_fn_c_check_header_mongrel
1899
1900 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1901 # -------------------------------------------
1902 # Tests whether TYPE exists after having included INCLUDES, setting cache
1903 # variable VAR accordingly.
1904 ac_fn_c_check_type ()
1905 {
1906   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910   $as_echo_n "(cached) " >&6
1911 else
1912   eval "$3=no"
1913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h.  */
1915 $4
1916 int
1917 main ()
1918 {
1919 if (sizeof ($2))
1920          return 0;
1921   ;
1922   return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h.  */
1928 $4
1929 int
1930 main ()
1931 {
1932 if (sizeof (($2)))
1933             return 0;
1934   ;
1935   return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939
1940 else
1941   eval "$3=yes"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 fi
1947 eval ac_res=\$$3
1948                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952 } # ac_fn_c_check_type
1953
1954 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1955 # ----------------------------------------------------
1956 # Tries to find if the field MEMBER exists in type AGGR, after including
1957 # INCLUDES, setting cache variable VAR accordingly.
1958 ac_fn_c_check_member ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1962 $as_echo_n "checking for $2.$3... " >&6; }
1963 if eval \${$4+:} false; then :
1964   $as_echo_n "(cached) " >&6
1965 else
1966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h.  */
1968 $5
1969 int
1970 main ()
1971 {
1972 static $2 ac_aggr;
1973 if (ac_aggr.$3)
1974 return 0;
1975   ;
1976   return 0;
1977 }
1978 _ACEOF
1979 if ac_fn_c_try_compile "$LINENO"; then :
1980   eval "$4=yes"
1981 else
1982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h.  */
1984 $5
1985 int
1986 main ()
1987 {
1988 static $2 ac_aggr;
1989 if (sizeof ac_aggr.$3)
1990 return 0;
1991   ;
1992   return 0;
1993 }
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"; then :
1996   eval "$4=yes"
1997 else
1998   eval "$4=no"
1999 fi
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 fi
2004 eval ac_res=\$$4
2005                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008
2009 } # ac_fn_c_check_member
2010
2011 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2012 # --------------------------------------------
2013 # Tries to find the compile-time value of EXPR in a program that includes
2014 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2015 # computed
2016 ac_fn_c_compute_int ()
2017 {
2018   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019   if test "$cross_compiling" = yes; then
2020     # Depending upon the size, compute the lo and hi bounds.
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h.  */
2023 $4
2024 int
2025 main ()
2026 {
2027 static int test_array [1 - 2 * !(($2) >= 0)];
2028 test_array [0] = 0
2029
2030   ;
2031   return 0;
2032 }
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035   ac_lo=0 ac_mid=0
2036   while :; do
2037     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 $4
2040 int
2041 main ()
2042 {
2043 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2044 test_array [0] = 0
2045
2046   ;
2047   return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051   ac_hi=$ac_mid; break
2052 else
2053   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2054                         if test $ac_lo -le $ac_mid; then
2055                           ac_lo= ac_hi=
2056                           break
2057                         fi
2058                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2059 fi
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061   done
2062 else
2063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h.  */
2065 $4
2066 int
2067 main ()
2068 {
2069 static int test_array [1 - 2 * !(($2) < 0)];
2070 test_array [0] = 0
2071
2072   ;
2073   return 0;
2074 }
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077   ac_hi=-1 ac_mid=-1
2078   while :; do
2079     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h.  */
2081 $4
2082 int
2083 main ()
2084 {
2085 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2086 test_array [0] = 0
2087
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093   ac_lo=$ac_mid; break
2094 else
2095   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2096                         if test $ac_mid -le $ac_hi; then
2097                           ac_lo= ac_hi=
2098                           break
2099                         fi
2100                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103   done
2104 else
2105   ac_lo= ac_hi=
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 # Binary search between lo and hi bounds.
2111 while test "x$ac_lo" != "x$ac_hi"; do
2112   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h.  */
2115 $4
2116 int
2117 main ()
2118 {
2119 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2120 test_array [0] = 0
2121
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127   ac_hi=$ac_mid
2128 else
2129   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 done
2133 case $ac_lo in #((
2134 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2135 '') ac_retval=1 ;;
2136 esac
2137   else
2138     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h.  */
2140 $4
2141 static long int longval () { return $2; }
2142 static unsigned long int ulongval () { return $2; }
2143 #include <stdio.h>
2144 #include <stdlib.h>
2145 int
2146 main ()
2147 {
2148
2149   FILE *f = fopen ("conftest.val", "w");
2150   if (! f)
2151     return 1;
2152   if (($2) < 0)
2153     {
2154       long int i = longval ();
2155       if (i != ($2))
2156         return 1;
2157       fprintf (f, "%ld", i);
2158     }
2159   else
2160     {
2161       unsigned long int i = ulongval ();
2162       if (i != ($2))
2163         return 1;
2164       fprintf (f, "%lu", i);
2165     }
2166   /* Do not output a trailing newline, as this causes \r\n confusion
2167      on some platforms.  */
2168   return ferror (f) || fclose (f) != 0;
2169
2170   ;
2171   return 0;
2172 }
2173 _ACEOF
2174 if ac_fn_c_try_run "$LINENO"; then :
2175   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2176 else
2177   ac_retval=1
2178 fi
2179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2180   conftest.$ac_objext conftest.beam conftest.$ac_ext
2181 rm -f conftest.val
2182
2183   fi
2184   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185   as_fn_set_status $ac_retval
2186
2187 } # ac_fn_c_compute_int
2188 cat >config.log <<_ACEOF
2189 This file contains any messages produced by compilers while
2190 running configure, to aid debugging if configure makes a mistake.
2191
2192 It was created by $as_me, which was
2193 generated by GNU Autoconf 2.68.  Invocation command line was
2194
2195   $ $0 $@
2196
2197 _ACEOF
2198 exec 5>>config.log
2199 {
2200 cat <<_ASUNAME
2201 ## --------- ##
2202 ## Platform. ##
2203 ## --------- ##
2204
2205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2210
2211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2212 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2213
2214 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2215 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2217 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2218 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2219 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2220 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2221
2222 _ASUNAME
2223
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227   IFS=$as_save_IFS
2228   test -z "$as_dir" && as_dir=.
2229     $as_echo "PATH: $as_dir"
2230   done
2231 IFS=$as_save_IFS
2232
2233 } >&5
2234
2235 cat >&5 <<_ACEOF
2236
2237
2238 ## ----------- ##
2239 ## Core tests. ##
2240 ## ----------- ##
2241
2242 _ACEOF
2243
2244
2245 # Keep a trace of the command line.
2246 # Strip out --no-create and --no-recursion so they do not pile up.
2247 # Strip out --silent because we don't want to record it for future runs.
2248 # Also quote any args containing shell meta-characters.
2249 # Make two passes to allow for proper duplicate-argument suppression.
2250 ac_configure_args=
2251 ac_configure_args0=
2252 ac_configure_args1=
2253 ac_must_keep_next=false
2254 for ac_pass in 1 2
2255 do
2256   for ac_arg
2257   do
2258     case $ac_arg in
2259     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2260     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2261     | -silent | --silent | --silen | --sile | --sil)
2262       continue ;;
2263     *\'*)
2264       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2265     esac
2266     case $ac_pass in
2267     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2268     2)
2269       as_fn_append ac_configure_args1 " '$ac_arg'"
2270       if test $ac_must_keep_next = true; then
2271         ac_must_keep_next=false # Got value, back to normal.
2272       else
2273         case $ac_arg in
2274           *=* | --config-cache | -C | -disable-* | --disable-* \
2275           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2276           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2277           | -with-* | --with-* | -without-* | --without-* | --x)
2278             case "$ac_configure_args0 " in
2279               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2280             esac
2281             ;;
2282           -* ) ac_must_keep_next=true ;;
2283         esac
2284       fi
2285       as_fn_append ac_configure_args " '$ac_arg'"
2286       ;;
2287     esac
2288   done
2289 done
2290 { ac_configure_args0=; unset ac_configure_args0;}
2291 { ac_configure_args1=; unset ac_configure_args1;}
2292
2293 # When interrupted or exit'd, cleanup temporary files, and complete
2294 # config.log.  We remove comments because anyway the quotes in there
2295 # would cause problems or look ugly.
2296 # WARNING: Use '\'' to represent an apostrophe within the trap.
2297 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2298 trap 'exit_status=$?
2299   # Save into config.log some information that might help in debugging.
2300   {
2301     echo
2302
2303     $as_echo "## ---------------- ##
2304 ## Cache variables. ##
2305 ## ---------------- ##"
2306     echo
2307     # The following way of writing the cache mishandles newlines in values,
2308 (
2309   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2310     eval ac_val=\$$ac_var
2311     case $ac_val in #(
2312     *${as_nl}*)
2313       case $ac_var in #(
2314       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2315 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2316       esac
2317       case $ac_var in #(
2318       _ | IFS | as_nl) ;; #(
2319       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2320       *) { eval $ac_var=; unset $ac_var;} ;;
2321       esac ;;
2322     esac
2323   done
2324   (set) 2>&1 |
2325     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2326     *${as_nl}ac_space=\ *)
2327       sed -n \
2328         "s/'\''/'\''\\\\'\'''\''/g;
2329           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2330       ;; #(
2331     *)
2332       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2333       ;;
2334     esac |
2335     sort
2336 )
2337     echo
2338
2339     $as_echo "## ----------------- ##
2340 ## Output variables. ##
2341 ## ----------------- ##"
2342     echo
2343     for ac_var in $ac_subst_vars
2344     do
2345       eval ac_val=\$$ac_var
2346       case $ac_val in
2347       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348       esac
2349       $as_echo "$ac_var='\''$ac_val'\''"
2350     done | sort
2351     echo
2352
2353     if test -n "$ac_subst_files"; then
2354       $as_echo "## ------------------- ##
2355 ## File substitutions. ##
2356 ## ------------------- ##"
2357       echo
2358       for ac_var in $ac_subst_files
2359       do
2360         eval ac_val=\$$ac_var
2361         case $ac_val in
2362         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2363         esac
2364         $as_echo "$ac_var='\''$ac_val'\''"
2365       done | sort
2366       echo
2367     fi
2368
2369     if test -s confdefs.h; then
2370       $as_echo "## ----------- ##
2371 ## confdefs.h. ##
2372 ## ----------- ##"
2373       echo
2374       cat confdefs.h
2375       echo
2376     fi
2377     test "$ac_signal" != 0 &&
2378       $as_echo "$as_me: caught signal $ac_signal"
2379     $as_echo "$as_me: exit $exit_status"
2380   } >&5
2381   rm -f core *.core core.conftest.* &&
2382     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2383     exit $exit_status
2384 ' 0
2385 for ac_signal in 1 2 13 15; do
2386   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2387 done
2388 ac_signal=0
2389
2390 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2391 rm -f -r conftest* confdefs.h
2392
2393 $as_echo "/* confdefs.h */" > confdefs.h
2394
2395 # Predefined preprocessor variables.
2396
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_NAME "$PACKAGE_NAME"
2399 _ACEOF
2400
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2403 _ACEOF
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2407 _ACEOF
2408
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_STRING "$PACKAGE_STRING"
2411 _ACEOF
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2415 _ACEOF
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_URL "$PACKAGE_URL"
2419 _ACEOF
2420
2421
2422 # Let the site file select an alternate cache file if it wants to.
2423 # Prefer an explicitly selected file to automatically selected ones.
2424 ac_site_file1=NONE
2425 ac_site_file2=NONE
2426 if test -n "$CONFIG_SITE"; then
2427   # We do not want a PATH search for config.site.
2428   case $CONFIG_SITE in #((
2429     -*)  ac_site_file1=./$CONFIG_SITE;;
2430     */*) ac_site_file1=$CONFIG_SITE;;
2431     *)   ac_site_file1=./$CONFIG_SITE;;
2432   esac
2433 elif test "x$prefix" != xNONE; then
2434   ac_site_file1=$prefix/share/config.site
2435   ac_site_file2=$prefix/etc/config.site
2436 else
2437   ac_site_file1=$ac_default_prefix/share/config.site
2438   ac_site_file2=$ac_default_prefix/etc/config.site
2439 fi
2440 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2441 do
2442   test "x$ac_site_file" = xNONE && continue
2443   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2444     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2445 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2446     sed 's/^/| /' "$ac_site_file" >&5
2447     . "$ac_site_file" \
2448       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2450 as_fn_error $? "failed to load site script $ac_site_file
2451 See \`config.log' for more details" "$LINENO" 5; }
2452   fi
2453 done
2454
2455 if test -r "$cache_file"; then
2456   # Some versions of bash will fail to source /dev/null (special files
2457   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2458   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2459     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460 $as_echo "$as_me: loading cache $cache_file" >&6;}
2461     case $cache_file in
2462       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463       *)                      . "./$cache_file";;
2464     esac
2465   fi
2466 else
2467   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468 $as_echo "$as_me: creating cache $cache_file" >&6;}
2469   >$cache_file
2470 fi
2471
2472 as_fn_append ac_header_list " stdlib.h"
2473 as_fn_append ac_header_list " unistd.h"
2474 as_fn_append ac_header_list " sys/param.h"
2475 # Check that the precious variables saved in the cache have kept the same
2476 # value.
2477 ac_cache_corrupted=false
2478 for ac_var in $ac_precious_vars; do
2479   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2480   eval ac_new_set=\$ac_env_${ac_var}_set
2481   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2482   eval ac_new_val=\$ac_env_${ac_var}_value
2483   case $ac_old_set,$ac_new_set in
2484     set,)
2485       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2486 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2487       ac_cache_corrupted=: ;;
2488     ,set)
2489       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2490 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2491       ac_cache_corrupted=: ;;
2492     ,);;
2493     *)
2494       if test "x$ac_old_val" != "x$ac_new_val"; then
2495         # differences in whitespace do not lead to failure.
2496         ac_old_val_w=`echo x $ac_old_val`
2497         ac_new_val_w=`echo x $ac_new_val`
2498         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2499           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2500 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2501           ac_cache_corrupted=:
2502         else
2503           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2504 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2505           eval $ac_var=\$ac_old_val
2506         fi
2507         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2508 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2509         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2510 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2511       fi;;
2512   esac
2513   # Pass precious variables to config.status.
2514   if test "$ac_new_set" = set; then
2515     case $ac_new_val in
2516     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2517     *) ac_arg=$ac_var=$ac_new_val ;;
2518     esac
2519     case " $ac_configure_args " in
2520       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2521       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2522     esac
2523   fi
2524 done
2525 if $ac_cache_corrupted; then
2526   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2528   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2529 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2530   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2531 fi
2532 ## -------------------- ##
2533 ## Main body of script. ##
2534 ## -------------------- ##
2535
2536 ac_ext=c
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541
2542
2543
2544
2545 am__api_version='1.11'
2546
2547 ac_aux_dir=
2548 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2549   if test -f "$ac_dir/install-sh"; then
2550     ac_aux_dir=$ac_dir
2551     ac_install_sh="$ac_aux_dir/install-sh -c"
2552     break
2553   elif test -f "$ac_dir/install.sh"; then
2554     ac_aux_dir=$ac_dir
2555     ac_install_sh="$ac_aux_dir/install.sh -c"
2556     break
2557   elif test -f "$ac_dir/shtool"; then
2558     ac_aux_dir=$ac_dir
2559     ac_install_sh="$ac_aux_dir/shtool install -c"
2560     break
2561   fi
2562 done
2563 if test -z "$ac_aux_dir"; then
2564   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2565 fi
2566
2567 # These three variables are undocumented and unsupported,
2568 # and are intended to be withdrawn in a future Autoconf release.
2569 # They can cause serious problems if a builder's source tree is in a directory
2570 # whose full name contains unusual characters.
2571 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2572 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2573 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2574
2575
2576 # Find a good install program.  We prefer a C program (faster),
2577 # so one script is as good as another.  But avoid the broken or
2578 # incompatible versions:
2579 # SysV /etc/install, /usr/sbin/install
2580 # SunOS /usr/etc/install
2581 # IRIX /sbin/install
2582 # AIX /bin/install
2583 # AmigaOS /C/install, which installs bootblocks on floppy discs
2584 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2587 # OS/2's system install, which has a completely different semantic
2588 # ./install, which can be erroneously created by make from ./install.sh.
2589 # Reject install programs that cannot install multiple files.
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2591 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2592 if test -z "$INSTALL"; then
2593 if ${ac_cv_path_install+:} false; then :
2594   $as_echo_n "(cached) " >&6
2595 else
2596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601     # Account for people who put trailing slashes in PATH elements.
2602 case $as_dir/ in #((
2603   ./ | .// | /[cC]/* | \
2604   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2605   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2606   /usr/ucb/* ) ;;
2607   *)
2608     # OSF1 and SCO ODT 3.0 have their own names for install.
2609     # Don't use installbsd from OSF since it installs stuff as root
2610     # by default.
2611     for ac_prog in ginstall scoinst install; do
2612       for ac_exec_ext in '' $ac_executable_extensions; do
2613         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2614           if test $ac_prog = install &&
2615             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2616             # AIX install.  It has an incompatible calling convention.
2617             :
2618           elif test $ac_prog = install &&
2619             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2620             # program-specific install script used by HP pwplus--don't use.
2621             :
2622           else
2623             rm -rf conftest.one conftest.two conftest.dir
2624             echo one > conftest.one
2625             echo two > conftest.two
2626             mkdir conftest.dir
2627             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2628               test -s conftest.one && test -s conftest.two &&
2629               test -s conftest.dir/conftest.one &&
2630               test -s conftest.dir/conftest.two
2631             then
2632               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2633               break 3
2634             fi
2635           fi
2636         fi
2637       done
2638     done
2639     ;;
2640 esac
2641
2642   done
2643 IFS=$as_save_IFS
2644
2645 rm -rf conftest.one conftest.two conftest.dir
2646
2647 fi
2648   if test "${ac_cv_path_install+set}" = set; then
2649     INSTALL=$ac_cv_path_install
2650   else
2651     # As a last resort, use the slow shell script.  Don't cache a
2652     # value for INSTALL within a source directory, because that will
2653     # break other packages using the cache if that directory is
2654     # removed, or if the value is a relative name.
2655     INSTALL=$ac_install_sh
2656   fi
2657 fi
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2659 $as_echo "$INSTALL" >&6; }
2660
2661 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2662 # It thinks the first close brace ends the variable substitution.
2663 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2664
2665 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2666
2667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2668
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2670 $as_echo_n "checking whether build environment is sane... " >&6; }
2671 # Just in case
2672 sleep 1
2673 echo timestamp > conftest.file
2674 # Reject unsafe characters in $srcdir or the absolute working directory
2675 # name.  Accept space and tab only in the latter.
2676 am_lf='
2677 '
2678 case `pwd` in
2679   *[\\\"\#\$\&\'\`$am_lf]*)
2680     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2681 esac
2682 case $srcdir in
2683   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2684     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2685 esac
2686
2687 # Do `set' in a subshell so we don't clobber the current shell's
2688 # arguments.  Must try -L first in case configure is actually a
2689 # symlink; some systems play weird games with the mod time of symlinks
2690 # (eg FreeBSD returns the mod time of the symlink's containing
2691 # directory).
2692 if (
2693    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2694    if test "$*" = "X"; then
2695       # -L didn't work.
2696       set X `ls -t "$srcdir/configure" conftest.file`
2697    fi
2698    rm -f conftest.file
2699    if test "$*" != "X $srcdir/configure conftest.file" \
2700       && test "$*" != "X conftest.file $srcdir/configure"; then
2701
2702       # If neither matched, then we have a broken ls.  This can happen
2703       # if, for instance, CONFIG_SHELL is bash and it inherits a
2704       # broken ls alias from the environment.  This has actually
2705       # happened.  Such a system could not be considered "sane".
2706       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2707 alias in your environment" "$LINENO" 5
2708    fi
2709
2710    test "$2" = conftest.file
2711    )
2712 then
2713    # Ok.
2714    :
2715 else
2716    as_fn_error $? "newly created file is older than distributed files!
2717 Check your system clock" "$LINENO" 5
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2720 $as_echo "yes" >&6; }
2721 test "$program_prefix" != NONE &&
2722   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2723 # Use a double $ so make ignores it.
2724 test "$program_suffix" != NONE &&
2725   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2726 # Double any \ or $.
2727 # By default was `s,x,x', remove it if useless.
2728 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2729 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2730
2731 # expand $ac_aux_dir to an absolute path
2732 am_aux_dir=`cd $ac_aux_dir && pwd`
2733
2734 if test x"${MISSING+set}" != xset; then
2735   case $am_aux_dir in
2736   *\ * | *\     *)
2737     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2738   *)
2739     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2740   esac
2741 fi
2742 # Use eval to expand $SHELL
2743 if eval "$MISSING --run true"; then
2744   am_missing_run="$MISSING --run "
2745 else
2746   am_missing_run=
2747   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2748 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2749 fi
2750
2751 if test x"${install_sh}" != xset; then
2752   case $am_aux_dir in
2753   *\ * | *\     *)
2754     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2755   *)
2756     install_sh="\${SHELL} $am_aux_dir/install-sh"
2757   esac
2758 fi
2759
2760 # Installed binaries are usually stripped using `strip' when the user
2761 # run `make install-strip'.  However `strip' might not be the right
2762 # tool to use in cross-compilation environments, therefore Automake
2763 # will honor the `STRIP' environment variable to overrule this program.
2764 if test "$cross_compiling" != no; then
2765   if test -n "$ac_tool_prefix"; then
2766   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}strip; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_STRIP+:} false; then :
2771   $as_echo_n "(cached) " >&6
2772 else
2773   if test -n "$STRIP"; then
2774   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781     for ac_exec_ext in '' $ac_executable_extensions; do
2782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785     break 2
2786   fi
2787 done
2788   done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 STRIP=$ac_cv_prog_STRIP
2794 if test -n "$STRIP"; then
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2796 $as_echo "$STRIP" >&6; }
2797 else
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 fi
2801
2802
2803 fi
2804 if test -z "$ac_cv_prog_STRIP"; then
2805   ac_ct_STRIP=$STRIP
2806   # Extract the first word of "strip", so it can be a program name with args.
2807 set dummy strip; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2811   $as_echo_n "(cached) " >&6
2812 else
2813   if test -n "$ac_ct_STRIP"; then
2814   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821     for ac_exec_ext in '' $ac_executable_extensions; do
2822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823     ac_cv_prog_ac_ct_STRIP="strip"
2824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825     break 2
2826   fi
2827 done
2828   done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2834 if test -n "$ac_ct_STRIP"; then
2835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2836 $as_echo "$ac_ct_STRIP" >&6; }
2837 else
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842   if test "x$ac_ct_STRIP" = x; then
2843     STRIP=":"
2844   else
2845     case $cross_compiling:$ac_tool_warned in
2846 yes:)
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849 ac_tool_warned=yes ;;
2850 esac
2851     STRIP=$ac_ct_STRIP
2852   fi
2853 else
2854   STRIP="$ac_cv_prog_STRIP"
2855 fi
2856
2857 fi
2858 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2861 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2862 if test -z "$MKDIR_P"; then
2863   if ${ac_cv_path_mkdir+:} false; then :
2864   $as_echo_n "(cached) " >&6
2865 else
2866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2868 do
2869   IFS=$as_save_IFS
2870   test -z "$as_dir" && as_dir=.
2871     for ac_prog in mkdir gmkdir; do
2872          for ac_exec_ext in '' $ac_executable_extensions; do
2873            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2874            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2875              'mkdir (GNU coreutils) '* | \
2876              'mkdir (coreutils) '* | \
2877              'mkdir (fileutils) '4.1*)
2878                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2879                break 3;;
2880            esac
2881          done
2882        done
2883   done
2884 IFS=$as_save_IFS
2885
2886 fi
2887
2888   test -d ./--version && rmdir ./--version
2889   if test "${ac_cv_path_mkdir+set}" = set; then
2890     MKDIR_P="$ac_cv_path_mkdir -p"
2891   else
2892     # As a last resort, use the slow shell script.  Don't cache a
2893     # value for MKDIR_P within a source directory, because that will
2894     # break other packages using the cache if that directory is
2895     # removed, or if the value is a relative name.
2896     MKDIR_P="$ac_install_sh -d"
2897   fi
2898 fi
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2900 $as_echo "$MKDIR_P" >&6; }
2901
2902 mkdir_p="$MKDIR_P"
2903 case $mkdir_p in
2904   [\\/$]* | ?:[\\/]*) ;;
2905   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2906 esac
2907
2908 for ac_prog in gawk mawk nawk awk
2909 do
2910   # Extract the first word of "$ac_prog", so it can be a program name with args.
2911 set dummy $ac_prog; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_AWK+:} false; then :
2915   $as_echo_n "(cached) " >&6
2916 else
2917   if test -n "$AWK"; then
2918   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923   IFS=$as_save_IFS
2924   test -z "$as_dir" && as_dir=.
2925     for ac_exec_ext in '' $ac_executable_extensions; do
2926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927     ac_cv_prog_AWK="$ac_prog"
2928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929     break 2
2930   fi
2931 done
2932   done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 AWK=$ac_cv_prog_AWK
2938 if test -n "$AWK"; then
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2940 $as_echo "$AWK" >&6; }
2941 else
2942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 fi
2945
2946
2947   test -n "$AWK" && break
2948 done
2949
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2951 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2952 set x ${MAKE-make}
2953 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2954 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2955   $as_echo_n "(cached) " >&6
2956 else
2957   cat >conftest.make <<\_ACEOF
2958 SHELL = /bin/sh
2959 all:
2960         @echo '@@@%%%=$(MAKE)=@@@%%%'
2961 _ACEOF
2962 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2963 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2964   *@@@%%%=?*=@@@%%%*)
2965     eval ac_cv_prog_make_${ac_make}_set=yes;;
2966   *)
2967     eval ac_cv_prog_make_${ac_make}_set=no;;
2968 esac
2969 rm -f conftest.make
2970 fi
2971 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973 $as_echo "yes" >&6; }
2974   SET_MAKE=
2975 else
2976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2978   SET_MAKE="MAKE=${MAKE-make}"
2979 fi
2980
2981 rm -rf .tst 2>/dev/null
2982 mkdir .tst 2>/dev/null
2983 if test -d .tst; then
2984   am__leading_dot=.
2985 else
2986   am__leading_dot=_
2987 fi
2988 rmdir .tst 2>/dev/null
2989
2990 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2991   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2992   # is not polluted with repeated "-I."
2993   am__isrc=' -I$(srcdir)'
2994   # test to see if srcdir already configured
2995   if test -f $srcdir/config.status; then
2996     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2997   fi
2998 fi
2999
3000 # test whether we have cygpath
3001 if test -z "$CYGPATH_W"; then
3002   if (cygpath --version) >/dev/null 2>/dev/null; then
3003     CYGPATH_W='cygpath -w'
3004   else
3005     CYGPATH_W=echo
3006   fi
3007 fi
3008
3009
3010 # Define the identity of the package.
3011  PACKAGE=fontconfig
3012  VERSION=2.9.0
3013
3014
3015 cat >>confdefs.h <<_ACEOF
3016 #define PACKAGE "$PACKAGE"
3017 _ACEOF
3018
3019
3020 cat >>confdefs.h <<_ACEOF
3021 #define VERSION "$VERSION"
3022 _ACEOF
3023
3024 # Some tools Automake needs.
3025
3026 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3027
3028
3029 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3030
3031
3032 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3033
3034
3035 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3036
3037
3038 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3039
3040 # We need awk for the "check" target.  The system "awk" is bad on
3041 # some platforms.
3042 # Always define AMTAR for backward compatibility.
3043
3044 AMTAR=${AMTAR-"${am_missing_run}tar"}
3045
3046 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3047
3048
3049
3050
3051
3052 # Check whether --enable-silent-rules was given.
3053 if test "${enable_silent_rules+set}" = set; then :
3054   enableval=$enable_silent_rules;
3055 fi
3056
3057 case $enable_silent_rules in
3058 yes) AM_DEFAULT_VERBOSITY=0;;
3059 no)  AM_DEFAULT_VERBOSITY=1;;
3060 *)   AM_DEFAULT_VERBOSITY=0;;
3061 esac
3062 AM_BACKSLASH='\'
3063
3064
3065
3066 LIBT_CURRENT=6
3067 LIBT_REVISION=0
3068
3069
3070 LIBT_AGE=5
3071
3072 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
3073
3074
3075 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
3076
3077
3078
3079 ac_config_headers="$ac_config_headers config.h"
3080
3081
3082 ac_ext=c
3083 ac_cpp='$CPP $CPPFLAGS'
3084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087 if test -n "$ac_tool_prefix"; then
3088   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3089 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_CC+:} false; then :
3093   $as_echo_n "(cached) " >&6
3094 else
3095   if test -n "$CC"; then
3096   ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101   IFS=$as_save_IFS
3102   test -z "$as_dir" && as_dir=.
3103     for ac_exec_ext in '' $ac_executable_extensions; do
3104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107     break 2
3108   fi
3109 done
3110   done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3119 else
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124
3125 fi
3126 if test -z "$ac_cv_prog_CC"; then
3127   ac_ct_CC=$CC
3128   # Extract the first word of "gcc", so it can be a program name with args.
3129 set dummy gcc; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3133   $as_echo_n "(cached) " >&6
3134 else
3135   if test -n "$ac_ct_CC"; then
3136   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141   IFS=$as_save_IFS
3142   test -z "$as_dir" && as_dir=.
3143     for ac_exec_ext in '' $ac_executable_extensions; do
3144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145     ac_cv_prog_ac_ct_CC="gcc"
3146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147     break 2
3148   fi
3149 done
3150   done
3151 IFS=$as_save_IFS
3152
3153 fi
3154 fi
3155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3156 if test -n "$ac_ct_CC"; then
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3158 $as_echo "$ac_ct_CC" >&6; }
3159 else
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163
3164   if test "x$ac_ct_CC" = x; then
3165     CC=""
3166   else
3167     case $cross_compiling:$ac_tool_warned in
3168 yes:)
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171 ac_tool_warned=yes ;;
3172 esac
3173     CC=$ac_ct_CC
3174   fi
3175 else
3176   CC="$ac_cv_prog_CC"
3177 fi
3178
3179 if test -z "$CC"; then
3180           if test -n "$ac_tool_prefix"; then
3181     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3182 set dummy ${ac_tool_prefix}cc; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_CC+:} false; then :
3186   $as_echo_n "(cached) " >&6
3187 else
3188   if test -n "$CC"; then
3189   ac_cv_prog_CC="$CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194   IFS=$as_save_IFS
3195   test -z "$as_dir" && as_dir=.
3196     for ac_exec_ext in '' $ac_executable_extensions; do
3197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198     ac_cv_prog_CC="${ac_tool_prefix}cc"
3199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200     break 2
3201   fi
3202 done
3203   done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 CC=$ac_cv_prog_CC
3209 if test -n "$CC"; then
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211 $as_echo "$CC" >&6; }
3212 else
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217
3218   fi
3219 fi
3220 if test -z "$CC"; then
3221   # Extract the first word of "cc", so it can be a program name with args.
3222 set dummy cc; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_CC+:} false; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   if test -n "$CC"; then
3229   ac_cv_prog_CC="$CC" # Let the user override the test.
3230 else
3231   ac_prog_rejected=no
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235   IFS=$as_save_IFS
3236   test -z "$as_dir" && as_dir=.
3237     for ac_exec_ext in '' $ac_executable_extensions; do
3238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3239     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3240        ac_prog_rejected=yes
3241        continue
3242      fi
3243     ac_cv_prog_CC="cc"
3244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245     break 2
3246   fi
3247 done
3248   done
3249 IFS=$as_save_IFS
3250
3251 if test $ac_prog_rejected = yes; then
3252   # We found a bogon in the path, so make sure we never use it.
3253   set dummy $ac_cv_prog_CC
3254   shift
3255   if test $# != 0; then
3256     # We chose a different compiler from the bogus one.
3257     # However, it has the same basename, so the bogon will be chosen
3258     # first if we set CC to just the basename; use the full file name.
3259     shift
3260     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3261   fi
3262 fi
3263 fi
3264 fi
3265 CC=$ac_cv_prog_CC
3266 if test -n "$CC"; then
3267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3268 $as_echo "$CC" >&6; }
3269 else
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 fi
3273
3274
3275 fi
3276 if test -z "$CC"; then
3277   if test -n "$ac_tool_prefix"; then
3278   for ac_prog in cl.exe
3279   do
3280     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if ${ac_cv_prog_CC+:} false; then :
3285   $as_echo_n "(cached) " >&6
3286 else
3287   if test -n "$CC"; then
3288   ac_cv_prog_CC="$CC" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3292 do
3293   IFS=$as_save_IFS
3294   test -z "$as_dir" && as_dir=.
3295     for ac_exec_ext in '' $ac_executable_extensions; do
3296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299     break 2
3300   fi
3301 done
3302   done
3303 IFS=$as_save_IFS
3304
3305 fi
3306 fi
3307 CC=$ac_cv_prog_CC
3308 if test -n "$CC"; then
3309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3310 $as_echo "$CC" >&6; }
3311 else
3312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 fi
3315
3316
3317     test -n "$CC" && break
3318   done
3319 fi
3320 if test -z "$CC"; then
3321   ac_ct_CC=$CC
3322   for ac_prog in cl.exe
3323 do
3324   # Extract the first word of "$ac_prog", so it can be a program name with args.
3325 set dummy $ac_prog; ac_word=$2
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327 $as_echo_n "checking for $ac_word... " >&6; }
3328 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3329   $as_echo_n "(cached) " >&6
3330 else
3331   if test -n "$ac_ct_CC"; then
3332   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3333 else
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337   IFS=$as_save_IFS
3338   test -z "$as_dir" && as_dir=.
3339     for ac_exec_ext in '' $ac_executable_extensions; do
3340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341     ac_cv_prog_ac_ct_CC="$ac_prog"
3342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343     break 2
3344   fi
3345 done
3346   done
3347 IFS=$as_save_IFS
3348
3349 fi
3350 fi
3351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3352 if test -n "$ac_ct_CC"; then
3353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3354 $as_echo "$ac_ct_CC" >&6; }
3355 else
3356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358 fi
3359
3360
3361   test -n "$ac_ct_CC" && break
3362 done
3363
3364   if test "x$ac_ct_CC" = x; then
3365     CC=""
3366   else
3367     case $cross_compiling:$ac_tool_warned in
3368 yes:)
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3371 ac_tool_warned=yes ;;
3372 esac
3373     CC=$ac_ct_CC
3374   fi
3375 fi
3376
3377 fi
3378
3379
3380 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 as_fn_error $? "no acceptable C compiler found in \$PATH
3383 See \`config.log' for more details" "$LINENO" 5; }
3384
3385 # Provide some information about the compiler.
3386 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3387 set X $ac_compile
3388 ac_compiler=$2
3389 for ac_option in --version -v -V -qversion; do
3390   { { ac_try="$ac_compiler $ac_option >&5"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 $as_echo "$ac_try_echo"; } >&5
3397   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3398   ac_status=$?
3399   if test -s conftest.err; then
3400     sed '10a\
3401 ... rest of stderr output deleted ...
3402          10q' conftest.err >conftest.er1
3403     cat conftest.er1 >&5
3404   fi
3405   rm -f conftest.er1 conftest.err
3406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407   test $ac_status = 0; }
3408 done
3409
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h.  */
3412
3413 int
3414 main ()
3415 {
3416
3417   ;
3418   return 0;
3419 }
3420 _ACEOF
3421 ac_clean_files_save=$ac_clean_files
3422 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3423 # Try to create an executable without -o first, disregard a.out.
3424 # It will help us diagnose broken compilers, and finding out an intuition
3425 # of exeext.
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3427 $as_echo_n "checking whether the C compiler works... " >&6; }
3428 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3429
3430 # The possible output files:
3431 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3432
3433 ac_rmfiles=
3434 for ac_file in $ac_files
3435 do
3436   case $ac_file in
3437     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3438     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3439   esac
3440 done
3441 rm -f $ac_rmfiles
3442
3443 if { { ac_try="$ac_link_default"
3444 case "(($ac_try" in
3445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446   *) ac_try_echo=$ac_try;;
3447 esac
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450   (eval "$ac_link_default") 2>&5
3451   ac_status=$?
3452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453   test $ac_status = 0; }; then :
3454   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3455 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3456 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3457 # so that the user can short-circuit this test for compilers unknown to
3458 # Autoconf.
3459 for ac_file in $ac_files ''
3460 do
3461   test -f "$ac_file" || continue
3462   case $ac_file in
3463     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3464         ;;
3465     [ab].out )
3466         # We found the default executable, but exeext='' is most
3467         # certainly right.
3468         break;;
3469     *.* )
3470         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3471         then :; else
3472            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3473         fi
3474         # We set ac_cv_exeext here because the later test for it is not
3475         # safe: cross compilers may not add the suffix if given an `-o'
3476         # argument, so we may need to know it at that point already.
3477         # Even if this section looks crufty: it has the advantage of
3478         # actually working.
3479         break;;
3480     * )
3481         break;;
3482   esac
3483 done
3484 test "$ac_cv_exeext" = no && ac_cv_exeext=
3485
3486 else
3487   ac_file=''
3488 fi
3489 if test -z "$ac_file"; then :
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3492 $as_echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error 77 "C compiler cannot create executables
3498 See \`config.log' for more details" "$LINENO" 5; }
3499 else
3500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501 $as_echo "yes" >&6; }
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3504 $as_echo_n "checking for C compiler default output file name... " >&6; }
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3506 $as_echo "$ac_file" >&6; }
3507 ac_exeext=$ac_cv_exeext
3508
3509 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3510 ac_clean_files=$ac_clean_files_save
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3512 $as_echo_n "checking for suffix of executables... " >&6; }
3513 if { { ac_try="$ac_link"
3514 case "(($ac_try" in
3515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516   *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520   (eval "$ac_link") 2>&5
3521   ac_status=$?
3522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523   test $ac_status = 0; }; then :
3524   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3525 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3526 # work properly (i.e., refer to `conftest.exe'), while it won't with
3527 # `rm'.
3528 for ac_file in conftest.exe conftest conftest.*; do
3529   test -f "$ac_file" || continue
3530   case $ac_file in
3531     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3532     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3533           break;;
3534     * ) break;;
3535   esac
3536 done
3537 else
3538   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3541 See \`config.log' for more details" "$LINENO" 5; }
3542 fi
3543 rm -f conftest conftest$ac_cv_exeext
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3545 $as_echo "$ac_cv_exeext" >&6; }
3546
3547 rm -f conftest.$ac_ext
3548 EXEEXT=$ac_cv_exeext
3549 ac_exeext=$EXEEXT
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h.  */
3552 #include <stdio.h>
3553 int
3554 main ()
3555 {
3556 FILE *f = fopen ("conftest.out", "w");
3557  return ferror (f) || fclose (f) != 0;
3558
3559   ;
3560   return 0;
3561 }
3562 _ACEOF
3563 ac_clean_files="$ac_clean_files conftest.out"
3564 # Check that the compiler produces executables we can run.  If not, either
3565 # the compiler is broken, or we cross compile.
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3567 $as_echo_n "checking whether we are cross compiling... " >&6; }
3568 if test "$cross_compiling" != yes; then
3569   { { ac_try="$ac_link"
3570 case "(($ac_try" in
3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572   *) ac_try_echo=$ac_try;;
3573 esac
3574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575 $as_echo "$ac_try_echo"; } >&5
3576   (eval "$ac_link") 2>&5
3577   ac_status=$?
3578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579   test $ac_status = 0; }
3580   if { ac_try='./conftest$ac_cv_exeext'
3581   { { case "(($ac_try" in
3582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583   *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587   (eval "$ac_try") 2>&5
3588   ac_status=$?
3589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590   test $ac_status = 0; }; }; then
3591     cross_compiling=no
3592   else
3593     if test "$cross_compiling" = maybe; then
3594         cross_compiling=yes
3595     else
3596         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error $? "cannot run C compiled programs.
3599 If you meant to cross compile, use \`--host'.
3600 See \`config.log' for more details" "$LINENO" 5; }
3601     fi
3602   fi
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3605 $as_echo "$cross_compiling" >&6; }
3606
3607 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3608 ac_clean_files=$ac_clean_files_save
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3610 $as_echo_n "checking for suffix of object files... " >&6; }
3611 if ${ac_cv_objext+:} false; then :
3612   $as_echo_n "(cached) " >&6
3613 else
3614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h.  */
3616
3617 int
3618 main ()
3619 {
3620
3621   ;
3622   return 0;
3623 }
3624 _ACEOF
3625 rm -f conftest.o conftest.obj
3626 if { { ac_try="$ac_compile"
3627 case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633   (eval "$ac_compile") 2>&5
3634   ac_status=$?
3635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636   test $ac_status = 0; }; then :
3637   for ac_file in conftest.o conftest.obj conftest.*; do
3638   test -f "$ac_file" || continue;
3639   case $ac_file in
3640     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3641     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3642        break;;
3643   esac
3644 done
3645 else
3646   $as_echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3651 as_fn_error $? "cannot compute suffix of object files: cannot compile
3652 See \`config.log' for more details" "$LINENO" 5; }
3653 fi
3654 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3657 $as_echo "$ac_cv_objext" >&6; }
3658 OBJEXT=$ac_cv_objext
3659 ac_objext=$OBJEXT
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3661 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3662 if ${ac_cv_c_compiler_gnu+:} false; then :
3663   $as_echo_n "(cached) " >&6
3664 else
3665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h.  */
3667
3668 int
3669 main ()
3670 {
3671 #ifndef __GNUC__
3672        choke me
3673 #endif
3674
3675   ;
3676   return 0;
3677 }
3678 _ACEOF
3679 if ac_fn_c_try_compile "$LINENO"; then :
3680   ac_compiler_gnu=yes
3681 else
3682   ac_compiler_gnu=no
3683 fi
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3686
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3689 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3690 if test $ac_compiler_gnu = yes; then
3691   GCC=yes
3692 else
3693   GCC=
3694 fi
3695 ac_test_CFLAGS=${CFLAGS+set}
3696 ac_save_CFLAGS=$CFLAGS
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3698 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3699 if ${ac_cv_prog_cc_g+:} false; then :
3700   $as_echo_n "(cached) " >&6
3701 else
3702   ac_save_c_werror_flag=$ac_c_werror_flag
3703    ac_c_werror_flag=yes
3704    ac_cv_prog_cc_g=no
3705    CFLAGS="-g"
3706    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h.  */
3708
3709 int
3710 main ()
3711 {
3712
3713   ;
3714   return 0;
3715 }
3716 _ACEOF
3717 if ac_fn_c_try_compile "$LINENO"; then :
3718   ac_cv_prog_cc_g=yes
3719 else
3720   CFLAGS=""
3721       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h.  */
3723
3724 int
3725 main ()
3726 {
3727
3728   ;
3729   return 0;
3730 }
3731 _ACEOF
3732 if ac_fn_c_try_compile "$LINENO"; then :
3733
3734 else
3735   ac_c_werror_flag=$ac_save_c_werror_flag
3736          CFLAGS="-g"
3737          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h.  */
3739
3740 int
3741 main ()
3742 {
3743
3744   ;
3745   return 0;
3746 }
3747 _ACEOF
3748 if ac_fn_c_try_compile "$LINENO"; then :
3749   ac_cv_prog_cc_g=yes
3750 fi
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 fi
3753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 fi
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756    ac_c_werror_flag=$ac_save_c_werror_flag
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3759 $as_echo "$ac_cv_prog_cc_g" >&6; }
3760 if test "$ac_test_CFLAGS" = set; then
3761   CFLAGS=$ac_save_CFLAGS
3762 elif test $ac_cv_prog_cc_g = yes; then
3763   if test "$GCC" = yes; then
3764     CFLAGS="-g -O2"
3765   else
3766     CFLAGS="-g"
3767   fi
3768 else
3769   if test "$GCC" = yes; then
3770     CFLAGS="-O2"
3771   else
3772     CFLAGS=
3773   fi
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3776 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3777 if ${ac_cv_prog_cc_c89+:} false; then :
3778   $as_echo_n "(cached) " >&6
3779 else
3780   ac_cv_prog_cc_c89=no
3781 ac_save_CC=$CC
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h.  */
3784 #include <stdarg.h>
3785 #include <stdio.h>
3786 #include <sys/types.h>
3787 #include <sys/stat.h>
3788 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3789 struct buf { int x; };
3790 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3791 static char *e (p, i)
3792      char **p;
3793      int i;
3794 {
3795   return p[i];
3796 }
3797 static char *f (char * (*g) (char **, int), char **p, ...)
3798 {
3799   char *s;
3800   va_list v;
3801   va_start (v,p);
3802   s = g (p, va_arg (v,int));
3803   va_end (v);
3804   return s;
3805 }
3806
3807 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3808    function prototypes and stuff, but not '\xHH' hex character constants.
3809    These don't provoke an error unfortunately, instead are silently treated
3810    as 'x'.  The following induces an error, until -std is added to get
3811    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3812    array size at least.  It's necessary to write '\x00'==0 to get something
3813    that's true only with -std.  */
3814 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3815
3816 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3817    inside strings and character constants.  */
3818 #define FOO(x) 'x'
3819 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3820
3821 int test (int i, double x);
3822 struct s1 {int (*f) (int a);};
3823 struct s2 {int (*f) (double a);};
3824 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3825 int argc;
3826 char **argv;
3827 int
3828 main ()
3829 {
3830 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3831   ;
3832   return 0;
3833 }
3834 _ACEOF
3835 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3836         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3837 do
3838   CC="$ac_save_CC $ac_arg"
3839   if ac_fn_c_try_compile "$LINENO"; then :
3840   ac_cv_prog_cc_c89=$ac_arg
3841 fi
3842 rm -f core conftest.err conftest.$ac_objext
3843   test "x$ac_cv_prog_cc_c89" != "xno" && break
3844 done
3845 rm -f conftest.$ac_ext
3846 CC=$ac_save_CC
3847
3848 fi
3849 # AC_CACHE_VAL
3850 case "x$ac_cv_prog_cc_c89" in
3851   x)
3852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3853 $as_echo "none needed" >&6; } ;;
3854   xno)
3855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3856 $as_echo "unsupported" >&6; } ;;
3857   *)
3858     CC="$CC $ac_cv_prog_cc_c89"
3859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3860 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3861 esac
3862 if test "x$ac_cv_prog_cc_c89" != xno; then :
3863
3864 fi
3865
3866 ac_ext=c
3867 ac_cpp='$CPP $CPPFLAGS'
3868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871 DEPDIR="${am__leading_dot}deps"
3872
3873 ac_config_commands="$ac_config_commands depfiles"
3874
3875
3876 am_make=${MAKE-make}
3877 cat > confinc << 'END'
3878 am__doit:
3879         @echo this is the am__doit target
3880 .PHONY: am__doit
3881 END
3882 # If we don't find an include directive, just comment out the code.
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3884 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3885 am__include="#"
3886 am__quote=
3887 _am_result=none
3888 # First try GNU make style include.
3889 echo "include confinc" > confmf
3890 # Ignore all kinds of additional output from `make'.
3891 case `$am_make -s -f confmf 2> /dev/null` in #(
3892 *the\ am__doit\ target*)
3893   am__include=include
3894   am__quote=
3895   _am_result=GNU
3896   ;;
3897 esac
3898 # Now try BSD make style include.
3899 if test "$am__include" = "#"; then
3900    echo '.include "confinc"' > confmf
3901    case `$am_make -s -f confmf 2> /dev/null` in #(
3902    *the\ am__doit\ target*)
3903      am__include=.include
3904      am__quote="\""
3905      _am_result=BSD
3906      ;;
3907    esac
3908 fi
3909
3910
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3912 $as_echo "$_am_result" >&6; }
3913 rm -f confinc confmf
3914
3915 # Check whether --enable-dependency-tracking was given.
3916 if test "${enable_dependency_tracking+set}" = set; then :
3917   enableval=$enable_dependency_tracking;
3918 fi
3919
3920 if test "x$enable_dependency_tracking" != xno; then
3921   am_depcomp="$ac_aux_dir/depcomp"
3922   AMDEPBACKSLASH='\'
3923 fi
3924  if test "x$enable_dependency_tracking" != xno; then
3925   AMDEP_TRUE=
3926   AMDEP_FALSE='#'
3927 else
3928   AMDEP_TRUE='#'
3929   AMDEP_FALSE=
3930 fi
3931
3932
3933
3934 depcc="$CC"   am_compiler_list=
3935
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3937 $as_echo_n "checking dependency style of $depcc... " >&6; }
3938 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3939   $as_echo_n "(cached) " >&6
3940 else
3941   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3942   # We make a subdir and do the tests there.  Otherwise we can end up
3943   # making bogus files that we don't know about and never remove.  For
3944   # instance it was reported that on HP-UX the gcc test will end up
3945   # making a dummy file named `D' -- because `-MD' means `put the output
3946   # in D'.
3947   mkdir conftest.dir
3948   # Copy depcomp to subdir because otherwise we won't find it if we're
3949   # using a relative directory.
3950   cp "$am_depcomp" conftest.dir
3951   cd conftest.dir
3952   # We will build objects and dependencies in a subdirectory because
3953   # it helps to detect inapplicable dependency modes.  For instance
3954   # both Tru64's cc and ICC support -MD to output dependencies as a
3955   # side effect of compilation, but ICC will put the dependencies in
3956   # the current directory while Tru64 will put them in the object
3957   # directory.
3958   mkdir sub
3959
3960   am_cv_CC_dependencies_compiler_type=none
3961   if test "$am_compiler_list" = ""; then
3962      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3963   fi
3964   am__universal=false
3965   case " $depcc " in #(
3966      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3967      esac
3968
3969   for depmode in $am_compiler_list; do
3970     # Setup a source with many dependencies, because some compilers
3971     # like to wrap large dependency lists on column 80 (with \), and
3972     # we should not choose a depcomp mode which is confused by this.
3973     #
3974     # We need to recreate these files for each test, as the compiler may
3975     # overwrite some of them when testing with obscure command lines.
3976     # This happens at least with the AIX C compiler.
3977     : > sub/conftest.c
3978     for i in 1 2 3 4 5 6; do
3979       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3980       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3981       # Solaris 8's {/usr,}/bin/sh.
3982       touch sub/conftst$i.h
3983     done
3984     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3985
3986     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3987     # mode.  It turns out that the SunPro C++ compiler does not properly
3988     # handle `-M -o', and we need to detect this.  Also, some Intel
3989     # versions had trouble with output in subdirs
3990     am__obj=sub/conftest.${OBJEXT-o}
3991     am__minus_obj="-o $am__obj"
3992     case $depmode in
3993     gcc)
3994       # This depmode causes a compiler race in universal mode.
3995       test "$am__universal" = false || continue
3996       ;;
3997     nosideeffect)
3998       # after this tag, mechanisms are not by side-effect, so they'll
3999       # only be used when explicitly requested
4000       if test "x$enable_dependency_tracking" = xyes; then
4001         continue
4002       else
4003         break
4004       fi
4005       ;;
4006     msvisualcpp | msvcmsys)
4007       # This compiler won't grok `-c -o', but also, the minuso test has
4008       # not run yet.  These depmodes are late enough in the game, and
4009       # so weak that their functioning should not be impacted.
4010       am__obj=conftest.${OBJEXT-o}
4011       am__minus_obj=
4012       ;;
4013     none) break ;;
4014     esac
4015     if depmode=$depmode \
4016        source=sub/conftest.c object=$am__obj \
4017        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4018        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4019          >/dev/null 2>conftest.err &&
4020        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4021        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4022        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4023        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4024       # icc doesn't choke on unknown options, it will just issue warnings
4025       # or remarks (even with -Werror).  So we grep stderr for any message
4026       # that says an option was ignored or not supported.
4027       # When given -MP, icc 7.0 and 7.1 complain thusly:
4028       #   icc: Command line warning: ignoring option '-M'; no argument required
4029       # The diagnosis changed in icc 8.0:
4030       #   icc: Command line remark: option '-MP' not supported
4031       if (grep 'ignoring option' conftest.err ||
4032           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4033         am_cv_CC_dependencies_compiler_type=$depmode
4034         break
4035       fi
4036     fi
4037   done
4038
4039   cd ..
4040   rm -rf conftest.dir
4041 else
4042   am_cv_CC_dependencies_compiler_type=none
4043 fi
4044
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4047 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4048 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4049
4050  if
4051   test "x$enable_dependency_tracking" != xno \
4052   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4053   am__fastdepCC_TRUE=
4054   am__fastdepCC_FALSE='#'
4055 else
4056   am__fastdepCC_TRUE='#'
4057   am__fastdepCC_FALSE=
4058 fi
4059
4060
4061
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4063 $as_echo_n "checking whether ln -s works... " >&6; }
4064 LN_S=$as_ln_s
4065 if test "$LN_S" = "ln -s"; then
4066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4067 $as_echo "yes" >&6; }
4068 else
4069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4070 $as_echo "no, using $LN_S" >&6; }
4071 fi
4072
4073 # Make sure we can run config.sub.
4074 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4075   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4076
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4078 $as_echo_n "checking build system type... " >&6; }
4079 if ${ac_cv_build+:} false; then :
4080   $as_echo_n "(cached) " >&6
4081 else
4082   ac_build_alias=$build_alias
4083 test "x$ac_build_alias" = x &&
4084   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4085 test "x$ac_build_alias" = x &&
4086   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4087 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4088   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4089
4090 fi
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4092 $as_echo "$ac_cv_build" >&6; }
4093 case $ac_cv_build in
4094 *-*-*) ;;
4095 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4096 esac
4097 build=$ac_cv_build
4098 ac_save_IFS=$IFS; IFS='-'
4099 set x $ac_cv_build
4100 shift
4101 build_cpu=$1
4102 build_vendor=$2
4103 shift; shift
4104 # Remember, the first character of IFS is used to create $*,
4105 # except with old shells:
4106 build_os=$*
4107 IFS=$ac_save_IFS
4108 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4109
4110
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4112 $as_echo_n "checking host system type... " >&6; }
4113 if ${ac_cv_host+:} false; then :
4114   $as_echo_n "(cached) " >&6
4115 else
4116   if test "x$host_alias" = x; then
4117   ac_cv_host=$ac_cv_build
4118 else
4119   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4120     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4121 fi
4122
4123 fi
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4125 $as_echo "$ac_cv_host" >&6; }
4126 case $ac_cv_host in
4127 *-*-*) ;;
4128 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4129 esac
4130 host=$ac_cv_host
4131 ac_save_IFS=$IFS; IFS='-'
4132 set x $ac_cv_host
4133 shift
4134 host_cpu=$1
4135 host_vendor=$2
4136 shift; shift
4137 # Remember, the first character of IFS is used to create $*,
4138 # except with old shells:
4139 host_os=$*
4140 IFS=$ac_save_IFS
4141 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4142
4143
4144 enable_win32_dll=yes
4145
4146 case $host in
4147 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4148   if test -n "$ac_tool_prefix"; then
4149   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4150 set dummy ${ac_tool_prefix}as; ac_word=$2
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 $as_echo_n "checking for $ac_word... " >&6; }
4153 if ${ac_cv_prog_AS+:} false; then :
4154   $as_echo_n "(cached) " >&6
4155 else
4156   if test -n "$AS"; then
4157   ac_cv_prog_AS="$AS" # Let the user override the test.
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4161 do
4162   IFS=$as_save_IFS
4163   test -z "$as_dir" && as_dir=.
4164     for ac_exec_ext in '' $ac_executable_extensions; do
4165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166     ac_cv_prog_AS="${ac_tool_prefix}as"
4167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168     break 2
4169   fi
4170 done
4171   done
4172 IFS=$as_save_IFS
4173
4174 fi
4175 fi
4176 AS=$ac_cv_prog_AS
4177 if test -n "$AS"; then
4178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4179 $as_echo "$AS" >&6; }
4180 else
4181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4183 fi
4184
4185
4186 fi
4187 if test -z "$ac_cv_prog_AS"; then
4188   ac_ct_AS=$AS
4189   # Extract the first word of "as", so it can be a program name with args.
4190 set dummy as; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4194   $as_echo_n "(cached) " >&6
4195 else
4196   if test -n "$ac_ct_AS"; then
4197   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202   IFS=$as_save_IFS
4203   test -z "$as_dir" && as_dir=.
4204     for ac_exec_ext in '' $ac_executable_extensions; do
4205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206     ac_cv_prog_ac_ct_AS="as"
4207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208     break 2
4209   fi
4210 done
4211   done
4212 IFS=$as_save_IFS
4213
4214 fi
4215 fi
4216 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4217 if test -n "$ac_ct_AS"; then
4218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4219 $as_echo "$ac_ct_AS" >&6; }
4220 else
4221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4223 fi
4224
4225   if test "x$ac_ct_AS" = x; then
4226     AS="false"
4227   else
4228     case $cross_compiling:$ac_tool_warned in
4229 yes:)
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4232 ac_tool_warned=yes ;;
4233 esac
4234     AS=$ac_ct_AS
4235   fi
4236 else
4237   AS="$ac_cv_prog_AS"
4238 fi
4239
4240   if test -n "$ac_tool_prefix"; then
4241   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4242 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if ${ac_cv_prog_DLLTOOL+:} false; then :
4246   $as_echo_n "(cached) " >&6
4247 else
4248   if test -n "$DLLTOOL"; then
4249   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256     for ac_exec_ext in '' $ac_executable_extensions; do
4257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263   done
4264 IFS=$as_save_IFS
4265
4266 fi
4267 fi
4268 DLLTOOL=$ac_cv_prog_DLLTOOL
4269 if test -n "$DLLTOOL"; then
4270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4271 $as_echo "$DLLTOOL" >&6; }
4272 else
4273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4275 fi
4276
4277
4278 fi
4279 if test -z "$ac_cv_prog_DLLTOOL"; then
4280   ac_ct_DLLTOOL=$DLLTOOL
4281   # Extract the first word of "dlltool", so it can be a program name with args.
4282 set dummy dlltool; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4286   $as_echo_n "(cached) " >&6
4287 else
4288   if test -n "$ac_ct_DLLTOOL"; then
4289   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296     for ac_exec_ext in '' $ac_executable_extensions; do
4297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4298     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300     break 2
4301   fi
4302 done
4303   done
4304 IFS=$as_save_IFS
4305
4306 fi
4307 fi
4308 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4309 if test -n "$ac_ct_DLLTOOL"; then
4310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4311 $as_echo "$ac_ct_DLLTOOL" >&6; }
4312 else
4313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4315 fi
4316
4317   if test "x$ac_ct_DLLTOOL" = x; then
4318     DLLTOOL="false"
4319   else
4320     case $cross_compiling:$ac_tool_warned in
4321 yes:)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324 ac_tool_warned=yes ;;
4325 esac
4326     DLLTOOL=$ac_ct_DLLTOOL
4327   fi
4328 else
4329   DLLTOOL="$ac_cv_prog_DLLTOOL"
4330 fi
4331
4332   if test -n "$ac_tool_prefix"; then
4333   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4334 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if ${ac_cv_prog_OBJDUMP+:} false; then :
4338   $as_echo_n "(cached) " >&6
4339 else
4340   if test -n "$OBJDUMP"; then
4341   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346   IFS=$as_save_IFS
4347   test -z "$as_dir" && as_dir=.
4348     for ac_exec_ext in '' $ac_executable_extensions; do
4349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352     break 2
4353   fi
4354 done
4355   done
4356 IFS=$as_save_IFS
4357
4358 fi
4359 fi
4360 OBJDUMP=$ac_cv_prog_OBJDUMP
4361 if test -n "$OBJDUMP"; then
4362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4363 $as_echo "$OBJDUMP" >&6; }
4364 else
4365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368
4369
4370 fi
4371 if test -z "$ac_cv_prog_OBJDUMP"; then
4372   ac_ct_OBJDUMP=$OBJDUMP
4373   # Extract the first word of "objdump", so it can be a program name with args.
4374 set dummy objdump; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4378   $as_echo_n "(cached) " >&6
4379 else
4380   if test -n "$ac_ct_OBJDUMP"; then
4381   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388     for ac_exec_ext in '' $ac_executable_extensions; do
4389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392     break 2
4393   fi
4394 done
4395   done
4396 IFS=$as_save_IFS
4397
4398 fi
4399 fi
4400 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4401 if test -n "$ac_ct_OBJDUMP"; then
4402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4403 $as_echo "$ac_ct_OBJDUMP" >&6; }
4404 else
4405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407 fi
4408
4409   if test "x$ac_ct_OBJDUMP" = x; then
4410     OBJDUMP="false"
4411   else
4412     case $cross_compiling:$ac_tool_warned in
4413 yes:)
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4416 ac_tool_warned=yes ;;
4417 esac
4418     OBJDUMP=$ac_ct_OBJDUMP
4419   fi
4420 else
4421   OBJDUMP="$ac_cv_prog_OBJDUMP"
4422 fi
4423
4424   ;;
4425 esac
4426
4427 test -z "$AS" && AS=as
4428
4429
4430
4431
4432
4433 test -z "$DLLTOOL" && DLLTOOL=dlltool
4434
4435
4436
4437
4438
4439 test -z "$OBJDUMP" && OBJDUMP=objdump
4440
4441
4442
4443
4444
4445
4446
4447 case `pwd` in
4448   *\ * | *\     *)
4449     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4450 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4451 esac
4452
4453
4454
4455 macro_version='2.4'
4456 macro_revision='1.3293'
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470 ltmain="$ac_aux_dir/ltmain.sh"
4471
4472 # Backslashify metacharacters that are still active within
4473 # double-quoted strings.
4474 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4475
4476 # Same as above, but do not quote variable references.
4477 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4478
4479 # Sed substitution to delay expansion of an escaped shell variable in a
4480 # double_quote_subst'ed string.
4481 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4482
4483 # Sed substitution to delay expansion of an escaped single quote.
4484 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4485
4486 # Sed substitution to avoid accidental globbing in evaled expressions
4487 no_glob_subst='s/\*/\\\*/g'
4488
4489 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4490 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4491 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4492
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4494 $as_echo_n "checking how to print strings... " >&6; }
4495 # Test print first, because it will be a builtin if present.
4496 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4497    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4498   ECHO='print -r --'
4499 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4500   ECHO='printf %s\n'
4501 else
4502   # Use this function as a fallback that always works.
4503   func_fallback_echo ()
4504   {
4505     eval 'cat <<_LTECHO_EOF
4506 $1
4507 _LTECHO_EOF'
4508   }
4509   ECHO='func_fallback_echo'
4510 fi
4511
4512 # func_echo_all arg...
4513 # Invoke $ECHO with all args, space-separated.
4514 func_echo_all ()
4515 {
4516     $ECHO ""
4517 }
4518
4519 case "$ECHO" in
4520   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4521 $as_echo "printf" >&6; } ;;
4522   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4523 $as_echo "print -r" >&6; } ;;
4524   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4525 $as_echo "cat" >&6; } ;;
4526 esac
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4542 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4543 if ${ac_cv_path_SED+:} false; then :
4544   $as_echo_n "(cached) " >&6
4545 else
4546             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4547      for ac_i in 1 2 3 4 5 6 7; do
4548        ac_script="$ac_script$as_nl$ac_script"
4549      done
4550      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4551      { ac_script=; unset ac_script;}
4552      if test -z "$SED"; then
4553   ac_path_SED_found=false
4554   # Loop through the user's path and test for each of PROGNAME-LIST
4555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560     for ac_prog in sed gsed; do
4561     for ac_exec_ext in '' $ac_executable_extensions; do
4562       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4563       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4564 # Check for GNU ac_path_SED and select it if it is found.
4565   # Check for GNU $ac_path_SED
4566 case `"$ac_path_SED" --version 2>&1` in
4567 *GNU*)
4568   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4569 *)
4570   ac_count=0
4571   $as_echo_n 0123456789 >"conftest.in"
4572   while :
4573   do
4574     cat "conftest.in" "conftest.in" >"conftest.tmp"
4575     mv "conftest.tmp" "conftest.in"
4576     cp "conftest.in" "conftest.nl"
4577     $as_echo '' >> "conftest.nl"
4578     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580     as_fn_arith $ac_count + 1 && ac_count=$as_val
4581     if test $ac_count -gt ${ac_path_SED_max-0}; then
4582       # Best one so far, save it but keep looking for a better one
4583       ac_cv_path_SED="$ac_path_SED"
4584       ac_path_SED_max=$ac_count
4585     fi
4586     # 10*(2^10) chars as input seems more than enough
4587     test $ac_count -gt 10 && break
4588   done
4589   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590 esac
4591
4592       $ac_path_SED_found && break 3
4593     done
4594   done
4595   done
4596 IFS=$as_save_IFS
4597   if test -z "$ac_cv_path_SED"; then
4598     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4599   fi
4600 else
4601   ac_cv_path_SED=$SED
4602 fi
4603
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4606 $as_echo "$ac_cv_path_SED" >&6; }
4607  SED="$ac_cv_path_SED"
4608   rm -f conftest.sed
4609
4610 test -z "$SED" && SED=sed
4611 Xsed="$SED -e 1s/^X//"
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4624 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4625 if ${ac_cv_path_GREP+:} false; then :
4626   $as_echo_n "(cached) " >&6
4627 else
4628   if test -z "$GREP"; then
4629   ac_path_GREP_found=false
4630   # Loop through the user's path and test for each of PROGNAME-LIST
4631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4633 do
4634   IFS=$as_save_IFS
4635   test -z "$as_dir" && as_dir=.
4636     for ac_prog in grep ggrep; do
4637     for ac_exec_ext in '' $ac_executable_extensions; do
4638       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4639       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4640 # Check for GNU ac_path_GREP and select it if it is found.
4641   # Check for GNU $ac_path_GREP
4642 case `"$ac_path_GREP" --version 2>&1` in
4643 *GNU*)
4644   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4645 *)
4646   ac_count=0
4647   $as_echo_n 0123456789 >"conftest.in"
4648   while :
4649   do
4650     cat "conftest.in" "conftest.in" >"conftest.tmp"
4651     mv "conftest.tmp" "conftest.in"
4652     cp "conftest.in" "conftest.nl"
4653     $as_echo 'GREP' >> "conftest.nl"
4654     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4655     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4656     as_fn_arith $ac_count + 1 && ac_count=$as_val
4657     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4658       # Best one so far, save it but keep looking for a better one
4659       ac_cv_path_GREP="$ac_path_GREP"
4660       ac_path_GREP_max=$ac_count
4661     fi
4662     # 10*(2^10) chars as input seems more than enough
4663     test $ac_count -gt 10 && break
4664   done
4665   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4666 esac
4667
4668       $ac_path_GREP_found && break 3
4669     done
4670   done
4671   done
4672 IFS=$as_save_IFS
4673   if test -z "$ac_cv_path_GREP"; then
4674     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4675   fi
4676 else
4677   ac_cv_path_GREP=$GREP
4678 fi
4679
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4682 $as_echo "$ac_cv_path_GREP" >&6; }
4683  GREP="$ac_cv_path_GREP"
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4687 $as_echo_n "checking for egrep... " >&6; }
4688 if ${ac_cv_path_EGREP+:} false; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4692    then ac_cv_path_EGREP="$GREP -E"
4693    else
4694      if test -z "$EGREP"; then
4695   ac_path_EGREP_found=false
4696   # Loop through the user's path and test for each of PROGNAME-LIST
4697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702     for ac_prog in egrep; do
4703     for ac_exec_ext in '' $ac_executable_extensions; do
4704       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4705       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4706 # Check for GNU ac_path_EGREP and select it if it is found.
4707   # Check for GNU $ac_path_EGREP
4708 case `"$ac_path_EGREP" --version 2>&1` in
4709 *GNU*)
4710   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4711 *)
4712   ac_count=0
4713   $as_echo_n 0123456789 >"conftest.in"
4714   while :
4715   do
4716     cat "conftest.in" "conftest.in" >"conftest.tmp"
4717     mv "conftest.tmp" "conftest.in"
4718     cp "conftest.in" "conftest.nl"
4719     $as_echo 'EGREP' >> "conftest.nl"
4720     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4721     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4722     as_fn_arith $ac_count + 1 && ac_count=$as_val
4723     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4724       # Best one so far, save it but keep looking for a better one
4725       ac_cv_path_EGREP="$ac_path_EGREP"
4726       ac_path_EGREP_max=$ac_count
4727     fi
4728     # 10*(2^10) chars as input seems more than enough
4729     test $ac_count -gt 10 && break
4730   done
4731   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4732 esac
4733
4734       $ac_path_EGREP_found && break 3
4735     done
4736   done
4737   done
4738 IFS=$as_save_IFS
4739   if test -z "$ac_cv_path_EGREP"; then
4740     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4741   fi
4742 else
4743   ac_cv_path_EGREP=$EGREP
4744 fi
4745
4746    fi
4747 fi
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4749 $as_echo "$ac_cv_path_EGREP" >&6; }
4750  EGREP="$ac_cv_path_EGREP"
4751
4752
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4754 $as_echo_n "checking for fgrep... " >&6; }
4755 if ${ac_cv_path_FGREP+:} false; then :
4756   $as_echo_n "(cached) " >&6
4757 else
4758   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4759    then ac_cv_path_FGREP="$GREP -F"
4760    else
4761      if test -z "$FGREP"; then
4762   ac_path_FGREP_found=false
4763   # Loop through the user's path and test for each of PROGNAME-LIST
4764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4766 do
4767   IFS=$as_save_IFS
4768   test -z "$as_dir" && as_dir=.
4769     for ac_prog in fgrep; do
4770     for ac_exec_ext in '' $ac_executable_extensions; do
4771       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4772       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4773 # Check for GNU ac_path_FGREP and select it if it is found.
4774   # Check for GNU $ac_path_FGREP
4775 case `"$ac_path_FGREP" --version 2>&1` in
4776 *GNU*)
4777   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4778 *)
4779   ac_count=0
4780   $as_echo_n 0123456789 >"conftest.in"
4781   while :
4782   do
4783     cat "conftest.in" "conftest.in" >"conftest.tmp"
4784     mv "conftest.tmp" "conftest.in"
4785     cp "conftest.in" "conftest.nl"
4786     $as_echo 'FGREP' >> "conftest.nl"
4787     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4788     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4789     as_fn_arith $ac_count + 1 && ac_count=$as_val
4790     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4791       # Best one so far, save it but keep looking for a better one
4792       ac_cv_path_FGREP="$ac_path_FGREP"
4793       ac_path_FGREP_max=$ac_count
4794     fi
4795     # 10*(2^10) chars as input seems more than enough
4796     test $ac_count -gt 10 && break
4797   done
4798   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4799 esac
4800
4801       $ac_path_FGREP_found && break 3
4802     done
4803   done
4804   done
4805 IFS=$as_save_IFS
4806   if test -z "$ac_cv_path_FGREP"; then
4807     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4808   fi
4809 else
4810   ac_cv_path_FGREP=$FGREP
4811 fi
4812
4813    fi
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4816 $as_echo "$ac_cv_path_FGREP" >&6; }
4817  FGREP="$ac_cv_path_FGREP"
4818
4819
4820 test -z "$GREP" && GREP=grep
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840 # Check whether --with-gnu-ld was given.
4841 if test "${with_gnu_ld+set}" = set; then :
4842   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4843 else
4844   with_gnu_ld=no
4845 fi
4846
4847 ac_prog=ld
4848 if test "$GCC" = yes; then
4849   # Check if gcc -print-prog-name=ld gives a path.
4850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4851 $as_echo_n "checking for ld used by $CC... " >&6; }
4852   case $host in
4853   *-*-mingw*)
4854     # gcc leaves a trailing carriage return which upsets mingw
4855     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4856   *)
4857     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4858   esac
4859   case $ac_prog in
4860     # Accept absolute paths.
4861     [\\/]* | ?:[\\/]*)
4862       re_direlt='/[^/][^/]*/\.\./'
4863       # Canonicalize the pathname of ld
4864       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4865       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4866         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4867       done
4868       test -z "$LD" && LD="$ac_prog"
4869       ;;
4870   "")
4871     # If it fails, then pretend we aren't using GCC.
4872     ac_prog=ld
4873     ;;
4874   *)
4875     # If it is relative, then search for the first ld in PATH.
4876     with_gnu_ld=unknown
4877     ;;
4878   esac
4879 elif test "$with_gnu_ld" = yes; then
4880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4881 $as_echo_n "checking for GNU ld... " >&6; }
4882 else
4883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4884 $as_echo_n "checking for non-GNU ld... " >&6; }
4885 fi
4886 if ${lt_cv_path_LD+:} false; then :
4887   $as_echo_n "(cached) " >&6
4888 else
4889   if test -z "$LD"; then
4890   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4891   for ac_dir in $PATH; do
4892     IFS="$lt_save_ifs"
4893     test -z "$ac_dir" && ac_dir=.
4894     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4895       lt_cv_path_LD="$ac_dir/$ac_prog"
4896       # Check to see if the program is GNU ld.  I'd rather use --version,
4897       # but apparently some variants of GNU ld only accept -v.
4898       # Break only if it was the GNU/non-GNU ld that we prefer.
4899       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4900       *GNU* | *'with BFD'*)
4901         test "$with_gnu_ld" != no && break
4902         ;;
4903       *)
4904         test "$with_gnu_ld" != yes && break
4905         ;;
4906       esac
4907     fi
4908   done
4909   IFS="$lt_save_ifs"
4910 else
4911   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4912 fi
4913 fi
4914
4915 LD="$lt_cv_path_LD"
4916 if test -n "$LD"; then
4917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4918 $as_echo "$LD" >&6; }
4919 else
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4925 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4926 if ${lt_cv_prog_gnu_ld+:} false; then :
4927   $as_echo_n "(cached) " >&6
4928 else
4929   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4930 case `$LD -v 2>&1 </dev/null` in
4931 *GNU* | *'with BFD'*)
4932   lt_cv_prog_gnu_ld=yes
4933   ;;
4934 *)
4935   lt_cv_prog_gnu_ld=no
4936   ;;
4937 esac
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4940 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4941 with_gnu_ld=$lt_cv_prog_gnu_ld
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4952 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4953 if ${lt_cv_path_NM+:} false; then :
4954   $as_echo_n "(cached) " >&6
4955 else
4956   if test -n "$NM"; then
4957   # Let the user override the test.
4958   lt_cv_path_NM="$NM"
4959 else
4960   lt_nm_to_check="${ac_tool_prefix}nm"
4961   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4962     lt_nm_to_check="$lt_nm_to_check nm"
4963   fi
4964   for lt_tmp_nm in $lt_nm_to_check; do
4965     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4966     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4967       IFS="$lt_save_ifs"
4968       test -z "$ac_dir" && ac_dir=.
4969       tmp_nm="$ac_dir/$lt_tmp_nm"
4970       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4971         # Check to see if the nm accepts a BSD-compat flag.
4972         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4973         #   nm: unknown option "B" ignored
4974         # Tru64's nm complains that /dev/null is an invalid object file
4975         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4976         */dev/null* | *'Invalid file or object type'*)
4977           lt_cv_path_NM="$tmp_nm -B"
4978           break
4979           ;;
4980         *)
4981           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4982           */dev/null*)
4983             lt_cv_path_NM="$tmp_nm -p"
4984             break
4985             ;;
4986           *)
4987             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4988             continue # so that we can try to find one that supports BSD flags
4989             ;;
4990           esac
4991           ;;
4992         esac
4993       fi
4994     done
4995     IFS="$lt_save_ifs"
4996   done
4997   : ${lt_cv_path_NM=no}
4998 fi
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5001 $as_echo "$lt_cv_path_NM" >&6; }
5002 if test "$lt_cv_path_NM" != "no"; then
5003   NM="$lt_cv_path_NM"
5004 else
5005   # Didn't find any BSD compatible name lister, look for dumpbin.
5006   if test -n "$DUMPBIN"; then :
5007     # Let the user override the test.
5008   else
5009     if test -n "$ac_tool_prefix"; then
5010   for ac_prog in dumpbin "link -dump"
5011   do
5012     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if ${ac_cv_prog_DUMPBIN+:} false; then :
5017   $as_echo_n "(cached) " >&6
5018 else
5019   if test -n "$DUMPBIN"; then
5020   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025   IFS=$as_save_IFS
5026   test -z "$as_dir" && as_dir=.
5027     for ac_exec_ext in '' $ac_executable_extensions; do
5028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031     break 2
5032   fi
5033 done
5034   done
5035 IFS=$as_save_IFS
5036
5037 fi
5038 fi
5039 DUMPBIN=$ac_cv_prog_DUMPBIN
5040 if test -n "$DUMPBIN"; then
5041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5042 $as_echo "$DUMPBIN" >&6; }
5043 else
5044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5046 fi
5047
5048
5049     test -n "$DUMPBIN" && break
5050   done
5051 fi
5052 if test -z "$DUMPBIN"; then
5053   ac_ct_DUMPBIN=$DUMPBIN
5054   for ac_prog in dumpbin "link -dump"
5055 do
5056   # Extract the first word of "$ac_prog", so it can be a program name with args.
5057 set dummy $ac_prog; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5061   $as_echo_n "(cached) " >&6
5062 else
5063   if test -n "$ac_ct_DUMPBIN"; then
5064   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069   IFS=$as_save_IFS
5070   test -z "$as_dir" && as_dir=.
5071     for ac_exec_ext in '' $ac_executable_extensions; do
5072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075     break 2
5076   fi
5077 done
5078   done
5079 IFS=$as_save_IFS
5080
5081 fi
5082 fi
5083 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5084 if test -n "$ac_ct_DUMPBIN"; then
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5086 $as_echo "$ac_ct_DUMPBIN" >&6; }
5087 else
5088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5090 fi
5091
5092
5093   test -n "$ac_ct_DUMPBIN" && break
5094 done
5095
5096   if test "x$ac_ct_DUMPBIN" = x; then
5097     DUMPBIN=":"
5098   else
5099     case $cross_compiling:$ac_tool_warned in
5100 yes:)
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5103 ac_tool_warned=yes ;;
5104 esac
5105     DUMPBIN=$ac_ct_DUMPBIN
5106   fi
5107 fi
5108
5109     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5110     *COFF*)
5111       DUMPBIN="$DUMPBIN -symbols"
5112       ;;
5113     *)
5114       DUMPBIN=:
5115       ;;
5116     esac
5117   fi
5118
5119   if test "$DUMPBIN" != ":"; then
5120     NM="$DUMPBIN"
5121   fi
5122 fi
5123 test -z "$NM" && NM=nm
5124
5125
5126
5127
5128
5129
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5131 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5132 if ${lt_cv_nm_interface+:} false; then :
5133   $as_echo_n "(cached) " >&6
5134 else
5135   lt_cv_nm_interface="BSD nm"
5136   echo "int some_variable = 0;" > conftest.$ac_ext
5137   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5138   (eval "$ac_compile" 2>conftest.err)
5139   cat conftest.err >&5
5140   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5141   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5142   cat conftest.err >&5
5143   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5144   cat conftest.out >&5
5145   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5146     lt_cv_nm_interface="MS dumpbin"
5147   fi
5148   rm -f conftest*
5149 fi
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5151 $as_echo "$lt_cv_nm_interface" >&6; }
5152
5153 # find the maximum length of command line arguments
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5155 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5156 if ${lt_cv_sys_max_cmd_len+:} false; then :
5157   $as_echo_n "(cached) " >&6
5158 else
5159     i=0
5160   teststring="ABCD"
5161
5162   case $build_os in
5163   msdosdjgpp*)
5164     # On DJGPP, this test can blow up pretty badly due to problems in libc
5165     # (any single argument exceeding 2000 bytes causes a buffer overrun
5166     # during glob expansion).  Even if it were fixed, the result of this
5167     # check would be larger than it should be.
5168     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5169     ;;
5170
5171   gnu*)
5172     # Under GNU Hurd, this test is not required because there is
5173     # no limit to the length of command line arguments.
5174     # Libtool will interpret -1 as no limit whatsoever
5175     lt_cv_sys_max_cmd_len=-1;
5176     ;;
5177
5178   cygwin* | mingw* | cegcc*)
5179     # On Win9x/ME, this test blows up -- it succeeds, but takes
5180     # about 5 minutes as the teststring grows exponentially.
5181     # Worse, since 9x/ME are not pre-emptively multitasking,
5182     # you end up with a "frozen" computer, even though with patience
5183     # the test eventually succeeds (with a max line length of 256k).
5184     # Instead, let's just punt: use the minimum linelength reported by
5185     # all of the supported platforms: 8192 (on NT/2K/XP).
5186     lt_cv_sys_max_cmd_len=8192;
5187     ;;
5188
5189   mint*)
5190     # On MiNT this can take a long time and run out of memory.
5191     lt_cv_sys_max_cmd_len=8192;
5192     ;;
5193
5194   amigaos*)
5195     # On AmigaOS with pdksh, this test takes hours, literally.
5196     # So we just punt and use a minimum line length of 8192.
5197     lt_cv_sys_max_cmd_len=8192;
5198     ;;
5199
5200   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5201     # This has been around since 386BSD, at least.  Likely further.
5202     if test -x /sbin/sysctl; then
5203       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5204     elif test -x /usr/sbin/sysctl; then
5205       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5206     else
5207       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5208     fi
5209     # And add a safety zone
5210     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5211     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5212     ;;
5213
5214   interix*)
5215     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5216     lt_cv_sys_max_cmd_len=196608
5217     ;;
5218
5219   osf*)
5220     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5221     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5222     # nice to cause kernel panics so lets avoid the loop below.
5223     # First set a reasonable default.
5224     lt_cv_sys_max_cmd_len=16384
5225     #
5226     if test -x /sbin/sysconfig; then
5227       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5228         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5229       esac
5230     fi
5231     ;;
5232   sco3.2v5*)
5233     lt_cv_sys_max_cmd_len=102400
5234     ;;
5235   sysv5* | sco5v6* | sysv4.2uw2*)
5236     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5237     if test -n "$kargmax"; then
5238       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5239     else
5240       lt_cv_sys_max_cmd_len=32768
5241     fi
5242     ;;
5243   *)
5244     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5245     if test -n "$lt_cv_sys_max_cmd_len"; then
5246       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5247       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5248     else
5249       # Make teststring a little bigger before we do anything with it.
5250       # a 1K string should be a reasonable start.
5251       for i in 1 2 3 4 5 6 7 8 ; do
5252         teststring=$teststring$teststring
5253       done
5254       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5255       # If test is not a shell built-in, we'll probably end up computing a
5256       # maximum length that is only half of the actual maximum length, but
5257       # we can't tell.
5258       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5259                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5260               test $i != 17 # 1/2 MB should be enough
5261       do
5262         i=`expr $i + 1`
5263         teststring=$teststring$teststring
5264       done
5265       # Only check the string length outside the loop.
5266       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5267       teststring=
5268       # Add a significant safety factor because C++ compilers can tack on
5269       # massive amounts of additional arguments before passing them to the
5270       # linker.  It appears as though 1/2 is a usable value.
5271       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5272     fi
5273     ;;
5274   esac
5275
5276 fi
5277
5278 if test -n $lt_cv_sys_max_cmd_len ; then
5279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5280 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5281 else
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5283 $as_echo "none" >&6; }
5284 fi
5285 max_cmd_len=$lt_cv_sys_max_cmd_len
5286
5287
5288
5289
5290
5291
5292 : ${CP="cp -f"}
5293 : ${MV="mv -f"}
5294 : ${RM="rm -f"}
5295
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5297 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5298 # Try some XSI features
5299 xsi_shell=no
5300 ( _lt_dummy="a/b/c"
5301   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5302       = c,a/b,b/c, \
5303     && eval 'test $(( 1 + 1 )) -eq 2 \
5304     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5305   && xsi_shell=yes
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5307 $as_echo "$xsi_shell" >&6; }
5308
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5311 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5312 lt_shell_append=no
5313 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5314     >/dev/null 2>&1 \
5315   && lt_shell_append=yes
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5317 $as_echo "$lt_shell_append" >&6; }
5318
5319
5320 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5321   lt_unset=unset
5322 else
5323   lt_unset=false
5324 fi
5325
5326
5327
5328
5329
5330 # test EBCDIC or ASCII
5331 case `echo X|tr X '\101'` in
5332  A) # ASCII based system
5333     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5334   lt_SP2NL='tr \040 \012'
5335   lt_NL2SP='tr \015\012 \040\040'
5336   ;;
5337  *) # EBCDIC based system
5338   lt_SP2NL='tr \100 \n'
5339   lt_NL2SP='tr \r\n \100\100'
5340   ;;
5341 esac
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5352 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5353 if ${lt_cv_to_host_file_cmd+:} false; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356   case $host in
5357   *-*-mingw* )
5358     case $build in
5359       *-*-mingw* ) # actually msys
5360         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5361         ;;
5362       *-*-cygwin* )
5363         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5364         ;;
5365       * ) # otherwise, assume *nix
5366         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5367         ;;
5368     esac
5369     ;;
5370   *-*-cygwin* )
5371     case $build in
5372       *-*-mingw* ) # actually msys
5373         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5374         ;;
5375       *-*-cygwin* )
5376         lt_cv_to_host_file_cmd=func_convert_file_noop
5377         ;;
5378       * ) # otherwise, assume *nix
5379         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5380         ;;
5381     esac
5382     ;;
5383   * ) # unhandled hosts (and "normal" native builds)
5384     lt_cv_to_host_file_cmd=func_convert_file_noop
5385     ;;
5386 esac
5387
5388 fi
5389
5390 to_host_file_cmd=$lt_cv_to_host_file_cmd
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5392 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5393
5394
5395
5396
5397
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5399 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5400 if ${lt_cv_to_tool_file_cmd+:} false; then :
5401   $as_echo_n "(cached) " >&6
5402 else
5403   #assume ordinary cross tools, or native build.
5404 lt_cv_to_tool_file_cmd=func_convert_file_noop
5405 case $host in
5406   *-*-mingw* )
5407     case $build in
5408       *-*-mingw* ) # actually msys
5409         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5410         ;;
5411     esac
5412     ;;
5413 esac
5414
5415 fi
5416
5417 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5419 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5420
5421
5422
5423
5424
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5426 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5427 if ${lt_cv_ld_reload_flag+:} false; then :
5428   $as_echo_n "(cached) " >&6
5429 else
5430   lt_cv_ld_reload_flag='-r'
5431 fi
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5433 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5434 reload_flag=$lt_cv_ld_reload_flag
5435 case $reload_flag in
5436 "" | " "*) ;;
5437 *) reload_flag=" $reload_flag" ;;
5438 esac
5439 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5440 case $host_os in
5441   cygwin* | mingw* | pw32* | cegcc*)
5442     if test "$GCC" != yes; then
5443       reload_cmds=false
5444     fi
5445     ;;
5446   darwin*)
5447     if test "$GCC" = yes; then
5448       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5449     else
5450       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5451     fi
5452     ;;
5453 esac
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463 if test -n "$ac_tool_prefix"; then
5464   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5465 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_prog_OBJDUMP+:} false; then :
5469   $as_echo_n "(cached) " >&6
5470 else
5471   if test -n "$OBJDUMP"; then
5472   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477   IFS=$as_save_IFS
5478   test -z "$as_dir" && as_dir=.
5479     for ac_exec_ext in '' $ac_executable_extensions; do
5480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5481     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483     break 2
5484   fi
5485 done
5486   done
5487 IFS=$as_save_IFS
5488
5489 fi
5490 fi
5491 OBJDUMP=$ac_cv_prog_OBJDUMP
5492 if test -n "$OBJDUMP"; then
5493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5494 $as_echo "$OBJDUMP" >&6; }
5495 else
5496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5498 fi
5499
5500
5501 fi
5502 if test -z "$ac_cv_prog_OBJDUMP"; then
5503   ac_ct_OBJDUMP=$OBJDUMP
5504   # Extract the first word of "objdump", so it can be a program name with args.
5505 set dummy objdump; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5509   $as_echo_n "(cached) " >&6
5510 else
5511   if test -n "$ac_ct_OBJDUMP"; then
5512   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517   IFS=$as_save_IFS
5518   test -z "$as_dir" && as_dir=.
5519     for ac_exec_ext in '' $ac_executable_extensions; do
5520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523     break 2
5524   fi
5525 done
5526   done
5527 IFS=$as_save_IFS
5528
5529 fi
5530 fi
5531 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5532 if test -n "$ac_ct_OBJDUMP"; then
5533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5534 $as_echo "$ac_ct_OBJDUMP" >&6; }
5535 else
5536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539
5540   if test "x$ac_ct_OBJDUMP" = x; then
5541     OBJDUMP="false"
5542   else
5543     case $cross_compiling:$ac_tool_warned in
5544 yes:)
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5547 ac_tool_warned=yes ;;
5548 esac
5549     OBJDUMP=$ac_ct_OBJDUMP
5550   fi
5551 else
5552   OBJDUMP="$ac_cv_prog_OBJDUMP"
5553 fi
5554
5555 test -z "$OBJDUMP" && OBJDUMP=objdump
5556
5557
5558
5559
5560
5561
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5563 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5564 if ${lt_cv_deplibs_check_method+:} false; then :
5565   $as_echo_n "(cached) " >&6
5566 else
5567   lt_cv_file_magic_cmd='$MAGIC_CMD'
5568 lt_cv_file_magic_test_file=
5569 lt_cv_deplibs_check_method='unknown'
5570 # Need to set the preceding variable on all platforms that support
5571 # interlibrary dependencies.
5572 # 'none' -- dependencies not supported.
5573 # `unknown' -- same as none, but documents that we really don't know.
5574 # 'pass_all' -- all dependencies passed with no checks.
5575 # 'test_compile' -- check by making test program.
5576 # 'file_magic [[regex]]' -- check by looking for files in library path
5577 # which responds to the $file_magic_cmd with a given extended regex.
5578 # If you have `file' or equivalent on your system and you're not sure
5579 # whether `pass_all' will *always* work, you probably want this one.
5580
5581 case $host_os in
5582 aix[4-9]*)
5583   lt_cv_deplibs_check_method=pass_all
5584   ;;
5585
5586 beos*)
5587   lt_cv_deplibs_check_method=pass_all
5588   ;;
5589
5590 bsdi[45]*)
5591   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5592   lt_cv_file_magic_cmd='/usr/bin/file -L'
5593   lt_cv_file_magic_test_file=/shlib/libc.so
5594   ;;
5595
5596 cygwin*)
5597   # func_win32_libid is a shell function defined in ltmain.sh
5598   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5599   lt_cv_file_magic_cmd='func_win32_libid'
5600   ;;
5601
5602 mingw* | pw32*)
5603   # Base MSYS/MinGW do not provide the 'file' command needed by
5604   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5605   # unless we find 'file', for example because we are cross-compiling.
5606   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5607   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5608     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5609     lt_cv_file_magic_cmd='func_win32_libid'
5610   else
5611     # Keep this pattern in sync with the one in func_win32_libid.
5612     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5613     lt_cv_file_magic_cmd='$OBJDUMP -f'
5614   fi
5615   ;;
5616
5617 cegcc*)
5618   # use the weaker test based on 'objdump'. See mingw*.
5619   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5620   lt_cv_file_magic_cmd='$OBJDUMP -f'
5621   ;;
5622
5623 darwin* | rhapsody*)
5624   lt_cv_deplibs_check_method=pass_all
5625   ;;
5626
5627 freebsd* | dragonfly*)
5628   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5629     case $host_cpu in
5630     i*86 )
5631       # Not sure whether the presence of OpenBSD here was a mistake.
5632       # Let's accept both of them until this is cleared up.
5633       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5634       lt_cv_file_magic_cmd=/usr/bin/file
5635       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5636       ;;
5637     esac
5638   else
5639     lt_cv_deplibs_check_method=pass_all
5640   fi
5641   ;;
5642
5643 gnu*)
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646
5647 haiku*)
5648   lt_cv_deplibs_check_method=pass_all
5649   ;;
5650
5651 hpux10.20* | hpux11*)
5652   lt_cv_file_magic_cmd=/usr/bin/file
5653   case $host_cpu in
5654   ia64*)
5655     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5656     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5657     ;;
5658   hppa*64*)
5659     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]'
5660     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5661     ;;
5662   *)
5663     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5664     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5665     ;;
5666   esac
5667   ;;
5668
5669 interix[3-9]*)
5670   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5671   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5672   ;;
5673
5674 irix5* | irix6* | nonstopux*)
5675   case $LD in
5676   *-32|*"-32 ") libmagic=32-bit;;
5677   *-n32|*"-n32 ") libmagic=N32;;
5678   *-64|*"-64 ") libmagic=64-bit;;
5679   *) libmagic=never-match;;
5680   esac
5681   lt_cv_deplibs_check_method=pass_all
5682   ;;
5683
5684 # This must be Linux ELF.
5685 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5686   lt_cv_deplibs_check_method=pass_all
5687   ;;
5688
5689 netbsd* | netbsdelf*-gnu)
5690   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5691     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5692   else
5693     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5694   fi
5695   ;;
5696
5697 newos6*)
5698   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5699   lt_cv_file_magic_cmd=/usr/bin/file
5700   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5701   ;;
5702
5703 *nto* | *qnx*)
5704   lt_cv_deplibs_check_method=pass_all
5705   ;;
5706
5707 openbsd*)
5708   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5709     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5710   else
5711     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5712   fi
5713   ;;
5714
5715 osf3* | osf4* | osf5*)
5716   lt_cv_deplibs_check_method=pass_all
5717   ;;
5718
5719 rdos*)
5720   lt_cv_deplibs_check_method=pass_all
5721   ;;
5722
5723 solaris*)
5724   lt_cv_deplibs_check_method=pass_all
5725   ;;
5726
5727 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5728   lt_cv_deplibs_check_method=pass_all
5729   ;;
5730
5731 sysv4 | sysv4.3*)
5732   case $host_vendor in
5733   motorola)
5734     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]'
5735     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5736     ;;
5737   ncr)
5738     lt_cv_deplibs_check_method=pass_all
5739     ;;
5740   sequent)
5741     lt_cv_file_magic_cmd='/bin/file'
5742     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5743     ;;
5744   sni)
5745     lt_cv_file_magic_cmd='/bin/file'
5746     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5747     lt_cv_file_magic_test_file=/lib/libc.so
5748     ;;
5749   siemens)
5750     lt_cv_deplibs_check_method=pass_all
5751     ;;
5752   pc)
5753     lt_cv_deplibs_check_method=pass_all
5754     ;;
5755   esac
5756   ;;
5757
5758 tpf*)
5759   lt_cv_deplibs_check_method=pass_all
5760   ;;
5761 esac
5762
5763 fi
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5765 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5766
5767 file_magic_glob=
5768 want_nocaseglob=no
5769 if test "$build" = "$host"; then
5770   case $host_os in
5771   mingw* | pw32*)
5772     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5773       want_nocaseglob=yes
5774     else
5775       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5776     fi
5777     ;;
5778   esac
5779 fi
5780
5781 file_magic_cmd=$lt_cv_file_magic_cmd
5782 deplibs_check_method=$lt_cv_deplibs_check_method
5783 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806 if test -n "$ac_tool_prefix"; then
5807   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if ${ac_cv_prog_DLLTOOL+:} false; then :
5812   $as_echo_n "(cached) " >&6
5813 else
5814   if test -n "$DLLTOOL"; then
5815   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822     for ac_exec_ext in '' $ac_executable_extensions; do
5823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826     break 2
5827   fi
5828 done
5829   done
5830 IFS=$as_save_IFS
5831
5832 fi
5833 fi
5834 DLLTOOL=$ac_cv_prog_DLLTOOL
5835 if test -n "$DLLTOOL"; then
5836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5837 $as_echo "$DLLTOOL" >&6; }
5838 else
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5841 fi
5842
5843
5844 fi
5845 if test -z "$ac_cv_prog_DLLTOOL"; then
5846   ac_ct_DLLTOOL=$DLLTOOL
5847   # Extract the first word of "dlltool", so it can be a program name with args.
5848 set dummy dlltool; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5852   $as_echo_n "(cached) " >&6
5853 else
5854   if test -n "$ac_ct_DLLTOOL"; then
5855   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862     for ac_exec_ext in '' $ac_executable_extensions; do
5863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869   done
5870 IFS=$as_save_IFS
5871
5872 fi
5873 fi
5874 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5875 if test -n "$ac_ct_DLLTOOL"; then
5876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5877 $as_echo "$ac_ct_DLLTOOL" >&6; }
5878 else
5879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881 fi
5882
5883   if test "x$ac_ct_DLLTOOL" = x; then
5884     DLLTOOL="false"
5885   else
5886     case $cross_compiling:$ac_tool_warned in
5887 yes:)
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned=yes ;;
5891 esac
5892     DLLTOOL=$ac_ct_DLLTOOL
5893   fi
5894 else
5895   DLLTOOL="$ac_cv_prog_DLLTOOL"
5896 fi
5897
5898 test -z "$DLLTOOL" && DLLTOOL=dlltool
5899
5900
5901
5902
5903
5904
5905
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5907 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5908 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5909   $as_echo_n "(cached) " >&6
5910 else
5911   lt_cv_sharedlib_from_linklib_cmd='unknown'
5912
5913 case $host_os in
5914 cygwin* | mingw* | pw32* | cegcc*)
5915   # two different shell functions defined in ltmain.sh
5916   # decide which to use based on capabilities of $DLLTOOL
5917   case `$DLLTOOL --help 2>&1` in
5918   *--identify-strict*)
5919     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5920     ;;
5921   *)
5922     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5923     ;;
5924   esac
5925   ;;
5926 *)
5927   # fallback: assume linklib IS sharedlib
5928   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5929   ;;
5930 esac
5931
5932 fi
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5934 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5935 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5936 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5937
5938
5939
5940
5941
5942
5943
5944
5945 if test -n "$ac_tool_prefix"; then
5946   for ac_prog in ar
5947   do
5948     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if ${ac_cv_prog_AR+:} false; then :
5953   $as_echo_n "(cached) " >&6
5954 else
5955   if test -n "$AR"; then
5956   ac_cv_prog_AR="$AR" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961   IFS=$as_save_IFS
5962   test -z "$as_dir" && as_dir=.
5963     for ac_exec_ext in '' $ac_executable_extensions; do
5964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967     break 2
5968   fi
5969 done
5970   done
5971 IFS=$as_save_IFS
5972
5973 fi
5974 fi
5975 AR=$ac_cv_prog_AR
5976 if test -n "$AR"; then
5977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5978 $as_echo "$AR" >&6; }
5979 else
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5982 fi
5983
5984
5985     test -n "$AR" && break
5986   done
5987 fi
5988 if test -z "$AR"; then
5989   ac_ct_AR=$AR
5990   for ac_prog in ar
5991 do
5992   # Extract the first word of "$ac_prog", so it can be a program name with args.
5993 set dummy $ac_prog; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5997   $as_echo_n "(cached) " >&6
5998 else
5999   if test -n "$ac_ct_AR"; then
6000   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005   IFS=$as_save_IFS
6006   test -z "$as_dir" && as_dir=.
6007     for ac_exec_ext in '' $ac_executable_extensions; do
6008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6009     ac_cv_prog_ac_ct_AR="$ac_prog"
6010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011     break 2
6012   fi
6013 done
6014   done
6015 IFS=$as_save_IFS
6016
6017 fi
6018 fi
6019 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6020 if test -n "$ac_ct_AR"; then
6021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6022 $as_echo "$ac_ct_AR" >&6; }
6023 else
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6026 fi
6027
6028
6029   test -n "$ac_ct_AR" && break
6030 done
6031
6032   if test "x$ac_ct_AR" = x; then
6033     AR="false"
6034   else
6035     case $cross_compiling:$ac_tool_warned in
6036 yes:)
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039 ac_tool_warned=yes ;;
6040 esac
6041     AR=$ac_ct_AR
6042   fi
6043 fi
6044
6045 : ${AR=ar}
6046 : ${AR_FLAGS=cru}
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6059 $as_echo_n "checking for archiver @FILE support... " >&6; }
6060 if ${lt_cv_ar_at_file+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   lt_cv_ar_at_file=no
6064    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h.  */
6066
6067 int
6068 main ()
6069 {
6070
6071   ;
6072   return 0;
6073 }
6074 _ACEOF
6075 if ac_fn_c_try_compile "$LINENO"; then :
6076   echo conftest.$ac_objext > conftest.lst
6077       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6078       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6079   (eval $lt_ar_try) 2>&5
6080   ac_status=$?
6081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6082   test $ac_status = 0; }
6083       if test "$ac_status" -eq 0; then
6084         # Ensure the archiver fails upon bogus file names.
6085         rm -f conftest.$ac_objext libconftest.a
6086         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6087   (eval $lt_ar_try) 2>&5
6088   ac_status=$?
6089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6090   test $ac_status = 0; }
6091         if test "$ac_status" -ne 0; then
6092           lt_cv_ar_at_file=@
6093         fi
6094       fi
6095       rm -f conftest.* libconftest.a
6096
6097 fi
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099
6100 fi
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6102 $as_echo "$lt_cv_ar_at_file" >&6; }
6103
6104 if test "x$lt_cv_ar_at_file" = xno; then
6105   archiver_list_spec=
6106 else
6107   archiver_list_spec=$lt_cv_ar_at_file
6108 fi
6109
6110
6111
6112
6113
6114
6115
6116 if test -n "$ac_tool_prefix"; then
6117   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6118 set dummy ${ac_tool_prefix}strip; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if ${ac_cv_prog_STRIP+:} false; then :
6122   $as_echo_n "(cached) " >&6
6123 else
6124   if test -n "$STRIP"; then
6125   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6129 do
6130   IFS=$as_save_IFS
6131   test -z "$as_dir" && as_dir=.
6132     for ac_exec_ext in '' $ac_executable_extensions; do
6133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136     break 2
6137   fi
6138 done
6139   done
6140 IFS=$as_save_IFS
6141
6142 fi
6143 fi
6144 STRIP=$ac_cv_prog_STRIP
6145 if test -n "$STRIP"; then
6146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6147 $as_echo "$STRIP" >&6; }
6148 else
6149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6151 fi
6152
6153
6154 fi
6155 if test -z "$ac_cv_prog_STRIP"; then
6156   ac_ct_STRIP=$STRIP
6157   # Extract the first word of "strip", so it can be a program name with args.
6158 set dummy strip; ac_word=$2
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6162   $as_echo_n "(cached) " >&6
6163 else
6164   if test -n "$ac_ct_STRIP"; then
6165   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6166 else
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH
6169 do
6170   IFS=$as_save_IFS
6171   test -z "$as_dir" && as_dir=.
6172     for ac_exec_ext in '' $ac_executable_extensions; do
6173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174     ac_cv_prog_ac_ct_STRIP="strip"
6175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176     break 2
6177   fi
6178 done
6179   done
6180 IFS=$as_save_IFS
6181
6182 fi
6183 fi
6184 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6185 if test -n "$ac_ct_STRIP"; then
6186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6187 $as_echo "$ac_ct_STRIP" >&6; }
6188 else
6189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190 $as_echo "no" >&6; }
6191 fi
6192
6193   if test "x$ac_ct_STRIP" = x; then
6194     STRIP=":"
6195   else
6196     case $cross_compiling:$ac_tool_warned in
6197 yes:)
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6200 ac_tool_warned=yes ;;
6201 esac
6202     STRIP=$ac_ct_STRIP
6203   fi
6204 else
6205   STRIP="$ac_cv_prog_STRIP"
6206 fi
6207
6208 test -z "$STRIP" && STRIP=:
6209
6210
6211
6212
6213
6214
6215 if test -n "$ac_tool_prefix"; then
6216   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if ${ac_cv_prog_RANLIB+:} false; then :
6221   $as_echo_n "(cached) " >&6
6222 else
6223   if test -n "$RANLIB"; then
6224   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6228 do
6229   IFS=$as_save_IFS
6230   test -z "$as_dir" && as_dir=.
6231     for ac_exec_ext in '' $ac_executable_extensions; do
6232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235     break 2
6236   fi
6237 done
6238   done
6239 IFS=$as_save_IFS
6240
6241 fi
6242 fi
6243 RANLIB=$ac_cv_prog_RANLIB
6244 if test -n "$RANLIB"; then
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6246 $as_echo "$RANLIB" >&6; }
6247 else
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6250 fi
6251
6252
6253 fi
6254 if test -z "$ac_cv_prog_RANLIB"; then
6255   ac_ct_RANLIB=$RANLIB
6256   # Extract the first word of "ranlib", so it can be a program name with args.
6257 set dummy ranlib; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6261   $as_echo_n "(cached) " >&6
6262 else
6263   if test -n "$ac_ct_RANLIB"; then
6264   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269   IFS=$as_save_IFS
6270   test -z "$as_dir" && as_dir=.
6271     for ac_exec_ext in '' $ac_executable_extensions; do
6272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273     ac_cv_prog_ac_ct_RANLIB="ranlib"
6274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275     break 2
6276   fi
6277 done
6278   done
6279 IFS=$as_save_IFS
6280
6281 fi
6282 fi
6283 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6284 if test -n "$ac_ct_RANLIB"; then
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6286 $as_echo "$ac_ct_RANLIB" >&6; }
6287 else
6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6290 fi
6291
6292   if test "x$ac_ct_RANLIB" = x; then
6293     RANLIB=":"
6294   else
6295     case $cross_compiling:$ac_tool_warned in
6296 yes:)
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6300 esac
6301     RANLIB=$ac_ct_RANLIB
6302   fi
6303 else
6304   RANLIB="$ac_cv_prog_RANLIB"
6305 fi
6306
6307 test -z "$RANLIB" && RANLIB=:
6308
6309
6310
6311
6312
6313
6314 # Determine commands to create old-style static archives.
6315 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6316 old_postinstall_cmds='chmod 644 $oldlib'
6317 old_postuninstall_cmds=
6318
6319 if test -n "$RANLIB"; then
6320   case $host_os in
6321   openbsd*)
6322     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6323     ;;
6324   *)
6325     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6326     ;;
6327   esac
6328   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6329 fi
6330
6331 case $host_os in
6332   darwin*)
6333     lock_old_archive_extraction=yes ;;
6334   *)
6335     lock_old_archive_extraction=no ;;
6336 esac
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376 # If no C compiler was specified, use CC.
6377 LTCC=${LTCC-"$CC"}
6378
6379 # If no C compiler flags were specified, use CFLAGS.
6380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6381
6382 # Allow CC to be a program name with arguments.
6383 compiler=$CC
6384
6385
6386 # Check for command to grab the raw symbol name followed by C symbol from nm.
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6388 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6389 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6390   $as_echo_n "(cached) " >&6
6391 else
6392
6393 # These are sane defaults that work on at least a few old systems.
6394 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6395
6396 # Character class describing NM global symbol codes.
6397 symcode='[BCDEGRST]'
6398
6399 # Regexp to match symbols that can be accessed directly from C.
6400 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6401
6402 # Define system-specific variables.
6403 case $host_os in
6404 aix*)
6405   symcode='[BCDT]'
6406   ;;
6407 cygwin* | mingw* | pw32* | cegcc*)
6408   symcode='[ABCDGISTW]'
6409   ;;
6410 hpux*)
6411   if test "$host_cpu" = ia64; then
6412     symcode='[ABCDEGRST]'
6413   fi
6414   ;;
6415 irix* | nonstopux*)
6416   symcode='[BCDEGRST]'
6417   ;;
6418 osf*)
6419   symcode='[BCDEGQRST]'
6420   ;;
6421 solaris*)
6422   symcode='[BDRT]'
6423   ;;
6424 sco3.2v5*)
6425   symcode='[DT]'
6426   ;;
6427 sysv4.2uw2*)
6428   symcode='[DT]'
6429   ;;
6430 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6431   symcode='[ABDT]'
6432   ;;
6433 sysv4)
6434   symcode='[DFNSTU]'
6435   ;;
6436 esac
6437
6438 # If we're using GNU nm, then use its standard symbol codes.
6439 case `$NM -V 2>&1` in
6440 *GNU* | *'with BFD'*)
6441   symcode='[ABCDGIRSTW]' ;;
6442 esac
6443
6444 # Transform an extracted symbol line into a proper C declaration.
6445 # Some systems (esp. on ia64) link data and code symbols differently,
6446 # so use this general approach.
6447 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6448
6449 # Transform an extracted symbol line into symbol name and symbol address
6450 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6451 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'"
6452
6453 # Handle CRLF in mingw tool chain
6454 opt_cr=
6455 case $build_os in
6456 mingw*)
6457   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6458   ;;
6459 esac
6460
6461 # Try without a prefix underscore, then with it.
6462 for ac_symprfx in "" "_"; do
6463
6464   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6465   symxfrm="\\1 $ac_symprfx\\2 \\2"
6466
6467   # Write the raw and C identifiers.
6468   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6469     # Fake it for dumpbin and say T for any non-static function
6470     # and D for any global variable.
6471     # Also find C++ and __fastcall symbols from MSVC++,
6472     # which start with @ or ?.
6473     lt_cv_sys_global_symbol_pipe="$AWK '"\
6474 "     {last_section=section; section=\$ 3};"\
6475 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6476 "     \$ 0!~/External *\|/{next};"\
6477 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6478 "     {if(hide[section]) next};"\
6479 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6480 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6481 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6482 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6483 "     ' prfx=^$ac_symprfx"
6484   else
6485     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6486   fi
6487   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6488
6489   # Check to see that the pipe works correctly.
6490   pipe_works=no
6491
6492   rm -f conftest*
6493   cat > conftest.$ac_ext <<_LT_EOF
6494 #ifdef __cplusplus
6495 extern "C" {
6496 #endif
6497 char nm_test_var;
6498 void nm_test_func(void);
6499 void nm_test_func(void){}
6500 #ifdef __cplusplus
6501 }
6502 #endif
6503 int main(){nm_test_var='a';nm_test_func();return(0);}
6504 _LT_EOF
6505
6506   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6507   (eval $ac_compile) 2>&5
6508   ac_status=$?
6509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6510   test $ac_status = 0; }; then
6511     # Now try to grab the symbols.
6512     nlist=conftest.nm
6513     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6514   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6515   ac_status=$?
6516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517   test $ac_status = 0; } && test -s "$nlist"; then
6518       # Try sorting and uniquifying the output.
6519       if sort "$nlist" | uniq > "$nlist"T; then
6520         mv -f "$nlist"T "$nlist"
6521       else
6522         rm -f "$nlist"T
6523       fi
6524
6525       # Make sure that we snagged all the symbols we need.
6526       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6527         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6528           cat <<_LT_EOF > conftest.$ac_ext
6529 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6530 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6531 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6532    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6533 # define LT_DLSYM_CONST
6534 #elif defined(__osf__)
6535 /* This system does not cope well with relocations in const data.  */
6536 # define LT_DLSYM_CONST
6537 #else
6538 # define LT_DLSYM_CONST const
6539 #endif
6540
6541 #ifdef __cplusplus
6542 extern "C" {
6543 #endif
6544
6545 _LT_EOF
6546           # Now generate the symbol file.
6547           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6548
6549           cat <<_LT_EOF >> conftest.$ac_ext
6550
6551 /* The mapping between symbol names and symbols.  */
6552 LT_DLSYM_CONST struct {
6553   const char *name;
6554   void       *address;
6555 }
6556 lt__PROGRAM__LTX_preloaded_symbols[] =
6557 {
6558   { "@PROGRAM@", (void *) 0 },
6559 _LT_EOF
6560           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6561           cat <<\_LT_EOF >> conftest.$ac_ext
6562   {0, (void *) 0}
6563 };
6564
6565 /* This works around a problem in FreeBSD linker */
6566 #ifdef FREEBSD_WORKAROUND
6567 static const void *lt_preloaded_setup() {
6568   return lt__PROGRAM__LTX_preloaded_symbols;
6569 }
6570 #endif
6571
6572 #ifdef __cplusplus
6573 }
6574 #endif
6575 _LT_EOF
6576           # Now try linking the two files.
6577           mv conftest.$ac_objext conftstm.$ac_objext
6578           lt_globsym_save_LIBS=$LIBS
6579           lt_globsym_save_CFLAGS=$CFLAGS
6580           LIBS="conftstm.$ac_objext"
6581           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6582           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6583   (eval $ac_link) 2>&5
6584   ac_status=$?
6585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6587             pipe_works=yes
6588           fi
6589           LIBS=$lt_globsym_save_LIBS
6590           CFLAGS=$lt_globsym_save_CFLAGS
6591         else
6592           echo "cannot find nm_test_func in $nlist" >&5
6593         fi
6594       else
6595         echo "cannot find nm_test_var in $nlist" >&5
6596       fi
6597     else
6598       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6599     fi
6600   else
6601     echo "$progname: failed program was:" >&5
6602     cat conftest.$ac_ext >&5
6603   fi
6604   rm -rf conftest* conftst*
6605
6606   # Do not use the global_symbol_pipe unless it works.
6607   if test "$pipe_works" = yes; then
6608     break
6609   else
6610     lt_cv_sys_global_symbol_pipe=
6611   fi
6612 done
6613
6614 fi
6615
6616 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6617   lt_cv_sys_global_symbol_to_cdecl=
6618 fi
6619 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6621 $as_echo "failed" >&6; }
6622 else
6623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6624 $as_echo "ok" >&6; }
6625 fi
6626
6627 # Response file support.
6628 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6629   nm_file_list_spec='@'
6630 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6631   nm_file_list_spec='@'
6632 fi
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6661 $as_echo_n "checking for sysroot... " >&6; }
6662
6663 # Check whether --with-sysroot was given.
6664 if test "${with_sysroot+set}" = set; then :
6665   withval=$with_sysroot;
6666 else
6667   with_sysroot=no
6668 fi
6669
6670
6671 lt_sysroot=
6672 case ${with_sysroot} in #(
6673  yes)
6674    if test "$GCC" = yes; then
6675      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6676    fi
6677    ;; #(
6678  /*)
6679    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6680    ;; #(
6681  no|'')
6682    ;; #(
6683  *)
6684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6685 $as_echo "${with_sysroot}" >&6; }
6686    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6687    ;;
6688 esac
6689
6690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6691 $as_echo "${lt_sysroot:-no}" >&6; }
6692
6693
6694
6695
6696
6697 # Check whether --enable-libtool-lock was given.
6698 if test "${enable_libtool_lock+set}" = set; then :
6699   enableval=$enable_libtool_lock;
6700 fi
6701
6702 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6703
6704 # Some flags need to be propagated to the compiler or linker for good
6705 # libtool support.
6706 case $host in
6707 ia64-*-hpux*)
6708   # Find out which ABI we are using.
6709   echo 'int i;' > conftest.$ac_ext
6710   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6711   (eval $ac_compile) 2>&5
6712   ac_status=$?
6713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6714   test $ac_status = 0; }; then
6715     case `/usr/bin/file conftest.$ac_objext` in
6716       *ELF-32*)
6717         HPUX_IA64_MODE="32"
6718         ;;
6719       *ELF-64*)
6720         HPUX_IA64_MODE="64"
6721         ;;
6722     esac
6723   fi
6724   rm -rf conftest*
6725   ;;
6726 *-*-irix6*)
6727   # Find out which ABI we are using.
6728   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6729   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730   (eval $ac_compile) 2>&5
6731   ac_status=$?
6732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733   test $ac_status = 0; }; then
6734     if test "$lt_cv_prog_gnu_ld" = yes; then
6735       case `/usr/bin/file conftest.$ac_objext` in
6736         *32-bit*)
6737           LD="${LD-ld} -melf32bsmip"
6738           ;;
6739         *N32*)
6740           LD="${LD-ld} -melf32bmipn32"
6741           ;;
6742         *64-bit*)
6743           LD="${LD-ld} -melf64bmip"
6744         ;;
6745       esac
6746     else
6747       case `/usr/bin/file conftest.$ac_objext` in
6748         *32-bit*)
6749           LD="${LD-ld} -32"
6750           ;;
6751         *N32*)
6752           LD="${LD-ld} -n32"
6753           ;;
6754         *64-bit*)
6755           LD="${LD-ld} -64"
6756           ;;
6757       esac
6758     fi
6759   fi
6760   rm -rf conftest*
6761   ;;
6762
6763 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6764 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6765   # Find out which ABI we are using.
6766   echo 'int i;' > conftest.$ac_ext
6767   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6768   (eval $ac_compile) 2>&5
6769   ac_status=$?
6770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6771   test $ac_status = 0; }; then
6772     case `/usr/bin/file conftest.o` in
6773       *32-bit*)
6774         case $host in
6775           x86_64-*kfreebsd*-gnu)
6776             LD="${LD-ld} -m elf_i386_fbsd"
6777             ;;
6778           x86_64-*linux*)
6779             LD="${LD-ld} -m elf_i386"
6780             ;;
6781           ppc64-*linux*|powerpc64-*linux*)
6782             LD="${LD-ld} -m elf32ppclinux"
6783             ;;
6784           s390x-*linux*)
6785             LD="${LD-ld} -m elf_s390"
6786             ;;
6787           sparc64-*linux*)
6788             LD="${LD-ld} -m elf32_sparc"
6789             ;;
6790         esac
6791         ;;
6792       *64-bit*)
6793         case $host in
6794           x86_64-*kfreebsd*-gnu)
6795             LD="${LD-ld} -m elf_x86_64_fbsd"
6796             ;;
6797           x86_64-*linux*)
6798             LD="${LD-ld} -m elf_x86_64"
6799             ;;
6800           ppc*-*linux*|powerpc*-*linux*)
6801             LD="${LD-ld} -m elf64ppc"
6802             ;;
6803           s390*-*linux*|s390*-*tpf*)
6804             LD="${LD-ld} -m elf64_s390"
6805             ;;
6806           sparc*-*linux*)
6807             LD="${LD-ld} -m elf64_sparc"
6808             ;;
6809         esac
6810         ;;
6811     esac
6812   fi
6813   rm -rf conftest*
6814   ;;
6815
6816 *-*-sco3.2v5*)
6817   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6818   SAVE_CFLAGS="$CFLAGS"
6819   CFLAGS="$CFLAGS -belf"
6820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6821 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6822 if ${lt_cv_cc_needs_belf+:} false; then :
6823   $as_echo_n "(cached) " >&6
6824 else
6825   ac_ext=c
6826 ac_cpp='$CPP $CPPFLAGS'
6827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6830
6831      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h.  */
6833
6834 int
6835 main ()
6836 {
6837
6838   ;
6839   return 0;
6840 }
6841 _ACEOF
6842 if ac_fn_c_try_link "$LINENO"; then :
6843   lt_cv_cc_needs_belf=yes
6844 else
6845   lt_cv_cc_needs_belf=no
6846 fi
6847 rm -f core conftest.err conftest.$ac_objext \
6848     conftest$ac_exeext conftest.$ac_ext
6849      ac_ext=c
6850 ac_cpp='$CPP $CPPFLAGS'
6851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6854
6855 fi
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6857 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6858   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6859     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6860     CFLAGS="$SAVE_CFLAGS"
6861   fi
6862   ;;
6863 sparc*-*solaris*)
6864   # Find out which ABI we are using.
6865   echo 'int i;' > conftest.$ac_ext
6866   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6867   (eval $ac_compile) 2>&5
6868   ac_status=$?
6869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870   test $ac_status = 0; }; then
6871     case `/usr/bin/file conftest.o` in
6872     *64-bit*)
6873       case $lt_cv_prog_gnu_ld in
6874       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6875       *)
6876         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6877           LD="${LD-ld} -64"
6878         fi
6879         ;;
6880       esac
6881       ;;
6882     esac
6883   fi
6884   rm -rf conftest*
6885   ;;
6886 esac
6887
6888 need_locks="$enable_libtool_lock"
6889
6890 if test -n "$ac_tool_prefix"; then
6891   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6892 set dummy ${ac_tool_prefix}mt; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6896   $as_echo_n "(cached) " >&6
6897 else
6898   if test -n "$MANIFEST_TOOL"; then
6899   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904   IFS=$as_save_IFS
6905   test -z "$as_dir" && as_dir=.
6906     for ac_exec_ext in '' $ac_executable_extensions; do
6907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910     break 2
6911   fi
6912 done
6913   done
6914 IFS=$as_save_IFS
6915
6916 fi
6917 fi
6918 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6919 if test -n "$MANIFEST_TOOL"; then
6920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6921 $as_echo "$MANIFEST_TOOL" >&6; }
6922 else
6923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926
6927
6928 fi
6929 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6930   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6931   # Extract the first word of "mt", so it can be a program name with args.
6932 set dummy mt; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6936   $as_echo_n "(cached) " >&6
6937 else
6938   if test -n "$ac_ct_MANIFEST_TOOL"; then
6939   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946     for ac_exec_ext in '' $ac_executable_extensions; do
6947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6948     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953   done
6954 IFS=$as_save_IFS
6955
6956 fi
6957 fi
6958 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6959 if test -n "$ac_ct_MANIFEST_TOOL"; then
6960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6961 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6962 else
6963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966
6967   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6968     MANIFEST_TOOL=":"
6969   else
6970     case $cross_compiling:$ac_tool_warned in
6971 yes:)
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974 ac_tool_warned=yes ;;
6975 esac
6976     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6977   fi
6978 else
6979   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6980 fi
6981
6982 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6984 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6985 if ${lt_cv_path_mainfest_tool+:} false; then :
6986   $as_echo_n "(cached) " >&6
6987 else
6988   lt_cv_path_mainfest_tool=no
6989   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6990   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6991   cat conftest.err >&5
6992   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6993     lt_cv_path_mainfest_tool=yes
6994   fi
6995   rm -f conftest*
6996 fi
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6998 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6999 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7000   MANIFEST_TOOL=:
7001 fi
7002
7003
7004
7005
7006
7007
7008   case $host_os in
7009     rhapsody* | darwin*)
7010     if test -n "$ac_tool_prefix"; then
7011   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7012 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014 $as_echo_n "checking for $ac_word... " >&6; }
7015 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7016   $as_echo_n "(cached) " >&6
7017 else
7018   if test -n "$DSYMUTIL"; then
7019   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7020 else
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7023 do
7024   IFS=$as_save_IFS
7025   test -z "$as_dir" && as_dir=.
7026     for ac_exec_ext in '' $ac_executable_extensions; do
7027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030     break 2
7031   fi
7032 done
7033   done
7034 IFS=$as_save_IFS
7035
7036 fi
7037 fi
7038 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7039 if test -n "$DSYMUTIL"; then
7040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7041 $as_echo "$DSYMUTIL" >&6; }
7042 else
7043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7045 fi
7046
7047
7048 fi
7049 if test -z "$ac_cv_prog_DSYMUTIL"; then
7050   ac_ct_DSYMUTIL=$DSYMUTIL
7051   # Extract the first word of "dsymutil", so it can be a program name with args.
7052 set dummy dsymutil; ac_word=$2
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054 $as_echo_n "checking for $ac_word... " >&6; }
7055 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7056   $as_echo_n "(cached) " >&6
7057 else
7058   if test -n "$ac_ct_DSYMUTIL"; then
7059   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7060 else
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064   IFS=$as_save_IFS
7065   test -z "$as_dir" && as_dir=.
7066     for ac_exec_ext in '' $ac_executable_extensions; do
7067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070     break 2
7071   fi
7072 done
7073   done
7074 IFS=$as_save_IFS
7075
7076 fi
7077 fi
7078 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7079 if test -n "$ac_ct_DSYMUTIL"; then
7080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7081 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7082 else
7083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 $as_echo "no" >&6; }
7085 fi
7086
7087   if test "x$ac_ct_DSYMUTIL" = x; then
7088     DSYMUTIL=":"
7089   else
7090     case $cross_compiling:$ac_tool_warned in
7091 yes:)
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7094 ac_tool_warned=yes ;;
7095 esac
7096     DSYMUTIL=$ac_ct_DSYMUTIL
7097   fi
7098 else
7099   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7100 fi
7101
7102     if test -n "$ac_tool_prefix"; then
7103   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7104 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if ${ac_cv_prog_NMEDIT+:} false; then :
7108   $as_echo_n "(cached) " >&6
7109 else
7110   if test -n "$NMEDIT"; then
7111   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118     for ac_exec_ext in '' $ac_executable_extensions; do
7119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125   done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 NMEDIT=$ac_cv_prog_NMEDIT
7131 if test -n "$NMEDIT"; then
7132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7133 $as_echo "$NMEDIT" >&6; }
7134 else
7135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7137 fi
7138
7139
7140 fi
7141 if test -z "$ac_cv_prog_NMEDIT"; then
7142   ac_ct_NMEDIT=$NMEDIT
7143   # Extract the first word of "nmedit", so it can be a program name with args.
7144 set dummy nmedit; ac_word=$2
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146 $as_echo_n "checking for $ac_word... " >&6; }
7147 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7148   $as_echo_n "(cached) " >&6
7149 else
7150   if test -n "$ac_ct_NMEDIT"; then
7151   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7152 else
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156   IFS=$as_save_IFS
7157   test -z "$as_dir" && as_dir=.
7158     for ac_exec_ext in '' $ac_executable_extensions; do
7159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7160     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162     break 2
7163   fi
7164 done
7165   done
7166 IFS=$as_save_IFS
7167
7168 fi
7169 fi
7170 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7171 if test -n "$ac_ct_NMEDIT"; then
7172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7173 $as_echo "$ac_ct_NMEDIT" >&6; }
7174 else
7175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7177 fi
7178
7179   if test "x$ac_ct_NMEDIT" = x; then
7180     NMEDIT=":"
7181   else
7182     case $cross_compiling:$ac_tool_warned in
7183 yes:)
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7186 ac_tool_warned=yes ;;
7187 esac
7188     NMEDIT=$ac_ct_NMEDIT
7189   fi
7190 else
7191   NMEDIT="$ac_cv_prog_NMEDIT"
7192 fi
7193
7194     if test -n "$ac_tool_prefix"; then
7195   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7196 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_LIPO+:} false; then :
7200   $as_echo_n "(cached) " >&6
7201 else
7202   if test -n "$LIPO"; then
7203   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208   IFS=$as_save_IFS
7209   test -z "$as_dir" && as_dir=.
7210     for ac_exec_ext in '' $ac_executable_extensions; do
7211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214     break 2
7215   fi
7216 done
7217   done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 LIPO=$ac_cv_prog_LIPO
7223 if test -n "$LIPO"; then
7224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7225 $as_echo "$LIPO" >&6; }
7226 else
7227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7229 fi
7230
7231
7232 fi
7233 if test -z "$ac_cv_prog_LIPO"; then
7234   ac_ct_LIPO=$LIPO
7235   # Extract the first word of "lipo", so it can be a program name with args.
7236 set dummy lipo; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7240   $as_echo_n "(cached) " >&6
7241 else
7242   if test -n "$ac_ct_LIPO"; then
7243   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248   IFS=$as_save_IFS
7249   test -z "$as_dir" && as_dir=.
7250     for ac_exec_ext in '' $ac_executable_extensions; do
7251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7252     ac_cv_prog_ac_ct_LIPO="lipo"
7253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254     break 2
7255   fi
7256 done
7257   done
7258 IFS=$as_save_IFS
7259
7260 fi
7261 fi
7262 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7263 if test -n "$ac_ct_LIPO"; then
7264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7265 $as_echo "$ac_ct_LIPO" >&6; }
7266 else
7267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7269 fi
7270
7271   if test "x$ac_ct_LIPO" = x; then
7272     LIPO=":"
7273   else
7274     case $cross_compiling:$ac_tool_warned in
7275 yes:)
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278 ac_tool_warned=yes ;;
7279 esac
7280     LIPO=$ac_ct_LIPO
7281   fi
7282 else
7283   LIPO="$ac_cv_prog_LIPO"
7284 fi
7285
7286     if test -n "$ac_tool_prefix"; then
7287   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7288 set dummy ${ac_tool_prefix}otool; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_OTOOL+:} false; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   if test -n "$OTOOL"; then
7295   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302     for ac_exec_ext in '' $ac_executable_extensions; do
7303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309   done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 OTOOL=$ac_cv_prog_OTOOL
7315 if test -n "$OTOOL"; then
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7317 $as_echo "$OTOOL" >&6; }
7318 else
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323
7324 fi
7325 if test -z "$ac_cv_prog_OTOOL"; then
7326   ac_ct_OTOOL=$OTOOL
7327   # Extract the first word of "otool", so it can be a program name with args.
7328 set dummy otool; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7332   $as_echo_n "(cached) " >&6
7333 else
7334   if test -n "$ac_ct_OTOOL"; then
7335   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342     for ac_exec_ext in '' $ac_executable_extensions; do
7343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344     ac_cv_prog_ac_ct_OTOOL="otool"
7345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349   done
7350 IFS=$as_save_IFS
7351
7352 fi
7353 fi
7354 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7355 if test -n "$ac_ct_OTOOL"; then
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7357 $as_echo "$ac_ct_OTOOL" >&6; }
7358 else
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7361 fi
7362
7363   if test "x$ac_ct_OTOOL" = x; then
7364     OTOOL=":"
7365   else
7366     case $cross_compiling:$ac_tool_warned in
7367 yes:)
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370 ac_tool_warned=yes ;;
7371 esac
7372     OTOOL=$ac_ct_OTOOL
7373   fi
7374 else
7375   OTOOL="$ac_cv_prog_OTOOL"
7376 fi
7377
7378     if test -n "$ac_tool_prefix"; then
7379   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7380 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if ${ac_cv_prog_OTOOL64+:} false; then :
7384   $as_echo_n "(cached) " >&6
7385 else
7386   if test -n "$OTOOL64"; then
7387   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7388 else
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392   IFS=$as_save_IFS
7393   test -z "$as_dir" && as_dir=.
7394     for ac_exec_ext in '' $ac_executable_extensions; do
7395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7396     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398     break 2
7399   fi
7400 done
7401   done
7402 IFS=$as_save_IFS
7403
7404 fi
7405 fi
7406 OTOOL64=$ac_cv_prog_OTOOL64
7407 if test -n "$OTOOL64"; then
7408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7409 $as_echo "$OTOOL64" >&6; }
7410 else
7411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7413 fi
7414
7415
7416 fi
7417 if test -z "$ac_cv_prog_OTOOL64"; then
7418   ac_ct_OTOOL64=$OTOOL64
7419   # Extract the first word of "otool64", so it can be a program name with args.
7420 set dummy otool64; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7424   $as_echo_n "(cached) " >&6
7425 else
7426   if test -n "$ac_ct_OTOOL64"; then
7427   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432   IFS=$as_save_IFS
7433   test -z "$as_dir" && as_dir=.
7434     for ac_exec_ext in '' $ac_executable_extensions; do
7435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436     ac_cv_prog_ac_ct_OTOOL64="otool64"
7437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438     break 2
7439   fi
7440 done
7441   done
7442 IFS=$as_save_IFS
7443
7444 fi
7445 fi
7446 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7447 if test -n "$ac_ct_OTOOL64"; then
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7449 $as_echo "$ac_ct_OTOOL64" >&6; }
7450 else
7451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 fi
7454
7455   if test "x$ac_ct_OTOOL64" = x; then
7456     OTOOL64=":"
7457   else
7458     case $cross_compiling:$ac_tool_warned in
7459 yes:)
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7462 ac_tool_warned=yes ;;
7463 esac
7464     OTOOL64=$ac_ct_OTOOL64
7465   fi
7466 else
7467   OTOOL64="$ac_cv_prog_OTOOL64"
7468 fi
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7497 $as_echo_n "checking for -single_module linker flag... " >&6; }
7498 if ${lt_cv_apple_cc_single_mod+:} false; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501   lt_cv_apple_cc_single_mod=no
7502       if test -z "${LT_MULTI_MODULE}"; then
7503         # By default we will add the -single_module flag. You can override
7504         # by either setting the environment variable LT_MULTI_MODULE
7505         # non-empty at configure time, or by adding -multi_module to the
7506         # link flags.
7507         rm -rf libconftest.dylib*
7508         echo "int foo(void){return 1;}" > conftest.c
7509         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7510 -dynamiclib -Wl,-single_module conftest.c" >&5
7511         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7512           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7513         _lt_result=$?
7514         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7515           lt_cv_apple_cc_single_mod=yes
7516         else
7517           cat conftest.err >&5
7518         fi
7519         rm -rf libconftest.dylib*
7520         rm -f conftest.*
7521       fi
7522 fi
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7524 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7525     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7526 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7527 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7528   $as_echo_n "(cached) " >&6
7529 else
7530   lt_cv_ld_exported_symbols_list=no
7531       save_LDFLAGS=$LDFLAGS
7532       echo "_main" > conftest.sym
7533       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7534       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h.  */
7536
7537 int
7538 main ()
7539 {
7540
7541   ;
7542   return 0;
7543 }
7544 _ACEOF
7545 if ac_fn_c_try_link "$LINENO"; then :
7546   lt_cv_ld_exported_symbols_list=yes
7547 else
7548   lt_cv_ld_exported_symbols_list=no
7549 fi
7550 rm -f core conftest.err conftest.$ac_objext \
7551     conftest$ac_exeext conftest.$ac_ext
7552         LDFLAGS="$save_LDFLAGS"
7553
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7556 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7558 $as_echo_n "checking for -force_load linker flag... " >&6; }
7559 if ${lt_cv_ld_force_load+:} false; then :
7560   $as_echo_n "(cached) " >&6
7561 else
7562   lt_cv_ld_force_load=no
7563       cat > conftest.c << _LT_EOF
7564 int forced_loaded() { return 2;}
7565 _LT_EOF
7566       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7567       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7568       echo "$AR cru libconftest.a conftest.o" >&5
7569       $AR cru libconftest.a conftest.o 2>&5
7570       echo "$RANLIB libconftest.a" >&5
7571       $RANLIB libconftest.a 2>&5
7572       cat > conftest.c << _LT_EOF
7573 int main() { return 0;}
7574 _LT_EOF
7575       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7576       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7577       _lt_result=$?
7578       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7579         lt_cv_ld_force_load=yes
7580       else
7581         cat conftest.err >&5
7582       fi
7583         rm -f conftest.err libconftest.a conftest conftest.c
7584         rm -rf conftest.dSYM
7585
7586 fi
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7588 $as_echo "$lt_cv_ld_force_load" >&6; }
7589     case $host_os in
7590     rhapsody* | darwin1.[012])
7591       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7592     darwin1.*)
7593       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7594     darwin*) # darwin 5.x on
7595       # if running on 10.5 or later, the deployment target defaults
7596       # to the OS version, if on x86, and 10.4, the deployment
7597       # target defaults to 10.4. Don't you love it?
7598       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7599         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7600           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7601         10.[012]*)
7602           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7603         10.*)
7604           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7605       esac
7606     ;;
7607   esac
7608     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7609       _lt_dar_single_mod='$single_module'
7610     fi
7611     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7612       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7613     else
7614       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7615     fi
7616     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7617       _lt_dsymutil='~$DSYMUTIL $lib || :'
7618     else
7619       _lt_dsymutil=
7620     fi
7621     ;;
7622   esac
7623
7624 ac_ext=c
7625 ac_cpp='$CPP $CPPFLAGS'
7626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7630 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7631 # On Suns, sometimes $CPP names a directory.
7632 if test -n "$CPP" && test -d "$CPP"; then
7633   CPP=
7634 fi
7635 if test -z "$CPP"; then
7636   if ${ac_cv_prog_CPP+:} false; then :
7637   $as_echo_n "(cached) " >&6
7638 else
7639       # Double quotes because CPP needs to be expanded
7640     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7641     do
7642       ac_preproc_ok=false
7643 for ac_c_preproc_warn_flag in '' yes
7644 do
7645   # Use a header file that comes with gcc, so configuring glibc
7646   # with a fresh cross-compiler works.
7647   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7648   # <limits.h> exists even on freestanding compilers.
7649   # On the NeXT, cc -E runs the code through the compiler's parser,
7650   # not just through cpp. "Syntax error" is here to catch this case.
7651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h.  */
7653 #ifdef __STDC__
7654 # include <limits.h>
7655 #else
7656 # include <assert.h>
7657 #endif
7658                      Syntax error
7659 _ACEOF
7660 if ac_fn_c_try_cpp "$LINENO"; then :
7661
7662 else
7663   # Broken: fails on valid input.
7664 continue
7665 fi
7666 rm -f conftest.err conftest.i conftest.$ac_ext
7667
7668   # OK, works on sane cases.  Now check whether nonexistent headers
7669   # can be detected and how.
7670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h.  */
7672 #include <ac_nonexistent.h>
7673 _ACEOF
7674 if ac_fn_c_try_cpp "$LINENO"; then :
7675   # Broken: success on invalid input.
7676 continue
7677 else
7678   # Passes both tests.
7679 ac_preproc_ok=:
7680 break
7681 fi
7682 rm -f conftest.err conftest.i conftest.$ac_ext
7683
7684 done
7685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7686 rm -f conftest.i conftest.err conftest.$ac_ext
7687 if $ac_preproc_ok; then :
7688   break
7689 fi
7690
7691     done
7692     ac_cv_prog_CPP=$CPP
7693
7694 fi
7695   CPP=$ac_cv_prog_CPP
7696 else
7697   ac_cv_prog_CPP=$CPP
7698 fi
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7700 $as_echo "$CPP" >&6; }
7701 ac_preproc_ok=false
7702 for ac_c_preproc_warn_flag in '' yes
7703 do
7704   # Use a header file that comes with gcc, so configuring glibc
7705   # with a fresh cross-compiler works.
7706   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7707   # <limits.h> exists even on freestanding compilers.
7708   # On the NeXT, cc -E runs the code through the compiler's parser,
7709   # not just through cpp. "Syntax error" is here to catch this case.
7710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h.  */
7712 #ifdef __STDC__
7713 # include <limits.h>
7714 #else
7715 # include <assert.h>
7716 #endif
7717                      Syntax error
7718 _ACEOF
7719 if ac_fn_c_try_cpp "$LINENO"; then :
7720
7721 else
7722   # Broken: fails on valid input.
7723 continue
7724 fi
7725 rm -f conftest.err conftest.i conftest.$ac_ext
7726
7727   # OK, works on sane cases.  Now check whether nonexistent headers
7728   # can be detected and how.
7729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h.  */
7731 #include <ac_nonexistent.h>
7732 _ACEOF
7733 if ac_fn_c_try_cpp "$LINENO"; then :
7734   # Broken: success on invalid input.
7735 continue
7736 else
7737   # Passes both tests.
7738 ac_preproc_ok=:
7739 break
7740 fi
7741 rm -f conftest.err conftest.i conftest.$ac_ext
7742
7743 done
7744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7745 rm -f conftest.i conftest.err conftest.$ac_ext
7746 if $ac_preproc_ok; then :
7747
7748 else
7749   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7751 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7752 See \`config.log' for more details" "$LINENO" 5; }
7753 fi
7754
7755 ac_ext=c
7756 ac_cpp='$CPP $CPPFLAGS'
7757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7760
7761
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7763 $as_echo_n "checking for ANSI C header files... " >&6; }
7764 if ${ac_cv_header_stdc+:} false; then :
7765   $as_echo_n "(cached) " >&6
7766 else
7767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h.  */
7769 #include <stdlib.h>
7770 #include <stdarg.h>
7771 #include <string.h>
7772 #include <float.h>
7773
7774 int
7775 main ()
7776 {
7777
7778   ;
7779   return 0;
7780 }
7781 _ACEOF
7782 if ac_fn_c_try_compile "$LINENO"; then :
7783   ac_cv_header_stdc=yes
7784 else
7785   ac_cv_header_stdc=no
7786 fi
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788
7789 if test $ac_cv_header_stdc = yes; then
7790   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h.  */
7793 #include <string.h>
7794
7795 _ACEOF
7796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7797   $EGREP "memchr" >/dev/null 2>&1; then :
7798
7799 else
7800   ac_cv_header_stdc=no
7801 fi
7802 rm -f conftest*
7803
7804 fi
7805
7806 if test $ac_cv_header_stdc = yes; then
7807   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h.  */
7810 #include <stdlib.h>
7811
7812 _ACEOF
7813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7814   $EGREP "free" >/dev/null 2>&1; then :
7815
7816 else
7817   ac_cv_header_stdc=no
7818 fi
7819 rm -f conftest*
7820
7821 fi
7822
7823 if test $ac_cv_header_stdc = yes; then
7824   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7825   if test "$cross_compiling" = yes; then :
7826   :
7827 else
7828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h.  */
7830 #include <ctype.h>
7831 #include <stdlib.h>
7832 #if ((' ' & 0x0FF) == 0x020)
7833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7835 #else
7836 # define ISLOWER(c) \
7837                    (('a' <= (c) && (c) <= 'i') \
7838                      || ('j' <= (c) && (c) <= 'r') \
7839                      || ('s' <= (c) && (c) <= 'z'))
7840 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7841 #endif
7842
7843 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7844 int
7845 main ()
7846 {
7847   int i;
7848   for (i = 0; i < 256; i++)
7849     if (XOR (islower (i), ISLOWER (i))
7850         || toupper (i) != TOUPPER (i))
7851       return 2;
7852   return 0;
7853 }
7854 _ACEOF
7855 if ac_fn_c_try_run "$LINENO"; then :
7856
7857 else
7858   ac_cv_header_stdc=no
7859 fi
7860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7861   conftest.$ac_objext conftest.beam conftest.$ac_ext
7862 fi
7863
7864 fi
7865 fi
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7867 $as_echo "$ac_cv_header_stdc" >&6; }
7868 if test $ac_cv_header_stdc = yes; then
7869
7870 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7871
7872 fi
7873
7874 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7875 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7876                   inttypes.h stdint.h unistd.h
7877 do :
7878   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7879 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7880 "
7881 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7882   cat >>confdefs.h <<_ACEOF
7883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7884 _ACEOF
7885
7886 fi
7887
7888 done
7889
7890
7891 for ac_header in dlfcn.h
7892 do :
7893   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7894 "
7895 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7896   cat >>confdefs.h <<_ACEOF
7897 #define HAVE_DLFCN_H 1
7898 _ACEOF
7899
7900 fi
7901
7902 done
7903
7904
7905
7906
7907
7908 # Set options
7909
7910
7911
7912         enable_dlopen=no
7913
7914
7915
7916             # Check whether --enable-shared was given.
7917 if test "${enable_shared+set}" = set; then :
7918   enableval=$enable_shared; p=${PACKAGE-default}
7919     case $enableval in
7920     yes) enable_shared=yes ;;
7921     no) enable_shared=no ;;
7922     *)
7923       enable_shared=no
7924       # Look at the argument we got.  We use all the common list separators.
7925       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7926       for pkg in $enableval; do
7927         IFS="$lt_save_ifs"
7928         if test "X$pkg" = "X$p"; then
7929           enable_shared=yes
7930         fi
7931       done
7932       IFS="$lt_save_ifs"
7933       ;;
7934     esac
7935 else
7936   enable_shared=yes
7937 fi
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947   # Check whether --enable-static was given.
7948 if test "${enable_static+set}" = set; then :
7949   enableval=$enable_static; p=${PACKAGE-default}
7950     case $enableval in
7951     yes) enable_static=yes ;;
7952     no) enable_static=no ;;
7953     *)
7954      enable_static=no
7955       # Look at the argument we got.  We use all the common list separators.
7956       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7957       for pkg in $enableval; do
7958         IFS="$lt_save_ifs"
7959         if test "X$pkg" = "X$p"; then
7960           enable_static=yes
7961         fi
7962       done
7963       IFS="$lt_save_ifs"
7964       ;;
7965     esac
7966 else
7967   enable_static=yes
7968 fi
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979 # Check whether --with-pic was given.
7980 if test "${with_pic+set}" = set; then :
7981   withval=$with_pic; pic_mode="$withval"
7982 else
7983   pic_mode=default
7984 fi
7985
7986
7987 test -z "$pic_mode" && pic_mode=default
7988
7989
7990
7991
7992
7993
7994
7995   # Check whether --enable-fast-install was given.
7996 if test "${enable_fast_install+set}" = set; then :
7997   enableval=$enable_fast_install; p=${PACKAGE-default}
7998     case $enableval in
7999     yes) enable_fast_install=yes ;;
8000     no) enable_fast_install=no ;;
8001     *)
8002       enable_fast_install=no
8003       # Look at the argument we got.  We use all the common list separators.
8004       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8005       for pkg in $enableval; do
8006         IFS="$lt_save_ifs"
8007         if test "X$pkg" = "X$p"; then
8008           enable_fast_install=yes
8009         fi
8010       done
8011       IFS="$lt_save_ifs"
8012       ;;
8013     esac
8014 else
8015   enable_fast_install=yes
8016 fi
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028 # This can be used to rebuild libtool when needed
8029 LIBTOOL_DEPS="$ltmain"
8030
8031 # Always use our own libtool.
8032 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059 test -z "$LN_S" && LN_S="ln -s"
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074 if test -n "${ZSH_VERSION+set}" ; then
8075    setopt NO_GLOB_SUBST
8076 fi
8077
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8079 $as_echo_n "checking for objdir... " >&6; }
8080 if ${lt_cv_objdir+:} false; then :
8081   $as_echo_n "(cached) " >&6
8082 else
8083   rm -f .libs 2>/dev/null
8084 mkdir .libs 2>/dev/null
8085 if test -d .libs; then
8086   lt_cv_objdir=.libs
8087 else
8088   # MS-DOS does not allow filenames that begin with a dot.
8089   lt_cv_objdir=_libs
8090 fi
8091 rmdir .libs 2>/dev/null
8092 fi
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8094 $as_echo "$lt_cv_objdir" >&6; }
8095 objdir=$lt_cv_objdir
8096
8097
8098
8099
8100
8101 cat >>confdefs.h <<_ACEOF
8102 #define LT_OBJDIR "$lt_cv_objdir/"
8103 _ACEOF
8104
8105
8106
8107
8108 case $host_os in
8109 aix3*)
8110   # AIX sometimes has problems with the GCC collect2 program.  For some
8111   # reason, if we set the COLLECT_NAMES environment variable, the problems
8112   # vanish in a puff of smoke.
8113   if test "X${COLLECT_NAMES+set}" != Xset; then
8114     COLLECT_NAMES=
8115     export COLLECT_NAMES
8116   fi
8117   ;;
8118 esac
8119
8120 # Global variables:
8121 ofile=libtool
8122 can_build_shared=yes
8123
8124 # All known linkers require a `.a' archive for static linking (except MSVC,
8125 # which needs '.lib').
8126 libext=a
8127
8128 with_gnu_ld="$lt_cv_prog_gnu_ld"
8129
8130 old_CC="$CC"
8131 old_CFLAGS="$CFLAGS"
8132
8133 # Set sane defaults for various variables
8134 test -z "$CC" && CC=cc
8135 test -z "$LTCC" && LTCC=$CC
8136 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8137 test -z "$LD" && LD=ld
8138 test -z "$ac_objext" && ac_objext=o
8139
8140 for cc_temp in $compiler""; do
8141   case $cc_temp in
8142     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8143     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8144     \-*) ;;
8145     *) break;;
8146   esac
8147 done
8148 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8149
8150
8151 # Only perform the check for file, if the check method requires it
8152 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8153 case $deplibs_check_method in
8154 file_magic*)
8155   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8157 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8158 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8159   $as_echo_n "(cached) " >&6
8160 else
8161   case $MAGIC_CMD in
8162 [\\/*] |  ?:[\\/]*)
8163   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8164   ;;
8165 *)
8166   lt_save_MAGIC_CMD="$MAGIC_CMD"
8167   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8168   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8169   for ac_dir in $ac_dummy; do
8170     IFS="$lt_save_ifs"
8171     test -z "$ac_dir" && ac_dir=.
8172     if test -f $ac_dir/${ac_tool_prefix}file; then
8173       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8174       if test -n "$file_magic_test_file"; then
8175         case $deplibs_check_method in
8176         "file_magic "*)
8177           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8178           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8179           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8180             $EGREP "$file_magic_regex" > /dev/null; then
8181             :
8182           else
8183             cat <<_LT_EOF 1>&2
8184
8185 *** Warning: the command libtool uses to detect shared libraries,
8186 *** $file_magic_cmd, produces output that libtool cannot recognize.
8187 *** The result is that libtool may fail to recognize shared libraries
8188 *** as such.  This will affect the creation of libtool libraries that
8189 *** depend on shared libraries, but programs linked with such libtool
8190 *** libraries will work regardless of this problem.  Nevertheless, you
8191 *** may want to report the problem to your system manager and/or to
8192 *** bug-libtool@gnu.org
8193
8194 _LT_EOF
8195           fi ;;
8196         esac
8197       fi
8198       break
8199     fi
8200   done
8201   IFS="$lt_save_ifs"
8202   MAGIC_CMD="$lt_save_MAGIC_CMD"
8203   ;;
8204 esac
8205 fi
8206
8207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8208 if test -n "$MAGIC_CMD"; then
8209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8210 $as_echo "$MAGIC_CMD" >&6; }
8211 else
8212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213 $as_echo "no" >&6; }
8214 fi
8215
8216
8217
8218
8219
8220 if test -z "$lt_cv_path_MAGIC_CMD"; then
8221   if test -n "$ac_tool_prefix"; then
8222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8223 $as_echo_n "checking for file... " >&6; }
8224 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8225   $as_echo_n "(cached) " >&6
8226 else
8227   case $MAGIC_CMD in
8228 [\\/*] |  ?:[\\/]*)
8229   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8230   ;;
8231 *)
8232   lt_save_MAGIC_CMD="$MAGIC_CMD"
8233   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8234   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8235   for ac_dir in $ac_dummy; do
8236     IFS="$lt_save_ifs"
8237     test -z "$ac_dir" && ac_dir=.
8238     if test -f $ac_dir/file; then
8239       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8240       if test -n "$file_magic_test_file"; then
8241         case $deplibs_check_method in
8242         "file_magic "*)
8243           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8244           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8245           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8246             $EGREP "$file_magic_regex" > /dev/null; then
8247             :
8248           else
8249             cat <<_LT_EOF 1>&2
8250
8251 *** Warning: the command libtool uses to detect shared libraries,
8252 *** $file_magic_cmd, produces output that libtool cannot recognize.
8253 *** The result is that libtool may fail to recognize shared libraries
8254 *** as such.  This will affect the creation of libtool libraries that
8255 *** depend on shared libraries, but programs linked with such libtool
8256 *** libraries will work regardless of this problem.  Nevertheless, you
8257 *** may want to report the problem to your system manager and/or to
8258 *** bug-libtool@gnu.org
8259
8260 _LT_EOF
8261           fi ;;
8262         esac
8263       fi
8264       break
8265     fi
8266   done
8267   IFS="$lt_save_ifs"
8268   MAGIC_CMD="$lt_save_MAGIC_CMD"
8269   ;;
8270 esac
8271 fi
8272
8273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274 if test -n "$MAGIC_CMD"; then
8275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8276 $as_echo "$MAGIC_CMD" >&6; }
8277 else
8278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8280 fi
8281
8282
8283   else
8284     MAGIC_CMD=:
8285   fi
8286 fi
8287
8288   fi
8289   ;;
8290 esac
8291
8292 # Use C for the default configuration in the libtool script
8293
8294 lt_save_CC="$CC"
8295 ac_ext=c
8296 ac_cpp='$CPP $CPPFLAGS'
8297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8300
8301
8302 # Source file extension for C test sources.
8303 ac_ext=c
8304
8305 # Object file extension for compiled C test sources.
8306 objext=o
8307 objext=$objext
8308
8309 # Code to be used in simple compile tests
8310 lt_simple_compile_test_code="int some_variable = 0;"
8311
8312 # Code to be used in simple link tests
8313 lt_simple_link_test_code='int main(){return(0);}'
8314
8315
8316
8317
8318
8319
8320
8321 # If no C compiler was specified, use CC.
8322 LTCC=${LTCC-"$CC"}
8323
8324 # If no C compiler flags were specified, use CFLAGS.
8325 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8326
8327 # Allow CC to be a program name with arguments.
8328 compiler=$CC
8329
8330 # Save the default compiler, since it gets overwritten when the other
8331 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8332 compiler_DEFAULT=$CC
8333
8334 # save warnings/boilerplate of simple test code
8335 ac_outfile=conftest.$ac_objext
8336 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8337 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8338 _lt_compiler_boilerplate=`cat conftest.err`
8339 $RM conftest*
8340
8341 ac_outfile=conftest.$ac_objext
8342 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8343 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8344 _lt_linker_boilerplate=`cat conftest.err`
8345 $RM -r conftest*
8346
8347
8348 if test -n "$compiler"; then
8349
8350 lt_prog_compiler_no_builtin_flag=
8351
8352 if test "$GCC" = yes; then
8353   case $cc_basename in
8354   nvcc*)
8355     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8356   *)
8357     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8358   esac
8359
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8361 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8362 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8363   $as_echo_n "(cached) " >&6
8364 else
8365   lt_cv_prog_compiler_rtti_exceptions=no
8366    ac_outfile=conftest.$ac_objext
8367    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8368    lt_compiler_flag="-fno-rtti -fno-exceptions"
8369    # Insert the option either (1) after the last *FLAGS variable, or
8370    # (2) before a word containing "conftest.", or (3) at the end.
8371    # Note that $ac_compile itself does not contain backslashes and begins
8372    # with a dollar sign (not a hyphen), so the echo should work correctly.
8373    # The option is referenced via a variable to avoid confusing sed.
8374    lt_compile=`echo "$ac_compile" | $SED \
8375    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8376    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8377    -e 's:$: $lt_compiler_flag:'`
8378    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8379    (eval "$lt_compile" 2>conftest.err)
8380    ac_status=$?
8381    cat conftest.err >&5
8382    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383    if (exit $ac_status) && test -s "$ac_outfile"; then
8384      # The compiler can only warn and ignore the option if not recognized
8385      # So say no if there are warnings other than the usual output.
8386      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8387      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8388      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8389        lt_cv_prog_compiler_rtti_exceptions=yes
8390      fi
8391    fi
8392    $RM conftest*
8393
8394 fi
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8396 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8397
8398 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8399     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8400 else
8401     :
8402 fi
8403
8404 fi
8405
8406
8407
8408
8409
8410
8411   lt_prog_compiler_wl=
8412 lt_prog_compiler_pic=
8413 lt_prog_compiler_static=
8414
8415
8416   if test "$GCC" = yes; then
8417     lt_prog_compiler_wl='-Wl,'
8418     lt_prog_compiler_static='-static'
8419
8420     case $host_os in
8421       aix*)
8422       # All AIX code is PIC.
8423       if test "$host_cpu" = ia64; then
8424         # AIX 5 now supports IA64 processor
8425         lt_prog_compiler_static='-Bstatic'
8426       fi
8427       ;;
8428
8429     amigaos*)
8430       case $host_cpu in
8431       powerpc)
8432             # see comment about AmigaOS4 .so support
8433             lt_prog_compiler_pic='-fPIC'
8434         ;;
8435       m68k)
8436             # FIXME: we need at least 68020 code to build shared libraries, but
8437             # adding the `-m68020' flag to GCC prevents building anything better,
8438             # like `-m68040'.
8439             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8440         ;;
8441       esac
8442       ;;
8443
8444     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8445       # PIC is the default for these OSes.
8446       ;;
8447
8448     mingw* | cygwin* | pw32* | os2* | cegcc*)
8449       # This hack is so that the source file can tell whether it is being
8450       # built for inclusion in a dll (and should export symbols for example).
8451       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8452       # (--disable-auto-import) libraries
8453       lt_prog_compiler_pic='-DDLL_EXPORT'
8454       ;;
8455
8456     darwin* | rhapsody*)
8457       # PIC is the default on this platform
8458       # Common symbols not allowed in MH_DYLIB files
8459       lt_prog_compiler_pic='-fno-common'
8460       ;;
8461
8462     haiku*)
8463       # PIC is the default for Haiku.
8464       # The "-static" flag exists, but is broken.
8465       lt_prog_compiler_static=
8466       ;;
8467
8468     hpux*)
8469       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8470       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8471       # sets the default TLS model and affects inlining.
8472       case $host_cpu in
8473       hppa*64*)
8474         # +Z the default
8475         ;;
8476       *)
8477         lt_prog_compiler_pic='-fPIC'
8478         ;;
8479       esac
8480       ;;
8481
8482     interix[3-9]*)
8483       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8484       # Instead, we relocate shared libraries at runtime.
8485       ;;
8486
8487     msdosdjgpp*)
8488       # Just because we use GCC doesn't mean we suddenly get shared libraries
8489       # on systems that don't support them.
8490       lt_prog_compiler_can_build_shared=no
8491       enable_shared=no
8492       ;;
8493
8494     *nto* | *qnx*)
8495       # QNX uses GNU C++, but need to define -shared option too, otherwise
8496       # it will coredump.
8497       lt_prog_compiler_pic='-fPIC -shared'
8498       ;;
8499
8500     sysv4*MP*)
8501       if test -d /usr/nec; then
8502         lt_prog_compiler_pic=-Kconform_pic
8503       fi
8504       ;;
8505
8506     *)
8507       lt_prog_compiler_pic='-fPIC'
8508       ;;
8509     esac
8510
8511     case $cc_basename in
8512     nvcc*) # Cuda Compiler Driver 2.2
8513       lt_prog_compiler_wl='-Xlinker '
8514       lt_prog_compiler_pic='-Xcompiler -fPIC'
8515       ;;
8516     esac
8517   else
8518     # PORTME Check for flag to pass linker flags through the system compiler.
8519     case $host_os in
8520     aix*)
8521       lt_prog_compiler_wl='-Wl,'
8522       if test "$host_cpu" = ia64; then
8523         # AIX 5 now supports IA64 processor
8524         lt_prog_compiler_static='-Bstatic'
8525       else
8526         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8527       fi
8528       ;;
8529
8530     mingw* | cygwin* | pw32* | os2* | cegcc*)
8531       # This hack is so that the source file can tell whether it is being
8532       # built for inclusion in a dll (and should export symbols for example).
8533       lt_prog_compiler_pic='-DDLL_EXPORT'
8534       ;;
8535
8536     hpux9* | hpux10* | hpux11*)
8537       lt_prog_compiler_wl='-Wl,'
8538       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8539       # not for PA HP-UX.
8540       case $host_cpu in
8541       hppa*64*|ia64*)
8542         # +Z the default
8543         ;;
8544       *)
8545         lt_prog_compiler_pic='+Z'
8546         ;;
8547       esac
8548       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8549       lt_prog_compiler_static='${wl}-a ${wl}archive'
8550       ;;
8551
8552     irix5* | irix6* | nonstopux*)
8553       lt_prog_compiler_wl='-Wl,'
8554       # PIC (with -KPIC) is the default.
8555       lt_prog_compiler_static='-non_shared'
8556       ;;
8557
8558     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8559       case $cc_basename in
8560       # old Intel for x86_64 which still supported -KPIC.
8561       ecc*)
8562         lt_prog_compiler_wl='-Wl,'
8563         lt_prog_compiler_pic='-KPIC'
8564         lt_prog_compiler_static='-static'
8565         ;;
8566       # icc used to be incompatible with GCC.
8567       # ICC 10 doesn't accept -KPIC any more.
8568       icc* | ifort*)
8569         lt_prog_compiler_wl='-Wl,'
8570         lt_prog_compiler_pic='-fPIC'
8571         lt_prog_compiler_static='-static'
8572         ;;
8573       # Lahey Fortran 8.1.
8574       lf95*)
8575         lt_prog_compiler_wl='-Wl,'
8576         lt_prog_compiler_pic='--shared'
8577         lt_prog_compiler_static='--static'
8578         ;;
8579       nagfor*)
8580         # NAG Fortran compiler
8581         lt_prog_compiler_wl='-Wl,-Wl,,'
8582         lt_prog_compiler_pic='-PIC'
8583         lt_prog_compiler_static='-Bstatic'
8584         ;;
8585       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8586         # Portland Group compilers (*not* the Pentium gcc compiler,
8587         # which looks to be a dead project)
8588         lt_prog_compiler_wl='-Wl,'
8589         lt_prog_compiler_pic='-fpic'
8590         lt_prog_compiler_static='-Bstatic'
8591         ;;
8592       ccc*)
8593         lt_prog_compiler_wl='-Wl,'
8594         # All Alpha code is PIC.
8595         lt_prog_compiler_static='-non_shared'
8596         ;;
8597       xl* | bgxl* | bgf* | mpixl*)
8598         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8599         lt_prog_compiler_wl='-Wl,'
8600         lt_prog_compiler_pic='-qpic'
8601         lt_prog_compiler_static='-qstaticlink'
8602         ;;
8603       *)
8604         case `$CC -V 2>&1 | sed 5q` in
8605         *Sun\ F* | *Sun*Fortran*)
8606           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8607           lt_prog_compiler_pic='-KPIC'
8608           lt_prog_compiler_static='-Bstatic'
8609           lt_prog_compiler_wl=''
8610           ;;
8611         *Sun\ C*)
8612           # Sun C 5.9
8613           lt_prog_compiler_pic='-KPIC'
8614           lt_prog_compiler_static='-Bstatic'
8615           lt_prog_compiler_wl='-Wl,'
8616           ;;
8617         esac
8618         ;;
8619       esac
8620       ;;
8621
8622     newsos6)
8623       lt_prog_compiler_pic='-KPIC'
8624       lt_prog_compiler_static='-Bstatic'
8625       ;;
8626
8627     *nto* | *qnx*)
8628       # QNX uses GNU C++, but need to define -shared option too, otherwise
8629       # it will coredump.
8630       lt_prog_compiler_pic='-fPIC -shared'
8631       ;;
8632
8633     osf3* | osf4* | osf5*)
8634       lt_prog_compiler_wl='-Wl,'
8635       # All OSF/1 code is PIC.
8636       lt_prog_compiler_static='-non_shared'
8637       ;;
8638
8639     rdos*)
8640       lt_prog_compiler_static='-non_shared'
8641       ;;
8642
8643     solaris*)
8644       lt_prog_compiler_pic='-KPIC'
8645       lt_prog_compiler_static='-Bstatic'
8646       case $cc_basename in
8647       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8648         lt_prog_compiler_wl='-Qoption ld ';;
8649       *)
8650         lt_prog_compiler_wl='-Wl,';;
8651       esac
8652       ;;
8653
8654     sunos4*)
8655       lt_prog_compiler_wl='-Qoption ld '
8656       lt_prog_compiler_pic='-PIC'
8657       lt_prog_compiler_static='-Bstatic'
8658       ;;
8659
8660     sysv4 | sysv4.2uw2* | sysv4.3*)
8661       lt_prog_compiler_wl='-Wl,'
8662       lt_prog_compiler_pic='-KPIC'
8663       lt_prog_compiler_static='-Bstatic'
8664       ;;
8665
8666     sysv4*MP*)
8667       if test -d /usr/nec ;then
8668         lt_prog_compiler_pic='-Kconform_pic'
8669         lt_prog_compiler_static='-Bstatic'
8670       fi
8671       ;;
8672
8673     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8674       lt_prog_compiler_wl='-Wl,'
8675       lt_prog_compiler_pic='-KPIC'
8676       lt_prog_compiler_static='-Bstatic'
8677       ;;
8678
8679     unicos*)
8680       lt_prog_compiler_wl='-Wl,'
8681       lt_prog_compiler_can_build_shared=no
8682       ;;
8683
8684     uts4*)
8685       lt_prog_compiler_pic='-pic'
8686       lt_prog_compiler_static='-Bstatic'
8687       ;;
8688
8689     *)
8690       lt_prog_compiler_can_build_shared=no
8691       ;;
8692     esac
8693   fi
8694
8695 case $host_os in
8696   # For platforms which do not support PIC, -DPIC is meaningless:
8697   *djgpp*)
8698     lt_prog_compiler_pic=
8699     ;;
8700   *)
8701     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8702     ;;
8703 esac
8704
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8706 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8707 if ${lt_cv_prog_compiler_pic+:} false; then :
8708   $as_echo_n "(cached) " >&6
8709 else
8710   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8711 fi
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8713 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8714 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8715
8716 #
8717 # Check to make sure the PIC flag actually works.
8718 #
8719 if test -n "$lt_prog_compiler_pic"; then
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8721 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8722 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8723   $as_echo_n "(cached) " >&6
8724 else
8725   lt_cv_prog_compiler_pic_works=no
8726    ac_outfile=conftest.$ac_objext
8727    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8728    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8729    # Insert the option either (1) after the last *FLAGS variable, or
8730    # (2) before a word containing "conftest.", or (3) at the end.
8731    # Note that $ac_compile itself does not contain backslashes and begins
8732    # with a dollar sign (not a hyphen), so the echo should work correctly.
8733    # The option is referenced via a variable to avoid confusing sed.
8734    lt_compile=`echo "$ac_compile" | $SED \
8735    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8736    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8737    -e 's:$: $lt_compiler_flag:'`
8738    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8739    (eval "$lt_compile" 2>conftest.err)
8740    ac_status=$?
8741    cat conftest.err >&5
8742    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743    if (exit $ac_status) && test -s "$ac_outfile"; then
8744      # The compiler can only warn and ignore the option if not recognized
8745      # So say no if there are warnings other than the usual output.
8746      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8747      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8748      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8749        lt_cv_prog_compiler_pic_works=yes
8750      fi
8751    fi
8752    $RM conftest*
8753
8754 fi
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8756 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8757
8758 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8759     case $lt_prog_compiler_pic in
8760      "" | " "*) ;;
8761      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8762      esac
8763 else
8764     lt_prog_compiler_pic=
8765      lt_prog_compiler_can_build_shared=no
8766 fi
8767
8768 fi
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780 #
8781 # Check to make sure the static flag actually works.
8782 #
8783 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8785 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8786 if ${lt_cv_prog_compiler_static_works+:} false; then :
8787   $as_echo_n "(cached) " >&6
8788 else
8789   lt_cv_prog_compiler_static_works=no
8790    save_LDFLAGS="$LDFLAGS"
8791    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8792    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8793    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8794      # The linker can only warn and ignore the option if not recognized
8795      # So say no if there are warnings
8796      if test -s conftest.err; then
8797        # Append any errors to the config.log.
8798        cat conftest.err 1>&5
8799        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8800        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8801        if diff conftest.exp conftest.er2 >/dev/null; then
8802          lt_cv_prog_compiler_static_works=yes
8803        fi
8804      else
8805        lt_cv_prog_compiler_static_works=yes
8806      fi
8807    fi
8808    $RM -r conftest*
8809    LDFLAGS="$save_LDFLAGS"
8810
8811 fi
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8813 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8814
8815 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8816     :
8817 else
8818     lt_prog_compiler_static=
8819 fi
8820
8821
8822
8823
8824
8825
8826
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8828 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8829 if ${lt_cv_prog_compiler_c_o+:} false; then :
8830   $as_echo_n "(cached) " >&6
8831 else
8832   lt_cv_prog_compiler_c_o=no
8833    $RM -r conftest 2>/dev/null
8834    mkdir conftest
8835    cd conftest
8836    mkdir out
8837    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8838
8839    lt_compiler_flag="-o out/conftest2.$ac_objext"
8840    # Insert the option either (1) after the last *FLAGS variable, or
8841    # (2) before a word containing "conftest.", or (3) at the end.
8842    # Note that $ac_compile itself does not contain backslashes and begins
8843    # with a dollar sign (not a hyphen), so the echo should work correctly.
8844    lt_compile=`echo "$ac_compile" | $SED \
8845    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8846    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8847    -e 's:$: $lt_compiler_flag:'`
8848    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8849    (eval "$lt_compile" 2>out/conftest.err)
8850    ac_status=$?
8851    cat out/conftest.err >&5
8852    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8854    then
8855      # The compiler can only warn and ignore the option if not recognized
8856      # So say no if there are warnings
8857      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8858      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8859      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8860        lt_cv_prog_compiler_c_o=yes
8861      fi
8862    fi
8863    chmod u+w . 2>&5
8864    $RM conftest*
8865    # SGI C++ compiler will create directory out/ii_files/ for
8866    # template instantiation
8867    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8868    $RM out/* && rmdir out
8869    cd ..
8870    $RM -r conftest
8871    $RM conftest*
8872
8873 fi
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8875 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8876
8877
8878
8879
8880
8881
8882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8883 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8884 if ${lt_cv_prog_compiler_c_o+:} false; then :
8885   $as_echo_n "(cached) " >&6
8886 else
8887   lt_cv_prog_compiler_c_o=no
8888    $RM -r conftest 2>/dev/null
8889    mkdir conftest
8890    cd conftest
8891    mkdir out
8892    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8893
8894    lt_compiler_flag="-o out/conftest2.$ac_objext"
8895    # Insert the option either (1) after the last *FLAGS variable, or
8896    # (2) before a word containing "conftest.", or (3) at the end.
8897    # Note that $ac_compile itself does not contain backslashes and begins
8898    # with a dollar sign (not a hyphen), so the echo should work correctly.
8899    lt_compile=`echo "$ac_compile" | $SED \
8900    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8901    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8902    -e 's:$: $lt_compiler_flag:'`
8903    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8904    (eval "$lt_compile" 2>out/conftest.err)
8905    ac_status=$?
8906    cat out/conftest.err >&5
8907    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8909    then
8910      # The compiler can only warn and ignore the option if not recognized
8911      # So say no if there are warnings
8912      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8913      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8914      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8915        lt_cv_prog_compiler_c_o=yes
8916      fi
8917    fi
8918    chmod u+w . 2>&5
8919    $RM conftest*
8920    # SGI C++ compiler will create directory out/ii_files/ for
8921    # template instantiation
8922    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8923    $RM out/* && rmdir out
8924    cd ..
8925    $RM -r conftest
8926    $RM conftest*
8927
8928 fi
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8930 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8931
8932
8933
8934
8935 hard_links="nottested"
8936 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8937   # do not overwrite the value of need_locks provided by the user
8938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8939 $as_echo_n "checking if we can lock with hard links... " >&6; }
8940   hard_links=yes
8941   $RM conftest*
8942   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8943   touch conftest.a
8944   ln conftest.a conftest.b 2>&5 || hard_links=no
8945   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8947 $as_echo "$hard_links" >&6; }
8948   if test "$hard_links" = no; then
8949     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8950 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8951     need_locks=warn
8952   fi
8953 else
8954   need_locks=no
8955 fi
8956
8957
8958
8959
8960
8961
8962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8963 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8964
8965   runpath_var=
8966   allow_undefined_flag=
8967   always_export_symbols=no
8968   archive_cmds=
8969   archive_expsym_cmds=
8970   compiler_needs_object=no
8971   enable_shared_with_static_runtimes=no
8972   export_dynamic_flag_spec=
8973   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8974   hardcode_automatic=no
8975   hardcode_direct=no
8976   hardcode_direct_absolute=no
8977   hardcode_libdir_flag_spec=
8978   hardcode_libdir_flag_spec_ld=
8979   hardcode_libdir_separator=
8980   hardcode_minus_L=no
8981   hardcode_shlibpath_var=unsupported
8982   inherit_rpath=no
8983   link_all_deplibs=unknown
8984   module_cmds=
8985   module_expsym_cmds=
8986   old_archive_from_new_cmds=
8987   old_archive_from_expsyms_cmds=
8988   thread_safe_flag_spec=
8989   whole_archive_flag_spec=
8990   # include_expsyms should be a list of space-separated symbols to be *always*
8991   # included in the symbol list
8992   include_expsyms=
8993   # exclude_expsyms can be an extended regexp of symbols to exclude
8994   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8995   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8996   # as well as any symbol that contains `d'.
8997   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8998   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8999   # platforms (ab)use it in PIC code, but their linkers get confused if
9000   # the symbol is explicitly referenced.  Since portable code cannot
9001   # rely on this symbol name, it's probably fine to never include it in
9002   # preloaded symbol tables.
9003   # Exclude shared library initialization/finalization symbols.
9004   extract_expsyms_cmds=
9005
9006   case $host_os in
9007   cygwin* | mingw* | pw32* | cegcc*)
9008     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9009     # When not using gcc, we currently assume that we are using
9010     # Microsoft Visual C++.
9011     if test "$GCC" != yes; then
9012       with_gnu_ld=no
9013     fi
9014     ;;
9015   interix*)
9016     # we just hope/assume this is gcc and not c89 (= MSVC++)
9017     with_gnu_ld=yes
9018     ;;
9019   openbsd*)
9020     with_gnu_ld=no
9021     ;;
9022   linux* | k*bsd*-gnu | gnu*)
9023     link_all_deplibs=no
9024     ;;
9025   esac
9026
9027   ld_shlibs=yes
9028
9029   # On some targets, GNU ld is compatible enough with the native linker
9030   # that we're better off using the native interface for both.
9031   lt_use_gnu_ld_interface=no
9032   if test "$with_gnu_ld" = yes; then
9033     case $host_os in
9034       aix*)
9035         # The AIX port of GNU ld has always aspired to compatibility
9036         # with the native linker.  However, as the warning in the GNU ld
9037         # block says, versions before 2.19.5* couldn't really create working
9038         # shared libraries, regardless of the interface used.
9039         case `$LD -v 2>&1` in
9040           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9041           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9042           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9043           *)
9044             lt_use_gnu_ld_interface=yes
9045             ;;
9046         esac
9047         ;;
9048       *)
9049         lt_use_gnu_ld_interface=yes
9050         ;;
9051     esac
9052   fi
9053
9054   if test "$lt_use_gnu_ld_interface" = yes; then
9055     # If archive_cmds runs LD, not CC, wlarc should be empty
9056     wlarc='${wl}'
9057
9058     # Set some defaults for GNU ld with shared library support. These
9059     # are reset later if shared libraries are not supported. Putting them
9060     # here allows them to be overridden if necessary.
9061     runpath_var=LD_RUN_PATH
9062     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9063     export_dynamic_flag_spec='${wl}--export-dynamic'
9064     # ancient GNU ld didn't support --whole-archive et. al.
9065     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9066       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9067     else
9068       whole_archive_flag_spec=
9069     fi
9070     supports_anon_versioning=no
9071     case `$LD -v 2>&1` in
9072       *GNU\ gold*) supports_anon_versioning=yes ;;
9073       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9074       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9075       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9076       *\ 2.11.*) ;; # other 2.11 versions
9077       *) supports_anon_versioning=yes ;;
9078     esac
9079
9080     # See if GNU ld supports shared libraries.
9081     case $host_os in
9082     aix[3-9]*)
9083       # On AIX/PPC, the GNU linker is very broken
9084       if test "$host_cpu" != ia64; then
9085         ld_shlibs=no
9086         cat <<_LT_EOF 1>&2
9087
9088 *** Warning: the GNU linker, at least up to release 2.19, is reported
9089 *** to be unable to reliably create shared libraries on AIX.
9090 *** Therefore, libtool is disabling shared libraries support.  If you
9091 *** really care for shared libraries, you may want to install binutils
9092 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9093 *** You will then need to restart the configuration process.
9094
9095 _LT_EOF
9096       fi
9097       ;;
9098
9099     amigaos*)
9100       case $host_cpu in
9101       powerpc)
9102             # see comment about AmigaOS4 .so support
9103             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9104             archive_expsym_cmds=''
9105         ;;
9106       m68k)
9107             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)'
9108             hardcode_libdir_flag_spec='-L$libdir'
9109             hardcode_minus_L=yes
9110         ;;
9111       esac
9112       ;;
9113
9114     beos*)
9115       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9116         allow_undefined_flag=unsupported
9117         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9118         # support --undefined.  This deserves some investigation.  FIXME
9119         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120       else
9121         ld_shlibs=no
9122       fi
9123       ;;
9124
9125     cygwin* | mingw* | pw32* | cegcc*)
9126       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9127       # as there is no search path for DLLs.
9128       hardcode_libdir_flag_spec='-L$libdir'
9129       export_dynamic_flag_spec='${wl}--export-all-symbols'
9130       allow_undefined_flag=unsupported
9131       always_export_symbols=no
9132       enable_shared_with_static_runtimes=yes
9133       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'
9134       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9135
9136       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9137         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9138         # If the export-symbols file already is a .def file (1st line
9139         # is EXPORTS), use it as is; otherwise, prepend...
9140         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9141           cp $export_symbols $output_objdir/$soname.def;
9142         else
9143           echo EXPORTS > $output_objdir/$soname.def;
9144           cat $export_symbols >> $output_objdir/$soname.def;
9145         fi~
9146         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9147       else
9148         ld_shlibs=no
9149       fi
9150       ;;
9151
9152     haiku*)
9153       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9154       link_all_deplibs=yes
9155       ;;
9156
9157     interix[3-9]*)
9158       hardcode_direct=no
9159       hardcode_shlibpath_var=no
9160       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9161       export_dynamic_flag_spec='${wl}-E'
9162       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9163       # Instead, shared libraries are loaded at an image base (0x10000000 by
9164       # default) and relocated if they conflict, which is a slow very memory
9165       # consuming and fragmenting process.  To avoid this, we pick a random,
9166       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9167       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9168       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9169       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'
9170       ;;
9171
9172     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9173       tmp_diet=no
9174       if test "$host_os" = linux-dietlibc; then
9175         case $cc_basename in
9176           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9177         esac
9178       fi
9179       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9180          && test "$tmp_diet" = no
9181       then
9182         tmp_addflag=' $pic_flag'
9183         tmp_sharedflag='-shared'
9184         case $cc_basename,$host_cpu in
9185         pgcc*)                          # Portland Group C compiler
9186           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'
9187           tmp_addflag=' $pic_flag'
9188           ;;
9189         pgf77* | pgf90* | pgf95* | pgfortran*)
9190                                         # Portland Group f77 and f90 compilers
9191           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'
9192           tmp_addflag=' $pic_flag -Mnomain' ;;
9193         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9194           tmp_addflag=' -i_dynamic' ;;
9195         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9196           tmp_addflag=' -i_dynamic -nofor_main' ;;
9197         ifc* | ifort*)                  # Intel Fortran compiler
9198           tmp_addflag=' -nofor_main' ;;
9199         lf95*)                          # Lahey Fortran 8.1
9200           whole_archive_flag_spec=
9201           tmp_sharedflag='--shared' ;;
9202         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9203           tmp_sharedflag='-qmkshrobj'
9204           tmp_addflag= ;;
9205         nvcc*)  # Cuda Compiler Driver 2.2
9206           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'
9207           compiler_needs_object=yes
9208           ;;
9209         esac
9210         case `$CC -V 2>&1 | sed 5q` in
9211         *Sun\ C*)                       # Sun C 5.9
9212           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'
9213           compiler_needs_object=yes
9214           tmp_sharedflag='-G' ;;
9215         *Sun\ F*)                       # Sun Fortran 8.3
9216           tmp_sharedflag='-G' ;;
9217         esac
9218         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9219
9220         if test "x$supports_anon_versioning" = xyes; then
9221           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9222             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9223             echo "local: *; };" >> $output_objdir/$libname.ver~
9224             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9225         fi
9226
9227         case $cc_basename in
9228         xlf* | bgf* | bgxlf* | mpixlf*)
9229           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9230           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9231           hardcode_libdir_flag_spec=
9232           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9233           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9234           if test "x$supports_anon_versioning" = xyes; then
9235             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9236               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9237               echo "local: *; };" >> $output_objdir/$libname.ver~
9238               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9239           fi
9240           ;;
9241         esac
9242       else
9243         ld_shlibs=no
9244       fi
9245       ;;
9246
9247     netbsd* | netbsdelf*-gnu)
9248       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9249         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9250         wlarc=
9251       else
9252         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9254       fi
9255       ;;
9256
9257     solaris*)
9258       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9259         ld_shlibs=no
9260         cat <<_LT_EOF 1>&2
9261
9262 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9263 *** create shared libraries on Solaris systems.  Therefore, libtool
9264 *** is disabling shared libraries support.  We urge you to upgrade GNU
9265 *** binutils to release 2.9.1 or newer.  Another option is to modify
9266 *** your PATH or compiler configuration so that the native linker is
9267 *** used, and then restart.
9268
9269 _LT_EOF
9270       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9271         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9273       else
9274         ld_shlibs=no
9275       fi
9276       ;;
9277
9278     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9279       case `$LD -v 2>&1` in
9280         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9281         ld_shlibs=no
9282         cat <<_LT_EOF 1>&2
9283
9284 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9285 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9286 *** is disabling shared libraries support.  We urge you to upgrade GNU
9287 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9288 *** your PATH or compiler configuration so that the native linker is
9289 *** used, and then restart.
9290
9291 _LT_EOF
9292         ;;
9293         *)
9294           # For security reasons, it is highly recommended that you always
9295           # use absolute paths for naming shared libraries, and exclude the
9296           # DT_RUNPATH tag from executables and libraries.  But doing so
9297           # requires that you compile everything twice, which is a pain.
9298           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9299             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9300             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9302           else
9303             ld_shlibs=no
9304           fi
9305         ;;
9306       esac
9307       ;;
9308
9309     sunos4*)
9310       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9311       wlarc=
9312       hardcode_direct=yes
9313       hardcode_shlibpath_var=no
9314       ;;
9315
9316     *)
9317       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9318         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9319         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9320       else
9321         ld_shlibs=no
9322       fi
9323       ;;
9324     esac
9325
9326     if test "$ld_shlibs" = no; then
9327       runpath_var=
9328       hardcode_libdir_flag_spec=
9329       export_dynamic_flag_spec=
9330       whole_archive_flag_spec=
9331     fi
9332   else
9333     # PORTME fill in a description of your system's linker (not GNU ld)
9334     case $host_os in
9335     aix3*)
9336       allow_undefined_flag=unsupported
9337       always_export_symbols=yes
9338       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'
9339       # Note: this linker hardcodes the directories in LIBPATH if there
9340       # are no directories specified by -L.
9341       hardcode_minus_L=yes
9342       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9343         # Neither direct hardcoding nor static linking is supported with a
9344         # broken collect2.
9345         hardcode_direct=unsupported
9346       fi
9347       ;;
9348
9349     aix[4-9]*)
9350       if test "$host_cpu" = ia64; then
9351         # On IA64, the linker does run time linking by default, so we don't
9352         # have to do anything special.
9353         aix_use_runtimelinking=no
9354         exp_sym_flag='-Bexport'
9355         no_entry_flag=""
9356       else
9357         # If we're using GNU nm, then we don't want the "-C" option.
9358         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9359         # Also, AIX nm treats weak defined symbols like other global
9360         # defined symbols, whereas GNU nm marks them as "W".
9361         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9362           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'
9363         else
9364           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'
9365         fi
9366         aix_use_runtimelinking=no
9367
9368         # Test if we are trying to use run time linking or normal
9369         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9370         # need to do runtime linking.
9371         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9372           for ld_flag in $LDFLAGS; do
9373           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9374             aix_use_runtimelinking=yes
9375             break
9376           fi
9377           done
9378           ;;
9379         esac
9380
9381         exp_sym_flag='-bexport'
9382         no_entry_flag='-bnoentry'
9383       fi
9384
9385       # When large executables or shared objects are built, AIX ld can
9386       # have problems creating the table of contents.  If linking a library
9387       # or program results in "error TOC overflow" add -mminimal-toc to
9388       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9389       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9390
9391       archive_cmds=''
9392       hardcode_direct=yes
9393       hardcode_direct_absolute=yes
9394       hardcode_libdir_separator=':'
9395       link_all_deplibs=yes
9396       file_list_spec='${wl}-f,'
9397
9398       if test "$GCC" = yes; then
9399         case $host_os in aix4.[012]|aix4.[012].*)
9400         # We only want to do this on AIX 4.2 and lower, the check
9401         # below for broken collect2 doesn't work under 4.3+
9402           collect2name=`${CC} -print-prog-name=collect2`
9403           if test -f "$collect2name" &&
9404            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9405           then
9406           # We have reworked collect2
9407           :
9408           else
9409           # We have old collect2
9410           hardcode_direct=unsupported
9411           # It fails to find uninstalled libraries when the uninstalled
9412           # path is not listed in the libpath.  Setting hardcode_minus_L
9413           # to unsupported forces relinking
9414           hardcode_minus_L=yes
9415           hardcode_libdir_flag_spec='-L$libdir'
9416           hardcode_libdir_separator=
9417           fi
9418           ;;
9419         esac
9420         shared_flag='-shared'
9421         if test "$aix_use_runtimelinking" = yes; then
9422           shared_flag="$shared_flag "'${wl}-G'
9423         fi
9424         link_all_deplibs=no
9425       else
9426         # not using gcc
9427         if test "$host_cpu" = ia64; then
9428         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9429         # chokes on -Wl,-G. The following line is correct:
9430           shared_flag='-G'
9431         else
9432           if test "$aix_use_runtimelinking" = yes; then
9433             shared_flag='${wl}-G'
9434           else
9435             shared_flag='${wl}-bM:SRE'
9436           fi
9437         fi
9438       fi
9439
9440       export_dynamic_flag_spec='${wl}-bexpall'
9441       # It seems that -bexpall does not export symbols beginning with
9442       # underscore (_), so it is better to generate a list of symbols to export.
9443       always_export_symbols=yes
9444       if test "$aix_use_runtimelinking" = yes; then
9445         # Warning - without using the other runtime loading flags (-brtl),
9446         # -berok will link without error, but may produce a broken library.
9447         allow_undefined_flag='-berok'
9448         # Determine the default libpath from the value encoded in an
9449         # empty executable.
9450         if test "${lt_cv_aix_libpath+set}" = set; then
9451   aix_libpath=$lt_cv_aix_libpath
9452 else
9453   if ${lt_cv_aix_libpath_+:} false; then :
9454   $as_echo_n "(cached) " >&6
9455 else
9456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h.  */
9458
9459 int
9460 main ()
9461 {
9462
9463   ;
9464   return 0;
9465 }
9466 _ACEOF
9467 if ac_fn_c_try_link "$LINENO"; then :
9468
9469   lt_aix_libpath_sed='
9470       /Import File Strings/,/^$/ {
9471           /^0/ {
9472               s/^0  *\([^ ]*\) *$/\1/
9473               p
9474           }
9475       }'
9476   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9477   # Check for a 64-bit object if we didn't find anything.
9478   if test -z "$lt_cv_aix_libpath_"; then
9479     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9480   fi
9481 fi
9482 rm -f core conftest.err conftest.$ac_objext \
9483     conftest$ac_exeext conftest.$ac_ext
9484   if test -z "$lt_cv_aix_libpath_"; then
9485     lt_cv_aix_libpath_="/usr/lib:/lib"
9486   fi
9487
9488 fi
9489
9490   aix_libpath=$lt_cv_aix_libpath_
9491 fi
9492
9493         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9494         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"
9495       else
9496         if test "$host_cpu" = ia64; then
9497           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9498           allow_undefined_flag="-z nodefs"
9499           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"
9500         else
9501          # Determine the default libpath from the value encoded in an
9502          # empty executable.
9503          if test "${lt_cv_aix_libpath+set}" = set; then
9504   aix_libpath=$lt_cv_aix_libpath
9505 else
9506   if ${lt_cv_aix_libpath_+:} false; then :
9507   $as_echo_n "(cached) " >&6
9508 else
9509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h.  */
9511
9512 int
9513 main ()
9514 {
9515
9516   ;
9517   return 0;
9518 }
9519 _ACEOF
9520 if ac_fn_c_try_link "$LINENO"; then :
9521
9522   lt_aix_libpath_sed='
9523       /Import File Strings/,/^$/ {
9524           /^0/ {
9525               s/^0  *\([^ ]*\) *$/\1/
9526               p
9527           }
9528       }'
9529   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9530   # Check for a 64-bit object if we didn't find anything.
9531   if test -z "$lt_cv_aix_libpath_"; then
9532     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9533   fi
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext \
9536     conftest$ac_exeext conftest.$ac_ext
9537   if test -z "$lt_cv_aix_libpath_"; then
9538     lt_cv_aix_libpath_="/usr/lib:/lib"
9539   fi
9540
9541 fi
9542
9543   aix_libpath=$lt_cv_aix_libpath_
9544 fi
9545
9546          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9547           # Warning - without using the other run time loading flags,
9548           # -berok will link without error, but may produce a broken library.
9549           no_undefined_flag=' ${wl}-bernotok'
9550           allow_undefined_flag=' ${wl}-berok'
9551           if test "$with_gnu_ld" = yes; then
9552             # We only use this code for GNU lds that support --whole-archive.
9553             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9554           else
9555             # Exported symbols can be pulled into shared objects from archives
9556             whole_archive_flag_spec='$convenience'
9557           fi
9558           archive_cmds_need_lc=yes
9559           # This is similar to how AIX traditionally builds its shared libraries.
9560           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'
9561         fi
9562       fi
9563       ;;
9564
9565     amigaos*)
9566       case $host_cpu in
9567       powerpc)
9568             # see comment about AmigaOS4 .so support
9569             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570             archive_expsym_cmds=''
9571         ;;
9572       m68k)
9573             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)'
9574             hardcode_libdir_flag_spec='-L$libdir'
9575             hardcode_minus_L=yes
9576         ;;
9577       esac
9578       ;;
9579
9580     bsdi[45]*)
9581       export_dynamic_flag_spec=-rdynamic
9582       ;;
9583
9584     cygwin* | mingw* | pw32* | cegcc*)
9585       # When not using gcc, we currently assume that we are using
9586       # Microsoft Visual C++.
9587       # hardcode_libdir_flag_spec is actually meaningless, as there is
9588       # no search path for DLLs.
9589       case $cc_basename in
9590       cl*)
9591         # Native MSVC
9592         hardcode_libdir_flag_spec=' '
9593         allow_undefined_flag=unsupported
9594         always_export_symbols=yes
9595         file_list_spec='@'
9596         # Tell ltmain to make .lib files, not .a files.
9597         libext=lib
9598         # Tell ltmain to make .dll files, not .so files.
9599         shrext_cmds=".dll"
9600         # FIXME: Setting linknames here is a bad hack.
9601         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9602         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9603             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9604           else
9605             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9606           fi~
9607           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9608           linknames='
9609         # The linker will not automatically build a static lib if we build a DLL.
9610         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9611         enable_shared_with_static_runtimes=yes
9612         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9613         # Don't use ranlib
9614         old_postinstall_cmds='chmod 644 $oldlib'
9615         postlink_cmds='lt_outputfile="@OUTPUT@"~
9616           lt_tool_outputfile="@TOOL_OUTPUT@"~
9617           case $lt_outputfile in
9618             *.exe|*.EXE) ;;
9619             *)
9620               lt_outputfile="$lt_outputfile.exe"
9621               lt_tool_outputfile="$lt_tool_outputfile.exe"
9622               ;;
9623           esac~
9624           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9625             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9626             $RM "$lt_outputfile.manifest";
9627           fi'
9628         ;;
9629       *)
9630         # Assume MSVC wrapper
9631         hardcode_libdir_flag_spec=' '
9632         allow_undefined_flag=unsupported
9633         # Tell ltmain to make .lib files, not .a files.
9634         libext=lib
9635         # Tell ltmain to make .dll files, not .so files.
9636         shrext_cmds=".dll"
9637         # FIXME: Setting linknames here is a bad hack.
9638         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9639         # The linker will automatically build a .lib file if we build a DLL.
9640         old_archive_from_new_cmds='true'
9641         # FIXME: Should let the user specify the lib program.
9642         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9643         enable_shared_with_static_runtimes=yes
9644         ;;
9645       esac
9646       ;;
9647
9648     darwin* | rhapsody*)
9649
9650
9651   archive_cmds_need_lc=no
9652   hardcode_direct=no
9653   hardcode_automatic=yes
9654   hardcode_shlibpath_var=unsupported
9655   if test "$lt_cv_ld_force_load" = "yes"; then
9656     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\"`'
9657   else
9658     whole_archive_flag_spec=''
9659   fi
9660   link_all_deplibs=yes
9661   allow_undefined_flag="$_lt_dar_allow_undefined"
9662   case $cc_basename in
9663      ifort*) _lt_dar_can_shared=yes ;;
9664      *) _lt_dar_can_shared=$GCC ;;
9665   esac
9666   if test "$_lt_dar_can_shared" = "yes"; then
9667     output_verbose_link_cmd=func_echo_all
9668     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9669     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9670     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}"
9671     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}"
9672
9673   else
9674   ld_shlibs=no
9675   fi
9676
9677       ;;
9678
9679     dgux*)
9680       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681       hardcode_libdir_flag_spec='-L$libdir'
9682       hardcode_shlibpath_var=no
9683       ;;
9684
9685     freebsd1*)
9686       ld_shlibs=no
9687       ;;
9688
9689     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9690     # support.  Future versions do this automatically, but an explicit c++rt0.o
9691     # does not break anything, and helps significantly (at the cost of a little
9692     # extra space).
9693     freebsd2.2*)
9694       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9695       hardcode_libdir_flag_spec='-R$libdir'
9696       hardcode_direct=yes
9697       hardcode_shlibpath_var=no
9698       ;;
9699
9700     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9701     freebsd2*)
9702       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9703       hardcode_direct=yes
9704       hardcode_minus_L=yes
9705       hardcode_shlibpath_var=no
9706       ;;
9707
9708     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9709     freebsd* | dragonfly*)
9710       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9711       hardcode_libdir_flag_spec='-R$libdir'
9712       hardcode_direct=yes
9713       hardcode_shlibpath_var=no
9714       ;;
9715
9716     hpux9*)
9717       if test "$GCC" = yes; then
9718         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'
9719       else
9720         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'
9721       fi
9722       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9723       hardcode_libdir_separator=:
9724       hardcode_direct=yes
9725
9726       # hardcode_minus_L: Not really in the search PATH,
9727       # but as the default location of the library.
9728       hardcode_minus_L=yes
9729       export_dynamic_flag_spec='${wl}-E'
9730       ;;
9731
9732     hpux10*)
9733       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9734         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9735       else
9736         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9737       fi
9738       if test "$with_gnu_ld" = no; then
9739         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9740         hardcode_libdir_flag_spec_ld='+b $libdir'
9741         hardcode_libdir_separator=:
9742         hardcode_direct=yes
9743         hardcode_direct_absolute=yes
9744         export_dynamic_flag_spec='${wl}-E'
9745         # hardcode_minus_L: Not really in the search PATH,
9746         # but as the default location of the library.
9747         hardcode_minus_L=yes
9748       fi
9749       ;;
9750
9751     hpux11*)
9752       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9753         case $host_cpu in
9754         hppa*64*)
9755           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9756           ;;
9757         ia64*)
9758           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9759           ;;
9760         *)
9761           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9762           ;;
9763         esac
9764       else
9765         case $host_cpu in
9766         hppa*64*)
9767           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9768           ;;
9769         ia64*)
9770           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9771           ;;
9772         *)
9773
9774           # Older versions of the 11.00 compiler do not understand -b yet
9775           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9776           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9777 $as_echo_n "checking if $CC understands -b... " >&6; }
9778 if ${lt_cv_prog_compiler__b+:} false; then :
9779   $as_echo_n "(cached) " >&6
9780 else
9781   lt_cv_prog_compiler__b=no
9782    save_LDFLAGS="$LDFLAGS"
9783    LDFLAGS="$LDFLAGS -b"
9784    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9785    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9786      # The linker can only warn and ignore the option if not recognized
9787      # So say no if there are warnings
9788      if test -s conftest.err; then
9789        # Append any errors to the config.log.
9790        cat conftest.err 1>&5
9791        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9792        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9793        if diff conftest.exp conftest.er2 >/dev/null; then
9794          lt_cv_prog_compiler__b=yes
9795        fi
9796      else
9797        lt_cv_prog_compiler__b=yes
9798      fi
9799    fi
9800    $RM -r conftest*
9801    LDFLAGS="$save_LDFLAGS"
9802
9803 fi
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9805 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9806
9807 if test x"$lt_cv_prog_compiler__b" = xyes; then
9808     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9809 else
9810     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9811 fi
9812
9813           ;;
9814         esac
9815       fi
9816       if test "$with_gnu_ld" = no; then
9817         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9818         hardcode_libdir_separator=:
9819
9820         case $host_cpu in
9821         hppa*64*|ia64*)
9822           hardcode_direct=no
9823           hardcode_shlibpath_var=no
9824           ;;
9825         *)
9826           hardcode_direct=yes
9827           hardcode_direct_absolute=yes
9828           export_dynamic_flag_spec='${wl}-E'
9829
9830           # hardcode_minus_L: Not really in the search PATH,
9831           # but as the default location of the library.
9832           hardcode_minus_L=yes
9833           ;;
9834         esac
9835       fi
9836       ;;
9837
9838     irix5* | irix6* | nonstopux*)
9839       if test "$GCC" = yes; then
9840         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'
9841         # Try to use the -exported_symbol ld option, if it does not
9842         # work, assume that -exports_file does not work either and
9843         # implicitly export all symbols.
9844         # This should be the same for all languages, so no per-tag cache variable.
9845         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9846 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9847 if ${lt_cv_irix_exported_symbol+:} false; then :
9848   $as_echo_n "(cached) " >&6
9849 else
9850   save_LDFLAGS="$LDFLAGS"
9851            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9852            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h.  */
9854 int foo (void) { return 0; }
9855 _ACEOF
9856 if ac_fn_c_try_link "$LINENO"; then :
9857   lt_cv_irix_exported_symbol=yes
9858 else
9859   lt_cv_irix_exported_symbol=no
9860 fi
9861 rm -f core conftest.err conftest.$ac_objext \
9862     conftest$ac_exeext conftest.$ac_ext
9863            LDFLAGS="$save_LDFLAGS"
9864 fi
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9866 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9867         if test "$lt_cv_irix_exported_symbol" = yes; then
9868           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'
9869         fi
9870       else
9871         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'
9872         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'
9873       fi
9874       archive_cmds_need_lc='no'
9875       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9876       hardcode_libdir_separator=:
9877       inherit_rpath=yes
9878       link_all_deplibs=yes
9879       ;;
9880
9881     netbsd* | netbsdelf*-gnu)
9882       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9883         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9884       else
9885         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9886       fi
9887       hardcode_libdir_flag_spec='-R$libdir'
9888       hardcode_direct=yes
9889       hardcode_shlibpath_var=no
9890       ;;
9891
9892     newsos6)
9893       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9894       hardcode_direct=yes
9895       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9896       hardcode_libdir_separator=:
9897       hardcode_shlibpath_var=no
9898       ;;
9899
9900     *nto* | *qnx*)
9901       ;;
9902
9903     openbsd*)
9904       if test -f /usr/libexec/ld.so; then
9905         hardcode_direct=yes
9906         hardcode_shlibpath_var=no
9907         hardcode_direct_absolute=yes
9908         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9909           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9910           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9911           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9912           export_dynamic_flag_spec='${wl}-E'
9913         else
9914           case $host_os in
9915            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9916              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9917              hardcode_libdir_flag_spec='-R$libdir'
9918              ;;
9919            *)
9920              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9921              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9922              ;;
9923           esac
9924         fi
9925       else
9926         ld_shlibs=no
9927       fi
9928       ;;
9929
9930     os2*)
9931       hardcode_libdir_flag_spec='-L$libdir'
9932       hardcode_minus_L=yes
9933       allow_undefined_flag=unsupported
9934       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'
9935       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9936       ;;
9937
9938     osf3*)
9939       if test "$GCC" = yes; then
9940         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9941         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'
9942       else
9943         allow_undefined_flag=' -expect_unresolved \*'
9944         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'
9945       fi
9946       archive_cmds_need_lc='no'
9947       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9948       hardcode_libdir_separator=:
9949       ;;
9950
9951     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9952       if test "$GCC" = yes; then
9953         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9954         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'
9955         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9956       else
9957         allow_undefined_flag=' -expect_unresolved \*'
9958         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'
9959         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~
9960         $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'
9961
9962         # Both c and cxx compiler support -rpath directly
9963         hardcode_libdir_flag_spec='-rpath $libdir'
9964       fi
9965       archive_cmds_need_lc='no'
9966       hardcode_libdir_separator=:
9967       ;;
9968
9969     solaris*)
9970       no_undefined_flag=' -z defs'
9971       if test "$GCC" = yes; then
9972         wlarc='${wl}'
9973         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9974         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9975           $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'
9976       else
9977         case `$CC -V 2>&1` in
9978         *"Compilers 5.0"*)
9979           wlarc=''
9980           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9982           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9983           ;;
9984         *)
9985           wlarc='${wl}'
9986           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9987           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9988           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9989           ;;
9990         esac
9991       fi
9992       hardcode_libdir_flag_spec='-R$libdir'
9993       hardcode_shlibpath_var=no
9994       case $host_os in
9995       solaris2.[0-5] | solaris2.[0-5].*) ;;
9996       *)
9997         # The compiler driver will combine and reorder linker options,
9998         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9999         # but is careful enough not to reorder.
10000         # Supported since Solaris 2.6 (maybe 2.5.1?)
10001         if test "$GCC" = yes; then
10002           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10003         else
10004           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10005         fi
10006         ;;
10007       esac
10008       link_all_deplibs=yes
10009       ;;
10010
10011     sunos4*)
10012       if test "x$host_vendor" = xsequent; then
10013         # Use $CC to link under sequent, because it throws in some extra .o
10014         # files that make .init and .fini sections work.
10015         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10016       else
10017         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10018       fi
10019       hardcode_libdir_flag_spec='-L$libdir'
10020       hardcode_direct=yes
10021       hardcode_minus_L=yes
10022       hardcode_shlibpath_var=no
10023       ;;
10024
10025     sysv4)
10026       case $host_vendor in
10027         sni)
10028           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029           hardcode_direct=yes # is this really true???
10030         ;;
10031         siemens)
10032           ## LD is ld it makes a PLAMLIB
10033           ## CC just makes a GrossModule.
10034           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10035           reload_cmds='$CC -r -o $output$reload_objs'
10036           hardcode_direct=no
10037         ;;
10038         motorola)
10039           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10041         ;;
10042       esac
10043       runpath_var='LD_RUN_PATH'
10044       hardcode_shlibpath_var=no
10045       ;;
10046
10047     sysv4.3*)
10048       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049       hardcode_shlibpath_var=no
10050       export_dynamic_flag_spec='-Bexport'
10051       ;;
10052
10053     sysv4*MP*)
10054       if test -d /usr/nec; then
10055         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056         hardcode_shlibpath_var=no
10057         runpath_var=LD_RUN_PATH
10058         hardcode_runpath_var=yes
10059         ld_shlibs=yes
10060       fi
10061       ;;
10062
10063     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10064       no_undefined_flag='${wl}-z,text'
10065       archive_cmds_need_lc=no
10066       hardcode_shlibpath_var=no
10067       runpath_var='LD_RUN_PATH'
10068
10069       if test "$GCC" = yes; then
10070         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10071         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10072       else
10073         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10074         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10075       fi
10076       ;;
10077
10078     sysv5* | sco3.2v5* | sco5v6*)
10079       # Note: We can NOT use -z defs as we might desire, because we do not
10080       # link with -lc, and that would cause any symbols used from libc to
10081       # always be unresolved, which means just about no library would
10082       # ever link correctly.  If we're not using GNU ld we use -z text
10083       # though, which does catch some bad symbols but isn't as heavy-handed
10084       # as -z defs.
10085       no_undefined_flag='${wl}-z,text'
10086       allow_undefined_flag='${wl}-z,nodefs'
10087       archive_cmds_need_lc=no
10088       hardcode_shlibpath_var=no
10089       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10090       hardcode_libdir_separator=':'
10091       link_all_deplibs=yes
10092       export_dynamic_flag_spec='${wl}-Bexport'
10093       runpath_var='LD_RUN_PATH'
10094
10095       if test "$GCC" = yes; then
10096         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098       else
10099         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10101       fi
10102       ;;
10103
10104     uts4*)
10105       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10106       hardcode_libdir_flag_spec='-L$libdir'
10107       hardcode_shlibpath_var=no
10108       ;;
10109
10110     *)
10111       ld_shlibs=no
10112       ;;
10113     esac
10114
10115     if test x$host_vendor = xsni; then
10116       case $host in
10117       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10118         export_dynamic_flag_spec='${wl}-Blargedynsym'
10119         ;;
10120       esac
10121     fi
10122   fi
10123
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10125 $as_echo "$ld_shlibs" >&6; }
10126 test "$ld_shlibs" = no && can_build_shared=no
10127
10128 with_gnu_ld=$with_gnu_ld
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144 #
10145 # Do we need to explicitly link libc?
10146 #
10147 case "x$archive_cmds_need_lc" in
10148 x|xyes)
10149   # Assume -lc should be added
10150   archive_cmds_need_lc=yes
10151
10152   if test "$enable_shared" = yes && test "$GCC" = yes; then
10153     case $archive_cmds in
10154     *'~'*)
10155       # FIXME: we may have to deal with multi-command sequences.
10156       ;;
10157     '$CC '*)
10158       # Test whether the compiler implicitly links with -lc since on some
10159       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10160       # to ld, don't add -lc before -lgcc.
10161       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10162 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10163 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10164   $as_echo_n "(cached) " >&6
10165 else
10166   $RM conftest*
10167         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10168
10169         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10170   (eval $ac_compile) 2>&5
10171   ac_status=$?
10172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10173   test $ac_status = 0; } 2>conftest.err; then
10174           soname=conftest
10175           lib=conftest
10176           libobjs=conftest.$ac_objext
10177           deplibs=
10178           wl=$lt_prog_compiler_wl
10179           pic_flag=$lt_prog_compiler_pic
10180           compiler_flags=-v
10181           linker_flags=-v
10182           verstring=
10183           output_objdir=.
10184           libname=conftest
10185           lt_save_allow_undefined_flag=$allow_undefined_flag
10186           allow_undefined_flag=
10187           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10188   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10189   ac_status=$?
10190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10191   test $ac_status = 0; }
10192           then
10193             lt_cv_archive_cmds_need_lc=no
10194           else
10195             lt_cv_archive_cmds_need_lc=yes
10196           fi
10197           allow_undefined_flag=$lt_save_allow_undefined_flag
10198         else
10199           cat conftest.err 1>&5
10200         fi
10201         $RM conftest*
10202
10203 fi
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10205 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10206       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10207       ;;
10208     esac
10209   fi
10210   ;;
10211 esac
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10370 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10371
10372 if test "$GCC" = yes; then
10373   case $host_os in
10374     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10375     *) lt_awk_arg="/^libraries:/" ;;
10376   esac
10377   case $host_os in
10378     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10379     *) lt_sed_strip_eq="s,=/,/,g" ;;
10380   esac
10381   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10382   case $lt_search_path_spec in
10383   *\;*)
10384     # if the path contains ";" then we assume it to be the separator
10385     # otherwise default to the standard path separator (i.e. ":") - it is
10386     # assumed that no part of a normal pathname contains ";" but that should
10387     # okay in the real world where ";" in dirpaths is itself problematic.
10388     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10389     ;;
10390   *)
10391     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10392     ;;
10393   esac
10394   # Ok, now we have the path, separated by spaces, we can step through it
10395   # and add multilib dir if necessary.
10396   lt_tmp_lt_search_path_spec=
10397   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10398   for lt_sys_path in $lt_search_path_spec; do
10399     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10400       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10401     else
10402       test -d "$lt_sys_path" && \
10403         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10404     fi
10405   done
10406   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10407 BEGIN {RS=" "; FS="/|\n";} {
10408   lt_foo="";
10409   lt_count=0;
10410   for (lt_i = NF; lt_i > 0; lt_i--) {
10411     if ($lt_i != "" && $lt_i != ".") {
10412       if ($lt_i == "..") {
10413         lt_count++;
10414       } else {
10415         if (lt_count == 0) {
10416           lt_foo="/" $lt_i lt_foo;
10417         } else {
10418           lt_count--;
10419         }
10420       }
10421     }
10422   }
10423   if (lt_foo != "") { lt_freq[lt_foo]++; }
10424   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10425 }'`
10426   # AWK program above erroneously prepends '/' to C:/dos/paths
10427   # for these hosts.
10428   case $host_os in
10429     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10430       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10431   esac
10432   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10433 else
10434   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10435 fi
10436 library_names_spec=
10437 libname_spec='lib$name'
10438 soname_spec=
10439 shrext_cmds=".so"
10440 postinstall_cmds=
10441 postuninstall_cmds=
10442 finish_cmds=
10443 finish_eval=
10444 shlibpath_var=
10445 shlibpath_overrides_runpath=unknown
10446 version_type=none
10447 dynamic_linker="$host_os ld.so"
10448 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10449 need_lib_prefix=unknown
10450 hardcode_into_libs=no
10451
10452 # when you set need_version to no, make sure it does not cause -set_version
10453 # flags to be left without arguments
10454 need_version=unknown
10455
10456 case $host_os in
10457 aix3*)
10458   version_type=linux
10459   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10460   shlibpath_var=LIBPATH
10461
10462   # AIX 3 has no versioning support, so we append a major version to the name.
10463   soname_spec='${libname}${release}${shared_ext}$major'
10464   ;;
10465
10466 aix[4-9]*)
10467   version_type=linux
10468   need_lib_prefix=no
10469   need_version=no
10470   hardcode_into_libs=yes
10471   if test "$host_cpu" = ia64; then
10472     # AIX 5 supports IA64
10473     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10474     shlibpath_var=LD_LIBRARY_PATH
10475   else
10476     # With GCC up to 2.95.x, collect2 would create an import file
10477     # for dependence libraries.  The import file would start with
10478     # the line `#! .'.  This would cause the generated library to
10479     # depend on `.', always an invalid library.  This was fixed in
10480     # development snapshots of GCC prior to 3.0.
10481     case $host_os in
10482       aix4 | aix4.[01] | aix4.[01].*)
10483       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10484            echo ' yes '
10485            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10486         :
10487       else
10488         can_build_shared=no
10489       fi
10490       ;;
10491     esac
10492     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10493     # soname into executable. Probably we can add versioning support to
10494     # collect2, so additional links can be useful in future.
10495     if test "$aix_use_runtimelinking" = yes; then
10496       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10497       # instead of lib<name>.a to let people know that these are not
10498       # typical AIX shared libraries.
10499       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500     else
10501       # We preserve .a as extension for shared libraries through AIX4.2
10502       # and later when we are not doing run time linking.
10503       library_names_spec='${libname}${release}.a $libname.a'
10504       soname_spec='${libname}${release}${shared_ext}$major'
10505     fi
10506     shlibpath_var=LIBPATH
10507   fi
10508   ;;
10509
10510 amigaos*)
10511   case $host_cpu in
10512   powerpc)
10513     # Since July 2007 AmigaOS4 officially supports .so libraries.
10514     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10515     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516     ;;
10517   m68k)
10518     library_names_spec='$libname.ixlibrary $libname.a'
10519     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10520     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'
10521     ;;
10522   esac
10523   ;;
10524
10525 beos*)
10526   library_names_spec='${libname}${shared_ext}'
10527   dynamic_linker="$host_os ld.so"
10528   shlibpath_var=LIBRARY_PATH
10529   ;;
10530
10531 bsdi[45]*)
10532   version_type=linux
10533   need_version=no
10534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535   soname_spec='${libname}${release}${shared_ext}$major'
10536   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10537   shlibpath_var=LD_LIBRARY_PATH
10538   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10539   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10540   # the default ld.so.conf also contains /usr/contrib/lib and
10541   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10542   # libtool to hard-code these into programs
10543   ;;
10544
10545 cygwin* | mingw* | pw32* | cegcc*)
10546   version_type=windows
10547   shrext_cmds=".dll"
10548   need_version=no
10549   need_lib_prefix=no
10550
10551   case $GCC,$cc_basename in
10552   yes,*)
10553     # gcc
10554     library_names_spec='$libname.dll.a'
10555     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10556     postinstall_cmds='base_file=`basename \${file}`~
10557       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10558       dldir=$destdir/`dirname \$dlpath`~
10559       test -d \$dldir || mkdir -p \$dldir~
10560       $install_prog $dir/$dlname \$dldir/$dlname~
10561       chmod a+x \$dldir/$dlname~
10562       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10563         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10564       fi'
10565     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10566       dlpath=$dir/\$dldll~
10567        $RM \$dlpath'
10568     shlibpath_overrides_runpath=yes
10569
10570     case $host_os in
10571     cygwin*)
10572       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10573       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10574
10575       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10576       ;;
10577     mingw* | cegcc*)
10578       # MinGW DLLs use traditional 'lib' prefix
10579       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10580       ;;
10581     pw32*)
10582       # pw32 DLLs use 'pw' prefix rather than 'lib'
10583       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10584       ;;
10585     esac
10586     dynamic_linker='Win32 ld.exe'
10587     ;;
10588
10589   *,cl*)
10590     # Native MSVC
10591     libname_spec='$name'
10592     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10593     library_names_spec='${libname}.dll.lib'
10594
10595     case $build_os in
10596     mingw*)
10597       sys_lib_search_path_spec=
10598       lt_save_ifs=$IFS
10599       IFS=';'
10600       for lt_path in $LIB
10601       do
10602         IFS=$lt_save_ifs
10603         # Let DOS variable expansion print the short 8.3 style file name.
10604         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10605         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10606       done
10607       IFS=$lt_save_ifs
10608       # Convert to MSYS style.
10609       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10610       ;;
10611     cygwin*)
10612       # Convert to unix form, then to dos form, then back to unix form
10613       # but this time dos style (no spaces!) so that the unix form looks
10614       # like /cygdrive/c/PROGRA~1:/cygdr...
10615       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10616       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10617       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10618       ;;
10619     *)
10620       sys_lib_search_path_spec="$LIB"
10621       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10622         # It is most probably a Windows format PATH.
10623         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10624       else
10625         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10626       fi
10627       # FIXME: find the short name or the path components, as spaces are
10628       # common. (e.g. "Program Files" -> "PROGRA~1")
10629       ;;
10630     esac
10631
10632     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10633     postinstall_cmds='base_file=`basename \${file}`~
10634       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10635       dldir=$destdir/`dirname \$dlpath`~
10636       test -d \$dldir || mkdir -p \$dldir~
10637       $install_prog $dir/$dlname \$dldir/$dlname'
10638     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10639       dlpath=$dir/\$dldll~
10640        $RM \$dlpath'
10641     shlibpath_overrides_runpath=yes
10642     dynamic_linker='Win32 link.exe'
10643     ;;
10644
10645   *)
10646     # Assume MSVC wrapper
10647     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10648     dynamic_linker='Win32 ld.exe'
10649     ;;
10650   esac
10651   # FIXME: first we should search . and the directory the executable is in
10652   shlibpath_var=PATH
10653   ;;
10654
10655 darwin* | rhapsody*)
10656   dynamic_linker="$host_os dyld"
10657   version_type=darwin
10658   need_lib_prefix=no
10659   need_version=no
10660   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10661   soname_spec='${libname}${release}${major}$shared_ext'
10662   shlibpath_overrides_runpath=yes
10663   shlibpath_var=DYLD_LIBRARY_PATH
10664   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10665
10666   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10667   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10668   ;;
10669
10670 dgux*)
10671   version_type=linux
10672   need_lib_prefix=no
10673   need_version=no
10674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10675   soname_spec='${libname}${release}${shared_ext}$major'
10676   shlibpath_var=LD_LIBRARY_PATH
10677   ;;
10678
10679 freebsd1*)
10680   dynamic_linker=no
10681   ;;
10682
10683 freebsd* | dragonfly*)
10684   # DragonFly does not have aout.  When/if they implement a new
10685   # versioning mechanism, adjust this.
10686   if test -x /usr/bin/objformat; then
10687     objformat=`/usr/bin/objformat`
10688   else
10689     case $host_os in
10690     freebsd[123]*) objformat=aout ;;
10691     *) objformat=elf ;;
10692     esac
10693   fi
10694   version_type=freebsd-$objformat
10695   case $version_type in
10696     freebsd-elf*)
10697       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10698       need_version=no
10699       need_lib_prefix=no
10700       ;;
10701     freebsd-*)
10702       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10703       need_version=yes
10704       ;;
10705   esac
10706   shlibpath_var=LD_LIBRARY_PATH
10707   case $host_os in
10708   freebsd2*)
10709     shlibpath_overrides_runpath=yes
10710     ;;
10711   freebsd3.[01]* | freebsdelf3.[01]*)
10712     shlibpath_overrides_runpath=yes
10713     hardcode_into_libs=yes
10714     ;;
10715   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10716   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10717     shlibpath_overrides_runpath=no
10718     hardcode_into_libs=yes
10719     ;;
10720   *) # from 4.6 on, and DragonFly
10721     shlibpath_overrides_runpath=yes
10722     hardcode_into_libs=yes
10723     ;;
10724   esac
10725   ;;
10726
10727 gnu*)
10728   version_type=linux
10729   need_lib_prefix=no
10730   need_version=no
10731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10732   soname_spec='${libname}${release}${shared_ext}$major'
10733   shlibpath_var=LD_LIBRARY_PATH
10734   shlibpath_overrides_runpath=no
10735   hardcode_into_libs=yes
10736   ;;
10737
10738 haiku*)
10739   version_type=linux
10740   need_lib_prefix=no
10741   need_version=no
10742   dynamic_linker="$host_os runtime_loader"
10743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10744   soname_spec='${libname}${release}${shared_ext}$major'
10745   shlibpath_var=LIBRARY_PATH
10746   shlibpath_overrides_runpath=yes
10747   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10748   hardcode_into_libs=yes
10749   ;;
10750
10751 hpux9* | hpux10* | hpux11*)
10752   # Give a soname corresponding to the major version so that dld.sl refuses to
10753   # link against other versions.
10754   version_type=sunos
10755   need_lib_prefix=no
10756   need_version=no
10757   case $host_cpu in
10758   ia64*)
10759     shrext_cmds='.so'
10760     hardcode_into_libs=yes
10761     dynamic_linker="$host_os dld.so"
10762     shlibpath_var=LD_LIBRARY_PATH
10763     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765     soname_spec='${libname}${release}${shared_ext}$major'
10766     if test "X$HPUX_IA64_MODE" = X32; then
10767       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10768     else
10769       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10770     fi
10771     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10772     ;;
10773   hppa*64*)
10774     shrext_cmds='.sl'
10775     hardcode_into_libs=yes
10776     dynamic_linker="$host_os dld.sl"
10777     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10778     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780     soname_spec='${libname}${release}${shared_ext}$major'
10781     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10782     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10783     ;;
10784   *)
10785     shrext_cmds='.sl'
10786     dynamic_linker="$host_os dld.sl"
10787     shlibpath_var=SHLIB_PATH
10788     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790     soname_spec='${libname}${release}${shared_ext}$major'
10791     ;;
10792   esac
10793   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10794   postinstall_cmds='chmod 555 $lib'
10795   # or fails outright, so override atomically:
10796   install_override_mode=555
10797   ;;
10798
10799 interix[3-9]*)
10800   version_type=linux
10801   need_lib_prefix=no
10802   need_version=no
10803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10804   soname_spec='${libname}${release}${shared_ext}$major'
10805   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10806   shlibpath_var=LD_LIBRARY_PATH
10807   shlibpath_overrides_runpath=no
10808   hardcode_into_libs=yes
10809   ;;
10810
10811 irix5* | irix6* | nonstopux*)
10812   case $host_os in
10813     nonstopux*) version_type=nonstopux ;;
10814     *)
10815         if test "$lt_cv_prog_gnu_ld" = yes; then
10816                 version_type=linux
10817         else
10818                 version_type=irix
10819         fi ;;
10820   esac
10821   need_lib_prefix=no
10822   need_version=no
10823   soname_spec='${libname}${release}${shared_ext}$major'
10824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10825   case $host_os in
10826   irix5* | nonstopux*)
10827     libsuff= shlibsuff=
10828     ;;
10829   *)
10830     case $LD in # libtool.m4 will add one of these switches to LD
10831     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10832       libsuff= shlibsuff= libmagic=32-bit;;
10833     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10834       libsuff=32 shlibsuff=N32 libmagic=N32;;
10835     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10836       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10837     *) libsuff= shlibsuff= libmagic=never-match;;
10838     esac
10839     ;;
10840   esac
10841   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10842   shlibpath_overrides_runpath=no
10843   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10844   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10845   hardcode_into_libs=yes
10846   ;;
10847
10848 # No shared lib support for Linux oldld, aout, or coff.
10849 linux*oldld* | linux*aout* | linux*coff*)
10850   dynamic_linker=no
10851   ;;
10852
10853 # This must be Linux ELF.
10854 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10855   version_type=linux
10856   need_lib_prefix=no
10857   need_version=no
10858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859   soname_spec='${libname}${release}${shared_ext}$major'
10860   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10861   shlibpath_var=LD_LIBRARY_PATH
10862   shlibpath_overrides_runpath=no
10863
10864   # Some binutils ld are patched to set DT_RUNPATH
10865   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10866   $as_echo_n "(cached) " >&6
10867 else
10868   lt_cv_shlibpath_overrides_runpath=no
10869     save_LDFLAGS=$LDFLAGS
10870     save_libdir=$libdir
10871     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10872          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10873     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h.  */
10875
10876 int
10877 main ()
10878 {
10879
10880   ;
10881   return 0;
10882 }
10883 _ACEOF
10884 if ac_fn_c_try_link "$LINENO"; then :
10885   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10886   lt_cv_shlibpath_overrides_runpath=yes
10887 fi
10888 fi
10889 rm -f core conftest.err conftest.$ac_objext \
10890     conftest$ac_exeext conftest.$ac_ext
10891     LDFLAGS=$save_LDFLAGS
10892     libdir=$save_libdir
10893
10894 fi
10895
10896   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10897
10898   # This implies no fast_install, which is unacceptable.
10899   # Some rework will be needed to allow for fast_install
10900   # before this can be enabled.
10901   hardcode_into_libs=yes
10902
10903   # Append ld.so.conf contents to the search path
10904   if test -f /etc/ld.so.conf; then
10905     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' ' '`
10906     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10907   fi
10908
10909   # We used to test for /lib/ld.so.1 and disable shared libraries on
10910   # powerpc, because MkLinux only supported shared libraries with the
10911   # GNU dynamic linker.  Since this was broken with cross compilers,
10912   # most powerpc-linux boxes support dynamic linking these days and
10913   # people can always --disable-shared, the test was removed, and we
10914   # assume the GNU/Linux dynamic linker is in use.
10915   dynamic_linker='GNU/Linux ld.so'
10916   ;;
10917
10918 netbsdelf*-gnu)
10919   version_type=linux
10920   need_lib_prefix=no
10921   need_version=no
10922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10923   soname_spec='${libname}${release}${shared_ext}$major'
10924   shlibpath_var=LD_LIBRARY_PATH
10925   shlibpath_overrides_runpath=no
10926   hardcode_into_libs=yes
10927   dynamic_linker='NetBSD ld.elf_so'
10928   ;;
10929
10930 netbsd*)
10931   version_type=sunos
10932   need_lib_prefix=no
10933   need_version=no
10934   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10935     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10936     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10937     dynamic_linker='NetBSD (a.out) ld.so'
10938   else
10939     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10940     soname_spec='${libname}${release}${shared_ext}$major'
10941     dynamic_linker='NetBSD ld.elf_so'
10942   fi
10943   shlibpath_var=LD_LIBRARY_PATH
10944   shlibpath_overrides_runpath=yes
10945   hardcode_into_libs=yes
10946   ;;
10947
10948 newsos6)
10949   version_type=linux
10950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951   shlibpath_var=LD_LIBRARY_PATH
10952   shlibpath_overrides_runpath=yes
10953   ;;
10954
10955 *nto* | *qnx*)
10956   version_type=qnx
10957   need_lib_prefix=no
10958   need_version=no
10959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960   soname_spec='${libname}${release}${shared_ext}$major'
10961   shlibpath_var=LD_LIBRARY_PATH
10962   shlibpath_overrides_runpath=no
10963   hardcode_into_libs=yes
10964   dynamic_linker='ldqnx.so'
10965   ;;
10966
10967 openbsd*)
10968   version_type=sunos
10969   sys_lib_dlsearch_path_spec="/usr/lib"
10970   need_lib_prefix=no
10971   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10972   case $host_os in
10973     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10974     *)                          need_version=no  ;;
10975   esac
10976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10977   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10978   shlibpath_var=LD_LIBRARY_PATH
10979   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10980     case $host_os in
10981       openbsd2.[89] | openbsd2.[89].*)
10982         shlibpath_overrides_runpath=no
10983         ;;
10984       *)
10985         shlibpath_overrides_runpath=yes
10986         ;;
10987       esac
10988   else
10989     shlibpath_overrides_runpath=yes
10990   fi
10991   ;;
10992
10993 os2*)
10994   libname_spec='$name'
10995   shrext_cmds=".dll"
10996   need_lib_prefix=no
10997   library_names_spec='$libname${shared_ext} $libname.a'
10998   dynamic_linker='OS/2 ld.exe'
10999   shlibpath_var=LIBPATH
11000   ;;
11001
11002 osf3* | osf4* | osf5*)
11003   version_type=osf
11004   need_lib_prefix=no
11005   need_version=no
11006   soname_spec='${libname}${release}${shared_ext}$major'
11007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008   shlibpath_var=LD_LIBRARY_PATH
11009   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11010   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11011   ;;
11012
11013 rdos*)
11014   dynamic_linker=no
11015   ;;
11016
11017 solaris*)
11018   version_type=linux
11019   need_lib_prefix=no
11020   need_version=no
11021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022   soname_spec='${libname}${release}${shared_ext}$major'
11023   shlibpath_var=LD_LIBRARY_PATH
11024   shlibpath_overrides_runpath=yes
11025   hardcode_into_libs=yes
11026   # ldd complains unless libraries are executable
11027   postinstall_cmds='chmod +x $lib'
11028   ;;
11029
11030 sunos4*)
11031   version_type=sunos
11032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11033   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11034   shlibpath_var=LD_LIBRARY_PATH
11035   shlibpath_overrides_runpath=yes
11036   if test "$with_gnu_ld" = yes; then
11037     need_lib_prefix=no
11038   fi
11039   need_version=yes
11040   ;;
11041
11042 sysv4 | sysv4.3*)
11043   version_type=linux
11044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045   soname_spec='${libname}${release}${shared_ext}$major'
11046   shlibpath_var=LD_LIBRARY_PATH
11047   case $host_vendor in
11048     sni)
11049       shlibpath_overrides_runpath=no
11050       need_lib_prefix=no
11051       runpath_var=LD_RUN_PATH
11052       ;;
11053     siemens)
11054       need_lib_prefix=no
11055       ;;
11056     motorola)
11057       need_lib_prefix=no
11058       need_version=no
11059       shlibpath_overrides_runpath=no
11060       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11061       ;;
11062   esac
11063   ;;
11064
11065 sysv4*MP*)
11066   if test -d /usr/nec ;then
11067     version_type=linux
11068     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11069     soname_spec='$libname${shared_ext}.$major'
11070     shlibpath_var=LD_LIBRARY_PATH
11071   fi
11072   ;;
11073
11074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11075   version_type=freebsd-elf
11076   need_lib_prefix=no
11077   need_version=no
11078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11079   soname_spec='${libname}${release}${shared_ext}$major'
11080   shlibpath_var=LD_LIBRARY_PATH
11081   shlibpath_overrides_runpath=yes
11082   hardcode_into_libs=yes
11083   if test "$with_gnu_ld" = yes; then
11084     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11085   else
11086     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11087     case $host_os in
11088       sco3.2v5*)
11089         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11090         ;;
11091     esac
11092   fi
11093   sys_lib_dlsearch_path_spec='/usr/lib'
11094   ;;
11095
11096 tpf*)
11097   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11098   version_type=linux
11099   need_lib_prefix=no
11100   need_version=no
11101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102   shlibpath_var=LD_LIBRARY_PATH
11103   shlibpath_overrides_runpath=no
11104   hardcode_into_libs=yes
11105   ;;
11106
11107 uts4*)
11108   version_type=linux
11109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110   soname_spec='${libname}${release}${shared_ext}$major'
11111   shlibpath_var=LD_LIBRARY_PATH
11112   ;;
11113
11114 *)
11115   dynamic_linker=no
11116   ;;
11117 esac
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11119 $as_echo "$dynamic_linker" >&6; }
11120 test "$dynamic_linker" = no && can_build_shared=no
11121
11122 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11123 if test "$GCC" = yes; then
11124   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11125 fi
11126
11127 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11128   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11129 fi
11130 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11131   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11132 fi
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11226 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11227 hardcode_action=
11228 if test -n "$hardcode_libdir_flag_spec" ||
11229    test -n "$runpath_var" ||
11230    test "X$hardcode_automatic" = "Xyes" ; then
11231
11232   # We can hardcode non-existent directories.
11233   if test "$hardcode_direct" != no &&
11234      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11235      # have to relink, otherwise we might link with an installed library
11236      # when we should be linking with a yet-to-be-installed one
11237      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11238      test "$hardcode_minus_L" != no; then
11239     # Linking always hardcodes the temporary library directory.
11240     hardcode_action=relink
11241   else
11242     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11243     hardcode_action=immediate
11244   fi
11245 else
11246   # We cannot hardcode anything, or else we can only hardcode existing
11247   # directories.
11248   hardcode_action=unsupported
11249 fi
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11251 $as_echo "$hardcode_action" >&6; }
11252
11253 if test "$hardcode_action" = relink ||
11254    test "$inherit_rpath" = yes; then
11255   # Fast installation is not supported
11256   enable_fast_install=no
11257 elif test "$shlibpath_overrides_runpath" = yes ||
11258      test "$enable_shared" = no; then
11259   # Fast installation is not necessary
11260   enable_fast_install=needless
11261 fi
11262
11263
11264
11265
11266
11267
11268   if test "x$enable_dlopen" != xyes; then
11269   enable_dlopen=unknown
11270   enable_dlopen_self=unknown
11271   enable_dlopen_self_static=unknown
11272 else
11273   lt_cv_dlopen=no
11274   lt_cv_dlopen_libs=
11275
11276   case $host_os in
11277   beos*)
11278     lt_cv_dlopen="load_add_on"
11279     lt_cv_dlopen_libs=
11280     lt_cv_dlopen_self=yes
11281     ;;
11282
11283   mingw* | pw32* | cegcc*)
11284     lt_cv_dlopen="LoadLibrary"
11285     lt_cv_dlopen_libs=
11286     ;;
11287
11288   cygwin*)
11289     lt_cv_dlopen="dlopen"
11290     lt_cv_dlopen_libs=
11291     ;;
11292
11293   darwin*)
11294   # if libdl is installed we need to link against it
11295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11296 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11297 if ${ac_cv_lib_dl_dlopen+:} false; then :
11298   $as_echo_n "(cached) " >&6
11299 else
11300   ac_check_lib_save_LIBS=$LIBS
11301 LIBS="-ldl  $LIBS"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h.  */
11304
11305 /* Override any GCC internal prototype to avoid an error.
11306    Use char because int might match the return type of a GCC
11307    builtin and then its argument prototype would still apply.  */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char dlopen ();
11312 int
11313 main ()
11314 {
11315 return dlopen ();
11316   ;
11317   return 0;
11318 }
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11321   ac_cv_lib_dl_dlopen=yes
11322 else
11323   ac_cv_lib_dl_dlopen=no
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext \
11326     conftest$ac_exeext conftest.$ac_ext
11327 LIBS=$ac_check_lib_save_LIBS
11328 fi
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11330 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11331 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11332   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11333 else
11334
11335     lt_cv_dlopen="dyld"
11336     lt_cv_dlopen_libs=
11337     lt_cv_dlopen_self=yes
11338
11339 fi
11340
11341     ;;
11342
11343   *)
11344     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11345 if test "x$ac_cv_func_shl_load" = xyes; then :
11346   lt_cv_dlopen="shl_load"
11347 else
11348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11349 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11350 if ${ac_cv_lib_dld_shl_load+:} false; then :
11351   $as_echo_n "(cached) " >&6
11352 else
11353   ac_check_lib_save_LIBS=$LIBS
11354 LIBS="-ldld  $LIBS"
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h.  */
11357
11358 /* Override any GCC internal prototype to avoid an error.
11359    Use char because int might match the return type of a GCC
11360    builtin and then its argument prototype would still apply.  */
11361 #ifdef __cplusplus
11362 extern "C"
11363 #endif
11364 char shl_load ();
11365 int
11366 main ()
11367 {
11368 return shl_load ();
11369   ;
11370   return 0;
11371 }
11372 _ACEOF
11373 if ac_fn_c_try_link "$LINENO"; then :
11374   ac_cv_lib_dld_shl_load=yes
11375 else
11376   ac_cv_lib_dld_shl_load=no
11377 fi
11378 rm -f core conftest.err conftest.$ac_objext \
11379     conftest$ac_exeext conftest.$ac_ext
11380 LIBS=$ac_check_lib_save_LIBS
11381 fi
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11383 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11384 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11385   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11386 else
11387   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11388 if test "x$ac_cv_func_dlopen" = xyes; then :
11389   lt_cv_dlopen="dlopen"
11390 else
11391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11392 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11393 if ${ac_cv_lib_dl_dlopen+:} false; then :
11394   $as_echo_n "(cached) " >&6
11395 else
11396   ac_check_lib_save_LIBS=$LIBS
11397 LIBS="-ldl  $LIBS"
11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h.  */
11400
11401 /* Override any GCC internal prototype to avoid an error.
11402    Use char because int might match the return type of a GCC
11403    builtin and then its argument prototype would still apply.  */
11404 #ifdef __cplusplus
11405 extern "C"
11406 #endif
11407 char dlopen ();
11408 int
11409 main ()
11410 {
11411 return dlopen ();
11412   ;
11413   return 0;
11414 }
11415 _ACEOF
11416 if ac_fn_c_try_link "$LINENO"; then :
11417   ac_cv_lib_dl_dlopen=yes
11418 else
11419   ac_cv_lib_dl_dlopen=no
11420 fi
11421 rm -f core conftest.err conftest.$ac_objext \
11422     conftest$ac_exeext conftest.$ac_ext
11423 LIBS=$ac_check_lib_save_LIBS
11424 fi
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11426 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11427 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11428   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11429 else
11430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11431 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11432 if ${ac_cv_lib_svld_dlopen+:} false; then :
11433   $as_echo_n "(cached) " >&6
11434 else
11435   ac_check_lib_save_LIBS=$LIBS
11436 LIBS="-lsvld  $LIBS"
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h.  */
11439
11440 /* Override any GCC internal prototype to avoid an error.
11441    Use char because int might match the return type of a GCC
11442    builtin and then its argument prototype would still apply.  */
11443 #ifdef __cplusplus
11444 extern "C"
11445 #endif
11446 char dlopen ();
11447 int
11448 main ()
11449 {
11450 return dlopen ();
11451   ;
11452   return 0;
11453 }
11454 _ACEOF
11455 if ac_fn_c_try_link "$LINENO"; then :
11456   ac_cv_lib_svld_dlopen=yes
11457 else
11458   ac_cv_lib_svld_dlopen=no
11459 fi
11460 rm -f core conftest.err conftest.$ac_objext \
11461     conftest$ac_exeext conftest.$ac_ext
11462 LIBS=$ac_check_lib_save_LIBS
11463 fi
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11465 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11466 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11467   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11468 else
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11470 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11471 if ${ac_cv_lib_dld_dld_link+:} false; then :
11472   $as_echo_n "(cached) " >&6
11473 else
11474   ac_check_lib_save_LIBS=$LIBS
11475 LIBS="-ldld  $LIBS"
11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h.  */
11478
11479 /* Override any GCC internal prototype to avoid an error.
11480    Use char because int might match the return type of a GCC
11481    builtin and then its argument prototype would still apply.  */
11482 #ifdef __cplusplus
11483 extern "C"
11484 #endif
11485 char dld_link ();
11486 int
11487 main ()
11488 {
11489 return dld_link ();
11490   ;
11491   return 0;
11492 }
11493 _ACEOF
11494 if ac_fn_c_try_link "$LINENO"; then :
11495   ac_cv_lib_dld_dld_link=yes
11496 else
11497   ac_cv_lib_dld_dld_link=no
11498 fi
11499 rm -f core conftest.err conftest.$ac_objext \
11500     conftest$ac_exeext conftest.$ac_ext
11501 LIBS=$ac_check_lib_save_LIBS
11502 fi
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11504 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11505 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11506   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11507 fi
11508
11509
11510 fi
11511
11512
11513 fi
11514
11515
11516 fi
11517
11518
11519 fi
11520
11521
11522 fi
11523
11524     ;;
11525   esac
11526
11527   if test "x$lt_cv_dlopen" != xno; then
11528     enable_dlopen=yes
11529   else
11530     enable_dlopen=no
11531   fi
11532
11533   case $lt_cv_dlopen in
11534   dlopen)
11535     save_CPPFLAGS="$CPPFLAGS"
11536     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11537
11538     save_LDFLAGS="$LDFLAGS"
11539     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11540
11541     save_LIBS="$LIBS"
11542     LIBS="$lt_cv_dlopen_libs $LIBS"
11543
11544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11545 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11546 if ${lt_cv_dlopen_self+:} false; then :
11547   $as_echo_n "(cached) " >&6
11548 else
11549           if test "$cross_compiling" = yes; then :
11550   lt_cv_dlopen_self=cross
11551 else
11552   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11553   lt_status=$lt_dlunknown
11554   cat > conftest.$ac_ext <<_LT_EOF
11555 #line $LINENO "configure"
11556 #include "confdefs.h"
11557
11558 #if HAVE_DLFCN_H
11559 #include <dlfcn.h>
11560 #endif
11561
11562 #include <stdio.h>
11563
11564 #ifdef RTLD_GLOBAL
11565 #  define LT_DLGLOBAL           RTLD_GLOBAL
11566 #else
11567 #  ifdef DL_GLOBAL
11568 #    define LT_DLGLOBAL         DL_GLOBAL
11569 #  else
11570 #    define LT_DLGLOBAL         0
11571 #  endif
11572 #endif
11573
11574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11575    find out it does not work in some platform. */
11576 #ifndef LT_DLLAZY_OR_NOW
11577 #  ifdef RTLD_LAZY
11578 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11579 #  else
11580 #    ifdef DL_LAZY
11581 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11582 #    else
11583 #      ifdef RTLD_NOW
11584 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11585 #      else
11586 #        ifdef DL_NOW
11587 #          define LT_DLLAZY_OR_NOW      DL_NOW
11588 #        else
11589 #          define LT_DLLAZY_OR_NOW      0
11590 #        endif
11591 #      endif
11592 #    endif
11593 #  endif
11594 #endif
11595
11596 /* When -fvisbility=hidden is used, assume the code has been annotated
11597    correspondingly for the symbols needed.  */
11598 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11599 int fnord () __attribute__((visibility("default")));
11600 #endif
11601
11602 int fnord () { return 42; }
11603 int main ()
11604 {
11605   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11606   int status = $lt_dlunknown;
11607
11608   if (self)
11609     {
11610       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11611       else
11612         {
11613           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11614           else puts (dlerror ());
11615         }
11616       /* dlclose (self); */
11617     }
11618   else
11619     puts (dlerror ());
11620
11621   return status;
11622 }
11623 _LT_EOF
11624   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11625   (eval $ac_link) 2>&5
11626   ac_status=$?
11627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11628   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11629     (./conftest; exit; ) >&5 2>/dev/null
11630     lt_status=$?
11631     case x$lt_status in
11632       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11633       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11634       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11635     esac
11636   else :
11637     # compilation failed
11638     lt_cv_dlopen_self=no
11639   fi
11640 fi
11641 rm -fr conftest*
11642
11643
11644 fi
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11646 $as_echo "$lt_cv_dlopen_self" >&6; }
11647
11648     if test "x$lt_cv_dlopen_self" = xyes; then
11649       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11650       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11651 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11652 if ${lt_cv_dlopen_self_static+:} false; then :
11653   $as_echo_n "(cached) " >&6
11654 else
11655           if test "$cross_compiling" = yes; then :
11656   lt_cv_dlopen_self_static=cross
11657 else
11658   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11659   lt_status=$lt_dlunknown
11660   cat > conftest.$ac_ext <<_LT_EOF
11661 #line $LINENO "configure"
11662 #include "confdefs.h"
11663
11664 #if HAVE_DLFCN_H
11665 #include <dlfcn.h>
11666 #endif
11667
11668 #include <stdio.h>
11669
11670 #ifdef RTLD_GLOBAL
11671 #  define LT_DLGLOBAL           RTLD_GLOBAL
11672 #else
11673 #  ifdef DL_GLOBAL
11674 #    define LT_DLGLOBAL         DL_GLOBAL
11675 #  else
11676 #    define LT_DLGLOBAL         0
11677 #  endif
11678 #endif
11679
11680 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11681    find out it does not work in some platform. */
11682 #ifndef LT_DLLAZY_OR_NOW
11683 #  ifdef RTLD_LAZY
11684 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11685 #  else
11686 #    ifdef DL_LAZY
11687 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11688 #    else
11689 #      ifdef RTLD_NOW
11690 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11691 #      else
11692 #        ifdef DL_NOW
11693 #          define LT_DLLAZY_OR_NOW      DL_NOW
11694 #        else
11695 #          define LT_DLLAZY_OR_NOW      0
11696 #        endif
11697 #      endif
11698 #    endif
11699 #  endif
11700 #endif
11701
11702 /* When -fvisbility=hidden is used, assume the code has been annotated
11703    correspondingly for the symbols needed.  */
11704 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11705 int fnord () __attribute__((visibility("default")));
11706 #endif
11707
11708 int fnord () { return 42; }
11709 int main ()
11710 {
11711   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11712   int status = $lt_dlunknown;
11713
11714   if (self)
11715     {
11716       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11717       else
11718         {
11719           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11720           else puts (dlerror ());
11721         }
11722       /* dlclose (self); */
11723     }
11724   else
11725     puts (dlerror ());
11726
11727   return status;
11728 }
11729 _LT_EOF
11730   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11731   (eval $ac_link) 2>&5
11732   ac_status=$?
11733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11734   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11735     (./conftest; exit; ) >&5 2>/dev/null
11736     lt_status=$?
11737     case x$lt_status in
11738       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11739       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11740       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11741     esac
11742   else :
11743     # compilation failed
11744     lt_cv_dlopen_self_static=no
11745   fi
11746 fi
11747 rm -fr conftest*
11748
11749
11750 fi
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11752 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11753     fi
11754
11755     CPPFLAGS="$save_CPPFLAGS"
11756     LDFLAGS="$save_LDFLAGS"
11757     LIBS="$save_LIBS"
11758     ;;
11759   esac
11760
11761   case $lt_cv_dlopen_self in
11762   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11763   *) enable_dlopen_self=unknown ;;
11764   esac
11765
11766   case $lt_cv_dlopen_self_static in
11767   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11768   *) enable_dlopen_self_static=unknown ;;
11769   esac
11770 fi
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788 striplib=
11789 old_striplib=
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11791 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11792 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11793   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11794   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11796 $as_echo "yes" >&6; }
11797 else
11798 # FIXME - insert some real tests, host_os isn't really good enough
11799   case $host_os in
11800   darwin*)
11801     if test -n "$STRIP" ; then
11802       striplib="$STRIP -x"
11803       old_striplib="$STRIP -S"
11804       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11805 $as_echo "yes" >&6; }
11806     else
11807       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11809     fi
11810     ;;
11811   *)
11812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11814     ;;
11815   esac
11816 fi
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829   # Report which library types will actually be built
11830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11831 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11833 $as_echo "$can_build_shared" >&6; }
11834
11835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11836 $as_echo_n "checking whether to build shared libraries... " >&6; }
11837   test "$can_build_shared" = "no" && enable_shared=no
11838
11839   # On AIX, shared libraries and static libraries use the same namespace, and
11840   # are all built from PIC.
11841   case $host_os in
11842   aix3*)
11843     test "$enable_shared" = yes && enable_static=no
11844     if test -n "$RANLIB"; then
11845       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11846       postinstall_cmds='$RANLIB $lib'
11847     fi
11848     ;;
11849
11850   aix[4-9]*)
11851     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11852       test "$enable_shared" = yes && enable_static=no
11853     fi
11854     ;;
11855   esac
11856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11857 $as_echo "$enable_shared" >&6; }
11858
11859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11860 $as_echo_n "checking whether to build static libraries... " >&6; }
11861   # Make sure either enable_shared or enable_static is yes.
11862   test "$enable_shared" = yes || enable_static=yes
11863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11864 $as_echo "$enable_static" >&6; }
11865
11866
11867
11868
11869 fi
11870 ac_ext=c
11871 ac_cpp='$CPP $CPPFLAGS'
11872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11875
11876 CC="$lt_save_CC"
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890         ac_config_commands="$ac_config_commands libtool"
11891
11892
11893
11894
11895 # Only expand once:
11896
11897
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11899 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11900 set x ${MAKE-make}
11901 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11902 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11903   $as_echo_n "(cached) " >&6
11904 else
11905   cat >conftest.make <<\_ACEOF
11906 SHELL = /bin/sh
11907 all:
11908         @echo '@@@%%%=$(MAKE)=@@@%%%'
11909 _ACEOF
11910 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11911 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11912   *@@@%%%=?*=@@@%%%*)
11913     eval ac_cv_prog_make_${ac_make}_set=yes;;
11914   *)
11915     eval ac_cv_prog_make_${ac_make}_set=no;;
11916 esac
11917 rm -f conftest.make
11918 fi
11919 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11921 $as_echo "yes" >&6; }
11922   SET_MAKE=
11923 else
11924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11926   SET_MAKE="MAKE=${MAKE-make}"
11927 fi
11928
11929
11930
11931 case "$host" in
11932   *-*-mingw*)
11933     os_win32=yes
11934     ;;
11935   *)
11936     os_win32=no
11937 esac
11938  if test "$os_win32" = "yes"; then
11939   OS_WIN32_TRUE=
11940   OS_WIN32_FALSE='#'
11941 else
11942   OS_WIN32_TRUE='#'
11943   OS_WIN32_FALSE=
11944 fi
11945
11946
11947 if test "$os_win32" = "yes"; then
11948   # Extract the first word of "lib.exe", so it can be a program name with args.
11949 set dummy lib.exe; ac_word=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 $as_echo_n "checking for $ac_word... " >&6; }
11952 if ${ac_cv_prog_ms_librarian+:} false; then :
11953   $as_echo_n "(cached) " >&6
11954 else
11955   if test -n "$ms_librarian"; then
11956   ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
11957 else
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11960 do
11961   IFS=$as_save_IFS
11962   test -z "$as_dir" && as_dir=.
11963     for ac_exec_ext in '' $ac_executable_extensions; do
11964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11965     ac_cv_prog_ms_librarian="yes"
11966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967     break 2
11968   fi
11969 done
11970   done
11971 IFS=$as_save_IFS
11972
11973   test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
11974 fi
11975 fi
11976 ms_librarian=$ac_cv_prog_ms_librarian
11977 if test -n "$ms_librarian"; then
11978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
11979 $as_echo "$ms_librarian" >&6; }
11980 else
11981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11983 fi
11984
11985
11986 fi
11987  if test x$ms_librarian = xyes; then
11988   MS_LIB_AVAILABLE_TRUE=
11989   MS_LIB_AVAILABLE_FALSE='#'
11990 else
11991   MS_LIB_AVAILABLE_TRUE='#'
11992   MS_LIB_AVAILABLE_FALSE=
11993 fi
11994
11995
11996 WARN_CFLAGS=""
11997 if test "x$GCC" = "xyes"; then
11998         WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
11999         -Wmissing-prototypes -Wmissing-declarations \
12000         -Wnested-externs -fno-strict-aliasing"
12001
12002 cat >>confdefs.h <<_ACEOF
12003 #define HAVE_WARNING_CPP_DIRECTIVE 1
12004 _ACEOF
12005
12006 fi
12007
12008
12009
12010
12011  if test $cross_compiling = yes; then
12012   CROSS_COMPILING_TRUE=
12013   CROSS_COMPILING_FALSE='#'
12014 else
12015   CROSS_COMPILING_TRUE='#'
12016   CROSS_COMPILING_FALSE=
12017 fi
12018
12019
12020
12021
12022 # Check whether --with-arch was given.
12023 if test "${with_arch+set}" = set; then :
12024   withval=$with_arch; arch="$withval"
12025 else
12026   arch=auto
12027 fi
12028
12029
12030 if test "x$arch" != xauto; then
12031
12032 cat >>confdefs.h <<_ACEOF
12033 #define FC_ARCHITECTURE "$arch"
12034 _ACEOF
12035
12036 fi
12037
12038
12039
12040 # Checks for header files.
12041 ac_header_dirent=no
12042 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12043   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12045 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12046 if eval \${$as_ac_Header+:} false; then :
12047   $as_echo_n "(cached) " >&6
12048 else
12049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h.  */
12051 #include <sys/types.h>
12052 #include <$ac_hdr>
12053
12054 int
12055 main ()
12056 {
12057 if ((DIR *) 0)
12058 return 0;
12059   ;
12060   return 0;
12061 }
12062 _ACEOF
12063 if ac_fn_c_try_compile "$LINENO"; then :
12064   eval "$as_ac_Header=yes"
12065 else
12066   eval "$as_ac_Header=no"
12067 fi
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069 fi
12070 eval ac_res=\$$as_ac_Header
12071                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12072 $as_echo "$ac_res" >&6; }
12073 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12074   cat >>confdefs.h <<_ACEOF
12075 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12076 _ACEOF
12077
12078 ac_header_dirent=$ac_hdr; break
12079 fi
12080
12081 done
12082 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12083 if test $ac_header_dirent = dirent.h; then
12084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12085 $as_echo_n "checking for library containing opendir... " >&6; }
12086 if ${ac_cv_search_opendir+:} false; then :
12087   $as_echo_n "(cached) " >&6
12088 else
12089   ac_func_search_save_LIBS=$LIBS
12090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h.  */
12092
12093 /* Override any GCC internal prototype to avoid an error.
12094    Use char because int might match the return type of a GCC
12095    builtin and then its argument prototype would still apply.  */
12096 #ifdef __cplusplus
12097 extern "C"
12098 #endif
12099 char opendir ();
12100 int
12101 main ()
12102 {
12103 return opendir ();
12104   ;
12105   return 0;
12106 }
12107 _ACEOF
12108 for ac_lib in '' dir; do
12109   if test -z "$ac_lib"; then
12110     ac_res="none required"
12111   else
12112     ac_res=-l$ac_lib
12113     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12114   fi
12115   if ac_fn_c_try_link "$LINENO"; then :
12116   ac_cv_search_opendir=$ac_res
12117 fi
12118 rm -f core conftest.err conftest.$ac_objext \
12119     conftest$ac_exeext
12120   if ${ac_cv_search_opendir+:} false; then :
12121   break
12122 fi
12123 done
12124 if ${ac_cv_search_opendir+:} false; then :
12125
12126 else
12127   ac_cv_search_opendir=no
12128 fi
12129 rm conftest.$ac_ext
12130 LIBS=$ac_func_search_save_LIBS
12131 fi
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12133 $as_echo "$ac_cv_search_opendir" >&6; }
12134 ac_res=$ac_cv_search_opendir
12135 if test "$ac_res" != no; then :
12136   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12137
12138 fi
12139
12140 else
12141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12142 $as_echo_n "checking for library containing opendir... " >&6; }
12143 if ${ac_cv_search_opendir+:} false; then :
12144   $as_echo_n "(cached) " >&6
12145 else
12146   ac_func_search_save_LIBS=$LIBS
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h.  */
12149
12150 /* Override any GCC internal prototype to avoid an error.
12151    Use char because int might match the return type of a GCC
12152    builtin and then its argument prototype would still apply.  */
12153 #ifdef __cplusplus
12154 extern "C"
12155 #endif
12156 char opendir ();
12157 int
12158 main ()
12159 {
12160 return opendir ();
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
12165 for ac_lib in '' x; do
12166   if test -z "$ac_lib"; then
12167     ac_res="none required"
12168   else
12169     ac_res=-l$ac_lib
12170     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12171   fi
12172   if ac_fn_c_try_link "$LINENO"; then :
12173   ac_cv_search_opendir=$ac_res
12174 fi
12175 rm -f core conftest.err conftest.$ac_objext \
12176     conftest$ac_exeext
12177   if ${ac_cv_search_opendir+:} false; then :
12178   break
12179 fi
12180 done
12181 if ${ac_cv_search_opendir+:} false; then :
12182
12183 else
12184   ac_cv_search_opendir=no
12185 fi
12186 rm conftest.$ac_ext
12187 LIBS=$ac_func_search_save_LIBS
12188 fi
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12190 $as_echo "$ac_cv_search_opendir" >&6; }
12191 ac_res=$ac_cv_search_opendir
12192 if test "$ac_res" != no; then :
12193   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12194
12195 fi
12196
12197 fi
12198
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12200 $as_echo_n "checking for ANSI C header files... " >&6; }
12201 if ${ac_cv_header_stdc+:} false; then :
12202   $as_echo_n "(cached) " >&6
12203 else
12204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h.  */
12206 #include <stdlib.h>
12207 #include <stdarg.h>
12208 #include <string.h>
12209 #include <float.h>
12210
12211 int
12212 main ()
12213 {
12214
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 if ac_fn_c_try_compile "$LINENO"; then :
12220   ac_cv_header_stdc=yes
12221 else
12222   ac_cv_header_stdc=no
12223 fi
12224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12225
12226 if test $ac_cv_header_stdc = yes; then
12227   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h.  */
12230 #include <string.h>
12231
12232 _ACEOF
12233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12234   $EGREP "memchr" >/dev/null 2>&1; then :
12235
12236 else
12237   ac_cv_header_stdc=no
12238 fi
12239 rm -f conftest*
12240
12241 fi
12242
12243 if test $ac_cv_header_stdc = yes; then
12244   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h.  */
12247 #include <stdlib.h>
12248
12249 _ACEOF
12250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12251   $EGREP "free" >/dev/null 2>&1; then :
12252
12253 else
12254   ac_cv_header_stdc=no
12255 fi
12256 rm -f conftest*
12257
12258 fi
12259
12260 if test $ac_cv_header_stdc = yes; then
12261   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12262   if test "$cross_compiling" = yes; then :
12263   :
12264 else
12265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h.  */
12267 #include <ctype.h>
12268 #include <stdlib.h>
12269 #if ((' ' & 0x0FF) == 0x020)
12270 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12271 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12272 #else
12273 # define ISLOWER(c) \
12274                    (('a' <= (c) && (c) <= 'i') \
12275                      || ('j' <= (c) && (c) <= 'r') \
12276                      || ('s' <= (c) && (c) <= 'z'))
12277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12278 #endif
12279
12280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12281 int
12282 main ()
12283 {
12284   int i;
12285   for (i = 0; i < 256; i++)
12286     if (XOR (islower (i), ISLOWER (i))
12287         || toupper (i) != TOUPPER (i))
12288       return 2;
12289   return 0;
12290 }
12291 _ACEOF
12292 if ac_fn_c_try_run "$LINENO"; then :
12293
12294 else
12295   ac_cv_header_stdc=no
12296 fi
12297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12298   conftest.$ac_objext conftest.beam conftest.$ac_ext
12299 fi
12300
12301 fi
12302 fi
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12304 $as_echo "$ac_cv_header_stdc" >&6; }
12305 if test $ac_cv_header_stdc = yes; then
12306
12307 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12308
12309 fi
12310
12311 for ac_header in fcntl.h stdlib.h string.h unistd.h
12312 do :
12313   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12314 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12315 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12316   cat >>confdefs.h <<_ACEOF
12317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12318 _ACEOF
12319
12320 fi
12321
12322 done
12323
12324
12325 # Checks for typedefs, structures, and compiler characteristics.
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12327 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12328 if ${ac_cv_c_const+:} false; then :
12329   $as_echo_n "(cached) " >&6
12330 else
12331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h.  */
12333
12334 int
12335 main ()
12336 {
12337 /* FIXME: Include the comments suggested by Paul. */
12338 #ifndef __cplusplus
12339   /* Ultrix mips cc rejects this.  */
12340   typedef int charset[2];
12341   const charset cs;
12342   /* SunOS 4.1.1 cc rejects this.  */
12343   char const *const *pcpcc;
12344   char **ppc;
12345   /* NEC SVR4.0.2 mips cc rejects this.  */
12346   struct point {int x, y;};
12347   static struct point const zero = {0,0};
12348   /* AIX XL C 1.02.0.0 rejects this.
12349      It does not let you subtract one const X* pointer from another in
12350      an arm of an if-expression whose if-part is not a constant
12351      expression */
12352   const char *g = "string";
12353   pcpcc = &g + (g ? g-g : 0);
12354   /* HPUX 7.0 cc rejects these. */
12355   ++pcpcc;
12356   ppc = (char**) pcpcc;
12357   pcpcc = (char const *const *) ppc;
12358   { /* SCO 3.2v4 cc rejects this.  */
12359     char *t;
12360     char const *s = 0 ? (char *) 0 : (char const *) 0;
12361
12362     *t++ = 0;
12363     if (s) return 0;
12364   }
12365   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12366     int x[] = {25, 17};
12367     const int *foo = &x[0];
12368     ++foo;
12369   }
12370   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12371     typedef const int *iptr;
12372     iptr p = 0;
12373     ++p;
12374   }
12375   { /* AIX XL C 1.02.0.0 rejects this saying
12376        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12377     struct s { int j; const int *ap[3]; };
12378     struct s *b; b->j = 5;
12379   }
12380   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12381     const int foo = 10;
12382     if (!foo) return 0;
12383   }
12384   return !cs[0] && !zero.x;
12385 #endif
12386
12387   ;
12388   return 0;
12389 }
12390 _ACEOF
12391 if ac_fn_c_try_compile "$LINENO"; then :
12392   ac_cv_c_const=yes
12393 else
12394   ac_cv_c_const=no
12395 fi
12396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12397 fi
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12399 $as_echo "$ac_cv_c_const" >&6; }
12400 if test $ac_cv_c_const = no; then
12401
12402 $as_echo "#define const /**/" >>confdefs.h
12403
12404 fi
12405
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12407 $as_echo_n "checking for inline... " >&6; }
12408 if ${ac_cv_c_inline+:} false; then :
12409   $as_echo_n "(cached) " >&6
12410 else
12411   ac_cv_c_inline=no
12412 for ac_kw in inline __inline__ __inline; do
12413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h.  */
12415 #ifndef __cplusplus
12416 typedef int foo_t;
12417 static $ac_kw foo_t static_foo () {return 0; }
12418 $ac_kw foo_t foo () {return 0; }
12419 #endif
12420
12421 _ACEOF
12422 if ac_fn_c_try_compile "$LINENO"; then :
12423   ac_cv_c_inline=$ac_kw
12424 fi
12425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12426   test "$ac_cv_c_inline" != no && break
12427 done
12428
12429 fi
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12431 $as_echo "$ac_cv_c_inline" >&6; }
12432
12433 case $ac_cv_c_inline in
12434   inline | yes) ;;
12435   *)
12436     case $ac_cv_c_inline in
12437       no) ac_val=;;
12438       *) ac_val=$ac_cv_c_inline;;
12439     esac
12440     cat >>confdefs.h <<_ACEOF
12441 #ifndef __cplusplus
12442 #define inline $ac_val
12443 #endif
12444 _ACEOF
12445     ;;
12446 esac
12447
12448 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12449 if test "x$ac_cv_type_pid_t" = xyes; then :
12450
12451 else
12452
12453 cat >>confdefs.h <<_ACEOF
12454 #define pid_t int
12455 _ACEOF
12456
12457 fi
12458
12459
12460 # Checks for library functions.
12461 for ac_func in vprintf
12462 do :
12463   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12464 if test "x$ac_cv_func_vprintf" = xyes; then :
12465   cat >>confdefs.h <<_ACEOF
12466 #define HAVE_VPRINTF 1
12467 _ACEOF
12468
12469 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12470 if test "x$ac_cv_func__doprnt" = xyes; then :
12471
12472 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12473
12474 fi
12475
12476 fi
12477 done
12478
12479
12480
12481
12482
12483   for ac_header in $ac_header_list
12484 do :
12485   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12486 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12487 "
12488 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12489   cat >>confdefs.h <<_ACEOF
12490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12491 _ACEOF
12492
12493 fi
12494
12495 done
12496
12497
12498
12499
12500
12501
12502
12503
12504 for ac_func in getpagesize
12505 do :
12506   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12507 if test "x$ac_cv_func_getpagesize" = xyes; then :
12508   cat >>confdefs.h <<_ACEOF
12509 #define HAVE_GETPAGESIZE 1
12510 _ACEOF
12511
12512 fi
12513 done
12514
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12516 $as_echo_n "checking for working mmap... " >&6; }
12517 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12518   $as_echo_n "(cached) " >&6
12519 else
12520   if test "$cross_compiling" = yes; then :
12521   ac_cv_func_mmap_fixed_mapped=no
12522 else
12523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h.  */
12525 $ac_includes_default
12526 /* malloc might have been renamed as rpl_malloc. */
12527 #undef malloc
12528
12529 /* Thanks to Mike Haertel and Jim Avera for this test.
12530    Here is a matrix of mmap possibilities:
12531         mmap private not fixed
12532         mmap private fixed at somewhere currently unmapped
12533         mmap private fixed at somewhere already mapped
12534         mmap shared not fixed
12535         mmap shared fixed at somewhere currently unmapped
12536         mmap shared fixed at somewhere already mapped
12537    For private mappings, we should verify that changes cannot be read()
12538    back from the file, nor mmap's back from the file at a different
12539    address.  (There have been systems where private was not correctly
12540    implemented like the infamous i386 svr4.0, and systems where the
12541    VM page cache was not coherent with the file system buffer cache
12542    like early versions of FreeBSD and possibly contemporary NetBSD.)
12543    For shared mappings, we should conversely verify that changes get
12544    propagated back to all the places they're supposed to be.
12545
12546    Grep wants private fixed already mapped.
12547    The main things grep needs to know about mmap are:
12548    * does it exist and is it safe to write into the mmap'd area
12549    * how to use it (BSD variants)  */
12550
12551 #include <fcntl.h>
12552 #include <sys/mman.h>
12553
12554 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12555 char *malloc ();
12556 #endif
12557
12558 /* This mess was copied from the GNU getpagesize.h.  */
12559 #ifndef HAVE_GETPAGESIZE
12560 # ifdef _SC_PAGESIZE
12561 #  define getpagesize() sysconf(_SC_PAGESIZE)
12562 # else /* no _SC_PAGESIZE */
12563 #  ifdef HAVE_SYS_PARAM_H
12564 #   include <sys/param.h>
12565 #   ifdef EXEC_PAGESIZE
12566 #    define getpagesize() EXEC_PAGESIZE
12567 #   else /* no EXEC_PAGESIZE */
12568 #    ifdef NBPG
12569 #     define getpagesize() NBPG * CLSIZE
12570 #     ifndef CLSIZE
12571 #      define CLSIZE 1
12572 #     endif /* no CLSIZE */
12573 #    else /* no NBPG */
12574 #     ifdef NBPC
12575 #      define getpagesize() NBPC
12576 #     else /* no NBPC */
12577 #      ifdef PAGESIZE
12578 #       define getpagesize() PAGESIZE
12579 #      endif /* PAGESIZE */
12580 #     endif /* no NBPC */
12581 #    endif /* no NBPG */
12582 #   endif /* no EXEC_PAGESIZE */
12583 #  else /* no HAVE_SYS_PARAM_H */
12584 #   define getpagesize() 8192   /* punt totally */
12585 #  endif /* no HAVE_SYS_PARAM_H */
12586 # endif /* no _SC_PAGESIZE */
12587
12588 #endif /* no HAVE_GETPAGESIZE */
12589
12590 int
12591 main ()
12592 {
12593   char *data, *data2, *data3;
12594   const char *cdata2;
12595   int i, pagesize;
12596   int fd, fd2;
12597
12598   pagesize = getpagesize ();
12599
12600   /* First, make a file with some known garbage in it. */
12601   data = (char *) malloc (pagesize);
12602   if (!data)
12603     return 1;
12604   for (i = 0; i < pagesize; ++i)
12605     *(data + i) = rand ();
12606   umask (0);
12607   fd = creat ("conftest.mmap", 0600);
12608   if (fd < 0)
12609     return 2;
12610   if (write (fd, data, pagesize) != pagesize)
12611     return 3;
12612   close (fd);
12613
12614   /* Next, check that the tail of a page is zero-filled.  File must have
12615      non-zero length, otherwise we risk SIGBUS for entire page.  */
12616   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12617   if (fd2 < 0)
12618     return 4;
12619   cdata2 = "";
12620   if (write (fd2, cdata2, 1) != 1)
12621     return 5;
12622   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12623   if (data2 == MAP_FAILED)
12624     return 6;
12625   for (i = 0; i < pagesize; ++i)
12626     if (*(data2 + i))
12627       return 7;
12628   close (fd2);
12629   if (munmap (data2, pagesize))
12630     return 8;
12631
12632   /* Next, try to mmap the file at a fixed address which already has
12633      something else allocated at it.  If we can, also make sure that
12634      we see the same garbage.  */
12635   fd = open ("conftest.mmap", O_RDWR);
12636   if (fd < 0)
12637     return 9;
12638   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12639                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12640     return 10;
12641   for (i = 0; i < pagesize; ++i)
12642     if (*(data + i) != *(data2 + i))
12643       return 11;
12644
12645   /* Finally, make sure that changes to the mapped area do not
12646      percolate back to the file as seen by read().  (This is a bug on
12647      some variants of i386 svr4.0.)  */
12648   for (i = 0; i < pagesize; ++i)
12649     *(data2 + i) = *(data2 + i) + 1;
12650   data3 = (char *) malloc (pagesize);
12651   if (!data3)
12652     return 12;
12653   if (read (fd, data3, pagesize) != pagesize)
12654     return 13;
12655   for (i = 0; i < pagesize; ++i)
12656     if (*(data + i) != *(data3 + i))
12657       return 14;
12658   close (fd);
12659   return 0;
12660 }
12661 _ACEOF
12662 if ac_fn_c_try_run "$LINENO"; then :
12663   ac_cv_func_mmap_fixed_mapped=yes
12664 else
12665   ac_cv_func_mmap_fixed_mapped=no
12666 fi
12667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12668   conftest.$ac_objext conftest.beam conftest.$ac_ext
12669 fi
12670
12671 fi
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12673 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12674 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12675
12676 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12677
12678 fi
12679 rm -f conftest.mmap conftest.txt
12680
12681 for ac_func in geteuid getuid link memmove memset mkstemp strchr strrchr strtol getopt getopt_long sysconf ftruncate chsize rand random lrand48 random_r rand_r
12682 do :
12683   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12684 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12685 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12686   cat >>confdefs.h <<_ACEOF
12687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12688 _ACEOF
12689
12690 fi
12691 done
12692
12693
12694 #
12695 # Checks for iconv
12696 #
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
12698 $as_echo_n "checking for a usable iconv... " >&6; }
12699 ICONV_LIBS=""
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h.  */
12702 #include <iconv.h>
12703 int
12704 main ()
12705 {
12706 iconv_open ("from", "to");
12707   ;
12708   return 0;
12709 }
12710 _ACEOF
12711 if ac_fn_c_try_link "$LINENO"; then :
12712   use_iconv=1
12713 else
12714   use_iconv=0
12715 fi
12716 rm -f core conftest.err conftest.$ac_objext \
12717     conftest$ac_exeext conftest.$ac_ext
12718 if test x$use_iconv = x1; then
12719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: libc" >&5
12720 $as_echo "libc" >&6; }
12721 else
12722         # try using libiconv
12723         fontconfig_save_libs="$LIBS"
12724         LIBS="$LIBS -liconv"
12725
12726         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h.  */
12728 #include <iconv.h>
12729 int
12730 main ()
12731 {
12732 iconv_open ("from", "to");
12733   ;
12734   return 0;
12735 }
12736 _ACEOF
12737 if ac_fn_c_try_link "$LINENO"; then :
12738   use_iconv=1
12739 else
12740   use_iconv=0
12741 fi
12742 rm -f core conftest.err conftest.$ac_objext \
12743     conftest$ac_exeext conftest.$ac_ext
12744
12745         if test x$use_iconv = x1; then
12746                 ICONV_LIBS="-liconv"
12747                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libiconv" >&5
12748 $as_echo "libiconv" >&6; }
12749         else
12750                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751 $as_echo "no" >&6; }
12752         fi
12753
12754         LIBS="$fontconfig_save_libs"
12755 fi
12756
12757
12758 cat >>confdefs.h <<_ACEOF
12759 #define USE_ICONV $use_iconv
12760 _ACEOF
12761
12762
12763 #
12764 # Checks for FreeType
12765 #
12766
12767
12768 # Check whether --with-freetype-config was given.
12769 if test "${with_freetype_config+set}" = set; then :
12770   withval=$with_freetype_config; freetype_config=$withval
12771 else
12772   freetype_config=yes
12773 fi
12774
12775
12776 if test "$freetype_config" = "yes"; then
12777         # Extract the first word of "freetype-config", so it can be a program name with args.
12778 set dummy freetype-config; ac_word=$2
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780 $as_echo_n "checking for $ac_word... " >&6; }
12781 if ${ac_cv_path_ft_config+:} false; then :
12782   $as_echo_n "(cached) " >&6
12783 else
12784   case $ft_config in
12785   [\\/]* | ?:[\\/]*)
12786   ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
12787   ;;
12788   *)
12789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12790 for as_dir in $PATH
12791 do
12792   IFS=$as_save_IFS
12793   test -z "$as_dir" && as_dir=.
12794     for ac_exec_ext in '' $ac_executable_extensions; do
12795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12796     ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
12797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12798     break 2
12799   fi
12800 done
12801   done
12802 IFS=$as_save_IFS
12803
12804   test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
12805   ;;
12806 esac
12807 fi
12808 ft_config=$ac_cv_path_ft_config
12809 if test -n "$ft_config"; then
12810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5
12811 $as_echo "$ft_config" >&6; }
12812 else
12813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12815 fi
12816
12817
12818         if test "$ft_config" = "no"; then
12819                 as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5
12820         fi
12821 else
12822         ft_config="$freetype_config"
12823 fi
12824
12825 FREETYPE_CFLAGS="`$ft_config --cflags`"
12826 FREETYPE_LIBS="`$ft_config --libs`"
12827
12828
12829
12830
12831 fontconfig_save_libs="$LIBS"
12832 fontconfig_save_cflags="$CFLAGS"
12833 LIBS="$LIBS $FREETYPE_LIBS"
12834 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
12835 for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Select_Size
12836 do :
12837   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12838 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12839 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12840   cat >>confdefs.h <<_ACEOF
12841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12842 _ACEOF
12843
12844 fi
12845 done
12846
12847 ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h>
12848 #include FT_FREETYPE_H
12849 "
12850 if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = xyes; then :
12851   HAVE_FT_BITMAP_SIZE_Y_PPEM=1
12852 else
12853   HAVE_FT_BITMAP_SIZE_Y_PPEM=0
12854 fi
12855
12856
12857 cat >>confdefs.h <<_ACEOF
12858 #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
12859 _ACEOF
12860
12861 CFLAGS="$fontconfig_save_cflags"
12862 LIBS="$fontconfig_save_libs"
12863
12864 #
12865 # Check expat configuration
12866 #
12867
12868
12869 # Check whether --with-expat was given.
12870 if test "${with_expat+set}" = set; then :
12871   withval=$with_expat; expat=$withval
12872 else
12873   expat=yes
12874 fi
12875
12876
12877 # Check whether --with-expat-includes was given.
12878 if test "${with_expat_includes+set}" = set; then :
12879   withval=$with_expat_includes; expat_includes=$withval
12880 else
12881   expat_includes=yes
12882 fi
12883
12884
12885 # Check whether --with-expat-lib was given.
12886 if test "${with_expat_lib+set}" = set; then :
12887   withval=$with_expat_lib; expat_lib=$withval
12888 else
12889   expat_lib=yes
12890 fi
12891
12892
12893 if test "$enable_libxml2" != "yes"; then
12894         case "$expat" in
12895         no)
12896         ;;
12897         *)
12898                 case "$expat_includes" in
12899                 yes)
12900                         case "$expat" in
12901                         yes)
12902                                 ;;
12903                         *)
12904                                 EXPAT_CFLAGS="-I$expat/include"
12905                                 ;;
12906                         esac
12907                         ;;
12908                 no)
12909                         EXPAT_CFLAGS=""
12910                         ;;
12911                 *)
12912                         EXPAT_CFLAGS="-I$expat_includes"
12913                         ;;
12914                 esac
12915                 case "$expat_lib" in
12916                 yes)
12917                         case "$expat" in
12918                         yes)
12919                                 EXPAT_LIBS="-lexpat"
12920                                 ;;
12921                         *)
12922                                 EXPAT_LIBS="-L$expat/lib -lexpat"
12923                                 ;;
12924                         esac
12925                         ;;
12926                 no)
12927                         ;;
12928                 *)
12929                         EXPAT_LIBS="-L$expat_lib -lexpat"
12930                         ;;
12931                 esac
12932
12933                 expatsaved_CPPFLAGS="$CPPFLAGS"
12934                 CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
12935                 expatsaved_LIBS="$LIBS"
12936                 LIBS="$LIBS $EXPAT_LIBS"
12937
12938                 ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
12939 if test "x$ac_cv_header_expat_h" = xyes; then :
12940
12941 fi
12942
12943
12944                 case "$ac_cv_header_expat_h" in
12945                 no)
12946                         ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
12947 if test "x$ac_cv_header_xmlparse_h" = xyes; then :
12948
12949 fi
12950
12951
12952                         case "$ac_cv_header_xmlparse_h" in
12953                         no)
12954                                 have_expat_header=no;
12955                                 ;;
12956                         yes)
12957                                 HAVE_XMLPARSE_H=1
12958
12959
12960 cat >>confdefs.h <<_ACEOF
12961 #define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
12962 _ACEOF
12963
12964                                 have_expat_header=yes
12965                                 ;;
12966                         esac
12967                         ;;
12968                 yes)
12969                         have_expat_header=yes
12970                         ;;
12971                 esac
12972                 case "$have_expat_header" in
12973                 no)
12974                         expat=no
12975                         ;;
12976                 yes)
12977                         for ac_func in XML_SetDoctypeDeclHandler
12978 do :
12979   ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
12980 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then :
12981   cat >>confdefs.h <<_ACEOF
12982 #define HAVE_XML_SETDOCTYPEDECLHANDLER 1
12983 _ACEOF
12984
12985 fi
12986 done
12987
12988                         case "$ac_cv_func_XML_SetDoctypeDeclHandler" in
12989                         yes)
12990                                 HAVE_EXPAT=1
12991
12992
12993 cat >>confdefs.h <<_ACEOF
12994 #define HAVE_EXPAT $HAVE_EXPAT
12995 _ACEOF
12996
12997                                 ;;
12998                         *)
12999                                 expat=no
13000                                 ;;
13001                         esac
13002                         ;;
13003                 esac
13004                 CPPFLAGS="$expatsaved_CPPFLAGS"
13005                 LIBS="$expatsaved_LIBS"
13006                 ;;
13007         esac
13008
13009
13010
13011
13012         case "$expat" in
13013         no)
13014                 EXPAT_CFLAGS=""
13015                 EXPAT_LIBS=""
13016
13017                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find usable expat library. Trying to use libxml2 as fallback." >&5
13018 $as_echo "$as_me: WARNING: Cannot find usable expat library. Trying to use libxml2 as fallback." >&2;}
13019                 ;;
13020         esac
13021 fi
13022
13023 #
13024 # Check libxml2 configuration
13025 #
13026
13027 # Check whether --enable-libxml2 was given.
13028 if test "${enable_libxml2+set}" = set; then :
13029   enableval=$enable_libxml2;
13030 fi
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13041         if test -n "$ac_tool_prefix"; then
13042   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13043 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13045 $as_echo_n "checking for $ac_word... " >&6; }
13046 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13047   $as_echo_n "(cached) " >&6
13048 else
13049   case $PKG_CONFIG in
13050   [\\/]* | ?:[\\/]*)
13051   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13052   ;;
13053   *)
13054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13056 do
13057   IFS=$as_save_IFS
13058   test -z "$as_dir" && as_dir=.
13059     for ac_exec_ext in '' $ac_executable_extensions; do
13060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13061     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13063     break 2
13064   fi
13065 done
13066   done
13067 IFS=$as_save_IFS
13068
13069   ;;
13070 esac
13071 fi
13072 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13073 if test -n "$PKG_CONFIG"; then
13074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13075 $as_echo "$PKG_CONFIG" >&6; }
13076 else
13077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13079 fi
13080
13081
13082 fi
13083 if test -z "$ac_cv_path_PKG_CONFIG"; then
13084   ac_pt_PKG_CONFIG=$PKG_CONFIG
13085   # Extract the first word of "pkg-config", so it can be a program name with args.
13086 set dummy pkg-config; ac_word=$2
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088 $as_echo_n "checking for $ac_word... " >&6; }
13089 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13090   $as_echo_n "(cached) " >&6
13091 else
13092   case $ac_pt_PKG_CONFIG in
13093   [\\/]* | ?:[\\/]*)
13094   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13095   ;;
13096   *)
13097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098 for as_dir in $PATH
13099 do
13100   IFS=$as_save_IFS
13101   test -z "$as_dir" && as_dir=.
13102     for ac_exec_ext in '' $ac_executable_extensions; do
13103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13104     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13106     break 2
13107   fi
13108 done
13109   done
13110 IFS=$as_save_IFS
13111
13112   ;;
13113 esac
13114 fi
13115 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13116 if test -n "$ac_pt_PKG_CONFIG"; then
13117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13118 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13119 else
13120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 $as_echo "no" >&6; }
13122 fi
13123
13124   if test "x$ac_pt_PKG_CONFIG" = x; then
13125     PKG_CONFIG=""
13126   else
13127     case $cross_compiling:$ac_tool_warned in
13128 yes:)
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13131 ac_tool_warned=yes ;;
13132 esac
13133     PKG_CONFIG=$ac_pt_PKG_CONFIG
13134   fi
13135 else
13136   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13137 fi
13138
13139 fi
13140 if test -n "$PKG_CONFIG"; then
13141         _pkg_min_version=0.9.0
13142         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13143 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13144         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13145                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13146 $as_echo "yes" >&6; }
13147         else
13148                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 $as_echo "no" >&6; }
13150                 PKG_CONFIG=""
13151         fi
13152 fi
13153
13154 if test "$enable_libxml2" = "yes" -o "$expat" = "no"; then
13155
13156 pkg_failed=no
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
13158 $as_echo_n "checking for LIBXML2... " >&6; }
13159
13160 if test -n "$LIBXML2_CFLAGS"; then
13161     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
13162  elif test -n "$PKG_CONFIG"; then
13163     if test -n "$PKG_CONFIG" && \
13164     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
13165   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
13166   ac_status=$?
13167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13168   test $ac_status = 0; }; then
13169   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
13170                       test "x$?" != "x0" && pkg_failed=yes
13171 else
13172   pkg_failed=yes
13173 fi
13174  else
13175     pkg_failed=untried
13176 fi
13177 if test -n "$LIBXML2_LIBS"; then
13178     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
13179  elif test -n "$PKG_CONFIG"; then
13180     if test -n "$PKG_CONFIG" && \
13181     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
13182   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
13183   ac_status=$?
13184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13185   test $ac_status = 0; }; then
13186   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
13187                       test "x$?" != "x0" && pkg_failed=yes
13188 else
13189   pkg_failed=yes
13190 fi
13191  else
13192     pkg_failed=untried
13193 fi
13194
13195
13196
13197 if test $pkg_failed = yes; then
13198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13200
13201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13202         _pkg_short_errors_supported=yes
13203 else
13204         _pkg_short_errors_supported=no
13205 fi
13206         if test $_pkg_short_errors_supported = yes; then
13207                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
13208         else
13209                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
13210         fi
13211         # Put the nasty error message in config.log where it belongs
13212         echo "$LIBXML2_PKG_ERRORS" >&5
13213
13214         as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
13215
13216 $LIBXML2_PKG_ERRORS
13217
13218 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13219 installed software in a non-standard prefix.
13220
13221 Alternatively, you may set the environment variables LIBXML2_CFLAGS
13222 and LIBXML2_LIBS to avoid the need to call pkg-config.
13223 See the pkg-config man page for more details." "$LINENO" 5
13224 elif test $pkg_failed = untried; then
13225         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13229 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13230 is in your PATH or set the PKG_CONFIG environment variable to the full
13231 path to pkg-config.
13232
13233 Alternatively, you may set the environment variables LIBXML2_CFLAGS
13234 and LIBXML2_LIBS to avoid the need to call pkg-config.
13235 See the pkg-config man page for more details.
13236
13237 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13238 See \`config.log' for more details" "$LINENO" 5; }
13239 else
13240         LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
13241         LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
13242         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13243 $as_echo "yes" >&6; }
13244
13245 fi
13246
13247 cat >>confdefs.h <<_ACEOF
13248 #define ENABLE_LIBXML2 1
13249 _ACEOF
13250
13251
13252
13253
13254 fi
13255
13256 #
13257 # Set default font directory
13258 #
13259
13260
13261 # Check whether --with-default-fonts was given.
13262 if test "${with_default_fonts+set}" = set; then :
13263   withval=$with_default_fonts; default_fonts="$withval"
13264 else
13265   default_fonts=yes
13266 fi
13267
13268
13269 case "$default_fonts" in
13270 yes)
13271         if test "$os_win32" = "yes"; then
13272                 FC_DEFAULT_FONTS="WINDOWSFONTDIR"
13273
13274 cat >>confdefs.h <<_ACEOF
13275 #define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
13276 _ACEOF
13277
13278         else
13279                 FC_DEFAULT_FONTS="/usr/share/fonts"
13280
13281 cat >>confdefs.h <<_ACEOF
13282 #define FC_DEFAULT_FONTS "/usr/share/fonts"
13283 _ACEOF
13284
13285         fi
13286         ;;
13287 *)
13288         FC_DEFAULT_FONTS="$default_fonts"
13289
13290 cat >>confdefs.h <<_ACEOF
13291 #define FC_DEFAULT_FONTS "$default_fonts"
13292 _ACEOF
13293
13294         ;;
13295 esac
13296
13297
13298
13299 #
13300 # Add more fonts if available.  By default, add only the directories
13301 # with outline fonts; those with bitmaps can be added as desired in
13302 # local.conf or ~/.fonts.conf
13303 #
13304
13305 # Check whether --with-add-fonts was given.
13306 if test "${with_add_fonts+set}" = set; then :
13307   withval=$with_add_fonts; add_fonts="$withval"
13308 else
13309   add_fonts=yes
13310 fi
13311
13312
13313 case "$add_fonts" in
13314 yes)
13315         FC_ADD_FONTS=""
13316         for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
13317                 case x"$FC_ADD_FONTS" in
13318                 x)
13319                         sub="$dir/fonts"
13320                         if test -d "$sub"; then
13321                                 case x$FC_ADD_FONTS in
13322                                 x)
13323                                         FC_ADD_FONTS="$sub"
13324                                         ;;
13325                                 *)
13326                                         FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
13327                                         ;;
13328                                 esac
13329                         fi
13330                         ;;
13331                 esac
13332         done
13333
13334 cat >>confdefs.h <<_ACEOF
13335 #define FC_ADD_FONTS "$add_fonts"
13336 _ACEOF
13337
13338         ;;
13339 no)
13340         FC_ADD_FONTS=""
13341         ;;
13342 *)
13343         FC_ADD_FONTS="$add_fonts"
13344
13345 cat >>confdefs.h <<_ACEOF
13346 #define FC_ADD_FONTS "$add_fonts"
13347 _ACEOF
13348
13349         ;;
13350 esac
13351
13352
13353
13354 FC_FONTPATH=""
13355
13356 case "$FC_ADD_FONTS" in
13357 "")
13358         ;;
13359 *)
13360         FC_FONTPATH=`echo $FC_ADD_FONTS |
13361                         sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
13362         ;;
13363 esac
13364
13365
13366
13367 #
13368 # Set default cache directory path
13369 #
13370
13371 # Check whether --with-cache-dir was given.
13372 if test "${with_cache_dir+set}" = set; then :
13373   withval=$with_cache_dir; fc_cachedir="$withval"
13374 else
13375   fc_cachedir=yes
13376 fi
13377
13378
13379 case $fc_cachedir in
13380 no|yes)
13381         if test "$os_win32" = "yes"; then
13382                 fc_cachedir="WINDOWSTEMPDIR_FONTCONFIG_CACHE"
13383         else
13384                 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
13385         fi
13386         ;;
13387 *)
13388         ;;
13389 esac
13390
13391 FC_CACHEDIR=${fc_cachedir}
13392
13393
13394 FC_FONTDATE=`LC_ALL=C date`
13395
13396
13397
13398
13399 # Check whether --with-confdir was given.
13400 if test "${with_confdir+set}" = set; then :
13401   withval=$with_confdir; confdir="$withval"
13402 else
13403   confdir=yes
13404 fi
13405
13406
13407 #
13408 # Set CONFDIR and FONTCONFIG_PATH
13409 #
13410
13411 case "$confdir" in
13412 no|yes)
13413         confdir='${sysconfdir}'/fonts
13414         ;;
13415 *)
13416         ;;
13417 esac
13418
13419 CONFDIR=${confdir}
13420
13421 cat >>confdefs.h <<_ACEOF
13422 #define CONFDIR "$CONFDIR"
13423 _ACEOF
13424
13425
13426
13427 #
13428 # Let people not build/install docs if they don't have docbook
13429 #
13430
13431 # Extract the first word of "docbook2html", so it can be a program name with args.
13432 set dummy docbook2html; ac_word=$2
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434 $as_echo_n "checking for $ac_word... " >&6; }
13435 if ${ac_cv_prog_HASDOCBOOK+:} false; then :
13436   $as_echo_n "(cached) " >&6
13437 else
13438   if test -n "$HASDOCBOOK"; then
13439   ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
13440 else
13441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442 for as_dir in $PATH
13443 do
13444   IFS=$as_save_IFS
13445   test -z "$as_dir" && as_dir=.
13446     for ac_exec_ext in '' $ac_executable_extensions; do
13447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13448     ac_cv_prog_HASDOCBOOK="yes"
13449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450     break 2
13451   fi
13452 done
13453   done
13454 IFS=$as_save_IFS
13455
13456   test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
13457 fi
13458 fi
13459 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
13460 if test -n "$HASDOCBOOK"; then
13461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
13462 $as_echo "$HASDOCBOOK" >&6; }
13463 else
13464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 $as_echo "no" >&6; }
13466 fi
13467
13468
13469
13470  if test "x$HASDOCBOOK" = xyes; then
13471   USEDOCBOOK_TRUE=
13472   USEDOCBOOK_FALSE='#'
13473 else
13474   USEDOCBOOK_TRUE='#'
13475   USEDOCBOOK_FALSE=
13476 fi
13477
13478
13479 default_docs="yes"
13480 #
13481 # Check if docs exist or can be created
13482 #
13483 if test x$HASDOCBOOK = xno; then
13484         if test -f $srcdir/doc/fonts-conf.5; then
13485                 :
13486         else
13487                 default_docs="no"
13488         fi
13489 fi
13490
13491 # Check whether --enable-docs was given.
13492 if test "${enable_docs+set}" = set; then :
13493   enableval=$enable_docs;
13494 else
13495   enable_docs=$default_docs
13496 fi
13497
13498
13499  if test "x$enable_docs" = xyes; then
13500   ENABLE_DOCS_TRUE=
13501   ENABLE_DOCS_FALSE='#'
13502 else
13503   ENABLE_DOCS_TRUE='#'
13504   ENABLE_DOCS_FALSE=
13505 fi
13506
13507
13508 if test "x$enable_docs" = xyes; then
13509         DOCSRC="doc"
13510         tmp=funcs.$$
13511         cat $srcdir/doc/*.fncs | awk '
13512         /^@TITLE@/      { if (!done) { printf ("%s\n", $2); done = 1; } }
13513         /^@FUNC@/       { if (!done) { printf ("%s\n", $2); done = 1; } }
13514         /^@@/           { done = 0; }' > $tmp
13515         DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
13516         echo DOCMAN3 $DOCMAN3
13517         rm -f $tmp
13518 else
13519         DOCSRC=""
13520         DOCMAN3=""
13521 fi
13522
13523
13524
13525
13526
13527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13528 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13529 if ${ac_cv_c_bigendian+:} false; then :
13530   $as_echo_n "(cached) " >&6
13531 else
13532   ac_cv_c_bigendian=unknown
13533     # See if we're dealing with a universal compiler.
13534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h.  */
13536 #ifndef __APPLE_CC__
13537                not a universal capable compiler
13538              #endif
13539              typedef int dummy;
13540
13541 _ACEOF
13542 if ac_fn_c_try_compile "$LINENO"; then :
13543
13544         # Check for potential -arch flags.  It is not universal unless
13545         # there are at least two -arch flags with different values.
13546         ac_arch=
13547         ac_prev=
13548         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13549          if test -n "$ac_prev"; then
13550            case $ac_word in
13551              i?86 | x86_64 | ppc | ppc64)
13552                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13553                  ac_arch=$ac_word
13554                else
13555                  ac_cv_c_bigendian=universal
13556                  break
13557                fi
13558                ;;
13559            esac
13560            ac_prev=
13561          elif test "x$ac_word" = "x-arch"; then
13562            ac_prev=arch
13563          fi
13564        done
13565 fi
13566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13567     if test $ac_cv_c_bigendian = unknown; then
13568       # See if sys/param.h defines the BYTE_ORDER macro.
13569       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h.  */
13571 #include <sys/types.h>
13572              #include <sys/param.h>
13573
13574 int
13575 main ()
13576 {
13577 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13578                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13579                      && LITTLE_ENDIAN)
13580               bogus endian macros
13581              #endif
13582
13583   ;
13584   return 0;
13585 }
13586 _ACEOF
13587 if ac_fn_c_try_compile "$LINENO"; then :
13588   # It does; now see whether it defined to BIG_ENDIAN or not.
13589          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h.  */
13591 #include <sys/types.h>
13592                 #include <sys/param.h>
13593
13594 int
13595 main ()
13596 {
13597 #if BYTE_ORDER != BIG_ENDIAN
13598                  not big endian
13599                 #endif
13600
13601   ;
13602   return 0;
13603 }
13604 _ACEOF
13605 if ac_fn_c_try_compile "$LINENO"; then :
13606   ac_cv_c_bigendian=yes
13607 else
13608   ac_cv_c_bigendian=no
13609 fi
13610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611 fi
13612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13613     fi
13614     if test $ac_cv_c_bigendian = unknown; then
13615       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13616       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h.  */
13618 #include <limits.h>
13619
13620 int
13621 main ()
13622 {
13623 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13624               bogus endian macros
13625              #endif
13626
13627   ;
13628   return 0;
13629 }
13630 _ACEOF
13631 if ac_fn_c_try_compile "$LINENO"; then :
13632   # It does; now see whether it defined to _BIG_ENDIAN or not.
13633          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h.  */
13635 #include <limits.h>
13636
13637 int
13638 main ()
13639 {
13640 #ifndef _BIG_ENDIAN
13641                  not big endian
13642                 #endif
13643
13644   ;
13645   return 0;
13646 }
13647 _ACEOF
13648 if ac_fn_c_try_compile "$LINENO"; then :
13649   ac_cv_c_bigendian=yes
13650 else
13651   ac_cv_c_bigendian=no
13652 fi
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 fi
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13656     fi
13657     if test $ac_cv_c_bigendian = unknown; then
13658       # Compile a test program.
13659       if test "$cross_compiling" = yes; then :
13660   # Try to guess by grepping values from an object file.
13661          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h.  */
13663 short int ascii_mm[] =
13664                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13665                 short int ascii_ii[] =
13666                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13667                 int use_ascii (int i) {
13668                   return ascii_mm[i] + ascii_ii[i];
13669                 }
13670                 short int ebcdic_ii[] =
13671                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13672                 short int ebcdic_mm[] =
13673                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13674                 int use_ebcdic (int i) {
13675                   return ebcdic_mm[i] + ebcdic_ii[i];
13676                 }
13677                 extern int foo;
13678
13679 int
13680 main ()
13681 {
13682 return use_ascii (foo) == use_ebcdic (foo);
13683   ;
13684   return 0;
13685 }
13686 _ACEOF
13687 if ac_fn_c_try_compile "$LINENO"; then :
13688   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13689               ac_cv_c_bigendian=yes
13690             fi
13691             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13692               if test "$ac_cv_c_bigendian" = unknown; then
13693                 ac_cv_c_bigendian=no
13694               else
13695                 # finding both strings is unlikely to happen, but who knows?
13696                 ac_cv_c_bigendian=unknown
13697               fi
13698             fi
13699 fi
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 else
13702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h.  */
13704 $ac_includes_default
13705 int
13706 main ()
13707 {
13708
13709              /* Are we little or big endian?  From Harbison&Steele.  */
13710              union
13711              {
13712                long int l;
13713                char c[sizeof (long int)];
13714              } u;
13715              u.l = 1;
13716              return u.c[sizeof (long int) - 1] == 1;
13717
13718   ;
13719   return 0;
13720 }
13721 _ACEOF
13722 if ac_fn_c_try_run "$LINENO"; then :
13723   ac_cv_c_bigendian=no
13724 else
13725   ac_cv_c_bigendian=yes
13726 fi
13727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13728   conftest.$ac_objext conftest.beam conftest.$ac_ext
13729 fi
13730
13731     fi
13732 fi
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13734 $as_echo "$ac_cv_c_bigendian" >&6; }
13735  case $ac_cv_c_bigendian in #(
13736    yes)
13737      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13738 ;; #(
13739    no)
13740       ;; #(
13741    universal)
13742
13743 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13744
13745      ;; #(
13746    *)
13747      as_fn_error $? "unknown endianness
13748  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13749  esac
13750
13751 # The cast to long int works around a bug in the HP C Compiler
13752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13754 # This bug is HP SR number 8606223364.
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13756 $as_echo_n "checking size of void *... " >&6; }
13757 if ${ac_cv_sizeof_void_p+:} false; then :
13758   $as_echo_n "(cached) " >&6
13759 else
13760   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13761
13762 else
13763   if test "$ac_cv_type_void_p" = yes; then
13764      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13766 as_fn_error 77 "cannot compute sizeof (void *)
13767 See \`config.log' for more details" "$LINENO" 5; }
13768    else
13769      ac_cv_sizeof_void_p=0
13770    fi
13771 fi
13772
13773 fi
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13775 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13776
13777
13778
13779 cat >>confdefs.h <<_ACEOF
13780 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13781 _ACEOF
13782
13783
13784 # The cast to long int works around a bug in the HP C Compiler,
13785 # see AC_CHECK_SIZEOF for more information.
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
13787 $as_echo_n "checking alignment of double... " >&6; }
13788 if ${ac_cv_alignof_double+:} false; then :
13789   $as_echo_n "(cached) " >&6
13790 else
13791   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double"        "$ac_includes_default
13792 #ifndef offsetof
13793 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13794 #endif
13795 typedef struct { char x; double y; } ac__type_alignof_;"; then :
13796
13797 else
13798   if test "$ac_cv_type_double" = yes; then
13799      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13801 as_fn_error 77 "cannot compute alignment of double
13802 See \`config.log' for more details" "$LINENO" 5; }
13803    else
13804      ac_cv_alignof_double=0
13805    fi
13806 fi
13807
13808 fi
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
13810 $as_echo "$ac_cv_alignof_double" >&6; }
13811
13812
13813
13814 cat >>confdefs.h <<_ACEOF
13815 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
13816 _ACEOF
13817
13818
13819
13820
13821
13822 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-glyphname/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile doc/Makefile doc/version.sgml test/Makefile fontconfig.spec fontconfig.pc fontconfig-zip"
13823
13824 cat >confcache <<\_ACEOF
13825 # This file is a shell script that caches the results of configure
13826 # tests run on this system so they can be shared between configure
13827 # scripts and configure runs, see configure's option --config-cache.
13828 # It is not useful on other systems.  If it contains results you don't
13829 # want to keep, you may remove or edit it.
13830 #
13831 # config.status only pays attention to the cache file if you give it
13832 # the --recheck option to rerun configure.
13833 #
13834 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13835 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13836 # following values.
13837
13838 _ACEOF
13839
13840 # The following way of writing the cache mishandles newlines in values,
13841 # but we know of no workaround that is simple, portable, and efficient.
13842 # So, we kill variables containing newlines.
13843 # Ultrix sh set writes to stderr and can't be redirected directly,
13844 # and sets the high bit in the cache file unless we assign to the vars.
13845 (
13846   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13847     eval ac_val=\$$ac_var
13848     case $ac_val in #(
13849     *${as_nl}*)
13850       case $ac_var in #(
13851       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13852 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13853       esac
13854       case $ac_var in #(
13855       _ | IFS | as_nl) ;; #(
13856       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13857       *) { eval $ac_var=; unset $ac_var;} ;;
13858       esac ;;
13859     esac
13860   done
13861
13862   (set) 2>&1 |
13863     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13864     *${as_nl}ac_space=\ *)
13865       # `set' does not quote correctly, so add quotes: double-quote
13866       # substitution turns \\\\ into \\, and sed turns \\ into \.
13867       sed -n \
13868         "s/'/'\\\\''/g;
13869           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13870       ;; #(
13871     *)
13872       # `set' quotes correctly as required by POSIX, so do not add quotes.
13873       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13874       ;;
13875     esac |
13876     sort
13877 ) |
13878   sed '
13879      /^ac_cv_env_/b end
13880      t clear
13881      :clear
13882      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13883      t end
13884      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13885      :end' >>confcache
13886 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13887   if test -w "$cache_file"; then
13888     if test "x$cache_file" != "x/dev/null"; then
13889       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13890 $as_echo "$as_me: updating cache $cache_file" >&6;}
13891       if test ! -f "$cache_file" || test -h "$cache_file"; then
13892         cat confcache >"$cache_file"
13893       else
13894         case $cache_file in #(
13895         */* | ?:*)
13896           mv -f confcache "$cache_file"$$ &&
13897           mv -f "$cache_file"$$ "$cache_file" ;; #(
13898         *)
13899           mv -f confcache "$cache_file" ;;
13900         esac
13901       fi
13902     fi
13903   else
13904     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13905 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13906   fi
13907 fi
13908 rm -f confcache
13909
13910 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13911 # Let make expand exec_prefix.
13912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13913
13914 DEFS=-DHAVE_CONFIG_H
13915
13916 ac_libobjs=
13917 ac_ltlibobjs=
13918 U=
13919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13920   # 1. Remove the extension, and $U if already installed.
13921   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13922   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13923   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13924   #    will be set to the directory where LIBOBJS objects are built.
13925   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13926   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13927 done
13928 LIBOBJS=$ac_libobjs
13929
13930 LTLIBOBJS=$ac_ltlibobjs
13931
13932
13933  if test -n "$EXEEXT"; then
13934   am__EXEEXT_TRUE=
13935   am__EXEEXT_FALSE='#'
13936 else
13937   am__EXEEXT_TRUE='#'
13938   am__EXEEXT_FALSE=
13939 fi
13940
13941 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13942   as_fn_error $? "conditional \"AMDEP\" was never defined.
13943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13944 fi
13945 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13946   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13948 fi
13949 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
13950   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
13951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13952 fi
13953 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
13954   as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
13955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13956 fi
13957 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
13958   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
13959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13960 fi
13961 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
13962   as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
13963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13964 fi
13965 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
13966   as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
13967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13968 fi
13969
13970
13971 : "${CONFIG_STATUS=./config.status}"
13972 ac_write_fail=0
13973 ac_clean_files_save=$ac_clean_files
13974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13976 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13977 as_write_fail=0
13978 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13979 #! $SHELL
13980 # Generated by $as_me.
13981 # Run this file to recreate the current configuration.
13982 # Compiler output produced by configure, useful for debugging
13983 # configure, is in config.log if it exists.
13984
13985 debug=false
13986 ac_cs_recheck=false
13987 ac_cs_silent=false
13988
13989 SHELL=\${CONFIG_SHELL-$SHELL}
13990 export SHELL
13991 _ASEOF
13992 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13993 ## -------------------- ##
13994 ## M4sh Initialization. ##
13995 ## -------------------- ##
13996
13997 # Be more Bourne compatible
13998 DUALCASE=1; export DUALCASE # for MKS sh
13999 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14000   emulate sh
14001   NULLCMD=:
14002   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14003   # is contrary to our usage.  Disable this feature.
14004   alias -g '${1+"$@"}'='"$@"'
14005   setopt NO_GLOB_SUBST
14006 else
14007   case `(set -o) 2>/dev/null` in #(
14008   *posix*) :
14009     set -o posix ;; #(
14010   *) :
14011      ;;
14012 esac
14013 fi
14014
14015
14016 as_nl='
14017 '
14018 export as_nl
14019 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14020 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14021 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14022 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14023 # Prefer a ksh shell builtin over an external printf program on Solaris,
14024 # but without wasting forks for bash or zsh.
14025 if test -z "$BASH_VERSION$ZSH_VERSION" \
14026     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14027   as_echo='print -r --'
14028   as_echo_n='print -rn --'
14029 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14030   as_echo='printf %s\n'
14031   as_echo_n='printf %s'
14032 else
14033   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14034     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14035     as_echo_n='/usr/ucb/echo -n'
14036   else
14037     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14038     as_echo_n_body='eval
14039       arg=$1;
14040       case $arg in #(
14041       *"$as_nl"*)
14042         expr "X$arg" : "X\\(.*\\)$as_nl";
14043         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14044       esac;
14045       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14046     '
14047     export as_echo_n_body
14048     as_echo_n='sh -c $as_echo_n_body as_echo'
14049   fi
14050   export as_echo_body
14051   as_echo='sh -c $as_echo_body as_echo'
14052 fi
14053
14054 # The user is always right.
14055 if test "${PATH_SEPARATOR+set}" != set; then
14056   PATH_SEPARATOR=:
14057   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14058     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14059       PATH_SEPARATOR=';'
14060   }
14061 fi
14062
14063
14064 # IFS
14065 # We need space, tab and new line, in precisely that order.  Quoting is
14066 # there to prevent editors from complaining about space-tab.
14067 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14068 # splitting by setting IFS to empty value.)
14069 IFS=" ""        $as_nl"
14070
14071 # Find who we are.  Look in the path if we contain no directory separator.
14072 as_myself=
14073 case $0 in #((
14074   *[\\/]* ) as_myself=$0 ;;
14075   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14076 for as_dir in $PATH
14077 do
14078   IFS=$as_save_IFS
14079   test -z "$as_dir" && as_dir=.
14080     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14081   done
14082 IFS=$as_save_IFS
14083
14084      ;;
14085 esac
14086 # We did not find ourselves, most probably we were run as `sh COMMAND'
14087 # in which case we are not to be found in the path.
14088 if test "x$as_myself" = x; then
14089   as_myself=$0
14090 fi
14091 if test ! -f "$as_myself"; then
14092   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14093   exit 1
14094 fi
14095
14096 # Unset variables that we do not need and which cause bugs (e.g. in
14097 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14098 # suppresses any "Segmentation fault" message there.  '((' could
14099 # trigger a bug in pdksh 5.2.14.
14100 for as_var in BASH_ENV ENV MAIL MAILPATH
14101 do eval test x\${$as_var+set} = xset \
14102   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14103 done
14104 PS1='$ '
14105 PS2='> '
14106 PS4='+ '
14107
14108 # NLS nuisances.
14109 LC_ALL=C
14110 export LC_ALL
14111 LANGUAGE=C
14112 export LANGUAGE
14113
14114 # CDPATH.
14115 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14116
14117
14118 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14119 # ----------------------------------------
14120 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14121 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14122 # script with STATUS, using 1 if that was 0.
14123 as_fn_error ()
14124 {
14125   as_status=$1; test $as_status -eq 0 && as_status=1
14126   if test "$4"; then
14127     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14128     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14129   fi
14130   $as_echo "$as_me: error: $2" >&2
14131   as_fn_exit $as_status
14132 } # as_fn_error
14133
14134
14135 # as_fn_set_status STATUS
14136 # -----------------------
14137 # Set $? to STATUS, without forking.
14138 as_fn_set_status ()
14139 {
14140   return $1
14141 } # as_fn_set_status
14142
14143 # as_fn_exit STATUS
14144 # -----------------
14145 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14146 as_fn_exit ()
14147 {
14148   set +e
14149   as_fn_set_status $1
14150   exit $1
14151 } # as_fn_exit
14152
14153 # as_fn_unset VAR
14154 # ---------------
14155 # Portably unset VAR.
14156 as_fn_unset ()
14157 {
14158   { eval $1=; unset $1;}
14159 }
14160 as_unset=as_fn_unset
14161 # as_fn_append VAR VALUE
14162 # ----------------------
14163 # Append the text in VALUE to the end of the definition contained in VAR. Take
14164 # advantage of any shell optimizations that allow amortized linear growth over
14165 # repeated appends, instead of the typical quadratic growth present in naive
14166 # implementations.
14167 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14168   eval 'as_fn_append ()
14169   {
14170     eval $1+=\$2
14171   }'
14172 else
14173   as_fn_append ()
14174   {
14175     eval $1=\$$1\$2
14176   }
14177 fi # as_fn_append
14178
14179 # as_fn_arith ARG...
14180 # ------------------
14181 # Perform arithmetic evaluation on the ARGs, and store the result in the
14182 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14183 # must be portable across $(()) and expr.
14184 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14185   eval 'as_fn_arith ()
14186   {
14187     as_val=$(( $* ))
14188   }'
14189 else
14190   as_fn_arith ()
14191   {
14192     as_val=`expr "$@" || test $? -eq 1`
14193   }
14194 fi # as_fn_arith
14195
14196
14197 if expr a : '\(a\)' >/dev/null 2>&1 &&
14198    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14199   as_expr=expr
14200 else
14201   as_expr=false
14202 fi
14203
14204 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14205   as_basename=basename
14206 else
14207   as_basename=false
14208 fi
14209
14210 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14211   as_dirname=dirname
14212 else
14213   as_dirname=false
14214 fi
14215
14216 as_me=`$as_basename -- "$0" ||
14217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14218          X"$0" : 'X\(//\)$' \| \
14219          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14220 $as_echo X/"$0" |
14221     sed '/^.*\/\([^/][^/]*\)\/*$/{
14222             s//\1/
14223             q
14224           }
14225           /^X\/\(\/\/\)$/{
14226             s//\1/
14227             q
14228           }
14229           /^X\/\(\/\).*/{
14230             s//\1/
14231             q
14232           }
14233           s/.*/./; q'`
14234
14235 # Avoid depending upon Character Ranges.
14236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14239 as_cr_digits='0123456789'
14240 as_cr_alnum=$as_cr_Letters$as_cr_digits
14241
14242 ECHO_C= ECHO_N= ECHO_T=
14243 case `echo -n x` in #(((((
14244 -n*)
14245   case `echo 'xy\c'` in
14246   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14247   xy)  ECHO_C='\c';;
14248   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14249        ECHO_T=' ';;
14250   esac;;
14251 *)
14252   ECHO_N='-n';;
14253 esac
14254
14255 rm -f conf$$ conf$$.exe conf$$.file
14256 if test -d conf$$.dir; then
14257   rm -f conf$$.dir/conf$$.file
14258 else
14259   rm -f conf$$.dir
14260   mkdir conf$$.dir 2>/dev/null
14261 fi
14262 if (echo >conf$$.file) 2>/dev/null; then
14263   if ln -s conf$$.file conf$$ 2>/dev/null; then
14264     as_ln_s='ln -s'
14265     # ... but there are two gotchas:
14266     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14267     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14268     # In both cases, we have to default to `cp -p'.
14269     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14270       as_ln_s='cp -p'
14271   elif ln conf$$.file conf$$ 2>/dev/null; then
14272     as_ln_s=ln
14273   else
14274     as_ln_s='cp -p'
14275   fi
14276 else
14277   as_ln_s='cp -p'
14278 fi
14279 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14280 rmdir conf$$.dir 2>/dev/null
14281
14282
14283 # as_fn_mkdir_p
14284 # -------------
14285 # Create "$as_dir" as a directory, including parents if necessary.
14286 as_fn_mkdir_p ()
14287 {
14288
14289   case $as_dir in #(
14290   -*) as_dir=./$as_dir;;
14291   esac
14292   test -d "$as_dir" || eval $as_mkdir_p || {
14293     as_dirs=
14294     while :; do
14295       case $as_dir in #(
14296       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14297       *) as_qdir=$as_dir;;
14298       esac
14299       as_dirs="'$as_qdir' $as_dirs"
14300       as_dir=`$as_dirname -- "$as_dir" ||
14301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14302          X"$as_dir" : 'X\(//\)[^/]' \| \
14303          X"$as_dir" : 'X\(//\)$' \| \
14304          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14305 $as_echo X"$as_dir" |
14306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14307             s//\1/
14308             q
14309           }
14310           /^X\(\/\/\)[^/].*/{
14311             s//\1/
14312             q
14313           }
14314           /^X\(\/\/\)$/{
14315             s//\1/
14316             q
14317           }
14318           /^X\(\/\).*/{
14319             s//\1/
14320             q
14321           }
14322           s/.*/./; q'`
14323       test -d "$as_dir" && break
14324     done
14325     test -z "$as_dirs" || eval "mkdir $as_dirs"
14326   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14327
14328
14329 } # as_fn_mkdir_p
14330 if mkdir -p . 2>/dev/null; then
14331   as_mkdir_p='mkdir -p "$as_dir"'
14332 else
14333   test -d ./-p && rmdir ./-p
14334   as_mkdir_p=false
14335 fi
14336
14337 if test -x / >/dev/null 2>&1; then
14338   as_test_x='test -x'
14339 else
14340   if ls -dL / >/dev/null 2>&1; then
14341     as_ls_L_option=L
14342   else
14343     as_ls_L_option=
14344   fi
14345   as_test_x='
14346     eval sh -c '\''
14347       if test -d "$1"; then
14348         test -d "$1/.";
14349       else
14350         case $1 in #(
14351         -*)set "./$1";;
14352         esac;
14353         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14354         ???[sx]*):;;*)false;;esac;fi
14355     '\'' sh
14356   '
14357 fi
14358 as_executable_p=$as_test_x
14359
14360 # Sed expression to map a string onto a valid CPP name.
14361 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14362
14363 # Sed expression to map a string onto a valid variable name.
14364 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14365
14366
14367 exec 6>&1
14368 ## ----------------------------------- ##
14369 ## Main body of $CONFIG_STATUS script. ##
14370 ## ----------------------------------- ##
14371 _ASEOF
14372 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14373
14374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14375 # Save the log message, to keep $0 and so on meaningful, and to
14376 # report actual input values of CONFIG_FILES etc. instead of their
14377 # values after options handling.
14378 ac_log="
14379 This file was extended by $as_me, which was
14380 generated by GNU Autoconf 2.68.  Invocation command line was
14381
14382   CONFIG_FILES    = $CONFIG_FILES
14383   CONFIG_HEADERS  = $CONFIG_HEADERS
14384   CONFIG_LINKS    = $CONFIG_LINKS
14385   CONFIG_COMMANDS = $CONFIG_COMMANDS
14386   $ $0 $@
14387
14388 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14389 "
14390
14391 _ACEOF
14392
14393 case $ac_config_files in *"
14394 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14395 esac
14396
14397 case $ac_config_headers in *"
14398 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14399 esac
14400
14401
14402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14403 # Files that config.status was made for.
14404 config_files="$ac_config_files"
14405 config_headers="$ac_config_headers"
14406 config_commands="$ac_config_commands"
14407
14408 _ACEOF
14409
14410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14411 ac_cs_usage="\
14412 \`$as_me' instantiates files and other configuration actions
14413 from templates according to the current configuration.  Unless the files
14414 and actions are specified as TAGs, all are instantiated by default.
14415
14416 Usage: $0 [OPTION]... [TAG]...
14417
14418   -h, --help       print this help, then exit
14419   -V, --version    print version number and configuration settings, then exit
14420       --config     print configuration, then exit
14421   -q, --quiet, --silent
14422                    do not print progress messages
14423   -d, --debug      don't remove temporary files
14424       --recheck    update $as_me by reconfiguring in the same conditions
14425       --file=FILE[:TEMPLATE]
14426                    instantiate the configuration file FILE
14427       --header=FILE[:TEMPLATE]
14428                    instantiate the configuration header FILE
14429
14430 Configuration files:
14431 $config_files
14432
14433 Configuration headers:
14434 $config_headers
14435
14436 Configuration commands:
14437 $config_commands
14438
14439 Report bugs to the package provider."
14440
14441 _ACEOF
14442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14443 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14444 ac_cs_version="\\
14445 config.status
14446 configured by $0, generated by GNU Autoconf 2.68,
14447   with options \\"\$ac_cs_config\\"
14448
14449 Copyright (C) 2010 Free Software Foundation, Inc.
14450 This config.status script is free software; the Free Software Foundation
14451 gives unlimited permission to copy, distribute and modify it."
14452
14453 ac_pwd='$ac_pwd'
14454 srcdir='$srcdir'
14455 INSTALL='$INSTALL'
14456 MKDIR_P='$MKDIR_P'
14457 AWK='$AWK'
14458 test -n "\$AWK" || AWK=awk
14459 _ACEOF
14460
14461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14462 # The default lists apply if the user does not specify any file.
14463 ac_need_defaults=:
14464 while test $# != 0
14465 do
14466   case $1 in
14467   --*=?*)
14468     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14469     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14470     ac_shift=:
14471     ;;
14472   --*=)
14473     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14474     ac_optarg=
14475     ac_shift=:
14476     ;;
14477   *)
14478     ac_option=$1
14479     ac_optarg=$2
14480     ac_shift=shift
14481     ;;
14482   esac
14483
14484   case $ac_option in
14485   # Handling of the options.
14486   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14487     ac_cs_recheck=: ;;
14488   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14489     $as_echo "$ac_cs_version"; exit ;;
14490   --config | --confi | --conf | --con | --co | --c )
14491     $as_echo "$ac_cs_config"; exit ;;
14492   --debug | --debu | --deb | --de | --d | -d )
14493     debug=: ;;
14494   --file | --fil | --fi | --f )
14495     $ac_shift
14496     case $ac_optarg in
14497     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14498     '') as_fn_error $? "missing file argument" ;;
14499     esac
14500     as_fn_append CONFIG_FILES " '$ac_optarg'"
14501     ac_need_defaults=false;;
14502   --header | --heade | --head | --hea )
14503     $ac_shift
14504     case $ac_optarg in
14505     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14506     esac
14507     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14508     ac_need_defaults=false;;
14509   --he | --h)
14510     # Conflict between --help and --header
14511     as_fn_error $? "ambiguous option: \`$1'
14512 Try \`$0 --help' for more information.";;
14513   --help | --hel | -h )
14514     $as_echo "$ac_cs_usage"; exit ;;
14515   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14516   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14517     ac_cs_silent=: ;;
14518
14519   # This is an error.
14520   -*) as_fn_error $? "unrecognized option: \`$1'
14521 Try \`$0 --help' for more information." ;;
14522
14523   *) as_fn_append ac_config_targets " $1"
14524      ac_need_defaults=false ;;
14525
14526   esac
14527   shift
14528 done
14529
14530 ac_configure_extra_args=
14531
14532 if $ac_cs_silent; then
14533   exec 6>/dev/null
14534   ac_configure_extra_args="$ac_configure_extra_args --silent"
14535 fi
14536
14537 _ACEOF
14538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14539 if \$ac_cs_recheck; then
14540   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14541   shift
14542   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14543   CONFIG_SHELL='$SHELL'
14544   export CONFIG_SHELL
14545   exec "\$@"
14546 fi
14547
14548 _ACEOF
14549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14550 exec 5>>config.log
14551 {
14552   echo
14553   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14554 ## Running $as_me. ##
14555 _ASBOX
14556   $as_echo "$ac_log"
14557 } >&5
14558
14559 _ACEOF
14560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14561 #
14562 # INIT-COMMANDS
14563 #
14564 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14565
14566
14567 # The HP-UX ksh and POSIX shell print the target directory to stdout
14568 # if CDPATH is set.
14569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14570
14571 sed_quote_subst='$sed_quote_subst'
14572 double_quote_subst='$double_quote_subst'
14573 delay_variable_subst='$delay_variable_subst'
14574 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14575 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14576 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14577 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14578 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14579 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14580 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14581 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14582 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14583 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14584 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14585 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14586 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14587 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14588 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14589 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14590 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14591 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14592 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14593 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14594 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14595 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14596 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14597 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14598 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14599 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14600 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14601 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14602 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14603 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14604 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14605 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14606 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14607 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14608 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14609 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14610 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14611 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14612 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14613 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14614 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14615 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14616 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14617 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14618 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14619 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14620 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14621 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14622 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14623 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14624 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14625 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14626 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14627 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14628 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14629 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14630 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"`'
14631 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14632 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14633 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14634 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14635 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14636 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14637 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14638 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14639 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14640 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14641 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14642 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14643 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14644 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14645 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14646 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14647 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14648 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14649 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14650 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14651 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14652 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14653 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14654 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14655 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14656 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14657 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14658 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14659 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14660 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14661 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14662 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14663 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14664 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14665 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14666 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14667 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14668 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14669 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14670 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14671 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14672 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14673 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14674 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14675 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14676 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14677 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14678 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14679 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14680 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14681 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14682 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14683 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14684 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14685 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14686 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14687 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14688 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14689 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14690 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14691 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14692 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14693 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14694 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14695 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14696 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14697 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14698 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14699 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14700 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14701 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14702 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14703 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14704 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14705
14706 LTCC='$LTCC'
14707 LTCFLAGS='$LTCFLAGS'
14708 compiler='$compiler_DEFAULT'
14709
14710 # A function that is used when there is no print builtin or printf.
14711 func_fallback_echo ()
14712 {
14713   eval 'cat <<_LTECHO_EOF
14714 \$1
14715 _LTECHO_EOF'
14716 }
14717
14718 # Quote evaled strings.
14719 for var in AS \
14720 DLLTOOL \
14721 OBJDUMP \
14722 SHELL \
14723 ECHO \
14724 SED \
14725 GREP \
14726 EGREP \
14727 FGREP \
14728 LD \
14729 NM \
14730 LN_S \
14731 lt_SP2NL \
14732 lt_NL2SP \
14733 reload_flag \
14734 deplibs_check_method \
14735 file_magic_cmd \
14736 file_magic_glob \
14737 want_nocaseglob \
14738 sharedlib_from_linklib_cmd \
14739 AR \
14740 AR_FLAGS \
14741 archiver_list_spec \
14742 STRIP \
14743 RANLIB \
14744 CC \
14745 CFLAGS \
14746 compiler \
14747 lt_cv_sys_global_symbol_pipe \
14748 lt_cv_sys_global_symbol_to_cdecl \
14749 lt_cv_sys_global_symbol_to_c_name_address \
14750 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14751 nm_file_list_spec \
14752 lt_prog_compiler_no_builtin_flag \
14753 lt_prog_compiler_pic \
14754 lt_prog_compiler_wl \
14755 lt_prog_compiler_static \
14756 lt_cv_prog_compiler_c_o \
14757 need_locks \
14758 MANIFEST_TOOL \
14759 DSYMUTIL \
14760 NMEDIT \
14761 LIPO \
14762 OTOOL \
14763 OTOOL64 \
14764 shrext_cmds \
14765 export_dynamic_flag_spec \
14766 whole_archive_flag_spec \
14767 compiler_needs_object \
14768 with_gnu_ld \
14769 allow_undefined_flag \
14770 no_undefined_flag \
14771 hardcode_libdir_flag_spec \
14772 hardcode_libdir_flag_spec_ld \
14773 hardcode_libdir_separator \
14774 exclude_expsyms \
14775 include_expsyms \
14776 file_list_spec \
14777 variables_saved_for_relink \
14778 libname_spec \
14779 library_names_spec \
14780 soname_spec \
14781 install_override_mode \
14782 finish_eval \
14783 old_striplib \
14784 striplib; do
14785     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14786     *[\\\\\\\`\\"\\\$]*)
14787       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14788       ;;
14789     *)
14790       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14791       ;;
14792     esac
14793 done
14794
14795 # Double-quote double-evaled strings.
14796 for var in reload_cmds \
14797 old_postinstall_cmds \
14798 old_postuninstall_cmds \
14799 old_archive_cmds \
14800 extract_expsyms_cmds \
14801 old_archive_from_new_cmds \
14802 old_archive_from_expsyms_cmds \
14803 archive_cmds \
14804 archive_expsym_cmds \
14805 module_cmds \
14806 module_expsym_cmds \
14807 export_symbols_cmds \
14808 prelink_cmds \
14809 postlink_cmds \
14810 postinstall_cmds \
14811 postuninstall_cmds \
14812 finish_cmds \
14813 sys_lib_search_path_spec \
14814 sys_lib_dlsearch_path_spec; do
14815     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14816     *[\\\\\\\`\\"\\\$]*)
14817       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14818       ;;
14819     *)
14820       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14821       ;;
14822     esac
14823 done
14824
14825 ac_aux_dir='$ac_aux_dir'
14826 xsi_shell='$xsi_shell'
14827 lt_shell_append='$lt_shell_append'
14828
14829 # See if we are running on zsh, and set the options which allow our
14830 # commands through without removal of \ escapes INIT.
14831 if test -n "\${ZSH_VERSION+set}" ; then
14832    setopt NO_GLOB_SUBST
14833 fi
14834
14835
14836     PACKAGE='$PACKAGE'
14837     VERSION='$VERSION'
14838     TIMESTAMP='$TIMESTAMP'
14839     RM='$RM'
14840     ofile='$ofile'
14841
14842
14843
14844
14845 _ACEOF
14846
14847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14848
14849 # Handling of arguments.
14850 for ac_config_target in $ac_config_targets
14851 do
14852   case $ac_config_target in
14853     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14854     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14855     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14856     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14857     "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
14858     "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
14859     "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;;
14860     "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
14861     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14862     "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
14863     "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
14864     "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
14865     "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
14866     "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
14867     "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
14868     "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
14869     "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
14870     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14871     "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
14872     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14873     "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
14874     "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
14875     "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
14876
14877   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14878   esac
14879 done
14880
14881
14882 # If the user did not use the arguments to specify the items to instantiate,
14883 # then the envvar interface is used.  Set only those that are not.
14884 # We use the long form for the default assignment because of an extremely
14885 # bizarre bug on SunOS 4.1.3.
14886 if $ac_need_defaults; then
14887   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14888   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14889   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14890 fi
14891
14892 # Have a temporary directory for convenience.  Make it in the build tree
14893 # simply because there is no reason against having it here, and in addition,
14894 # creating and moving files from /tmp can sometimes cause problems.
14895 # Hook for its removal unless debugging.
14896 # Note that there is a small window in which the directory will not be cleaned:
14897 # after its creation but before its name has been assigned to `$tmp'.
14898 $debug ||
14899 {
14900   tmp= ac_tmp=
14901   trap 'exit_status=$?
14902   : "${ac_tmp:=$tmp}"
14903   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14904 ' 0
14905   trap 'as_fn_exit 1' 1 2 13 15
14906 }
14907 # Create a (secure) tmp directory for tmp files.
14908
14909 {
14910   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14911   test -d "$tmp"
14912 }  ||
14913 {
14914   tmp=./conf$$-$RANDOM
14915   (umask 077 && mkdir "$tmp")
14916 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14917 ac_tmp=$tmp
14918
14919 # Set up the scripts for CONFIG_FILES section.
14920 # No need to generate them if there are no CONFIG_FILES.
14921 # This happens for instance with `./config.status config.h'.
14922 if test -n "$CONFIG_FILES"; then
14923
14924
14925 ac_cr=`echo X | tr X '\015'`
14926 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14927 # But we know of no other shell where ac_cr would be empty at this
14928 # point, so we can use a bashism as a fallback.
14929 if test "x$ac_cr" = x; then
14930   eval ac_cr=\$\'\\r\'
14931 fi
14932 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14933 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14934   ac_cs_awk_cr='\\r'
14935 else
14936   ac_cs_awk_cr=$ac_cr
14937 fi
14938
14939 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14940 _ACEOF
14941
14942
14943 {
14944   echo "cat >conf$$subs.awk <<_ACEOF" &&
14945   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14946   echo "_ACEOF"
14947 } >conf$$subs.sh ||
14948   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14949 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14950 ac_delim='%!_!# '
14951 for ac_last_try in false false false false false :; do
14952   . ./conf$$subs.sh ||
14953     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14954
14955   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14956   if test $ac_delim_n = $ac_delim_num; then
14957     break
14958   elif $ac_last_try; then
14959     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14960   else
14961     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14962   fi
14963 done
14964 rm -f conf$$subs.sh
14965
14966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14967 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14968 _ACEOF
14969 sed -n '
14970 h
14971 s/^/S["/; s/!.*/"]=/
14972 p
14973 g
14974 s/^[^!]*!//
14975 :repl
14976 t repl
14977 s/'"$ac_delim"'$//
14978 t delim
14979 :nl
14980 h
14981 s/\(.\{148\}\)..*/\1/
14982 t more1
14983 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14984 p
14985 n
14986 b repl
14987 :more1
14988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14989 p
14990 g
14991 s/.\{148\}//
14992 t nl
14993 :delim
14994 h
14995 s/\(.\{148\}\)..*/\1/
14996 t more2
14997 s/["\\]/\\&/g; s/^/"/; s/$/"/
14998 p
14999 b
15000 :more2
15001 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15002 p
15003 g
15004 s/.\{148\}//
15005 t delim
15006 ' <conf$$subs.awk | sed '
15007 /^[^""]/{
15008   N
15009   s/\n//
15010 }
15011 ' >>$CONFIG_STATUS || ac_write_fail=1
15012 rm -f conf$$subs.awk
15013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15014 _ACAWK
15015 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15016   for (key in S) S_is_set[key] = 1
15017   FS = "\a"
15018
15019 }
15020 {
15021   line = $ 0
15022   nfields = split(line, field, "@")
15023   substed = 0
15024   len = length(field[1])
15025   for (i = 2; i < nfields; i++) {
15026     key = field[i]
15027     keylen = length(key)
15028     if (S_is_set[key]) {
15029       value = S[key]
15030       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15031       len += length(value) + length(field[++i])
15032       substed = 1
15033     } else
15034       len += 1 + keylen
15035   }
15036
15037   print line
15038 }
15039
15040 _ACAWK
15041 _ACEOF
15042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15043 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15044   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15045 else
15046   cat
15047 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15048   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15049 _ACEOF
15050
15051 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15052 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15053 # trailing colons and then remove the whole line if VPATH becomes empty
15054 # (actually we leave an empty line to preserve line numbers).
15055 if test "x$srcdir" = x.; then
15056   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15057 h
15058 s///
15059 s/^/:/
15060 s/[      ]*$/:/
15061 s/:\$(srcdir):/:/g
15062 s/:\${srcdir}:/:/g
15063 s/:@srcdir@:/:/g
15064 s/^:*//
15065 s/:*$//
15066 x
15067 s/\(=[   ]*\).*/\1/
15068 G
15069 s/\n//
15070 s/^[^=]*=[       ]*$//
15071 }'
15072 fi
15073
15074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15075 fi # test -n "$CONFIG_FILES"
15076
15077 # Set up the scripts for CONFIG_HEADERS section.
15078 # No need to generate them if there are no CONFIG_HEADERS.
15079 # This happens for instance with `./config.status Makefile'.
15080 if test -n "$CONFIG_HEADERS"; then
15081 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15082 BEGIN {
15083 _ACEOF
15084
15085 # Transform confdefs.h into an awk script `defines.awk', embedded as
15086 # here-document in config.status, that substitutes the proper values into
15087 # config.h.in to produce config.h.
15088
15089 # Create a delimiter string that does not exist in confdefs.h, to ease
15090 # handling of long lines.
15091 ac_delim='%!_!# '
15092 for ac_last_try in false false :; do
15093   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15094   if test -z "$ac_tt"; then
15095     break
15096   elif $ac_last_try; then
15097     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15098   else
15099     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15100   fi
15101 done
15102
15103 # For the awk script, D is an array of macro values keyed by name,
15104 # likewise P contains macro parameters if any.  Preserve backslash
15105 # newline sequences.
15106
15107 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15108 sed -n '
15109 s/.\{148\}/&'"$ac_delim"'/g
15110 t rset
15111 :rset
15112 s/^[     ]*#[    ]*define[       ][      ]*/ /
15113 t def
15114 d
15115 :def
15116 s/\\$//
15117 t bsnl
15118 s/["\\]/\\&/g
15119 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15120 D["\1"]=" \3"/p
15121 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15122 d
15123 :bsnl
15124 s/["\\]/\\&/g
15125 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15126 D["\1"]=" \3\\\\\\n"\\/p
15127 t cont
15128 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15129 t cont
15130 d
15131 :cont
15132 n
15133 s/.\{148\}/&'"$ac_delim"'/g
15134 t clear
15135 :clear
15136 s/\\$//
15137 t bsnlc
15138 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15139 d
15140 :bsnlc
15141 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15142 b cont
15143 ' <confdefs.h | sed '
15144 s/'"$ac_delim"'/"\\\
15145 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15146
15147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15148   for (key in D) D_is_set[key] = 1
15149   FS = "\a"
15150 }
15151 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15152   line = \$ 0
15153   split(line, arg, " ")
15154   if (arg[1] == "#") {
15155     defundef = arg[2]
15156     mac1 = arg[3]
15157   } else {
15158     defundef = substr(arg[1], 2)
15159     mac1 = arg[2]
15160   }
15161   split(mac1, mac2, "(") #)
15162   macro = mac2[1]
15163   prefix = substr(line, 1, index(line, defundef) - 1)
15164   if (D_is_set[macro]) {
15165     # Preserve the white space surrounding the "#".
15166     print prefix "define", macro P[macro] D[macro]
15167     next
15168   } else {
15169     # Replace #undef with comments.  This is necessary, for example,
15170     # in the case of _POSIX_SOURCE, which is predefined and required
15171     # on some systems where configure will not decide to define it.
15172     if (defundef == "undef") {
15173       print "/*", prefix defundef, macro, "*/"
15174       next
15175     }
15176   }
15177 }
15178 { print }
15179 _ACAWK
15180 _ACEOF
15181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15182   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15183 fi # test -n "$CONFIG_HEADERS"
15184
15185
15186 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15187 shift
15188 for ac_tag
15189 do
15190   case $ac_tag in
15191   :[FHLC]) ac_mode=$ac_tag; continue;;
15192   esac
15193   case $ac_mode$ac_tag in
15194   :[FHL]*:*);;
15195   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15196   :[FH]-) ac_tag=-:-;;
15197   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15198   esac
15199   ac_save_IFS=$IFS
15200   IFS=:
15201   set x $ac_tag
15202   IFS=$ac_save_IFS
15203   shift
15204   ac_file=$1
15205   shift
15206
15207   case $ac_mode in
15208   :L) ac_source=$1;;
15209   :[FH])
15210     ac_file_inputs=
15211     for ac_f
15212     do
15213       case $ac_f in
15214       -) ac_f="$ac_tmp/stdin";;
15215       *) # Look for the file first in the build tree, then in the source tree
15216          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15217          # because $ac_f cannot contain `:'.
15218          test -f "$ac_f" ||
15219            case $ac_f in
15220            [\\/$]*) false;;
15221            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15222            esac ||
15223            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15224       esac
15225       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15226       as_fn_append ac_file_inputs " '$ac_f'"
15227     done
15228
15229     # Let's still pretend it is `configure' which instantiates (i.e., don't
15230     # use $as_me), people would be surprised to read:
15231     #    /* config.h.  Generated by config.status.  */
15232     configure_input='Generated from '`
15233           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15234         `' by configure.'
15235     if test x"$ac_file" != x-; then
15236       configure_input="$ac_file.  $configure_input"
15237       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15238 $as_echo "$as_me: creating $ac_file" >&6;}
15239     fi
15240     # Neutralize special characters interpreted by sed in replacement strings.
15241     case $configure_input in #(
15242     *\&* | *\|* | *\\* )
15243        ac_sed_conf_input=`$as_echo "$configure_input" |
15244        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15245     *) ac_sed_conf_input=$configure_input;;
15246     esac
15247
15248     case $ac_tag in
15249     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15250       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15251     esac
15252     ;;
15253   esac
15254
15255   ac_dir=`$as_dirname -- "$ac_file" ||
15256 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15257          X"$ac_file" : 'X\(//\)[^/]' \| \
15258          X"$ac_file" : 'X\(//\)$' \| \
15259          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15260 $as_echo X"$ac_file" |
15261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15262             s//\1/
15263             q
15264           }
15265           /^X\(\/\/\)[^/].*/{
15266             s//\1/
15267             q
15268           }
15269           /^X\(\/\/\)$/{
15270             s//\1/
15271             q
15272           }
15273           /^X\(\/\).*/{
15274             s//\1/
15275             q
15276           }
15277           s/.*/./; q'`
15278   as_dir="$ac_dir"; as_fn_mkdir_p
15279   ac_builddir=.
15280
15281 case "$ac_dir" in
15282 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15283 *)
15284   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15285   # A ".." for each directory in $ac_dir_suffix.
15286   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15287   case $ac_top_builddir_sub in
15288   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15289   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15290   esac ;;
15291 esac
15292 ac_abs_top_builddir=$ac_pwd
15293 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15294 # for backward compatibility:
15295 ac_top_builddir=$ac_top_build_prefix
15296
15297 case $srcdir in
15298   .)  # We are building in place.
15299     ac_srcdir=.
15300     ac_top_srcdir=$ac_top_builddir_sub
15301     ac_abs_top_srcdir=$ac_pwd ;;
15302   [\\/]* | ?:[\\/]* )  # Absolute name.
15303     ac_srcdir=$srcdir$ac_dir_suffix;
15304     ac_top_srcdir=$srcdir
15305     ac_abs_top_srcdir=$srcdir ;;
15306   *) # Relative name.
15307     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15308     ac_top_srcdir=$ac_top_build_prefix$srcdir
15309     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15310 esac
15311 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15312
15313
15314   case $ac_mode in
15315   :F)
15316   #
15317   # CONFIG_FILE
15318   #
15319
15320   case $INSTALL in
15321   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15322   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15323   esac
15324   ac_MKDIR_P=$MKDIR_P
15325   case $MKDIR_P in
15326   [\\/$]* | ?:[\\/]* ) ;;
15327   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15328   esac
15329 _ACEOF
15330
15331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15332 # If the template does not know about datarootdir, expand it.
15333 # FIXME: This hack should be removed a few years after 2.60.
15334 ac_datarootdir_hack=; ac_datarootdir_seen=
15335 ac_sed_dataroot='
15336 /datarootdir/ {
15337   p
15338   q
15339 }
15340 /@datadir@/p
15341 /@docdir@/p
15342 /@infodir@/p
15343 /@localedir@/p
15344 /@mandir@/p'
15345 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15346 *datarootdir*) ac_datarootdir_seen=yes;;
15347 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15348   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15349 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15350 _ACEOF
15351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15352   ac_datarootdir_hack='
15353   s&@datadir@&$datadir&g
15354   s&@docdir@&$docdir&g
15355   s&@infodir@&$infodir&g
15356   s&@localedir@&$localedir&g
15357   s&@mandir@&$mandir&g
15358   s&\\\${datarootdir}&$datarootdir&g' ;;
15359 esac
15360 _ACEOF
15361
15362 # Neutralize VPATH when `$srcdir' = `.'.
15363 # Shell code in configure.ac might set extrasub.
15364 # FIXME: do we really want to maintain this feature?
15365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15366 ac_sed_extra="$ac_vpsub
15367 $extrasub
15368 _ACEOF
15369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15370 :t
15371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15372 s|@configure_input@|$ac_sed_conf_input|;t t
15373 s&@top_builddir@&$ac_top_builddir_sub&;t t
15374 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15375 s&@srcdir@&$ac_srcdir&;t t
15376 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15377 s&@top_srcdir@&$ac_top_srcdir&;t t
15378 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15379 s&@builddir@&$ac_builddir&;t t
15380 s&@abs_builddir@&$ac_abs_builddir&;t t
15381 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15382 s&@INSTALL@&$ac_INSTALL&;t t
15383 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15384 $ac_datarootdir_hack
15385 "
15386 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15387   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15388
15389 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15390   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15391   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15392       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15393   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15394 which seems to be undefined.  Please make sure it is defined" >&5
15395 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15396 which seems to be undefined.  Please make sure it is defined" >&2;}
15397
15398   rm -f "$ac_tmp/stdin"
15399   case $ac_file in
15400   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15401   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15402   esac \
15403   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15404  ;;
15405   :H)
15406   #
15407   # CONFIG_HEADER
15408   #
15409   if test x"$ac_file" != x-; then
15410     {
15411       $as_echo "/* $configure_input  */" \
15412       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15413     } >"$ac_tmp/config.h" \
15414       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15415     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15416       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15417 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15418     else
15419       rm -f "$ac_file"
15420       mv "$ac_tmp/config.h" "$ac_file" \
15421         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15422     fi
15423   else
15424     $as_echo "/* $configure_input  */" \
15425       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15426       || as_fn_error $? "could not create -" "$LINENO" 5
15427   fi
15428 # Compute "$ac_file"'s index in $config_headers.
15429 _am_arg="$ac_file"
15430 _am_stamp_count=1
15431 for _am_header in $config_headers :; do
15432   case $_am_header in
15433     $_am_arg | $_am_arg:* )
15434       break ;;
15435     * )
15436       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15437   esac
15438 done
15439 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15440 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15441          X"$_am_arg" : 'X\(//\)[^/]' \| \
15442          X"$_am_arg" : 'X\(//\)$' \| \
15443          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15444 $as_echo X"$_am_arg" |
15445     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15446             s//\1/
15447             q
15448           }
15449           /^X\(\/\/\)[^/].*/{
15450             s//\1/
15451             q
15452           }
15453           /^X\(\/\/\)$/{
15454             s//\1/
15455             q
15456           }
15457           /^X\(\/\).*/{
15458             s//\1/
15459             q
15460           }
15461           s/.*/./; q'`/stamp-h$_am_stamp_count
15462  ;;
15463
15464   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15465 $as_echo "$as_me: executing $ac_file commands" >&6;}
15466  ;;
15467   esac
15468
15469
15470   case $ac_file$ac_mode in
15471     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15472   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15473   # are listed without --file.  Let's play safe and only enable the eval
15474   # if we detect the quoting.
15475   case $CONFIG_FILES in
15476   *\'*) eval set x "$CONFIG_FILES" ;;
15477   *)   set x $CONFIG_FILES ;;
15478   esac
15479   shift
15480   for mf
15481   do
15482     # Strip MF so we end up with the name of the file.
15483     mf=`echo "$mf" | sed -e 's/:.*$//'`
15484     # Check whether this is an Automake generated Makefile or not.
15485     # We used to match only the files named `Makefile.in', but
15486     # some people rename them; so instead we look at the file content.
15487     # Grep'ing the first line is not enough: some people post-process
15488     # each Makefile.in and add a new line on top of each file to say so.
15489     # Grep'ing the whole file is not good either: AIX grep has a line
15490     # limit of 2048, but all sed's we know have understand at least 4000.
15491     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15492       dirpart=`$as_dirname -- "$mf" ||
15493 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15494          X"$mf" : 'X\(//\)[^/]' \| \
15495          X"$mf" : 'X\(//\)$' \| \
15496          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15497 $as_echo X"$mf" |
15498     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15499             s//\1/
15500             q
15501           }
15502           /^X\(\/\/\)[^/].*/{
15503             s//\1/
15504             q
15505           }
15506           /^X\(\/\/\)$/{
15507             s//\1/
15508             q
15509           }
15510           /^X\(\/\).*/{
15511             s//\1/
15512             q
15513           }
15514           s/.*/./; q'`
15515     else
15516       continue
15517     fi
15518     # Extract the definition of DEPDIR, am__include, and am__quote
15519     # from the Makefile without running `make'.
15520     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15521     test -z "$DEPDIR" && continue
15522     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15523     test -z "am__include" && continue
15524     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15525     # When using ansi2knr, U may be empty or an underscore; expand it
15526     U=`sed -n 's/^U = //p' < "$mf"`
15527     # Find all dependency output files, they are included files with
15528     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15529     # simplest approach to changing $(DEPDIR) to its actual value in the
15530     # expansion.
15531     for file in `sed -n "
15532       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15533          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15534       # Make sure the directory exists.
15535       test -f "$dirpart/$file" && continue
15536       fdir=`$as_dirname -- "$file" ||
15537 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15538          X"$file" : 'X\(//\)[^/]' \| \
15539          X"$file" : 'X\(//\)$' \| \
15540          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15541 $as_echo X"$file" |
15542     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15543             s//\1/
15544             q
15545           }
15546           /^X\(\/\/\)[^/].*/{
15547             s//\1/
15548             q
15549           }
15550           /^X\(\/\/\)$/{
15551             s//\1/
15552             q
15553           }
15554           /^X\(\/\).*/{
15555             s//\1/
15556             q
15557           }
15558           s/.*/./; q'`
15559       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15560       # echo "creating $dirpart/$file"
15561       echo '# dummy' > "$dirpart/$file"
15562     done
15563   done
15564 }
15565  ;;
15566     "libtool":C)
15567
15568     # See if we are running on zsh, and set the options which allow our
15569     # commands through without removal of \ escapes.
15570     if test -n "${ZSH_VERSION+set}" ; then
15571       setopt NO_GLOB_SUBST
15572     fi
15573
15574     cfgfile="${ofile}T"
15575     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15576     $RM "$cfgfile"
15577
15578     cat <<_LT_EOF >> "$cfgfile"
15579 #! $SHELL
15580
15581 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15582 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15583 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15584 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15585 #
15586 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15587 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15588 #                 Inc.
15589 #   Written by Gordon Matzigkeit, 1996
15590 #
15591 #   This file is part of GNU Libtool.
15592 #
15593 # GNU Libtool is free software; you can redistribute it and/or
15594 # modify it under the terms of the GNU General Public License as
15595 # published by the Free Software Foundation; either version 2 of
15596 # the License, or (at your option) any later version.
15597 #
15598 # As a special exception to the GNU General Public License,
15599 # if you distribute this file as part of a program or library that
15600 # is built using GNU Libtool, you may include this file under the
15601 # same distribution terms that you use for the rest of that program.
15602 #
15603 # GNU Libtool is distributed in the hope that it will be useful,
15604 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15605 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15606 # GNU General Public License for more details.
15607 #
15608 # You should have received a copy of the GNU General Public License
15609 # along with GNU Libtool; see the file COPYING.  If not, a copy
15610 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15611 # obtained by writing to the Free Software Foundation, Inc.,
15612 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15613
15614
15615 # The names of the tagged configurations supported by this script.
15616 available_tags=""
15617
15618 # ### BEGIN LIBTOOL CONFIG
15619
15620 # Assembler program.
15621 AS=$lt_AS
15622
15623 # DLL creation program.
15624 DLLTOOL=$lt_DLLTOOL
15625
15626 # Object dumper program.
15627 OBJDUMP=$lt_OBJDUMP
15628
15629 # Which release of libtool.m4 was used?
15630 macro_version=$macro_version
15631 macro_revision=$macro_revision
15632
15633 # Whether or not to build shared libraries.
15634 build_libtool_libs=$enable_shared
15635
15636 # Whether or not to build static libraries.
15637 build_old_libs=$enable_static
15638
15639 # What type of objects to build.
15640 pic_mode=$pic_mode
15641
15642 # Whether or not to optimize for fast installation.
15643 fast_install=$enable_fast_install
15644
15645 # Shell to use when invoking shell scripts.
15646 SHELL=$lt_SHELL
15647
15648 # An echo program that protects backslashes.
15649 ECHO=$lt_ECHO
15650
15651 # The host system.
15652 host_alias=$host_alias
15653 host=$host
15654 host_os=$host_os
15655
15656 # The build system.
15657 build_alias=$build_alias
15658 build=$build
15659 build_os=$build_os
15660
15661 # A sed program that does not truncate output.
15662 SED=$lt_SED
15663
15664 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15665 Xsed="\$SED -e 1s/^X//"
15666
15667 # A grep program that handles long lines.
15668 GREP=$lt_GREP
15669
15670 # An ERE matcher.
15671 EGREP=$lt_EGREP
15672
15673 # A literal string matcher.
15674 FGREP=$lt_FGREP
15675
15676 # A BSD- or MS-compatible name lister.
15677 NM=$lt_NM
15678
15679 # Whether we need soft or hard links.
15680 LN_S=$lt_LN_S
15681
15682 # What is the maximum length of a command?
15683 max_cmd_len=$max_cmd_len
15684
15685 # Object file suffix (normally "o").
15686 objext=$ac_objext
15687
15688 # Executable file suffix (normally "").
15689 exeext=$exeext
15690
15691 # whether the shell understands "unset".
15692 lt_unset=$lt_unset
15693
15694 # turn spaces into newlines.
15695 SP2NL=$lt_lt_SP2NL
15696
15697 # turn newlines into spaces.
15698 NL2SP=$lt_lt_NL2SP
15699
15700 # convert \$build file names to \$host format.
15701 to_host_file_cmd=$lt_cv_to_host_file_cmd
15702
15703 # convert \$build files to toolchain format.
15704 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15705
15706 # Method to check whether dependent libraries are shared objects.
15707 deplibs_check_method=$lt_deplibs_check_method
15708
15709 # Command to use when deplibs_check_method = "file_magic".
15710 file_magic_cmd=$lt_file_magic_cmd
15711
15712 # How to find potential files when deplibs_check_method = "file_magic".
15713 file_magic_glob=$lt_file_magic_glob
15714
15715 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15716 want_nocaseglob=$lt_want_nocaseglob
15717
15718 # Command to associate shared and link libraries.
15719 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15720
15721 # The archiver.
15722 AR=$lt_AR
15723
15724 # Flags to create an archive.
15725 AR_FLAGS=$lt_AR_FLAGS
15726
15727 # How to feed a file listing to the archiver.
15728 archiver_list_spec=$lt_archiver_list_spec
15729
15730 # A symbol stripping program.
15731 STRIP=$lt_STRIP
15732
15733 # Commands used to install an old-style archive.
15734 RANLIB=$lt_RANLIB
15735 old_postinstall_cmds=$lt_old_postinstall_cmds
15736 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15737
15738 # Whether to use a lock for old archive extraction.
15739 lock_old_archive_extraction=$lock_old_archive_extraction
15740
15741 # A C compiler.
15742 LTCC=$lt_CC
15743
15744 # LTCC compiler flags.
15745 LTCFLAGS=$lt_CFLAGS
15746
15747 # Take the output of nm and produce a listing of raw symbols and C names.
15748 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15749
15750 # Transform the output of nm in a proper C declaration.
15751 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15752
15753 # Transform the output of nm in a C name address pair.
15754 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15755
15756 # Transform the output of nm in a C name address pair when lib prefix is needed.
15757 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15758
15759 # Specify filename containing input files for \$NM.
15760 nm_file_list_spec=$lt_nm_file_list_spec
15761
15762 # The root where to search for dependent libraries,and in which our libraries should be installed.
15763 lt_sysroot=$lt_sysroot
15764
15765 # The name of the directory that contains temporary libtool files.
15766 objdir=$objdir
15767
15768 # Used to examine libraries when file_magic_cmd begins with "file".
15769 MAGIC_CMD=$MAGIC_CMD
15770
15771 # Must we lock files when doing compilation?
15772 need_locks=$lt_need_locks
15773
15774 # Manifest tool.
15775 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15776
15777 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15778 DSYMUTIL=$lt_DSYMUTIL
15779
15780 # Tool to change global to local symbols on Mac OS X.
15781 NMEDIT=$lt_NMEDIT
15782
15783 # Tool to manipulate fat objects and archives on Mac OS X.
15784 LIPO=$lt_LIPO
15785
15786 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15787 OTOOL=$lt_OTOOL
15788
15789 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15790 OTOOL64=$lt_OTOOL64
15791
15792 # Old archive suffix (normally "a").
15793 libext=$libext
15794
15795 # Shared library suffix (normally ".so").
15796 shrext_cmds=$lt_shrext_cmds
15797
15798 # The commands to extract the exported symbol list from a shared archive.
15799 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15800
15801 # Variables whose values should be saved in libtool wrapper scripts and
15802 # restored at link time.
15803 variables_saved_for_relink=$lt_variables_saved_for_relink
15804
15805 # Do we need the "lib" prefix for modules?
15806 need_lib_prefix=$need_lib_prefix
15807
15808 # Do we need a version for libraries?
15809 need_version=$need_version
15810
15811 # Library versioning type.
15812 version_type=$version_type
15813
15814 # Shared library runtime path variable.
15815 runpath_var=$runpath_var
15816
15817 # Shared library path variable.
15818 shlibpath_var=$shlibpath_var
15819
15820 # Is shlibpath searched before the hard-coded library search path?
15821 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15822
15823 # Format of library name prefix.
15824 libname_spec=$lt_libname_spec
15825
15826 # List of archive names.  First name is the real one, the rest are links.
15827 # The last name is the one that the linker finds with -lNAME
15828 library_names_spec=$lt_library_names_spec
15829
15830 # The coded name of the library, if different from the real name.
15831 soname_spec=$lt_soname_spec
15832
15833 # Permission mode override for installation of shared libraries.
15834 install_override_mode=$lt_install_override_mode
15835
15836 # Command to use after installation of a shared archive.
15837 postinstall_cmds=$lt_postinstall_cmds
15838
15839 # Command to use after uninstallation of a shared archive.
15840 postuninstall_cmds=$lt_postuninstall_cmds
15841
15842 # Commands used to finish a libtool library installation in a directory.
15843 finish_cmds=$lt_finish_cmds
15844
15845 # As "finish_cmds", except a single script fragment to be evaled but
15846 # not shown.
15847 finish_eval=$lt_finish_eval
15848
15849 # Whether we should hardcode library paths into libraries.
15850 hardcode_into_libs=$hardcode_into_libs
15851
15852 # Compile-time system search path for libraries.
15853 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15854
15855 # Run-time system search path for libraries.
15856 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15857
15858 # Whether dlopen is supported.
15859 dlopen_support=$enable_dlopen
15860
15861 # Whether dlopen of programs is supported.
15862 dlopen_self=$enable_dlopen_self
15863
15864 # Whether dlopen of statically linked programs is supported.
15865 dlopen_self_static=$enable_dlopen_self_static
15866
15867 # Commands to strip libraries.
15868 old_striplib=$lt_old_striplib
15869 striplib=$lt_striplib
15870
15871
15872 # The linker used to build libraries.
15873 LD=$lt_LD
15874
15875 # How to create reloadable object files.
15876 reload_flag=$lt_reload_flag
15877 reload_cmds=$lt_reload_cmds
15878
15879 # Commands used to build an old-style archive.
15880 old_archive_cmds=$lt_old_archive_cmds
15881
15882 # A language specific compiler.
15883 CC=$lt_compiler
15884
15885 # Is the compiler the GNU compiler?
15886 with_gcc=$GCC
15887
15888 # Compiler flag to turn off builtin functions.
15889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15890
15891 # Additional compiler flags for building library objects.
15892 pic_flag=$lt_lt_prog_compiler_pic
15893
15894 # How to pass a linker flag through the compiler.
15895 wl=$lt_lt_prog_compiler_wl
15896
15897 # Compiler flag to prevent dynamic linking.
15898 link_static_flag=$lt_lt_prog_compiler_static
15899
15900 # Does compiler simultaneously support -c and -o options?
15901 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15902
15903 # Whether or not to add -lc for building shared libraries.
15904 build_libtool_need_lc=$archive_cmds_need_lc
15905
15906 # Whether or not to disallow shared libs when runtime libs are static.
15907 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15908
15909 # Compiler flag to allow reflexive dlopens.
15910 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15911
15912 # Compiler flag to generate shared objects directly from archives.
15913 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15914
15915 # Whether the compiler copes with passing no objects directly.
15916 compiler_needs_object=$lt_compiler_needs_object
15917
15918 # Create an old-style archive from a shared archive.
15919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15920
15921 # Create a temporary old-style archive to link instead of a shared archive.
15922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15923
15924 # Commands used to build a shared archive.
15925 archive_cmds=$lt_archive_cmds
15926 archive_expsym_cmds=$lt_archive_expsym_cmds
15927
15928 # Commands used to build a loadable module if different from building
15929 # a shared archive.
15930 module_cmds=$lt_module_cmds
15931 module_expsym_cmds=$lt_module_expsym_cmds
15932
15933 # Whether we are building with GNU ld or not.
15934 with_gnu_ld=$lt_with_gnu_ld
15935
15936 # Flag that allows shared libraries with undefined symbols to be built.
15937 allow_undefined_flag=$lt_allow_undefined_flag
15938
15939 # Flag that enforces no undefined symbols.
15940 no_undefined_flag=$lt_no_undefined_flag
15941
15942 # Flag to hardcode \$libdir into a binary during linking.
15943 # This must work even if \$libdir does not exist
15944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15945
15946 # If ld is used when linking, flag to hardcode \$libdir into a binary
15947 # during linking.  This must work even if \$libdir does not exist.
15948 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15949
15950 # Whether we need a single "-rpath" flag with a separated argument.
15951 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15952
15953 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15954 # DIR into the resulting binary.
15955 hardcode_direct=$hardcode_direct
15956
15957 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15958 # DIR into the resulting binary and the resulting library dependency is
15959 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15960 # library is relocated.
15961 hardcode_direct_absolute=$hardcode_direct_absolute
15962
15963 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15964 # into the resulting binary.
15965 hardcode_minus_L=$hardcode_minus_L
15966
15967 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15968 # into the resulting binary.
15969 hardcode_shlibpath_var=$hardcode_shlibpath_var
15970
15971 # Set to "yes" if building a shared library automatically hardcodes DIR
15972 # into the library and all subsequent libraries and executables linked
15973 # against it.
15974 hardcode_automatic=$hardcode_automatic
15975
15976 # Set to yes if linker adds runtime paths of dependent libraries
15977 # to runtime path list.
15978 inherit_rpath=$inherit_rpath
15979
15980 # Whether libtool must link a program against all its dependency libraries.
15981 link_all_deplibs=$link_all_deplibs
15982
15983 # Set to "yes" if exported symbols are required.
15984 always_export_symbols=$always_export_symbols
15985
15986 # The commands to list exported symbols.
15987 export_symbols_cmds=$lt_export_symbols_cmds
15988
15989 # Symbols that should not be listed in the preloaded symbols.
15990 exclude_expsyms=$lt_exclude_expsyms
15991
15992 # Symbols that must always be exported.
15993 include_expsyms=$lt_include_expsyms
15994
15995 # Commands necessary for linking programs (against libraries) with templates.
15996 prelink_cmds=$lt_prelink_cmds
15997
15998 # Commands necessary for finishing linking programs.
15999 postlink_cmds=$lt_postlink_cmds
16000
16001 # Specify filename containing input files.
16002 file_list_spec=$lt_file_list_spec
16003
16004 # How to hardcode a shared library path into an executable.
16005 hardcode_action=$hardcode_action
16006
16007 # ### END LIBTOOL CONFIG
16008
16009 _LT_EOF
16010
16011   case $host_os in
16012   aix3*)
16013     cat <<\_LT_EOF >> "$cfgfile"
16014 # AIX sometimes has problems with the GCC collect2 program.  For some
16015 # reason, if we set the COLLECT_NAMES environment variable, the problems
16016 # vanish in a puff of smoke.
16017 if test "X${COLLECT_NAMES+set}" != Xset; then
16018   COLLECT_NAMES=
16019   export COLLECT_NAMES
16020 fi
16021 _LT_EOF
16022     ;;
16023   esac
16024
16025
16026 ltmain="$ac_aux_dir/ltmain.sh"
16027
16028
16029   # We use sed instead of cat because bash on DJGPP gets confused if
16030   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16031   # text mode, it properly converts lines to CR/LF.  This bash problem
16032   # is reportedly fixed, but why not run on old versions too?
16033   sed '$q' "$ltmain" >> "$cfgfile" \
16034      || (rm -f "$cfgfile"; exit 1)
16035
16036   if test x"$xsi_shell" = xyes; then
16037   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16038 func_dirname ()\
16039 {\
16040 \    case ${1} in\
16041 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16042 \      *  ) func_dirname_result="${3}" ;;\
16043 \    esac\
16044 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16045   && mv -f "$cfgfile.tmp" "$cfgfile" \
16046     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16047 test 0 -eq $? || _lt_function_replace_fail=:
16048
16049
16050   sed -e '/^func_basename ()$/,/^} # func_basename /c\
16051 func_basename ()\
16052 {\
16053 \    func_basename_result="${1##*/}"\
16054 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16055   && mv -f "$cfgfile.tmp" "$cfgfile" \
16056     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16057 test 0 -eq $? || _lt_function_replace_fail=:
16058
16059
16060   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16061 func_dirname_and_basename ()\
16062 {\
16063 \    case ${1} in\
16064 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16065 \      *  ) func_dirname_result="${3}" ;;\
16066 \    esac\
16067 \    func_basename_result="${1##*/}"\
16068 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16069   && mv -f "$cfgfile.tmp" "$cfgfile" \
16070     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16071 test 0 -eq $? || _lt_function_replace_fail=:
16072
16073
16074   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16075 func_stripname ()\
16076 {\
16077 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16078 \    # positional parameters, so assign one to ordinary parameter first.\
16079 \    func_stripname_result=${3}\
16080 \    func_stripname_result=${func_stripname_result#"${1}"}\
16081 \    func_stripname_result=${func_stripname_result%"${2}"}\
16082 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16083   && mv -f "$cfgfile.tmp" "$cfgfile" \
16084     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16085 test 0 -eq $? || _lt_function_replace_fail=:
16086
16087
16088   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16089 func_split_long_opt ()\
16090 {\
16091 \    func_split_long_opt_name=${1%%=*}\
16092 \    func_split_long_opt_arg=${1#*=}\
16093 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16094   && mv -f "$cfgfile.tmp" "$cfgfile" \
16095     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16096 test 0 -eq $? || _lt_function_replace_fail=:
16097
16098
16099   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16100 func_split_short_opt ()\
16101 {\
16102 \    func_split_short_opt_arg=${1#??}\
16103 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16104 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16105   && mv -f "$cfgfile.tmp" "$cfgfile" \
16106     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16107 test 0 -eq $? || _lt_function_replace_fail=:
16108
16109
16110   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16111 func_lo2o ()\
16112 {\
16113 \    case ${1} in\
16114 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16115 \      *)    func_lo2o_result=${1} ;;\
16116 \    esac\
16117 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16118   && mv -f "$cfgfile.tmp" "$cfgfile" \
16119     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16120 test 0 -eq $? || _lt_function_replace_fail=:
16121
16122
16123   sed -e '/^func_xform ()$/,/^} # func_xform /c\
16124 func_xform ()\
16125 {\
16126     func_xform_result=${1%.*}.lo\
16127 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16128   && mv -f "$cfgfile.tmp" "$cfgfile" \
16129     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16130 test 0 -eq $? || _lt_function_replace_fail=:
16131
16132
16133   sed -e '/^func_arith ()$/,/^} # func_arith /c\
16134 func_arith ()\
16135 {\
16136     func_arith_result=$(( $* ))\
16137 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16138   && mv -f "$cfgfile.tmp" "$cfgfile" \
16139     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16140 test 0 -eq $? || _lt_function_replace_fail=:
16141
16142
16143   sed -e '/^func_len ()$/,/^} # func_len /c\
16144 func_len ()\
16145 {\
16146     func_len_result=${#1}\
16147 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16148   && mv -f "$cfgfile.tmp" "$cfgfile" \
16149     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16150 test 0 -eq $? || _lt_function_replace_fail=:
16151
16152 fi
16153
16154 if test x"$lt_shell_append" = xyes; then
16155   sed -e '/^func_append ()$/,/^} # func_append /c\
16156 func_append ()\
16157 {\
16158     eval "${1}+=\\${2}"\
16159 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16160   && mv -f "$cfgfile.tmp" "$cfgfile" \
16161     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16162 test 0 -eq $? || _lt_function_replace_fail=:
16163
16164
16165   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16166 func_append_quoted ()\
16167 {\
16168 \    func_quote_for_eval "${2}"\
16169 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16170 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16171   && mv -f "$cfgfile.tmp" "$cfgfile" \
16172     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16173 test 0 -eq $? || _lt_function_replace_fail=:
16174
16175
16176   # Save a `func_append' function call where possible by direct use of '+='
16177   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16178     && mv -f "$cfgfile.tmp" "$cfgfile" \
16179       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16180   test 0 -eq $? || _lt_function_replace_fail=:
16181 else
16182   # Save a `func_append' function call even when '+=' is not available
16183   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16184     && mv -f "$cfgfile.tmp" "$cfgfile" \
16185       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16186   test 0 -eq $? || _lt_function_replace_fail=:
16187 fi
16188
16189 if test x"$_lt_function_replace_fail" = x":"; then
16190   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16191 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16192 fi
16193
16194
16195    mv -f "$cfgfile" "$ofile" ||
16196     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16197   chmod +x "$ofile"
16198
16199  ;;
16200
16201   esac
16202 done # for ac_tag
16203
16204
16205 as_fn_exit 0
16206 _ACEOF
16207 ac_clean_files=$ac_clean_files_save
16208
16209 test $ac_write_fail = 0 ||
16210   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16211
16212
16213 # configure is writing to config.log, and then calls config.status.
16214 # config.status does its own redirection, appending to config.log.
16215 # Unfortunately, on DOS this fails, as config.log is still kept open
16216 # by configure, so config.status won't be able to write to it; its
16217 # output is simply discarded.  So we exec the FD to /dev/null,
16218 # effectively closing config.log, so it can be properly (re)opened and
16219 # appended to by config.status.  When coming back to configure, we
16220 # need to make the FD available again.
16221 if test "$no_create" != yes; then
16222   ac_cs_success=:
16223   ac_config_status_args=
16224   test "$silent" = yes &&
16225     ac_config_status_args="$ac_config_status_args --quiet"
16226   exec 5>/dev/null
16227   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16228   exec 5>>config.log
16229   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16230   # would make configure fail if this is the last instruction.
16231   $ac_cs_success || as_fn_exit 1
16232 fi
16233 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16234   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16235 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16236 fi
16237