Imported Upstream version 2.10.2
[platform/upstream/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 XMLDIR
625 xmldir
626 CONFIGDIR
627 configdir
628 BASECONFIGDIR
629 baseconfigdir
630 TEMPLATEDIR
631 templatedir
632 FC_FONTDATE
633 FC_CACHEDIR
634 fc_cachedir
635 FC_FONTPATH
636 FC_ADD_FONTS
637 FC_DEFAULT_FONTS
638 LIBXML2_LIBS
639 LIBXML2_CFLAGS
640 HAVE_XMLPARSE_H
641 EXPAT_LIBS
642 EXPAT_CFLAGS
643 FREETYPE_LIBS
644 FREETYPE_CFLAGS
645 ICONV_LIBS
646 ICONV_CFLAGS
647 ENABLE_SHARED_FALSE
648 ENABLE_SHARED_TRUE
649 CROSS_COMPILING_FALSE
650 CROSS_COMPILING_TRUE
651 WARN_CFLAGS
652 MS_LIB_AVAILABLE_FALSE
653 MS_LIB_AVAILABLE_TRUE
654 ms_librarian
655 OS_WIN32_FALSE
656 OS_WIN32_TRUE
657 RM
658 PKG_CONFIG_LIBDIR
659 PKG_CONFIG_PATH
660 PKG_CONFIG
661 CPP
662 OTOOL64
663 OTOOL
664 LIPO
665 NMEDIT
666 DSYMUTIL
667 MANIFEST_TOOL
668 RANLIB
669 ac_ct_AR
670 AR
671 NM
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LD
675 FGREP
676 EGREP
677 GREP
678 SED
679 LIBTOOL
680 OBJDUMP
681 DLLTOOL
682 AS
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 LN_S
692 am__fastdepCC_FALSE
693 am__fastdepCC_TRUE
694 CCDEPMODE
695 am__nodep
696 AMDEPBACKSLASH
697 AMDEP_FALSE
698 AMDEP_TRUE
699 am__quote
700 am__include
701 DEPDIR
702 OBJEXT
703 EXEEXT
704 ac_ct_CC
705 CPPFLAGS
706 LDFLAGS
707 CFLAGS
708 CC
709 LIBT_CURRENT_MINUS_AGE
710 LIBT_VERSION_INFO
711 LIBT_REVISION
712 LIBT_CURRENT
713 AM_BACKSLASH
714 AM_DEFAULT_VERBOSITY
715 AM_DEFAULT_V
716 AM_V
717 am__untar
718 am__tar
719 AMTAR
720 am__leading_dot
721 SET_MAKE
722 AWK
723 mkdir_p
724 MKDIR_P
725 INSTALL_STRIP_PROGRAM
726 STRIP
727 install_sh
728 MAKEINFO
729 AUTOHEADER
730 AUTOMAKE
731 AUTOCONF
732 ACLOCAL
733 VERSION
734 PACKAGE
735 CYGPATH_W
736 am__isrc
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files=''
779 ac_user_opts='
780 enable_option_checking
781 enable_silent_rules
782 enable_dependency_tracking
783 enable_shared
784 enable_static
785 with_pic
786 enable_fast_install
787 with_gnu_ld
788 with_sysroot
789 enable_libtool_lock
790 with_arch
791 enable_iconv
792 with_libiconv
793 with_libiconv_includes
794 with_libiconv_lib
795 with_expat
796 with_expat_includes
797 with_expat_lib
798 enable_libxml2
799 with_default_fonts
800 with_add_fonts
801 with_cache_dir
802 with_templatedir
803 with_baseconfigdir
804 with_configdir
805 with_xmldir
806 enable_docs
807 '
808       ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 CPP
817 PKG_CONFIG
818 PKG_CONFIG_PATH
819 PKG_CONFIG_LIBDIR
820 FREETYPE_CFLAGS
821 FREETYPE_LIBS
822 EXPAT_CFLAGS
823 EXPAT_LIBS
824 LIBXML2_CFLAGS
825 LIBXML2_LIBS'
826
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880   # If the previous option needs an argument, assign it.
881   if test -n "$ac_prev"; then
882     eval $ac_prev=\$ac_option
883     ac_prev=
884     continue
885   fi
886
887   case $ac_option in
888   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889   *=)   ac_optarg= ;;
890   *)    ac_optarg=yes ;;
891   esac
892
893   # Accept the important Cygnus configure options, so we can diagnose typos.
894
895   case $ac_dashdash$ac_option in
896   --)
897     ac_dashdash=yes ;;
898
899   -bindir | --bindir | --bindi | --bind | --bin | --bi)
900     ac_prev=bindir ;;
901   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902     bindir=$ac_optarg ;;
903
904   -build | --build | --buil | --bui | --bu)
905     ac_prev=build_alias ;;
906   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907     build_alias=$ac_optarg ;;
908
909   -cache-file | --cache-file | --cache-fil | --cache-fi \
910   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911     ac_prev=cache_file ;;
912   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914     cache_file=$ac_optarg ;;
915
916   --config-cache | -C)
917     cache_file=config.cache ;;
918
919   -datadir | --datadir | --datadi | --datad)
920     ac_prev=datadir ;;
921   -datadir=* | --datadir=* | --datadi=* | --datad=*)
922     datadir=$ac_optarg ;;
923
924   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925   | --dataroo | --dataro | --datar)
926     ac_prev=datarootdir ;;
927   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929     datarootdir=$ac_optarg ;;
930
931   -disable-* | --disable-*)
932     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933     # Reject names that are not valid shell variable names.
934     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935       as_fn_error $? "invalid feature name: $ac_useropt"
936     ac_useropt_orig=$ac_useropt
937     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938     case $ac_user_opts in
939       *"
940 "enable_$ac_useropt"
941 "*) ;;
942       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943          ac_unrecognized_sep=', ';;
944     esac
945     eval enable_$ac_useropt=no ;;
946
947   -docdir | --docdir | --docdi | --doc | --do)
948     ac_prev=docdir ;;
949   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950     docdir=$ac_optarg ;;
951
952   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953     ac_prev=dvidir ;;
954   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955     dvidir=$ac_optarg ;;
956
957   -enable-* | --enable-*)
958     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959     # Reject names that are not valid shell variable names.
960     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961       as_fn_error $? "invalid feature name: $ac_useropt"
962     ac_useropt_orig=$ac_useropt
963     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964     case $ac_user_opts in
965       *"
966 "enable_$ac_useropt"
967 "*) ;;
968       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969          ac_unrecognized_sep=', ';;
970     esac
971     eval enable_$ac_useropt=\$ac_optarg ;;
972
973   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975   | --exec | --exe | --ex)
976     ac_prev=exec_prefix ;;
977   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979   | --exec=* | --exe=* | --ex=*)
980     exec_prefix=$ac_optarg ;;
981
982   -gas | --gas | --ga | --g)
983     # Obsolete; use --with-gas.
984     with_gas=yes ;;
985
986   -help | --help | --hel | --he | -h)
987     ac_init_help=long ;;
988   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989     ac_init_help=recursive ;;
990   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991     ac_init_help=short ;;
992
993   -host | --host | --hos | --ho)
994     ac_prev=host_alias ;;
995   -host=* | --host=* | --hos=* | --ho=*)
996     host_alias=$ac_optarg ;;
997
998   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999     ac_prev=htmldir ;;
1000   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001   | --ht=*)
1002     htmldir=$ac_optarg ;;
1003
1004   -includedir | --includedir | --includedi | --included | --include \
1005   | --includ | --inclu | --incl | --inc)
1006     ac_prev=includedir ;;
1007   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008   | --includ=* | --inclu=* | --incl=* | --inc=*)
1009     includedir=$ac_optarg ;;
1010
1011   -infodir | --infodir | --infodi | --infod | --info | --inf)
1012     ac_prev=infodir ;;
1013   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014     infodir=$ac_optarg ;;
1015
1016   -libdir | --libdir | --libdi | --libd)
1017     ac_prev=libdir ;;
1018   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019     libdir=$ac_optarg ;;
1020
1021   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022   | --libexe | --libex | --libe)
1023     ac_prev=libexecdir ;;
1024   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025   | --libexe=* | --libex=* | --libe=*)
1026     libexecdir=$ac_optarg ;;
1027
1028   -localedir | --localedir | --localedi | --localed | --locale)
1029     ac_prev=localedir ;;
1030   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031     localedir=$ac_optarg ;;
1032
1033   -localstatedir | --localstatedir | --localstatedi | --localstated \
1034   | --localstate | --localstat | --localsta | --localst | --locals)
1035     ac_prev=localstatedir ;;
1036   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038     localstatedir=$ac_optarg ;;
1039
1040   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041     ac_prev=mandir ;;
1042   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043     mandir=$ac_optarg ;;
1044
1045   -nfp | --nfp | --nf)
1046     # Obsolete; use --without-fp.
1047     with_fp=no ;;
1048
1049   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050   | --no-cr | --no-c | -n)
1051     no_create=yes ;;
1052
1053   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055     no_recursion=yes ;;
1056
1057   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059   | --oldin | --oldi | --old | --ol | --o)
1060     ac_prev=oldincludedir ;;
1061   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064     oldincludedir=$ac_optarg ;;
1065
1066   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067     ac_prev=prefix ;;
1068   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069     prefix=$ac_optarg ;;
1070
1071   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072   | --program-pre | --program-pr | --program-p)
1073     ac_prev=program_prefix ;;
1074   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076     program_prefix=$ac_optarg ;;
1077
1078   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079   | --program-suf | --program-su | --program-s)
1080     ac_prev=program_suffix ;;
1081   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083     program_suffix=$ac_optarg ;;
1084
1085   -program-transform-name | --program-transform-name \
1086   | --program-transform-nam | --program-transform-na \
1087   | --program-transform-n | --program-transform- \
1088   | --program-transform | --program-transfor \
1089   | --program-transfo | --program-transf \
1090   | --program-trans | --program-tran \
1091   | --progr-tra | --program-tr | --program-t)
1092     ac_prev=program_transform_name ;;
1093   -program-transform-name=* | --program-transform-name=* \
1094   | --program-transform-nam=* | --program-transform-na=* \
1095   | --program-transform-n=* | --program-transform-=* \
1096   | --program-transform=* | --program-transfor=* \
1097   | --program-transfo=* | --program-transf=* \
1098   | --program-trans=* | --program-tran=* \
1099   | --progr-tra=* | --program-tr=* | --program-t=*)
1100     program_transform_name=$ac_optarg ;;
1101
1102   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103     ac_prev=pdfdir ;;
1104   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105     pdfdir=$ac_optarg ;;
1106
1107   -psdir | --psdir | --psdi | --psd | --ps)
1108     ac_prev=psdir ;;
1109   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110     psdir=$ac_optarg ;;
1111
1112   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113   | -silent | --silent | --silen | --sile | --sil)
1114     silent=yes ;;
1115
1116   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117     ac_prev=sbindir ;;
1118   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119   | --sbi=* | --sb=*)
1120     sbindir=$ac_optarg ;;
1121
1122   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124   | --sharedst | --shareds | --shared | --share | --shar \
1125   | --sha | --sh)
1126     ac_prev=sharedstatedir ;;
1127   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130   | --sha=* | --sh=*)
1131     sharedstatedir=$ac_optarg ;;
1132
1133   -site | --site | --sit)
1134     ac_prev=site ;;
1135   -site=* | --site=* | --sit=*)
1136     site=$ac_optarg ;;
1137
1138   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139     ac_prev=srcdir ;;
1140   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141     srcdir=$ac_optarg ;;
1142
1143   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144   | --syscon | --sysco | --sysc | --sys | --sy)
1145     ac_prev=sysconfdir ;;
1146   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148     sysconfdir=$ac_optarg ;;
1149
1150   -target | --target | --targe | --targ | --tar | --ta | --t)
1151     ac_prev=target_alias ;;
1152   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153     target_alias=$ac_optarg ;;
1154
1155   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156     verbose=yes ;;
1157
1158   -version | --version | --versio | --versi | --vers | -V)
1159     ac_init_version=: ;;
1160
1161   -with-* | --with-*)
1162     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165       as_fn_error $? "invalid package name: $ac_useropt"
1166     ac_useropt_orig=$ac_useropt
1167     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168     case $ac_user_opts in
1169       *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173          ac_unrecognized_sep=', ';;
1174     esac
1175     eval with_$ac_useropt=\$ac_optarg ;;
1176
1177   -without-* | --without-*)
1178     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181       as_fn_error $? "invalid package name: $ac_useropt"
1182     ac_useropt_orig=$ac_useropt
1183     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184     case $ac_user_opts in
1185       *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189          ac_unrecognized_sep=', ';;
1190     esac
1191     eval with_$ac_useropt=no ;;
1192
1193   --x)
1194     # Obsolete; use --with-x.
1195     with_x=yes ;;
1196
1197   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198   | --x-incl | --x-inc | --x-in | --x-i)
1199     ac_prev=x_includes ;;
1200   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202     x_includes=$ac_optarg ;;
1203
1204   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206     ac_prev=x_libraries ;;
1207   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209     x_libraries=$ac_optarg ;;
1210
1211   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1213     ;;
1214
1215   *=*)
1216     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217     # Reject names that are not valid shell variable names.
1218     case $ac_envvar in #(
1219       '' | [0-9]* | *[!_$as_cr_alnum]* )
1220       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221     esac
1222     eval $ac_envvar=\$ac_optarg
1223     export $ac_envvar ;;
1224
1225   *)
1226     # FIXME: should be removed in autoconf 3.0.
1227     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231     ;;
1232
1233   esac
1234 done
1235
1236 if test -n "$ac_prev"; then
1237   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238   as_fn_error $? "missing argument to $ac_option"
1239 fi
1240
1241 if test -n "$ac_unrecognized_opts"; then
1242   case $enable_option_checking in
1243     no) ;;
1244     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246   esac
1247 fi
1248
1249 # Check all directory arguments for consistency.
1250 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251                 datadir sysconfdir sharedstatedir localstatedir includedir \
1252                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253                 libdir localedir mandir
1254 do
1255   eval ac_val=\$$ac_var
1256   # Remove trailing slashes.
1257   case $ac_val in
1258     */ )
1259       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260       eval $ac_var=\$ac_val;;
1261   esac
1262   # Be sure to have absolute directory names.
1263   case $ac_val in
1264     [\\/$]* | ?:[\\/]* )  continue;;
1265     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266   esac
1267   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1269
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1276
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279   if test "x$build_alias" = x; then
1280     cross_compiling=maybe
1281     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1282     If a cross compiler is detected then cross compile mode will be used" >&2
1283   elif test "x$build_alias" != "x$host_alias"; then
1284     cross_compiling=yes
1285   fi
1286 fi
1287
1288 ac_tool_prefix=
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291 test "$silent" = yes && exec 6>/dev/null
1292
1293
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297   as_fn_error $? "working directory cannot be determined"
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299   as_fn_error $? "pwd does not report name of working directory"
1300
1301
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304   ac_srcdir_defaulted=yes
1305   # Try the directory containing this script, then the parent directory.
1306   ac_confdir=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308          X"$as_myself" : 'X\(//\)[^/]' \| \
1309          X"$as_myself" : 'X\(//\)$' \| \
1310          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 $as_echo X"$as_myself" |
1312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313             s//\1/
1314             q
1315           }
1316           /^X\(\/\/\)[^/].*/{
1317             s//\1/
1318             q
1319           }
1320           /^X\(\/\/\)$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\).*/{
1325             s//\1/
1326             q
1327           }
1328           s/.*/./; q'`
1329   srcdir=$ac_confdir
1330   if test ! -r "$srcdir/$ac_unique_file"; then
1331     srcdir=..
1332   fi
1333 else
1334   ac_srcdir_defaulted=no
1335 fi
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339 fi
1340 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 ac_abs_confdir=`(
1342         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343         pwd)`
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346   srcdir=.
1347 fi
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1351 case $srcdir in
1352 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 esac
1354 for ac_var in $ac_precious_vars; do
1355   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356   eval ac_env_${ac_var}_value=\$${ac_var}
1357   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359 done
1360
1361 #
1362 # Report the --help message.
1363 #
1364 if test "$ac_init_help" = "long"; then
1365   # Omit some internal or obsolete options to make the list less imposing.
1366   # This message is too long to be a string in the A/UX 3.1 sh.
1367   cat <<_ACEOF
1368 \`configure' configures this package to adapt to many kinds of systems.
1369
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE.  See below for descriptions of some of the useful variables.
1374
1375 Defaults for the options are specified in brackets.
1376
1377 Configuration:
1378   -h, --help              display this help and exit
1379       --help=short        display options specific to this package
1380       --help=recursive    display the short help of all the included packages
1381   -V, --version           display version information and exit
1382   -q, --quiet, --silent   do not print \`checking ...' messages
1383       --cache-file=FILE   cache test results in FILE [disabled]
1384   -C, --config-cache      alias for \`--cache-file=config.cache'
1385   -n, --no-create         do not create output files
1386       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1387
1388 Installation directories:
1389   --prefix=PREFIX         install architecture-independent files in PREFIX
1390                           [$ac_default_prefix]
1391   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1392                           [PREFIX]
1393
1394 By default, \`make install' will install all the files in
1395 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1396 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397 for instance \`--prefix=\$HOME'.
1398
1399 For better control, use the options below.
1400
1401 Fine tuning of the installation directories:
1402   --bindir=DIR            user executables [EPREFIX/bin]
1403   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1404   --libexecdir=DIR        program executables [EPREFIX/libexec]
1405   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1406   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1407   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1408   --libdir=DIR            object code libraries [EPREFIX/lib]
1409   --includedir=DIR        C header files [PREFIX/include]
1410   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1411   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1412   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1413   --infodir=DIR           info documentation [DATAROOTDIR/info]
1414   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1415   --mandir=DIR            man documentation [DATAROOTDIR/man]
1416   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1417   --htmldir=DIR           html documentation [DOCDIR]
1418   --dvidir=DIR            dvi documentation [DOCDIR]
1419   --pdfdir=DIR            pdf documentation [DOCDIR]
1420   --psdir=DIR             ps documentation [DOCDIR]
1421 _ACEOF
1422
1423   cat <<\_ACEOF
1424
1425 Program names:
1426   --program-prefix=PREFIX            prepend PREFIX to installed program names
1427   --program-suffix=SUFFIX            append SUFFIX to installed program names
1428   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1429
1430 System types:
1431   --build=BUILD     configure for building on BUILD [guessed]
1432   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1433 _ACEOF
1434 fi
1435
1436 if test -n "$ac_init_help"; then
1437
1438   cat <<\_ACEOF
1439
1440 Optional Features:
1441   --disable-option-checking  ignore unrecognized --enable/--with options
1442   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1443   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1444   --enable-silent-rules          less verbose build output (undo: `make V=1')
1445   --disable-silent-rules         verbose build output (undo: `make V=0')
1446   --disable-dependency-tracking  speeds up one-time build
1447   --enable-dependency-tracking   do not reject slow dependency extractors
1448   --enable-shared[=PKGS]  build shared libraries [default=yes]
1449   --enable-static[=PKGS]  build static libraries [default=yes]
1450   --enable-fast-install[=PKGS]
1451                           optimize for fast installation [default=yes]
1452   --disable-libtool-lock  avoid locking (might break parallel builds)
1453   --enable-iconv          Use iconv to support non-Unicode SFNT name
1454   --enable-libxml2        Use libxml2 instead of Expat
1455   --disable-docs          Don't build and install documentation
1456
1457 Optional Packages:
1458   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1461                           both]
1462   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1463   --with-sysroot=DIR Search for dependent libraries within DIR
1464                         (or the compiler's sysroot if not specified).
1465   --with-arch=ARCH        Force architecture to ARCH
1466   --with-libiconv=DIR     Use libiconv in DIR
1467   --with-libiconv-includes=DIR
1468                           Use libiconv includes in DIR
1469   --with-libiconv-lib=DIR Use libiconv library in DIR
1470   --with-expat=DIR        Use Expat in DIR
1471   --with-expat-includes=DIR
1472                           Use Expat includes in DIR
1473   --with-expat-lib=DIR
1474   --with-default-fonts=DIR
1475                           Use fonts from DIR when config is busted
1476   --with-add-fonts=DIR1,DIR2,...
1477                           Find additional fonts in DIR1,DIR2,...
1478   --with-cache-dir=DIR    Use DIR to store cache files
1479                           [default=LOCALSTATEDIR/cache/fontconfig]
1480   --with-templatedir=DIR  Use DIR to store the configuration template files
1481                           [default=DATADIR/fontconfig/conf.avail]
1482   --with-baseconfigdir=DIR
1483                           Use DIR to store the base configuration files
1484                           [default=SYSCONFDIR/fonts]
1485   --with-configdir=DIR    Use DIR to store active configuration files
1486                           [default=BASECONFIGDIR/conf.d]
1487   --with-xmldir=DIR       Use DIR to store XML schema files
1488                           [default=DATADIR/xml/fontconfig]
1489
1490 Some influential environment variables:
1491   CC          C compiler command
1492   CFLAGS      C compiler flags
1493   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1494               nonstandard directory <lib dir>
1495   LIBS        libraries to pass to the linker, e.g. -l<library>
1496   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497               you have headers in a nonstandard directory <include dir>
1498   CPP         C preprocessor
1499   PKG_CONFIG  path to pkg-config utility
1500   PKG_CONFIG_PATH
1501               directories to add to pkg-config's search path
1502   PKG_CONFIG_LIBDIR
1503               path overriding pkg-config's built-in search path
1504   FREETYPE_CFLAGS
1505               C compiler flags for FREETYPE, overriding pkg-config
1506   FREETYPE_LIBS
1507               linker flags for FREETYPE, overriding pkg-config
1508   EXPAT_CFLAGS
1509               C compiler flags for EXPAT, overriding pkg-config
1510   EXPAT_LIBS  linker flags for EXPAT, overriding pkg-config
1511   LIBXML2_CFLAGS
1512               C compiler flags for LIBXML2, overriding pkg-config
1513   LIBXML2_LIBS
1514               linker flags for LIBXML2, overriding pkg-config
1515
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1518
1519 Report bugs to the package provider.
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525   # If there are subdirs, report their specific --help.
1526   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527     test -d "$ac_dir" ||
1528       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529       continue
1530     ac_builddir=.
1531
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *)
1535   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536   # A ".." for each directory in $ac_dir_suffix.
1537   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538   case $ac_top_builddir_sub in
1539   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541   esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1547
1548 case $srcdir in
1549   .)  # We are building in place.
1550     ac_srcdir=.
1551     ac_top_srcdir=$ac_top_builddir_sub
1552     ac_abs_top_srcdir=$ac_pwd ;;
1553   [\\/]* | ?:[\\/]* )  # Absolute name.
1554     ac_srcdir=$srcdir$ac_dir_suffix;
1555     ac_top_srcdir=$srcdir
1556     ac_abs_top_srcdir=$srcdir ;;
1557   *) # Relative name.
1558     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559     ac_top_srcdir=$ac_top_build_prefix$srcdir
1560     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
1564     cd "$ac_dir" || { ac_status=$?; continue; }
1565     # Check for guested configure.
1566     if test -f "$ac_srcdir/configure.gnu"; then
1567       echo &&
1568       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569     elif test -f "$ac_srcdir/configure"; then
1570       echo &&
1571       $SHELL "$ac_srcdir/configure" --help=recursive
1572     else
1573       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574     fi || ac_status=$?
1575     cd "$ac_pwd" || { ac_status=$?; break; }
1576   done
1577 fi
1578
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581   cat <<\_ACEOF
1582 configure
1583 generated by GNU Autoconf 2.68
1584
1585 Copyright (C) 2010 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589   exit
1590 fi
1591
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1595
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1600 {
1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602   rm -f conftest.$ac_objext
1603   if { { ac_try="$ac_compile"
1604 case "(($ac_try" in
1605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606   *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610   (eval "$ac_compile") 2>conftest.err
1611   ac_status=$?
1612   if test -s conftest.err; then
1613     grep -v '^ *+' conftest.err >conftest.er1
1614     cat conftest.er1 >&5
1615     mv -f conftest.er1 conftest.err
1616   fi
1617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618   test $ac_status = 0; } && {
1619          test -z "$ac_c_werror_flag" ||
1620          test ! -s conftest.err
1621        } && test -s conftest.$ac_objext; then :
1622   ac_retval=0
1623 else
1624   $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627         ac_retval=1
1628 fi
1629   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630   as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_compile
1633
1634 # ac_fn_c_try_link LINENO
1635 # -----------------------
1636 # Try to link conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_link ()
1638 {
1639   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640   rm -f conftest.$ac_objext conftest$ac_exeext
1641   if { { ac_try="$ac_link"
1642 case "(($ac_try" in
1643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644   *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648   (eval "$ac_link") 2>conftest.err
1649   ac_status=$?
1650   if test -s conftest.err; then
1651     grep -v '^ *+' conftest.err >conftest.er1
1652     cat conftest.er1 >&5
1653     mv -f conftest.er1 conftest.err
1654   fi
1655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656   test $ac_status = 0; } && {
1657          test -z "$ac_c_werror_flag" ||
1658          test ! -s conftest.err
1659        } && test -s conftest$ac_exeext && {
1660          test "$cross_compiling" = yes ||
1661          $as_test_x conftest$ac_exeext
1662        }; then :
1663   ac_retval=0
1664 else
1665   $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668         ac_retval=1
1669 fi
1670   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672   # interfere with the next link command; also delete a directory that is
1673   # left behind by Apple's compiler.  We do this before executing the actions.
1674   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676   as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_link
1679
1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists and can be compiled using the include files in
1683 # INCLUDES, setting the cache variable VAR accordingly.
1684 ac_fn_c_check_header_compile ()
1685 {
1686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690   $as_echo_n "(cached) " >&6
1691 else
1692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h.  */
1694 $4
1695 #include <$2>
1696 _ACEOF
1697 if ac_fn_c_try_compile "$LINENO"; then :
1698   eval "$3=yes"
1699 else
1700   eval "$3=no"
1701 fi
1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703 fi
1704 eval ac_res=\$$3
1705                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706 $as_echo "$ac_res" >&6; }
1707   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708
1709 } # ac_fn_c_check_header_compile
1710
1711 # ac_fn_c_try_cpp LINENO
1712 # ----------------------
1713 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_cpp ()
1715 {
1716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717   if { { ac_try="$ac_cpp conftest.$ac_ext"
1718 case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725   ac_status=$?
1726   if test -s conftest.err; then
1727     grep -v '^ *+' conftest.err >conftest.er1
1728     cat conftest.er1 >&5
1729     mv -f conftest.er1 conftest.err
1730   fi
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; } > conftest.i && {
1733          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734          test ! -s conftest.err
1735        }; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741     ac_retval=1
1742 fi
1743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744   as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_cpp
1747
1748 # ac_fn_c_try_run LINENO
1749 # ----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751 # that executables *can* be run.
1752 ac_fn_c_try_run ()
1753 {
1754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755   if { { ac_try="$ac_link"
1756 case "(($ac_try" in
1757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758   *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762   (eval "$ac_link") 2>&5
1763   ac_status=$?
1764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766   { { case "(($ac_try" in
1767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768   *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772   (eval "$ac_try") 2>&5
1773   ac_status=$?
1774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775   test $ac_status = 0; }; }; then :
1776   ac_retval=0
1777 else
1778   $as_echo "$as_me: program exited with status $ac_status" >&5
1779        $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782        ac_retval=$ac_status
1783 fi
1784   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786   as_fn_set_status $ac_retval
1787
1788 } # ac_fn_c_try_run
1789
1790 # ac_fn_c_check_func LINENO FUNC VAR
1791 # ----------------------------------
1792 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1793 ac_fn_c_check_func ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799   $as_echo_n "(cached) " >&6
1800 else
1801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h.  */
1803 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1805 #define $2 innocuous_$2
1806
1807 /* System header to define __stub macros and hopefully few prototypes,
1808     which can conflict with char $2 (); below.
1809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1810     <limits.h> exists even on freestanding compilers.  */
1811
1812 #ifdef __STDC__
1813 # include <limits.h>
1814 #else
1815 # include <assert.h>
1816 #endif
1817
1818 #undef $2
1819
1820 /* Override any GCC internal prototype to avoid an error.
1821    Use char because int might match the return type of a GCC
1822    builtin and then its argument prototype would still apply.  */
1823 #ifdef __cplusplus
1824 extern "C"
1825 #endif
1826 char $2 ();
1827 /* The GNU C library defines this for functions which it implements
1828     to always fail with ENOSYS.  Some functions are actually named
1829     something starting with __ and the normal name is an alias.  */
1830 #if defined __stub_$2 || defined __stub___$2
1831 choke me
1832 #endif
1833
1834 int
1835 main ()
1836 {
1837 return $2 ();
1838   ;
1839   return 0;
1840 }
1841 _ACEOF
1842 if ac_fn_c_try_link "$LINENO"; then :
1843   eval "$3=yes"
1844 else
1845   eval "$3=no"
1846 fi
1847 rm -f core conftest.err conftest.$ac_objext \
1848     conftest$ac_exeext conftest.$ac_ext
1849 fi
1850 eval ac_res=\$$3
1851                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 $as_echo "$ac_res" >&6; }
1853   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855 } # ac_fn_c_check_func
1856
1857 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1858 # -------------------------------------------------------
1859 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1860 # the include files in INCLUDES and setting the cache variable VAR
1861 # accordingly.
1862 ac_fn_c_check_header_mongrel ()
1863 {
1864   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865   if eval \${$3+:} false; then :
1866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if eval \${$3+:} false; then :
1869   $as_echo_n "(cached) " >&6
1870 fi
1871 eval ac_res=\$$3
1872                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 else
1875   # Is the header compilable?
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1877 $as_echo_n "checking $2 usability... " >&6; }
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h.  */
1880 $4
1881 #include <$2>
1882 _ACEOF
1883 if ac_fn_c_try_compile "$LINENO"; then :
1884   ac_header_compiler=yes
1885 else
1886   ac_header_compiler=no
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1890 $as_echo "$ac_header_compiler" >&6; }
1891
1892 # Is the header present?
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1894 $as_echo_n "checking $2 presence... " >&6; }
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h.  */
1897 #include <$2>
1898 _ACEOF
1899 if ac_fn_c_try_cpp "$LINENO"; then :
1900   ac_header_preproc=yes
1901 else
1902   ac_header_preproc=no
1903 fi
1904 rm -f conftest.err conftest.i conftest.$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1906 $as_echo "$ac_header_preproc" >&6; }
1907
1908 # So?  What about this header?
1909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1910   yes:no: )
1911     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1912 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1913     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1914 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1915     ;;
1916   no:yes:* )
1917     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1918 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1919     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1920 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1921     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1922 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1923     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1924 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1925     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1926 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1927     ;;
1928 esac
1929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932   $as_echo_n "(cached) " >&6
1933 else
1934   eval "$3=\$ac_header_compiler"
1935 fi
1936 eval ac_res=\$$3
1937                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939 fi
1940   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942 } # ac_fn_c_check_header_mongrel
1943
1944 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1945 # -------------------------------------------
1946 # Tests whether TYPE exists after having included INCLUDES, setting cache
1947 # variable VAR accordingly.
1948 ac_fn_c_check_type ()
1949 {
1950   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954   $as_echo_n "(cached) " >&6
1955 else
1956   eval "$3=no"
1957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1959 $4
1960 int
1961 main ()
1962 {
1963 if (sizeof ($2))
1964          return 0;
1965   ;
1966   return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h.  */
1972 $4
1973 int
1974 main ()
1975 {
1976 if (sizeof (($2)))
1977             return 0;
1978   ;
1979   return 0;
1980 }
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983
1984 else
1985   eval "$3=yes"
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 fi
1991 eval ac_res=\$$3
1992                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996 } # ac_fn_c_check_type
1997
1998 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1999 # ----------------------------------------------------
2000 # Tries to find if the field MEMBER exists in type AGGR, after including
2001 # INCLUDES, setting cache variable VAR accordingly.
2002 ac_fn_c_check_member ()
2003 {
2004   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2006 $as_echo_n "checking for $2.$3... " >&6; }
2007 if eval \${$4+:} false; then :
2008   $as_echo_n "(cached) " >&6
2009 else
2010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h.  */
2012 $5
2013 int
2014 main ()
2015 {
2016 static $2 ac_aggr;
2017 if (ac_aggr.$3)
2018 return 0;
2019   ;
2020   return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024   eval "$4=yes"
2025 else
2026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h.  */
2028 $5
2029 int
2030 main ()
2031 {
2032 static $2 ac_aggr;
2033 if (sizeof ac_aggr.$3)
2034 return 0;
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040   eval "$4=yes"
2041 else
2042   eval "$4=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 eval ac_res=\$$4
2049                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052
2053 } # ac_fn_c_check_member
2054
2055 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2056 # --------------------------------------------
2057 # Tries to find the compile-time value of EXPR in a program that includes
2058 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2059 # computed
2060 ac_fn_c_compute_int ()
2061 {
2062   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063   if test "$cross_compiling" = yes; then
2064     # Depending upon the size, compute the lo and hi bounds.
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h.  */
2067 $4
2068 int
2069 main ()
2070 {
2071 static int test_array [1 - 2 * !(($2) >= 0)];
2072 test_array [0] = 0
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079   ac_lo=0 ac_mid=0
2080   while :; do
2081     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h.  */
2083 $4
2084 int
2085 main ()
2086 {
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088 test_array [0] = 0
2089
2090   ;
2091   return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095   ac_hi=$ac_mid; break
2096 else
2097   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2098                         if test $ac_lo -le $ac_mid; then
2099                           ac_lo= ac_hi=
2100                           break
2101                         fi
2102                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105   done
2106 else
2107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) < 0)];
2114 test_array [0] = 0
2115
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121   ac_hi=-1 ac_mid=-1
2122   while :; do
2123     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h.  */
2125 $4
2126 int
2127 main ()
2128 {
2129 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2130 test_array [0] = 0
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137   ac_lo=$ac_mid; break
2138 else
2139   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2140                         if test $ac_mid -le $ac_hi; then
2141                           ac_lo= ac_hi=
2142                           break
2143                         fi
2144                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147   done
2148 else
2149   ac_lo= ac_hi=
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 # Binary search between lo and hi bounds.
2155 while test "x$ac_lo" != "x$ac_hi"; do
2156   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h.  */
2159 $4
2160 int
2161 main ()
2162 {
2163 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 test_array [0] = 0
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171   ac_hi=$ac_mid
2172 else
2173   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 done
2177 case $ac_lo in #((
2178 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2179 '') ac_retval=1 ;;
2180 esac
2181   else
2182     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h.  */
2184 $4
2185 static long int longval () { return $2; }
2186 static unsigned long int ulongval () { return $2; }
2187 #include <stdio.h>
2188 #include <stdlib.h>
2189 int
2190 main ()
2191 {
2192
2193   FILE *f = fopen ("conftest.val", "w");
2194   if (! f)
2195     return 1;
2196   if (($2) < 0)
2197     {
2198       long int i = longval ();
2199       if (i != ($2))
2200         return 1;
2201       fprintf (f, "%ld", i);
2202     }
2203   else
2204     {
2205       unsigned long int i = ulongval ();
2206       if (i != ($2))
2207         return 1;
2208       fprintf (f, "%lu", i);
2209     }
2210   /* Do not output a trailing newline, as this causes \r\n confusion
2211      on some platforms.  */
2212   return ferror (f) || fclose (f) != 0;
2213
2214   ;
2215   return 0;
2216 }
2217 _ACEOF
2218 if ac_fn_c_try_run "$LINENO"; then :
2219   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2220 else
2221   ac_retval=1
2222 fi
2223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2224   conftest.$ac_objext conftest.beam conftest.$ac_ext
2225 rm -f conftest.val
2226
2227   fi
2228   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229   as_fn_set_status $ac_retval
2230
2231 } # ac_fn_c_compute_int
2232 cat >config.log <<_ACEOF
2233 This file contains any messages produced by compilers while
2234 running configure, to aid debugging if configure makes a mistake.
2235
2236 It was created by $as_me, which was
2237 generated by GNU Autoconf 2.68.  Invocation command line was
2238
2239   $ $0 $@
2240
2241 _ACEOF
2242 exec 5>>config.log
2243 {
2244 cat <<_ASUNAME
2245 ## --------- ##
2246 ## Platform. ##
2247 ## --------- ##
2248
2249 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2250 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2251 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2252 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2253 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2254
2255 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2256 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2257
2258 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2259 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2260 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2261 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2262 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2263 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2264 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2265
2266 _ASUNAME
2267
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2270 do
2271   IFS=$as_save_IFS
2272   test -z "$as_dir" && as_dir=.
2273     $as_echo "PATH: $as_dir"
2274   done
2275 IFS=$as_save_IFS
2276
2277 } >&5
2278
2279 cat >&5 <<_ACEOF
2280
2281
2282 ## ----------- ##
2283 ## Core tests. ##
2284 ## ----------- ##
2285
2286 _ACEOF
2287
2288
2289 # Keep a trace of the command line.
2290 # Strip out --no-create and --no-recursion so they do not pile up.
2291 # Strip out --silent because we don't want to record it for future runs.
2292 # Also quote any args containing shell meta-characters.
2293 # Make two passes to allow for proper duplicate-argument suppression.
2294 ac_configure_args=
2295 ac_configure_args0=
2296 ac_configure_args1=
2297 ac_must_keep_next=false
2298 for ac_pass in 1 2
2299 do
2300   for ac_arg
2301   do
2302     case $ac_arg in
2303     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2304     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2305     | -silent | --silent | --silen | --sile | --sil)
2306       continue ;;
2307     *\'*)
2308       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2309     esac
2310     case $ac_pass in
2311     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2312     2)
2313       as_fn_append ac_configure_args1 " '$ac_arg'"
2314       if test $ac_must_keep_next = true; then
2315         ac_must_keep_next=false # Got value, back to normal.
2316       else
2317         case $ac_arg in
2318           *=* | --config-cache | -C | -disable-* | --disable-* \
2319           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2320           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2321           | -with-* | --with-* | -without-* | --without-* | --x)
2322             case "$ac_configure_args0 " in
2323               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2324             esac
2325             ;;
2326           -* ) ac_must_keep_next=true ;;
2327         esac
2328       fi
2329       as_fn_append ac_configure_args " '$ac_arg'"
2330       ;;
2331     esac
2332   done
2333 done
2334 { ac_configure_args0=; unset ac_configure_args0;}
2335 { ac_configure_args1=; unset ac_configure_args1;}
2336
2337 # When interrupted or exit'd, cleanup temporary files, and complete
2338 # config.log.  We remove comments because anyway the quotes in there
2339 # would cause problems or look ugly.
2340 # WARNING: Use '\'' to represent an apostrophe within the trap.
2341 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2342 trap 'exit_status=$?
2343   # Save into config.log some information that might help in debugging.
2344   {
2345     echo
2346
2347     $as_echo "## ---------------- ##
2348 ## Cache variables. ##
2349 ## ---------------- ##"
2350     echo
2351     # The following way of writing the cache mishandles newlines in values,
2352 (
2353   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2354     eval ac_val=\$$ac_var
2355     case $ac_val in #(
2356     *${as_nl}*)
2357       case $ac_var in #(
2358       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2359 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2360       esac
2361       case $ac_var in #(
2362       _ | IFS | as_nl) ;; #(
2363       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2364       *) { eval $ac_var=; unset $ac_var;} ;;
2365       esac ;;
2366     esac
2367   done
2368   (set) 2>&1 |
2369     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2370     *${as_nl}ac_space=\ *)
2371       sed -n \
2372         "s/'\''/'\''\\\\'\'''\''/g;
2373           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2374       ;; #(
2375     *)
2376       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2377       ;;
2378     esac |
2379     sort
2380 )
2381     echo
2382
2383     $as_echo "## ----------------- ##
2384 ## Output variables. ##
2385 ## ----------------- ##"
2386     echo
2387     for ac_var in $ac_subst_vars
2388     do
2389       eval ac_val=\$$ac_var
2390       case $ac_val in
2391       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2392       esac
2393       $as_echo "$ac_var='\''$ac_val'\''"
2394     done | sort
2395     echo
2396
2397     if test -n "$ac_subst_files"; then
2398       $as_echo "## ------------------- ##
2399 ## File substitutions. ##
2400 ## ------------------- ##"
2401       echo
2402       for ac_var in $ac_subst_files
2403       do
2404         eval ac_val=\$$ac_var
2405         case $ac_val in
2406         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407         esac
2408         $as_echo "$ac_var='\''$ac_val'\''"
2409       done | sort
2410       echo
2411     fi
2412
2413     if test -s confdefs.h; then
2414       $as_echo "## ----------- ##
2415 ## confdefs.h. ##
2416 ## ----------- ##"
2417       echo
2418       cat confdefs.h
2419       echo
2420     fi
2421     test "$ac_signal" != 0 &&
2422       $as_echo "$as_me: caught signal $ac_signal"
2423     $as_echo "$as_me: exit $exit_status"
2424   } >&5
2425   rm -f core *.core core.conftest.* &&
2426     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2427     exit $exit_status
2428 ' 0
2429 for ac_signal in 1 2 13 15; do
2430   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2431 done
2432 ac_signal=0
2433
2434 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2435 rm -f -r conftest* confdefs.h
2436
2437 $as_echo "/* confdefs.h */" > confdefs.h
2438
2439 # Predefined preprocessor variables.
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_NAME "$PACKAGE_NAME"
2443 _ACEOF
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2447 _ACEOF
2448
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2451 _ACEOF
2452
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_STRING "$PACKAGE_STRING"
2455 _ACEOF
2456
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2459 _ACEOF
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_URL "$PACKAGE_URL"
2463 _ACEOF
2464
2465
2466 # Let the site file select an alternate cache file if it wants to.
2467 # Prefer an explicitly selected file to automatically selected ones.
2468 ac_site_file1=NONE
2469 ac_site_file2=NONE
2470 if test -n "$CONFIG_SITE"; then
2471   # We do not want a PATH search for config.site.
2472   case $CONFIG_SITE in #((
2473     -*)  ac_site_file1=./$CONFIG_SITE;;
2474     */*) ac_site_file1=$CONFIG_SITE;;
2475     *)   ac_site_file1=./$CONFIG_SITE;;
2476   esac
2477 elif test "x$prefix" != xNONE; then
2478   ac_site_file1=$prefix/share/config.site
2479   ac_site_file2=$prefix/etc/config.site
2480 else
2481   ac_site_file1=$ac_default_prefix/share/config.site
2482   ac_site_file2=$ac_default_prefix/etc/config.site
2483 fi
2484 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2485 do
2486   test "x$ac_site_file" = xNONE && continue
2487   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2488     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2489 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2490     sed 's/^/| /' "$ac_site_file" >&5
2491     . "$ac_site_file" \
2492       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2494 as_fn_error $? "failed to load site script $ac_site_file
2495 See \`config.log' for more details" "$LINENO" 5; }
2496   fi
2497 done
2498
2499 if test -r "$cache_file"; then
2500   # Some versions of bash will fail to source /dev/null (special files
2501   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2502   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2503     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2504 $as_echo "$as_me: loading cache $cache_file" >&6;}
2505     case $cache_file in
2506       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2507       *)                      . "./$cache_file";;
2508     esac
2509   fi
2510 else
2511   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2512 $as_echo "$as_me: creating cache $cache_file" >&6;}
2513   >$cache_file
2514 fi
2515
2516 as_fn_append ac_header_list " stdlib.h"
2517 as_fn_append ac_header_list " unistd.h"
2518 as_fn_append ac_header_list " sys/param.h"
2519 # Check that the precious variables saved in the cache have kept the same
2520 # value.
2521 ac_cache_corrupted=false
2522 for ac_var in $ac_precious_vars; do
2523   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2524   eval ac_new_set=\$ac_env_${ac_var}_set
2525   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2526   eval ac_new_val=\$ac_env_${ac_var}_value
2527   case $ac_old_set,$ac_new_set in
2528     set,)
2529       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2530 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2531       ac_cache_corrupted=: ;;
2532     ,set)
2533       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2534 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2535       ac_cache_corrupted=: ;;
2536     ,);;
2537     *)
2538       if test "x$ac_old_val" != "x$ac_new_val"; then
2539         # differences in whitespace do not lead to failure.
2540         ac_old_val_w=`echo x $ac_old_val`
2541         ac_new_val_w=`echo x $ac_new_val`
2542         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2543           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2544 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2545           ac_cache_corrupted=:
2546         else
2547           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2548 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2549           eval $ac_var=\$ac_old_val
2550         fi
2551         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2552 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2553         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2554 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2555       fi;;
2556   esac
2557   # Pass precious variables to config.status.
2558   if test "$ac_new_set" = set; then
2559     case $ac_new_val in
2560     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2561     *) ac_arg=$ac_var=$ac_new_val ;;
2562     esac
2563     case " $ac_configure_args " in
2564       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2565       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2566     esac
2567   fi
2568 done
2569 if $ac_cache_corrupted; then
2570   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2572   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2573 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2574   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2575 fi
2576 ## -------------------- ##
2577 ## Main body of script. ##
2578 ## -------------------- ##
2579
2580 ac_ext=c
2581 ac_cpp='$CPP $CPPFLAGS'
2582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585
2586
2587
2588
2589 am__api_version='1.11'
2590
2591 ac_aux_dir=
2592 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2593   if test -f "$ac_dir/install-sh"; then
2594     ac_aux_dir=$ac_dir
2595     ac_install_sh="$ac_aux_dir/install-sh -c"
2596     break
2597   elif test -f "$ac_dir/install.sh"; then
2598     ac_aux_dir=$ac_dir
2599     ac_install_sh="$ac_aux_dir/install.sh -c"
2600     break
2601   elif test -f "$ac_dir/shtool"; then
2602     ac_aux_dir=$ac_dir
2603     ac_install_sh="$ac_aux_dir/shtool install -c"
2604     break
2605   fi
2606 done
2607 if test -z "$ac_aux_dir"; then
2608   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2609 fi
2610
2611 # These three variables are undocumented and unsupported,
2612 # and are intended to be withdrawn in a future Autoconf release.
2613 # They can cause serious problems if a builder's source tree is in a directory
2614 # whose full name contains unusual characters.
2615 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2616 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2617 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2618
2619
2620 # Find a good install program.  We prefer a C program (faster),
2621 # so one script is as good as another.  But avoid the broken or
2622 # incompatible versions:
2623 # SysV /etc/install, /usr/sbin/install
2624 # SunOS /usr/etc/install
2625 # IRIX /sbin/install
2626 # AIX /bin/install
2627 # AmigaOS /C/install, which installs bootblocks on floppy discs
2628 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2629 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2630 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2631 # OS/2's system install, which has a completely different semantic
2632 # ./install, which can be erroneously created by make from ./install.sh.
2633 # Reject install programs that cannot install multiple files.
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2635 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2636 if test -z "$INSTALL"; then
2637 if ${ac_cv_path_install+:} false; then :
2638   $as_echo_n "(cached) " >&6
2639 else
2640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643   IFS=$as_save_IFS
2644   test -z "$as_dir" && as_dir=.
2645     # Account for people who put trailing slashes in PATH elements.
2646 case $as_dir/ in #((
2647   ./ | .// | /[cC]/* | \
2648   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2649   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2650   /usr/ucb/* ) ;;
2651   *)
2652     # OSF1 and SCO ODT 3.0 have their own names for install.
2653     # Don't use installbsd from OSF since it installs stuff as root
2654     # by default.
2655     for ac_prog in ginstall scoinst install; do
2656       for ac_exec_ext in '' $ac_executable_extensions; do
2657         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2658           if test $ac_prog = install &&
2659             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2660             # AIX install.  It has an incompatible calling convention.
2661             :
2662           elif test $ac_prog = install &&
2663             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2664             # program-specific install script used by HP pwplus--don't use.
2665             :
2666           else
2667             rm -rf conftest.one conftest.two conftest.dir
2668             echo one > conftest.one
2669             echo two > conftest.two
2670             mkdir conftest.dir
2671             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2672               test -s conftest.one && test -s conftest.two &&
2673               test -s conftest.dir/conftest.one &&
2674               test -s conftest.dir/conftest.two
2675             then
2676               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2677               break 3
2678             fi
2679           fi
2680         fi
2681       done
2682     done
2683     ;;
2684 esac
2685
2686   done
2687 IFS=$as_save_IFS
2688
2689 rm -rf conftest.one conftest.two conftest.dir
2690
2691 fi
2692   if test "${ac_cv_path_install+set}" = set; then
2693     INSTALL=$ac_cv_path_install
2694   else
2695     # As a last resort, use the slow shell script.  Don't cache a
2696     # value for INSTALL within a source directory, because that will
2697     # break other packages using the cache if that directory is
2698     # removed, or if the value is a relative name.
2699     INSTALL=$ac_install_sh
2700   fi
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2703 $as_echo "$INSTALL" >&6; }
2704
2705 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2706 # It thinks the first close brace ends the variable substitution.
2707 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2708
2709 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2710
2711 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2712
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2714 $as_echo_n "checking whether build environment is sane... " >&6; }
2715 # Just in case
2716 sleep 1
2717 echo timestamp > conftest.file
2718 # Reject unsafe characters in $srcdir or the absolute working directory
2719 # name.  Accept space and tab only in the latter.
2720 am_lf='
2721 '
2722 case `pwd` in
2723   *[\\\"\#\$\&\'\`$am_lf]*)
2724     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2725 esac
2726 case $srcdir in
2727   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2728     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2729 esac
2730
2731 # Do `set' in a subshell so we don't clobber the current shell's
2732 # arguments.  Must try -L first in case configure is actually a
2733 # symlink; some systems play weird games with the mod time of symlinks
2734 # (eg FreeBSD returns the mod time of the symlink's containing
2735 # directory).
2736 if (
2737    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2738    if test "$*" = "X"; then
2739       # -L didn't work.
2740       set X `ls -t "$srcdir/configure" conftest.file`
2741    fi
2742    rm -f conftest.file
2743    if test "$*" != "X $srcdir/configure conftest.file" \
2744       && test "$*" != "X conftest.file $srcdir/configure"; then
2745
2746       # If neither matched, then we have a broken ls.  This can happen
2747       # if, for instance, CONFIG_SHELL is bash and it inherits a
2748       # broken ls alias from the environment.  This has actually
2749       # happened.  Such a system could not be considered "sane".
2750       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2751 alias in your environment" "$LINENO" 5
2752    fi
2753
2754    test "$2" = conftest.file
2755    )
2756 then
2757    # Ok.
2758    :
2759 else
2760    as_fn_error $? "newly created file is older than distributed files!
2761 Check your system clock" "$LINENO" 5
2762 fi
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2764 $as_echo "yes" >&6; }
2765 test "$program_prefix" != NONE &&
2766   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2767 # Use a double $ so make ignores it.
2768 test "$program_suffix" != NONE &&
2769   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2770 # Double any \ or $.
2771 # By default was `s,x,x', remove it if useless.
2772 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2773 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2774
2775 # expand $ac_aux_dir to an absolute path
2776 am_aux_dir=`cd $ac_aux_dir && pwd`
2777
2778 if test x"${MISSING+set}" != xset; then
2779   case $am_aux_dir in
2780   *\ * | *\     *)
2781     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2782   *)
2783     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2784   esac
2785 fi
2786 # Use eval to expand $SHELL
2787 if eval "$MISSING --run true"; then
2788   am_missing_run="$MISSING --run "
2789 else
2790   am_missing_run=
2791   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2792 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2793 fi
2794
2795 if test x"${install_sh}" != xset; then
2796   case $am_aux_dir in
2797   *\ * | *\     *)
2798     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2799   *)
2800     install_sh="\${SHELL} $am_aux_dir/install-sh"
2801   esac
2802 fi
2803
2804 # Installed binaries are usually stripped using `strip' when the user
2805 # run `make install-strip'.  However `strip' might not be the right
2806 # tool to use in cross-compilation environments, therefore Automake
2807 # will honor the `STRIP' environment variable to overrule this program.
2808 if test "$cross_compiling" != no; then
2809   if test -n "$ac_tool_prefix"; then
2810   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2811 set dummy ${ac_tool_prefix}strip; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_STRIP+:} false; then :
2815   $as_echo_n "(cached) " >&6
2816 else
2817   if test -n "$STRIP"; then
2818   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825     for ac_exec_ext in '' $ac_executable_extensions; do
2826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829     break 2
2830   fi
2831 done
2832   done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 STRIP=$ac_cv_prog_STRIP
2838 if test -n "$STRIP"; then
2839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2840 $as_echo "$STRIP" >&6; }
2841 else
2842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 fi
2845
2846
2847 fi
2848 if test -z "$ac_cv_prog_STRIP"; then
2849   ac_ct_STRIP=$STRIP
2850   # Extract the first word of "strip", so it can be a program name with args.
2851 set dummy strip; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2855   $as_echo_n "(cached) " >&6
2856 else
2857   if test -n "$ac_ct_STRIP"; then
2858   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865     for ac_exec_ext in '' $ac_executable_extensions; do
2866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867     ac_cv_prog_ac_ct_STRIP="strip"
2868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869     break 2
2870   fi
2871 done
2872   done
2873 IFS=$as_save_IFS
2874
2875 fi
2876 fi
2877 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2878 if test -n "$ac_ct_STRIP"; then
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2880 $as_echo "$ac_ct_STRIP" >&6; }
2881 else
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 fi
2885
2886   if test "x$ac_ct_STRIP" = x; then
2887     STRIP=":"
2888   else
2889     case $cross_compiling:$ac_tool_warned in
2890 yes:)
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2893 ac_tool_warned=yes ;;
2894 esac
2895     STRIP=$ac_ct_STRIP
2896   fi
2897 else
2898   STRIP="$ac_cv_prog_STRIP"
2899 fi
2900
2901 fi
2902 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2903
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2905 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2906 if test -z "$MKDIR_P"; then
2907   if ${ac_cv_path_mkdir+:} false; then :
2908   $as_echo_n "(cached) " >&6
2909 else
2910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2912 do
2913   IFS=$as_save_IFS
2914   test -z "$as_dir" && as_dir=.
2915     for ac_prog in mkdir gmkdir; do
2916          for ac_exec_ext in '' $ac_executable_extensions; do
2917            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2918            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2919              'mkdir (GNU coreutils) '* | \
2920              'mkdir (coreutils) '* | \
2921              'mkdir (fileutils) '4.1*)
2922                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2923                break 3;;
2924            esac
2925          done
2926        done
2927   done
2928 IFS=$as_save_IFS
2929
2930 fi
2931
2932   test -d ./--version && rmdir ./--version
2933   if test "${ac_cv_path_mkdir+set}" = set; then
2934     MKDIR_P="$ac_cv_path_mkdir -p"
2935   else
2936     # As a last resort, use the slow shell script.  Don't cache a
2937     # value for MKDIR_P within a source directory, because that will
2938     # break other packages using the cache if that directory is
2939     # removed, or if the value is a relative name.
2940     MKDIR_P="$ac_install_sh -d"
2941   fi
2942 fi
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2944 $as_echo "$MKDIR_P" >&6; }
2945
2946 mkdir_p="$MKDIR_P"
2947 case $mkdir_p in
2948   [\\/$]* | ?:[\\/]*) ;;
2949   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2950 esac
2951
2952 for ac_prog in gawk mawk nawk awk
2953 do
2954   # Extract the first word of "$ac_prog", so it can be a program name with args.
2955 set dummy $ac_prog; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if ${ac_cv_prog_AWK+:} false; then :
2959   $as_echo_n "(cached) " >&6
2960 else
2961   if test -n "$AWK"; then
2962   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967   IFS=$as_save_IFS
2968   test -z "$as_dir" && as_dir=.
2969     for ac_exec_ext in '' $ac_executable_extensions; do
2970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971     ac_cv_prog_AWK="$ac_prog"
2972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973     break 2
2974   fi
2975 done
2976   done
2977 IFS=$as_save_IFS
2978
2979 fi
2980 fi
2981 AWK=$ac_cv_prog_AWK
2982 if test -n "$AWK"; then
2983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2984 $as_echo "$AWK" >&6; }
2985 else
2986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990
2991   test -n "$AWK" && break
2992 done
2993
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2995 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2996 set x ${MAKE-make}
2997 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2998 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2999   $as_echo_n "(cached) " >&6
3000 else
3001   cat >conftest.make <<\_ACEOF
3002 SHELL = /bin/sh
3003 all:
3004         @echo '@@@%%%=$(MAKE)=@@@%%%'
3005 _ACEOF
3006 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3007 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3008   *@@@%%%=?*=@@@%%%*)
3009     eval ac_cv_prog_make_${ac_make}_set=yes;;
3010   *)
3011     eval ac_cv_prog_make_${ac_make}_set=no;;
3012 esac
3013 rm -f conftest.make
3014 fi
3015 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3017 $as_echo "yes" >&6; }
3018   SET_MAKE=
3019 else
3020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022   SET_MAKE="MAKE=${MAKE-make}"
3023 fi
3024
3025 rm -rf .tst 2>/dev/null
3026 mkdir .tst 2>/dev/null
3027 if test -d .tst; then
3028   am__leading_dot=.
3029 else
3030   am__leading_dot=_
3031 fi
3032 rmdir .tst 2>/dev/null
3033
3034 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3035   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3036   # is not polluted with repeated "-I."
3037   am__isrc=' -I$(srcdir)'
3038   # test to see if srcdir already configured
3039   if test -f $srcdir/config.status; then
3040     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3041   fi
3042 fi
3043
3044 # test whether we have cygpath
3045 if test -z "$CYGPATH_W"; then
3046   if (cygpath --version) >/dev/null 2>/dev/null; then
3047     CYGPATH_W='cygpath -w'
3048   else
3049     CYGPATH_W=echo
3050   fi
3051 fi
3052
3053
3054 # Define the identity of the package.
3055  PACKAGE=fontconfig
3056  VERSION=2.10.2
3057
3058
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE "$PACKAGE"
3061 _ACEOF
3062
3063
3064 cat >>confdefs.h <<_ACEOF
3065 #define VERSION "$VERSION"
3066 _ACEOF
3067
3068 # Some tools Automake needs.
3069
3070 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3071
3072
3073 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3074
3075
3076 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3077
3078
3079 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3080
3081
3082 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3083
3084 # We need awk for the "check" target.  The system "awk" is bad on
3085 # some platforms.
3086 # Always define AMTAR for backward compatibility.  Yes, it's still used
3087 # in the wild :-(  We should find a proper way to deprecate it ...
3088 AMTAR='$${TAR-tar}'
3089
3090 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3091
3092
3093
3094
3095
3096 # Check whether --enable-silent-rules was given.
3097 if test "${enable_silent_rules+set}" = set; then :
3098   enableval=$enable_silent_rules;
3099 fi
3100
3101 case $enable_silent_rules in
3102 yes) AM_DEFAULT_VERBOSITY=0;;
3103 no)  AM_DEFAULT_VERBOSITY=1;;
3104 *)   AM_DEFAULT_VERBOSITY=0;;
3105 esac
3106 am_make=${MAKE-make}
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3108 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3109 if ${am_cv_make_support_nested_variables+:} false; then :
3110   $as_echo_n "(cached) " >&6
3111 else
3112   if $as_echo 'TRUE=$(BAR$(V))
3113 BAR0=false
3114 BAR1=true
3115 V=1
3116 am__doit:
3117         @$(TRUE)
3118 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3119   am_cv_make_support_nested_variables=yes
3120 else
3121   am_cv_make_support_nested_variables=no
3122 fi
3123 fi
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3125 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3126 if test $am_cv_make_support_nested_variables = yes; then
3127     AM_V='$(V)'
3128   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3129 else
3130   AM_V=$AM_DEFAULT_VERBOSITY
3131   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3132 fi
3133 AM_BACKSLASH='\'
3134
3135
3136
3137 LIBT_CURRENT=7
3138 LIBT_REVISION=2
3139
3140
3141 LIBT_AGE=6
3142
3143 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
3144
3145
3146 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
3147
3148
3149
3150 ac_config_headers="$ac_config_headers config.h"
3151
3152
3153
3154 ac_ext=c
3155 ac_cpp='$CPP $CPPFLAGS'
3156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159 if test -n "$ac_tool_prefix"; then
3160   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_CC+:} false; then :
3165   $as_echo_n "(cached) " >&6
3166 else
3167   if test -n "$CC"; then
3168   ac_cv_prog_CC="$CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173   IFS=$as_save_IFS
3174   test -z "$as_dir" && as_dir=.
3175     for ac_exec_ext in '' $ac_executable_extensions; do
3176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179     break 2
3180   fi
3181 done
3182   done
3183 IFS=$as_save_IFS
3184
3185 fi
3186 fi
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190 $as_echo "$CC" >&6; }
3191 else
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3195
3196
3197 fi
3198 if test -z "$ac_cv_prog_CC"; then
3199   ac_ct_CC=$CC
3200   # Extract the first word of "gcc", so it can be a program name with args.
3201 set dummy gcc; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3205   $as_echo_n "(cached) " >&6
3206 else
3207   if test -n "$ac_ct_CC"; then
3208   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213   IFS=$as_save_IFS
3214   test -z "$as_dir" && as_dir=.
3215     for ac_exec_ext in '' $ac_executable_extensions; do
3216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217     ac_cv_prog_ac_ct_CC="gcc"
3218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219     break 2
3220   fi
3221 done
3222   done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3228 if test -n "$ac_ct_CC"; then
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3230 $as_echo "$ac_ct_CC" >&6; }
3231 else
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236   if test "x$ac_ct_CC" = x; then
3237     CC=""
3238   else
3239     case $cross_compiling:$ac_tool_warned in
3240 yes:)
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3243 ac_tool_warned=yes ;;
3244 esac
3245     CC=$ac_ct_CC
3246   fi
3247 else
3248   CC="$ac_cv_prog_CC"
3249 fi
3250
3251 if test -z "$CC"; then
3252           if test -n "$ac_tool_prefix"; then
3253     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3254 set dummy ${ac_tool_prefix}cc; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_CC+:} false; then :
3258   $as_echo_n "(cached) " >&6
3259 else
3260   if test -n "$CC"; then
3261   ac_cv_prog_CC="$CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266   IFS=$as_save_IFS
3267   test -z "$as_dir" && as_dir=.
3268     for ac_exec_ext in '' $ac_executable_extensions; do
3269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3270     ac_cv_prog_CC="${ac_tool_prefix}cc"
3271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272     break 2
3273   fi
3274 done
3275   done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 CC=$ac_cv_prog_CC
3281 if test -n "$CC"; then
3282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283 $as_echo "$CC" >&6; }
3284 else
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289
3290   fi
3291 fi
3292 if test -z "$CC"; then
3293   # Extract the first word of "cc", so it can be a program name with args.
3294 set dummy cc; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_CC+:} false; then :
3298   $as_echo_n "(cached) " >&6
3299 else
3300   if test -n "$CC"; then
3301   ac_cv_prog_CC="$CC" # Let the user override the test.
3302 else
3303   ac_prog_rejected=no
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307   IFS=$as_save_IFS
3308   test -z "$as_dir" && as_dir=.
3309     for ac_exec_ext in '' $ac_executable_extensions; do
3310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3312        ac_prog_rejected=yes
3313        continue
3314      fi
3315     ac_cv_prog_CC="cc"
3316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317     break 2
3318   fi
3319 done
3320   done
3321 IFS=$as_save_IFS
3322
3323 if test $ac_prog_rejected = yes; then
3324   # We found a bogon in the path, so make sure we never use it.
3325   set dummy $ac_cv_prog_CC
3326   shift
3327   if test $# != 0; then
3328     # We chose a different compiler from the bogus one.
3329     # However, it has the same basename, so the bogon will be chosen
3330     # first if we set CC to just the basename; use the full file name.
3331     shift
3332     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3333   fi
3334 fi
3335 fi
3336 fi
3337 CC=$ac_cv_prog_CC
3338 if test -n "$CC"; then
3339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3340 $as_echo "$CC" >&6; }
3341 else
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 fi
3345
3346
3347 fi
3348 if test -z "$CC"; then
3349   if test -n "$ac_tool_prefix"; then
3350   for ac_prog in cl.exe
3351   do
3352     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_CC+:} false; then :
3357   $as_echo_n "(cached) " >&6
3358 else
3359   if test -n "$CC"; then
3360   ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365   IFS=$as_save_IFS
3366   test -z "$as_dir" && as_dir=.
3367     for ac_exec_ext in '' $ac_executable_extensions; do
3368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3369     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371     break 2
3372   fi
3373 done
3374   done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382 $as_echo "$CC" >&6; }
3383 else
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 fi
3387
3388
3389     test -n "$CC" && break
3390   done
3391 fi
3392 if test -z "$CC"; then
3393   ac_ct_CC=$CC
3394   for ac_prog in cl.exe
3395 do
3396   # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3401   $as_echo_n "(cached) " >&6
3402 else
3403   if test -n "$ac_ct_CC"; then
3404   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409   IFS=$as_save_IFS
3410   test -z "$as_dir" && as_dir=.
3411     for ac_exec_ext in '' $ac_executable_extensions; do
3412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3413     ac_cv_prog_ac_ct_CC="$ac_prog"
3414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415     break 2
3416   fi
3417 done
3418   done
3419 IFS=$as_save_IFS
3420
3421 fi
3422 fi
3423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3424 if test -n "$ac_ct_CC"; then
3425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3426 $as_echo "$ac_ct_CC" >&6; }
3427 else
3428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 fi
3431
3432
3433   test -n "$ac_ct_CC" && break
3434 done
3435
3436   if test "x$ac_ct_CC" = x; then
3437     CC=""
3438   else
3439     case $cross_compiling:$ac_tool_warned in
3440 yes:)
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443 ac_tool_warned=yes ;;
3444 esac
3445     CC=$ac_ct_CC
3446   fi
3447 fi
3448
3449 fi
3450
3451
3452 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error $? "no acceptable C compiler found in \$PATH
3455 See \`config.log' for more details" "$LINENO" 5; }
3456
3457 # Provide some information about the compiler.
3458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3459 set X $ac_compile
3460 ac_compiler=$2
3461 for ac_option in --version -v -V -qversion; do
3462   { { ac_try="$ac_compiler $ac_option >&5"
3463 case "(($ac_try" in
3464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465   *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3470   ac_status=$?
3471   if test -s conftest.err; then
3472     sed '10a\
3473 ... rest of stderr output deleted ...
3474          10q' conftest.err >conftest.er1
3475     cat conftest.er1 >&5
3476   fi
3477   rm -f conftest.er1 conftest.err
3478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479   test $ac_status = 0; }
3480 done
3481
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h.  */
3484
3485 int
3486 main ()
3487 {
3488
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 ac_clean_files_save=$ac_clean_files
3494 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3495 # Try to create an executable without -o first, disregard a.out.
3496 # It will help us diagnose broken compilers, and finding out an intuition
3497 # of exeext.
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3499 $as_echo_n "checking whether the C compiler works... " >&6; }
3500 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3501
3502 # The possible output files:
3503 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3504
3505 ac_rmfiles=
3506 for ac_file in $ac_files
3507 do
3508   case $ac_file in
3509     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3510     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3511   esac
3512 done
3513 rm -f $ac_rmfiles
3514
3515 if { { ac_try="$ac_link_default"
3516 case "(($ac_try" in
3517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518   *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522   (eval "$ac_link_default") 2>&5
3523   ac_status=$?
3524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525   test $ac_status = 0; }; then :
3526   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3527 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3528 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3529 # so that the user can short-circuit this test for compilers unknown to
3530 # Autoconf.
3531 for ac_file in $ac_files ''
3532 do
3533   test -f "$ac_file" || continue
3534   case $ac_file in
3535     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3536         ;;
3537     [ab].out )
3538         # We found the default executable, but exeext='' is most
3539         # certainly right.
3540         break;;
3541     *.* )
3542         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3543         then :; else
3544            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3545         fi
3546         # We set ac_cv_exeext here because the later test for it is not
3547         # safe: cross compilers may not add the suffix if given an `-o'
3548         # argument, so we may need to know it at that point already.
3549         # Even if this section looks crufty: it has the advantage of
3550         # actually working.
3551         break;;
3552     * )
3553         break;;
3554   esac
3555 done
3556 test "$ac_cv_exeext" = no && ac_cv_exeext=
3557
3558 else
3559   ac_file=''
3560 fi
3561 if test -z "$ac_file"; then :
3562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 $as_echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569 as_fn_error 77 "C compiler cannot create executables
3570 See \`config.log' for more details" "$LINENO" 5; }
3571 else
3572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3573 $as_echo "yes" >&6; }
3574 fi
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3576 $as_echo_n "checking for C compiler default output file name... " >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3578 $as_echo "$ac_file" >&6; }
3579 ac_exeext=$ac_cv_exeext
3580
3581 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3582 ac_clean_files=$ac_clean_files_save
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3584 $as_echo_n "checking for suffix of executables... " >&6; }
3585 if { { ac_try="$ac_link"
3586 case "(($ac_try" in
3587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588   *) ac_try_echo=$ac_try;;
3589 esac
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592   (eval "$ac_link") 2>&5
3593   ac_status=$?
3594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595   test $ac_status = 0; }; then :
3596   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3597 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3598 # work properly (i.e., refer to `conftest.exe'), while it won't with
3599 # `rm'.
3600 for ac_file in conftest.exe conftest conftest.*; do
3601   test -f "$ac_file" || continue
3602   case $ac_file in
3603     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3604     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3605           break;;
3606     * ) break;;
3607   esac
3608 done
3609 else
3610   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3613 See \`config.log' for more details" "$LINENO" 5; }
3614 fi
3615 rm -f conftest conftest$ac_cv_exeext
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3617 $as_echo "$ac_cv_exeext" >&6; }
3618
3619 rm -f conftest.$ac_ext
3620 EXEEXT=$ac_cv_exeext
3621 ac_exeext=$EXEEXT
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h.  */
3624 #include <stdio.h>
3625 int
3626 main ()
3627 {
3628 FILE *f = fopen ("conftest.out", "w");
3629  return ferror (f) || fclose (f) != 0;
3630
3631   ;
3632   return 0;
3633 }
3634 _ACEOF
3635 ac_clean_files="$ac_clean_files conftest.out"
3636 # Check that the compiler produces executables we can run.  If not, either
3637 # the compiler is broken, or we cross compile.
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3639 $as_echo_n "checking whether we are cross compiling... " >&6; }
3640 if test "$cross_compiling" != yes; then
3641   { { ac_try="$ac_link"
3642 case "(($ac_try" in
3643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644   *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648   (eval "$ac_link") 2>&5
3649   ac_status=$?
3650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651   test $ac_status = 0; }
3652   if { ac_try='./conftest$ac_cv_exeext'
3653   { { case "(($ac_try" in
3654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655   *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659   (eval "$ac_try") 2>&5
3660   ac_status=$?
3661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662   test $ac_status = 0; }; }; then
3663     cross_compiling=no
3664   else
3665     if test "$cross_compiling" = maybe; then
3666         cross_compiling=yes
3667     else
3668         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 as_fn_error $? "cannot run C compiled programs.
3671 If you meant to cross compile, use \`--host'.
3672 See \`config.log' for more details" "$LINENO" 5; }
3673     fi
3674   fi
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3677 $as_echo "$cross_compiling" >&6; }
3678
3679 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3680 ac_clean_files=$ac_clean_files_save
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3682 $as_echo_n "checking for suffix of object files... " >&6; }
3683 if ${ac_cv_objext+:} false; then :
3684   $as_echo_n "(cached) " >&6
3685 else
3686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h.  */
3688
3689 int
3690 main ()
3691 {
3692
3693   ;
3694   return 0;
3695 }
3696 _ACEOF
3697 rm -f conftest.o conftest.obj
3698 if { { ac_try="$ac_compile"
3699 case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705   (eval "$ac_compile") 2>&5
3706   ac_status=$?
3707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708   test $ac_status = 0; }; then :
3709   for ac_file in conftest.o conftest.obj conftest.*; do
3710   test -f "$ac_file" || continue;
3711   case $ac_file in
3712     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3713     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3714        break;;
3715   esac
3716 done
3717 else
3718   $as_echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $? "cannot compute suffix of object files: cannot compile
3724 See \`config.log' for more details" "$LINENO" 5; }
3725 fi
3726 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3729 $as_echo "$ac_cv_objext" >&6; }
3730 OBJEXT=$ac_cv_objext
3731 ac_objext=$OBJEXT
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3733 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3734 if ${ac_cv_c_compiler_gnu+:} false; then :
3735   $as_echo_n "(cached) " >&6
3736 else
3737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h.  */
3739
3740 int
3741 main ()
3742 {
3743 #ifndef __GNUC__
3744        choke me
3745 #endif
3746
3747   ;
3748   return 0;
3749 }
3750 _ACEOF
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752   ac_compiler_gnu=yes
3753 else
3754   ac_compiler_gnu=no
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3758
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3761 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3762 if test $ac_compiler_gnu = yes; then
3763   GCC=yes
3764 else
3765   GCC=
3766 fi
3767 ac_test_CFLAGS=${CFLAGS+set}
3768 ac_save_CFLAGS=$CFLAGS
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3770 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3771 if ${ac_cv_prog_cc_g+:} false; then :
3772   $as_echo_n "(cached) " >&6
3773 else
3774   ac_save_c_werror_flag=$ac_c_werror_flag
3775    ac_c_werror_flag=yes
3776    ac_cv_prog_cc_g=no
3777    CFLAGS="-g"
3778    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h.  */
3780
3781 int
3782 main ()
3783 {
3784
3785   ;
3786   return 0;
3787 }
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790   ac_cv_prog_cc_g=yes
3791 else
3792   CFLAGS=""
3793       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h.  */
3795
3796 int
3797 main ()
3798 {
3799
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805
3806 else
3807   ac_c_werror_flag=$ac_save_c_werror_flag
3808          CFLAGS="-g"
3809          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h.  */
3811
3812 int
3813 main ()
3814 {
3815
3816   ;
3817   return 0;
3818 }
3819 _ACEOF
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821   ac_cv_prog_cc_g=yes
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828    ac_c_werror_flag=$ac_save_c_werror_flag
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3831 $as_echo "$ac_cv_prog_cc_g" >&6; }
3832 if test "$ac_test_CFLAGS" = set; then
3833   CFLAGS=$ac_save_CFLAGS
3834 elif test $ac_cv_prog_cc_g = yes; then
3835   if test "$GCC" = yes; then
3836     CFLAGS="-g -O2"
3837   else
3838     CFLAGS="-g"
3839   fi
3840 else
3841   if test "$GCC" = yes; then
3842     CFLAGS="-O2"
3843   else
3844     CFLAGS=
3845   fi
3846 fi
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3848 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3849 if ${ac_cv_prog_cc_c89+:} false; then :
3850   $as_echo_n "(cached) " >&6
3851 else
3852   ac_cv_prog_cc_c89=no
3853 ac_save_CC=$CC
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h.  */
3856 #include <stdarg.h>
3857 #include <stdio.h>
3858 #include <sys/types.h>
3859 #include <sys/stat.h>
3860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3861 struct buf { int x; };
3862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3863 static char *e (p, i)
3864      char **p;
3865      int i;
3866 {
3867   return p[i];
3868 }
3869 static char *f (char * (*g) (char **, int), char **p, ...)
3870 {
3871   char *s;
3872   va_list v;
3873   va_start (v,p);
3874   s = g (p, va_arg (v,int));
3875   va_end (v);
3876   return s;
3877 }
3878
3879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3880    function prototypes and stuff, but not '\xHH' hex character constants.
3881    These don't provoke an error unfortunately, instead are silently treated
3882    as 'x'.  The following induces an error, until -std is added to get
3883    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3884    array size at least.  It's necessary to write '\x00'==0 to get something
3885    that's true only with -std.  */
3886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3887
3888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3889    inside strings and character constants.  */
3890 #define FOO(x) 'x'
3891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3892
3893 int test (int i, double x);
3894 struct s1 {int (*f) (int a);};
3895 struct s2 {int (*f) (double a);};
3896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3897 int argc;
3898 char **argv;
3899 int
3900 main ()
3901 {
3902 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3903   ;
3904   return 0;
3905 }
3906 _ACEOF
3907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3908         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3909 do
3910   CC="$ac_save_CC $ac_arg"
3911   if ac_fn_c_try_compile "$LINENO"; then :
3912   ac_cv_prog_cc_c89=$ac_arg
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext
3915   test "x$ac_cv_prog_cc_c89" != "xno" && break
3916 done
3917 rm -f conftest.$ac_ext
3918 CC=$ac_save_CC
3919
3920 fi
3921 # AC_CACHE_VAL
3922 case "x$ac_cv_prog_cc_c89" in
3923   x)
3924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3925 $as_echo "none needed" >&6; } ;;
3926   xno)
3927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3928 $as_echo "unsupported" >&6; } ;;
3929   *)
3930     CC="$CC $ac_cv_prog_cc_c89"
3931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3932 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3933 esac
3934 if test "x$ac_cv_prog_cc_c89" != xno; then :
3935
3936 fi
3937
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 DEPDIR="${am__leading_dot}deps"
3944
3945 ac_config_commands="$ac_config_commands depfiles"
3946
3947
3948 am_make=${MAKE-make}
3949 cat > confinc << 'END'
3950 am__doit:
3951         @echo this is the am__doit target
3952 .PHONY: am__doit
3953 END
3954 # If we don't find an include directive, just comment out the code.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3956 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3957 am__include="#"
3958 am__quote=
3959 _am_result=none
3960 # First try GNU make style include.
3961 echo "include confinc" > confmf
3962 # Ignore all kinds of additional output from `make'.
3963 case `$am_make -s -f confmf 2> /dev/null` in #(
3964 *the\ am__doit\ target*)
3965   am__include=include
3966   am__quote=
3967   _am_result=GNU
3968   ;;
3969 esac
3970 # Now try BSD make style include.
3971 if test "$am__include" = "#"; then
3972    echo '.include "confinc"' > confmf
3973    case `$am_make -s -f confmf 2> /dev/null` in #(
3974    *the\ am__doit\ target*)
3975      am__include=.include
3976      am__quote="\""
3977      _am_result=BSD
3978      ;;
3979    esac
3980 fi
3981
3982
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3984 $as_echo "$_am_result" >&6; }
3985 rm -f confinc confmf
3986
3987 # Check whether --enable-dependency-tracking was given.
3988 if test "${enable_dependency_tracking+set}" = set; then :
3989   enableval=$enable_dependency_tracking;
3990 fi
3991
3992 if test "x$enable_dependency_tracking" != xno; then
3993   am_depcomp="$ac_aux_dir/depcomp"
3994   AMDEPBACKSLASH='\'
3995   am__nodep='_no'
3996 fi
3997  if test "x$enable_dependency_tracking" != xno; then
3998   AMDEP_TRUE=
3999   AMDEP_FALSE='#'
4000 else
4001   AMDEP_TRUE='#'
4002   AMDEP_FALSE=
4003 fi
4004
4005
4006
4007 depcc="$CC"   am_compiler_list=
4008
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4010 $as_echo_n "checking dependency style of $depcc... " >&6; }
4011 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4012   $as_echo_n "(cached) " >&6
4013 else
4014   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4015   # We make a subdir and do the tests there.  Otherwise we can end up
4016   # making bogus files that we don't know about and never remove.  For
4017   # instance it was reported that on HP-UX the gcc test will end up
4018   # making a dummy file named `D' -- because `-MD' means `put the output
4019   # in D'.
4020   rm -rf conftest.dir
4021   mkdir conftest.dir
4022   # Copy depcomp to subdir because otherwise we won't find it if we're
4023   # using a relative directory.
4024   cp "$am_depcomp" conftest.dir
4025   cd conftest.dir
4026   # We will build objects and dependencies in a subdirectory because
4027   # it helps to detect inapplicable dependency modes.  For instance
4028   # both Tru64's cc and ICC support -MD to output dependencies as a
4029   # side effect of compilation, but ICC will put the dependencies in
4030   # the current directory while Tru64 will put them in the object
4031   # directory.
4032   mkdir sub
4033
4034   am_cv_CC_dependencies_compiler_type=none
4035   if test "$am_compiler_list" = ""; then
4036      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4037   fi
4038   am__universal=false
4039   case " $depcc " in #(
4040      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4041      esac
4042
4043   for depmode in $am_compiler_list; do
4044     # Setup a source with many dependencies, because some compilers
4045     # like to wrap large dependency lists on column 80 (with \), and
4046     # we should not choose a depcomp mode which is confused by this.
4047     #
4048     # We need to recreate these files for each test, as the compiler may
4049     # overwrite some of them when testing with obscure command lines.
4050     # This happens at least with the AIX C compiler.
4051     : > sub/conftest.c
4052     for i in 1 2 3 4 5 6; do
4053       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4054       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4055       # Solaris 8's {/usr,}/bin/sh.
4056       touch sub/conftst$i.h
4057     done
4058     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4059
4060     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4061     # mode.  It turns out that the SunPro C++ compiler does not properly
4062     # handle `-M -o', and we need to detect this.  Also, some Intel
4063     # versions had trouble with output in subdirs
4064     am__obj=sub/conftest.${OBJEXT-o}
4065     am__minus_obj="-o $am__obj"
4066     case $depmode in
4067     gcc)
4068       # This depmode causes a compiler race in universal mode.
4069       test "$am__universal" = false || continue
4070       ;;
4071     nosideeffect)
4072       # after this tag, mechanisms are not by side-effect, so they'll
4073       # only be used when explicitly requested
4074       if test "x$enable_dependency_tracking" = xyes; then
4075         continue
4076       else
4077         break
4078       fi
4079       ;;
4080     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4081       # This compiler won't grok `-c -o', but also, the minuso test has
4082       # not run yet.  These depmodes are late enough in the game, and
4083       # so weak that their functioning should not be impacted.
4084       am__obj=conftest.${OBJEXT-o}
4085       am__minus_obj=
4086       ;;
4087     none) break ;;
4088     esac
4089     if depmode=$depmode \
4090        source=sub/conftest.c object=$am__obj \
4091        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4092        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4093          >/dev/null 2>conftest.err &&
4094        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4095        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4096        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4097        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4098       # icc doesn't choke on unknown options, it will just issue warnings
4099       # or remarks (even with -Werror).  So we grep stderr for any message
4100       # that says an option was ignored or not supported.
4101       # When given -MP, icc 7.0 and 7.1 complain thusly:
4102       #   icc: Command line warning: ignoring option '-M'; no argument required
4103       # The diagnosis changed in icc 8.0:
4104       #   icc: Command line remark: option '-MP' not supported
4105       if (grep 'ignoring option' conftest.err ||
4106           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4107         am_cv_CC_dependencies_compiler_type=$depmode
4108         break
4109       fi
4110     fi
4111   done
4112
4113   cd ..
4114   rm -rf conftest.dir
4115 else
4116   am_cv_CC_dependencies_compiler_type=none
4117 fi
4118
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4121 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4122 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4123
4124  if
4125   test "x$enable_dependency_tracking" != xno \
4126   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4127   am__fastdepCC_TRUE=
4128   am__fastdepCC_FALSE='#'
4129 else
4130   am__fastdepCC_TRUE='#'
4131   am__fastdepCC_FALSE=
4132 fi
4133
4134
4135
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4137 $as_echo_n "checking whether ln -s works... " >&6; }
4138 LN_S=$as_ln_s
4139 if test "$LN_S" = "ln -s"; then
4140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4141 $as_echo "yes" >&6; }
4142 else
4143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4144 $as_echo "no, using $LN_S" >&6; }
4145 fi
4146
4147 # Make sure we can run config.sub.
4148 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4149   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4150
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4152 $as_echo_n "checking build system type... " >&6; }
4153 if ${ac_cv_build+:} false; then :
4154   $as_echo_n "(cached) " >&6
4155 else
4156   ac_build_alias=$build_alias
4157 test "x$ac_build_alias" = x &&
4158   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4159 test "x$ac_build_alias" = x &&
4160   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4162   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4163
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4166 $as_echo "$ac_cv_build" >&6; }
4167 case $ac_cv_build in
4168 *-*-*) ;;
4169 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4170 esac
4171 build=$ac_cv_build
4172 ac_save_IFS=$IFS; IFS='-'
4173 set x $ac_cv_build
4174 shift
4175 build_cpu=$1
4176 build_vendor=$2
4177 shift; shift
4178 # Remember, the first character of IFS is used to create $*,
4179 # except with old shells:
4180 build_os=$*
4181 IFS=$ac_save_IFS
4182 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4183
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4186 $as_echo_n "checking host system type... " >&6; }
4187 if ${ac_cv_host+:} false; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190   if test "x$host_alias" = x; then
4191   ac_cv_host=$ac_cv_build
4192 else
4193   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4194     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4195 fi
4196
4197 fi
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4199 $as_echo "$ac_cv_host" >&6; }
4200 case $ac_cv_host in
4201 *-*-*) ;;
4202 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4203 esac
4204 host=$ac_cv_host
4205 ac_save_IFS=$IFS; IFS='-'
4206 set x $ac_cv_host
4207 shift
4208 host_cpu=$1
4209 host_vendor=$2
4210 shift; shift
4211 # Remember, the first character of IFS is used to create $*,
4212 # except with old shells:
4213 host_os=$*
4214 IFS=$ac_save_IFS
4215 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4216
4217
4218 enable_win32_dll=yes
4219
4220 case $host in
4221 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4222   if test -n "$ac_tool_prefix"; then
4223   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4224 set dummy ${ac_tool_prefix}as; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if ${ac_cv_prog_AS+:} false; then :
4228   $as_echo_n "(cached) " >&6
4229 else
4230   if test -n "$AS"; then
4231   ac_cv_prog_AS="$AS" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236   IFS=$as_save_IFS
4237   test -z "$as_dir" && as_dir=.
4238     for ac_exec_ext in '' $ac_executable_extensions; do
4239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240     ac_cv_prog_AS="${ac_tool_prefix}as"
4241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242     break 2
4243   fi
4244 done
4245   done
4246 IFS=$as_save_IFS
4247
4248 fi
4249 fi
4250 AS=$ac_cv_prog_AS
4251 if test -n "$AS"; then
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4253 $as_echo "$AS" >&6; }
4254 else
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4257 fi
4258
4259
4260 fi
4261 if test -z "$ac_cv_prog_AS"; then
4262   ac_ct_AS=$AS
4263   # Extract the first word of "as", so it can be a program name with args.
4264 set dummy as; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270   if test -n "$ac_ct_AS"; then
4271   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276   IFS=$as_save_IFS
4277   test -z "$as_dir" && as_dir=.
4278     for ac_exec_ext in '' $ac_executable_extensions; do
4279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280     ac_cv_prog_ac_ct_AS="as"
4281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282     break 2
4283   fi
4284 done
4285   done
4286 IFS=$as_save_IFS
4287
4288 fi
4289 fi
4290 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4291 if test -n "$ac_ct_AS"; then
4292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4293 $as_echo "$ac_ct_AS" >&6; }
4294 else
4295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 fi
4298
4299   if test "x$ac_ct_AS" = x; then
4300     AS="false"
4301   else
4302     case $cross_compiling:$ac_tool_warned in
4303 yes:)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306 ac_tool_warned=yes ;;
4307 esac
4308     AS=$ac_ct_AS
4309   fi
4310 else
4311   AS="$ac_cv_prog_AS"
4312 fi
4313
4314   if test -n "$ac_tool_prefix"; then
4315   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if ${ac_cv_prog_DLLTOOL+:} false; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322   if test -n "$DLLTOOL"; then
4323   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328   IFS=$as_save_IFS
4329   test -z "$as_dir" && as_dir=.
4330     for ac_exec_ext in '' $ac_executable_extensions; do
4331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334     break 2
4335   fi
4336 done
4337   done
4338 IFS=$as_save_IFS
4339
4340 fi
4341 fi
4342 DLLTOOL=$ac_cv_prog_DLLTOOL
4343 if test -n "$DLLTOOL"; then
4344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4345 $as_echo "$DLLTOOL" >&6; }
4346 else
4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4349 fi
4350
4351
4352 fi
4353 if test -z "$ac_cv_prog_DLLTOOL"; then
4354   ac_ct_DLLTOOL=$DLLTOOL
4355   # Extract the first word of "dlltool", so it can be a program name with args.
4356 set dummy dlltool; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4360   $as_echo_n "(cached) " >&6
4361 else
4362   if test -n "$ac_ct_DLLTOOL"; then
4363   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368   IFS=$as_save_IFS
4369   test -z "$as_dir" && as_dir=.
4370     for ac_exec_ext in '' $ac_executable_extensions; do
4371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374     break 2
4375   fi
4376 done
4377   done
4378 IFS=$as_save_IFS
4379
4380 fi
4381 fi
4382 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4383 if test -n "$ac_ct_DLLTOOL"; then
4384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4385 $as_echo "$ac_ct_DLLTOOL" >&6; }
4386 else
4387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4389 fi
4390
4391   if test "x$ac_ct_DLLTOOL" = x; then
4392     DLLTOOL="false"
4393   else
4394     case $cross_compiling:$ac_tool_warned in
4395 yes:)
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4398 ac_tool_warned=yes ;;
4399 esac
4400     DLLTOOL=$ac_ct_DLLTOOL
4401   fi
4402 else
4403   DLLTOOL="$ac_cv_prog_DLLTOOL"
4404 fi
4405
4406   if test -n "$ac_tool_prefix"; then
4407   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4408 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410 $as_echo_n "checking for $ac_word... " >&6; }
4411 if ${ac_cv_prog_OBJDUMP+:} false; then :
4412   $as_echo_n "(cached) " >&6
4413 else
4414   if test -n "$OBJDUMP"; then
4415   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422     for ac_exec_ext in '' $ac_executable_extensions; do
4423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426     break 2
4427   fi
4428 done
4429   done
4430 IFS=$as_save_IFS
4431
4432 fi
4433 fi
4434 OBJDUMP=$ac_cv_prog_OBJDUMP
4435 if test -n "$OBJDUMP"; then
4436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4437 $as_echo "$OBJDUMP" >&6; }
4438 else
4439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 $as_echo "no" >&6; }
4441 fi
4442
4443
4444 fi
4445 if test -z "$ac_cv_prog_OBJDUMP"; then
4446   ac_ct_OBJDUMP=$OBJDUMP
4447   # Extract the first word of "objdump", so it can be a program name with args.
4448 set dummy objdump; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4452   $as_echo_n "(cached) " >&6
4453 else
4454   if test -n "$ac_ct_OBJDUMP"; then
4455   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460   IFS=$as_save_IFS
4461   test -z "$as_dir" && as_dir=.
4462     for ac_exec_ext in '' $ac_executable_extensions; do
4463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466     break 2
4467   fi
4468 done
4469   done
4470 IFS=$as_save_IFS
4471
4472 fi
4473 fi
4474 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4475 if test -n "$ac_ct_OBJDUMP"; then
4476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4477 $as_echo "$ac_ct_OBJDUMP" >&6; }
4478 else
4479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4481 fi
4482
4483   if test "x$ac_ct_OBJDUMP" = x; then
4484     OBJDUMP="false"
4485   else
4486     case $cross_compiling:$ac_tool_warned in
4487 yes:)
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4490 ac_tool_warned=yes ;;
4491 esac
4492     OBJDUMP=$ac_ct_OBJDUMP
4493   fi
4494 else
4495   OBJDUMP="$ac_cv_prog_OBJDUMP"
4496 fi
4497
4498   ;;
4499 esac
4500
4501 test -z "$AS" && AS=as
4502
4503
4504
4505
4506
4507 test -z "$DLLTOOL" && DLLTOOL=dlltool
4508
4509
4510
4511
4512
4513 test -z "$OBJDUMP" && OBJDUMP=objdump
4514
4515
4516
4517
4518
4519
4520
4521 case `pwd` in
4522   *\ * | *\     *)
4523     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4524 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4525 esac
4526
4527
4528
4529 macro_version='2.4.2'
4530 macro_revision='1.3337'
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544 ltmain="$ac_aux_dir/ltmain.sh"
4545
4546 # Backslashify metacharacters that are still active within
4547 # double-quoted strings.
4548 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4549
4550 # Same as above, but do not quote variable references.
4551 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4552
4553 # Sed substitution to delay expansion of an escaped shell variable in a
4554 # double_quote_subst'ed string.
4555 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4556
4557 # Sed substitution to delay expansion of an escaped single quote.
4558 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4559
4560 # Sed substitution to avoid accidental globbing in evaled expressions
4561 no_glob_subst='s/\*/\\\*/g'
4562
4563 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4564 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4565 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4566
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4568 $as_echo_n "checking how to print strings... " >&6; }
4569 # Test print first, because it will be a builtin if present.
4570 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4571    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4572   ECHO='print -r --'
4573 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4574   ECHO='printf %s\n'
4575 else
4576   # Use this function as a fallback that always works.
4577   func_fallback_echo ()
4578   {
4579     eval 'cat <<_LTECHO_EOF
4580 $1
4581 _LTECHO_EOF'
4582   }
4583   ECHO='func_fallback_echo'
4584 fi
4585
4586 # func_echo_all arg...
4587 # Invoke $ECHO with all args, space-separated.
4588 func_echo_all ()
4589 {
4590     $ECHO ""
4591 }
4592
4593 case "$ECHO" in
4594   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4595 $as_echo "printf" >&6; } ;;
4596   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4597 $as_echo "print -r" >&6; } ;;
4598   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4599 $as_echo "cat" >&6; } ;;
4600 esac
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4616 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4617 if ${ac_cv_path_SED+:} false; then :
4618   $as_echo_n "(cached) " >&6
4619 else
4620             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4621      for ac_i in 1 2 3 4 5 6 7; do
4622        ac_script="$ac_script$as_nl$ac_script"
4623      done
4624      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4625      { ac_script=; unset ac_script;}
4626      if test -z "$SED"; then
4627   ac_path_SED_found=false
4628   # Loop through the user's path and test for each of PROGNAME-LIST
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634     for ac_prog in sed gsed; do
4635     for ac_exec_ext in '' $ac_executable_extensions; do
4636       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4637       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4638 # Check for GNU ac_path_SED and select it if it is found.
4639   # Check for GNU $ac_path_SED
4640 case `"$ac_path_SED" --version 2>&1` in
4641 *GNU*)
4642   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4643 *)
4644   ac_count=0
4645   $as_echo_n 0123456789 >"conftest.in"
4646   while :
4647   do
4648     cat "conftest.in" "conftest.in" >"conftest.tmp"
4649     mv "conftest.tmp" "conftest.in"
4650     cp "conftest.in" "conftest.nl"
4651     $as_echo '' >> "conftest.nl"
4652     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654     as_fn_arith $ac_count + 1 && ac_count=$as_val
4655     if test $ac_count -gt ${ac_path_SED_max-0}; then
4656       # Best one so far, save it but keep looking for a better one
4657       ac_cv_path_SED="$ac_path_SED"
4658       ac_path_SED_max=$ac_count
4659     fi
4660     # 10*(2^10) chars as input seems more than enough
4661     test $ac_count -gt 10 && break
4662   done
4663   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 esac
4665
4666       $ac_path_SED_found && break 3
4667     done
4668   done
4669   done
4670 IFS=$as_save_IFS
4671   if test -z "$ac_cv_path_SED"; then
4672     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4673   fi
4674 else
4675   ac_cv_path_SED=$SED
4676 fi
4677
4678 fi
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4680 $as_echo "$ac_cv_path_SED" >&6; }
4681  SED="$ac_cv_path_SED"
4682   rm -f conftest.sed
4683
4684 test -z "$SED" && SED=sed
4685 Xsed="$SED -e 1s/^X//"
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4698 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4699 if ${ac_cv_path_GREP+:} false; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   if test -z "$GREP"; then
4703   ac_path_GREP_found=false
4704   # Loop through the user's path and test for each of PROGNAME-LIST
4705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710     for ac_prog in grep ggrep; do
4711     for ac_exec_ext in '' $ac_executable_extensions; do
4712       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4713       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4714 # Check for GNU ac_path_GREP and select it if it is found.
4715   # Check for GNU $ac_path_GREP
4716 case `"$ac_path_GREP" --version 2>&1` in
4717 *GNU*)
4718   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4719 *)
4720   ac_count=0
4721   $as_echo_n 0123456789 >"conftest.in"
4722   while :
4723   do
4724     cat "conftest.in" "conftest.in" >"conftest.tmp"
4725     mv "conftest.tmp" "conftest.in"
4726     cp "conftest.in" "conftest.nl"
4727     $as_echo 'GREP' >> "conftest.nl"
4728     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4729     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4730     as_fn_arith $ac_count + 1 && ac_count=$as_val
4731     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4732       # Best one so far, save it but keep looking for a better one
4733       ac_cv_path_GREP="$ac_path_GREP"
4734       ac_path_GREP_max=$ac_count
4735     fi
4736     # 10*(2^10) chars as input seems more than enough
4737     test $ac_count -gt 10 && break
4738   done
4739   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4740 esac
4741
4742       $ac_path_GREP_found && break 3
4743     done
4744   done
4745   done
4746 IFS=$as_save_IFS
4747   if test -z "$ac_cv_path_GREP"; then
4748     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4749   fi
4750 else
4751   ac_cv_path_GREP=$GREP
4752 fi
4753
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4756 $as_echo "$ac_cv_path_GREP" >&6; }
4757  GREP="$ac_cv_path_GREP"
4758
4759
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4761 $as_echo_n "checking for egrep... " >&6; }
4762 if ${ac_cv_path_EGREP+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4766    then ac_cv_path_EGREP="$GREP -E"
4767    else
4768      if test -z "$EGREP"; then
4769   ac_path_EGREP_found=false
4770   # Loop through the user's path and test for each of PROGNAME-LIST
4771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4773 do
4774   IFS=$as_save_IFS
4775   test -z "$as_dir" && as_dir=.
4776     for ac_prog in egrep; do
4777     for ac_exec_ext in '' $ac_executable_extensions; do
4778       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4779       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4780 # Check for GNU ac_path_EGREP and select it if it is found.
4781   # Check for GNU $ac_path_EGREP
4782 case `"$ac_path_EGREP" --version 2>&1` in
4783 *GNU*)
4784   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4785 *)
4786   ac_count=0
4787   $as_echo_n 0123456789 >"conftest.in"
4788   while :
4789   do
4790     cat "conftest.in" "conftest.in" >"conftest.tmp"
4791     mv "conftest.tmp" "conftest.in"
4792     cp "conftest.in" "conftest.nl"
4793     $as_echo 'EGREP' >> "conftest.nl"
4794     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4795     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4796     as_fn_arith $ac_count + 1 && ac_count=$as_val
4797     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4798       # Best one so far, save it but keep looking for a better one
4799       ac_cv_path_EGREP="$ac_path_EGREP"
4800       ac_path_EGREP_max=$ac_count
4801     fi
4802     # 10*(2^10) chars as input seems more than enough
4803     test $ac_count -gt 10 && break
4804   done
4805   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4806 esac
4807
4808       $ac_path_EGREP_found && break 3
4809     done
4810   done
4811   done
4812 IFS=$as_save_IFS
4813   if test -z "$ac_cv_path_EGREP"; then
4814     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4815   fi
4816 else
4817   ac_cv_path_EGREP=$EGREP
4818 fi
4819
4820    fi
4821 fi
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4823 $as_echo "$ac_cv_path_EGREP" >&6; }
4824  EGREP="$ac_cv_path_EGREP"
4825
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4828 $as_echo_n "checking for fgrep... " >&6; }
4829 if ${ac_cv_path_FGREP+:} false; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4833    then ac_cv_path_FGREP="$GREP -F"
4834    else
4835      if test -z "$FGREP"; then
4836   ac_path_FGREP_found=false
4837   # Loop through the user's path and test for each of PROGNAME-LIST
4838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4840 do
4841   IFS=$as_save_IFS
4842   test -z "$as_dir" && as_dir=.
4843     for ac_prog in fgrep; do
4844     for ac_exec_ext in '' $ac_executable_extensions; do
4845       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4846       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4847 # Check for GNU ac_path_FGREP and select it if it is found.
4848   # Check for GNU $ac_path_FGREP
4849 case `"$ac_path_FGREP" --version 2>&1` in
4850 *GNU*)
4851   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4852 *)
4853   ac_count=0
4854   $as_echo_n 0123456789 >"conftest.in"
4855   while :
4856   do
4857     cat "conftest.in" "conftest.in" >"conftest.tmp"
4858     mv "conftest.tmp" "conftest.in"
4859     cp "conftest.in" "conftest.nl"
4860     $as_echo 'FGREP' >> "conftest.nl"
4861     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4862     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4863     as_fn_arith $ac_count + 1 && ac_count=$as_val
4864     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4865       # Best one so far, save it but keep looking for a better one
4866       ac_cv_path_FGREP="$ac_path_FGREP"
4867       ac_path_FGREP_max=$ac_count
4868     fi
4869     # 10*(2^10) chars as input seems more than enough
4870     test $ac_count -gt 10 && break
4871   done
4872   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4873 esac
4874
4875       $ac_path_FGREP_found && break 3
4876     done
4877   done
4878   done
4879 IFS=$as_save_IFS
4880   if test -z "$ac_cv_path_FGREP"; then
4881     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4882   fi
4883 else
4884   ac_cv_path_FGREP=$FGREP
4885 fi
4886
4887    fi
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4890 $as_echo "$ac_cv_path_FGREP" >&6; }
4891  FGREP="$ac_cv_path_FGREP"
4892
4893
4894 test -z "$GREP" && GREP=grep
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914 # Check whether --with-gnu-ld was given.
4915 if test "${with_gnu_ld+set}" = set; then :
4916   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4917 else
4918   with_gnu_ld=no
4919 fi
4920
4921 ac_prog=ld
4922 if test "$GCC" = yes; then
4923   # Check if gcc -print-prog-name=ld gives a path.
4924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4925 $as_echo_n "checking for ld used by $CC... " >&6; }
4926   case $host in
4927   *-*-mingw*)
4928     # gcc leaves a trailing carriage return which upsets mingw
4929     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4930   *)
4931     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4932   esac
4933   case $ac_prog in
4934     # Accept absolute paths.
4935     [\\/]* | ?:[\\/]*)
4936       re_direlt='/[^/][^/]*/\.\./'
4937       # Canonicalize the pathname of ld
4938       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4939       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4940         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4941       done
4942       test -z "$LD" && LD="$ac_prog"
4943       ;;
4944   "")
4945     # If it fails, then pretend we aren't using GCC.
4946     ac_prog=ld
4947     ;;
4948   *)
4949     # If it is relative, then search for the first ld in PATH.
4950     with_gnu_ld=unknown
4951     ;;
4952   esac
4953 elif test "$with_gnu_ld" = yes; then
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4955 $as_echo_n "checking for GNU ld... " >&6; }
4956 else
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4958 $as_echo_n "checking for non-GNU ld... " >&6; }
4959 fi
4960 if ${lt_cv_path_LD+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   if test -z "$LD"; then
4964   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4965   for ac_dir in $PATH; do
4966     IFS="$lt_save_ifs"
4967     test -z "$ac_dir" && ac_dir=.
4968     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4969       lt_cv_path_LD="$ac_dir/$ac_prog"
4970       # Check to see if the program is GNU ld.  I'd rather use --version,
4971       # but apparently some variants of GNU ld only accept -v.
4972       # Break only if it was the GNU/non-GNU ld that we prefer.
4973       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4974       *GNU* | *'with BFD'*)
4975         test "$with_gnu_ld" != no && break
4976         ;;
4977       *)
4978         test "$with_gnu_ld" != yes && break
4979         ;;
4980       esac
4981     fi
4982   done
4983   IFS="$lt_save_ifs"
4984 else
4985   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4986 fi
4987 fi
4988
4989 LD="$lt_cv_path_LD"
4990 if test -n "$LD"; then
4991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4992 $as_echo "$LD" >&6; }
4993 else
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4996 fi
4997 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4999 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5000 if ${lt_cv_prog_gnu_ld+:} false; then :
5001   $as_echo_n "(cached) " >&6
5002 else
5003   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5004 case `$LD -v 2>&1 </dev/null` in
5005 *GNU* | *'with BFD'*)
5006   lt_cv_prog_gnu_ld=yes
5007   ;;
5008 *)
5009   lt_cv_prog_gnu_ld=no
5010   ;;
5011 esac
5012 fi
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5014 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5015 with_gnu_ld=$lt_cv_prog_gnu_ld
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5026 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5027 if ${lt_cv_path_NM+:} false; then :
5028   $as_echo_n "(cached) " >&6
5029 else
5030   if test -n "$NM"; then
5031   # Let the user override the test.
5032   lt_cv_path_NM="$NM"
5033 else
5034   lt_nm_to_check="${ac_tool_prefix}nm"
5035   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5036     lt_nm_to_check="$lt_nm_to_check nm"
5037   fi
5038   for lt_tmp_nm in $lt_nm_to_check; do
5039     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5040     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5041       IFS="$lt_save_ifs"
5042       test -z "$ac_dir" && ac_dir=.
5043       tmp_nm="$ac_dir/$lt_tmp_nm"
5044       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5045         # Check to see if the nm accepts a BSD-compat flag.
5046         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5047         #   nm: unknown option "B" ignored
5048         # Tru64's nm complains that /dev/null is an invalid object file
5049         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5050         */dev/null* | *'Invalid file or object type'*)
5051           lt_cv_path_NM="$tmp_nm -B"
5052           break
5053           ;;
5054         *)
5055           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5056           */dev/null*)
5057             lt_cv_path_NM="$tmp_nm -p"
5058             break
5059             ;;
5060           *)
5061             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5062             continue # so that we can try to find one that supports BSD flags
5063             ;;
5064           esac
5065           ;;
5066         esac
5067       fi
5068     done
5069     IFS="$lt_save_ifs"
5070   done
5071   : ${lt_cv_path_NM=no}
5072 fi
5073 fi
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5075 $as_echo "$lt_cv_path_NM" >&6; }
5076 if test "$lt_cv_path_NM" != "no"; then
5077   NM="$lt_cv_path_NM"
5078 else
5079   # Didn't find any BSD compatible name lister, look for dumpbin.
5080   if test -n "$DUMPBIN"; then :
5081     # Let the user override the test.
5082   else
5083     if test -n "$ac_tool_prefix"; then
5084   for ac_prog in dumpbin "link -dump"
5085   do
5086     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_DUMPBIN+:} false; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093   if test -n "$DUMPBIN"; then
5094   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099   IFS=$as_save_IFS
5100   test -z "$as_dir" && as_dir=.
5101     for ac_exec_ext in '' $ac_executable_extensions; do
5102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106   fi
5107 done
5108   done
5109 IFS=$as_save_IFS
5110
5111 fi
5112 fi
5113 DUMPBIN=$ac_cv_prog_DUMPBIN
5114 if test -n "$DUMPBIN"; then
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5116 $as_echo "$DUMPBIN" >&6; }
5117 else
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5120 fi
5121
5122
5123     test -n "$DUMPBIN" && break
5124   done
5125 fi
5126 if test -z "$DUMPBIN"; then
5127   ac_ct_DUMPBIN=$DUMPBIN
5128   for ac_prog in dumpbin "link -dump"
5129 do
5130   # Extract the first word of "$ac_prog", so it can be a program name with args.
5131 set dummy $ac_prog; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5135   $as_echo_n "(cached) " >&6
5136 else
5137   if test -n "$ac_ct_DUMPBIN"; then
5138   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5142 do
5143   IFS=$as_save_IFS
5144   test -z "$as_dir" && as_dir=.
5145     for ac_exec_ext in '' $ac_executable_extensions; do
5146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149     break 2
5150   fi
5151 done
5152   done
5153 IFS=$as_save_IFS
5154
5155 fi
5156 fi
5157 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5158 if test -n "$ac_ct_DUMPBIN"; then
5159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5160 $as_echo "$ac_ct_DUMPBIN" >&6; }
5161 else
5162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5164 fi
5165
5166
5167   test -n "$ac_ct_DUMPBIN" && break
5168 done
5169
5170   if test "x$ac_ct_DUMPBIN" = x; then
5171     DUMPBIN=":"
5172   else
5173     case $cross_compiling:$ac_tool_warned in
5174 yes:)
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5177 ac_tool_warned=yes ;;
5178 esac
5179     DUMPBIN=$ac_ct_DUMPBIN
5180   fi
5181 fi
5182
5183     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5184     *COFF*)
5185       DUMPBIN="$DUMPBIN -symbols"
5186       ;;
5187     *)
5188       DUMPBIN=:
5189       ;;
5190     esac
5191   fi
5192
5193   if test "$DUMPBIN" != ":"; then
5194     NM="$DUMPBIN"
5195   fi
5196 fi
5197 test -z "$NM" && NM=nm
5198
5199
5200
5201
5202
5203
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5205 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5206 if ${lt_cv_nm_interface+:} false; then :
5207   $as_echo_n "(cached) " >&6
5208 else
5209   lt_cv_nm_interface="BSD nm"
5210   echo "int some_variable = 0;" > conftest.$ac_ext
5211   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5212   (eval "$ac_compile" 2>conftest.err)
5213   cat conftest.err >&5
5214   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5215   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5216   cat conftest.err >&5
5217   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5218   cat conftest.out >&5
5219   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5220     lt_cv_nm_interface="MS dumpbin"
5221   fi
5222   rm -f conftest*
5223 fi
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5225 $as_echo "$lt_cv_nm_interface" >&6; }
5226
5227 # find the maximum length of command line arguments
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5229 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5230 if ${lt_cv_sys_max_cmd_len+:} false; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233     i=0
5234   teststring="ABCD"
5235
5236   case $build_os in
5237   msdosdjgpp*)
5238     # On DJGPP, this test can blow up pretty badly due to problems in libc
5239     # (any single argument exceeding 2000 bytes causes a buffer overrun
5240     # during glob expansion).  Even if it were fixed, the result of this
5241     # check would be larger than it should be.
5242     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5243     ;;
5244
5245   gnu*)
5246     # Under GNU Hurd, this test is not required because there is
5247     # no limit to the length of command line arguments.
5248     # Libtool will interpret -1 as no limit whatsoever
5249     lt_cv_sys_max_cmd_len=-1;
5250     ;;
5251
5252   cygwin* | mingw* | cegcc*)
5253     # On Win9x/ME, this test blows up -- it succeeds, but takes
5254     # about 5 minutes as the teststring grows exponentially.
5255     # Worse, since 9x/ME are not pre-emptively multitasking,
5256     # you end up with a "frozen" computer, even though with patience
5257     # the test eventually succeeds (with a max line length of 256k).
5258     # Instead, let's just punt: use the minimum linelength reported by
5259     # all of the supported platforms: 8192 (on NT/2K/XP).
5260     lt_cv_sys_max_cmd_len=8192;
5261     ;;
5262
5263   mint*)
5264     # On MiNT this can take a long time and run out of memory.
5265     lt_cv_sys_max_cmd_len=8192;
5266     ;;
5267
5268   amigaos*)
5269     # On AmigaOS with pdksh, this test takes hours, literally.
5270     # So we just punt and use a minimum line length of 8192.
5271     lt_cv_sys_max_cmd_len=8192;
5272     ;;
5273
5274   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5275     # This has been around since 386BSD, at least.  Likely further.
5276     if test -x /sbin/sysctl; then
5277       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5278     elif test -x /usr/sbin/sysctl; then
5279       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5280     else
5281       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5282     fi
5283     # And add a safety zone
5284     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5285     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5286     ;;
5287
5288   interix*)
5289     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5290     lt_cv_sys_max_cmd_len=196608
5291     ;;
5292
5293   os2*)
5294     # The test takes a long time on OS/2.
5295     lt_cv_sys_max_cmd_len=8192
5296     ;;
5297
5298   osf*)
5299     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5300     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5301     # nice to cause kernel panics so lets avoid the loop below.
5302     # First set a reasonable default.
5303     lt_cv_sys_max_cmd_len=16384
5304     #
5305     if test -x /sbin/sysconfig; then
5306       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5307         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5308       esac
5309     fi
5310     ;;
5311   sco3.2v5*)
5312     lt_cv_sys_max_cmd_len=102400
5313     ;;
5314   sysv5* | sco5v6* | sysv4.2uw2*)
5315     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5316     if test -n "$kargmax"; then
5317       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5318     else
5319       lt_cv_sys_max_cmd_len=32768
5320     fi
5321     ;;
5322   *)
5323     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5324     if test -n "$lt_cv_sys_max_cmd_len"; then
5325       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5326       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5327     else
5328       # Make teststring a little bigger before we do anything with it.
5329       # a 1K string should be a reasonable start.
5330       for i in 1 2 3 4 5 6 7 8 ; do
5331         teststring=$teststring$teststring
5332       done
5333       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5334       # If test is not a shell built-in, we'll probably end up computing a
5335       # maximum length that is only half of the actual maximum length, but
5336       # we can't tell.
5337       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5338                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5339               test $i != 17 # 1/2 MB should be enough
5340       do
5341         i=`expr $i + 1`
5342         teststring=$teststring$teststring
5343       done
5344       # Only check the string length outside the loop.
5345       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5346       teststring=
5347       # Add a significant safety factor because C++ compilers can tack on
5348       # massive amounts of additional arguments before passing them to the
5349       # linker.  It appears as though 1/2 is a usable value.
5350       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5351     fi
5352     ;;
5353   esac
5354
5355 fi
5356
5357 if test -n $lt_cv_sys_max_cmd_len ; then
5358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5359 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5360 else
5361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5362 $as_echo "none" >&6; }
5363 fi
5364 max_cmd_len=$lt_cv_sys_max_cmd_len
5365
5366
5367
5368
5369
5370
5371 : ${CP="cp -f"}
5372 : ${MV="mv -f"}
5373 : ${RM="rm -f"}
5374
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5376 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5377 # Try some XSI features
5378 xsi_shell=no
5379 ( _lt_dummy="a/b/c"
5380   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5381       = c,a/b,b/c, \
5382     && eval 'test $(( 1 + 1 )) -eq 2 \
5383     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5384   && xsi_shell=yes
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5386 $as_echo "$xsi_shell" >&6; }
5387
5388
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5390 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5391 lt_shell_append=no
5392 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5393     >/dev/null 2>&1 \
5394   && lt_shell_append=yes
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5396 $as_echo "$lt_shell_append" >&6; }
5397
5398
5399 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5400   lt_unset=unset
5401 else
5402   lt_unset=false
5403 fi
5404
5405
5406
5407
5408
5409 # test EBCDIC or ASCII
5410 case `echo X|tr X '\101'` in
5411  A) # ASCII based system
5412     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5413   lt_SP2NL='tr \040 \012'
5414   lt_NL2SP='tr \015\012 \040\040'
5415   ;;
5416  *) # EBCDIC based system
5417   lt_SP2NL='tr \100 \n'
5418   lt_NL2SP='tr \r\n \100\100'
5419   ;;
5420 esac
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5431 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5432 if ${lt_cv_to_host_file_cmd+:} false; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435   case $host in
5436   *-*-mingw* )
5437     case $build in
5438       *-*-mingw* ) # actually msys
5439         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5440         ;;
5441       *-*-cygwin* )
5442         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5443         ;;
5444       * ) # otherwise, assume *nix
5445         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5446         ;;
5447     esac
5448     ;;
5449   *-*-cygwin* )
5450     case $build in
5451       *-*-mingw* ) # actually msys
5452         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5453         ;;
5454       *-*-cygwin* )
5455         lt_cv_to_host_file_cmd=func_convert_file_noop
5456         ;;
5457       * ) # otherwise, assume *nix
5458         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5459         ;;
5460     esac
5461     ;;
5462   * ) # unhandled hosts (and "normal" native builds)
5463     lt_cv_to_host_file_cmd=func_convert_file_noop
5464     ;;
5465 esac
5466
5467 fi
5468
5469 to_host_file_cmd=$lt_cv_to_host_file_cmd
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5471 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5472
5473
5474
5475
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5478 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5479 if ${lt_cv_to_tool_file_cmd+:} false; then :
5480   $as_echo_n "(cached) " >&6
5481 else
5482   #assume ordinary cross tools, or native build.
5483 lt_cv_to_tool_file_cmd=func_convert_file_noop
5484 case $host in
5485   *-*-mingw* )
5486     case $build in
5487       *-*-mingw* ) # actually msys
5488         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5489         ;;
5490     esac
5491     ;;
5492 esac
5493
5494 fi
5495
5496 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5498 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5499
5500
5501
5502
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5505 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5506 if ${lt_cv_ld_reload_flag+:} false; then :
5507   $as_echo_n "(cached) " >&6
5508 else
5509   lt_cv_ld_reload_flag='-r'
5510 fi
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5512 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5513 reload_flag=$lt_cv_ld_reload_flag
5514 case $reload_flag in
5515 "" | " "*) ;;
5516 *) reload_flag=" $reload_flag" ;;
5517 esac
5518 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5519 case $host_os in
5520   cygwin* | mingw* | pw32* | cegcc*)
5521     if test "$GCC" != yes; then
5522       reload_cmds=false
5523     fi
5524     ;;
5525   darwin*)
5526     if test "$GCC" = yes; then
5527       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5528     else
5529       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5530     fi
5531     ;;
5532 esac
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542 if test -n "$ac_tool_prefix"; then
5543   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5544 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_prog_OBJDUMP+:} false; then :
5548   $as_echo_n "(cached) " >&6
5549 else
5550   if test -n "$OBJDUMP"; then
5551   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5555 do
5556   IFS=$as_save_IFS
5557   test -z "$as_dir" && as_dir=.
5558     for ac_exec_ext in '' $ac_executable_extensions; do
5559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562     break 2
5563   fi
5564 done
5565   done
5566 IFS=$as_save_IFS
5567
5568 fi
5569 fi
5570 OBJDUMP=$ac_cv_prog_OBJDUMP
5571 if test -n "$OBJDUMP"; then
5572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5573 $as_echo "$OBJDUMP" >&6; }
5574 else
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5577 fi
5578
5579
5580 fi
5581 if test -z "$ac_cv_prog_OBJDUMP"; then
5582   ac_ct_OBJDUMP=$OBJDUMP
5583   # Extract the first word of "objdump", so it can be a program name with args.
5584 set dummy objdump; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5588   $as_echo_n "(cached) " >&6
5589 else
5590   if test -n "$ac_ct_OBJDUMP"; then
5591   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596   IFS=$as_save_IFS
5597   test -z "$as_dir" && as_dir=.
5598     for ac_exec_ext in '' $ac_executable_extensions; do
5599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602     break 2
5603   fi
5604 done
5605   done
5606 IFS=$as_save_IFS
5607
5608 fi
5609 fi
5610 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5611 if test -n "$ac_ct_OBJDUMP"; then
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5613 $as_echo "$ac_ct_OBJDUMP" >&6; }
5614 else
5615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5617 fi
5618
5619   if test "x$ac_ct_OBJDUMP" = x; then
5620     OBJDUMP="false"
5621   else
5622     case $cross_compiling:$ac_tool_warned in
5623 yes:)
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5626 ac_tool_warned=yes ;;
5627 esac
5628     OBJDUMP=$ac_ct_OBJDUMP
5629   fi
5630 else
5631   OBJDUMP="$ac_cv_prog_OBJDUMP"
5632 fi
5633
5634 test -z "$OBJDUMP" && OBJDUMP=objdump
5635
5636
5637
5638
5639
5640
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5642 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5643 if ${lt_cv_deplibs_check_method+:} false; then :
5644   $as_echo_n "(cached) " >&6
5645 else
5646   lt_cv_file_magic_cmd='$MAGIC_CMD'
5647 lt_cv_file_magic_test_file=
5648 lt_cv_deplibs_check_method='unknown'
5649 # Need to set the preceding variable on all platforms that support
5650 # interlibrary dependencies.
5651 # 'none' -- dependencies not supported.
5652 # `unknown' -- same as none, but documents that we really don't know.
5653 # 'pass_all' -- all dependencies passed with no checks.
5654 # 'test_compile' -- check by making test program.
5655 # 'file_magic [[regex]]' -- check by looking for files in library path
5656 # which responds to the $file_magic_cmd with a given extended regex.
5657 # If you have `file' or equivalent on your system and you're not sure
5658 # whether `pass_all' will *always* work, you probably want this one.
5659
5660 case $host_os in
5661 aix[4-9]*)
5662   lt_cv_deplibs_check_method=pass_all
5663   ;;
5664
5665 beos*)
5666   lt_cv_deplibs_check_method=pass_all
5667   ;;
5668
5669 bsdi[45]*)
5670   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5671   lt_cv_file_magic_cmd='/usr/bin/file -L'
5672   lt_cv_file_magic_test_file=/shlib/libc.so
5673   ;;
5674
5675 cygwin*)
5676   # func_win32_libid is a shell function defined in ltmain.sh
5677   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5678   lt_cv_file_magic_cmd='func_win32_libid'
5679   ;;
5680
5681 mingw* | pw32*)
5682   # Base MSYS/MinGW do not provide the 'file' command needed by
5683   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5684   # unless we find 'file', for example because we are cross-compiling.
5685   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5686   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5687     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5688     lt_cv_file_magic_cmd='func_win32_libid'
5689   else
5690     # Keep this pattern in sync with the one in func_win32_libid.
5691     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5692     lt_cv_file_magic_cmd='$OBJDUMP -f'
5693   fi
5694   ;;
5695
5696 cegcc*)
5697   # use the weaker test based on 'objdump'. See mingw*.
5698   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5699   lt_cv_file_magic_cmd='$OBJDUMP -f'
5700   ;;
5701
5702 darwin* | rhapsody*)
5703   lt_cv_deplibs_check_method=pass_all
5704   ;;
5705
5706 freebsd* | dragonfly*)
5707   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5708     case $host_cpu in
5709     i*86 )
5710       # Not sure whether the presence of OpenBSD here was a mistake.
5711       # Let's accept both of them until this is cleared up.
5712       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5713       lt_cv_file_magic_cmd=/usr/bin/file
5714       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5715       ;;
5716     esac
5717   else
5718     lt_cv_deplibs_check_method=pass_all
5719   fi
5720   ;;
5721
5722 gnu*)
5723   lt_cv_deplibs_check_method=pass_all
5724   ;;
5725
5726 haiku*)
5727   lt_cv_deplibs_check_method=pass_all
5728   ;;
5729
5730 hpux10.20* | hpux11*)
5731   lt_cv_file_magic_cmd=/usr/bin/file
5732   case $host_cpu in
5733   ia64*)
5734     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5735     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5736     ;;
5737   hppa*64*)
5738     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]'
5739     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5740     ;;
5741   *)
5742     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5743     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5744     ;;
5745   esac
5746   ;;
5747
5748 interix[3-9]*)
5749   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5750   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5751   ;;
5752
5753 irix5* | irix6* | nonstopux*)
5754   case $LD in
5755   *-32|*"-32 ") libmagic=32-bit;;
5756   *-n32|*"-n32 ") libmagic=N32;;
5757   *-64|*"-64 ") libmagic=64-bit;;
5758   *) libmagic=never-match;;
5759   esac
5760   lt_cv_deplibs_check_method=pass_all
5761   ;;
5762
5763 # This must be glibc/ELF.
5764 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5765   lt_cv_deplibs_check_method=pass_all
5766   ;;
5767
5768 netbsd*)
5769   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5770     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5771   else
5772     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5773   fi
5774   ;;
5775
5776 newos6*)
5777   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5778   lt_cv_file_magic_cmd=/usr/bin/file
5779   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5780   ;;
5781
5782 *nto* | *qnx*)
5783   lt_cv_deplibs_check_method=pass_all
5784   ;;
5785
5786 openbsd*)
5787   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5788     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5789   else
5790     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5791   fi
5792   ;;
5793
5794 osf3* | osf4* | osf5*)
5795   lt_cv_deplibs_check_method=pass_all
5796   ;;
5797
5798 rdos*)
5799   lt_cv_deplibs_check_method=pass_all
5800   ;;
5801
5802 solaris*)
5803   lt_cv_deplibs_check_method=pass_all
5804   ;;
5805
5806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5807   lt_cv_deplibs_check_method=pass_all
5808   ;;
5809
5810 sysv4 | sysv4.3*)
5811   case $host_vendor in
5812   motorola)
5813     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]'
5814     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5815     ;;
5816   ncr)
5817     lt_cv_deplibs_check_method=pass_all
5818     ;;
5819   sequent)
5820     lt_cv_file_magic_cmd='/bin/file'
5821     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5822     ;;
5823   sni)
5824     lt_cv_file_magic_cmd='/bin/file'
5825     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5826     lt_cv_file_magic_test_file=/lib/libc.so
5827     ;;
5828   siemens)
5829     lt_cv_deplibs_check_method=pass_all
5830     ;;
5831   pc)
5832     lt_cv_deplibs_check_method=pass_all
5833     ;;
5834   esac
5835   ;;
5836
5837 tpf*)
5838   lt_cv_deplibs_check_method=pass_all
5839   ;;
5840 esac
5841
5842 fi
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5844 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5845
5846 file_magic_glob=
5847 want_nocaseglob=no
5848 if test "$build" = "$host"; then
5849   case $host_os in
5850   mingw* | pw32*)
5851     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5852       want_nocaseglob=yes
5853     else
5854       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5855     fi
5856     ;;
5857   esac
5858 fi
5859
5860 file_magic_cmd=$lt_cv_file_magic_cmd
5861 deplibs_check_method=$lt_cv_deplibs_check_method
5862 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885 if test -n "$ac_tool_prefix"; then
5886   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5887 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if ${ac_cv_prog_DLLTOOL+:} false; then :
5891   $as_echo_n "(cached) " >&6
5892 else
5893   if test -n "$DLLTOOL"; then
5894   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899   IFS=$as_save_IFS
5900   test -z "$as_dir" && as_dir=.
5901     for ac_exec_ext in '' $ac_executable_extensions; do
5902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905     break 2
5906   fi
5907 done
5908   done
5909 IFS=$as_save_IFS
5910
5911 fi
5912 fi
5913 DLLTOOL=$ac_cv_prog_DLLTOOL
5914 if test -n "$DLLTOOL"; then
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5916 $as_echo "$DLLTOOL" >&6; }
5917 else
5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 fi
5921
5922
5923 fi
5924 if test -z "$ac_cv_prog_DLLTOOL"; then
5925   ac_ct_DLLTOOL=$DLLTOOL
5926   # Extract the first word of "dlltool", so it can be a program name with args.
5927 set dummy dlltool; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5931   $as_echo_n "(cached) " >&6
5932 else
5933   if test -n "$ac_ct_DLLTOOL"; then
5934   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941     for ac_exec_ext in '' $ac_executable_extensions; do
5942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948   done
5949 IFS=$as_save_IFS
5950
5951 fi
5952 fi
5953 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5954 if test -n "$ac_ct_DLLTOOL"; then
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5956 $as_echo "$ac_ct_DLLTOOL" >&6; }
5957 else
5958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5960 fi
5961
5962   if test "x$ac_ct_DLLTOOL" = x; then
5963     DLLTOOL="false"
5964   else
5965     case $cross_compiling:$ac_tool_warned in
5966 yes:)
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969 ac_tool_warned=yes ;;
5970 esac
5971     DLLTOOL=$ac_ct_DLLTOOL
5972   fi
5973 else
5974   DLLTOOL="$ac_cv_prog_DLLTOOL"
5975 fi
5976
5977 test -z "$DLLTOOL" && DLLTOOL=dlltool
5978
5979
5980
5981
5982
5983
5984
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5986 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5987 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5988   $as_echo_n "(cached) " >&6
5989 else
5990   lt_cv_sharedlib_from_linklib_cmd='unknown'
5991
5992 case $host_os in
5993 cygwin* | mingw* | pw32* | cegcc*)
5994   # two different shell functions defined in ltmain.sh
5995   # decide which to use based on capabilities of $DLLTOOL
5996   case `$DLLTOOL --help 2>&1` in
5997   *--identify-strict*)
5998     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5999     ;;
6000   *)
6001     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6002     ;;
6003   esac
6004   ;;
6005 *)
6006   # fallback: assume linklib IS sharedlib
6007   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6008   ;;
6009 esac
6010
6011 fi
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6013 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6014 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6015 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6016
6017
6018
6019
6020
6021
6022
6023
6024 if test -n "$ac_tool_prefix"; then
6025   for ac_prog in ar
6026   do
6027     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if ${ac_cv_prog_AR+:} false; then :
6032   $as_echo_n "(cached) " >&6
6033 else
6034   if test -n "$AR"; then
6035   ac_cv_prog_AR="$AR" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040   IFS=$as_save_IFS
6041   test -z "$as_dir" && as_dir=.
6042     for ac_exec_ext in '' $ac_executable_extensions; do
6043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6044     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046     break 2
6047   fi
6048 done
6049   done
6050 IFS=$as_save_IFS
6051
6052 fi
6053 fi
6054 AR=$ac_cv_prog_AR
6055 if test -n "$AR"; then
6056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6057 $as_echo "$AR" >&6; }
6058 else
6059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 $as_echo "no" >&6; }
6061 fi
6062
6063
6064     test -n "$AR" && break
6065   done
6066 fi
6067 if test -z "$AR"; then
6068   ac_ct_AR=$AR
6069   for ac_prog in ar
6070 do
6071   # Extract the first word of "$ac_prog", so it can be a program name with args.
6072 set dummy $ac_prog; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6076   $as_echo_n "(cached) " >&6
6077 else
6078   if test -n "$ac_ct_AR"; then
6079   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084   IFS=$as_save_IFS
6085   test -z "$as_dir" && as_dir=.
6086     for ac_exec_ext in '' $ac_executable_extensions; do
6087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088     ac_cv_prog_ac_ct_AR="$ac_prog"
6089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090     break 2
6091   fi
6092 done
6093   done
6094 IFS=$as_save_IFS
6095
6096 fi
6097 fi
6098 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6099 if test -n "$ac_ct_AR"; then
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6101 $as_echo "$ac_ct_AR" >&6; }
6102 else
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106
6107
6108   test -n "$ac_ct_AR" && break
6109 done
6110
6111   if test "x$ac_ct_AR" = x; then
6112     AR="false"
6113   else
6114     case $cross_compiling:$ac_tool_warned in
6115 yes:)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6119 esac
6120     AR=$ac_ct_AR
6121   fi
6122 fi
6123
6124 : ${AR=ar}
6125 : ${AR_FLAGS=cru}
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6138 $as_echo_n "checking for archiver @FILE support... " >&6; }
6139 if ${lt_cv_ar_at_file+:} false; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142   lt_cv_ar_at_file=no
6143    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h.  */
6145
6146 int
6147 main ()
6148 {
6149
6150   ;
6151   return 0;
6152 }
6153 _ACEOF
6154 if ac_fn_c_try_compile "$LINENO"; then :
6155   echo conftest.$ac_objext > conftest.lst
6156       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6157       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6158   (eval $lt_ar_try) 2>&5
6159   ac_status=$?
6160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161   test $ac_status = 0; }
6162       if test "$ac_status" -eq 0; then
6163         # Ensure the archiver fails upon bogus file names.
6164         rm -f conftest.$ac_objext libconftest.a
6165         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6166   (eval $lt_ar_try) 2>&5
6167   ac_status=$?
6168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169   test $ac_status = 0; }
6170         if test "$ac_status" -ne 0; then
6171           lt_cv_ar_at_file=@
6172         fi
6173       fi
6174       rm -f conftest.* libconftest.a
6175
6176 fi
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178
6179 fi
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6181 $as_echo "$lt_cv_ar_at_file" >&6; }
6182
6183 if test "x$lt_cv_ar_at_file" = xno; then
6184   archiver_list_spec=
6185 else
6186   archiver_list_spec=$lt_cv_ar_at_file
6187 fi
6188
6189
6190
6191
6192
6193
6194
6195 if test -n "$ac_tool_prefix"; then
6196   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6197 set dummy ${ac_tool_prefix}strip; ac_word=$2
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if ${ac_cv_prog_STRIP+:} false; then :
6201   $as_echo_n "(cached) " >&6
6202 else
6203   if test -n "$STRIP"; then
6204   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209   IFS=$as_save_IFS
6210   test -z "$as_dir" && as_dir=.
6211     for ac_exec_ext in '' $ac_executable_extensions; do
6212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6215     break 2
6216   fi
6217 done
6218   done
6219 IFS=$as_save_IFS
6220
6221 fi
6222 fi
6223 STRIP=$ac_cv_prog_STRIP
6224 if test -n "$STRIP"; then
6225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6226 $as_echo "$STRIP" >&6; }
6227 else
6228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6230 fi
6231
6232
6233 fi
6234 if test -z "$ac_cv_prog_STRIP"; then
6235   ac_ct_STRIP=$STRIP
6236   # Extract the first word of "strip", so it can be a program name with args.
6237 set dummy strip; ac_word=$2
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6241   $as_echo_n "(cached) " >&6
6242 else
6243   if test -n "$ac_ct_STRIP"; then
6244   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249   IFS=$as_save_IFS
6250   test -z "$as_dir" && as_dir=.
6251     for ac_exec_ext in '' $ac_executable_extensions; do
6252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253     ac_cv_prog_ac_ct_STRIP="strip"
6254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255     break 2
6256   fi
6257 done
6258   done
6259 IFS=$as_save_IFS
6260
6261 fi
6262 fi
6263 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6264 if test -n "$ac_ct_STRIP"; then
6265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6266 $as_echo "$ac_ct_STRIP" >&6; }
6267 else
6268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 $as_echo "no" >&6; }
6270 fi
6271
6272   if test "x$ac_ct_STRIP" = x; then
6273     STRIP=":"
6274   else
6275     case $cross_compiling:$ac_tool_warned in
6276 yes:)
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279 ac_tool_warned=yes ;;
6280 esac
6281     STRIP=$ac_ct_STRIP
6282   fi
6283 else
6284   STRIP="$ac_cv_prog_STRIP"
6285 fi
6286
6287 test -z "$STRIP" && STRIP=:
6288
6289
6290
6291
6292
6293
6294 if test -n "$ac_tool_prefix"; then
6295   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if ${ac_cv_prog_RANLIB+:} false; then :
6300   $as_echo_n "(cached) " >&6
6301 else
6302   if test -n "$RANLIB"; then
6303   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308   IFS=$as_save_IFS
6309   test -z "$as_dir" && as_dir=.
6310     for ac_exec_ext in '' $ac_executable_extensions; do
6311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314     break 2
6315   fi
6316 done
6317   done
6318 IFS=$as_save_IFS
6319
6320 fi
6321 fi
6322 RANLIB=$ac_cv_prog_RANLIB
6323 if test -n "$RANLIB"; then
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6325 $as_echo "$RANLIB" >&6; }
6326 else
6327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6329 fi
6330
6331
6332 fi
6333 if test -z "$ac_cv_prog_RANLIB"; then
6334   ac_ct_RANLIB=$RANLIB
6335   # Extract the first word of "ranlib", so it can be a program name with args.
6336 set dummy ranlib; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6340   $as_echo_n "(cached) " >&6
6341 else
6342   if test -n "$ac_ct_RANLIB"; then
6343   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348   IFS=$as_save_IFS
6349   test -z "$as_dir" && as_dir=.
6350     for ac_exec_ext in '' $ac_executable_extensions; do
6351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6352     ac_cv_prog_ac_ct_RANLIB="ranlib"
6353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354     break 2
6355   fi
6356 done
6357   done
6358 IFS=$as_save_IFS
6359
6360 fi
6361 fi
6362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6363 if test -n "$ac_ct_RANLIB"; then
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6365 $as_echo "$ac_ct_RANLIB" >&6; }
6366 else
6367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6369 fi
6370
6371   if test "x$ac_ct_RANLIB" = x; then
6372     RANLIB=":"
6373   else
6374     case $cross_compiling:$ac_tool_warned in
6375 yes:)
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378 ac_tool_warned=yes ;;
6379 esac
6380     RANLIB=$ac_ct_RANLIB
6381   fi
6382 else
6383   RANLIB="$ac_cv_prog_RANLIB"
6384 fi
6385
6386 test -z "$RANLIB" && RANLIB=:
6387
6388
6389
6390
6391
6392
6393 # Determine commands to create old-style static archives.
6394 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6395 old_postinstall_cmds='chmod 644 $oldlib'
6396 old_postuninstall_cmds=
6397
6398 if test -n "$RANLIB"; then
6399   case $host_os in
6400   openbsd*)
6401     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6402     ;;
6403   *)
6404     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6405     ;;
6406   esac
6407   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6408 fi
6409
6410 case $host_os in
6411   darwin*)
6412     lock_old_archive_extraction=yes ;;
6413   *)
6414     lock_old_archive_extraction=no ;;
6415 esac
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455 # If no C compiler was specified, use CC.
6456 LTCC=${LTCC-"$CC"}
6457
6458 # If no C compiler flags were specified, use CFLAGS.
6459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6460
6461 # Allow CC to be a program name with arguments.
6462 compiler=$CC
6463
6464
6465 # Check for command to grab the raw symbol name followed by C symbol from nm.
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6467 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6468 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6469   $as_echo_n "(cached) " >&6
6470 else
6471
6472 # These are sane defaults that work on at least a few old systems.
6473 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6474
6475 # Character class describing NM global symbol codes.
6476 symcode='[BCDEGRST]'
6477
6478 # Regexp to match symbols that can be accessed directly from C.
6479 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6480
6481 # Define system-specific variables.
6482 case $host_os in
6483 aix*)
6484   symcode='[BCDT]'
6485   ;;
6486 cygwin* | mingw* | pw32* | cegcc*)
6487   symcode='[ABCDGISTW]'
6488   ;;
6489 hpux*)
6490   if test "$host_cpu" = ia64; then
6491     symcode='[ABCDEGRST]'
6492   fi
6493   ;;
6494 irix* | nonstopux*)
6495   symcode='[BCDEGRST]'
6496   ;;
6497 osf*)
6498   symcode='[BCDEGQRST]'
6499   ;;
6500 solaris*)
6501   symcode='[BDRT]'
6502   ;;
6503 sco3.2v5*)
6504   symcode='[DT]'
6505   ;;
6506 sysv4.2uw2*)
6507   symcode='[DT]'
6508   ;;
6509 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6510   symcode='[ABDT]'
6511   ;;
6512 sysv4)
6513   symcode='[DFNSTU]'
6514   ;;
6515 esac
6516
6517 # If we're using GNU nm, then use its standard symbol codes.
6518 case `$NM -V 2>&1` in
6519 *GNU* | *'with BFD'*)
6520   symcode='[ABCDGIRSTW]' ;;
6521 esac
6522
6523 # Transform an extracted symbol line into a proper C declaration.
6524 # Some systems (esp. on ia64) link data and code symbols differently,
6525 # so use this general approach.
6526 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6527
6528 # Transform an extracted symbol line into symbol name and symbol address
6529 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6530 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'"
6531
6532 # Handle CRLF in mingw tool chain
6533 opt_cr=
6534 case $build_os in
6535 mingw*)
6536   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6537   ;;
6538 esac
6539
6540 # Try without a prefix underscore, then with it.
6541 for ac_symprfx in "" "_"; do
6542
6543   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6544   symxfrm="\\1 $ac_symprfx\\2 \\2"
6545
6546   # Write the raw and C identifiers.
6547   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6548     # Fake it for dumpbin and say T for any non-static function
6549     # and D for any global variable.
6550     # Also find C++ and __fastcall symbols from MSVC++,
6551     # which start with @ or ?.
6552     lt_cv_sys_global_symbol_pipe="$AWK '"\
6553 "     {last_section=section; section=\$ 3};"\
6554 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6555 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6556 "     \$ 0!~/External *\|/{next};"\
6557 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6558 "     {if(hide[section]) next};"\
6559 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6560 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6561 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6562 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6563 "     ' prfx=^$ac_symprfx"
6564   else
6565     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6566   fi
6567   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6568
6569   # Check to see that the pipe works correctly.
6570   pipe_works=no
6571
6572   rm -f conftest*
6573   cat > conftest.$ac_ext <<_LT_EOF
6574 #ifdef __cplusplus
6575 extern "C" {
6576 #endif
6577 char nm_test_var;
6578 void nm_test_func(void);
6579 void nm_test_func(void){}
6580 #ifdef __cplusplus
6581 }
6582 #endif
6583 int main(){nm_test_var='a';nm_test_func();return(0);}
6584 _LT_EOF
6585
6586   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6587   (eval $ac_compile) 2>&5
6588   ac_status=$?
6589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590   test $ac_status = 0; }; then
6591     # Now try to grab the symbols.
6592     nlist=conftest.nm
6593     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6594   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6595   ac_status=$?
6596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597   test $ac_status = 0; } && test -s "$nlist"; then
6598       # Try sorting and uniquifying the output.
6599       if sort "$nlist" | uniq > "$nlist"T; then
6600         mv -f "$nlist"T "$nlist"
6601       else
6602         rm -f "$nlist"T
6603       fi
6604
6605       # Make sure that we snagged all the symbols we need.
6606       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6607         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6608           cat <<_LT_EOF > conftest.$ac_ext
6609 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6610 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6611 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6612    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6613 # define LT_DLSYM_CONST
6614 #elif defined(__osf__)
6615 /* This system does not cope well with relocations in const data.  */
6616 # define LT_DLSYM_CONST
6617 #else
6618 # define LT_DLSYM_CONST const
6619 #endif
6620
6621 #ifdef __cplusplus
6622 extern "C" {
6623 #endif
6624
6625 _LT_EOF
6626           # Now generate the symbol file.
6627           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6628
6629           cat <<_LT_EOF >> conftest.$ac_ext
6630
6631 /* The mapping between symbol names and symbols.  */
6632 LT_DLSYM_CONST struct {
6633   const char *name;
6634   void       *address;
6635 }
6636 lt__PROGRAM__LTX_preloaded_symbols[] =
6637 {
6638   { "@PROGRAM@", (void *) 0 },
6639 _LT_EOF
6640           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6641           cat <<\_LT_EOF >> conftest.$ac_ext
6642   {0, (void *) 0}
6643 };
6644
6645 /* This works around a problem in FreeBSD linker */
6646 #ifdef FREEBSD_WORKAROUND
6647 static const void *lt_preloaded_setup() {
6648   return lt__PROGRAM__LTX_preloaded_symbols;
6649 }
6650 #endif
6651
6652 #ifdef __cplusplus
6653 }
6654 #endif
6655 _LT_EOF
6656           # Now try linking the two files.
6657           mv conftest.$ac_objext conftstm.$ac_objext
6658           lt_globsym_save_LIBS=$LIBS
6659           lt_globsym_save_CFLAGS=$CFLAGS
6660           LIBS="conftstm.$ac_objext"
6661           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6662           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6663   (eval $ac_link) 2>&5
6664   ac_status=$?
6665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6667             pipe_works=yes
6668           fi
6669           LIBS=$lt_globsym_save_LIBS
6670           CFLAGS=$lt_globsym_save_CFLAGS
6671         else
6672           echo "cannot find nm_test_func in $nlist" >&5
6673         fi
6674       else
6675         echo "cannot find nm_test_var in $nlist" >&5
6676       fi
6677     else
6678       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6679     fi
6680   else
6681     echo "$progname: failed program was:" >&5
6682     cat conftest.$ac_ext >&5
6683   fi
6684   rm -rf conftest* conftst*
6685
6686   # Do not use the global_symbol_pipe unless it works.
6687   if test "$pipe_works" = yes; then
6688     break
6689   else
6690     lt_cv_sys_global_symbol_pipe=
6691   fi
6692 done
6693
6694 fi
6695
6696 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6697   lt_cv_sys_global_symbol_to_cdecl=
6698 fi
6699 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6701 $as_echo "failed" >&6; }
6702 else
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6704 $as_echo "ok" >&6; }
6705 fi
6706
6707 # Response file support.
6708 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6709   nm_file_list_spec='@'
6710 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6711   nm_file_list_spec='@'
6712 fi
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6741 $as_echo_n "checking for sysroot... " >&6; }
6742
6743 # Check whether --with-sysroot was given.
6744 if test "${with_sysroot+set}" = set; then :
6745   withval=$with_sysroot;
6746 else
6747   with_sysroot=no
6748 fi
6749
6750
6751 lt_sysroot=
6752 case ${with_sysroot} in #(
6753  yes)
6754    if test "$GCC" = yes; then
6755      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6756    fi
6757    ;; #(
6758  /*)
6759    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6760    ;; #(
6761  no|'')
6762    ;; #(
6763  *)
6764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6765 $as_echo "${with_sysroot}" >&6; }
6766    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6767    ;;
6768 esac
6769
6770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6771 $as_echo "${lt_sysroot:-no}" >&6; }
6772
6773
6774
6775
6776
6777 # Check whether --enable-libtool-lock was given.
6778 if test "${enable_libtool_lock+set}" = set; then :
6779   enableval=$enable_libtool_lock;
6780 fi
6781
6782 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6783
6784 # Some flags need to be propagated to the compiler or linker for good
6785 # libtool support.
6786 case $host in
6787 ia64-*-hpux*)
6788   # Find out which ABI we are using.
6789   echo 'int i;' > conftest.$ac_ext
6790   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6791   (eval $ac_compile) 2>&5
6792   ac_status=$?
6793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794   test $ac_status = 0; }; then
6795     case `/usr/bin/file conftest.$ac_objext` in
6796       *ELF-32*)
6797         HPUX_IA64_MODE="32"
6798         ;;
6799       *ELF-64*)
6800         HPUX_IA64_MODE="64"
6801         ;;
6802     esac
6803   fi
6804   rm -rf conftest*
6805   ;;
6806 *-*-irix6*)
6807   # Find out which ABI we are using.
6808   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6809   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6810   (eval $ac_compile) 2>&5
6811   ac_status=$?
6812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6813   test $ac_status = 0; }; then
6814     if test "$lt_cv_prog_gnu_ld" = yes; then
6815       case `/usr/bin/file conftest.$ac_objext` in
6816         *32-bit*)
6817           LD="${LD-ld} -melf32bsmip"
6818           ;;
6819         *N32*)
6820           LD="${LD-ld} -melf32bmipn32"
6821           ;;
6822         *64-bit*)
6823           LD="${LD-ld} -melf64bmip"
6824         ;;
6825       esac
6826     else
6827       case `/usr/bin/file conftest.$ac_objext` in
6828         *32-bit*)
6829           LD="${LD-ld} -32"
6830           ;;
6831         *N32*)
6832           LD="${LD-ld} -n32"
6833           ;;
6834         *64-bit*)
6835           LD="${LD-ld} -64"
6836           ;;
6837       esac
6838     fi
6839   fi
6840   rm -rf conftest*
6841   ;;
6842
6843 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6844 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6845   # Find out which ABI we are using.
6846   echo 'int i;' > conftest.$ac_ext
6847   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6848   (eval $ac_compile) 2>&5
6849   ac_status=$?
6850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6851   test $ac_status = 0; }; then
6852     case `/usr/bin/file conftest.o` in
6853       *32-bit*)
6854         case $host in
6855           x86_64-*kfreebsd*-gnu)
6856             LD="${LD-ld} -m elf_i386_fbsd"
6857             ;;
6858           x86_64-*linux*)
6859             LD="${LD-ld} -m elf_i386"
6860             ;;
6861           ppc64-*linux*|powerpc64-*linux*)
6862             LD="${LD-ld} -m elf32ppclinux"
6863             ;;
6864           s390x-*linux*)
6865             LD="${LD-ld} -m elf_s390"
6866             ;;
6867           sparc64-*linux*)
6868             LD="${LD-ld} -m elf32_sparc"
6869             ;;
6870         esac
6871         ;;
6872       *64-bit*)
6873         case $host in
6874           x86_64-*kfreebsd*-gnu)
6875             LD="${LD-ld} -m elf_x86_64_fbsd"
6876             ;;
6877           x86_64-*linux*)
6878             LD="${LD-ld} -m elf_x86_64"
6879             ;;
6880           ppc*-*linux*|powerpc*-*linux*)
6881             LD="${LD-ld} -m elf64ppc"
6882             ;;
6883           s390*-*linux*|s390*-*tpf*)
6884             LD="${LD-ld} -m elf64_s390"
6885             ;;
6886           sparc*-*linux*)
6887             LD="${LD-ld} -m elf64_sparc"
6888             ;;
6889         esac
6890         ;;
6891     esac
6892   fi
6893   rm -rf conftest*
6894   ;;
6895
6896 *-*-sco3.2v5*)
6897   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6898   SAVE_CFLAGS="$CFLAGS"
6899   CFLAGS="$CFLAGS -belf"
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6901 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6902 if ${lt_cv_cc_needs_belf+:} false; then :
6903   $as_echo_n "(cached) " >&6
6904 else
6905   ac_ext=c
6906 ac_cpp='$CPP $CPPFLAGS'
6907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6910
6911      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h.  */
6913
6914 int
6915 main ()
6916 {
6917
6918   ;
6919   return 0;
6920 }
6921 _ACEOF
6922 if ac_fn_c_try_link "$LINENO"; then :
6923   lt_cv_cc_needs_belf=yes
6924 else
6925   lt_cv_cc_needs_belf=no
6926 fi
6927 rm -f core conftest.err conftest.$ac_objext \
6928     conftest$ac_exeext conftest.$ac_ext
6929      ac_ext=c
6930 ac_cpp='$CPP $CPPFLAGS'
6931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6934
6935 fi
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6937 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6938   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6939     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6940     CFLAGS="$SAVE_CFLAGS"
6941   fi
6942   ;;
6943 *-*solaris*)
6944   # Find out which ABI we are using.
6945   echo 'int i;' > conftest.$ac_ext
6946   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6947   (eval $ac_compile) 2>&5
6948   ac_status=$?
6949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6950   test $ac_status = 0; }; then
6951     case `/usr/bin/file conftest.o` in
6952     *64-bit*)
6953       case $lt_cv_prog_gnu_ld in
6954       yes*)
6955         case $host in
6956         i?86-*-solaris*)
6957           LD="${LD-ld} -m elf_x86_64"
6958           ;;
6959         sparc*-*-solaris*)
6960           LD="${LD-ld} -m elf64_sparc"
6961           ;;
6962         esac
6963         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6964         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6965           LD="${LD-ld}_sol2"
6966         fi
6967         ;;
6968       *)
6969         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6970           LD="${LD-ld} -64"
6971         fi
6972         ;;
6973       esac
6974       ;;
6975     esac
6976   fi
6977   rm -rf conftest*
6978   ;;
6979 esac
6980
6981 need_locks="$enable_libtool_lock"
6982
6983 if test -n "$ac_tool_prefix"; then
6984   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}mt; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6989   $as_echo_n "(cached) " >&6
6990 else
6991   if test -n "$MANIFEST_TOOL"; then
6992   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997   IFS=$as_save_IFS
6998   test -z "$as_dir" && as_dir=.
6999     for ac_exec_ext in '' $ac_executable_extensions; do
7000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7001     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003     break 2
7004   fi
7005 done
7006   done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7012 if test -n "$MANIFEST_TOOL"; then
7013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7014 $as_echo "$MANIFEST_TOOL" >&6; }
7015 else
7016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019
7020
7021 fi
7022 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7023   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7024   # Extract the first word of "mt", so it can be a program name with args.
7025 set dummy mt; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7029   $as_echo_n "(cached) " >&6
7030 else
7031   if test -n "$ac_ct_MANIFEST_TOOL"; then
7032   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037   IFS=$as_save_IFS
7038   test -z "$as_dir" && as_dir=.
7039     for ac_exec_ext in '' $ac_executable_extensions; do
7040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7041     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043     break 2
7044   fi
7045 done
7046   done
7047 IFS=$as_save_IFS
7048
7049 fi
7050 fi
7051 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7052 if test -n "$ac_ct_MANIFEST_TOOL"; then
7053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7054 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7055 else
7056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7061     MANIFEST_TOOL=":"
7062   else
7063     case $cross_compiling:$ac_tool_warned in
7064 yes:)
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067 ac_tool_warned=yes ;;
7068 esac
7069     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7070   fi
7071 else
7072   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7073 fi
7074
7075 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7077 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7078 if ${lt_cv_path_mainfest_tool+:} false; then :
7079   $as_echo_n "(cached) " >&6
7080 else
7081   lt_cv_path_mainfest_tool=no
7082   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7083   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7084   cat conftest.err >&5
7085   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7086     lt_cv_path_mainfest_tool=yes
7087   fi
7088   rm -f conftest*
7089 fi
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7091 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7092 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7093   MANIFEST_TOOL=:
7094 fi
7095
7096
7097
7098
7099
7100
7101   case $host_os in
7102     rhapsody* | darwin*)
7103     if test -n "$ac_tool_prefix"; then
7104   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7105 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7109   $as_echo_n "(cached) " >&6
7110 else
7111   if test -n "$DSYMUTIL"; then
7112   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7116 do
7117   IFS=$as_save_IFS
7118   test -z "$as_dir" && as_dir=.
7119     for ac_exec_ext in '' $ac_executable_extensions; do
7120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7121     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123     break 2
7124   fi
7125 done
7126   done
7127 IFS=$as_save_IFS
7128
7129 fi
7130 fi
7131 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7132 if test -n "$DSYMUTIL"; then
7133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7134 $as_echo "$DSYMUTIL" >&6; }
7135 else
7136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7138 fi
7139
7140
7141 fi
7142 if test -z "$ac_cv_prog_DSYMUTIL"; then
7143   ac_ct_DSYMUTIL=$DSYMUTIL
7144   # Extract the first word of "dsymutil", so it can be a program name with args.
7145 set dummy dsymutil; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7149   $as_echo_n "(cached) " >&6
7150 else
7151   if test -n "$ac_ct_DSYMUTIL"; then
7152   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7156 do
7157   IFS=$as_save_IFS
7158   test -z "$as_dir" && as_dir=.
7159     for ac_exec_ext in '' $ac_executable_extensions; do
7160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7161     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163     break 2
7164   fi
7165 done
7166   done
7167 IFS=$as_save_IFS
7168
7169 fi
7170 fi
7171 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7172 if test -n "$ac_ct_DSYMUTIL"; then
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7174 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7175 else
7176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7178 fi
7179
7180   if test "x$ac_ct_DSYMUTIL" = x; then
7181     DSYMUTIL=":"
7182   else
7183     case $cross_compiling:$ac_tool_warned in
7184 yes:)
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7187 ac_tool_warned=yes ;;
7188 esac
7189     DSYMUTIL=$ac_ct_DSYMUTIL
7190   fi
7191 else
7192   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7193 fi
7194
7195     if test -n "$ac_tool_prefix"; then
7196   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7197 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199 $as_echo_n "checking for $ac_word... " >&6; }
7200 if ${ac_cv_prog_NMEDIT+:} false; then :
7201   $as_echo_n "(cached) " >&6
7202 else
7203   if test -n "$NMEDIT"; then
7204   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7205 else
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH
7208 do
7209   IFS=$as_save_IFS
7210   test -z "$as_dir" && as_dir=.
7211     for ac_exec_ext in '' $ac_executable_extensions; do
7212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215     break 2
7216   fi
7217 done
7218   done
7219 IFS=$as_save_IFS
7220
7221 fi
7222 fi
7223 NMEDIT=$ac_cv_prog_NMEDIT
7224 if test -n "$NMEDIT"; then
7225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7226 $as_echo "$NMEDIT" >&6; }
7227 else
7228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7230 fi
7231
7232
7233 fi
7234 if test -z "$ac_cv_prog_NMEDIT"; then
7235   ac_ct_NMEDIT=$NMEDIT
7236   # Extract the first word of "nmedit", so it can be a program name with args.
7237 set dummy nmedit; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7241   $as_echo_n "(cached) " >&6
7242 else
7243   if test -n "$ac_ct_NMEDIT"; then
7244   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249   IFS=$as_save_IFS
7250   test -z "$as_dir" && as_dir=.
7251     for ac_exec_ext in '' $ac_executable_extensions; do
7252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7253     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255     break 2
7256   fi
7257 done
7258   done
7259 IFS=$as_save_IFS
7260
7261 fi
7262 fi
7263 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7264 if test -n "$ac_ct_NMEDIT"; then
7265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7266 $as_echo "$ac_ct_NMEDIT" >&6; }
7267 else
7268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7270 fi
7271
7272   if test "x$ac_ct_NMEDIT" = x; then
7273     NMEDIT=":"
7274   else
7275     case $cross_compiling:$ac_tool_warned in
7276 yes:)
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7279 ac_tool_warned=yes ;;
7280 esac
7281     NMEDIT=$ac_ct_NMEDIT
7282   fi
7283 else
7284   NMEDIT="$ac_cv_prog_NMEDIT"
7285 fi
7286
7287     if test -n "$ac_tool_prefix"; then
7288   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7289 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_LIPO+:} false; then :
7293   $as_echo_n "(cached) " >&6
7294 else
7295   if test -n "$LIPO"; then
7296   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303     for ac_exec_ext in '' $ac_executable_extensions; do
7304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7305     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310   done
7311 IFS=$as_save_IFS
7312
7313 fi
7314 fi
7315 LIPO=$ac_cv_prog_LIPO
7316 if test -n "$LIPO"; then
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7318 $as_echo "$LIPO" >&6; }
7319 else
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7322 fi
7323
7324
7325 fi
7326 if test -z "$ac_cv_prog_LIPO"; then
7327   ac_ct_LIPO=$LIPO
7328   # Extract the first word of "lipo", so it can be a program name with args.
7329 set dummy lipo; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7333   $as_echo_n "(cached) " >&6
7334 else
7335   if test -n "$ac_ct_LIPO"; then
7336   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341   IFS=$as_save_IFS
7342   test -z "$as_dir" && as_dir=.
7343     for ac_exec_ext in '' $ac_executable_extensions; do
7344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345     ac_cv_prog_ac_ct_LIPO="lipo"
7346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347     break 2
7348   fi
7349 done
7350   done
7351 IFS=$as_save_IFS
7352
7353 fi
7354 fi
7355 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7356 if test -n "$ac_ct_LIPO"; then
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7358 $as_echo "$ac_ct_LIPO" >&6; }
7359 else
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7362 fi
7363
7364   if test "x$ac_ct_LIPO" = x; then
7365     LIPO=":"
7366   else
7367     case $cross_compiling:$ac_tool_warned in
7368 yes:)
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7371 ac_tool_warned=yes ;;
7372 esac
7373     LIPO=$ac_ct_LIPO
7374   fi
7375 else
7376   LIPO="$ac_cv_prog_LIPO"
7377 fi
7378
7379     if test -n "$ac_tool_prefix"; then
7380   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7381 set dummy ${ac_tool_prefix}otool; ac_word=$2
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 $as_echo_n "checking for $ac_word... " >&6; }
7384 if ${ac_cv_prog_OTOOL+:} false; then :
7385   $as_echo_n "(cached) " >&6
7386 else
7387   if test -n "$OTOOL"; then
7388   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393   IFS=$as_save_IFS
7394   test -z "$as_dir" && as_dir=.
7395     for ac_exec_ext in '' $ac_executable_extensions; do
7396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7397     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7399     break 2
7400   fi
7401 done
7402   done
7403 IFS=$as_save_IFS
7404
7405 fi
7406 fi
7407 OTOOL=$ac_cv_prog_OTOOL
7408 if test -n "$OTOOL"; then
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7410 $as_echo "$OTOOL" >&6; }
7411 else
7412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7414 fi
7415
7416
7417 fi
7418 if test -z "$ac_cv_prog_OTOOL"; then
7419   ac_ct_OTOOL=$OTOOL
7420   # Extract the first word of "otool", so it can be a program name with args.
7421 set dummy otool; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7425   $as_echo_n "(cached) " >&6
7426 else
7427   if test -n "$ac_ct_OTOOL"; then
7428   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433   IFS=$as_save_IFS
7434   test -z "$as_dir" && as_dir=.
7435     for ac_exec_ext in '' $ac_executable_extensions; do
7436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437     ac_cv_prog_ac_ct_OTOOL="otool"
7438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439     break 2
7440   fi
7441 done
7442   done
7443 IFS=$as_save_IFS
7444
7445 fi
7446 fi
7447 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7448 if test -n "$ac_ct_OTOOL"; then
7449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7450 $as_echo "$ac_ct_OTOOL" >&6; }
7451 else
7452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7454 fi
7455
7456   if test "x$ac_ct_OTOOL" = x; then
7457     OTOOL=":"
7458   else
7459     case $cross_compiling:$ac_tool_warned in
7460 yes:)
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7463 ac_tool_warned=yes ;;
7464 esac
7465     OTOOL=$ac_ct_OTOOL
7466   fi
7467 else
7468   OTOOL="$ac_cv_prog_OTOOL"
7469 fi
7470
7471     if test -n "$ac_tool_prefix"; then
7472   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7473 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if ${ac_cv_prog_OTOOL64+:} false; then :
7477   $as_echo_n "(cached) " >&6
7478 else
7479   if test -n "$OTOOL64"; then
7480   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7481 else
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7484 do
7485   IFS=$as_save_IFS
7486   test -z "$as_dir" && as_dir=.
7487     for ac_exec_ext in '' $ac_executable_extensions; do
7488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7489     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491     break 2
7492   fi
7493 done
7494   done
7495 IFS=$as_save_IFS
7496
7497 fi
7498 fi
7499 OTOOL64=$ac_cv_prog_OTOOL64
7500 if test -n "$OTOOL64"; then
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7502 $as_echo "$OTOOL64" >&6; }
7503 else
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7506 fi
7507
7508
7509 fi
7510 if test -z "$ac_cv_prog_OTOOL64"; then
7511   ac_ct_OTOOL64=$OTOOL64
7512   # Extract the first word of "otool64", so it can be a program name with args.
7513 set dummy otool64; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7517   $as_echo_n "(cached) " >&6
7518 else
7519   if test -n "$ac_ct_OTOOL64"; then
7520   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525   IFS=$as_save_IFS
7526   test -z "$as_dir" && as_dir=.
7527     for ac_exec_ext in '' $ac_executable_extensions; do
7528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529     ac_cv_prog_ac_ct_OTOOL64="otool64"
7530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531     break 2
7532   fi
7533 done
7534   done
7535 IFS=$as_save_IFS
7536
7537 fi
7538 fi
7539 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7540 if test -n "$ac_ct_OTOOL64"; then
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7542 $as_echo "$ac_ct_OTOOL64" >&6; }
7543 else
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7546 fi
7547
7548   if test "x$ac_ct_OTOOL64" = x; then
7549     OTOOL64=":"
7550   else
7551     case $cross_compiling:$ac_tool_warned in
7552 yes:)
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7555 ac_tool_warned=yes ;;
7556 esac
7557     OTOOL64=$ac_ct_OTOOL64
7558   fi
7559 else
7560   OTOOL64="$ac_cv_prog_OTOOL64"
7561 fi
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7590 $as_echo_n "checking for -single_module linker flag... " >&6; }
7591 if ${lt_cv_apple_cc_single_mod+:} false; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   lt_cv_apple_cc_single_mod=no
7595       if test -z "${LT_MULTI_MODULE}"; then
7596         # By default we will add the -single_module flag. You can override
7597         # by either setting the environment variable LT_MULTI_MODULE
7598         # non-empty at configure time, or by adding -multi_module to the
7599         # link flags.
7600         rm -rf libconftest.dylib*
7601         echo "int foo(void){return 1;}" > conftest.c
7602         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7603 -dynamiclib -Wl,-single_module conftest.c" >&5
7604         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7605           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7606         _lt_result=$?
7607         # If there is a non-empty error log, and "single_module"
7608         # appears in it, assume the flag caused a linker warning
7609         if test -s conftest.err && $GREP single_module conftest.err; then
7610           cat conftest.err >&5
7611         # Otherwise, if the output was created with a 0 exit code from
7612         # the compiler, it worked.
7613         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7614           lt_cv_apple_cc_single_mod=yes
7615         else
7616           cat conftest.err >&5
7617         fi
7618         rm -rf libconftest.dylib*
7619         rm -f conftest.*
7620       fi
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7623 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7624
7625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7626 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7627 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7628   $as_echo_n "(cached) " >&6
7629 else
7630   lt_cv_ld_exported_symbols_list=no
7631       save_LDFLAGS=$LDFLAGS
7632       echo "_main" > conftest.sym
7633       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7634       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h.  */
7636
7637 int
7638 main ()
7639 {
7640
7641   ;
7642   return 0;
7643 }
7644 _ACEOF
7645 if ac_fn_c_try_link "$LINENO"; then :
7646   lt_cv_ld_exported_symbols_list=yes
7647 else
7648   lt_cv_ld_exported_symbols_list=no
7649 fi
7650 rm -f core conftest.err conftest.$ac_objext \
7651     conftest$ac_exeext conftest.$ac_ext
7652         LDFLAGS="$save_LDFLAGS"
7653
7654 fi
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7656 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7657
7658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7659 $as_echo_n "checking for -force_load linker flag... " >&6; }
7660 if ${lt_cv_ld_force_load+:} false; then :
7661   $as_echo_n "(cached) " >&6
7662 else
7663   lt_cv_ld_force_load=no
7664       cat > conftest.c << _LT_EOF
7665 int forced_loaded() { return 2;}
7666 _LT_EOF
7667       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7668       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7669       echo "$AR cru libconftest.a conftest.o" >&5
7670       $AR cru libconftest.a conftest.o 2>&5
7671       echo "$RANLIB libconftest.a" >&5
7672       $RANLIB libconftest.a 2>&5
7673       cat > conftest.c << _LT_EOF
7674 int main() { return 0;}
7675 _LT_EOF
7676       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7677       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7678       _lt_result=$?
7679       if test -s conftest.err && $GREP force_load conftest.err; then
7680         cat conftest.err >&5
7681       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7682         lt_cv_ld_force_load=yes
7683       else
7684         cat conftest.err >&5
7685       fi
7686         rm -f conftest.err libconftest.a conftest conftest.c
7687         rm -rf conftest.dSYM
7688
7689 fi
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7691 $as_echo "$lt_cv_ld_force_load" >&6; }
7692     case $host_os in
7693     rhapsody* | darwin1.[012])
7694       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7695     darwin1.*)
7696       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7697     darwin*) # darwin 5.x on
7698       # if running on 10.5 or later, the deployment target defaults
7699       # to the OS version, if on x86, and 10.4, the deployment
7700       # target defaults to 10.4. Don't you love it?
7701       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7702         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7703           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7704         10.[012]*)
7705           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7706         10.*)
7707           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7708       esac
7709     ;;
7710   esac
7711     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7712       _lt_dar_single_mod='$single_module'
7713     fi
7714     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7715       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7716     else
7717       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7718     fi
7719     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7720       _lt_dsymutil='~$DSYMUTIL $lib || :'
7721     else
7722       _lt_dsymutil=
7723     fi
7724     ;;
7725   esac
7726
7727 ac_ext=c
7728 ac_cpp='$CPP $CPPFLAGS'
7729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7733 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7734 # On Suns, sometimes $CPP names a directory.
7735 if test -n "$CPP" && test -d "$CPP"; then
7736   CPP=
7737 fi
7738 if test -z "$CPP"; then
7739   if ${ac_cv_prog_CPP+:} false; then :
7740   $as_echo_n "(cached) " >&6
7741 else
7742       # Double quotes because CPP needs to be expanded
7743     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7744     do
7745       ac_preproc_ok=false
7746 for ac_c_preproc_warn_flag in '' yes
7747 do
7748   # Use a header file that comes with gcc, so configuring glibc
7749   # with a fresh cross-compiler works.
7750   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7751   # <limits.h> exists even on freestanding compilers.
7752   # On the NeXT, cc -E runs the code through the compiler's parser,
7753   # not just through cpp. "Syntax error" is here to catch this case.
7754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h.  */
7756 #ifdef __STDC__
7757 # include <limits.h>
7758 #else
7759 # include <assert.h>
7760 #endif
7761                      Syntax error
7762 _ACEOF
7763 if ac_fn_c_try_cpp "$LINENO"; then :
7764
7765 else
7766   # Broken: fails on valid input.
7767 continue
7768 fi
7769 rm -f conftest.err conftest.i conftest.$ac_ext
7770
7771   # OK, works on sane cases.  Now check whether nonexistent headers
7772   # can be detected and how.
7773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h.  */
7775 #include <ac_nonexistent.h>
7776 _ACEOF
7777 if ac_fn_c_try_cpp "$LINENO"; then :
7778   # Broken: success on invalid input.
7779 continue
7780 else
7781   # Passes both tests.
7782 ac_preproc_ok=:
7783 break
7784 fi
7785 rm -f conftest.err conftest.i conftest.$ac_ext
7786
7787 done
7788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7789 rm -f conftest.i conftest.err conftest.$ac_ext
7790 if $ac_preproc_ok; then :
7791   break
7792 fi
7793
7794     done
7795     ac_cv_prog_CPP=$CPP
7796
7797 fi
7798   CPP=$ac_cv_prog_CPP
7799 else
7800   ac_cv_prog_CPP=$CPP
7801 fi
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7803 $as_echo "$CPP" >&6; }
7804 ac_preproc_ok=false
7805 for ac_c_preproc_warn_flag in '' yes
7806 do
7807   # Use a header file that comes with gcc, so configuring glibc
7808   # with a fresh cross-compiler works.
7809   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7810   # <limits.h> exists even on freestanding compilers.
7811   # On the NeXT, cc -E runs the code through the compiler's parser,
7812   # not just through cpp. "Syntax error" is here to catch this case.
7813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h.  */
7815 #ifdef __STDC__
7816 # include <limits.h>
7817 #else
7818 # include <assert.h>
7819 #endif
7820                      Syntax error
7821 _ACEOF
7822 if ac_fn_c_try_cpp "$LINENO"; then :
7823
7824 else
7825   # Broken: fails on valid input.
7826 continue
7827 fi
7828 rm -f conftest.err conftest.i conftest.$ac_ext
7829
7830   # OK, works on sane cases.  Now check whether nonexistent headers
7831   # can be detected and how.
7832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h.  */
7834 #include <ac_nonexistent.h>
7835 _ACEOF
7836 if ac_fn_c_try_cpp "$LINENO"; then :
7837   # Broken: success on invalid input.
7838 continue
7839 else
7840   # Passes both tests.
7841 ac_preproc_ok=:
7842 break
7843 fi
7844 rm -f conftest.err conftest.i conftest.$ac_ext
7845
7846 done
7847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7848 rm -f conftest.i conftest.err conftest.$ac_ext
7849 if $ac_preproc_ok; then :
7850
7851 else
7852   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7854 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7855 See \`config.log' for more details" "$LINENO" 5; }
7856 fi
7857
7858 ac_ext=c
7859 ac_cpp='$CPP $CPPFLAGS'
7860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7863
7864
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7866 $as_echo_n "checking for ANSI C header files... " >&6; }
7867 if ${ac_cv_header_stdc+:} false; then :
7868   $as_echo_n "(cached) " >&6
7869 else
7870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h.  */
7872 #include <stdlib.h>
7873 #include <stdarg.h>
7874 #include <string.h>
7875 #include <float.h>
7876
7877 int
7878 main ()
7879 {
7880
7881   ;
7882   return 0;
7883 }
7884 _ACEOF
7885 if ac_fn_c_try_compile "$LINENO"; then :
7886   ac_cv_header_stdc=yes
7887 else
7888   ac_cv_header_stdc=no
7889 fi
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891
7892 if test $ac_cv_header_stdc = yes; then
7893   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h.  */
7896 #include <string.h>
7897
7898 _ACEOF
7899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7900   $EGREP "memchr" >/dev/null 2>&1; then :
7901
7902 else
7903   ac_cv_header_stdc=no
7904 fi
7905 rm -f conftest*
7906
7907 fi
7908
7909 if test $ac_cv_header_stdc = yes; then
7910   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h.  */
7913 #include <stdlib.h>
7914
7915 _ACEOF
7916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7917   $EGREP "free" >/dev/null 2>&1; then :
7918
7919 else
7920   ac_cv_header_stdc=no
7921 fi
7922 rm -f conftest*
7923
7924 fi
7925
7926 if test $ac_cv_header_stdc = yes; then
7927   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7928   if test "$cross_compiling" = yes; then :
7929   :
7930 else
7931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h.  */
7933 #include <ctype.h>
7934 #include <stdlib.h>
7935 #if ((' ' & 0x0FF) == 0x020)
7936 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7937 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7938 #else
7939 # define ISLOWER(c) \
7940                    (('a' <= (c) && (c) <= 'i') \
7941                      || ('j' <= (c) && (c) <= 'r') \
7942                      || ('s' <= (c) && (c) <= 'z'))
7943 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7944 #endif
7945
7946 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7947 int
7948 main ()
7949 {
7950   int i;
7951   for (i = 0; i < 256; i++)
7952     if (XOR (islower (i), ISLOWER (i))
7953         || toupper (i) != TOUPPER (i))
7954       return 2;
7955   return 0;
7956 }
7957 _ACEOF
7958 if ac_fn_c_try_run "$LINENO"; then :
7959
7960 else
7961   ac_cv_header_stdc=no
7962 fi
7963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7964   conftest.$ac_objext conftest.beam conftest.$ac_ext
7965 fi
7966
7967 fi
7968 fi
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7970 $as_echo "$ac_cv_header_stdc" >&6; }
7971 if test $ac_cv_header_stdc = yes; then
7972
7973 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7974
7975 fi
7976
7977 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7979                   inttypes.h stdint.h unistd.h
7980 do :
7981   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7982 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7983 "
7984 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7985   cat >>confdefs.h <<_ACEOF
7986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7987 _ACEOF
7988
7989 fi
7990
7991 done
7992
7993
7994 for ac_header in dlfcn.h
7995 do :
7996   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7997 "
7998 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7999   cat >>confdefs.h <<_ACEOF
8000 #define HAVE_DLFCN_H 1
8001 _ACEOF
8002
8003 fi
8004
8005 done
8006
8007
8008
8009
8010
8011 # Set options
8012
8013
8014
8015         enable_dlopen=no
8016
8017
8018
8019             # Check whether --enable-shared was given.
8020 if test "${enable_shared+set}" = set; then :
8021   enableval=$enable_shared; p=${PACKAGE-default}
8022     case $enableval in
8023     yes) enable_shared=yes ;;
8024     no) enable_shared=no ;;
8025     *)
8026       enable_shared=no
8027       # Look at the argument we got.  We use all the common list separators.
8028       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8029       for pkg in $enableval; do
8030         IFS="$lt_save_ifs"
8031         if test "X$pkg" = "X$p"; then
8032           enable_shared=yes
8033         fi
8034       done
8035       IFS="$lt_save_ifs"
8036       ;;
8037     esac
8038 else
8039   enable_shared=yes
8040 fi
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050   # Check whether --enable-static was given.
8051 if test "${enable_static+set}" = set; then :
8052   enableval=$enable_static; p=${PACKAGE-default}
8053     case $enableval in
8054     yes) enable_static=yes ;;
8055     no) enable_static=no ;;
8056     *)
8057      enable_static=no
8058       # Look at the argument we got.  We use all the common list separators.
8059       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8060       for pkg in $enableval; do
8061         IFS="$lt_save_ifs"
8062         if test "X$pkg" = "X$p"; then
8063           enable_static=yes
8064         fi
8065       done
8066       IFS="$lt_save_ifs"
8067       ;;
8068     esac
8069 else
8070   enable_static=yes
8071 fi
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082 # Check whether --with-pic was given.
8083 if test "${with_pic+set}" = set; then :
8084   withval=$with_pic; lt_p=${PACKAGE-default}
8085     case $withval in
8086     yes|no) pic_mode=$withval ;;
8087     *)
8088       pic_mode=default
8089       # Look at the argument we got.  We use all the common list separators.
8090       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8091       for lt_pkg in $withval; do
8092         IFS="$lt_save_ifs"
8093         if test "X$lt_pkg" = "X$lt_p"; then
8094           pic_mode=yes
8095         fi
8096       done
8097       IFS="$lt_save_ifs"
8098       ;;
8099     esac
8100 else
8101   pic_mode=default
8102 fi
8103
8104
8105 test -z "$pic_mode" && pic_mode=default
8106
8107
8108
8109
8110
8111
8112
8113   # Check whether --enable-fast-install was given.
8114 if test "${enable_fast_install+set}" = set; then :
8115   enableval=$enable_fast_install; p=${PACKAGE-default}
8116     case $enableval in
8117     yes) enable_fast_install=yes ;;
8118     no) enable_fast_install=no ;;
8119     *)
8120       enable_fast_install=no
8121       # Look at the argument we got.  We use all the common list separators.
8122       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8123       for pkg in $enableval; do
8124         IFS="$lt_save_ifs"
8125         if test "X$pkg" = "X$p"; then
8126           enable_fast_install=yes
8127         fi
8128       done
8129       IFS="$lt_save_ifs"
8130       ;;
8131     esac
8132 else
8133   enable_fast_install=yes
8134 fi
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146 # This can be used to rebuild libtool when needed
8147 LIBTOOL_DEPS="$ltmain"
8148
8149 # Always use our own libtool.
8150 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181 test -z "$LN_S" && LN_S="ln -s"
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196 if test -n "${ZSH_VERSION+set}" ; then
8197    setopt NO_GLOB_SUBST
8198 fi
8199
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8201 $as_echo_n "checking for objdir... " >&6; }
8202 if ${lt_cv_objdir+:} false; then :
8203   $as_echo_n "(cached) " >&6
8204 else
8205   rm -f .libs 2>/dev/null
8206 mkdir .libs 2>/dev/null
8207 if test -d .libs; then
8208   lt_cv_objdir=.libs
8209 else
8210   # MS-DOS does not allow filenames that begin with a dot.
8211   lt_cv_objdir=_libs
8212 fi
8213 rmdir .libs 2>/dev/null
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8216 $as_echo "$lt_cv_objdir" >&6; }
8217 objdir=$lt_cv_objdir
8218
8219
8220
8221
8222
8223 cat >>confdefs.h <<_ACEOF
8224 #define LT_OBJDIR "$lt_cv_objdir/"
8225 _ACEOF
8226
8227
8228
8229
8230 case $host_os in
8231 aix3*)
8232   # AIX sometimes has problems with the GCC collect2 program.  For some
8233   # reason, if we set the COLLECT_NAMES environment variable, the problems
8234   # vanish in a puff of smoke.
8235   if test "X${COLLECT_NAMES+set}" != Xset; then
8236     COLLECT_NAMES=
8237     export COLLECT_NAMES
8238   fi
8239   ;;
8240 esac
8241
8242 # Global variables:
8243 ofile=libtool
8244 can_build_shared=yes
8245
8246 # All known linkers require a `.a' archive for static linking (except MSVC,
8247 # which needs '.lib').
8248 libext=a
8249
8250 with_gnu_ld="$lt_cv_prog_gnu_ld"
8251
8252 old_CC="$CC"
8253 old_CFLAGS="$CFLAGS"
8254
8255 # Set sane defaults for various variables
8256 test -z "$CC" && CC=cc
8257 test -z "$LTCC" && LTCC=$CC
8258 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8259 test -z "$LD" && LD=ld
8260 test -z "$ac_objext" && ac_objext=o
8261
8262 for cc_temp in $compiler""; do
8263   case $cc_temp in
8264     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8265     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8266     \-*) ;;
8267     *) break;;
8268   esac
8269 done
8270 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8271
8272
8273 # Only perform the check for file, if the check method requires it
8274 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8275 case $deplibs_check_method in
8276 file_magic*)
8277   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8279 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8280 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8281   $as_echo_n "(cached) " >&6
8282 else
8283   case $MAGIC_CMD in
8284 [\\/*] |  ?:[\\/]*)
8285   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8286   ;;
8287 *)
8288   lt_save_MAGIC_CMD="$MAGIC_CMD"
8289   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8290   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8291   for ac_dir in $ac_dummy; do
8292     IFS="$lt_save_ifs"
8293     test -z "$ac_dir" && ac_dir=.
8294     if test -f $ac_dir/${ac_tool_prefix}file; then
8295       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8296       if test -n "$file_magic_test_file"; then
8297         case $deplibs_check_method in
8298         "file_magic "*)
8299           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8300           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8301           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8302             $EGREP "$file_magic_regex" > /dev/null; then
8303             :
8304           else
8305             cat <<_LT_EOF 1>&2
8306
8307 *** Warning: the command libtool uses to detect shared libraries,
8308 *** $file_magic_cmd, produces output that libtool cannot recognize.
8309 *** The result is that libtool may fail to recognize shared libraries
8310 *** as such.  This will affect the creation of libtool libraries that
8311 *** depend on shared libraries, but programs linked with such libtool
8312 *** libraries will work regardless of this problem.  Nevertheless, you
8313 *** may want to report the problem to your system manager and/or to
8314 *** bug-libtool@gnu.org
8315
8316 _LT_EOF
8317           fi ;;
8318         esac
8319       fi
8320       break
8321     fi
8322   done
8323   IFS="$lt_save_ifs"
8324   MAGIC_CMD="$lt_save_MAGIC_CMD"
8325   ;;
8326 esac
8327 fi
8328
8329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8330 if test -n "$MAGIC_CMD"; then
8331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8332 $as_echo "$MAGIC_CMD" >&6; }
8333 else
8334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8336 fi
8337
8338
8339
8340
8341
8342 if test -z "$lt_cv_path_MAGIC_CMD"; then
8343   if test -n "$ac_tool_prefix"; then
8344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8345 $as_echo_n "checking for file... " >&6; }
8346 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8347   $as_echo_n "(cached) " >&6
8348 else
8349   case $MAGIC_CMD in
8350 [\\/*] |  ?:[\\/]*)
8351   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8352   ;;
8353 *)
8354   lt_save_MAGIC_CMD="$MAGIC_CMD"
8355   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8356   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8357   for ac_dir in $ac_dummy; do
8358     IFS="$lt_save_ifs"
8359     test -z "$ac_dir" && ac_dir=.
8360     if test -f $ac_dir/file; then
8361       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8362       if test -n "$file_magic_test_file"; then
8363         case $deplibs_check_method in
8364         "file_magic "*)
8365           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8366           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8367           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8368             $EGREP "$file_magic_regex" > /dev/null; then
8369             :
8370           else
8371             cat <<_LT_EOF 1>&2
8372
8373 *** Warning: the command libtool uses to detect shared libraries,
8374 *** $file_magic_cmd, produces output that libtool cannot recognize.
8375 *** The result is that libtool may fail to recognize shared libraries
8376 *** as such.  This will affect the creation of libtool libraries that
8377 *** depend on shared libraries, but programs linked with such libtool
8378 *** libraries will work regardless of this problem.  Nevertheless, you
8379 *** may want to report the problem to your system manager and/or to
8380 *** bug-libtool@gnu.org
8381
8382 _LT_EOF
8383           fi ;;
8384         esac
8385       fi
8386       break
8387     fi
8388   done
8389   IFS="$lt_save_ifs"
8390   MAGIC_CMD="$lt_save_MAGIC_CMD"
8391   ;;
8392 esac
8393 fi
8394
8395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8396 if test -n "$MAGIC_CMD"; then
8397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8398 $as_echo "$MAGIC_CMD" >&6; }
8399 else
8400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8402 fi
8403
8404
8405   else
8406     MAGIC_CMD=:
8407   fi
8408 fi
8409
8410   fi
8411   ;;
8412 esac
8413
8414 # Use C for the default configuration in the libtool script
8415
8416 lt_save_CC="$CC"
8417 ac_ext=c
8418 ac_cpp='$CPP $CPPFLAGS'
8419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8422
8423
8424 # Source file extension for C test sources.
8425 ac_ext=c
8426
8427 # Object file extension for compiled C test sources.
8428 objext=o
8429 objext=$objext
8430
8431 # Code to be used in simple compile tests
8432 lt_simple_compile_test_code="int some_variable = 0;"
8433
8434 # Code to be used in simple link tests
8435 lt_simple_link_test_code='int main(){return(0);}'
8436
8437
8438
8439
8440
8441
8442
8443 # If no C compiler was specified, use CC.
8444 LTCC=${LTCC-"$CC"}
8445
8446 # If no C compiler flags were specified, use CFLAGS.
8447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8448
8449 # Allow CC to be a program name with arguments.
8450 compiler=$CC
8451
8452 # Save the default compiler, since it gets overwritten when the other
8453 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8454 compiler_DEFAULT=$CC
8455
8456 # save warnings/boilerplate of simple test code
8457 ac_outfile=conftest.$ac_objext
8458 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8459 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8460 _lt_compiler_boilerplate=`cat conftest.err`
8461 $RM conftest*
8462
8463 ac_outfile=conftest.$ac_objext
8464 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8465 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8466 _lt_linker_boilerplate=`cat conftest.err`
8467 $RM -r conftest*
8468
8469
8470 ## CAVEAT EMPTOR:
8471 ## There is no encapsulation within the following macros, do not change
8472 ## the running order or otherwise move them around unless you know exactly
8473 ## what you are doing...
8474 if test -n "$compiler"; then
8475
8476 lt_prog_compiler_no_builtin_flag=
8477
8478 if test "$GCC" = yes; then
8479   case $cc_basename in
8480   nvcc*)
8481     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8482   *)
8483     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8484   esac
8485
8486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8487 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8488 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8489   $as_echo_n "(cached) " >&6
8490 else
8491   lt_cv_prog_compiler_rtti_exceptions=no
8492    ac_outfile=conftest.$ac_objext
8493    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8494    lt_compiler_flag="-fno-rtti -fno-exceptions"
8495    # Insert the option either (1) after the last *FLAGS variable, or
8496    # (2) before a word containing "conftest.", or (3) at the end.
8497    # Note that $ac_compile itself does not contain backslashes and begins
8498    # with a dollar sign (not a hyphen), so the echo should work correctly.
8499    # The option is referenced via a variable to avoid confusing sed.
8500    lt_compile=`echo "$ac_compile" | $SED \
8501    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8503    -e 's:$: $lt_compiler_flag:'`
8504    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8505    (eval "$lt_compile" 2>conftest.err)
8506    ac_status=$?
8507    cat conftest.err >&5
8508    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509    if (exit $ac_status) && test -s "$ac_outfile"; then
8510      # The compiler can only warn and ignore the option if not recognized
8511      # So say no if there are warnings other than the usual output.
8512      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8513      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8514      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8515        lt_cv_prog_compiler_rtti_exceptions=yes
8516      fi
8517    fi
8518    $RM conftest*
8519
8520 fi
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8522 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8523
8524 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8525     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8526 else
8527     :
8528 fi
8529
8530 fi
8531
8532
8533
8534
8535
8536
8537   lt_prog_compiler_wl=
8538 lt_prog_compiler_pic=
8539 lt_prog_compiler_static=
8540
8541
8542   if test "$GCC" = yes; then
8543     lt_prog_compiler_wl='-Wl,'
8544     lt_prog_compiler_static='-static'
8545
8546     case $host_os in
8547       aix*)
8548       # All AIX code is PIC.
8549       if test "$host_cpu" = ia64; then
8550         # AIX 5 now supports IA64 processor
8551         lt_prog_compiler_static='-Bstatic'
8552       fi
8553       ;;
8554
8555     amigaos*)
8556       case $host_cpu in
8557       powerpc)
8558             # see comment about AmigaOS4 .so support
8559             lt_prog_compiler_pic='-fPIC'
8560         ;;
8561       m68k)
8562             # FIXME: we need at least 68020 code to build shared libraries, but
8563             # adding the `-m68020' flag to GCC prevents building anything better,
8564             # like `-m68040'.
8565             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8566         ;;
8567       esac
8568       ;;
8569
8570     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8571       # PIC is the default for these OSes.
8572       ;;
8573
8574     mingw* | cygwin* | pw32* | os2* | cegcc*)
8575       # This hack is so that the source file can tell whether it is being
8576       # built for inclusion in a dll (and should export symbols for example).
8577       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8578       # (--disable-auto-import) libraries
8579       lt_prog_compiler_pic='-DDLL_EXPORT'
8580       ;;
8581
8582     darwin* | rhapsody*)
8583       # PIC is the default on this platform
8584       # Common symbols not allowed in MH_DYLIB files
8585       lt_prog_compiler_pic='-fno-common'
8586       ;;
8587
8588     haiku*)
8589       # PIC is the default for Haiku.
8590       # The "-static" flag exists, but is broken.
8591       lt_prog_compiler_static=
8592       ;;
8593
8594     hpux*)
8595       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8596       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8597       # sets the default TLS model and affects inlining.
8598       case $host_cpu in
8599       hppa*64*)
8600         # +Z the default
8601         ;;
8602       *)
8603         lt_prog_compiler_pic='-fPIC'
8604         ;;
8605       esac
8606       ;;
8607
8608     interix[3-9]*)
8609       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8610       # Instead, we relocate shared libraries at runtime.
8611       ;;
8612
8613     msdosdjgpp*)
8614       # Just because we use GCC doesn't mean we suddenly get shared libraries
8615       # on systems that don't support them.
8616       lt_prog_compiler_can_build_shared=no
8617       enable_shared=no
8618       ;;
8619
8620     *nto* | *qnx*)
8621       # QNX uses GNU C++, but need to define -shared option too, otherwise
8622       # it will coredump.
8623       lt_prog_compiler_pic='-fPIC -shared'
8624       ;;
8625
8626     sysv4*MP*)
8627       if test -d /usr/nec; then
8628         lt_prog_compiler_pic=-Kconform_pic
8629       fi
8630       ;;
8631
8632     *)
8633       lt_prog_compiler_pic='-fPIC'
8634       ;;
8635     esac
8636
8637     case $cc_basename in
8638     nvcc*) # Cuda Compiler Driver 2.2
8639       lt_prog_compiler_wl='-Xlinker '
8640       if test -n "$lt_prog_compiler_pic"; then
8641         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8642       fi
8643       ;;
8644     esac
8645   else
8646     # PORTME Check for flag to pass linker flags through the system compiler.
8647     case $host_os in
8648     aix*)
8649       lt_prog_compiler_wl='-Wl,'
8650       if test "$host_cpu" = ia64; then
8651         # AIX 5 now supports IA64 processor
8652         lt_prog_compiler_static='-Bstatic'
8653       else
8654         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8655       fi
8656       ;;
8657
8658     mingw* | cygwin* | pw32* | os2* | cegcc*)
8659       # This hack is so that the source file can tell whether it is being
8660       # built for inclusion in a dll (and should export symbols for example).
8661       lt_prog_compiler_pic='-DDLL_EXPORT'
8662       ;;
8663
8664     hpux9* | hpux10* | hpux11*)
8665       lt_prog_compiler_wl='-Wl,'
8666       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8667       # not for PA HP-UX.
8668       case $host_cpu in
8669       hppa*64*|ia64*)
8670         # +Z the default
8671         ;;
8672       *)
8673         lt_prog_compiler_pic='+Z'
8674         ;;
8675       esac
8676       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8677       lt_prog_compiler_static='${wl}-a ${wl}archive'
8678       ;;
8679
8680     irix5* | irix6* | nonstopux*)
8681       lt_prog_compiler_wl='-Wl,'
8682       # PIC (with -KPIC) is the default.
8683       lt_prog_compiler_static='-non_shared'
8684       ;;
8685
8686     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8687       case $cc_basename in
8688       # old Intel for x86_64 which still supported -KPIC.
8689       ecc*)
8690         lt_prog_compiler_wl='-Wl,'
8691         lt_prog_compiler_pic='-KPIC'
8692         lt_prog_compiler_static='-static'
8693         ;;
8694       # icc used to be incompatible with GCC.
8695       # ICC 10 doesn't accept -KPIC any more.
8696       icc* | ifort*)
8697         lt_prog_compiler_wl='-Wl,'
8698         lt_prog_compiler_pic='-fPIC'
8699         lt_prog_compiler_static='-static'
8700         ;;
8701       # Lahey Fortran 8.1.
8702       lf95*)
8703         lt_prog_compiler_wl='-Wl,'
8704         lt_prog_compiler_pic='--shared'
8705         lt_prog_compiler_static='--static'
8706         ;;
8707       nagfor*)
8708         # NAG Fortran compiler
8709         lt_prog_compiler_wl='-Wl,-Wl,,'
8710         lt_prog_compiler_pic='-PIC'
8711         lt_prog_compiler_static='-Bstatic'
8712         ;;
8713       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8714         # Portland Group compilers (*not* the Pentium gcc compiler,
8715         # which looks to be a dead project)
8716         lt_prog_compiler_wl='-Wl,'
8717         lt_prog_compiler_pic='-fpic'
8718         lt_prog_compiler_static='-Bstatic'
8719         ;;
8720       ccc*)
8721         lt_prog_compiler_wl='-Wl,'
8722         # All Alpha code is PIC.
8723         lt_prog_compiler_static='-non_shared'
8724         ;;
8725       xl* | bgxl* | bgf* | mpixl*)
8726         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8727         lt_prog_compiler_wl='-Wl,'
8728         lt_prog_compiler_pic='-qpic'
8729         lt_prog_compiler_static='-qstaticlink'
8730         ;;
8731       *)
8732         case `$CC -V 2>&1 | sed 5q` in
8733         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8734           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8735           lt_prog_compiler_pic='-KPIC'
8736           lt_prog_compiler_static='-Bstatic'
8737           lt_prog_compiler_wl=''
8738           ;;
8739         *Sun\ F* | *Sun*Fortran*)
8740           lt_prog_compiler_pic='-KPIC'
8741           lt_prog_compiler_static='-Bstatic'
8742           lt_prog_compiler_wl='-Qoption ld '
8743           ;;
8744         *Sun\ C*)
8745           # Sun C 5.9
8746           lt_prog_compiler_pic='-KPIC'
8747           lt_prog_compiler_static='-Bstatic'
8748           lt_prog_compiler_wl='-Wl,'
8749           ;;
8750         *Intel*\ [CF]*Compiler*)
8751           lt_prog_compiler_wl='-Wl,'
8752           lt_prog_compiler_pic='-fPIC'
8753           lt_prog_compiler_static='-static'
8754           ;;
8755         *Portland\ Group*)
8756           lt_prog_compiler_wl='-Wl,'
8757           lt_prog_compiler_pic='-fpic'
8758           lt_prog_compiler_static='-Bstatic'
8759           ;;
8760         esac
8761         ;;
8762       esac
8763       ;;
8764
8765     newsos6)
8766       lt_prog_compiler_pic='-KPIC'
8767       lt_prog_compiler_static='-Bstatic'
8768       ;;
8769
8770     *nto* | *qnx*)
8771       # QNX uses GNU C++, but need to define -shared option too, otherwise
8772       # it will coredump.
8773       lt_prog_compiler_pic='-fPIC -shared'
8774       ;;
8775
8776     osf3* | osf4* | osf5*)
8777       lt_prog_compiler_wl='-Wl,'
8778       # All OSF/1 code is PIC.
8779       lt_prog_compiler_static='-non_shared'
8780       ;;
8781
8782     rdos*)
8783       lt_prog_compiler_static='-non_shared'
8784       ;;
8785
8786     solaris*)
8787       lt_prog_compiler_pic='-KPIC'
8788       lt_prog_compiler_static='-Bstatic'
8789       case $cc_basename in
8790       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8791         lt_prog_compiler_wl='-Qoption ld ';;
8792       *)
8793         lt_prog_compiler_wl='-Wl,';;
8794       esac
8795       ;;
8796
8797     sunos4*)
8798       lt_prog_compiler_wl='-Qoption ld '
8799       lt_prog_compiler_pic='-PIC'
8800       lt_prog_compiler_static='-Bstatic'
8801       ;;
8802
8803     sysv4 | sysv4.2uw2* | sysv4.3*)
8804       lt_prog_compiler_wl='-Wl,'
8805       lt_prog_compiler_pic='-KPIC'
8806       lt_prog_compiler_static='-Bstatic'
8807       ;;
8808
8809     sysv4*MP*)
8810       if test -d /usr/nec ;then
8811         lt_prog_compiler_pic='-Kconform_pic'
8812         lt_prog_compiler_static='-Bstatic'
8813       fi
8814       ;;
8815
8816     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8817       lt_prog_compiler_wl='-Wl,'
8818       lt_prog_compiler_pic='-KPIC'
8819       lt_prog_compiler_static='-Bstatic'
8820       ;;
8821
8822     unicos*)
8823       lt_prog_compiler_wl='-Wl,'
8824       lt_prog_compiler_can_build_shared=no
8825       ;;
8826
8827     uts4*)
8828       lt_prog_compiler_pic='-pic'
8829       lt_prog_compiler_static='-Bstatic'
8830       ;;
8831
8832     *)
8833       lt_prog_compiler_can_build_shared=no
8834       ;;
8835     esac
8836   fi
8837
8838 case $host_os in
8839   # For platforms which do not support PIC, -DPIC is meaningless:
8840   *djgpp*)
8841     lt_prog_compiler_pic=
8842     ;;
8843   *)
8844     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8845     ;;
8846 esac
8847
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8849 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8850 if ${lt_cv_prog_compiler_pic+:} false; then :
8851   $as_echo_n "(cached) " >&6
8852 else
8853   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8854 fi
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8856 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8857 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8858
8859 #
8860 # Check to make sure the PIC flag actually works.
8861 #
8862 if test -n "$lt_prog_compiler_pic"; then
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8864 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8865 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8866   $as_echo_n "(cached) " >&6
8867 else
8868   lt_cv_prog_compiler_pic_works=no
8869    ac_outfile=conftest.$ac_objext
8870    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8871    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8872    # Insert the option either (1) after the last *FLAGS variable, or
8873    # (2) before a word containing "conftest.", or (3) at the end.
8874    # Note that $ac_compile itself does not contain backslashes and begins
8875    # with a dollar sign (not a hyphen), so the echo should work correctly.
8876    # The option is referenced via a variable to avoid confusing sed.
8877    lt_compile=`echo "$ac_compile" | $SED \
8878    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8879    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8880    -e 's:$: $lt_compiler_flag:'`
8881    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8882    (eval "$lt_compile" 2>conftest.err)
8883    ac_status=$?
8884    cat conftest.err >&5
8885    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886    if (exit $ac_status) && test -s "$ac_outfile"; then
8887      # The compiler can only warn and ignore the option if not recognized
8888      # So say no if there are warnings other than the usual output.
8889      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8890      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8891      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8892        lt_cv_prog_compiler_pic_works=yes
8893      fi
8894    fi
8895    $RM conftest*
8896
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8899 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8900
8901 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8902     case $lt_prog_compiler_pic in
8903      "" | " "*) ;;
8904      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8905      esac
8906 else
8907     lt_prog_compiler_pic=
8908      lt_prog_compiler_can_build_shared=no
8909 fi
8910
8911 fi
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923 #
8924 # Check to make sure the static flag actually works.
8925 #
8926 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8928 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8929 if ${lt_cv_prog_compiler_static_works+:} false; then :
8930   $as_echo_n "(cached) " >&6
8931 else
8932   lt_cv_prog_compiler_static_works=no
8933    save_LDFLAGS="$LDFLAGS"
8934    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8935    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8936    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8937      # The linker can only warn and ignore the option if not recognized
8938      # So say no if there are warnings
8939      if test -s conftest.err; then
8940        # Append any errors to the config.log.
8941        cat conftest.err 1>&5
8942        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8943        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8944        if diff conftest.exp conftest.er2 >/dev/null; then
8945          lt_cv_prog_compiler_static_works=yes
8946        fi
8947      else
8948        lt_cv_prog_compiler_static_works=yes
8949      fi
8950    fi
8951    $RM -r conftest*
8952    LDFLAGS="$save_LDFLAGS"
8953
8954 fi
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8956 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8957
8958 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8959     :
8960 else
8961     lt_prog_compiler_static=
8962 fi
8963
8964
8965
8966
8967
8968
8969
8970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8971 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8972 if ${lt_cv_prog_compiler_c_o+:} false; then :
8973   $as_echo_n "(cached) " >&6
8974 else
8975   lt_cv_prog_compiler_c_o=no
8976    $RM -r conftest 2>/dev/null
8977    mkdir conftest
8978    cd conftest
8979    mkdir out
8980    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8981
8982    lt_compiler_flag="-o out/conftest2.$ac_objext"
8983    # Insert the option either (1) after the last *FLAGS variable, or
8984    # (2) before a word containing "conftest.", or (3) at the end.
8985    # Note that $ac_compile itself does not contain backslashes and begins
8986    # with a dollar sign (not a hyphen), so the echo should work correctly.
8987    lt_compile=`echo "$ac_compile" | $SED \
8988    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8989    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8990    -e 's:$: $lt_compiler_flag:'`
8991    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8992    (eval "$lt_compile" 2>out/conftest.err)
8993    ac_status=$?
8994    cat out/conftest.err >&5
8995    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8997    then
8998      # The compiler can only warn and ignore the option if not recognized
8999      # So say no if there are warnings
9000      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9001      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9002      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9003        lt_cv_prog_compiler_c_o=yes
9004      fi
9005    fi
9006    chmod u+w . 2>&5
9007    $RM conftest*
9008    # SGI C++ compiler will create directory out/ii_files/ for
9009    # template instantiation
9010    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9011    $RM out/* && rmdir out
9012    cd ..
9013    $RM -r conftest
9014    $RM conftest*
9015
9016 fi
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9018 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9019
9020
9021
9022
9023
9024
9025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9026 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9027 if ${lt_cv_prog_compiler_c_o+:} false; then :
9028   $as_echo_n "(cached) " >&6
9029 else
9030   lt_cv_prog_compiler_c_o=no
9031    $RM -r conftest 2>/dev/null
9032    mkdir conftest
9033    cd conftest
9034    mkdir out
9035    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9036
9037    lt_compiler_flag="-o out/conftest2.$ac_objext"
9038    # Insert the option either (1) after the last *FLAGS variable, or
9039    # (2) before a word containing "conftest.", or (3) at the end.
9040    # Note that $ac_compile itself does not contain backslashes and begins
9041    # with a dollar sign (not a hyphen), so the echo should work correctly.
9042    lt_compile=`echo "$ac_compile" | $SED \
9043    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9044    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9045    -e 's:$: $lt_compiler_flag:'`
9046    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9047    (eval "$lt_compile" 2>out/conftest.err)
9048    ac_status=$?
9049    cat out/conftest.err >&5
9050    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9052    then
9053      # The compiler can only warn and ignore the option if not recognized
9054      # So say no if there are warnings
9055      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9056      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9057      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9058        lt_cv_prog_compiler_c_o=yes
9059      fi
9060    fi
9061    chmod u+w . 2>&5
9062    $RM conftest*
9063    # SGI C++ compiler will create directory out/ii_files/ for
9064    # template instantiation
9065    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9066    $RM out/* && rmdir out
9067    cd ..
9068    $RM -r conftest
9069    $RM conftest*
9070
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9073 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9074
9075
9076
9077
9078 hard_links="nottested"
9079 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9080   # do not overwrite the value of need_locks provided by the user
9081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9082 $as_echo_n "checking if we can lock with hard links... " >&6; }
9083   hard_links=yes
9084   $RM conftest*
9085   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9086   touch conftest.a
9087   ln conftest.a conftest.b 2>&5 || hard_links=no
9088   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9090 $as_echo "$hard_links" >&6; }
9091   if test "$hard_links" = no; then
9092     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9093 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9094     need_locks=warn
9095   fi
9096 else
9097   need_locks=no
9098 fi
9099
9100
9101
9102
9103
9104
9105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9106 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9107
9108   runpath_var=
9109   allow_undefined_flag=
9110   always_export_symbols=no
9111   archive_cmds=
9112   archive_expsym_cmds=
9113   compiler_needs_object=no
9114   enable_shared_with_static_runtimes=no
9115   export_dynamic_flag_spec=
9116   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9117   hardcode_automatic=no
9118   hardcode_direct=no
9119   hardcode_direct_absolute=no
9120   hardcode_libdir_flag_spec=
9121   hardcode_libdir_separator=
9122   hardcode_minus_L=no
9123   hardcode_shlibpath_var=unsupported
9124   inherit_rpath=no
9125   link_all_deplibs=unknown
9126   module_cmds=
9127   module_expsym_cmds=
9128   old_archive_from_new_cmds=
9129   old_archive_from_expsyms_cmds=
9130   thread_safe_flag_spec=
9131   whole_archive_flag_spec=
9132   # include_expsyms should be a list of space-separated symbols to be *always*
9133   # included in the symbol list
9134   include_expsyms=
9135   # exclude_expsyms can be an extended regexp of symbols to exclude
9136   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9137   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9138   # as well as any symbol that contains `d'.
9139   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9140   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9141   # platforms (ab)use it in PIC code, but their linkers get confused if
9142   # the symbol is explicitly referenced.  Since portable code cannot
9143   # rely on this symbol name, it's probably fine to never include it in
9144   # preloaded symbol tables.
9145   # Exclude shared library initialization/finalization symbols.
9146   extract_expsyms_cmds=
9147
9148   case $host_os in
9149   cygwin* | mingw* | pw32* | cegcc*)
9150     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9151     # When not using gcc, we currently assume that we are using
9152     # Microsoft Visual C++.
9153     if test "$GCC" != yes; then
9154       with_gnu_ld=no
9155     fi
9156     ;;
9157   interix*)
9158     # we just hope/assume this is gcc and not c89 (= MSVC++)
9159     with_gnu_ld=yes
9160     ;;
9161   openbsd*)
9162     with_gnu_ld=no
9163     ;;
9164   esac
9165
9166   ld_shlibs=yes
9167
9168   # On some targets, GNU ld is compatible enough with the native linker
9169   # that we're better off using the native interface for both.
9170   lt_use_gnu_ld_interface=no
9171   if test "$with_gnu_ld" = yes; then
9172     case $host_os in
9173       aix*)
9174         # The AIX port of GNU ld has always aspired to compatibility
9175         # with the native linker.  However, as the warning in the GNU ld
9176         # block says, versions before 2.19.5* couldn't really create working
9177         # shared libraries, regardless of the interface used.
9178         case `$LD -v 2>&1` in
9179           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9180           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9181           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9182           *)
9183             lt_use_gnu_ld_interface=yes
9184             ;;
9185         esac
9186         ;;
9187       *)
9188         lt_use_gnu_ld_interface=yes
9189         ;;
9190     esac
9191   fi
9192
9193   if test "$lt_use_gnu_ld_interface" = yes; then
9194     # If archive_cmds runs LD, not CC, wlarc should be empty
9195     wlarc='${wl}'
9196
9197     # Set some defaults for GNU ld with shared library support. These
9198     # are reset later if shared libraries are not supported. Putting them
9199     # here allows them to be overridden if necessary.
9200     runpath_var=LD_RUN_PATH
9201     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9202     export_dynamic_flag_spec='${wl}--export-dynamic'
9203     # ancient GNU ld didn't support --whole-archive et. al.
9204     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9205       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9206     else
9207       whole_archive_flag_spec=
9208     fi
9209     supports_anon_versioning=no
9210     case `$LD -v 2>&1` in
9211       *GNU\ gold*) supports_anon_versioning=yes ;;
9212       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9213       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9214       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9215       *\ 2.11.*) ;; # other 2.11 versions
9216       *) supports_anon_versioning=yes ;;
9217     esac
9218
9219     # See if GNU ld supports shared libraries.
9220     case $host_os in
9221     aix[3-9]*)
9222       # On AIX/PPC, the GNU linker is very broken
9223       if test "$host_cpu" != ia64; then
9224         ld_shlibs=no
9225         cat <<_LT_EOF 1>&2
9226
9227 *** Warning: the GNU linker, at least up to release 2.19, is reported
9228 *** to be unable to reliably create shared libraries on AIX.
9229 *** Therefore, libtool is disabling shared libraries support.  If you
9230 *** really care for shared libraries, you may want to install binutils
9231 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9232 *** You will then need to restart the configuration process.
9233
9234 _LT_EOF
9235       fi
9236       ;;
9237
9238     amigaos*)
9239       case $host_cpu in
9240       powerpc)
9241             # see comment about AmigaOS4 .so support
9242             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9243             archive_expsym_cmds=''
9244         ;;
9245       m68k)
9246             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)'
9247             hardcode_libdir_flag_spec='-L$libdir'
9248             hardcode_minus_L=yes
9249         ;;
9250       esac
9251       ;;
9252
9253     beos*)
9254       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9255         allow_undefined_flag=unsupported
9256         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9257         # support --undefined.  This deserves some investigation.  FIXME
9258         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259       else
9260         ld_shlibs=no
9261       fi
9262       ;;
9263
9264     cygwin* | mingw* | pw32* | cegcc*)
9265       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9266       # as there is no search path for DLLs.
9267       hardcode_libdir_flag_spec='-L$libdir'
9268       export_dynamic_flag_spec='${wl}--export-all-symbols'
9269       allow_undefined_flag=unsupported
9270       always_export_symbols=no
9271       enable_shared_with_static_runtimes=yes
9272       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'
9273       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9274
9275       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9276         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9277         # If the export-symbols file already is a .def file (1st line
9278         # is EXPORTS), use it as is; otherwise, prepend...
9279         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9280           cp $export_symbols $output_objdir/$soname.def;
9281         else
9282           echo EXPORTS > $output_objdir/$soname.def;
9283           cat $export_symbols >> $output_objdir/$soname.def;
9284         fi~
9285         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9286       else
9287         ld_shlibs=no
9288       fi
9289       ;;
9290
9291     haiku*)
9292       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293       link_all_deplibs=yes
9294       ;;
9295
9296     interix[3-9]*)
9297       hardcode_direct=no
9298       hardcode_shlibpath_var=no
9299       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9300       export_dynamic_flag_spec='${wl}-E'
9301       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9302       # Instead, shared libraries are loaded at an image base (0x10000000 by
9303       # default) and relocated if they conflict, which is a slow very memory
9304       # consuming and fragmenting process.  To avoid this, we pick a random,
9305       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9306       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9307       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9308       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'
9309       ;;
9310
9311     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9312       tmp_diet=no
9313       if test "$host_os" = linux-dietlibc; then
9314         case $cc_basename in
9315           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9316         esac
9317       fi
9318       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9319          && test "$tmp_diet" = no
9320       then
9321         tmp_addflag=' $pic_flag'
9322         tmp_sharedflag='-shared'
9323         case $cc_basename,$host_cpu in
9324         pgcc*)                          # Portland Group C compiler
9325           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'
9326           tmp_addflag=' $pic_flag'
9327           ;;
9328         pgf77* | pgf90* | pgf95* | pgfortran*)
9329                                         # Portland Group f77 and f90 compilers
9330           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'
9331           tmp_addflag=' $pic_flag -Mnomain' ;;
9332         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9333           tmp_addflag=' -i_dynamic' ;;
9334         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9335           tmp_addflag=' -i_dynamic -nofor_main' ;;
9336         ifc* | ifort*)                  # Intel Fortran compiler
9337           tmp_addflag=' -nofor_main' ;;
9338         lf95*)                          # Lahey Fortran 8.1
9339           whole_archive_flag_spec=
9340           tmp_sharedflag='--shared' ;;
9341         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9342           tmp_sharedflag='-qmkshrobj'
9343           tmp_addflag= ;;
9344         nvcc*)  # Cuda Compiler Driver 2.2
9345           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'
9346           compiler_needs_object=yes
9347           ;;
9348         esac
9349         case `$CC -V 2>&1 | sed 5q` in
9350         *Sun\ C*)                       # Sun C 5.9
9351           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'
9352           compiler_needs_object=yes
9353           tmp_sharedflag='-G' ;;
9354         *Sun\ F*)                       # Sun Fortran 8.3
9355           tmp_sharedflag='-G' ;;
9356         esac
9357         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358
9359         if test "x$supports_anon_versioning" = xyes; then
9360           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9361             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9362             echo "local: *; };" >> $output_objdir/$libname.ver~
9363             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9364         fi
9365
9366         case $cc_basename in
9367         xlf* | bgf* | bgxlf* | mpixlf*)
9368           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9369           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9370           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9371           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9372           if test "x$supports_anon_versioning" = xyes; then
9373             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9374               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9375               echo "local: *; };" >> $output_objdir/$libname.ver~
9376               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9377           fi
9378           ;;
9379         esac
9380       else
9381         ld_shlibs=no
9382       fi
9383       ;;
9384
9385     netbsd*)
9386       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9387         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9388         wlarc=
9389       else
9390         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9392       fi
9393       ;;
9394
9395     solaris*)
9396       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9397         ld_shlibs=no
9398         cat <<_LT_EOF 1>&2
9399
9400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9401 *** create shared libraries on Solaris systems.  Therefore, libtool
9402 *** is disabling shared libraries support.  We urge you to upgrade GNU
9403 *** binutils to release 2.9.1 or newer.  Another option is to modify
9404 *** your PATH or compiler configuration so that the native linker is
9405 *** used, and then restart.
9406
9407 _LT_EOF
9408       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9409         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9410         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9411       else
9412         ld_shlibs=no
9413       fi
9414       ;;
9415
9416     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9417       case `$LD -v 2>&1` in
9418         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9419         ld_shlibs=no
9420         cat <<_LT_EOF 1>&2
9421
9422 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9423 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9424 *** is disabling shared libraries support.  We urge you to upgrade GNU
9425 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9426 *** your PATH or compiler configuration so that the native linker is
9427 *** used, and then restart.
9428
9429 _LT_EOF
9430         ;;
9431         *)
9432           # For security reasons, it is highly recommended that you always
9433           # use absolute paths for naming shared libraries, and exclude the
9434           # DT_RUNPATH tag from executables and libraries.  But doing so
9435           # requires that you compile everything twice, which is a pain.
9436           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9437             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9438             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9440           else
9441             ld_shlibs=no
9442           fi
9443         ;;
9444       esac
9445       ;;
9446
9447     sunos4*)
9448       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9449       wlarc=
9450       hardcode_direct=yes
9451       hardcode_shlibpath_var=no
9452       ;;
9453
9454     *)
9455       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9456         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9457         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9458       else
9459         ld_shlibs=no
9460       fi
9461       ;;
9462     esac
9463
9464     if test "$ld_shlibs" = no; then
9465       runpath_var=
9466       hardcode_libdir_flag_spec=
9467       export_dynamic_flag_spec=
9468       whole_archive_flag_spec=
9469     fi
9470   else
9471     # PORTME fill in a description of your system's linker (not GNU ld)
9472     case $host_os in
9473     aix3*)
9474       allow_undefined_flag=unsupported
9475       always_export_symbols=yes
9476       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'
9477       # Note: this linker hardcodes the directories in LIBPATH if there
9478       # are no directories specified by -L.
9479       hardcode_minus_L=yes
9480       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9481         # Neither direct hardcoding nor static linking is supported with a
9482         # broken collect2.
9483         hardcode_direct=unsupported
9484       fi
9485       ;;
9486
9487     aix[4-9]*)
9488       if test "$host_cpu" = ia64; then
9489         # On IA64, the linker does run time linking by default, so we don't
9490         # have to do anything special.
9491         aix_use_runtimelinking=no
9492         exp_sym_flag='-Bexport'
9493         no_entry_flag=""
9494       else
9495         # If we're using GNU nm, then we don't want the "-C" option.
9496         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9497         # Also, AIX nm treats weak defined symbols like other global
9498         # defined symbols, whereas GNU nm marks them as "W".
9499         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9500           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'
9501         else
9502           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'
9503         fi
9504         aix_use_runtimelinking=no
9505
9506         # Test if we are trying to use run time linking or normal
9507         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9508         # need to do runtime linking.
9509         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9510           for ld_flag in $LDFLAGS; do
9511           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9512             aix_use_runtimelinking=yes
9513             break
9514           fi
9515           done
9516           ;;
9517         esac
9518
9519         exp_sym_flag='-bexport'
9520         no_entry_flag='-bnoentry'
9521       fi
9522
9523       # When large executables or shared objects are built, AIX ld can
9524       # have problems creating the table of contents.  If linking a library
9525       # or program results in "error TOC overflow" add -mminimal-toc to
9526       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9527       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9528
9529       archive_cmds=''
9530       hardcode_direct=yes
9531       hardcode_direct_absolute=yes
9532       hardcode_libdir_separator=':'
9533       link_all_deplibs=yes
9534       file_list_spec='${wl}-f,'
9535
9536       if test "$GCC" = yes; then
9537         case $host_os in aix4.[012]|aix4.[012].*)
9538         # We only want to do this on AIX 4.2 and lower, the check
9539         # below for broken collect2 doesn't work under 4.3+
9540           collect2name=`${CC} -print-prog-name=collect2`
9541           if test -f "$collect2name" &&
9542            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9543           then
9544           # We have reworked collect2
9545           :
9546           else
9547           # We have old collect2
9548           hardcode_direct=unsupported
9549           # It fails to find uninstalled libraries when the uninstalled
9550           # path is not listed in the libpath.  Setting hardcode_minus_L
9551           # to unsupported forces relinking
9552           hardcode_minus_L=yes
9553           hardcode_libdir_flag_spec='-L$libdir'
9554           hardcode_libdir_separator=
9555           fi
9556           ;;
9557         esac
9558         shared_flag='-shared'
9559         if test "$aix_use_runtimelinking" = yes; then
9560           shared_flag="$shared_flag "'${wl}-G'
9561         fi
9562       else
9563         # not using gcc
9564         if test "$host_cpu" = ia64; then
9565         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9566         # chokes on -Wl,-G. The following line is correct:
9567           shared_flag='-G'
9568         else
9569           if test "$aix_use_runtimelinking" = yes; then
9570             shared_flag='${wl}-G'
9571           else
9572             shared_flag='${wl}-bM:SRE'
9573           fi
9574         fi
9575       fi
9576
9577       export_dynamic_flag_spec='${wl}-bexpall'
9578       # It seems that -bexpall does not export symbols beginning with
9579       # underscore (_), so it is better to generate a list of symbols to export.
9580       always_export_symbols=yes
9581       if test "$aix_use_runtimelinking" = yes; then
9582         # Warning - without using the other runtime loading flags (-brtl),
9583         # -berok will link without error, but may produce a broken library.
9584         allow_undefined_flag='-berok'
9585         # Determine the default libpath from the value encoded in an
9586         # empty executable.
9587         if test "${lt_cv_aix_libpath+set}" = set; then
9588   aix_libpath=$lt_cv_aix_libpath
9589 else
9590   if ${lt_cv_aix_libpath_+:} false; then :
9591   $as_echo_n "(cached) " >&6
9592 else
9593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h.  */
9595
9596 int
9597 main ()
9598 {
9599
9600   ;
9601   return 0;
9602 }
9603 _ACEOF
9604 if ac_fn_c_try_link "$LINENO"; then :
9605
9606   lt_aix_libpath_sed='
9607       /Import File Strings/,/^$/ {
9608           /^0/ {
9609               s/^0  *\([^ ]*\) *$/\1/
9610               p
9611           }
9612       }'
9613   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9614   # Check for a 64-bit object if we didn't find anything.
9615   if test -z "$lt_cv_aix_libpath_"; then
9616     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9617   fi
9618 fi
9619 rm -f core conftest.err conftest.$ac_objext \
9620     conftest$ac_exeext conftest.$ac_ext
9621   if test -z "$lt_cv_aix_libpath_"; then
9622     lt_cv_aix_libpath_="/usr/lib:/lib"
9623   fi
9624
9625 fi
9626
9627   aix_libpath=$lt_cv_aix_libpath_
9628 fi
9629
9630         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9631         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"
9632       else
9633         if test "$host_cpu" = ia64; then
9634           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9635           allow_undefined_flag="-z nodefs"
9636           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"
9637         else
9638          # Determine the default libpath from the value encoded in an
9639          # empty executable.
9640          if test "${lt_cv_aix_libpath+set}" = set; then
9641   aix_libpath=$lt_cv_aix_libpath
9642 else
9643   if ${lt_cv_aix_libpath_+:} false; then :
9644   $as_echo_n "(cached) " >&6
9645 else
9646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h.  */
9648
9649 int
9650 main ()
9651 {
9652
9653   ;
9654   return 0;
9655 }
9656 _ACEOF
9657 if ac_fn_c_try_link "$LINENO"; then :
9658
9659   lt_aix_libpath_sed='
9660       /Import File Strings/,/^$/ {
9661           /^0/ {
9662               s/^0  *\([^ ]*\) *$/\1/
9663               p
9664           }
9665       }'
9666   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9667   # Check for a 64-bit object if we didn't find anything.
9668   if test -z "$lt_cv_aix_libpath_"; then
9669     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9670   fi
9671 fi
9672 rm -f core conftest.err conftest.$ac_objext \
9673     conftest$ac_exeext conftest.$ac_ext
9674   if test -z "$lt_cv_aix_libpath_"; then
9675     lt_cv_aix_libpath_="/usr/lib:/lib"
9676   fi
9677
9678 fi
9679
9680   aix_libpath=$lt_cv_aix_libpath_
9681 fi
9682
9683          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9684           # Warning - without using the other run time loading flags,
9685           # -berok will link without error, but may produce a broken library.
9686           no_undefined_flag=' ${wl}-bernotok'
9687           allow_undefined_flag=' ${wl}-berok'
9688           if test "$with_gnu_ld" = yes; then
9689             # We only use this code for GNU lds that support --whole-archive.
9690             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9691           else
9692             # Exported symbols can be pulled into shared objects from archives
9693             whole_archive_flag_spec='$convenience'
9694           fi
9695           archive_cmds_need_lc=yes
9696           # This is similar to how AIX traditionally builds its shared libraries.
9697           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'
9698         fi
9699       fi
9700       ;;
9701
9702     amigaos*)
9703       case $host_cpu in
9704       powerpc)
9705             # see comment about AmigaOS4 .so support
9706             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9707             archive_expsym_cmds=''
9708         ;;
9709       m68k)
9710             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)'
9711             hardcode_libdir_flag_spec='-L$libdir'
9712             hardcode_minus_L=yes
9713         ;;
9714       esac
9715       ;;
9716
9717     bsdi[45]*)
9718       export_dynamic_flag_spec=-rdynamic
9719       ;;
9720
9721     cygwin* | mingw* | pw32* | cegcc*)
9722       # When not using gcc, we currently assume that we are using
9723       # Microsoft Visual C++.
9724       # hardcode_libdir_flag_spec is actually meaningless, as there is
9725       # no search path for DLLs.
9726       case $cc_basename in
9727       cl*)
9728         # Native MSVC
9729         hardcode_libdir_flag_spec=' '
9730         allow_undefined_flag=unsupported
9731         always_export_symbols=yes
9732         file_list_spec='@'
9733         # Tell ltmain to make .lib files, not .a files.
9734         libext=lib
9735         # Tell ltmain to make .dll files, not .so files.
9736         shrext_cmds=".dll"
9737         # FIXME: Setting linknames here is a bad hack.
9738         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9739         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9740             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9741           else
9742             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9743           fi~
9744           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9745           linknames='
9746         # The linker will not automatically build a static lib if we build a DLL.
9747         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9748         enable_shared_with_static_runtimes=yes
9749         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9750         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9751         # Don't use ranlib
9752         old_postinstall_cmds='chmod 644 $oldlib'
9753         postlink_cmds='lt_outputfile="@OUTPUT@"~
9754           lt_tool_outputfile="@TOOL_OUTPUT@"~
9755           case $lt_outputfile in
9756             *.exe|*.EXE) ;;
9757             *)
9758               lt_outputfile="$lt_outputfile.exe"
9759               lt_tool_outputfile="$lt_tool_outputfile.exe"
9760               ;;
9761           esac~
9762           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9763             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9764             $RM "$lt_outputfile.manifest";
9765           fi'
9766         ;;
9767       *)
9768         # Assume MSVC wrapper
9769         hardcode_libdir_flag_spec=' '
9770         allow_undefined_flag=unsupported
9771         # Tell ltmain to make .lib files, not .a files.
9772         libext=lib
9773         # Tell ltmain to make .dll files, not .so files.
9774         shrext_cmds=".dll"
9775         # FIXME: Setting linknames here is a bad hack.
9776         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9777         # The linker will automatically build a .lib file if we build a DLL.
9778         old_archive_from_new_cmds='true'
9779         # FIXME: Should let the user specify the lib program.
9780         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9781         enable_shared_with_static_runtimes=yes
9782         ;;
9783       esac
9784       ;;
9785
9786     darwin* | rhapsody*)
9787
9788
9789   archive_cmds_need_lc=no
9790   hardcode_direct=no
9791   hardcode_automatic=yes
9792   hardcode_shlibpath_var=unsupported
9793   if test "$lt_cv_ld_force_load" = "yes"; then
9794     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\"`'
9795
9796   else
9797     whole_archive_flag_spec=''
9798   fi
9799   link_all_deplibs=yes
9800   allow_undefined_flag="$_lt_dar_allow_undefined"
9801   case $cc_basename in
9802      ifort*) _lt_dar_can_shared=yes ;;
9803      *) _lt_dar_can_shared=$GCC ;;
9804   esac
9805   if test "$_lt_dar_can_shared" = "yes"; then
9806     output_verbose_link_cmd=func_echo_all
9807     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9808     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9809     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}"
9810     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}"
9811
9812   else
9813   ld_shlibs=no
9814   fi
9815
9816       ;;
9817
9818     dgux*)
9819       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9820       hardcode_libdir_flag_spec='-L$libdir'
9821       hardcode_shlibpath_var=no
9822       ;;
9823
9824     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9825     # support.  Future versions do this automatically, but an explicit c++rt0.o
9826     # does not break anything, and helps significantly (at the cost of a little
9827     # extra space).
9828     freebsd2.2*)
9829       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9830       hardcode_libdir_flag_spec='-R$libdir'
9831       hardcode_direct=yes
9832       hardcode_shlibpath_var=no
9833       ;;
9834
9835     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9836     freebsd2.*)
9837       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9838       hardcode_direct=yes
9839       hardcode_minus_L=yes
9840       hardcode_shlibpath_var=no
9841       ;;
9842
9843     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9844     freebsd* | dragonfly*)
9845       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9846       hardcode_libdir_flag_spec='-R$libdir'
9847       hardcode_direct=yes
9848       hardcode_shlibpath_var=no
9849       ;;
9850
9851     hpux9*)
9852       if test "$GCC" = yes; then
9853         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'
9854       else
9855         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'
9856       fi
9857       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9858       hardcode_libdir_separator=:
9859       hardcode_direct=yes
9860
9861       # hardcode_minus_L: Not really in the search PATH,
9862       # but as the default location of the library.
9863       hardcode_minus_L=yes
9864       export_dynamic_flag_spec='${wl}-E'
9865       ;;
9866
9867     hpux10*)
9868       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9869         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9870       else
9871         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9872       fi
9873       if test "$with_gnu_ld" = no; then
9874         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9875         hardcode_libdir_separator=:
9876         hardcode_direct=yes
9877         hardcode_direct_absolute=yes
9878         export_dynamic_flag_spec='${wl}-E'
9879         # hardcode_minus_L: Not really in the search PATH,
9880         # but as the default location of the library.
9881         hardcode_minus_L=yes
9882       fi
9883       ;;
9884
9885     hpux11*)
9886       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9887         case $host_cpu in
9888         hppa*64*)
9889           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9890           ;;
9891         ia64*)
9892           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9893           ;;
9894         *)
9895           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9896           ;;
9897         esac
9898       else
9899         case $host_cpu in
9900         hppa*64*)
9901           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9902           ;;
9903         ia64*)
9904           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9905           ;;
9906         *)
9907
9908           # Older versions of the 11.00 compiler do not understand -b yet
9909           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9910           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9911 $as_echo_n "checking if $CC understands -b... " >&6; }
9912 if ${lt_cv_prog_compiler__b+:} false; then :
9913   $as_echo_n "(cached) " >&6
9914 else
9915   lt_cv_prog_compiler__b=no
9916    save_LDFLAGS="$LDFLAGS"
9917    LDFLAGS="$LDFLAGS -b"
9918    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9919    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9920      # The linker can only warn and ignore the option if not recognized
9921      # So say no if there are warnings
9922      if test -s conftest.err; then
9923        # Append any errors to the config.log.
9924        cat conftest.err 1>&5
9925        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9926        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9927        if diff conftest.exp conftest.er2 >/dev/null; then
9928          lt_cv_prog_compiler__b=yes
9929        fi
9930      else
9931        lt_cv_prog_compiler__b=yes
9932      fi
9933    fi
9934    $RM -r conftest*
9935    LDFLAGS="$save_LDFLAGS"
9936
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9939 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9940
9941 if test x"$lt_cv_prog_compiler__b" = xyes; then
9942     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9943 else
9944     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9945 fi
9946
9947           ;;
9948         esac
9949       fi
9950       if test "$with_gnu_ld" = no; then
9951         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9952         hardcode_libdir_separator=:
9953
9954         case $host_cpu in
9955         hppa*64*|ia64*)
9956           hardcode_direct=no
9957           hardcode_shlibpath_var=no
9958           ;;
9959         *)
9960           hardcode_direct=yes
9961           hardcode_direct_absolute=yes
9962           export_dynamic_flag_spec='${wl}-E'
9963
9964           # hardcode_minus_L: Not really in the search PATH,
9965           # but as the default location of the library.
9966           hardcode_minus_L=yes
9967           ;;
9968         esac
9969       fi
9970       ;;
9971
9972     irix5* | irix6* | nonstopux*)
9973       if test "$GCC" = yes; then
9974         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'
9975         # Try to use the -exported_symbol ld option, if it does not
9976         # work, assume that -exports_file does not work either and
9977         # implicitly export all symbols.
9978         # This should be the same for all languages, so no per-tag cache variable.
9979         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9980 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9981 if ${lt_cv_irix_exported_symbol+:} false; then :
9982   $as_echo_n "(cached) " >&6
9983 else
9984   save_LDFLAGS="$LDFLAGS"
9985            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9986            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h.  */
9988 int foo (void) { return 0; }
9989 _ACEOF
9990 if ac_fn_c_try_link "$LINENO"; then :
9991   lt_cv_irix_exported_symbol=yes
9992 else
9993   lt_cv_irix_exported_symbol=no
9994 fi
9995 rm -f core conftest.err conftest.$ac_objext \
9996     conftest$ac_exeext conftest.$ac_ext
9997            LDFLAGS="$save_LDFLAGS"
9998 fi
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10000 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10001         if test "$lt_cv_irix_exported_symbol" = yes; then
10002           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'
10003         fi
10004       else
10005         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'
10006         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'
10007       fi
10008       archive_cmds_need_lc='no'
10009       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10010       hardcode_libdir_separator=:
10011       inherit_rpath=yes
10012       link_all_deplibs=yes
10013       ;;
10014
10015     netbsd*)
10016       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10017         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10018       else
10019         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10020       fi
10021       hardcode_libdir_flag_spec='-R$libdir'
10022       hardcode_direct=yes
10023       hardcode_shlibpath_var=no
10024       ;;
10025
10026     newsos6)
10027       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10028       hardcode_direct=yes
10029       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10030       hardcode_libdir_separator=:
10031       hardcode_shlibpath_var=no
10032       ;;
10033
10034     *nto* | *qnx*)
10035       ;;
10036
10037     openbsd*)
10038       if test -f /usr/libexec/ld.so; then
10039         hardcode_direct=yes
10040         hardcode_shlibpath_var=no
10041         hardcode_direct_absolute=yes
10042         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10043           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10044           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10045           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10046           export_dynamic_flag_spec='${wl}-E'
10047         else
10048           case $host_os in
10049            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10050              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10051              hardcode_libdir_flag_spec='-R$libdir'
10052              ;;
10053            *)
10054              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10055              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10056              ;;
10057           esac
10058         fi
10059       else
10060         ld_shlibs=no
10061       fi
10062       ;;
10063
10064     os2*)
10065       hardcode_libdir_flag_spec='-L$libdir'
10066       hardcode_minus_L=yes
10067       allow_undefined_flag=unsupported
10068       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'
10069       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10070       ;;
10071
10072     osf3*)
10073       if test "$GCC" = yes; then
10074         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10075         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'
10076       else
10077         allow_undefined_flag=' -expect_unresolved \*'
10078         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'
10079       fi
10080       archive_cmds_need_lc='no'
10081       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10082       hardcode_libdir_separator=:
10083       ;;
10084
10085     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10086       if test "$GCC" = yes; then
10087         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10088         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'
10089         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10090       else
10091         allow_undefined_flag=' -expect_unresolved \*'
10092         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'
10093         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~
10094         $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'
10095
10096         # Both c and cxx compiler support -rpath directly
10097         hardcode_libdir_flag_spec='-rpath $libdir'
10098       fi
10099       archive_cmds_need_lc='no'
10100       hardcode_libdir_separator=:
10101       ;;
10102
10103     solaris*)
10104       no_undefined_flag=' -z defs'
10105       if test "$GCC" = yes; then
10106         wlarc='${wl}'
10107         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10108         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10109           $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'
10110       else
10111         case `$CC -V 2>&1` in
10112         *"Compilers 5.0"*)
10113           wlarc=''
10114           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10116           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10117           ;;
10118         *)
10119           wlarc='${wl}'
10120           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10121           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10122           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10123           ;;
10124         esac
10125       fi
10126       hardcode_libdir_flag_spec='-R$libdir'
10127       hardcode_shlibpath_var=no
10128       case $host_os in
10129       solaris2.[0-5] | solaris2.[0-5].*) ;;
10130       *)
10131         # The compiler driver will combine and reorder linker options,
10132         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10133         # but is careful enough not to reorder.
10134         # Supported since Solaris 2.6 (maybe 2.5.1?)
10135         if test "$GCC" = yes; then
10136           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10137         else
10138           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10139         fi
10140         ;;
10141       esac
10142       link_all_deplibs=yes
10143       ;;
10144
10145     sunos4*)
10146       if test "x$host_vendor" = xsequent; then
10147         # Use $CC to link under sequent, because it throws in some extra .o
10148         # files that make .init and .fini sections work.
10149         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10150       else
10151         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10152       fi
10153       hardcode_libdir_flag_spec='-L$libdir'
10154       hardcode_direct=yes
10155       hardcode_minus_L=yes
10156       hardcode_shlibpath_var=no
10157       ;;
10158
10159     sysv4)
10160       case $host_vendor in
10161         sni)
10162           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10163           hardcode_direct=yes # is this really true???
10164         ;;
10165         siemens)
10166           ## LD is ld it makes a PLAMLIB
10167           ## CC just makes a GrossModule.
10168           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10169           reload_cmds='$CC -r -o $output$reload_objs'
10170           hardcode_direct=no
10171         ;;
10172         motorola)
10173           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10174           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10175         ;;
10176       esac
10177       runpath_var='LD_RUN_PATH'
10178       hardcode_shlibpath_var=no
10179       ;;
10180
10181     sysv4.3*)
10182       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10183       hardcode_shlibpath_var=no
10184       export_dynamic_flag_spec='-Bexport'
10185       ;;
10186
10187     sysv4*MP*)
10188       if test -d /usr/nec; then
10189         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190         hardcode_shlibpath_var=no
10191         runpath_var=LD_RUN_PATH
10192         hardcode_runpath_var=yes
10193         ld_shlibs=yes
10194       fi
10195       ;;
10196
10197     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10198       no_undefined_flag='${wl}-z,text'
10199       archive_cmds_need_lc=no
10200       hardcode_shlibpath_var=no
10201       runpath_var='LD_RUN_PATH'
10202
10203       if test "$GCC" = yes; then
10204         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10206       else
10207         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10209       fi
10210       ;;
10211
10212     sysv5* | sco3.2v5* | sco5v6*)
10213       # Note: We can NOT use -z defs as we might desire, because we do not
10214       # link with -lc, and that would cause any symbols used from libc to
10215       # always be unresolved, which means just about no library would
10216       # ever link correctly.  If we're not using GNU ld we use -z text
10217       # though, which does catch some bad symbols but isn't as heavy-handed
10218       # as -z defs.
10219       no_undefined_flag='${wl}-z,text'
10220       allow_undefined_flag='${wl}-z,nodefs'
10221       archive_cmds_need_lc=no
10222       hardcode_shlibpath_var=no
10223       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10224       hardcode_libdir_separator=':'
10225       link_all_deplibs=yes
10226       export_dynamic_flag_spec='${wl}-Bexport'
10227       runpath_var='LD_RUN_PATH'
10228
10229       if test "$GCC" = yes; then
10230         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10231         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232       else
10233         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235       fi
10236       ;;
10237
10238     uts4*)
10239       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10240       hardcode_libdir_flag_spec='-L$libdir'
10241       hardcode_shlibpath_var=no
10242       ;;
10243
10244     *)
10245       ld_shlibs=no
10246       ;;
10247     esac
10248
10249     if test x$host_vendor = xsni; then
10250       case $host in
10251       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10252         export_dynamic_flag_spec='${wl}-Blargedynsym'
10253         ;;
10254       esac
10255     fi
10256   fi
10257
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10259 $as_echo "$ld_shlibs" >&6; }
10260 test "$ld_shlibs" = no && can_build_shared=no
10261
10262 with_gnu_ld=$with_gnu_ld
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278 #
10279 # Do we need to explicitly link libc?
10280 #
10281 case "x$archive_cmds_need_lc" in
10282 x|xyes)
10283   # Assume -lc should be added
10284   archive_cmds_need_lc=yes
10285
10286   if test "$enable_shared" = yes && test "$GCC" = yes; then
10287     case $archive_cmds in
10288     *'~'*)
10289       # FIXME: we may have to deal with multi-command sequences.
10290       ;;
10291     '$CC '*)
10292       # Test whether the compiler implicitly links with -lc since on some
10293       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10294       # to ld, don't add -lc before -lgcc.
10295       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10296 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10297 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10298   $as_echo_n "(cached) " >&6
10299 else
10300   $RM conftest*
10301         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10302
10303         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10304   (eval $ac_compile) 2>&5
10305   ac_status=$?
10306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10307   test $ac_status = 0; } 2>conftest.err; then
10308           soname=conftest
10309           lib=conftest
10310           libobjs=conftest.$ac_objext
10311           deplibs=
10312           wl=$lt_prog_compiler_wl
10313           pic_flag=$lt_prog_compiler_pic
10314           compiler_flags=-v
10315           linker_flags=-v
10316           verstring=
10317           output_objdir=.
10318           libname=conftest
10319           lt_save_allow_undefined_flag=$allow_undefined_flag
10320           allow_undefined_flag=
10321           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10322   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10323   ac_status=$?
10324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10325   test $ac_status = 0; }
10326           then
10327             lt_cv_archive_cmds_need_lc=no
10328           else
10329             lt_cv_archive_cmds_need_lc=yes
10330           fi
10331           allow_undefined_flag=$lt_save_allow_undefined_flag
10332         else
10333           cat conftest.err 1>&5
10334         fi
10335         $RM conftest*
10336
10337 fi
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10339 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10340       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10341       ;;
10342     esac
10343   fi
10344   ;;
10345 esac
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10499 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10500
10501 if test "$GCC" = yes; then
10502   case $host_os in
10503     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10504     *) lt_awk_arg="/^libraries:/" ;;
10505   esac
10506   case $host_os in
10507     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10508     *) lt_sed_strip_eq="s,=/,/,g" ;;
10509   esac
10510   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10511   case $lt_search_path_spec in
10512   *\;*)
10513     # if the path contains ";" then we assume it to be the separator
10514     # otherwise default to the standard path separator (i.e. ":") - it is
10515     # assumed that no part of a normal pathname contains ";" but that should
10516     # okay in the real world where ";" in dirpaths is itself problematic.
10517     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10518     ;;
10519   *)
10520     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10521     ;;
10522   esac
10523   # Ok, now we have the path, separated by spaces, we can step through it
10524   # and add multilib dir if necessary.
10525   lt_tmp_lt_search_path_spec=
10526   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10527   for lt_sys_path in $lt_search_path_spec; do
10528     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10529       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10530     else
10531       test -d "$lt_sys_path" && \
10532         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10533     fi
10534   done
10535   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10536 BEGIN {RS=" "; FS="/|\n";} {
10537   lt_foo="";
10538   lt_count=0;
10539   for (lt_i = NF; lt_i > 0; lt_i--) {
10540     if ($lt_i != "" && $lt_i != ".") {
10541       if ($lt_i == "..") {
10542         lt_count++;
10543       } else {
10544         if (lt_count == 0) {
10545           lt_foo="/" $lt_i lt_foo;
10546         } else {
10547           lt_count--;
10548         }
10549       }
10550     }
10551   }
10552   if (lt_foo != "") { lt_freq[lt_foo]++; }
10553   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10554 }'`
10555   # AWK program above erroneously prepends '/' to C:/dos/paths
10556   # for these hosts.
10557   case $host_os in
10558     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10559       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10560   esac
10561   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10562 else
10563   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10564 fi
10565 library_names_spec=
10566 libname_spec='lib$name'
10567 soname_spec=
10568 shrext_cmds=".so"
10569 postinstall_cmds=
10570 postuninstall_cmds=
10571 finish_cmds=
10572 finish_eval=
10573 shlibpath_var=
10574 shlibpath_overrides_runpath=unknown
10575 version_type=none
10576 dynamic_linker="$host_os ld.so"
10577 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10578 need_lib_prefix=unknown
10579 hardcode_into_libs=no
10580
10581 # when you set need_version to no, make sure it does not cause -set_version
10582 # flags to be left without arguments
10583 need_version=unknown
10584
10585 case $host_os in
10586 aix3*)
10587   version_type=linux # correct to gnu/linux during the next big refactor
10588   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10589   shlibpath_var=LIBPATH
10590
10591   # AIX 3 has no versioning support, so we append a major version to the name.
10592   soname_spec='${libname}${release}${shared_ext}$major'
10593   ;;
10594
10595 aix[4-9]*)
10596   version_type=linux # correct to gnu/linux during the next big refactor
10597   need_lib_prefix=no
10598   need_version=no
10599   hardcode_into_libs=yes
10600   if test "$host_cpu" = ia64; then
10601     # AIX 5 supports IA64
10602     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10603     shlibpath_var=LD_LIBRARY_PATH
10604   else
10605     # With GCC up to 2.95.x, collect2 would create an import file
10606     # for dependence libraries.  The import file would start with
10607     # the line `#! .'.  This would cause the generated library to
10608     # depend on `.', always an invalid library.  This was fixed in
10609     # development snapshots of GCC prior to 3.0.
10610     case $host_os in
10611       aix4 | aix4.[01] | aix4.[01].*)
10612       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10613            echo ' yes '
10614            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10615         :
10616       else
10617         can_build_shared=no
10618       fi
10619       ;;
10620     esac
10621     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10622     # soname into executable. Probably we can add versioning support to
10623     # collect2, so additional links can be useful in future.
10624     if test "$aix_use_runtimelinking" = yes; then
10625       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10626       # instead of lib<name>.a to let people know that these are not
10627       # typical AIX shared libraries.
10628       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629     else
10630       # We preserve .a as extension for shared libraries through AIX4.2
10631       # and later when we are not doing run time linking.
10632       library_names_spec='${libname}${release}.a $libname.a'
10633       soname_spec='${libname}${release}${shared_ext}$major'
10634     fi
10635     shlibpath_var=LIBPATH
10636   fi
10637   ;;
10638
10639 amigaos*)
10640   case $host_cpu in
10641   powerpc)
10642     # Since July 2007 AmigaOS4 officially supports .so libraries.
10643     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645     ;;
10646   m68k)
10647     library_names_spec='$libname.ixlibrary $libname.a'
10648     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10649     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'
10650     ;;
10651   esac
10652   ;;
10653
10654 beos*)
10655   library_names_spec='${libname}${shared_ext}'
10656   dynamic_linker="$host_os ld.so"
10657   shlibpath_var=LIBRARY_PATH
10658   ;;
10659
10660 bsdi[45]*)
10661   version_type=linux # correct to gnu/linux during the next big refactor
10662   need_version=no
10663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664   soname_spec='${libname}${release}${shared_ext}$major'
10665   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10666   shlibpath_var=LD_LIBRARY_PATH
10667   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10668   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10669   # the default ld.so.conf also contains /usr/contrib/lib and
10670   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10671   # libtool to hard-code these into programs
10672   ;;
10673
10674 cygwin* | mingw* | pw32* | cegcc*)
10675   version_type=windows
10676   shrext_cmds=".dll"
10677   need_version=no
10678   need_lib_prefix=no
10679
10680   case $GCC,$cc_basename in
10681   yes,*)
10682     # gcc
10683     library_names_spec='$libname.dll.a'
10684     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10685     postinstall_cmds='base_file=`basename \${file}`~
10686       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10687       dldir=$destdir/`dirname \$dlpath`~
10688       test -d \$dldir || mkdir -p \$dldir~
10689       $install_prog $dir/$dlname \$dldir/$dlname~
10690       chmod a+x \$dldir/$dlname~
10691       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10692         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10693       fi'
10694     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10695       dlpath=$dir/\$dldll~
10696        $RM \$dlpath'
10697     shlibpath_overrides_runpath=yes
10698
10699     case $host_os in
10700     cygwin*)
10701       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10702       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10703
10704       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10705       ;;
10706     mingw* | cegcc*)
10707       # MinGW DLLs use traditional 'lib' prefix
10708       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10709       ;;
10710     pw32*)
10711       # pw32 DLLs use 'pw' prefix rather than 'lib'
10712       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10713       ;;
10714     esac
10715     dynamic_linker='Win32 ld.exe'
10716     ;;
10717
10718   *,cl*)
10719     # Native MSVC
10720     libname_spec='$name'
10721     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10722     library_names_spec='${libname}.dll.lib'
10723
10724     case $build_os in
10725     mingw*)
10726       sys_lib_search_path_spec=
10727       lt_save_ifs=$IFS
10728       IFS=';'
10729       for lt_path in $LIB
10730       do
10731         IFS=$lt_save_ifs
10732         # Let DOS variable expansion print the short 8.3 style file name.
10733         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10734         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10735       done
10736       IFS=$lt_save_ifs
10737       # Convert to MSYS style.
10738       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10739       ;;
10740     cygwin*)
10741       # Convert to unix form, then to dos form, then back to unix form
10742       # but this time dos style (no spaces!) so that the unix form looks
10743       # like /cygdrive/c/PROGRA~1:/cygdr...
10744       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10745       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10746       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10747       ;;
10748     *)
10749       sys_lib_search_path_spec="$LIB"
10750       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10751         # It is most probably a Windows format PATH.
10752         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10753       else
10754         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10755       fi
10756       # FIXME: find the short name or the path components, as spaces are
10757       # common. (e.g. "Program Files" -> "PROGRA~1")
10758       ;;
10759     esac
10760
10761     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10762     postinstall_cmds='base_file=`basename \${file}`~
10763       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10764       dldir=$destdir/`dirname \$dlpath`~
10765       test -d \$dldir || mkdir -p \$dldir~
10766       $install_prog $dir/$dlname \$dldir/$dlname'
10767     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10768       dlpath=$dir/\$dldll~
10769        $RM \$dlpath'
10770     shlibpath_overrides_runpath=yes
10771     dynamic_linker='Win32 link.exe'
10772     ;;
10773
10774   *)
10775     # Assume MSVC wrapper
10776     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10777     dynamic_linker='Win32 ld.exe'
10778     ;;
10779   esac
10780   # FIXME: first we should search . and the directory the executable is in
10781   shlibpath_var=PATH
10782   ;;
10783
10784 darwin* | rhapsody*)
10785   dynamic_linker="$host_os dyld"
10786   version_type=darwin
10787   need_lib_prefix=no
10788   need_version=no
10789   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10790   soname_spec='${libname}${release}${major}$shared_ext'
10791   shlibpath_overrides_runpath=yes
10792   shlibpath_var=DYLD_LIBRARY_PATH
10793   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10794
10795   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10796   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10797   ;;
10798
10799 dgux*)
10800   version_type=linux # correct to gnu/linux during the next big refactor
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   shlibpath_var=LD_LIBRARY_PATH
10806   ;;
10807
10808 freebsd* | dragonfly*)
10809   # DragonFly does not have aout.  When/if they implement a new
10810   # versioning mechanism, adjust this.
10811   if test -x /usr/bin/objformat; then
10812     objformat=`/usr/bin/objformat`
10813   else
10814     case $host_os in
10815     freebsd[23].*) objformat=aout ;;
10816     *) objformat=elf ;;
10817     esac
10818   fi
10819   version_type=freebsd-$objformat
10820   case $version_type in
10821     freebsd-elf*)
10822       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10823       need_version=no
10824       need_lib_prefix=no
10825       ;;
10826     freebsd-*)
10827       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10828       need_version=yes
10829       ;;
10830   esac
10831   shlibpath_var=LD_LIBRARY_PATH
10832   case $host_os in
10833   freebsd2.*)
10834     shlibpath_overrides_runpath=yes
10835     ;;
10836   freebsd3.[01]* | freebsdelf3.[01]*)
10837     shlibpath_overrides_runpath=yes
10838     hardcode_into_libs=yes
10839     ;;
10840   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10841   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10842     shlibpath_overrides_runpath=no
10843     hardcode_into_libs=yes
10844     ;;
10845   *) # from 4.6 on, and DragonFly
10846     shlibpath_overrides_runpath=yes
10847     hardcode_into_libs=yes
10848     ;;
10849   esac
10850   ;;
10851
10852 gnu*)
10853   version_type=linux # correct to gnu/linux during the next big refactor
10854   need_lib_prefix=no
10855   need_version=no
10856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10857   soname_spec='${libname}${release}${shared_ext}$major'
10858   shlibpath_var=LD_LIBRARY_PATH
10859   shlibpath_overrides_runpath=no
10860   hardcode_into_libs=yes
10861   ;;
10862
10863 haiku*)
10864   version_type=linux # correct to gnu/linux during the next big refactor
10865   need_lib_prefix=no
10866   need_version=no
10867   dynamic_linker="$host_os runtime_loader"
10868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10869   soname_spec='${libname}${release}${shared_ext}$major'
10870   shlibpath_var=LIBRARY_PATH
10871   shlibpath_overrides_runpath=yes
10872   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10873   hardcode_into_libs=yes
10874   ;;
10875
10876 hpux9* | hpux10* | hpux11*)
10877   # Give a soname corresponding to the major version so that dld.sl refuses to
10878   # link against other versions.
10879   version_type=sunos
10880   need_lib_prefix=no
10881   need_version=no
10882   case $host_cpu in
10883   ia64*)
10884     shrext_cmds='.so'
10885     hardcode_into_libs=yes
10886     dynamic_linker="$host_os dld.so"
10887     shlibpath_var=LD_LIBRARY_PATH
10888     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890     soname_spec='${libname}${release}${shared_ext}$major'
10891     if test "X$HPUX_IA64_MODE" = X32; then
10892       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10893     else
10894       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10895     fi
10896     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10897     ;;
10898   hppa*64*)
10899     shrext_cmds='.sl'
10900     hardcode_into_libs=yes
10901     dynamic_linker="$host_os dld.sl"
10902     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10903     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905     soname_spec='${libname}${release}${shared_ext}$major'
10906     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10907     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10908     ;;
10909   *)
10910     shrext_cmds='.sl'
10911     dynamic_linker="$host_os dld.sl"
10912     shlibpath_var=SHLIB_PATH
10913     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10914     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915     soname_spec='${libname}${release}${shared_ext}$major'
10916     ;;
10917   esac
10918   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10919   postinstall_cmds='chmod 555 $lib'
10920   # or fails outright, so override atomically:
10921   install_override_mode=555
10922   ;;
10923
10924 interix[3-9]*)
10925   version_type=linux # correct to gnu/linux during the next big refactor
10926   need_lib_prefix=no
10927   need_version=no
10928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10929   soname_spec='${libname}${release}${shared_ext}$major'
10930   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10931   shlibpath_var=LD_LIBRARY_PATH
10932   shlibpath_overrides_runpath=no
10933   hardcode_into_libs=yes
10934   ;;
10935
10936 irix5* | irix6* | nonstopux*)
10937   case $host_os in
10938     nonstopux*) version_type=nonstopux ;;
10939     *)
10940         if test "$lt_cv_prog_gnu_ld" = yes; then
10941                 version_type=linux # correct to gnu/linux during the next big refactor
10942         else
10943                 version_type=irix
10944         fi ;;
10945   esac
10946   need_lib_prefix=no
10947   need_version=no
10948   soname_spec='${libname}${release}${shared_ext}$major'
10949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10950   case $host_os in
10951   irix5* | nonstopux*)
10952     libsuff= shlibsuff=
10953     ;;
10954   *)
10955     case $LD in # libtool.m4 will add one of these switches to LD
10956     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10957       libsuff= shlibsuff= libmagic=32-bit;;
10958     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10959       libsuff=32 shlibsuff=N32 libmagic=N32;;
10960     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10961       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10962     *) libsuff= shlibsuff= libmagic=never-match;;
10963     esac
10964     ;;
10965   esac
10966   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10967   shlibpath_overrides_runpath=no
10968   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10969   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10970   hardcode_into_libs=yes
10971   ;;
10972
10973 # No shared lib support for Linux oldld, aout, or coff.
10974 linux*oldld* | linux*aout* | linux*coff*)
10975   dynamic_linker=no
10976   ;;
10977
10978 # This must be glibc/ELF.
10979 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10980   version_type=linux # correct to gnu/linux during the next big refactor
10981   need_lib_prefix=no
10982   need_version=no
10983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984   soname_spec='${libname}${release}${shared_ext}$major'
10985   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10986   shlibpath_var=LD_LIBRARY_PATH
10987   shlibpath_overrides_runpath=no
10988
10989   # Some binutils ld are patched to set DT_RUNPATH
10990   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10991   $as_echo_n "(cached) " >&6
10992 else
10993   lt_cv_shlibpath_overrides_runpath=no
10994     save_LDFLAGS=$LDFLAGS
10995     save_libdir=$libdir
10996     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10997          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10998     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h.  */
11000
11001 int
11002 main ()
11003 {
11004
11005   ;
11006   return 0;
11007 }
11008 _ACEOF
11009 if ac_fn_c_try_link "$LINENO"; then :
11010   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11011   lt_cv_shlibpath_overrides_runpath=yes
11012 fi
11013 fi
11014 rm -f core conftest.err conftest.$ac_objext \
11015     conftest$ac_exeext conftest.$ac_ext
11016     LDFLAGS=$save_LDFLAGS
11017     libdir=$save_libdir
11018
11019 fi
11020
11021   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11022
11023   # This implies no fast_install, which is unacceptable.
11024   # Some rework will be needed to allow for fast_install
11025   # before this can be enabled.
11026   hardcode_into_libs=yes
11027
11028   # Add ABI-specific directories to the system library path.
11029   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11030
11031   # Append ld.so.conf contents to the search path
11032   if test -f /etc/ld.so.conf; then
11033     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' ' '`
11034     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11035
11036   fi
11037
11038   # We used to test for /lib/ld.so.1 and disable shared libraries on
11039   # powerpc, because MkLinux only supported shared libraries with the
11040   # GNU dynamic linker.  Since this was broken with cross compilers,
11041   # most powerpc-linux boxes support dynamic linking these days and
11042   # people can always --disable-shared, the test was removed, and we
11043   # assume the GNU/Linux dynamic linker is in use.
11044   dynamic_linker='GNU/Linux ld.so'
11045   ;;
11046
11047 netbsd*)
11048   version_type=sunos
11049   need_lib_prefix=no
11050   need_version=no
11051   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11053     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11054     dynamic_linker='NetBSD (a.out) ld.so'
11055   else
11056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11057     soname_spec='${libname}${release}${shared_ext}$major'
11058     dynamic_linker='NetBSD ld.elf_so'
11059   fi
11060   shlibpath_var=LD_LIBRARY_PATH
11061   shlibpath_overrides_runpath=yes
11062   hardcode_into_libs=yes
11063   ;;
11064
11065 newsos6)
11066   version_type=linux # correct to gnu/linux during the next big refactor
11067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068   shlibpath_var=LD_LIBRARY_PATH
11069   shlibpath_overrides_runpath=yes
11070   ;;
11071
11072 *nto* | *qnx*)
11073   version_type=qnx
11074   need_lib_prefix=no
11075   need_version=no
11076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077   soname_spec='${libname}${release}${shared_ext}$major'
11078   shlibpath_var=LD_LIBRARY_PATH
11079   shlibpath_overrides_runpath=no
11080   hardcode_into_libs=yes
11081   dynamic_linker='ldqnx.so'
11082   ;;
11083
11084 openbsd*)
11085   version_type=sunos
11086   sys_lib_dlsearch_path_spec="/usr/lib"
11087   need_lib_prefix=no
11088   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11089   case $host_os in
11090     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11091     *)                          need_version=no  ;;
11092   esac
11093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11094   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11095   shlibpath_var=LD_LIBRARY_PATH
11096   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11097     case $host_os in
11098       openbsd2.[89] | openbsd2.[89].*)
11099         shlibpath_overrides_runpath=no
11100         ;;
11101       *)
11102         shlibpath_overrides_runpath=yes
11103         ;;
11104       esac
11105   else
11106     shlibpath_overrides_runpath=yes
11107   fi
11108   ;;
11109
11110 os2*)
11111   libname_spec='$name'
11112   shrext_cmds=".dll"
11113   need_lib_prefix=no
11114   library_names_spec='$libname${shared_ext} $libname.a'
11115   dynamic_linker='OS/2 ld.exe'
11116   shlibpath_var=LIBPATH
11117   ;;
11118
11119 osf3* | osf4* | osf5*)
11120   version_type=osf
11121   need_lib_prefix=no
11122   need_version=no
11123   soname_spec='${libname}${release}${shared_ext}$major'
11124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125   shlibpath_var=LD_LIBRARY_PATH
11126   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11127   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11128   ;;
11129
11130 rdos*)
11131   dynamic_linker=no
11132   ;;
11133
11134 solaris*)
11135   version_type=linux # correct to gnu/linux during the next big refactor
11136   need_lib_prefix=no
11137   need_version=no
11138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139   soname_spec='${libname}${release}${shared_ext}$major'
11140   shlibpath_var=LD_LIBRARY_PATH
11141   shlibpath_overrides_runpath=yes
11142   hardcode_into_libs=yes
11143   # ldd complains unless libraries are executable
11144   postinstall_cmds='chmod +x $lib'
11145   ;;
11146
11147 sunos4*)
11148   version_type=sunos
11149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11150   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11151   shlibpath_var=LD_LIBRARY_PATH
11152   shlibpath_overrides_runpath=yes
11153   if test "$with_gnu_ld" = yes; then
11154     need_lib_prefix=no
11155   fi
11156   need_version=yes
11157   ;;
11158
11159 sysv4 | sysv4.3*)
11160   version_type=linux # correct to gnu/linux during the next big refactor
11161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162   soname_spec='${libname}${release}${shared_ext}$major'
11163   shlibpath_var=LD_LIBRARY_PATH
11164   case $host_vendor in
11165     sni)
11166       shlibpath_overrides_runpath=no
11167       need_lib_prefix=no
11168       runpath_var=LD_RUN_PATH
11169       ;;
11170     siemens)
11171       need_lib_prefix=no
11172       ;;
11173     motorola)
11174       need_lib_prefix=no
11175       need_version=no
11176       shlibpath_overrides_runpath=no
11177       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11178       ;;
11179   esac
11180   ;;
11181
11182 sysv4*MP*)
11183   if test -d /usr/nec ;then
11184     version_type=linux # correct to gnu/linux during the next big refactor
11185     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11186     soname_spec='$libname${shared_ext}.$major'
11187     shlibpath_var=LD_LIBRARY_PATH
11188   fi
11189   ;;
11190
11191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11192   version_type=freebsd-elf
11193   need_lib_prefix=no
11194   need_version=no
11195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11196   soname_spec='${libname}${release}${shared_ext}$major'
11197   shlibpath_var=LD_LIBRARY_PATH
11198   shlibpath_overrides_runpath=yes
11199   hardcode_into_libs=yes
11200   if test "$with_gnu_ld" = yes; then
11201     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11202   else
11203     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11204     case $host_os in
11205       sco3.2v5*)
11206         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11207         ;;
11208     esac
11209   fi
11210   sys_lib_dlsearch_path_spec='/usr/lib'
11211   ;;
11212
11213 tpf*)
11214   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11215   version_type=linux # correct to gnu/linux during the next big refactor
11216   need_lib_prefix=no
11217   need_version=no
11218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219   shlibpath_var=LD_LIBRARY_PATH
11220   shlibpath_overrides_runpath=no
11221   hardcode_into_libs=yes
11222   ;;
11223
11224 uts4*)
11225   version_type=linux # correct to gnu/linux during the next big refactor
11226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227   soname_spec='${libname}${release}${shared_ext}$major'
11228   shlibpath_var=LD_LIBRARY_PATH
11229   ;;
11230
11231 *)
11232   dynamic_linker=no
11233   ;;
11234 esac
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11236 $as_echo "$dynamic_linker" >&6; }
11237 test "$dynamic_linker" = no && can_build_shared=no
11238
11239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11240 if test "$GCC" = yes; then
11241   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11242 fi
11243
11244 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11245   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11246 fi
11247 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11248   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11249 fi
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11343 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11344 hardcode_action=
11345 if test -n "$hardcode_libdir_flag_spec" ||
11346    test -n "$runpath_var" ||
11347    test "X$hardcode_automatic" = "Xyes" ; then
11348
11349   # We can hardcode non-existent directories.
11350   if test "$hardcode_direct" != no &&
11351      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11352      # have to relink, otherwise we might link with an installed library
11353      # when we should be linking with a yet-to-be-installed one
11354      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11355      test "$hardcode_minus_L" != no; then
11356     # Linking always hardcodes the temporary library directory.
11357     hardcode_action=relink
11358   else
11359     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11360     hardcode_action=immediate
11361   fi
11362 else
11363   # We cannot hardcode anything, or else we can only hardcode existing
11364   # directories.
11365   hardcode_action=unsupported
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11368 $as_echo "$hardcode_action" >&6; }
11369
11370 if test "$hardcode_action" = relink ||
11371    test "$inherit_rpath" = yes; then
11372   # Fast installation is not supported
11373   enable_fast_install=no
11374 elif test "$shlibpath_overrides_runpath" = yes ||
11375      test "$enable_shared" = no; then
11376   # Fast installation is not necessary
11377   enable_fast_install=needless
11378 fi
11379
11380
11381
11382
11383
11384
11385   if test "x$enable_dlopen" != xyes; then
11386   enable_dlopen=unknown
11387   enable_dlopen_self=unknown
11388   enable_dlopen_self_static=unknown
11389 else
11390   lt_cv_dlopen=no
11391   lt_cv_dlopen_libs=
11392
11393   case $host_os in
11394   beos*)
11395     lt_cv_dlopen="load_add_on"
11396     lt_cv_dlopen_libs=
11397     lt_cv_dlopen_self=yes
11398     ;;
11399
11400   mingw* | pw32* | cegcc*)
11401     lt_cv_dlopen="LoadLibrary"
11402     lt_cv_dlopen_libs=
11403     ;;
11404
11405   cygwin*)
11406     lt_cv_dlopen="dlopen"
11407     lt_cv_dlopen_libs=
11408     ;;
11409
11410   darwin*)
11411   # if libdl is installed we need to link against it
11412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11413 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11414 if ${ac_cv_lib_dl_dlopen+:} false; then :
11415   $as_echo_n "(cached) " >&6
11416 else
11417   ac_check_lib_save_LIBS=$LIBS
11418 LIBS="-ldl  $LIBS"
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h.  */
11421
11422 /* Override any GCC internal prototype to avoid an error.
11423    Use char because int might match the return type of a GCC
11424    builtin and then its argument prototype would still apply.  */
11425 #ifdef __cplusplus
11426 extern "C"
11427 #endif
11428 char dlopen ();
11429 int
11430 main ()
11431 {
11432 return dlopen ();
11433   ;
11434   return 0;
11435 }
11436 _ACEOF
11437 if ac_fn_c_try_link "$LINENO"; then :
11438   ac_cv_lib_dl_dlopen=yes
11439 else
11440   ac_cv_lib_dl_dlopen=no
11441 fi
11442 rm -f core conftest.err conftest.$ac_objext \
11443     conftest$ac_exeext conftest.$ac_ext
11444 LIBS=$ac_check_lib_save_LIBS
11445 fi
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11447 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11448 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11449   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11450 else
11451
11452     lt_cv_dlopen="dyld"
11453     lt_cv_dlopen_libs=
11454     lt_cv_dlopen_self=yes
11455
11456 fi
11457
11458     ;;
11459
11460   *)
11461     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11462 if test "x$ac_cv_func_shl_load" = xyes; then :
11463   lt_cv_dlopen="shl_load"
11464 else
11465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11466 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11467 if ${ac_cv_lib_dld_shl_load+:} false; then :
11468   $as_echo_n "(cached) " >&6
11469 else
11470   ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-ldld  $LIBS"
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h.  */
11474
11475 /* Override any GCC internal prototype to avoid an error.
11476    Use char because int might match the return type of a GCC
11477    builtin and then its argument prototype would still apply.  */
11478 #ifdef __cplusplus
11479 extern "C"
11480 #endif
11481 char shl_load ();
11482 int
11483 main ()
11484 {
11485 return shl_load ();
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491   ac_cv_lib_dld_shl_load=yes
11492 else
11493   ac_cv_lib_dld_shl_load=no
11494 fi
11495 rm -f core conftest.err conftest.$ac_objext \
11496     conftest$ac_exeext conftest.$ac_ext
11497 LIBS=$ac_check_lib_save_LIBS
11498 fi
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11500 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11501 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11502   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11503 else
11504   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11505 if test "x$ac_cv_func_dlopen" = xyes; then :
11506   lt_cv_dlopen="dlopen"
11507 else
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11509 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11510 if ${ac_cv_lib_dl_dlopen+:} false; then :
11511   $as_echo_n "(cached) " >&6
11512 else
11513   ac_check_lib_save_LIBS=$LIBS
11514 LIBS="-ldl  $LIBS"
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h.  */
11517
11518 /* Override any GCC internal prototype to avoid an error.
11519    Use char because int might match the return type of a GCC
11520    builtin and then its argument prototype would still apply.  */
11521 #ifdef __cplusplus
11522 extern "C"
11523 #endif
11524 char dlopen ();
11525 int
11526 main ()
11527 {
11528 return dlopen ();
11529   ;
11530   return 0;
11531 }
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"; then :
11534   ac_cv_lib_dl_dlopen=yes
11535 else
11536   ac_cv_lib_dl_dlopen=no
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext \
11539     conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11541 fi
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11543 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11544 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11545   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11546 else
11547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11548 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11549 if ${ac_cv_lib_svld_dlopen+:} false; then :
11550   $as_echo_n "(cached) " >&6
11551 else
11552   ac_check_lib_save_LIBS=$LIBS
11553 LIBS="-lsvld  $LIBS"
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h.  */
11556
11557 /* Override any GCC internal prototype to avoid an error.
11558    Use char because int might match the return type of a GCC
11559    builtin and then its argument prototype would still apply.  */
11560 #ifdef __cplusplus
11561 extern "C"
11562 #endif
11563 char dlopen ();
11564 int
11565 main ()
11566 {
11567 return dlopen ();
11568   ;
11569   return 0;
11570 }
11571 _ACEOF
11572 if ac_fn_c_try_link "$LINENO"; then :
11573   ac_cv_lib_svld_dlopen=yes
11574 else
11575   ac_cv_lib_svld_dlopen=no
11576 fi
11577 rm -f core conftest.err conftest.$ac_objext \
11578     conftest$ac_exeext conftest.$ac_ext
11579 LIBS=$ac_check_lib_save_LIBS
11580 fi
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11582 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11583 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11584   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11585 else
11586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11587 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11588 if ${ac_cv_lib_dld_dld_link+:} false; then :
11589   $as_echo_n "(cached) " >&6
11590 else
11591   ac_check_lib_save_LIBS=$LIBS
11592 LIBS="-ldld  $LIBS"
11593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594 /* end confdefs.h.  */
11595
11596 /* Override any GCC internal prototype to avoid an error.
11597    Use char because int might match the return type of a GCC
11598    builtin and then its argument prototype would still apply.  */
11599 #ifdef __cplusplus
11600 extern "C"
11601 #endif
11602 char dld_link ();
11603 int
11604 main ()
11605 {
11606 return dld_link ();
11607   ;
11608   return 0;
11609 }
11610 _ACEOF
11611 if ac_fn_c_try_link "$LINENO"; then :
11612   ac_cv_lib_dld_dld_link=yes
11613 else
11614   ac_cv_lib_dld_dld_link=no
11615 fi
11616 rm -f core conftest.err conftest.$ac_objext \
11617     conftest$ac_exeext conftest.$ac_ext
11618 LIBS=$ac_check_lib_save_LIBS
11619 fi
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11621 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11622 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11623   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11624 fi
11625
11626
11627 fi
11628
11629
11630 fi
11631
11632
11633 fi
11634
11635
11636 fi
11637
11638
11639 fi
11640
11641     ;;
11642   esac
11643
11644   if test "x$lt_cv_dlopen" != xno; then
11645     enable_dlopen=yes
11646   else
11647     enable_dlopen=no
11648   fi
11649
11650   case $lt_cv_dlopen in
11651   dlopen)
11652     save_CPPFLAGS="$CPPFLAGS"
11653     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11654
11655     save_LDFLAGS="$LDFLAGS"
11656     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11657
11658     save_LIBS="$LIBS"
11659     LIBS="$lt_cv_dlopen_libs $LIBS"
11660
11661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11662 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11663 if ${lt_cv_dlopen_self+:} false; then :
11664   $as_echo_n "(cached) " >&6
11665 else
11666           if test "$cross_compiling" = yes; then :
11667   lt_cv_dlopen_self=cross
11668 else
11669   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11670   lt_status=$lt_dlunknown
11671   cat > conftest.$ac_ext <<_LT_EOF
11672 #line $LINENO "configure"
11673 #include "confdefs.h"
11674
11675 #if HAVE_DLFCN_H
11676 #include <dlfcn.h>
11677 #endif
11678
11679 #include <stdio.h>
11680
11681 #ifdef RTLD_GLOBAL
11682 #  define LT_DLGLOBAL           RTLD_GLOBAL
11683 #else
11684 #  ifdef DL_GLOBAL
11685 #    define LT_DLGLOBAL         DL_GLOBAL
11686 #  else
11687 #    define LT_DLGLOBAL         0
11688 #  endif
11689 #endif
11690
11691 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11692    find out it does not work in some platform. */
11693 #ifndef LT_DLLAZY_OR_NOW
11694 #  ifdef RTLD_LAZY
11695 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11696 #  else
11697 #    ifdef DL_LAZY
11698 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11699 #    else
11700 #      ifdef RTLD_NOW
11701 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11702 #      else
11703 #        ifdef DL_NOW
11704 #          define LT_DLLAZY_OR_NOW      DL_NOW
11705 #        else
11706 #          define LT_DLLAZY_OR_NOW      0
11707 #        endif
11708 #      endif
11709 #    endif
11710 #  endif
11711 #endif
11712
11713 /* When -fvisbility=hidden is used, assume the code has been annotated
11714    correspondingly for the symbols needed.  */
11715 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11716 int fnord () __attribute__((visibility("default")));
11717 #endif
11718
11719 int fnord () { return 42; }
11720 int main ()
11721 {
11722   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11723   int status = $lt_dlunknown;
11724
11725   if (self)
11726     {
11727       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11728       else
11729         {
11730           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11731           else puts (dlerror ());
11732         }
11733       /* dlclose (self); */
11734     }
11735   else
11736     puts (dlerror ());
11737
11738   return status;
11739 }
11740 _LT_EOF
11741   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11742   (eval $ac_link) 2>&5
11743   ac_status=$?
11744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11745   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11746     (./conftest; exit; ) >&5 2>/dev/null
11747     lt_status=$?
11748     case x$lt_status in
11749       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11750       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11751       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11752     esac
11753   else :
11754     # compilation failed
11755     lt_cv_dlopen_self=no
11756   fi
11757 fi
11758 rm -fr conftest*
11759
11760
11761 fi
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11763 $as_echo "$lt_cv_dlopen_self" >&6; }
11764
11765     if test "x$lt_cv_dlopen_self" = xyes; then
11766       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11767       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11768 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11769 if ${lt_cv_dlopen_self_static+:} false; then :
11770   $as_echo_n "(cached) " >&6
11771 else
11772           if test "$cross_compiling" = yes; then :
11773   lt_cv_dlopen_self_static=cross
11774 else
11775   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11776   lt_status=$lt_dlunknown
11777   cat > conftest.$ac_ext <<_LT_EOF
11778 #line $LINENO "configure"
11779 #include "confdefs.h"
11780
11781 #if HAVE_DLFCN_H
11782 #include <dlfcn.h>
11783 #endif
11784
11785 #include <stdio.h>
11786
11787 #ifdef RTLD_GLOBAL
11788 #  define LT_DLGLOBAL           RTLD_GLOBAL
11789 #else
11790 #  ifdef DL_GLOBAL
11791 #    define LT_DLGLOBAL         DL_GLOBAL
11792 #  else
11793 #    define LT_DLGLOBAL         0
11794 #  endif
11795 #endif
11796
11797 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11798    find out it does not work in some platform. */
11799 #ifndef LT_DLLAZY_OR_NOW
11800 #  ifdef RTLD_LAZY
11801 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11802 #  else
11803 #    ifdef DL_LAZY
11804 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11805 #    else
11806 #      ifdef RTLD_NOW
11807 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11808 #      else
11809 #        ifdef DL_NOW
11810 #          define LT_DLLAZY_OR_NOW      DL_NOW
11811 #        else
11812 #          define LT_DLLAZY_OR_NOW      0
11813 #        endif
11814 #      endif
11815 #    endif
11816 #  endif
11817 #endif
11818
11819 /* When -fvisbility=hidden is used, assume the code has been annotated
11820    correspondingly for the symbols needed.  */
11821 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11822 int fnord () __attribute__((visibility("default")));
11823 #endif
11824
11825 int fnord () { return 42; }
11826 int main ()
11827 {
11828   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11829   int status = $lt_dlunknown;
11830
11831   if (self)
11832     {
11833       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11834       else
11835         {
11836           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11837           else puts (dlerror ());
11838         }
11839       /* dlclose (self); */
11840     }
11841   else
11842     puts (dlerror ());
11843
11844   return status;
11845 }
11846 _LT_EOF
11847   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11848   (eval $ac_link) 2>&5
11849   ac_status=$?
11850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11851   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11852     (./conftest; exit; ) >&5 2>/dev/null
11853     lt_status=$?
11854     case x$lt_status in
11855       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11856       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11857       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11858     esac
11859   else :
11860     # compilation failed
11861     lt_cv_dlopen_self_static=no
11862   fi
11863 fi
11864 rm -fr conftest*
11865
11866
11867 fi
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11869 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11870     fi
11871
11872     CPPFLAGS="$save_CPPFLAGS"
11873     LDFLAGS="$save_LDFLAGS"
11874     LIBS="$save_LIBS"
11875     ;;
11876   esac
11877
11878   case $lt_cv_dlopen_self in
11879   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11880   *) enable_dlopen_self=unknown ;;
11881   esac
11882
11883   case $lt_cv_dlopen_self_static in
11884   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11885   *) enable_dlopen_self_static=unknown ;;
11886   esac
11887 fi
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905 striplib=
11906 old_striplib=
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11908 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11909 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11910   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11911   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11913 $as_echo "yes" >&6; }
11914 else
11915 # FIXME - insert some real tests, host_os isn't really good enough
11916   case $host_os in
11917   darwin*)
11918     if test -n "$STRIP" ; then
11919       striplib="$STRIP -x"
11920       old_striplib="$STRIP -S"
11921       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11922 $as_echo "yes" >&6; }
11923     else
11924       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11926     fi
11927     ;;
11928   *)
11929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11931     ;;
11932   esac
11933 fi
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946   # Report which library types will actually be built
11947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11948 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11950 $as_echo "$can_build_shared" >&6; }
11951
11952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11953 $as_echo_n "checking whether to build shared libraries... " >&6; }
11954   test "$can_build_shared" = "no" && enable_shared=no
11955
11956   # On AIX, shared libraries and static libraries use the same namespace, and
11957   # are all built from PIC.
11958   case $host_os in
11959   aix3*)
11960     test "$enable_shared" = yes && enable_static=no
11961     if test -n "$RANLIB"; then
11962       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11963       postinstall_cmds='$RANLIB $lib'
11964     fi
11965     ;;
11966
11967   aix[4-9]*)
11968     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11969       test "$enable_shared" = yes && enable_static=no
11970     fi
11971     ;;
11972   esac
11973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11974 $as_echo "$enable_shared" >&6; }
11975
11976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11977 $as_echo_n "checking whether to build static libraries... " >&6; }
11978   # Make sure either enable_shared or enable_static is yes.
11979   test "$enable_shared" = yes || enable_static=yes
11980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11981 $as_echo "$enable_static" >&6; }
11982
11983
11984
11985
11986 fi
11987 ac_ext=c
11988 ac_cpp='$CPP $CPPFLAGS'
11989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11992
11993 CC="$lt_save_CC"
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009         ac_config_commands="$ac_config_commands libtool"
12010
12011
12012
12013
12014 # Only expand once:
12015
12016
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12018 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12019 set x ${MAKE-make}
12020 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12021 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12022   $as_echo_n "(cached) " >&6
12023 else
12024   cat >conftest.make <<\_ACEOF
12025 SHELL = /bin/sh
12026 all:
12027         @echo '@@@%%%=$(MAKE)=@@@%%%'
12028 _ACEOF
12029 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12030 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12031   *@@@%%%=?*=@@@%%%*)
12032     eval ac_cv_prog_make_${ac_make}_set=yes;;
12033   *)
12034     eval ac_cv_prog_make_${ac_make}_set=no;;
12035 esac
12036 rm -f conftest.make
12037 fi
12038 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12040 $as_echo "yes" >&6; }
12041   SET_MAKE=
12042 else
12043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044 $as_echo "no" >&6; }
12045   SET_MAKE="MAKE=${MAKE-make}"
12046 fi
12047
12048
12049
12050
12051
12052
12053
12054 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12055         if test -n "$ac_tool_prefix"; then
12056   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12057 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12059 $as_echo_n "checking for $ac_word... " >&6; }
12060 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12061   $as_echo_n "(cached) " >&6
12062 else
12063   case $PKG_CONFIG in
12064   [\\/]* | ?:[\\/]*)
12065   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12066   ;;
12067   *)
12068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12070 do
12071   IFS=$as_save_IFS
12072   test -z "$as_dir" && as_dir=.
12073     for ac_exec_ext in '' $ac_executable_extensions; do
12074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12075     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077     break 2
12078   fi
12079 done
12080   done
12081 IFS=$as_save_IFS
12082
12083   ;;
12084 esac
12085 fi
12086 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12087 if test -n "$PKG_CONFIG"; then
12088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12089 $as_echo "$PKG_CONFIG" >&6; }
12090 else
12091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092 $as_echo "no" >&6; }
12093 fi
12094
12095
12096 fi
12097 if test -z "$ac_cv_path_PKG_CONFIG"; then
12098   ac_pt_PKG_CONFIG=$PKG_CONFIG
12099   # Extract the first word of "pkg-config", so it can be a program name with args.
12100 set dummy pkg-config; ac_word=$2
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12102 $as_echo_n "checking for $ac_word... " >&6; }
12103 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12104   $as_echo_n "(cached) " >&6
12105 else
12106   case $ac_pt_PKG_CONFIG in
12107   [\\/]* | ?:[\\/]*)
12108   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12109   ;;
12110   *)
12111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12112 for as_dir in $PATH
12113 do
12114   IFS=$as_save_IFS
12115   test -z "$as_dir" && as_dir=.
12116     for ac_exec_ext in '' $ac_executable_extensions; do
12117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12118     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12120     break 2
12121   fi
12122 done
12123   done
12124 IFS=$as_save_IFS
12125
12126   ;;
12127 esac
12128 fi
12129 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12130 if test -n "$ac_pt_PKG_CONFIG"; then
12131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12132 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12133 else
12134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135 $as_echo "no" >&6; }
12136 fi
12137
12138   if test "x$ac_pt_PKG_CONFIG" = x; then
12139     PKG_CONFIG=""
12140   else
12141     case $cross_compiling:$ac_tool_warned in
12142 yes:)
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12145 ac_tool_warned=yes ;;
12146 esac
12147     PKG_CONFIG=$ac_pt_PKG_CONFIG
12148   fi
12149 else
12150   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12151 fi
12152
12153 fi
12154 if test -n "$PKG_CONFIG"; then
12155         _pkg_min_version=0.9.0
12156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12157 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12158         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12159                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12160 $as_echo "yes" >&6; }
12161         else
12162                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12164                 PKG_CONFIG=""
12165         fi
12166 fi
12167
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
12169 $as_echo_n "checking for RM macro... " >&6; }
12170 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
12171 if test "x$_predefined_rm" = "x"; then
12172         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
12173 $as_echo "no predefined RM" >&6; }
12174         # Extract the first word of "rm", so it can be a program name with args.
12175 set dummy rm; ac_word=$2
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12177 $as_echo_n "checking for $ac_word... " >&6; }
12178 if ${ac_cv_prog_RM+:} false; then :
12179   $as_echo_n "(cached) " >&6
12180 else
12181   if test -n "$RM"; then
12182   ac_cv_prog_RM="$RM" # Let the user override the test.
12183 else
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12186 do
12187   IFS=$as_save_IFS
12188   test -z "$as_dir" && as_dir=.
12189     for ac_exec_ext in '' $ac_executable_extensions; do
12190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12191     ac_cv_prog_RM="rm -f"
12192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193     break 2
12194   fi
12195 done
12196   done
12197 IFS=$as_save_IFS
12198
12199 fi
12200 fi
12201 RM=$ac_cv_prog_RM
12202 if test -n "$RM"; then
12203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
12204 $as_echo "$RM" >&6; }
12205 else
12206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207 $as_echo "no" >&6; }
12208 fi
12209
12210
12211 else
12212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
12213 $as_echo "$_predefined_rm" >&6; }
12214 fi
12215
12216
12217 case "$host" in
12218   *-*-mingw*)
12219     os_win32=yes
12220     ;;
12221   *)
12222     os_win32=no
12223 esac
12224  if test "$os_win32" = "yes"; then
12225   OS_WIN32_TRUE=
12226   OS_WIN32_FALSE='#'
12227 else
12228   OS_WIN32_TRUE='#'
12229   OS_WIN32_FALSE=
12230 fi
12231
12232
12233 if test "$os_win32" = "yes"; then
12234   # Extract the first word of "lib.exe", so it can be a program name with args.
12235 set dummy lib.exe; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if ${ac_cv_prog_ms_librarian+:} false; then :
12239   $as_echo_n "(cached) " >&6
12240 else
12241   if test -n "$ms_librarian"; then
12242   ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
12243 else
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12246 do
12247   IFS=$as_save_IFS
12248   test -z "$as_dir" && as_dir=.
12249     for ac_exec_ext in '' $ac_executable_extensions; do
12250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12251     ac_cv_prog_ms_librarian="yes"
12252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253     break 2
12254   fi
12255 done
12256   done
12257 IFS=$as_save_IFS
12258
12259   test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
12260 fi
12261 fi
12262 ms_librarian=$ac_cv_prog_ms_librarian
12263 if test -n "$ms_librarian"; then
12264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
12265 $as_echo "$ms_librarian" >&6; }
12266 else
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12269 fi
12270
12271
12272 fi
12273  if test x$ms_librarian = xyes; then
12274   MS_LIB_AVAILABLE_TRUE=
12275   MS_LIB_AVAILABLE_FALSE='#'
12276 else
12277   MS_LIB_AVAILABLE_TRUE='#'
12278   MS_LIB_AVAILABLE_FALSE=
12279 fi
12280
12281
12282 WARN_CFLAGS=""
12283 if test "x$GCC" = "xyes"; then
12284         WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
12285         -Wmissing-prototypes -Wmissing-declarations \
12286         -Wnested-externs -fno-strict-aliasing"
12287
12288 cat >>confdefs.h <<_ACEOF
12289 #define HAVE_WARNING_CPP_DIRECTIVE 1
12290 _ACEOF
12291
12292 fi
12293
12294
12295
12296
12297  if test $cross_compiling = yes; then
12298   CROSS_COMPILING_TRUE=
12299   CROSS_COMPILING_FALSE='#'
12300 else
12301   CROSS_COMPILING_TRUE='#'
12302   CROSS_COMPILING_FALSE=
12303 fi
12304
12305  if test "$enable_shared" = "yes"; then
12306   ENABLE_SHARED_TRUE=
12307   ENABLE_SHARED_FALSE='#'
12308 else
12309   ENABLE_SHARED_TRUE='#'
12310   ENABLE_SHARED_FALSE=
12311 fi
12312
12313
12314
12315
12316 # Check whether --with-arch was given.
12317 if test "${with_arch+set}" = set; then :
12318   withval=$with_arch; arch="$withval"
12319 else
12320   arch=auto
12321 fi
12322
12323
12324 if test "x$arch" != xauto; then
12325
12326 cat >>confdefs.h <<_ACEOF
12327 #define FC_ARCHITECTURE "$arch"
12328 _ACEOF
12329
12330 fi
12331
12332
12333
12334 # Checks for header files.
12335 ac_header_dirent=no
12336 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12337   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12339 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12340 if eval \${$as_ac_Header+:} false; then :
12341   $as_echo_n "(cached) " >&6
12342 else
12343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h.  */
12345 #include <sys/types.h>
12346 #include <$ac_hdr>
12347
12348 int
12349 main ()
12350 {
12351 if ((DIR *) 0)
12352 return 0;
12353   ;
12354   return 0;
12355 }
12356 _ACEOF
12357 if ac_fn_c_try_compile "$LINENO"; then :
12358   eval "$as_ac_Header=yes"
12359 else
12360   eval "$as_ac_Header=no"
12361 fi
12362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363 fi
12364 eval ac_res=\$$as_ac_Header
12365                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12366 $as_echo "$ac_res" >&6; }
12367 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12368   cat >>confdefs.h <<_ACEOF
12369 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12370 _ACEOF
12371
12372 ac_header_dirent=$ac_hdr; break
12373 fi
12374
12375 done
12376 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12377 if test $ac_header_dirent = dirent.h; then
12378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12379 $as_echo_n "checking for library containing opendir... " >&6; }
12380 if ${ac_cv_search_opendir+:} false; then :
12381   $as_echo_n "(cached) " >&6
12382 else
12383   ac_func_search_save_LIBS=$LIBS
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h.  */
12386
12387 /* Override any GCC internal prototype to avoid an error.
12388    Use char because int might match the return type of a GCC
12389    builtin and then its argument prototype would still apply.  */
12390 #ifdef __cplusplus
12391 extern "C"
12392 #endif
12393 char opendir ();
12394 int
12395 main ()
12396 {
12397 return opendir ();
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 for ac_lib in '' dir; do
12403   if test -z "$ac_lib"; then
12404     ac_res="none required"
12405   else
12406     ac_res=-l$ac_lib
12407     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12408   fi
12409   if ac_fn_c_try_link "$LINENO"; then :
12410   ac_cv_search_opendir=$ac_res
12411 fi
12412 rm -f core conftest.err conftest.$ac_objext \
12413     conftest$ac_exeext
12414   if ${ac_cv_search_opendir+:} false; then :
12415   break
12416 fi
12417 done
12418 if ${ac_cv_search_opendir+:} false; then :
12419
12420 else
12421   ac_cv_search_opendir=no
12422 fi
12423 rm conftest.$ac_ext
12424 LIBS=$ac_func_search_save_LIBS
12425 fi
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12427 $as_echo "$ac_cv_search_opendir" >&6; }
12428 ac_res=$ac_cv_search_opendir
12429 if test "$ac_res" != no; then :
12430   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12431
12432 fi
12433
12434 else
12435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12436 $as_echo_n "checking for library containing opendir... " >&6; }
12437 if ${ac_cv_search_opendir+:} false; then :
12438   $as_echo_n "(cached) " >&6
12439 else
12440   ac_func_search_save_LIBS=$LIBS
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h.  */
12443
12444 /* Override any GCC internal prototype to avoid an error.
12445    Use char because int might match the return type of a GCC
12446    builtin and then its argument prototype would still apply.  */
12447 #ifdef __cplusplus
12448 extern "C"
12449 #endif
12450 char opendir ();
12451 int
12452 main ()
12453 {
12454 return opendir ();
12455   ;
12456   return 0;
12457 }
12458 _ACEOF
12459 for ac_lib in '' x; do
12460   if test -z "$ac_lib"; then
12461     ac_res="none required"
12462   else
12463     ac_res=-l$ac_lib
12464     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12465   fi
12466   if ac_fn_c_try_link "$LINENO"; then :
12467   ac_cv_search_opendir=$ac_res
12468 fi
12469 rm -f core conftest.err conftest.$ac_objext \
12470     conftest$ac_exeext
12471   if ${ac_cv_search_opendir+:} false; then :
12472   break
12473 fi
12474 done
12475 if ${ac_cv_search_opendir+:} false; then :
12476
12477 else
12478   ac_cv_search_opendir=no
12479 fi
12480 rm conftest.$ac_ext
12481 LIBS=$ac_func_search_save_LIBS
12482 fi
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12484 $as_echo "$ac_cv_search_opendir" >&6; }
12485 ac_res=$ac_cv_search_opendir
12486 if test "$ac_res" != no; then :
12487   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12488
12489 fi
12490
12491 fi
12492
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12494 $as_echo_n "checking for ANSI C header files... " >&6; }
12495 if ${ac_cv_header_stdc+:} false; then :
12496   $as_echo_n "(cached) " >&6
12497 else
12498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h.  */
12500 #include <stdlib.h>
12501 #include <stdarg.h>
12502 #include <string.h>
12503 #include <float.h>
12504
12505 int
12506 main ()
12507 {
12508
12509   ;
12510   return 0;
12511 }
12512 _ACEOF
12513 if ac_fn_c_try_compile "$LINENO"; then :
12514   ac_cv_header_stdc=yes
12515 else
12516   ac_cv_header_stdc=no
12517 fi
12518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12519
12520 if test $ac_cv_header_stdc = yes; then
12521   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h.  */
12524 #include <string.h>
12525
12526 _ACEOF
12527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12528   $EGREP "memchr" >/dev/null 2>&1; then :
12529
12530 else
12531   ac_cv_header_stdc=no
12532 fi
12533 rm -f conftest*
12534
12535 fi
12536
12537 if test $ac_cv_header_stdc = yes; then
12538   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h.  */
12541 #include <stdlib.h>
12542
12543 _ACEOF
12544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12545   $EGREP "free" >/dev/null 2>&1; then :
12546
12547 else
12548   ac_cv_header_stdc=no
12549 fi
12550 rm -f conftest*
12551
12552 fi
12553
12554 if test $ac_cv_header_stdc = yes; then
12555   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12556   if test "$cross_compiling" = yes; then :
12557   :
12558 else
12559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h.  */
12561 #include <ctype.h>
12562 #include <stdlib.h>
12563 #if ((' ' & 0x0FF) == 0x020)
12564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12566 #else
12567 # define ISLOWER(c) \
12568                    (('a' <= (c) && (c) <= 'i') \
12569                      || ('j' <= (c) && (c) <= 'r') \
12570                      || ('s' <= (c) && (c) <= 'z'))
12571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12572 #endif
12573
12574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12575 int
12576 main ()
12577 {
12578   int i;
12579   for (i = 0; i < 256; i++)
12580     if (XOR (islower (i), ISLOWER (i))
12581         || toupper (i) != TOUPPER (i))
12582       return 2;
12583   return 0;
12584 }
12585 _ACEOF
12586 if ac_fn_c_try_run "$LINENO"; then :
12587
12588 else
12589   ac_cv_header_stdc=no
12590 fi
12591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12592   conftest.$ac_objext conftest.beam conftest.$ac_ext
12593 fi
12594
12595 fi
12596 fi
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12598 $as_echo "$ac_cv_header_stdc" >&6; }
12599 if test $ac_cv_header_stdc = yes; then
12600
12601 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12602
12603 fi
12604
12605 for ac_header in fcntl.h regex.h stdlib.h string.h unistd.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h
12606 do :
12607   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12608 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12610   cat >>confdefs.h <<_ACEOF
12611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12612 _ACEOF
12613
12614 fi
12615
12616 done
12617
12618
12619 # Checks for typedefs, structures, and compiler characteristics.
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12621 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12622 if ${ac_cv_c_const+:} false; then :
12623   $as_echo_n "(cached) " >&6
12624 else
12625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h.  */
12627
12628 int
12629 main ()
12630 {
12631 /* FIXME: Include the comments suggested by Paul. */
12632 #ifndef __cplusplus
12633   /* Ultrix mips cc rejects this.  */
12634   typedef int charset[2];
12635   const charset cs;
12636   /* SunOS 4.1.1 cc rejects this.  */
12637   char const *const *pcpcc;
12638   char **ppc;
12639   /* NEC SVR4.0.2 mips cc rejects this.  */
12640   struct point {int x, y;};
12641   static struct point const zero = {0,0};
12642   /* AIX XL C 1.02.0.0 rejects this.
12643      It does not let you subtract one const X* pointer from another in
12644      an arm of an if-expression whose if-part is not a constant
12645      expression */
12646   const char *g = "string";
12647   pcpcc = &g + (g ? g-g : 0);
12648   /* HPUX 7.0 cc rejects these. */
12649   ++pcpcc;
12650   ppc = (char**) pcpcc;
12651   pcpcc = (char const *const *) ppc;
12652   { /* SCO 3.2v4 cc rejects this.  */
12653     char *t;
12654     char const *s = 0 ? (char *) 0 : (char const *) 0;
12655
12656     *t++ = 0;
12657     if (s) return 0;
12658   }
12659   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12660     int x[] = {25, 17};
12661     const int *foo = &x[0];
12662     ++foo;
12663   }
12664   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12665     typedef const int *iptr;
12666     iptr p = 0;
12667     ++p;
12668   }
12669   { /* AIX XL C 1.02.0.0 rejects this saying
12670        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12671     struct s { int j; const int *ap[3]; };
12672     struct s *b; b->j = 5;
12673   }
12674   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12675     const int foo = 10;
12676     if (!foo) return 0;
12677   }
12678   return !cs[0] && !zero.x;
12679 #endif
12680
12681   ;
12682   return 0;
12683 }
12684 _ACEOF
12685 if ac_fn_c_try_compile "$LINENO"; then :
12686   ac_cv_c_const=yes
12687 else
12688   ac_cv_c_const=no
12689 fi
12690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691 fi
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12693 $as_echo "$ac_cv_c_const" >&6; }
12694 if test $ac_cv_c_const = no; then
12695
12696 $as_echo "#define const /**/" >>confdefs.h
12697
12698 fi
12699
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12701 $as_echo_n "checking for inline... " >&6; }
12702 if ${ac_cv_c_inline+:} false; then :
12703   $as_echo_n "(cached) " >&6
12704 else
12705   ac_cv_c_inline=no
12706 for ac_kw in inline __inline__ __inline; do
12707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12708 /* end confdefs.h.  */
12709 #ifndef __cplusplus
12710 typedef int foo_t;
12711 static $ac_kw foo_t static_foo () {return 0; }
12712 $ac_kw foo_t foo () {return 0; }
12713 #endif
12714
12715 _ACEOF
12716 if ac_fn_c_try_compile "$LINENO"; then :
12717   ac_cv_c_inline=$ac_kw
12718 fi
12719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12720   test "$ac_cv_c_inline" != no && break
12721 done
12722
12723 fi
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12725 $as_echo "$ac_cv_c_inline" >&6; }
12726
12727 case $ac_cv_c_inline in
12728   inline | yes) ;;
12729   *)
12730     case $ac_cv_c_inline in
12731       no) ac_val=;;
12732       *) ac_val=$ac_cv_c_inline;;
12733     esac
12734     cat >>confdefs.h <<_ACEOF
12735 #ifndef __cplusplus
12736 #define inline $ac_val
12737 #endif
12738 _ACEOF
12739     ;;
12740 esac
12741
12742
12743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
12744 $as_echo_n "checking for flexible array members... " >&6; }
12745 if ${ac_cv_c_flexmember+:} false; then :
12746   $as_echo_n "(cached) " >&6
12747 else
12748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h.  */
12750 #include <stdlib.h>
12751             #include <stdio.h>
12752             #include <stddef.h>
12753             struct s { int n; double d[]; };
12754 int
12755 main ()
12756 {
12757 int m = getchar ();
12758             struct s *p = malloc (offsetof (struct s, d)
12759                                   + m * sizeof (double));
12760             p->d[0] = 0.0;
12761             return p->d != (double *) NULL;
12762   ;
12763   return 0;
12764 }
12765 _ACEOF
12766 if ac_fn_c_try_compile "$LINENO"; then :
12767   ac_cv_c_flexmember=yes
12768 else
12769   ac_cv_c_flexmember=no
12770 fi
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 fi
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
12774 $as_echo "$ac_cv_c_flexmember" >&6; }
12775   if test $ac_cv_c_flexmember = yes; then
12776
12777 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
12778
12779   else
12780     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
12781
12782   fi
12783
12784 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12785 if test "x$ac_cv_type_pid_t" = xyes; then :
12786
12787 else
12788
12789 cat >>confdefs.h <<_ACEOF
12790 #define pid_t int
12791 _ACEOF
12792
12793 fi
12794
12795
12796 # Checks for library functions.
12797 for ac_func in vprintf
12798 do :
12799   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12800 if test "x$ac_cv_func_vprintf" = xyes; then :
12801   cat >>confdefs.h <<_ACEOF
12802 #define HAVE_VPRINTF 1
12803 _ACEOF
12804
12805 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12806 if test "x$ac_cv_func__doprnt" = xyes; then :
12807
12808 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12809
12810 fi
12811
12812 fi
12813 done
12814
12815
12816
12817
12818
12819   for ac_header in $ac_header_list
12820 do :
12821   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12822 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12823 "
12824 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12825   cat >>confdefs.h <<_ACEOF
12826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12827 _ACEOF
12828
12829 fi
12830
12831 done
12832
12833
12834
12835
12836
12837
12838
12839
12840 for ac_func in getpagesize
12841 do :
12842   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12843 if test "x$ac_cv_func_getpagesize" = xyes; then :
12844   cat >>confdefs.h <<_ACEOF
12845 #define HAVE_GETPAGESIZE 1
12846 _ACEOF
12847
12848 fi
12849 done
12850
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12852 $as_echo_n "checking for working mmap... " >&6; }
12853 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12854   $as_echo_n "(cached) " >&6
12855 else
12856   if test "$cross_compiling" = yes; then :
12857   ac_cv_func_mmap_fixed_mapped=no
12858 else
12859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h.  */
12861 $ac_includes_default
12862 /* malloc might have been renamed as rpl_malloc. */
12863 #undef malloc
12864
12865 /* Thanks to Mike Haertel and Jim Avera for this test.
12866    Here is a matrix of mmap possibilities:
12867         mmap private not fixed
12868         mmap private fixed at somewhere currently unmapped
12869         mmap private fixed at somewhere already mapped
12870         mmap shared not fixed
12871         mmap shared fixed at somewhere currently unmapped
12872         mmap shared fixed at somewhere already mapped
12873    For private mappings, we should verify that changes cannot be read()
12874    back from the file, nor mmap's back from the file at a different
12875    address.  (There have been systems where private was not correctly
12876    implemented like the infamous i386 svr4.0, and systems where the
12877    VM page cache was not coherent with the file system buffer cache
12878    like early versions of FreeBSD and possibly contemporary NetBSD.)
12879    For shared mappings, we should conversely verify that changes get
12880    propagated back to all the places they're supposed to be.
12881
12882    Grep wants private fixed already mapped.
12883    The main things grep needs to know about mmap are:
12884    * does it exist and is it safe to write into the mmap'd area
12885    * how to use it (BSD variants)  */
12886
12887 #include <fcntl.h>
12888 #include <sys/mman.h>
12889
12890 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12891 char *malloc ();
12892 #endif
12893
12894 /* This mess was copied from the GNU getpagesize.h.  */
12895 #ifndef HAVE_GETPAGESIZE
12896 # ifdef _SC_PAGESIZE
12897 #  define getpagesize() sysconf(_SC_PAGESIZE)
12898 # else /* no _SC_PAGESIZE */
12899 #  ifdef HAVE_SYS_PARAM_H
12900 #   include <sys/param.h>
12901 #   ifdef EXEC_PAGESIZE
12902 #    define getpagesize() EXEC_PAGESIZE
12903 #   else /* no EXEC_PAGESIZE */
12904 #    ifdef NBPG
12905 #     define getpagesize() NBPG * CLSIZE
12906 #     ifndef CLSIZE
12907 #      define CLSIZE 1
12908 #     endif /* no CLSIZE */
12909 #    else /* no NBPG */
12910 #     ifdef NBPC
12911 #      define getpagesize() NBPC
12912 #     else /* no NBPC */
12913 #      ifdef PAGESIZE
12914 #       define getpagesize() PAGESIZE
12915 #      endif /* PAGESIZE */
12916 #     endif /* no NBPC */
12917 #    endif /* no NBPG */
12918 #   endif /* no EXEC_PAGESIZE */
12919 #  else /* no HAVE_SYS_PARAM_H */
12920 #   define getpagesize() 8192   /* punt totally */
12921 #  endif /* no HAVE_SYS_PARAM_H */
12922 # endif /* no _SC_PAGESIZE */
12923
12924 #endif /* no HAVE_GETPAGESIZE */
12925
12926 int
12927 main ()
12928 {
12929   char *data, *data2, *data3;
12930   const char *cdata2;
12931   int i, pagesize;
12932   int fd, fd2;
12933
12934   pagesize = getpagesize ();
12935
12936   /* First, make a file with some known garbage in it. */
12937   data = (char *) malloc (pagesize);
12938   if (!data)
12939     return 1;
12940   for (i = 0; i < pagesize; ++i)
12941     *(data + i) = rand ();
12942   umask (0);
12943   fd = creat ("conftest.mmap", 0600);
12944   if (fd < 0)
12945     return 2;
12946   if (write (fd, data, pagesize) != pagesize)
12947     return 3;
12948   close (fd);
12949
12950   /* Next, check that the tail of a page is zero-filled.  File must have
12951      non-zero length, otherwise we risk SIGBUS for entire page.  */
12952   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12953   if (fd2 < 0)
12954     return 4;
12955   cdata2 = "";
12956   if (write (fd2, cdata2, 1) != 1)
12957     return 5;
12958   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12959   if (data2 == MAP_FAILED)
12960     return 6;
12961   for (i = 0; i < pagesize; ++i)
12962     if (*(data2 + i))
12963       return 7;
12964   close (fd2);
12965   if (munmap (data2, pagesize))
12966     return 8;
12967
12968   /* Next, try to mmap the file at a fixed address which already has
12969      something else allocated at it.  If we can, also make sure that
12970      we see the same garbage.  */
12971   fd = open ("conftest.mmap", O_RDWR);
12972   if (fd < 0)
12973     return 9;
12974   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12975                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12976     return 10;
12977   for (i = 0; i < pagesize; ++i)
12978     if (*(data + i) != *(data2 + i))
12979       return 11;
12980
12981   /* Finally, make sure that changes to the mapped area do not
12982      percolate back to the file as seen by read().  (This is a bug on
12983      some variants of i386 svr4.0.)  */
12984   for (i = 0; i < pagesize; ++i)
12985     *(data2 + i) = *(data2 + i) + 1;
12986   data3 = (char *) malloc (pagesize);
12987   if (!data3)
12988     return 12;
12989   if (read (fd, data3, pagesize) != pagesize)
12990     return 13;
12991   for (i = 0; i < pagesize; ++i)
12992     if (*(data + i) != *(data3 + i))
12993       return 14;
12994   close (fd);
12995   return 0;
12996 }
12997 _ACEOF
12998 if ac_fn_c_try_run "$LINENO"; then :
12999   ac_cv_func_mmap_fixed_mapped=yes
13000 else
13001   ac_cv_func_mmap_fixed_mapped=no
13002 fi
13003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13004   conftest.$ac_objext conftest.beam conftest.$ac_ext
13005 fi
13006
13007 fi
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13009 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13010 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13011
13012 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13013
13014 fi
13015 rm -f conftest.mmap conftest.txt
13016
13017 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 regcomp regerror regexec regfree fstatvfs fstatfs
13018 do :
13019   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13020 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13021 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13022   cat >>confdefs.h <<_ACEOF
13023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13024 _ACEOF
13025
13026 fi
13027 done
13028
13029
13030 fc_saved_CFLAGS="$CFLAGS"
13031 CFLAGS="$CFLAGS $WARN_CFLAGS -Werror"
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5
13033 $as_echo_n "checking for posix_fadvise... " >&6; }
13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h.  */
13036
13037         #include <fcntl.h>
13038         int main(void) {
13039             return posix_fadvise(0, 0, 0, 0);
13040         }
13041
13042 _ACEOF
13043 if ac_fn_c_try_link "$LINENO"; then :
13044
13045                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13046 $as_echo "yes" >&6; }
13047
13048 $as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13049
13050
13051 else
13052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13054 fi
13055 rm -f core conftest.err conftest.$ac_objext \
13056     conftest$ac_exeext conftest.$ac_ext
13057 CFLAGS="$fc_saved_CFLAGS"
13058
13059 #
13060 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
13061         ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
13062 "
13063 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
13064
13065 cat >>confdefs.h <<_ACEOF
13066 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
13067 _ACEOF
13068
13069
13070 fi
13071 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
13072 "
13073 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
13074
13075 cat >>confdefs.h <<_ACEOF
13076 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
13077 _ACEOF
13078
13079
13080 fi
13081
13082 fi
13083 if test "x$ac_cv_func_fstatfs" = "xyes"; then
13084         ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
13085 #ifdef HAVE_SYS_VFS_H
13086 #include <sys/vfs.h>
13087 #endif
13088 #ifdef HAVE_SYS_STATFS_H
13089 #include <sys/statfs.h>
13090 #endif
13091 #ifdef HAVE_SYS_PARAM_H
13092 #include <sys/param.h>
13093 #endif
13094 #ifdef HAVE_SYS_MOUNT_H
13095 #include <sys/mount.h>
13096 #endif
13097 "
13098 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
13099
13100 cat >>confdefs.h <<_ACEOF
13101 #define HAVE_STRUCT_STATFS_F_FLAGS 1
13102 _ACEOF
13103
13104
13105 fi
13106 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
13107 #ifdef HAVE_SYS_VFS_H
13108 #include <sys/vfs.h>
13109 #endif
13110 #ifdef HAVE_SYS_STATFS_H
13111 #include <sys/statfs.h>
13112 #endif
13113 #ifdef HAVE_SYS_PARAM_H
13114 #include <sys/param.h>
13115 #endif
13116 #ifdef HAVE_SYS_MOUNT_H
13117 #include <sys/mount.h>
13118 #endif
13119 "
13120 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
13121
13122 cat >>confdefs.h <<_ACEOF
13123 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
13124 _ACEOF
13125
13126
13127 fi
13128
13129 fi
13130 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
13131 "
13132 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
13133
13134 cat >>confdefs.h <<_ACEOF
13135 #define HAVE_STRUCT_DIRENT_D_TYPE 1
13136 _ACEOF
13137
13138
13139 fi
13140
13141 #
13142 # regex
13143 #
13144 if test "x$ac_cv_func_regcomp" = "xyes" -a "x$ac_cv_func_regerror" = "xyes" -a "x$ac_cv_func_regexec" = "xyes" -a "x$ac_cv_func_regfree"; then
13145
13146 $as_echo "#define USE_REGEX /**/" >>confdefs.h
13147
13148 fi
13149
13150 #
13151 # Checks for iconv
13152 #
13153 # Check whether --enable-iconv was given.
13154 if test "${enable_iconv+set}" = set; then :
13155   enableval=$enable_iconv;
13156 else
13157   enable_iconv=no
13158 fi
13159
13160
13161 # Check whether --with-libiconv was given.
13162 if test "${with_libiconv+set}" = set; then :
13163   withval=$with_libiconv; if test "x$withval" = "xyes"; then
13164                 libiconv_prefix=$prefix
13165          else
13166                 libiconv_prefix=$withval
13167          fi
13168 else
13169   libiconv_prefix=auto
13170 fi
13171
13172
13173 # Check whether --with-libiconv-includes was given.
13174 if test "${with_libiconv_includes+set}" = set; then :
13175   withval=$with_libiconv_includes; libiconv_includes=$withval
13176 else
13177   libiconv_includes=auto
13178 fi
13179
13180
13181 # Check whether --with-libiconv-lib was given.
13182 if test "${with_libiconv_lib+set}" = set; then :
13183   withval=$with_libiconv_lib; libiconv_lib=$withval
13184 else
13185   libiconv_lib=auto
13186 fi
13187
13188
13189 # if no libiconv,libiconv-includes,libiconv-lib are specified,
13190 # libc's iconv has a priority.
13191 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
13192         libiconv_cflags="-I${libiconv_includes}"
13193 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
13194         libiconv_cflags="-I${libiconv_prefix}/include"
13195 else
13196         libiconv_cflags=""
13197 fi
13198 libiconv_libs=""
13199 if test "x$libiconv_cflags" != "x"; then
13200         if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
13201                 libiconv_libs="-L${libiconv_lib} -liconv"
13202         elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
13203                 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
13204         else
13205                 libiconv_libs="-liconv"
13206         fi
13207 fi
13208
13209 use_iconv=0
13210 if test "x$enable_iconv" != "xno"; then
13211         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
13212 $as_echo_n "checking for a usable iconv... " >&6; }
13213         if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
13214                 iconvsaved_CFLAGS="$CFLAGS"
13215                 iconvsaved_LIBS="$LIBS"
13216                 CFLAGS="$CFLAGS $libiconv_cflags"
13217                 LIBS="$LIBS $libiconv_libs"
13218
13219                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h.  */
13221 #include <iconv.h>
13222 int
13223 main ()
13224 {
13225 iconv_open ("from", "to");
13226   ;
13227   return 0;
13228 }
13229 _ACEOF
13230 if ac_fn_c_try_link "$LINENO"; then :
13231   iconv_type="libiconv"
13232                          use_iconv=1
13233 else
13234   use_iconv=0
13235 fi
13236 rm -f core conftest.err conftest.$ac_objext \
13237     conftest$ac_exeext conftest.$ac_ext
13238
13239                 CFLAGS="$iconvsaved_CFLAGS"
13240                 LIBS="$iconvsaved_LIBS"
13241                 ICONV_CFLAGS="$libiconv_cflags"
13242                 ICONV_LIBS="$libiconv_libs"
13243         fi
13244         if test "x$use_iconv" = "x0"; then
13245                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h.  */
13247 #include <iconv.h>
13248 int
13249 main ()
13250 {
13251 iconv_open ("from", "to");
13252   ;
13253   return 0;
13254 }
13255 _ACEOF
13256 if ac_fn_c_try_link "$LINENO"; then :
13257   iconv_type="libc"
13258                          use_iconv=1
13259 else
13260   iconv_type="not found"
13261                          use_iconv=0
13262 fi
13263 rm -f core conftest.err conftest.$ac_objext \
13264     conftest$ac_exeext conftest.$ac_ext
13265         fi
13266
13267         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
13268 $as_echo "$iconv_type" >&6; }
13269
13270
13271 fi
13272
13273 cat >>confdefs.h <<_ACEOF
13274 #define USE_ICONV $use_iconv
13275 _ACEOF
13276
13277 #
13278 # Checks for FreeType
13279 #
13280
13281 pkg_failed=no
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
13283 $as_echo_n "checking for FREETYPE... " >&6; }
13284
13285 if test -n "$FREETYPE_CFLAGS"; then
13286     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
13287  elif test -n "$PKG_CONFIG"; then
13288     if test -n "$PKG_CONFIG" && \
13289     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
13290   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
13291   ac_status=$?
13292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13293   test $ac_status = 0; }; then
13294   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
13295 else
13296   pkg_failed=yes
13297 fi
13298  else
13299     pkg_failed=untried
13300 fi
13301 if test -n "$FREETYPE_LIBS"; then
13302     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
13303  elif test -n "$PKG_CONFIG"; then
13304     if test -n "$PKG_CONFIG" && \
13305     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
13306   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
13307   ac_status=$?
13308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13309   test $ac_status = 0; }; then
13310   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
13311 else
13312   pkg_failed=yes
13313 fi
13314  else
13315     pkg_failed=untried
13316 fi
13317
13318
13319
13320 if test $pkg_failed = yes; then
13321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13323
13324 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13325         _pkg_short_errors_supported=yes
13326 else
13327         _pkg_short_errors_supported=no
13328 fi
13329         if test $_pkg_short_errors_supported = yes; then
13330                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
13331         else
13332                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
13333         fi
13334         # Put the nasty error message in config.log where it belongs
13335         echo "$FREETYPE_PKG_ERRORS" >&5
13336
13337         as_fn_error $? "Package requirements (freetype2) were not met:
13338
13339 $FREETYPE_PKG_ERRORS
13340
13341 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13342 installed software in a non-standard prefix.
13343
13344 Alternatively, you may set the environment variables FREETYPE_CFLAGS
13345 and FREETYPE_LIBS to avoid the need to call pkg-config.
13346 See the pkg-config man page for more details." "$LINENO" 5
13347
13348 elif test $pkg_failed = untried; then
13349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350 $as_echo "no" >&6; }
13351         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13353 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13354 is in your PATH or set the PKG_CONFIG environment variable to the full
13355 path to pkg-config.
13356
13357 Alternatively, you may set the environment variables FREETYPE_CFLAGS
13358 and FREETYPE_LIBS to avoid the need to call pkg-config.
13359 See the pkg-config man page for more details.
13360
13361 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13362 See \`config.log' for more details" "$LINENO" 5; }
13363
13364 else
13365         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
13366         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
13367         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13368 $as_echo "yes" >&6; }
13369
13370 fi
13371
13372
13373
13374
13375 fontconfig_save_libs="$LIBS"
13376 fontconfig_save_cflags="$CFLAGS"
13377 LIBS="$LIBS $FREETYPE_LIBS"
13378 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
13379 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
13380 do :
13381   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13382 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13383 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13384   cat >>confdefs.h <<_ACEOF
13385 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13386 _ACEOF
13387
13388 fi
13389 done
13390
13391 ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h>
13392 #include FT_FREETYPE_H
13393 "
13394 if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = xyes; then :
13395   HAVE_FT_BITMAP_SIZE_Y_PPEM=1
13396 else
13397   HAVE_FT_BITMAP_SIZE_Y_PPEM=0
13398 fi
13399
13400
13401 cat >>confdefs.h <<_ACEOF
13402 #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
13403 _ACEOF
13404
13405 CFLAGS="$fontconfig_save_cflags"
13406 LIBS="$fontconfig_save_libs"
13407
13408 #
13409 # Check expat configuration
13410 #
13411
13412 # Check whether --with-expat was given.
13413 if test "${with_expat+set}" = set; then :
13414   withval=$with_expat; expat_prefix=$withval
13415 else
13416   expat_prefix=auto
13417 fi
13418
13419
13420 # Check whether --with-expat-includes was given.
13421 if test "${with_expat_includes+set}" = set; then :
13422   withval=$with_expat_includes; expat_includes=$withval
13423 else
13424   expat_includes=auto
13425 fi
13426
13427
13428 # Check whether --with-expat-lib was given.
13429 if test "${with_expat_lib+set}" = set; then :
13430   withval=$with_expat_lib; expat_lib=$withval
13431 else
13432   expat_lib=auto
13433 fi
13434
13435
13436 if test "$enable_libxml2" != "yes"; then
13437         use_pkgconfig_for_expat=yes
13438         if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
13439
13440 pkg_failed=no
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
13442 $as_echo_n "checking for EXPAT... " >&6; }
13443
13444 if test -n "$EXPAT_CFLAGS"; then
13445     pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
13446  elif test -n "$PKG_CONFIG"; then
13447     if test -n "$PKG_CONFIG" && \
13448     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
13449   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
13450   ac_status=$?
13451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13452   test $ac_status = 0; }; then
13453   pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
13454 else
13455   pkg_failed=yes
13456 fi
13457  else
13458     pkg_failed=untried
13459 fi
13460 if test -n "$EXPAT_LIBS"; then
13461     pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
13462  elif test -n "$PKG_CONFIG"; then
13463     if test -n "$PKG_CONFIG" && \
13464     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
13465   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
13466   ac_status=$?
13467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13468   test $ac_status = 0; }; then
13469   pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
13470 else
13471   pkg_failed=yes
13472 fi
13473  else
13474     pkg_failed=untried
13475 fi
13476
13477
13478
13479 if test $pkg_failed = yes; then
13480         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481 $as_echo "no" >&6; }
13482
13483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13484         _pkg_short_errors_supported=yes
13485 else
13486         _pkg_short_errors_supported=no
13487 fi
13488         if test $_pkg_short_errors_supported = yes; then
13489                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "expat" 2>&1`
13490         else
13491                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors "expat" 2>&1`
13492         fi
13493         # Put the nasty error message in config.log where it belongs
13494         echo "$EXPAT_PKG_ERRORS" >&5
13495
13496         use_pkgconfig_for_expat=no
13497 elif test $pkg_failed = untried; then
13498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13499 $as_echo "no" >&6; }
13500         use_pkgconfig_for_expat=no
13501 else
13502         EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
13503         EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
13504         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13505 $as_echo "yes" >&6; }
13506
13507 fi
13508         else
13509                 use_pkgconfig_for_expat=no
13510         fi
13511         if test "x$use_pkgconfig_for_expat" = "xno"; then
13512                 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
13513                         EXPAT_CFLAGS="-I${expat_includes}"
13514                 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
13515                         EXPAT_CFLAGS="-I${expat_prefix}/include"
13516                 else
13517                         EXPAT_CFLAGS=""
13518                 fi
13519                 if test "$expat_lib" != "auto"; then
13520                         EXPAT_LIBS="-L${expat_lib} -lexpat"
13521                 elif test "$expat_prefix" != "auto"; then
13522                         EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
13523                 else
13524                         EXPAT_LIBS="-lexpat"
13525                 fi
13526         fi
13527
13528         expatsaved_CPPFLAGS="$CPPFLAGS"
13529         expatsaved_LIBS="$LIBS"
13530         CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
13531         LIBS="$LIBS $EXPAT_LIBS"
13532
13533         ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
13534 if test "x$ac_cv_header_expat_h" = xyes; then :
13535
13536 fi
13537
13538
13539         if test "$ac_cv_header_expat_h" = "no"; then
13540                 ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
13541 if test "x$ac_cv_header_xmlparse_h" = xyes; then :
13542
13543 fi
13544
13545
13546                 if test "$ac_cv_header_xmlparse_h" = "yes"; then
13547                         HAVE_XMLPARSE_H=1
13548
13549
13550 cat >>confdefs.h <<_ACEOF
13551 #define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
13552 _ACEOF
13553
13554                 else
13555                         as_fn_error $? "
13556 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
13557                 fi
13558         fi
13559         for ac_func in XML_SetDoctypeDeclHandler
13560 do :
13561   ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
13562 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then :
13563   cat >>confdefs.h <<_ACEOF
13564 #define HAVE_XML_SETDOCTYPEDECLHANDLER 1
13565 _ACEOF
13566
13567 fi
13568 done
13569
13570         if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
13571                 as_fn_error $? "
13572 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
13573         fi
13574         CPPFLAGS="$expatsaved_CPPFLAGS"
13575         LIBS="$expatsaved_LIBS"
13576
13577
13578
13579 fi
13580
13581 #
13582 # Check libxml2 configuration
13583 #
13584 # Check whether --enable-libxml2 was given.
13585 if test "${enable_libxml2+set}" = set; then :
13586   enableval=$enable_libxml2;
13587 fi
13588
13589
13590 if test "$enable_libxml2" = "yes"; then
13591
13592 pkg_failed=no
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
13594 $as_echo_n "checking for LIBXML2... " >&6; }
13595
13596 if test -n "$LIBXML2_CFLAGS"; then
13597     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
13598  elif test -n "$PKG_CONFIG"; then
13599     if test -n "$PKG_CONFIG" && \
13600     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
13601   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
13602   ac_status=$?
13603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13604   test $ac_status = 0; }; then
13605   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
13606 else
13607   pkg_failed=yes
13608 fi
13609  else
13610     pkg_failed=untried
13611 fi
13612 if test -n "$LIBXML2_LIBS"; then
13613     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
13614  elif test -n "$PKG_CONFIG"; then
13615     if test -n "$PKG_CONFIG" && \
13616     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
13617   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
13618   ac_status=$?
13619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13620   test $ac_status = 0; }; then
13621   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
13622 else
13623   pkg_failed=yes
13624 fi
13625  else
13626     pkg_failed=untried
13627 fi
13628
13629
13630
13631 if test $pkg_failed = yes; then
13632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633 $as_echo "no" >&6; }
13634
13635 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13636         _pkg_short_errors_supported=yes
13637 else
13638         _pkg_short_errors_supported=no
13639 fi
13640         if test $_pkg_short_errors_supported = yes; then
13641                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0 >= 2.6" 2>&1`
13642         else
13643                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0 >= 2.6" 2>&1`
13644         fi
13645         # Put the nasty error message in config.log where it belongs
13646         echo "$LIBXML2_PKG_ERRORS" >&5
13647
13648         as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
13649
13650 $LIBXML2_PKG_ERRORS
13651
13652 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13653 installed software in a non-standard prefix.
13654
13655 Alternatively, you may set the environment variables LIBXML2_CFLAGS
13656 and LIBXML2_LIBS to avoid the need to call pkg-config.
13657 See the pkg-config man page for more details." "$LINENO" 5
13658
13659 elif test $pkg_failed = untried; then
13660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13661 $as_echo "no" >&6; }
13662         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13664 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13665 is in your PATH or set the PKG_CONFIG environment variable to the full
13666 path to pkg-config.
13667
13668 Alternatively, you may set the environment variables LIBXML2_CFLAGS
13669 and LIBXML2_LIBS to avoid the need to call pkg-config.
13670 See the pkg-config man page for more details.
13671
13672 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13673 See \`config.log' for more details" "$LINENO" 5; }
13674
13675 else
13676         LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
13677         LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
13678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13679 $as_echo "yes" >&6; }
13680
13681 fi
13682
13683 cat >>confdefs.h <<_ACEOF
13684 #define ENABLE_LIBXML2 1
13685 _ACEOF
13686
13687
13688
13689
13690
13691     fc_saved_CFLAGS="$CFLAGS"
13692     CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
13693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
13694 $as_echo_n "checking SAX1 support in libxml2... " >&6; }
13695     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h.  */
13697
13698         #include <libxml/xmlversion.h>
13699         #if !defined(LIBXML_SAX1_ENABLED)
13700         #  include "error: No SAX1 support in libxml2"
13701         #endif
13702
13703 _ACEOF
13704 if ac_fn_c_try_compile "$LINENO"; then :
13705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13706 $as_echo "found" >&6; }
13707 else
13708   as_fn_error $? "
13709 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
13710 fi
13711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13712     CFLAGS="$fc_saved_CFLAGS"
13713 fi
13714
13715 #
13716 # Set default font directory
13717 #
13718
13719
13720 # Check whether --with-default-fonts was given.
13721 if test "${with_default_fonts+set}" = set; then :
13722   withval=$with_default_fonts; default_fonts="$withval"
13723 else
13724   default_fonts=yes
13725 fi
13726
13727
13728 case "$default_fonts" in
13729 yes)
13730         if test "$os_win32" = "yes"; then
13731                 FC_DEFAULT_FONTS="WINDOWSFONTDIR"
13732
13733 cat >>confdefs.h <<_ACEOF
13734 #define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
13735 _ACEOF
13736
13737         else
13738                 FC_DEFAULT_FONTS="/usr/share/fonts"
13739
13740 cat >>confdefs.h <<_ACEOF
13741 #define FC_DEFAULT_FONTS "/usr/share/fonts"
13742 _ACEOF
13743
13744         fi
13745         ;;
13746 *)
13747         FC_DEFAULT_FONTS="$default_fonts"
13748
13749 cat >>confdefs.h <<_ACEOF
13750 #define FC_DEFAULT_FONTS "$default_fonts"
13751 _ACEOF
13752
13753         ;;
13754 esac
13755
13756
13757
13758 #
13759 # Add more fonts if available.  By default, add only the directories
13760 # with outline fonts; those with bitmaps can be added as desired in
13761 # local.conf or ~/.fonts.conf
13762 #
13763
13764 # Check whether --with-add-fonts was given.
13765 if test "${with_add_fonts+set}" = set; then :
13766   withval=$with_add_fonts; add_fonts="$withval"
13767 else
13768   add_fonts=yes
13769 fi
13770
13771
13772 case "$add_fonts" in
13773 yes)
13774         FC_ADD_FONTS=""
13775         for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
13776                 case x"$FC_ADD_FONTS" in
13777                 x)
13778                         sub="$dir/fonts"
13779                         if test -d "$sub"; then
13780                                 case x$FC_ADD_FONTS in
13781                                 x)
13782                                         FC_ADD_FONTS="$sub"
13783                                         ;;
13784                                 *)
13785                                         FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
13786                                         ;;
13787                                 esac
13788                         fi
13789                         ;;
13790                 esac
13791         done
13792
13793 cat >>confdefs.h <<_ACEOF
13794 #define FC_ADD_FONTS "$add_fonts"
13795 _ACEOF
13796
13797         ;;
13798 no)
13799         FC_ADD_FONTS=""
13800         ;;
13801 *)
13802         FC_ADD_FONTS="$add_fonts"
13803
13804 cat >>confdefs.h <<_ACEOF
13805 #define FC_ADD_FONTS "$add_fonts"
13806 _ACEOF
13807
13808         ;;
13809 esac
13810
13811
13812
13813 FC_FONTPATH=""
13814
13815 case "$FC_ADD_FONTS" in
13816 "")
13817         ;;
13818 *)
13819         FC_FONTPATH=`echo $FC_ADD_FONTS |
13820                         sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
13821         ;;
13822 esac
13823
13824
13825
13826 #
13827 # Set default cache directory path
13828 #
13829
13830 # Check whether --with-cache-dir was given.
13831 if test "${with_cache_dir+set}" = set; then :
13832   withval=$with_cache_dir; fc_cachedir="$withval"
13833 else
13834   fc_cachedir=yes
13835 fi
13836
13837
13838 case $fc_cachedir in
13839 no|yes)
13840         if test "$os_win32" = "yes"; then
13841                 fc_cachedir="WINDOWSTEMPDIR_FONTCONFIG_CACHE"
13842         else
13843                 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
13844         fi
13845         ;;
13846 *)
13847         ;;
13848 esac
13849
13850 FC_CACHEDIR=${fc_cachedir}
13851
13852
13853 FC_FONTDATE=`LC_ALL=C date`
13854
13855
13856
13857 #
13858 # Set configuration paths
13859 #
13860
13861
13862 # Check whether --with-templatedir was given.
13863 if test "${with_templatedir+set}" = set; then :
13864   withval=$with_templatedir; templatedir="$withval"
13865 else
13866   templatedir=yes
13867 fi
13868
13869
13870 # Check whether --with-baseconfigdir was given.
13871 if test "${with_baseconfigdir+set}" = set; then :
13872   withval=$with_baseconfigdir; baseconfigdir="$withval"
13873 else
13874   baseconfigdir=yes
13875 fi
13876
13877
13878 # Check whether --with-configdir was given.
13879 if test "${with_configdir+set}" = set; then :
13880   withval=$with_configdir; configdir="$withval"
13881 else
13882   configdir=yes
13883 fi
13884
13885
13886 # Check whether --with-xmldir was given.
13887 if test "${with_xmldir+set}" = set; then :
13888   withval=$with_xmldir; xmldir="$withval"
13889 else
13890   xmldir=yes
13891 fi
13892
13893
13894 case "$templatedir" in
13895 no|yes)
13896         templatedir='${datadir}'/fontconfig/conf.avail
13897         ;;
13898 *)
13899         ;;
13900 esac
13901 case "$baseconfigdir" in
13902 no|yes)
13903         baseconfigdir='${sysconfdir}'/fonts
13904         ;;
13905 *)
13906         ;;
13907 esac
13908 case "$configdir" in
13909 no|yes)
13910         configdir='${baseconfigdir}'/conf.d
13911         ;;
13912 *)
13913         ;;
13914 esac
13915 case "$xmldir" in
13916 no|yes)
13917         xmldir='${datadir}'/xml/fontconfig
13918         ;;
13919 *)
13920         ;;
13921 esac
13922
13923 TEMPLATEDIR=${templatedir}
13924 BASECONFIGDIR=${baseconfigdir}
13925 CONFIGDIR=${configdir}
13926 XMLDIR=${xmldir}
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936 #
13937 # Let people not build/install docs if they don't have docbook
13938 #
13939
13940 # Extract the first word of "docbook2html", so it can be a program name with args.
13941 set dummy docbook2html; ac_word=$2
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13943 $as_echo_n "checking for $ac_word... " >&6; }
13944 if ${ac_cv_prog_HASDOCBOOK+:} false; then :
13945   $as_echo_n "(cached) " >&6
13946 else
13947   if test -n "$HASDOCBOOK"; then
13948   ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
13949 else
13950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13951 for as_dir in $PATH
13952 do
13953   IFS=$as_save_IFS
13954   test -z "$as_dir" && as_dir=.
13955     for ac_exec_ext in '' $ac_executable_extensions; do
13956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13957     ac_cv_prog_HASDOCBOOK="yes"
13958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13959     break 2
13960   fi
13961 done
13962   done
13963 IFS=$as_save_IFS
13964
13965   test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
13966 fi
13967 fi
13968 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
13969 if test -n "$HASDOCBOOK"; then
13970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
13971 $as_echo "$HASDOCBOOK" >&6; }
13972 else
13973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13974 $as_echo "no" >&6; }
13975 fi
13976
13977
13978
13979  if test "x$HASDOCBOOK" = xyes; then
13980   USEDOCBOOK_TRUE=
13981   USEDOCBOOK_FALSE='#'
13982 else
13983   USEDOCBOOK_TRUE='#'
13984   USEDOCBOOK_FALSE=
13985 fi
13986
13987
13988 default_docs="yes"
13989 #
13990 # Check if docs exist or can be created
13991 #
13992 if test x$HASDOCBOOK = xno; then
13993         if test -f $srcdir/doc/fonts-conf.5; then
13994                 :
13995         else
13996                 default_docs="no"
13997         fi
13998 fi
13999
14000 # Check whether --enable-docs was given.
14001 if test "${enable_docs+set}" = set; then :
14002   enableval=$enable_docs;
14003 else
14004   enable_docs=$default_docs
14005 fi
14006
14007
14008  if test "x$enable_docs" = xyes; then
14009   ENABLE_DOCS_TRUE=
14010   ENABLE_DOCS_FALSE='#'
14011 else
14012   ENABLE_DOCS_TRUE='#'
14013   ENABLE_DOCS_FALSE=
14014 fi
14015
14016
14017 if test "x$enable_docs" = xyes; then
14018         DOCSRC="doc"
14019         tmp=funcs.$$
14020         cat $srcdir/doc/*.fncs | awk '
14021         /^@TITLE@/      { if (!done) { printf ("%s\n", $2); done = 1; } }
14022         /^@FUNC@/       { if (!done) { printf ("%s\n", $2); done = 1; } }
14023         /^@@/           { done = 0; }' > $tmp
14024         DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
14025         echo DOCMAN3 $DOCMAN3
14026         rm -f $tmp
14027 else
14028         DOCSRC=""
14029         DOCMAN3=""
14030 fi
14031
14032
14033
14034
14035
14036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14037 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14038 if ${ac_cv_c_bigendian+:} false; then :
14039   $as_echo_n "(cached) " >&6
14040 else
14041   ac_cv_c_bigendian=unknown
14042     # See if we're dealing with a universal compiler.
14043     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h.  */
14045 #ifndef __APPLE_CC__
14046                not a universal capable compiler
14047              #endif
14048              typedef int dummy;
14049
14050 _ACEOF
14051 if ac_fn_c_try_compile "$LINENO"; then :
14052
14053         # Check for potential -arch flags.  It is not universal unless
14054         # there are at least two -arch flags with different values.
14055         ac_arch=
14056         ac_prev=
14057         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14058          if test -n "$ac_prev"; then
14059            case $ac_word in
14060              i?86 | x86_64 | ppc | ppc64)
14061                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14062                  ac_arch=$ac_word
14063                else
14064                  ac_cv_c_bigendian=universal
14065                  break
14066                fi
14067                ;;
14068            esac
14069            ac_prev=
14070          elif test "x$ac_word" = "x-arch"; then
14071            ac_prev=arch
14072          fi
14073        done
14074 fi
14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076     if test $ac_cv_c_bigendian = unknown; then
14077       # See if sys/param.h defines the BYTE_ORDER macro.
14078       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h.  */
14080 #include <sys/types.h>
14081              #include <sys/param.h>
14082
14083 int
14084 main ()
14085 {
14086 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14087                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14088                      && LITTLE_ENDIAN)
14089               bogus endian macros
14090              #endif
14091
14092   ;
14093   return 0;
14094 }
14095 _ACEOF
14096 if ac_fn_c_try_compile "$LINENO"; then :
14097   # It does; now see whether it defined to BIG_ENDIAN or not.
14098          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h.  */
14100 #include <sys/types.h>
14101                 #include <sys/param.h>
14102
14103 int
14104 main ()
14105 {
14106 #if BYTE_ORDER != BIG_ENDIAN
14107                  not big endian
14108                 #endif
14109
14110   ;
14111   return 0;
14112 }
14113 _ACEOF
14114 if ac_fn_c_try_compile "$LINENO"; then :
14115   ac_cv_c_bigendian=yes
14116 else
14117   ac_cv_c_bigendian=no
14118 fi
14119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14120 fi
14121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14122     fi
14123     if test $ac_cv_c_bigendian = unknown; then
14124       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14125       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h.  */
14127 #include <limits.h>
14128
14129 int
14130 main ()
14131 {
14132 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14133               bogus endian macros
14134              #endif
14135
14136   ;
14137   return 0;
14138 }
14139 _ACEOF
14140 if ac_fn_c_try_compile "$LINENO"; then :
14141   # It does; now see whether it defined to _BIG_ENDIAN or not.
14142          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h.  */
14144 #include <limits.h>
14145
14146 int
14147 main ()
14148 {
14149 #ifndef _BIG_ENDIAN
14150                  not big endian
14151                 #endif
14152
14153   ;
14154   return 0;
14155 }
14156 _ACEOF
14157 if ac_fn_c_try_compile "$LINENO"; then :
14158   ac_cv_c_bigendian=yes
14159 else
14160   ac_cv_c_bigendian=no
14161 fi
14162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14163 fi
14164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165     fi
14166     if test $ac_cv_c_bigendian = unknown; then
14167       # Compile a test program.
14168       if test "$cross_compiling" = yes; then :
14169   # Try to guess by grepping values from an object file.
14170          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h.  */
14172 short int ascii_mm[] =
14173                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14174                 short int ascii_ii[] =
14175                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14176                 int use_ascii (int i) {
14177                   return ascii_mm[i] + ascii_ii[i];
14178                 }
14179                 short int ebcdic_ii[] =
14180                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14181                 short int ebcdic_mm[] =
14182                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14183                 int use_ebcdic (int i) {
14184                   return ebcdic_mm[i] + ebcdic_ii[i];
14185                 }
14186                 extern int foo;
14187
14188 int
14189 main ()
14190 {
14191 return use_ascii (foo) == use_ebcdic (foo);
14192   ;
14193   return 0;
14194 }
14195 _ACEOF
14196 if ac_fn_c_try_compile "$LINENO"; then :
14197   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14198               ac_cv_c_bigendian=yes
14199             fi
14200             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14201               if test "$ac_cv_c_bigendian" = unknown; then
14202                 ac_cv_c_bigendian=no
14203               else
14204                 # finding both strings is unlikely to happen, but who knows?
14205                 ac_cv_c_bigendian=unknown
14206               fi
14207             fi
14208 fi
14209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210 else
14211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h.  */
14213 $ac_includes_default
14214 int
14215 main ()
14216 {
14217
14218              /* Are we little or big endian?  From Harbison&Steele.  */
14219              union
14220              {
14221                long int l;
14222                char c[sizeof (long int)];
14223              } u;
14224              u.l = 1;
14225              return u.c[sizeof (long int) - 1] == 1;
14226
14227   ;
14228   return 0;
14229 }
14230 _ACEOF
14231 if ac_fn_c_try_run "$LINENO"; then :
14232   ac_cv_c_bigendian=no
14233 else
14234   ac_cv_c_bigendian=yes
14235 fi
14236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14237   conftest.$ac_objext conftest.beam conftest.$ac_ext
14238 fi
14239
14240     fi
14241 fi
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14243 $as_echo "$ac_cv_c_bigendian" >&6; }
14244  case $ac_cv_c_bigendian in #(
14245    yes)
14246      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14247 ;; #(
14248    no)
14249       ;; #(
14250    universal)
14251
14252 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14253
14254      ;; #(
14255    *)
14256      as_fn_error $? "unknown endianness
14257  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14258  esac
14259
14260 # The cast to long int works around a bug in the HP C Compiler
14261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14263 # This bug is HP SR number 8606223364.
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14265 $as_echo_n "checking size of void *... " >&6; }
14266 if ${ac_cv_sizeof_void_p+:} false; then :
14267   $as_echo_n "(cached) " >&6
14268 else
14269   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14270
14271 else
14272   if test "$ac_cv_type_void_p" = yes; then
14273      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14275 as_fn_error 77 "cannot compute sizeof (void *)
14276 See \`config.log' for more details" "$LINENO" 5; }
14277    else
14278      ac_cv_sizeof_void_p=0
14279    fi
14280 fi
14281
14282 fi
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14284 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14285
14286
14287
14288 cat >>confdefs.h <<_ACEOF
14289 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14290 _ACEOF
14291
14292
14293 # The cast to long int works around a bug in the HP C Compiler,
14294 # see AC_CHECK_SIZEOF for more information.
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
14296 $as_echo_n "checking alignment of double... " >&6; }
14297 if ${ac_cv_alignof_double+:} false; then :
14298   $as_echo_n "(cached) " >&6
14299 else
14300   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double"        "$ac_includes_default
14301 #ifndef offsetof
14302 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14303 #endif
14304 typedef struct { char x; double y; } ac__type_alignof_;"; then :
14305
14306 else
14307   if test "$ac_cv_type_double" = yes; then
14308      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14310 as_fn_error 77 "cannot compute alignment of double
14311 See \`config.log' for more details" "$LINENO" 5; }
14312    else
14313      ac_cv_alignof_double=0
14314    fi
14315 fi
14316
14317 fi
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
14319 $as_echo "$ac_cv_alignof_double" >&6; }
14320
14321
14322
14323 cat >>confdefs.h <<_ACEOF
14324 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
14325 _ACEOF
14326
14327
14328
14329
14330
14331 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"
14332
14333 cat >confcache <<\_ACEOF
14334 # This file is a shell script that caches the results of configure
14335 # tests run on this system so they can be shared between configure
14336 # scripts and configure runs, see configure's option --config-cache.
14337 # It is not useful on other systems.  If it contains results you don't
14338 # want to keep, you may remove or edit it.
14339 #
14340 # config.status only pays attention to the cache file if you give it
14341 # the --recheck option to rerun configure.
14342 #
14343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14345 # following values.
14346
14347 _ACEOF
14348
14349 # The following way of writing the cache mishandles newlines in values,
14350 # but we know of no workaround that is simple, portable, and efficient.
14351 # So, we kill variables containing newlines.
14352 # Ultrix sh set writes to stderr and can't be redirected directly,
14353 # and sets the high bit in the cache file unless we assign to the vars.
14354 (
14355   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14356     eval ac_val=\$$ac_var
14357     case $ac_val in #(
14358     *${as_nl}*)
14359       case $ac_var in #(
14360       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14361 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14362       esac
14363       case $ac_var in #(
14364       _ | IFS | as_nl) ;; #(
14365       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14366       *) { eval $ac_var=; unset $ac_var;} ;;
14367       esac ;;
14368     esac
14369   done
14370
14371   (set) 2>&1 |
14372     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14373     *${as_nl}ac_space=\ *)
14374       # `set' does not quote correctly, so add quotes: double-quote
14375       # substitution turns \\\\ into \\, and sed turns \\ into \.
14376       sed -n \
14377         "s/'/'\\\\''/g;
14378           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14379       ;; #(
14380     *)
14381       # `set' quotes correctly as required by POSIX, so do not add quotes.
14382       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14383       ;;
14384     esac |
14385     sort
14386 ) |
14387   sed '
14388      /^ac_cv_env_/b end
14389      t clear
14390      :clear
14391      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14392      t end
14393      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14394      :end' >>confcache
14395 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14396   if test -w "$cache_file"; then
14397     if test "x$cache_file" != "x/dev/null"; then
14398       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14399 $as_echo "$as_me: updating cache $cache_file" >&6;}
14400       if test ! -f "$cache_file" || test -h "$cache_file"; then
14401         cat confcache >"$cache_file"
14402       else
14403         case $cache_file in #(
14404         */* | ?:*)
14405           mv -f confcache "$cache_file"$$ &&
14406           mv -f "$cache_file"$$ "$cache_file" ;; #(
14407         *)
14408           mv -f confcache "$cache_file" ;;
14409         esac
14410       fi
14411     fi
14412   else
14413     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14414 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14415   fi
14416 fi
14417 rm -f confcache
14418
14419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14420 # Let make expand exec_prefix.
14421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14422
14423 DEFS=-DHAVE_CONFIG_H
14424
14425 ac_libobjs=
14426 ac_ltlibobjs=
14427 U=
14428 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14429   # 1. Remove the extension, and $U if already installed.
14430   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14431   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14432   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14433   #    will be set to the directory where LIBOBJS objects are built.
14434   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14435   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14436 done
14437 LIBOBJS=$ac_libobjs
14438
14439 LTLIBOBJS=$ac_ltlibobjs
14440
14441
14442  if test -n "$EXEEXT"; then
14443   am__EXEEXT_TRUE=
14444   am__EXEEXT_FALSE='#'
14445 else
14446   am__EXEEXT_TRUE='#'
14447   am__EXEEXT_FALSE=
14448 fi
14449
14450 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14451   as_fn_error $? "conditional \"AMDEP\" was never defined.
14452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14453 fi
14454 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14455   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14457 fi
14458 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14459   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14461 fi
14462 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
14463   as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
14464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14465 fi
14466 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
14467   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
14468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14469 fi
14470 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
14471   as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
14472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14473 fi
14474 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
14475   as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
14476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14477 fi
14478 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
14479   as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
14480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14481 fi
14482
14483
14484 : "${CONFIG_STATUS=./config.status}"
14485 ac_write_fail=0
14486 ac_clean_files_save=$ac_clean_files
14487 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14489 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14490 as_write_fail=0
14491 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14492 #! $SHELL
14493 # Generated by $as_me.
14494 # Run this file to recreate the current configuration.
14495 # Compiler output produced by configure, useful for debugging
14496 # configure, is in config.log if it exists.
14497
14498 debug=false
14499 ac_cs_recheck=false
14500 ac_cs_silent=false
14501
14502 SHELL=\${CONFIG_SHELL-$SHELL}
14503 export SHELL
14504 _ASEOF
14505 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14506 ## -------------------- ##
14507 ## M4sh Initialization. ##
14508 ## -------------------- ##
14509
14510 # Be more Bourne compatible
14511 DUALCASE=1; export DUALCASE # for MKS sh
14512 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14513   emulate sh
14514   NULLCMD=:
14515   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14516   # is contrary to our usage.  Disable this feature.
14517   alias -g '${1+"$@"}'='"$@"'
14518   setopt NO_GLOB_SUBST
14519 else
14520   case `(set -o) 2>/dev/null` in #(
14521   *posix*) :
14522     set -o posix ;; #(
14523   *) :
14524      ;;
14525 esac
14526 fi
14527
14528
14529 as_nl='
14530 '
14531 export as_nl
14532 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14533 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14534 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14535 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14536 # Prefer a ksh shell builtin over an external printf program on Solaris,
14537 # but without wasting forks for bash or zsh.
14538 if test -z "$BASH_VERSION$ZSH_VERSION" \
14539     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14540   as_echo='print -r --'
14541   as_echo_n='print -rn --'
14542 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14543   as_echo='printf %s\n'
14544   as_echo_n='printf %s'
14545 else
14546   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14547     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14548     as_echo_n='/usr/ucb/echo -n'
14549   else
14550     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14551     as_echo_n_body='eval
14552       arg=$1;
14553       case $arg in #(
14554       *"$as_nl"*)
14555         expr "X$arg" : "X\\(.*\\)$as_nl";
14556         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14557       esac;
14558       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14559     '
14560     export as_echo_n_body
14561     as_echo_n='sh -c $as_echo_n_body as_echo'
14562   fi
14563   export as_echo_body
14564   as_echo='sh -c $as_echo_body as_echo'
14565 fi
14566
14567 # The user is always right.
14568 if test "${PATH_SEPARATOR+set}" != set; then
14569   PATH_SEPARATOR=:
14570   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14571     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14572       PATH_SEPARATOR=';'
14573   }
14574 fi
14575
14576
14577 # IFS
14578 # We need space, tab and new line, in precisely that order.  Quoting is
14579 # there to prevent editors from complaining about space-tab.
14580 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14581 # splitting by setting IFS to empty value.)
14582 IFS=" ""        $as_nl"
14583
14584 # Find who we are.  Look in the path if we contain no directory separator.
14585 as_myself=
14586 case $0 in #((
14587   *[\\/]* ) as_myself=$0 ;;
14588   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14589 for as_dir in $PATH
14590 do
14591   IFS=$as_save_IFS
14592   test -z "$as_dir" && as_dir=.
14593     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14594   done
14595 IFS=$as_save_IFS
14596
14597      ;;
14598 esac
14599 # We did not find ourselves, most probably we were run as `sh COMMAND'
14600 # in which case we are not to be found in the path.
14601 if test "x$as_myself" = x; then
14602   as_myself=$0
14603 fi
14604 if test ! -f "$as_myself"; then
14605   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14606   exit 1
14607 fi
14608
14609 # Unset variables that we do not need and which cause bugs (e.g. in
14610 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14611 # suppresses any "Segmentation fault" message there.  '((' could
14612 # trigger a bug in pdksh 5.2.14.
14613 for as_var in BASH_ENV ENV MAIL MAILPATH
14614 do eval test x\${$as_var+set} = xset \
14615   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14616 done
14617 PS1='$ '
14618 PS2='> '
14619 PS4='+ '
14620
14621 # NLS nuisances.
14622 LC_ALL=C
14623 export LC_ALL
14624 LANGUAGE=C
14625 export LANGUAGE
14626
14627 # CDPATH.
14628 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14629
14630
14631 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14632 # ----------------------------------------
14633 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14634 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14635 # script with STATUS, using 1 if that was 0.
14636 as_fn_error ()
14637 {
14638   as_status=$1; test $as_status -eq 0 && as_status=1
14639   if test "$4"; then
14640     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14641     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14642   fi
14643   $as_echo "$as_me: error: $2" >&2
14644   as_fn_exit $as_status
14645 } # as_fn_error
14646
14647
14648 # as_fn_set_status STATUS
14649 # -----------------------
14650 # Set $? to STATUS, without forking.
14651 as_fn_set_status ()
14652 {
14653   return $1
14654 } # as_fn_set_status
14655
14656 # as_fn_exit STATUS
14657 # -----------------
14658 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14659 as_fn_exit ()
14660 {
14661   set +e
14662   as_fn_set_status $1
14663   exit $1
14664 } # as_fn_exit
14665
14666 # as_fn_unset VAR
14667 # ---------------
14668 # Portably unset VAR.
14669 as_fn_unset ()
14670 {
14671   { eval $1=; unset $1;}
14672 }
14673 as_unset=as_fn_unset
14674 # as_fn_append VAR VALUE
14675 # ----------------------
14676 # Append the text in VALUE to the end of the definition contained in VAR. Take
14677 # advantage of any shell optimizations that allow amortized linear growth over
14678 # repeated appends, instead of the typical quadratic growth present in naive
14679 # implementations.
14680 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14681   eval 'as_fn_append ()
14682   {
14683     eval $1+=\$2
14684   }'
14685 else
14686   as_fn_append ()
14687   {
14688     eval $1=\$$1\$2
14689   }
14690 fi # as_fn_append
14691
14692 # as_fn_arith ARG...
14693 # ------------------
14694 # Perform arithmetic evaluation on the ARGs, and store the result in the
14695 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14696 # must be portable across $(()) and expr.
14697 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14698   eval 'as_fn_arith ()
14699   {
14700     as_val=$(( $* ))
14701   }'
14702 else
14703   as_fn_arith ()
14704   {
14705     as_val=`expr "$@" || test $? -eq 1`
14706   }
14707 fi # as_fn_arith
14708
14709
14710 if expr a : '\(a\)' >/dev/null 2>&1 &&
14711    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14712   as_expr=expr
14713 else
14714   as_expr=false
14715 fi
14716
14717 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14718   as_basename=basename
14719 else
14720   as_basename=false
14721 fi
14722
14723 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14724   as_dirname=dirname
14725 else
14726   as_dirname=false
14727 fi
14728
14729 as_me=`$as_basename -- "$0" ||
14730 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14731          X"$0" : 'X\(//\)$' \| \
14732          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14733 $as_echo X/"$0" |
14734     sed '/^.*\/\([^/][^/]*\)\/*$/{
14735             s//\1/
14736             q
14737           }
14738           /^X\/\(\/\/\)$/{
14739             s//\1/
14740             q
14741           }
14742           /^X\/\(\/\).*/{
14743             s//\1/
14744             q
14745           }
14746           s/.*/./; q'`
14747
14748 # Avoid depending upon Character Ranges.
14749 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14750 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14751 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14752 as_cr_digits='0123456789'
14753 as_cr_alnum=$as_cr_Letters$as_cr_digits
14754
14755 ECHO_C= ECHO_N= ECHO_T=
14756 case `echo -n x` in #(((((
14757 -n*)
14758   case `echo 'xy\c'` in
14759   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14760   xy)  ECHO_C='\c';;
14761   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14762        ECHO_T=' ';;
14763   esac;;
14764 *)
14765   ECHO_N='-n';;
14766 esac
14767
14768 rm -f conf$$ conf$$.exe conf$$.file
14769 if test -d conf$$.dir; then
14770   rm -f conf$$.dir/conf$$.file
14771 else
14772   rm -f conf$$.dir
14773   mkdir conf$$.dir 2>/dev/null
14774 fi
14775 if (echo >conf$$.file) 2>/dev/null; then
14776   if ln -s conf$$.file conf$$ 2>/dev/null; then
14777     as_ln_s='ln -s'
14778     # ... but there are two gotchas:
14779     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14780     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14781     # In both cases, we have to default to `cp -p'.
14782     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14783       as_ln_s='cp -p'
14784   elif ln conf$$.file conf$$ 2>/dev/null; then
14785     as_ln_s=ln
14786   else
14787     as_ln_s='cp -p'
14788   fi
14789 else
14790   as_ln_s='cp -p'
14791 fi
14792 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14793 rmdir conf$$.dir 2>/dev/null
14794
14795
14796 # as_fn_mkdir_p
14797 # -------------
14798 # Create "$as_dir" as a directory, including parents if necessary.
14799 as_fn_mkdir_p ()
14800 {
14801
14802   case $as_dir in #(
14803   -*) as_dir=./$as_dir;;
14804   esac
14805   test -d "$as_dir" || eval $as_mkdir_p || {
14806     as_dirs=
14807     while :; do
14808       case $as_dir in #(
14809       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14810       *) as_qdir=$as_dir;;
14811       esac
14812       as_dirs="'$as_qdir' $as_dirs"
14813       as_dir=`$as_dirname -- "$as_dir" ||
14814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14815          X"$as_dir" : 'X\(//\)[^/]' \| \
14816          X"$as_dir" : 'X\(//\)$' \| \
14817          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14818 $as_echo X"$as_dir" |
14819     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14820             s//\1/
14821             q
14822           }
14823           /^X\(\/\/\)[^/].*/{
14824             s//\1/
14825             q
14826           }
14827           /^X\(\/\/\)$/{
14828             s//\1/
14829             q
14830           }
14831           /^X\(\/\).*/{
14832             s//\1/
14833             q
14834           }
14835           s/.*/./; q'`
14836       test -d "$as_dir" && break
14837     done
14838     test -z "$as_dirs" || eval "mkdir $as_dirs"
14839   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14840
14841
14842 } # as_fn_mkdir_p
14843 if mkdir -p . 2>/dev/null; then
14844   as_mkdir_p='mkdir -p "$as_dir"'
14845 else
14846   test -d ./-p && rmdir ./-p
14847   as_mkdir_p=false
14848 fi
14849
14850 if test -x / >/dev/null 2>&1; then
14851   as_test_x='test -x'
14852 else
14853   if ls -dL / >/dev/null 2>&1; then
14854     as_ls_L_option=L
14855   else
14856     as_ls_L_option=
14857   fi
14858   as_test_x='
14859     eval sh -c '\''
14860       if test -d "$1"; then
14861         test -d "$1/.";
14862       else
14863         case $1 in #(
14864         -*)set "./$1";;
14865         esac;
14866         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14867         ???[sx]*):;;*)false;;esac;fi
14868     '\'' sh
14869   '
14870 fi
14871 as_executable_p=$as_test_x
14872
14873 # Sed expression to map a string onto a valid CPP name.
14874 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14875
14876 # Sed expression to map a string onto a valid variable name.
14877 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14878
14879
14880 exec 6>&1
14881 ## ----------------------------------- ##
14882 ## Main body of $CONFIG_STATUS script. ##
14883 ## ----------------------------------- ##
14884 _ASEOF
14885 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14886
14887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14888 # Save the log message, to keep $0 and so on meaningful, and to
14889 # report actual input values of CONFIG_FILES etc. instead of their
14890 # values after options handling.
14891 ac_log="
14892 This file was extended by $as_me, which was
14893 generated by GNU Autoconf 2.68.  Invocation command line was
14894
14895   CONFIG_FILES    = $CONFIG_FILES
14896   CONFIG_HEADERS  = $CONFIG_HEADERS
14897   CONFIG_LINKS    = $CONFIG_LINKS
14898   CONFIG_COMMANDS = $CONFIG_COMMANDS
14899   $ $0 $@
14900
14901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14902 "
14903
14904 _ACEOF
14905
14906 case $ac_config_files in *"
14907 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14908 esac
14909
14910 case $ac_config_headers in *"
14911 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14912 esac
14913
14914
14915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14916 # Files that config.status was made for.
14917 config_files="$ac_config_files"
14918 config_headers="$ac_config_headers"
14919 config_commands="$ac_config_commands"
14920
14921 _ACEOF
14922
14923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14924 ac_cs_usage="\
14925 \`$as_me' instantiates files and other configuration actions
14926 from templates according to the current configuration.  Unless the files
14927 and actions are specified as TAGs, all are instantiated by default.
14928
14929 Usage: $0 [OPTION]... [TAG]...
14930
14931   -h, --help       print this help, then exit
14932   -V, --version    print version number and configuration settings, then exit
14933       --config     print configuration, then exit
14934   -q, --quiet, --silent
14935                    do not print progress messages
14936   -d, --debug      don't remove temporary files
14937       --recheck    update $as_me by reconfiguring in the same conditions
14938       --file=FILE[:TEMPLATE]
14939                    instantiate the configuration file FILE
14940       --header=FILE[:TEMPLATE]
14941                    instantiate the configuration header FILE
14942
14943 Configuration files:
14944 $config_files
14945
14946 Configuration headers:
14947 $config_headers
14948
14949 Configuration commands:
14950 $config_commands
14951
14952 Report bugs to the package provider."
14953
14954 _ACEOF
14955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14956 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14957 ac_cs_version="\\
14958 config.status
14959 configured by $0, generated by GNU Autoconf 2.68,
14960   with options \\"\$ac_cs_config\\"
14961
14962 Copyright (C) 2010 Free Software Foundation, Inc.
14963 This config.status script is free software; the Free Software Foundation
14964 gives unlimited permission to copy, distribute and modify it."
14965
14966 ac_pwd='$ac_pwd'
14967 srcdir='$srcdir'
14968 INSTALL='$INSTALL'
14969 MKDIR_P='$MKDIR_P'
14970 AWK='$AWK'
14971 test -n "\$AWK" || AWK=awk
14972 _ACEOF
14973
14974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14975 # The default lists apply if the user does not specify any file.
14976 ac_need_defaults=:
14977 while test $# != 0
14978 do
14979   case $1 in
14980   --*=?*)
14981     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14982     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14983     ac_shift=:
14984     ;;
14985   --*=)
14986     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14987     ac_optarg=
14988     ac_shift=:
14989     ;;
14990   *)
14991     ac_option=$1
14992     ac_optarg=$2
14993     ac_shift=shift
14994     ;;
14995   esac
14996
14997   case $ac_option in
14998   # Handling of the options.
14999   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15000     ac_cs_recheck=: ;;
15001   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15002     $as_echo "$ac_cs_version"; exit ;;
15003   --config | --confi | --conf | --con | --co | --c )
15004     $as_echo "$ac_cs_config"; exit ;;
15005   --debug | --debu | --deb | --de | --d | -d )
15006     debug=: ;;
15007   --file | --fil | --fi | --f )
15008     $ac_shift
15009     case $ac_optarg in
15010     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15011     '') as_fn_error $? "missing file argument" ;;
15012     esac
15013     as_fn_append CONFIG_FILES " '$ac_optarg'"
15014     ac_need_defaults=false;;
15015   --header | --heade | --head | --hea )
15016     $ac_shift
15017     case $ac_optarg in
15018     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15019     esac
15020     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15021     ac_need_defaults=false;;
15022   --he | --h)
15023     # Conflict between --help and --header
15024     as_fn_error $? "ambiguous option: \`$1'
15025 Try \`$0 --help' for more information.";;
15026   --help | --hel | -h )
15027     $as_echo "$ac_cs_usage"; exit ;;
15028   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15029   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15030     ac_cs_silent=: ;;
15031
15032   # This is an error.
15033   -*) as_fn_error $? "unrecognized option: \`$1'
15034 Try \`$0 --help' for more information." ;;
15035
15036   *) as_fn_append ac_config_targets " $1"
15037      ac_need_defaults=false ;;
15038
15039   esac
15040   shift
15041 done
15042
15043 ac_configure_extra_args=
15044
15045 if $ac_cs_silent; then
15046   exec 6>/dev/null
15047   ac_configure_extra_args="$ac_configure_extra_args --silent"
15048 fi
15049
15050 _ACEOF
15051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15052 if \$ac_cs_recheck; then
15053   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15054   shift
15055   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15056   CONFIG_SHELL='$SHELL'
15057   export CONFIG_SHELL
15058   exec "\$@"
15059 fi
15060
15061 _ACEOF
15062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15063 exec 5>>config.log
15064 {
15065   echo
15066   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15067 ## Running $as_me. ##
15068 _ASBOX
15069   $as_echo "$ac_log"
15070 } >&5
15071
15072 _ACEOF
15073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15074 #
15075 # INIT-COMMANDS
15076 #
15077 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15078
15079
15080 # The HP-UX ksh and POSIX shell print the target directory to stdout
15081 # if CDPATH is set.
15082 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15083
15084 sed_quote_subst='$sed_quote_subst'
15085 double_quote_subst='$double_quote_subst'
15086 delay_variable_subst='$delay_variable_subst'
15087 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15088 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15089 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15090 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15091 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15092 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15093 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15094 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15095 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15096 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15097 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15098 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15099 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15100 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15101 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15102 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15103 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15104 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15105 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15106 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15107 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15108 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15109 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15110 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15111 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15112 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15113 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15114 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15115 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15116 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15117 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15118 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15119 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15120 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15121 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15122 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15123 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15124 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15125 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15126 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15127 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15128 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15129 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15130 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15131 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15132 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15133 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15134 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15135 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15136 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15137 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15138 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15139 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15140 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15141 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15142 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15143 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15144 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"`'
15145 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15146 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15147 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15148 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15149 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15150 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15151 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15152 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15153 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15154 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15155 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15156 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15157 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15158 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15159 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15160 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15161 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15162 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15163 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15164 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15165 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15166 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15167 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15168 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15169 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15170 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15171 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15172 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15173 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15174 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15175 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15176 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15177 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15178 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15179 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15180 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15181 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15182 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15183 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15184 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15185 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15186 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15187 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15188 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15189 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15190 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15191 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15192 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15193 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15194 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15195 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15196 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15197 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15198 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15199 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15200 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15201 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15202 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15203 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15204 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15205 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15206 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15207 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15208 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15209 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15210 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15211 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15212 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15213 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15214 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15215 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15216 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15217 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15218
15219 LTCC='$LTCC'
15220 LTCFLAGS='$LTCFLAGS'
15221 compiler='$compiler_DEFAULT'
15222
15223 # A function that is used when there is no print builtin or printf.
15224 func_fallback_echo ()
15225 {
15226   eval 'cat <<_LTECHO_EOF
15227 \$1
15228 _LTECHO_EOF'
15229 }
15230
15231 # Quote evaled strings.
15232 for var in AS \
15233 DLLTOOL \
15234 OBJDUMP \
15235 SHELL \
15236 ECHO \
15237 PATH_SEPARATOR \
15238 SED \
15239 GREP \
15240 EGREP \
15241 FGREP \
15242 LD \
15243 NM \
15244 LN_S \
15245 lt_SP2NL \
15246 lt_NL2SP \
15247 reload_flag \
15248 deplibs_check_method \
15249 file_magic_cmd \
15250 file_magic_glob \
15251 want_nocaseglob \
15252 sharedlib_from_linklib_cmd \
15253 AR \
15254 AR_FLAGS \
15255 archiver_list_spec \
15256 STRIP \
15257 RANLIB \
15258 CC \
15259 CFLAGS \
15260 compiler \
15261 lt_cv_sys_global_symbol_pipe \
15262 lt_cv_sys_global_symbol_to_cdecl \
15263 lt_cv_sys_global_symbol_to_c_name_address \
15264 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15265 nm_file_list_spec \
15266 lt_prog_compiler_no_builtin_flag \
15267 lt_prog_compiler_pic \
15268 lt_prog_compiler_wl \
15269 lt_prog_compiler_static \
15270 lt_cv_prog_compiler_c_o \
15271 need_locks \
15272 MANIFEST_TOOL \
15273 DSYMUTIL \
15274 NMEDIT \
15275 LIPO \
15276 OTOOL \
15277 OTOOL64 \
15278 shrext_cmds \
15279 export_dynamic_flag_spec \
15280 whole_archive_flag_spec \
15281 compiler_needs_object \
15282 with_gnu_ld \
15283 allow_undefined_flag \
15284 no_undefined_flag \
15285 hardcode_libdir_flag_spec \
15286 hardcode_libdir_separator \
15287 exclude_expsyms \
15288 include_expsyms \
15289 file_list_spec \
15290 variables_saved_for_relink \
15291 libname_spec \
15292 library_names_spec \
15293 soname_spec \
15294 install_override_mode \
15295 finish_eval \
15296 old_striplib \
15297 striplib; do
15298     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15299     *[\\\\\\\`\\"\\\$]*)
15300       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15301       ;;
15302     *)
15303       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15304       ;;
15305     esac
15306 done
15307
15308 # Double-quote double-evaled strings.
15309 for var in reload_cmds \
15310 old_postinstall_cmds \
15311 old_postuninstall_cmds \
15312 old_archive_cmds \
15313 extract_expsyms_cmds \
15314 old_archive_from_new_cmds \
15315 old_archive_from_expsyms_cmds \
15316 archive_cmds \
15317 archive_expsym_cmds \
15318 module_cmds \
15319 module_expsym_cmds \
15320 export_symbols_cmds \
15321 prelink_cmds \
15322 postlink_cmds \
15323 postinstall_cmds \
15324 postuninstall_cmds \
15325 finish_cmds \
15326 sys_lib_search_path_spec \
15327 sys_lib_dlsearch_path_spec; do
15328     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15329     *[\\\\\\\`\\"\\\$]*)
15330       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15331       ;;
15332     *)
15333       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15334       ;;
15335     esac
15336 done
15337
15338 ac_aux_dir='$ac_aux_dir'
15339 xsi_shell='$xsi_shell'
15340 lt_shell_append='$lt_shell_append'
15341
15342 # See if we are running on zsh, and set the options which allow our
15343 # commands through without removal of \ escapes INIT.
15344 if test -n "\${ZSH_VERSION+set}" ; then
15345    setopt NO_GLOB_SUBST
15346 fi
15347
15348
15349     PACKAGE='$PACKAGE'
15350     VERSION='$VERSION'
15351     TIMESTAMP='$TIMESTAMP'
15352     RM='$RM'
15353     ofile='$ofile'
15354
15355
15356
15357
15358 _ACEOF
15359
15360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15361
15362 # Handling of arguments.
15363 for ac_config_target in $ac_config_targets
15364 do
15365   case $ac_config_target in
15366     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15367     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15368     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15369     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15370     "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
15371     "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
15372     "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;;
15373     "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
15374     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15375     "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
15376     "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
15377     "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
15378     "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
15379     "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
15380     "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
15381     "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
15382     "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
15383     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15384     "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
15385     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15386     "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
15387     "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
15388     "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
15389
15390   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15391   esac
15392 done
15393
15394
15395 # If the user did not use the arguments to specify the items to instantiate,
15396 # then the envvar interface is used.  Set only those that are not.
15397 # We use the long form for the default assignment because of an extremely
15398 # bizarre bug on SunOS 4.1.3.
15399 if $ac_need_defaults; then
15400   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15401   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15402   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15403 fi
15404
15405 # Have a temporary directory for convenience.  Make it in the build tree
15406 # simply because there is no reason against having it here, and in addition,
15407 # creating and moving files from /tmp can sometimes cause problems.
15408 # Hook for its removal unless debugging.
15409 # Note that there is a small window in which the directory will not be cleaned:
15410 # after its creation but before its name has been assigned to `$tmp'.
15411 $debug ||
15412 {
15413   tmp= ac_tmp=
15414   trap 'exit_status=$?
15415   : "${ac_tmp:=$tmp}"
15416   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15417 ' 0
15418   trap 'as_fn_exit 1' 1 2 13 15
15419 }
15420 # Create a (secure) tmp directory for tmp files.
15421
15422 {
15423   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15424   test -d "$tmp"
15425 }  ||
15426 {
15427   tmp=./conf$$-$RANDOM
15428   (umask 077 && mkdir "$tmp")
15429 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15430 ac_tmp=$tmp
15431
15432 # Set up the scripts for CONFIG_FILES section.
15433 # No need to generate them if there are no CONFIG_FILES.
15434 # This happens for instance with `./config.status config.h'.
15435 if test -n "$CONFIG_FILES"; then
15436
15437
15438 ac_cr=`echo X | tr X '\015'`
15439 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15440 # But we know of no other shell where ac_cr would be empty at this
15441 # point, so we can use a bashism as a fallback.
15442 if test "x$ac_cr" = x; then
15443   eval ac_cr=\$\'\\r\'
15444 fi
15445 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15446 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15447   ac_cs_awk_cr='\\r'
15448 else
15449   ac_cs_awk_cr=$ac_cr
15450 fi
15451
15452 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15453 _ACEOF
15454
15455
15456 {
15457   echo "cat >conf$$subs.awk <<_ACEOF" &&
15458   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15459   echo "_ACEOF"
15460 } >conf$$subs.sh ||
15461   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15462 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15463 ac_delim='%!_!# '
15464 for ac_last_try in false false false false false :; do
15465   . ./conf$$subs.sh ||
15466     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15467
15468   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15469   if test $ac_delim_n = $ac_delim_num; then
15470     break
15471   elif $ac_last_try; then
15472     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15473   else
15474     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15475   fi
15476 done
15477 rm -f conf$$subs.sh
15478
15479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15480 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15481 _ACEOF
15482 sed -n '
15483 h
15484 s/^/S["/; s/!.*/"]=/
15485 p
15486 g
15487 s/^[^!]*!//
15488 :repl
15489 t repl
15490 s/'"$ac_delim"'$//
15491 t delim
15492 :nl
15493 h
15494 s/\(.\{148\}\)..*/\1/
15495 t more1
15496 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15497 p
15498 n
15499 b repl
15500 :more1
15501 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15502 p
15503 g
15504 s/.\{148\}//
15505 t nl
15506 :delim
15507 h
15508 s/\(.\{148\}\)..*/\1/
15509 t more2
15510 s/["\\]/\\&/g; s/^/"/; s/$/"/
15511 p
15512 b
15513 :more2
15514 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15515 p
15516 g
15517 s/.\{148\}//
15518 t delim
15519 ' <conf$$subs.awk | sed '
15520 /^[^""]/{
15521   N
15522   s/\n//
15523 }
15524 ' >>$CONFIG_STATUS || ac_write_fail=1
15525 rm -f conf$$subs.awk
15526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15527 _ACAWK
15528 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15529   for (key in S) S_is_set[key] = 1
15530   FS = "\a"
15531
15532 }
15533 {
15534   line = $ 0
15535   nfields = split(line, field, "@")
15536   substed = 0
15537   len = length(field[1])
15538   for (i = 2; i < nfields; i++) {
15539     key = field[i]
15540     keylen = length(key)
15541     if (S_is_set[key]) {
15542       value = S[key]
15543       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15544       len += length(value) + length(field[++i])
15545       substed = 1
15546     } else
15547       len += 1 + keylen
15548   }
15549
15550   print line
15551 }
15552
15553 _ACAWK
15554 _ACEOF
15555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15556 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15557   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15558 else
15559   cat
15560 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15561   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15562 _ACEOF
15563
15564 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15565 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15566 # trailing colons and then remove the whole line if VPATH becomes empty
15567 # (actually we leave an empty line to preserve line numbers).
15568 if test "x$srcdir" = x.; then
15569   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15570 h
15571 s///
15572 s/^/:/
15573 s/[      ]*$/:/
15574 s/:\$(srcdir):/:/g
15575 s/:\${srcdir}:/:/g
15576 s/:@srcdir@:/:/g
15577 s/^:*//
15578 s/:*$//
15579 x
15580 s/\(=[   ]*\).*/\1/
15581 G
15582 s/\n//
15583 s/^[^=]*=[       ]*$//
15584 }'
15585 fi
15586
15587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15588 fi # test -n "$CONFIG_FILES"
15589
15590 # Set up the scripts for CONFIG_HEADERS section.
15591 # No need to generate them if there are no CONFIG_HEADERS.
15592 # This happens for instance with `./config.status Makefile'.
15593 if test -n "$CONFIG_HEADERS"; then
15594 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15595 BEGIN {
15596 _ACEOF
15597
15598 # Transform confdefs.h into an awk script `defines.awk', embedded as
15599 # here-document in config.status, that substitutes the proper values into
15600 # config.h.in to produce config.h.
15601
15602 # Create a delimiter string that does not exist in confdefs.h, to ease
15603 # handling of long lines.
15604 ac_delim='%!_!# '
15605 for ac_last_try in false false :; do
15606   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15607   if test -z "$ac_tt"; then
15608     break
15609   elif $ac_last_try; then
15610     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15611   else
15612     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15613   fi
15614 done
15615
15616 # For the awk script, D is an array of macro values keyed by name,
15617 # likewise P contains macro parameters if any.  Preserve backslash
15618 # newline sequences.
15619
15620 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15621 sed -n '
15622 s/.\{148\}/&'"$ac_delim"'/g
15623 t rset
15624 :rset
15625 s/^[     ]*#[    ]*define[       ][      ]*/ /
15626 t def
15627 d
15628 :def
15629 s/\\$//
15630 t bsnl
15631 s/["\\]/\\&/g
15632 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15633 D["\1"]=" \3"/p
15634 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15635 d
15636 :bsnl
15637 s/["\\]/\\&/g
15638 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15639 D["\1"]=" \3\\\\\\n"\\/p
15640 t cont
15641 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15642 t cont
15643 d
15644 :cont
15645 n
15646 s/.\{148\}/&'"$ac_delim"'/g
15647 t clear
15648 :clear
15649 s/\\$//
15650 t bsnlc
15651 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15652 d
15653 :bsnlc
15654 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15655 b cont
15656 ' <confdefs.h | sed '
15657 s/'"$ac_delim"'/"\\\
15658 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15659
15660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15661   for (key in D) D_is_set[key] = 1
15662   FS = "\a"
15663 }
15664 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15665   line = \$ 0
15666   split(line, arg, " ")
15667   if (arg[1] == "#") {
15668     defundef = arg[2]
15669     mac1 = arg[3]
15670   } else {
15671     defundef = substr(arg[1], 2)
15672     mac1 = arg[2]
15673   }
15674   split(mac1, mac2, "(") #)
15675   macro = mac2[1]
15676   prefix = substr(line, 1, index(line, defundef) - 1)
15677   if (D_is_set[macro]) {
15678     # Preserve the white space surrounding the "#".
15679     print prefix "define", macro P[macro] D[macro]
15680     next
15681   } else {
15682     # Replace #undef with comments.  This is necessary, for example,
15683     # in the case of _POSIX_SOURCE, which is predefined and required
15684     # on some systems where configure will not decide to define it.
15685     if (defundef == "undef") {
15686       print "/*", prefix defundef, macro, "*/"
15687       next
15688     }
15689   }
15690 }
15691 { print }
15692 _ACAWK
15693 _ACEOF
15694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15695   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15696 fi # test -n "$CONFIG_HEADERS"
15697
15698
15699 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15700 shift
15701 for ac_tag
15702 do
15703   case $ac_tag in
15704   :[FHLC]) ac_mode=$ac_tag; continue;;
15705   esac
15706   case $ac_mode$ac_tag in
15707   :[FHL]*:*);;
15708   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15709   :[FH]-) ac_tag=-:-;;
15710   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15711   esac
15712   ac_save_IFS=$IFS
15713   IFS=:
15714   set x $ac_tag
15715   IFS=$ac_save_IFS
15716   shift
15717   ac_file=$1
15718   shift
15719
15720   case $ac_mode in
15721   :L) ac_source=$1;;
15722   :[FH])
15723     ac_file_inputs=
15724     for ac_f
15725     do
15726       case $ac_f in
15727       -) ac_f="$ac_tmp/stdin";;
15728       *) # Look for the file first in the build tree, then in the source tree
15729          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15730          # because $ac_f cannot contain `:'.
15731          test -f "$ac_f" ||
15732            case $ac_f in
15733            [\\/$]*) false;;
15734            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15735            esac ||
15736            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15737       esac
15738       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15739       as_fn_append ac_file_inputs " '$ac_f'"
15740     done
15741
15742     # Let's still pretend it is `configure' which instantiates (i.e., don't
15743     # use $as_me), people would be surprised to read:
15744     #    /* config.h.  Generated by config.status.  */
15745     configure_input='Generated from '`
15746           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15747         `' by configure.'
15748     if test x"$ac_file" != x-; then
15749       configure_input="$ac_file.  $configure_input"
15750       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15751 $as_echo "$as_me: creating $ac_file" >&6;}
15752     fi
15753     # Neutralize special characters interpreted by sed in replacement strings.
15754     case $configure_input in #(
15755     *\&* | *\|* | *\\* )
15756        ac_sed_conf_input=`$as_echo "$configure_input" |
15757        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15758     *) ac_sed_conf_input=$configure_input;;
15759     esac
15760
15761     case $ac_tag in
15762     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15763       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15764     esac
15765     ;;
15766   esac
15767
15768   ac_dir=`$as_dirname -- "$ac_file" ||
15769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15770          X"$ac_file" : 'X\(//\)[^/]' \| \
15771          X"$ac_file" : 'X\(//\)$' \| \
15772          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15773 $as_echo X"$ac_file" |
15774     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15775             s//\1/
15776             q
15777           }
15778           /^X\(\/\/\)[^/].*/{
15779             s//\1/
15780             q
15781           }
15782           /^X\(\/\/\)$/{
15783             s//\1/
15784             q
15785           }
15786           /^X\(\/\).*/{
15787             s//\1/
15788             q
15789           }
15790           s/.*/./; q'`
15791   as_dir="$ac_dir"; as_fn_mkdir_p
15792   ac_builddir=.
15793
15794 case "$ac_dir" in
15795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15796 *)
15797   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15798   # A ".." for each directory in $ac_dir_suffix.
15799   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15800   case $ac_top_builddir_sub in
15801   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15802   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15803   esac ;;
15804 esac
15805 ac_abs_top_builddir=$ac_pwd
15806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15807 # for backward compatibility:
15808 ac_top_builddir=$ac_top_build_prefix
15809
15810 case $srcdir in
15811   .)  # We are building in place.
15812     ac_srcdir=.
15813     ac_top_srcdir=$ac_top_builddir_sub
15814     ac_abs_top_srcdir=$ac_pwd ;;
15815   [\\/]* | ?:[\\/]* )  # Absolute name.
15816     ac_srcdir=$srcdir$ac_dir_suffix;
15817     ac_top_srcdir=$srcdir
15818     ac_abs_top_srcdir=$srcdir ;;
15819   *) # Relative name.
15820     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15821     ac_top_srcdir=$ac_top_build_prefix$srcdir
15822     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15823 esac
15824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15825
15826
15827   case $ac_mode in
15828   :F)
15829   #
15830   # CONFIG_FILE
15831   #
15832
15833   case $INSTALL in
15834   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15835   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15836   esac
15837   ac_MKDIR_P=$MKDIR_P
15838   case $MKDIR_P in
15839   [\\/$]* | ?:[\\/]* ) ;;
15840   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15841   esac
15842 _ACEOF
15843
15844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15845 # If the template does not know about datarootdir, expand it.
15846 # FIXME: This hack should be removed a few years after 2.60.
15847 ac_datarootdir_hack=; ac_datarootdir_seen=
15848 ac_sed_dataroot='
15849 /datarootdir/ {
15850   p
15851   q
15852 }
15853 /@datadir@/p
15854 /@docdir@/p
15855 /@infodir@/p
15856 /@localedir@/p
15857 /@mandir@/p'
15858 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15859 *datarootdir*) ac_datarootdir_seen=yes;;
15860 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15861   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15862 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15863 _ACEOF
15864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15865   ac_datarootdir_hack='
15866   s&@datadir@&$datadir&g
15867   s&@docdir@&$docdir&g
15868   s&@infodir@&$infodir&g
15869   s&@localedir@&$localedir&g
15870   s&@mandir@&$mandir&g
15871   s&\\\${datarootdir}&$datarootdir&g' ;;
15872 esac
15873 _ACEOF
15874
15875 # Neutralize VPATH when `$srcdir' = `.'.
15876 # Shell code in configure.ac might set extrasub.
15877 # FIXME: do we really want to maintain this feature?
15878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15879 ac_sed_extra="$ac_vpsub
15880 $extrasub
15881 _ACEOF
15882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15883 :t
15884 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15885 s|@configure_input@|$ac_sed_conf_input|;t t
15886 s&@top_builddir@&$ac_top_builddir_sub&;t t
15887 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15888 s&@srcdir@&$ac_srcdir&;t t
15889 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15890 s&@top_srcdir@&$ac_top_srcdir&;t t
15891 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15892 s&@builddir@&$ac_builddir&;t t
15893 s&@abs_builddir@&$ac_abs_builddir&;t t
15894 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15895 s&@INSTALL@&$ac_INSTALL&;t t
15896 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15897 $ac_datarootdir_hack
15898 "
15899 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15900   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15901
15902 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15903   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15904   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15905       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15906   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15907 which seems to be undefined.  Please make sure it is defined" >&5
15908 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15909 which seems to be undefined.  Please make sure it is defined" >&2;}
15910
15911   rm -f "$ac_tmp/stdin"
15912   case $ac_file in
15913   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15914   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15915   esac \
15916   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15917  ;;
15918   :H)
15919   #
15920   # CONFIG_HEADER
15921   #
15922   if test x"$ac_file" != x-; then
15923     {
15924       $as_echo "/* $configure_input  */" \
15925       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15926     } >"$ac_tmp/config.h" \
15927       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15928     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15929       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15930 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15931     else
15932       rm -f "$ac_file"
15933       mv "$ac_tmp/config.h" "$ac_file" \
15934         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15935     fi
15936   else
15937     $as_echo "/* $configure_input  */" \
15938       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15939       || as_fn_error $? "could not create -" "$LINENO" 5
15940   fi
15941 # Compute "$ac_file"'s index in $config_headers.
15942 _am_arg="$ac_file"
15943 _am_stamp_count=1
15944 for _am_header in $config_headers :; do
15945   case $_am_header in
15946     $_am_arg | $_am_arg:* )
15947       break ;;
15948     * )
15949       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15950   esac
15951 done
15952 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15953 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15954          X"$_am_arg" : 'X\(//\)[^/]' \| \
15955          X"$_am_arg" : 'X\(//\)$' \| \
15956          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15957 $as_echo X"$_am_arg" |
15958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15959             s//\1/
15960             q
15961           }
15962           /^X\(\/\/\)[^/].*/{
15963             s//\1/
15964             q
15965           }
15966           /^X\(\/\/\)$/{
15967             s//\1/
15968             q
15969           }
15970           /^X\(\/\).*/{
15971             s//\1/
15972             q
15973           }
15974           s/.*/./; q'`/stamp-h$_am_stamp_count
15975  ;;
15976
15977   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15978 $as_echo "$as_me: executing $ac_file commands" >&6;}
15979  ;;
15980   esac
15981
15982
15983   case $ac_file$ac_mode in
15984     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15985   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15986   # are listed without --file.  Let's play safe and only enable the eval
15987   # if we detect the quoting.
15988   case $CONFIG_FILES in
15989   *\'*) eval set x "$CONFIG_FILES" ;;
15990   *)   set x $CONFIG_FILES ;;
15991   esac
15992   shift
15993   for mf
15994   do
15995     # Strip MF so we end up with the name of the file.
15996     mf=`echo "$mf" | sed -e 's/:.*$//'`
15997     # Check whether this is an Automake generated Makefile or not.
15998     # We used to match only the files named `Makefile.in', but
15999     # some people rename them; so instead we look at the file content.
16000     # Grep'ing the first line is not enough: some people post-process
16001     # each Makefile.in and add a new line on top of each file to say so.
16002     # Grep'ing the whole file is not good either: AIX grep has a line
16003     # limit of 2048, but all sed's we know have understand at least 4000.
16004     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16005       dirpart=`$as_dirname -- "$mf" ||
16006 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16007          X"$mf" : 'X\(//\)[^/]' \| \
16008          X"$mf" : 'X\(//\)$' \| \
16009          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16010 $as_echo X"$mf" |
16011     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16012             s//\1/
16013             q
16014           }
16015           /^X\(\/\/\)[^/].*/{
16016             s//\1/
16017             q
16018           }
16019           /^X\(\/\/\)$/{
16020             s//\1/
16021             q
16022           }
16023           /^X\(\/\).*/{
16024             s//\1/
16025             q
16026           }
16027           s/.*/./; q'`
16028     else
16029       continue
16030     fi
16031     # Extract the definition of DEPDIR, am__include, and am__quote
16032     # from the Makefile without running `make'.
16033     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16034     test -z "$DEPDIR" && continue
16035     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16036     test -z "am__include" && continue
16037     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16038     # When using ansi2knr, U may be empty or an underscore; expand it
16039     U=`sed -n 's/^U = //p' < "$mf"`
16040     # Find all dependency output files, they are included files with
16041     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16042     # simplest approach to changing $(DEPDIR) to its actual value in the
16043     # expansion.
16044     for file in `sed -n "
16045       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16046          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16047       # Make sure the directory exists.
16048       test -f "$dirpart/$file" && continue
16049       fdir=`$as_dirname -- "$file" ||
16050 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16051          X"$file" : 'X\(//\)[^/]' \| \
16052          X"$file" : 'X\(//\)$' \| \
16053          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16054 $as_echo X"$file" |
16055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16056             s//\1/
16057             q
16058           }
16059           /^X\(\/\/\)[^/].*/{
16060             s//\1/
16061             q
16062           }
16063           /^X\(\/\/\)$/{
16064             s//\1/
16065             q
16066           }
16067           /^X\(\/\).*/{
16068             s//\1/
16069             q
16070           }
16071           s/.*/./; q'`
16072       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16073       # echo "creating $dirpart/$file"
16074       echo '# dummy' > "$dirpart/$file"
16075     done
16076   done
16077 }
16078  ;;
16079     "libtool":C)
16080
16081     # See if we are running on zsh, and set the options which allow our
16082     # commands through without removal of \ escapes.
16083     if test -n "${ZSH_VERSION+set}" ; then
16084       setopt NO_GLOB_SUBST
16085     fi
16086
16087     cfgfile="${ofile}T"
16088     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16089     $RM "$cfgfile"
16090
16091     cat <<_LT_EOF >> "$cfgfile"
16092 #! $SHELL
16093
16094 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16095 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16096 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16097 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16098 #
16099 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16100 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16101 #                 Foundation, Inc.
16102 #   Written by Gordon Matzigkeit, 1996
16103 #
16104 #   This file is part of GNU Libtool.
16105 #
16106 # GNU Libtool is free software; you can redistribute it and/or
16107 # modify it under the terms of the GNU General Public License as
16108 # published by the Free Software Foundation; either version 2 of
16109 # the License, or (at your option) any later version.
16110 #
16111 # As a special exception to the GNU General Public License,
16112 # if you distribute this file as part of a program or library that
16113 # is built using GNU Libtool, you may include this file under the
16114 # same distribution terms that you use for the rest of that program.
16115 #
16116 # GNU Libtool is distributed in the hope that it will be useful,
16117 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16118 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16119 # GNU General Public License for more details.
16120 #
16121 # You should have received a copy of the GNU General Public License
16122 # along with GNU Libtool; see the file COPYING.  If not, a copy
16123 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16124 # obtained by writing to the Free Software Foundation, Inc.,
16125 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16126
16127
16128 # The names of the tagged configurations supported by this script.
16129 available_tags=""
16130
16131 # ### BEGIN LIBTOOL CONFIG
16132
16133 # Assembler program.
16134 AS=$lt_AS
16135
16136 # DLL creation program.
16137 DLLTOOL=$lt_DLLTOOL
16138
16139 # Object dumper program.
16140 OBJDUMP=$lt_OBJDUMP
16141
16142 # Which release of libtool.m4 was used?
16143 macro_version=$macro_version
16144 macro_revision=$macro_revision
16145
16146 # Whether or not to build shared libraries.
16147 build_libtool_libs=$enable_shared
16148
16149 # Whether or not to build static libraries.
16150 build_old_libs=$enable_static
16151
16152 # What type of objects to build.
16153 pic_mode=$pic_mode
16154
16155 # Whether or not to optimize for fast installation.
16156 fast_install=$enable_fast_install
16157
16158 # Shell to use when invoking shell scripts.
16159 SHELL=$lt_SHELL
16160
16161 # An echo program that protects backslashes.
16162 ECHO=$lt_ECHO
16163
16164 # The PATH separator for the build system.
16165 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16166
16167 # The host system.
16168 host_alias=$host_alias
16169 host=$host
16170 host_os=$host_os
16171
16172 # The build system.
16173 build_alias=$build_alias
16174 build=$build
16175 build_os=$build_os
16176
16177 # A sed program that does not truncate output.
16178 SED=$lt_SED
16179
16180 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16181 Xsed="\$SED -e 1s/^X//"
16182
16183 # A grep program that handles long lines.
16184 GREP=$lt_GREP
16185
16186 # An ERE matcher.
16187 EGREP=$lt_EGREP
16188
16189 # A literal string matcher.
16190 FGREP=$lt_FGREP
16191
16192 # A BSD- or MS-compatible name lister.
16193 NM=$lt_NM
16194
16195 # Whether we need soft or hard links.
16196 LN_S=$lt_LN_S
16197
16198 # What is the maximum length of a command?
16199 max_cmd_len=$max_cmd_len
16200
16201 # Object file suffix (normally "o").
16202 objext=$ac_objext
16203
16204 # Executable file suffix (normally "").
16205 exeext=$exeext
16206
16207 # whether the shell understands "unset".
16208 lt_unset=$lt_unset
16209
16210 # turn spaces into newlines.
16211 SP2NL=$lt_lt_SP2NL
16212
16213 # turn newlines into spaces.
16214 NL2SP=$lt_lt_NL2SP
16215
16216 # convert \$build file names to \$host format.
16217 to_host_file_cmd=$lt_cv_to_host_file_cmd
16218
16219 # convert \$build files to toolchain format.
16220 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16221
16222 # Method to check whether dependent libraries are shared objects.
16223 deplibs_check_method=$lt_deplibs_check_method
16224
16225 # Command to use when deplibs_check_method = "file_magic".
16226 file_magic_cmd=$lt_file_magic_cmd
16227
16228 # How to find potential files when deplibs_check_method = "file_magic".
16229 file_magic_glob=$lt_file_magic_glob
16230
16231 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16232 want_nocaseglob=$lt_want_nocaseglob
16233
16234 # Command to associate shared and link libraries.
16235 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16236
16237 # The archiver.
16238 AR=$lt_AR
16239
16240 # Flags to create an archive.
16241 AR_FLAGS=$lt_AR_FLAGS
16242
16243 # How to feed a file listing to the archiver.
16244 archiver_list_spec=$lt_archiver_list_spec
16245
16246 # A symbol stripping program.
16247 STRIP=$lt_STRIP
16248
16249 # Commands used to install an old-style archive.
16250 RANLIB=$lt_RANLIB
16251 old_postinstall_cmds=$lt_old_postinstall_cmds
16252 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16253
16254 # Whether to use a lock for old archive extraction.
16255 lock_old_archive_extraction=$lock_old_archive_extraction
16256
16257 # A C compiler.
16258 LTCC=$lt_CC
16259
16260 # LTCC compiler flags.
16261 LTCFLAGS=$lt_CFLAGS
16262
16263 # Take the output of nm and produce a listing of raw symbols and C names.
16264 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16265
16266 # Transform the output of nm in a proper C declaration.
16267 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16268
16269 # Transform the output of nm in a C name address pair.
16270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16271
16272 # Transform the output of nm in a C name address pair when lib prefix is needed.
16273 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16274
16275 # Specify filename containing input files for \$NM.
16276 nm_file_list_spec=$lt_nm_file_list_spec
16277
16278 # The root where to search for dependent libraries,and in which our libraries should be installed.
16279 lt_sysroot=$lt_sysroot
16280
16281 # The name of the directory that contains temporary libtool files.
16282 objdir=$objdir
16283
16284 # Used to examine libraries when file_magic_cmd begins with "file".
16285 MAGIC_CMD=$MAGIC_CMD
16286
16287 # Must we lock files when doing compilation?
16288 need_locks=$lt_need_locks
16289
16290 # Manifest tool.
16291 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16292
16293 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16294 DSYMUTIL=$lt_DSYMUTIL
16295
16296 # Tool to change global to local symbols on Mac OS X.
16297 NMEDIT=$lt_NMEDIT
16298
16299 # Tool to manipulate fat objects and archives on Mac OS X.
16300 LIPO=$lt_LIPO
16301
16302 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16303 OTOOL=$lt_OTOOL
16304
16305 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16306 OTOOL64=$lt_OTOOL64
16307
16308 # Old archive suffix (normally "a").
16309 libext=$libext
16310
16311 # Shared library suffix (normally ".so").
16312 shrext_cmds=$lt_shrext_cmds
16313
16314 # The commands to extract the exported symbol list from a shared archive.
16315 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16316
16317 # Variables whose values should be saved in libtool wrapper scripts and
16318 # restored at link time.
16319 variables_saved_for_relink=$lt_variables_saved_for_relink
16320
16321 # Do we need the "lib" prefix for modules?
16322 need_lib_prefix=$need_lib_prefix
16323
16324 # Do we need a version for libraries?
16325 need_version=$need_version
16326
16327 # Library versioning type.
16328 version_type=$version_type
16329
16330 # Shared library runtime path variable.
16331 runpath_var=$runpath_var
16332
16333 # Shared library path variable.
16334 shlibpath_var=$shlibpath_var
16335
16336 # Is shlibpath searched before the hard-coded library search path?
16337 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16338
16339 # Format of library name prefix.
16340 libname_spec=$lt_libname_spec
16341
16342 # List of archive names.  First name is the real one, the rest are links.
16343 # The last name is the one that the linker finds with -lNAME
16344 library_names_spec=$lt_library_names_spec
16345
16346 # The coded name of the library, if different from the real name.
16347 soname_spec=$lt_soname_spec
16348
16349 # Permission mode override for installation of shared libraries.
16350 install_override_mode=$lt_install_override_mode
16351
16352 # Command to use after installation of a shared archive.
16353 postinstall_cmds=$lt_postinstall_cmds
16354
16355 # Command to use after uninstallation of a shared archive.
16356 postuninstall_cmds=$lt_postuninstall_cmds
16357
16358 # Commands used to finish a libtool library installation in a directory.
16359 finish_cmds=$lt_finish_cmds
16360
16361 # As "finish_cmds", except a single script fragment to be evaled but
16362 # not shown.
16363 finish_eval=$lt_finish_eval
16364
16365 # Whether we should hardcode library paths into libraries.
16366 hardcode_into_libs=$hardcode_into_libs
16367
16368 # Compile-time system search path for libraries.
16369 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16370
16371 # Run-time system search path for libraries.
16372 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16373
16374 # Whether dlopen is supported.
16375 dlopen_support=$enable_dlopen
16376
16377 # Whether dlopen of programs is supported.
16378 dlopen_self=$enable_dlopen_self
16379
16380 # Whether dlopen of statically linked programs is supported.
16381 dlopen_self_static=$enable_dlopen_self_static
16382
16383 # Commands to strip libraries.
16384 old_striplib=$lt_old_striplib
16385 striplib=$lt_striplib
16386
16387
16388 # The linker used to build libraries.
16389 LD=$lt_LD
16390
16391 # How to create reloadable object files.
16392 reload_flag=$lt_reload_flag
16393 reload_cmds=$lt_reload_cmds
16394
16395 # Commands used to build an old-style archive.
16396 old_archive_cmds=$lt_old_archive_cmds
16397
16398 # A language specific compiler.
16399 CC=$lt_compiler
16400
16401 # Is the compiler the GNU compiler?
16402 with_gcc=$GCC
16403
16404 # Compiler flag to turn off builtin functions.
16405 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16406
16407 # Additional compiler flags for building library objects.
16408 pic_flag=$lt_lt_prog_compiler_pic
16409
16410 # How to pass a linker flag through the compiler.
16411 wl=$lt_lt_prog_compiler_wl
16412
16413 # Compiler flag to prevent dynamic linking.
16414 link_static_flag=$lt_lt_prog_compiler_static
16415
16416 # Does compiler simultaneously support -c and -o options?
16417 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16418
16419 # Whether or not to add -lc for building shared libraries.
16420 build_libtool_need_lc=$archive_cmds_need_lc
16421
16422 # Whether or not to disallow shared libs when runtime libs are static.
16423 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16424
16425 # Compiler flag to allow reflexive dlopens.
16426 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16427
16428 # Compiler flag to generate shared objects directly from archives.
16429 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16430
16431 # Whether the compiler copes with passing no objects directly.
16432 compiler_needs_object=$lt_compiler_needs_object
16433
16434 # Create an old-style archive from a shared archive.
16435 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16436
16437 # Create a temporary old-style archive to link instead of a shared archive.
16438 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16439
16440 # Commands used to build a shared archive.
16441 archive_cmds=$lt_archive_cmds
16442 archive_expsym_cmds=$lt_archive_expsym_cmds
16443
16444 # Commands used to build a loadable module if different from building
16445 # a shared archive.
16446 module_cmds=$lt_module_cmds
16447 module_expsym_cmds=$lt_module_expsym_cmds
16448
16449 # Whether we are building with GNU ld or not.
16450 with_gnu_ld=$lt_with_gnu_ld
16451
16452 # Flag that allows shared libraries with undefined symbols to be built.
16453 allow_undefined_flag=$lt_allow_undefined_flag
16454
16455 # Flag that enforces no undefined symbols.
16456 no_undefined_flag=$lt_no_undefined_flag
16457
16458 # Flag to hardcode \$libdir into a binary during linking.
16459 # This must work even if \$libdir does not exist
16460 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16461
16462 # Whether we need a single "-rpath" flag with a separated argument.
16463 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16464
16465 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16466 # DIR into the resulting binary.
16467 hardcode_direct=$hardcode_direct
16468
16469 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16470 # DIR into the resulting binary and the resulting library dependency is
16471 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16472 # library is relocated.
16473 hardcode_direct_absolute=$hardcode_direct_absolute
16474
16475 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16476 # into the resulting binary.
16477 hardcode_minus_L=$hardcode_minus_L
16478
16479 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16480 # into the resulting binary.
16481 hardcode_shlibpath_var=$hardcode_shlibpath_var
16482
16483 # Set to "yes" if building a shared library automatically hardcodes DIR
16484 # into the library and all subsequent libraries and executables linked
16485 # against it.
16486 hardcode_automatic=$hardcode_automatic
16487
16488 # Set to yes if linker adds runtime paths of dependent libraries
16489 # to runtime path list.
16490 inherit_rpath=$inherit_rpath
16491
16492 # Whether libtool must link a program against all its dependency libraries.
16493 link_all_deplibs=$link_all_deplibs
16494
16495 # Set to "yes" if exported symbols are required.
16496 always_export_symbols=$always_export_symbols
16497
16498 # The commands to list exported symbols.
16499 export_symbols_cmds=$lt_export_symbols_cmds
16500
16501 # Symbols that should not be listed in the preloaded symbols.
16502 exclude_expsyms=$lt_exclude_expsyms
16503
16504 # Symbols that must always be exported.
16505 include_expsyms=$lt_include_expsyms
16506
16507 # Commands necessary for linking programs (against libraries) with templates.
16508 prelink_cmds=$lt_prelink_cmds
16509
16510 # Commands necessary for finishing linking programs.
16511 postlink_cmds=$lt_postlink_cmds
16512
16513 # Specify filename containing input files.
16514 file_list_spec=$lt_file_list_spec
16515
16516 # How to hardcode a shared library path into an executable.
16517 hardcode_action=$hardcode_action
16518
16519 # ### END LIBTOOL CONFIG
16520
16521 _LT_EOF
16522
16523   case $host_os in
16524   aix3*)
16525     cat <<\_LT_EOF >> "$cfgfile"
16526 # AIX sometimes has problems with the GCC collect2 program.  For some
16527 # reason, if we set the COLLECT_NAMES environment variable, the problems
16528 # vanish in a puff of smoke.
16529 if test "X${COLLECT_NAMES+set}" != Xset; then
16530   COLLECT_NAMES=
16531   export COLLECT_NAMES
16532 fi
16533 _LT_EOF
16534     ;;
16535   esac
16536
16537
16538 ltmain="$ac_aux_dir/ltmain.sh"
16539
16540
16541   # We use sed instead of cat because bash on DJGPP gets confused if
16542   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16543   # text mode, it properly converts lines to CR/LF.  This bash problem
16544   # is reportedly fixed, but why not run on old versions too?
16545   sed '$q' "$ltmain" >> "$cfgfile" \
16546      || (rm -f "$cfgfile"; exit 1)
16547
16548   if test x"$xsi_shell" = xyes; then
16549   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16550 func_dirname ()\
16551 {\
16552 \    case ${1} in\
16553 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16554 \      *  ) func_dirname_result="${3}" ;;\
16555 \    esac\
16556 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16557   && mv -f "$cfgfile.tmp" "$cfgfile" \
16558     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16559 test 0 -eq $? || _lt_function_replace_fail=:
16560
16561
16562   sed -e '/^func_basename ()$/,/^} # func_basename /c\
16563 func_basename ()\
16564 {\
16565 \    func_basename_result="${1##*/}"\
16566 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16567   && mv -f "$cfgfile.tmp" "$cfgfile" \
16568     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16569 test 0 -eq $? || _lt_function_replace_fail=:
16570
16571
16572   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16573 func_dirname_and_basename ()\
16574 {\
16575 \    case ${1} in\
16576 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16577 \      *  ) func_dirname_result="${3}" ;;\
16578 \    esac\
16579 \    func_basename_result="${1##*/}"\
16580 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16581   && mv -f "$cfgfile.tmp" "$cfgfile" \
16582     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16583 test 0 -eq $? || _lt_function_replace_fail=:
16584
16585
16586   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16587 func_stripname ()\
16588 {\
16589 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16590 \    # positional parameters, so assign one to ordinary parameter first.\
16591 \    func_stripname_result=${3}\
16592 \    func_stripname_result=${func_stripname_result#"${1}"}\
16593 \    func_stripname_result=${func_stripname_result%"${2}"}\
16594 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16595   && mv -f "$cfgfile.tmp" "$cfgfile" \
16596     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16597 test 0 -eq $? || _lt_function_replace_fail=:
16598
16599
16600   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16601 func_split_long_opt ()\
16602 {\
16603 \    func_split_long_opt_name=${1%%=*}\
16604 \    func_split_long_opt_arg=${1#*=}\
16605 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16606   && mv -f "$cfgfile.tmp" "$cfgfile" \
16607     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16608 test 0 -eq $? || _lt_function_replace_fail=:
16609
16610
16611   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16612 func_split_short_opt ()\
16613 {\
16614 \    func_split_short_opt_arg=${1#??}\
16615 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16616 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16617   && mv -f "$cfgfile.tmp" "$cfgfile" \
16618     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16619 test 0 -eq $? || _lt_function_replace_fail=:
16620
16621
16622   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16623 func_lo2o ()\
16624 {\
16625 \    case ${1} in\
16626 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16627 \      *)    func_lo2o_result=${1} ;;\
16628 \    esac\
16629 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16630   && mv -f "$cfgfile.tmp" "$cfgfile" \
16631     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16632 test 0 -eq $? || _lt_function_replace_fail=:
16633
16634
16635   sed -e '/^func_xform ()$/,/^} # func_xform /c\
16636 func_xform ()\
16637 {\
16638     func_xform_result=${1%.*}.lo\
16639 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16640   && mv -f "$cfgfile.tmp" "$cfgfile" \
16641     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16642 test 0 -eq $? || _lt_function_replace_fail=:
16643
16644
16645   sed -e '/^func_arith ()$/,/^} # func_arith /c\
16646 func_arith ()\
16647 {\
16648     func_arith_result=$(( $* ))\
16649 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16650   && mv -f "$cfgfile.tmp" "$cfgfile" \
16651     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16652 test 0 -eq $? || _lt_function_replace_fail=:
16653
16654
16655   sed -e '/^func_len ()$/,/^} # func_len /c\
16656 func_len ()\
16657 {\
16658     func_len_result=${#1}\
16659 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16660   && mv -f "$cfgfile.tmp" "$cfgfile" \
16661     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16662 test 0 -eq $? || _lt_function_replace_fail=:
16663
16664 fi
16665
16666 if test x"$lt_shell_append" = xyes; then
16667   sed -e '/^func_append ()$/,/^} # func_append /c\
16668 func_append ()\
16669 {\
16670     eval "${1}+=\\${2}"\
16671 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16672   && mv -f "$cfgfile.tmp" "$cfgfile" \
16673     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16674 test 0 -eq $? || _lt_function_replace_fail=:
16675
16676
16677   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16678 func_append_quoted ()\
16679 {\
16680 \    func_quote_for_eval "${2}"\
16681 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16682 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16683   && mv -f "$cfgfile.tmp" "$cfgfile" \
16684     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16685 test 0 -eq $? || _lt_function_replace_fail=:
16686
16687
16688   # Save a `func_append' function call where possible by direct use of '+='
16689   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16690     && mv -f "$cfgfile.tmp" "$cfgfile" \
16691       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16692   test 0 -eq $? || _lt_function_replace_fail=:
16693 else
16694   # Save a `func_append' function call even when '+=' is not available
16695   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16696     && mv -f "$cfgfile.tmp" "$cfgfile" \
16697       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16698   test 0 -eq $? || _lt_function_replace_fail=:
16699 fi
16700
16701 if test x"$_lt_function_replace_fail" = x":"; then
16702   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16703 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16704 fi
16705
16706
16707    mv -f "$cfgfile" "$ofile" ||
16708     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16709   chmod +x "$ofile"
16710
16711  ;;
16712
16713   esac
16714 done # for ac_tag
16715
16716
16717 as_fn_exit 0
16718 _ACEOF
16719 ac_clean_files=$ac_clean_files_save
16720
16721 test $ac_write_fail = 0 ||
16722   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16723
16724
16725 # configure is writing to config.log, and then calls config.status.
16726 # config.status does its own redirection, appending to config.log.
16727 # Unfortunately, on DOS this fails, as config.log is still kept open
16728 # by configure, so config.status won't be able to write to it; its
16729 # output is simply discarded.  So we exec the FD to /dev/null,
16730 # effectively closing config.log, so it can be properly (re)opened and
16731 # appended to by config.status.  When coming back to configure, we
16732 # need to make the FD available again.
16733 if test "$no_create" != yes; then
16734   ac_cs_success=:
16735   ac_config_status_args=
16736   test "$silent" = yes &&
16737     ac_config_status_args="$ac_config_status_args --quiet"
16738   exec 5>/dev/null
16739   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16740   exec 5>>config.log
16741   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16742   # would make configure fail if this is the last instruction.
16743   $ac_cs_success || as_fn_exit 1
16744 fi
16745 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16746   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16747 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16748 fi
16749