Upload tizen 2.0 beta source
[framework/graphics/freetype.git] / builds / unix / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for FreeType 2.4.9.
4 #
5 # Report bugs to <freetype@nongnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: freetype@nongnu.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='FreeType'
572 PACKAGE_TARNAME='freetype'
573 PACKAGE_VERSION='2.4.9'
574 PACKAGE_STRING='FreeType 2.4.9'
575 PACKAGE_BUGREPORT='freetype@nongnu.org'
576 PACKAGE_URL=''
577
578 ac_unique_file="ftconfig.in"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_header_list=
616 ac_subst_vars='LTLIBOBJS
617 LIBOBJS
618 build_libtool_libs
619 wl
620 hardcode_libdir_flag_spec
621 OTOOL64
622 OTOOL
623 LIPO
624 NMEDIT
625 DSYMUTIL
626 MANIFEST_TOOL
627 AWK
628 RANLIB
629 STRIP
630 ac_ct_AR
631 AR
632 LN_S
633 NM
634 ac_ct_DUMPBIN
635 DUMPBIN
636 LD
637 FGREP
638 SED
639 LIBTOOL
640 OBJDUMP
641 DLLTOOL
642 AS
643 SYSTEM_ZLIB
644 FT2_EXTRA_LIBS
645 LIBBZ2
646 LIBZ
647 ftmac_c
648 FTSYS_SRC
649 EGREP
650 GREP
651 INSTALL_DATA
652 INSTALL_SCRIPT
653 INSTALL_PROGRAM
654 RMDIR
655 RMF
656 XX_ANSIFLAGS
657 XX_CFLAGS
658 EXEEXT_BUILD
659 CC_BUILD
660 CPP
661 OBJEXT
662 EXEEXT
663 ac_ct_CC
664 CPPFLAGS
665 LDFLAGS
666 CFLAGS
667 CC
668 host_os
669 host_vendor
670 host_cpu
671 host
672 build_os
673 build_vendor
674 build_cpu
675 build
676 ft_version
677 version_info
678 target_alias
679 host_alias
680 build_alias
681 LIBS
682 ECHO_T
683 ECHO_N
684 ECHO_C
685 DEFS
686 mandir
687 localedir
688 libdir
689 psdir
690 pdfdir
691 dvidir
692 htmldir
693 infodir
694 docdir
695 oldincludedir
696 includedir
697 localstatedir
698 sharedstatedir
699 sysconfdir
700 datadir
701 datarootdir
702 libexecdir
703 sbindir
704 bindir
705 program_transform_name
706 prefix
707 exec_prefix
708 PACKAGE_URL
709 PACKAGE_BUGREPORT
710 PACKAGE_STRING
711 PACKAGE_VERSION
712 PACKAGE_TARNAME
713 PACKAGE_NAME
714 PATH_SEPARATOR
715 SHELL'
716 ac_subst_files=''
717 ac_user_opts='
718 enable_option_checking
719 enable_biarch_config
720 enable_mmap
721 with_zlib
722 with_bzip2
723 with_old_mac_fonts
724 with_fsspec
725 with_fsref
726 with_quickdraw_toolbox
727 with_quickdraw_carbon
728 with_ats
729 enable_shared
730 enable_static
731 with_pic
732 enable_fast_install
733 with_gnu_ld
734 with_sysroot
735 enable_libtool_lock
736 '
737       ac_precious_vars='build_alias
738 host_alias
739 target_alias
740 CC
741 CFLAGS
742 LDFLAGS
743 LIBS
744 CPPFLAGS
745 CPP'
746
747
748 # Initialize some variables set by options.
749 ac_init_help=
750 ac_init_version=false
751 ac_unrecognized_opts=
752 ac_unrecognized_sep=
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
755 cache_file=/dev/null
756 exec_prefix=NONE
757 no_create=
758 no_recursion=
759 prefix=NONE
760 program_prefix=NONE
761 program_suffix=NONE
762 program_transform_name=s,x,x,
763 silent=
764 site=
765 srcdir=
766 verbose=
767 x_includes=NONE
768 x_libraries=NONE
769
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir='${exec_prefix}/bin'
777 sbindir='${exec_prefix}/sbin'
778 libexecdir='${exec_prefix}/libexec'
779 datarootdir='${prefix}/share'
780 datadir='${datarootdir}'
781 sysconfdir='${prefix}/etc'
782 sharedstatedir='${prefix}/com'
783 localstatedir='${prefix}/var'
784 includedir='${prefix}/include'
785 oldincludedir='/usr/include'
786 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir='${datarootdir}/info'
788 htmldir='${docdir}'
789 dvidir='${docdir}'
790 pdfdir='${docdir}'
791 psdir='${docdir}'
792 libdir='${exec_prefix}/lib'
793 localedir='${datarootdir}/locale'
794 mandir='${datarootdir}/man'
795
796 ac_prev=
797 ac_dashdash=
798 for ac_option
799 do
800   # If the previous option needs an argument, assign it.
801   if test -n "$ac_prev"; then
802     eval $ac_prev=\$ac_option
803     ac_prev=
804     continue
805   fi
806
807   case $ac_option in
808   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809   *=)   ac_optarg= ;;
810   *)    ac_optarg=yes ;;
811   esac
812
813   # Accept the important Cygnus configure options, so we can diagnose typos.
814
815   case $ac_dashdash$ac_option in
816   --)
817     ac_dashdash=yes ;;
818
819   -bindir | --bindir | --bindi | --bind | --bin | --bi)
820     ac_prev=bindir ;;
821   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822     bindir=$ac_optarg ;;
823
824   -build | --build | --buil | --bui | --bu)
825     ac_prev=build_alias ;;
826   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827     build_alias=$ac_optarg ;;
828
829   -cache-file | --cache-file | --cache-fil | --cache-fi \
830   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831     ac_prev=cache_file ;;
832   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834     cache_file=$ac_optarg ;;
835
836   --config-cache | -C)
837     cache_file=config.cache ;;
838
839   -datadir | --datadir | --datadi | --datad)
840     ac_prev=datadir ;;
841   -datadir=* | --datadir=* | --datadi=* | --datad=*)
842     datadir=$ac_optarg ;;
843
844   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845   | --dataroo | --dataro | --datar)
846     ac_prev=datarootdir ;;
847   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849     datarootdir=$ac_optarg ;;
850
851   -disable-* | --disable-*)
852     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853     # Reject names that are not valid shell variable names.
854     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
855       as_fn_error $? "invalid feature name: $ac_useropt"
856     ac_useropt_orig=$ac_useropt
857     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858     case $ac_user_opts in
859       *"
860 "enable_$ac_useropt"
861 "*) ;;
862       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
863          ac_unrecognized_sep=', ';;
864     esac
865     eval enable_$ac_useropt=no ;;
866
867   -docdir | --docdir | --docdi | --doc | --do)
868     ac_prev=docdir ;;
869   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
870     docdir=$ac_optarg ;;
871
872   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
873     ac_prev=dvidir ;;
874   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
875     dvidir=$ac_optarg ;;
876
877   -enable-* | --enable-*)
878     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
879     # Reject names that are not valid shell variable names.
880     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881       as_fn_error $? "invalid feature name: $ac_useropt"
882     ac_useropt_orig=$ac_useropt
883     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884     case $ac_user_opts in
885       *"
886 "enable_$ac_useropt"
887 "*) ;;
888       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
889          ac_unrecognized_sep=', ';;
890     esac
891     eval enable_$ac_useropt=\$ac_optarg ;;
892
893   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
894   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
895   | --exec | --exe | --ex)
896     ac_prev=exec_prefix ;;
897   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
898   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
899   | --exec=* | --exe=* | --ex=*)
900     exec_prefix=$ac_optarg ;;
901
902   -gas | --gas | --ga | --g)
903     # Obsolete; use --with-gas.
904     with_gas=yes ;;
905
906   -help | --help | --hel | --he | -h)
907     ac_init_help=long ;;
908   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
909     ac_init_help=recursive ;;
910   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
911     ac_init_help=short ;;
912
913   -host | --host | --hos | --ho)
914     ac_prev=host_alias ;;
915   -host=* | --host=* | --hos=* | --ho=*)
916     host_alias=$ac_optarg ;;
917
918   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
919     ac_prev=htmldir ;;
920   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
921   | --ht=*)
922     htmldir=$ac_optarg ;;
923
924   -includedir | --includedir | --includedi | --included | --include \
925   | --includ | --inclu | --incl | --inc)
926     ac_prev=includedir ;;
927   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
928   | --includ=* | --inclu=* | --incl=* | --inc=*)
929     includedir=$ac_optarg ;;
930
931   -infodir | --infodir | --infodi | --infod | --info | --inf)
932     ac_prev=infodir ;;
933   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
934     infodir=$ac_optarg ;;
935
936   -libdir | --libdir | --libdi | --libd)
937     ac_prev=libdir ;;
938   -libdir=* | --libdir=* | --libdi=* | --libd=*)
939     libdir=$ac_optarg ;;
940
941   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
942   | --libexe | --libex | --libe)
943     ac_prev=libexecdir ;;
944   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
945   | --libexe=* | --libex=* | --libe=*)
946     libexecdir=$ac_optarg ;;
947
948   -localedir | --localedir | --localedi | --localed | --locale)
949     ac_prev=localedir ;;
950   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
951     localedir=$ac_optarg ;;
952
953   -localstatedir | --localstatedir | --localstatedi | --localstated \
954   | --localstate | --localstat | --localsta | --localst | --locals)
955     ac_prev=localstatedir ;;
956   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
957   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
958     localstatedir=$ac_optarg ;;
959
960   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
961     ac_prev=mandir ;;
962   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
963     mandir=$ac_optarg ;;
964
965   -nfp | --nfp | --nf)
966     # Obsolete; use --without-fp.
967     with_fp=no ;;
968
969   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
970   | --no-cr | --no-c | -n)
971     no_create=yes ;;
972
973   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
974   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
975     no_recursion=yes ;;
976
977   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
978   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
979   | --oldin | --oldi | --old | --ol | --o)
980     ac_prev=oldincludedir ;;
981   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
982   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
983   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
984     oldincludedir=$ac_optarg ;;
985
986   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
987     ac_prev=prefix ;;
988   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
989     prefix=$ac_optarg ;;
990
991   -program-prefix | --program-prefix | --program-prefi | --program-pref \
992   | --program-pre | --program-pr | --program-p)
993     ac_prev=program_prefix ;;
994   -program-prefix=* | --program-prefix=* | --program-prefi=* \
995   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
996     program_prefix=$ac_optarg ;;
997
998   -program-suffix | --program-suffix | --program-suffi | --program-suff \
999   | --program-suf | --program-su | --program-s)
1000     ac_prev=program_suffix ;;
1001   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1002   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1003     program_suffix=$ac_optarg ;;
1004
1005   -program-transform-name | --program-transform-name \
1006   | --program-transform-nam | --program-transform-na \
1007   | --program-transform-n | --program-transform- \
1008   | --program-transform | --program-transfor \
1009   | --program-transfo | --program-transf \
1010   | --program-trans | --program-tran \
1011   | --progr-tra | --program-tr | --program-t)
1012     ac_prev=program_transform_name ;;
1013   -program-transform-name=* | --program-transform-name=* \
1014   | --program-transform-nam=* | --program-transform-na=* \
1015   | --program-transform-n=* | --program-transform-=* \
1016   | --program-transform=* | --program-transfor=* \
1017   | --program-transfo=* | --program-transf=* \
1018   | --program-trans=* | --program-tran=* \
1019   | --progr-tra=* | --program-tr=* | --program-t=*)
1020     program_transform_name=$ac_optarg ;;
1021
1022   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1023     ac_prev=pdfdir ;;
1024   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1025     pdfdir=$ac_optarg ;;
1026
1027   -psdir | --psdir | --psdi | --psd | --ps)
1028     ac_prev=psdir ;;
1029   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1030     psdir=$ac_optarg ;;
1031
1032   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033   | -silent | --silent | --silen | --sile | --sil)
1034     silent=yes ;;
1035
1036   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1037     ac_prev=sbindir ;;
1038   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1039   | --sbi=* | --sb=*)
1040     sbindir=$ac_optarg ;;
1041
1042   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1043   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1044   | --sharedst | --shareds | --shared | --share | --shar \
1045   | --sha | --sh)
1046     ac_prev=sharedstatedir ;;
1047   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1048   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1049   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1050   | --sha=* | --sh=*)
1051     sharedstatedir=$ac_optarg ;;
1052
1053   -site | --site | --sit)
1054     ac_prev=site ;;
1055   -site=* | --site=* | --sit=*)
1056     site=$ac_optarg ;;
1057
1058   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1059     ac_prev=srcdir ;;
1060   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1061     srcdir=$ac_optarg ;;
1062
1063   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1064   | --syscon | --sysco | --sysc | --sys | --sy)
1065     ac_prev=sysconfdir ;;
1066   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1067   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1068     sysconfdir=$ac_optarg ;;
1069
1070   -target | --target | --targe | --targ | --tar | --ta | --t)
1071     ac_prev=target_alias ;;
1072   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1073     target_alias=$ac_optarg ;;
1074
1075   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1076     verbose=yes ;;
1077
1078   -version | --version | --versio | --versi | --vers | -V)
1079     ac_init_version=: ;;
1080
1081   -with-* | --with-*)
1082     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1083     # Reject names that are not valid shell variable names.
1084     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085       as_fn_error $? "invalid package name: $ac_useropt"
1086     ac_useropt_orig=$ac_useropt
1087     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088     case $ac_user_opts in
1089       *"
1090 "with_$ac_useropt"
1091 "*) ;;
1092       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1093          ac_unrecognized_sep=', ';;
1094     esac
1095     eval with_$ac_useropt=\$ac_optarg ;;
1096
1097   -without-* | --without-*)
1098     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1099     # Reject names that are not valid shell variable names.
1100     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101       as_fn_error $? "invalid package name: $ac_useropt"
1102     ac_useropt_orig=$ac_useropt
1103     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104     case $ac_user_opts in
1105       *"
1106 "with_$ac_useropt"
1107 "*) ;;
1108       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1109          ac_unrecognized_sep=', ';;
1110     esac
1111     eval with_$ac_useropt=no ;;
1112
1113   --x)
1114     # Obsolete; use --with-x.
1115     with_x=yes ;;
1116
1117   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1118   | --x-incl | --x-inc | --x-in | --x-i)
1119     ac_prev=x_includes ;;
1120   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1121   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1122     x_includes=$ac_optarg ;;
1123
1124   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1125   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1126     ac_prev=x_libraries ;;
1127   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1128   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1129     x_libraries=$ac_optarg ;;
1130
1131   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1132 Try \`$0 --help' for more information"
1133     ;;
1134
1135   *=*)
1136     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1137     # Reject names that are not valid shell variable names.
1138     case $ac_envvar in #(
1139       '' | [0-9]* | *[!_$as_cr_alnum]* )
1140       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1141     esac
1142     eval $ac_envvar=\$ac_optarg
1143     export $ac_envvar ;;
1144
1145   *)
1146     # FIXME: should be removed in autoconf 3.0.
1147     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1148     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1149       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1150     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1151     ;;
1152
1153   esac
1154 done
1155
1156 if test -n "$ac_prev"; then
1157   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1158   as_fn_error $? "missing argument to $ac_option"
1159 fi
1160
1161 if test -n "$ac_unrecognized_opts"; then
1162   case $enable_option_checking in
1163     no) ;;
1164     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1165     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1166   esac
1167 fi
1168
1169 # Check all directory arguments for consistency.
1170 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1171                 datadir sysconfdir sharedstatedir localstatedir includedir \
1172                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1173                 libdir localedir mandir
1174 do
1175   eval ac_val=\$$ac_var
1176   # Remove trailing slashes.
1177   case $ac_val in
1178     */ )
1179       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1180       eval $ac_var=\$ac_val;;
1181   esac
1182   # Be sure to have absolute directory names.
1183   case $ac_val in
1184     [\\/$]* | ?:[\\/]* )  continue;;
1185     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1186   esac
1187   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1188 done
1189
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1193 build=$build_alias
1194 host=$host_alias
1195 target=$target_alias
1196
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199   if test "x$build_alias" = x; then
1200     cross_compiling=maybe
1201     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1202     If a cross compiler is detected then cross compile mode will be used" >&2
1203   elif test "x$build_alias" != "x$host_alias"; then
1204     cross_compiling=yes
1205   fi
1206 fi
1207
1208 ac_tool_prefix=
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210
1211 test "$silent" = yes && exec 6>/dev/null
1212
1213
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217   as_fn_error $? "working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219   as_fn_error $? "pwd does not report name of working directory"
1220
1221
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224   ac_srcdir_defaulted=yes
1225   # Try the directory containing this script, then the parent directory.
1226   ac_confdir=`$as_dirname -- "$as_myself" ||
1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228          X"$as_myself" : 'X\(//\)[^/]' \| \
1229          X"$as_myself" : 'X\(//\)$' \| \
1230          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1231 $as_echo X"$as_myself" |
1232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233             s//\1/
1234             q
1235           }
1236           /^X\(\/\/\)[^/].*/{
1237             s//\1/
1238             q
1239           }
1240           /^X\(\/\/\)$/{
1241             s//\1/
1242             q
1243           }
1244           /^X\(\/\).*/{
1245             s//\1/
1246             q
1247           }
1248           s/.*/./; q'`
1249   srcdir=$ac_confdir
1250   if test ! -r "$srcdir/$ac_unique_file"; then
1251     srcdir=..
1252   fi
1253 else
1254   ac_srcdir_defaulted=no
1255 fi
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1259 fi
1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1261 ac_abs_confdir=`(
1262         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1263         pwd)`
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1266   srcdir=.
1267 fi
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1271 case $srcdir in
1272 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1273 esac
1274 for ac_var in $ac_precious_vars; do
1275   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276   eval ac_env_${ac_var}_value=\$${ac_var}
1277   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 done
1280
1281 #
1282 # Report the --help message.
1283 #
1284 if test "$ac_init_help" = "long"; then
1285   # Omit some internal or obsolete options to make the list less imposing.
1286   # This message is too long to be a string in the A/UX 3.1 sh.
1287   cat <<_ACEOF
1288 \`configure' configures FreeType 2.4.9 to adapt to many kinds of systems.
1289
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1291
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE.  See below for descriptions of some of the useful variables.
1294
1295 Defaults for the options are specified in brackets.
1296
1297 Configuration:
1298   -h, --help              display this help and exit
1299       --help=short        display options specific to this package
1300       --help=recursive    display the short help of all the included packages
1301   -V, --version           display version information and exit
1302   -q, --quiet, --silent   do not print \`checking ...' messages
1303       --cache-file=FILE   cache test results in FILE [disabled]
1304   -C, --config-cache      alias for \`--cache-file=config.cache'
1305   -n, --no-create         do not create output files
1306       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1307
1308 Installation directories:
1309   --prefix=PREFIX         install architecture-independent files in PREFIX
1310                           [$ac_default_prefix]
1311   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1312                           [PREFIX]
1313
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1318
1319 For better control, use the options below.
1320
1321 Fine tuning of the installation directories:
1322   --bindir=DIR            user executables [EPREFIX/bin]
1323   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1324   --libexecdir=DIR        program executables [EPREFIX/libexec]
1325   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1326   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1327   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1328   --libdir=DIR            object code libraries [EPREFIX/lib]
1329   --includedir=DIR        C header files [PREFIX/include]
1330   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1331   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1332   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1333   --infodir=DIR           info documentation [DATAROOTDIR/info]
1334   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1335   --mandir=DIR            man documentation [DATAROOTDIR/man]
1336   --docdir=DIR            documentation root [DATAROOTDIR/doc/freetype]
1337   --htmldir=DIR           html documentation [DOCDIR]
1338   --dvidir=DIR            dvi documentation [DOCDIR]
1339   --pdfdir=DIR            pdf documentation [DOCDIR]
1340   --psdir=DIR             ps documentation [DOCDIR]
1341 _ACEOF
1342
1343   cat <<\_ACEOF
1344
1345 System types:
1346   --build=BUILD     configure for building on BUILD [guessed]
1347   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1348 _ACEOF
1349 fi
1350
1351 if test -n "$ac_init_help"; then
1352   case $ac_init_help in
1353      short | recursive ) echo "Configuration of FreeType 2.4.9:";;
1354    esac
1355   cat <<\_ACEOF
1356
1357 Optional Features:
1358   --disable-option-checking  ignore unrecognized --enable/--with options
1359   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1360   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1361   --enable-biarch-config  install biarch ftconfig.h to support multiple
1362                           architectures by single file
1363   --disable-mmap          do not check mmap() and do not use
1364   --enable-shared[=PKGS]  build shared libraries [default=yes]
1365   --enable-static[=PKGS]  build static libraries [default=yes]
1366   --enable-fast-install[=PKGS]
1367                           optimize for fast installation [default=yes]
1368   --disable-libtool-lock  avoid locking (might break parallel builds)
1369
1370 Optional Packages:
1371   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1372   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1373   --without-zlib          use internal zlib instead of system-wide
1374   --without-bzip2         do not support bzip2 compressed fonts
1375   --with-old-mac-fonts    allow Mac resource-based fonts to be used
1376   --with-fsspec           use obsolete FSSpec API of MacOS, if available
1377                           (default=yes)
1378   --with-fsref            use Carbon FSRef API of MacOS, if available
1379                           (default=yes)
1380   --with-quickdraw-toolbox
1381                           use MacOS QuickDraw in ToolBox, if available
1382                           (default=yes)
1383   --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1384                           (default=yes)
1385   --with-ats              use AppleTypeService, if available (default=yes)
1386   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1387                           both]
1388   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1389   --with-sysroot=DIR Search for dependent libraries within DIR
1390                         (or the compiler's sysroot if not specified).
1391
1392 Some influential environment variables:
1393   CC          C compiler command
1394   CFLAGS      C compiler flags
1395   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1396               nonstandard directory <lib dir>
1397   LIBS        libraries to pass to the linker, e.g. -l<library>
1398   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1399               you have headers in a nonstandard directory <include dir>
1400   CPP         C preprocessor
1401
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1404
1405 Report bugs to <freetype@nongnu.org>.
1406 _ACEOF
1407 ac_status=$?
1408 fi
1409
1410 if test "$ac_init_help" = "recursive"; then
1411   # If there are subdirs, report their specific --help.
1412   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1413     test -d "$ac_dir" ||
1414       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1415       continue
1416     ac_builddir=.
1417
1418 case "$ac_dir" in
1419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 *)
1421   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1422   # A ".." for each directory in $ac_dir_suffix.
1423   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1424   case $ac_top_builddir_sub in
1425   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1427   esac ;;
1428 esac
1429 ac_abs_top_builddir=$ac_pwd
1430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir=$ac_top_build_prefix
1433
1434 case $srcdir in
1435   .)  # We are building in place.
1436     ac_srcdir=.
1437     ac_top_srcdir=$ac_top_builddir_sub
1438     ac_abs_top_srcdir=$ac_pwd ;;
1439   [\\/]* | ?:[\\/]* )  # Absolute name.
1440     ac_srcdir=$srcdir$ac_dir_suffix;
1441     ac_top_srcdir=$srcdir
1442     ac_abs_top_srcdir=$srcdir ;;
1443   *) # Relative name.
1444     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445     ac_top_srcdir=$ac_top_build_prefix$srcdir
1446     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1447 esac
1448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1449
1450     cd "$ac_dir" || { ac_status=$?; continue; }
1451     # Check for guested configure.
1452     if test -f "$ac_srcdir/configure.gnu"; then
1453       echo &&
1454       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455     elif test -f "$ac_srcdir/configure"; then
1456       echo &&
1457       $SHELL "$ac_srcdir/configure" --help=recursive
1458     else
1459       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460     fi || ac_status=$?
1461     cd "$ac_pwd" || { ac_status=$?; break; }
1462   done
1463 fi
1464
1465 test -n "$ac_init_help" && exit $ac_status
1466 if $ac_init_version; then
1467   cat <<\_ACEOF
1468 FreeType configure 2.4.9
1469 generated by GNU Autoconf 2.68
1470
1471 Copyright (C) 2010 Free Software Foundation, Inc.
1472 This configure script is free software; the Free Software Foundation
1473 gives unlimited permission to copy, distribute and modify it.
1474 _ACEOF
1475   exit
1476 fi
1477
1478 ## ------------------------ ##
1479 ## Autoconf initialization. ##
1480 ## ------------------------ ##
1481
1482 # ac_fn_c_try_compile LINENO
1483 # --------------------------
1484 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1485 ac_fn_c_try_compile ()
1486 {
1487   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488   rm -f conftest.$ac_objext
1489   if { { ac_try="$ac_compile"
1490 case "(($ac_try" in
1491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1492   *) ac_try_echo=$ac_try;;
1493 esac
1494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495 $as_echo "$ac_try_echo"; } >&5
1496   (eval "$ac_compile") 2>conftest.err
1497   ac_status=$?
1498   if test -s conftest.err; then
1499     grep -v '^ *+' conftest.err >conftest.er1
1500     cat conftest.er1 >&5
1501     mv -f conftest.er1 conftest.err
1502   fi
1503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1504   test $ac_status = 0; } && {
1505          test -z "$ac_c_werror_flag" ||
1506          test ! -s conftest.err
1507        } && test -s conftest.$ac_objext; then :
1508   ac_retval=0
1509 else
1510   $as_echo "$as_me: failed program was:" >&5
1511 sed 's/^/| /' conftest.$ac_ext >&5
1512
1513         ac_retval=1
1514 fi
1515   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1516   as_fn_set_status $ac_retval
1517
1518 } # ac_fn_c_try_compile
1519
1520 # ac_fn_c_try_cpp LINENO
1521 # ----------------------
1522 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1523 ac_fn_c_try_cpp ()
1524 {
1525   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526   if { { ac_try="$ac_cpp conftest.$ac_ext"
1527 case "(($ac_try" in
1528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529   *) ac_try_echo=$ac_try;;
1530 esac
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1534   ac_status=$?
1535   if test -s conftest.err; then
1536     grep -v '^ *+' conftest.err >conftest.er1
1537     cat conftest.er1 >&5
1538     mv -f conftest.er1 conftest.err
1539   fi
1540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541   test $ac_status = 0; } > conftest.i && {
1542          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1543          test ! -s conftest.err
1544        }; then :
1545   ac_retval=0
1546 else
1547   $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1549
1550     ac_retval=1
1551 fi
1552   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553   as_fn_set_status $ac_retval
1554
1555 } # ac_fn_c_try_cpp
1556
1557 # ac_fn_c_try_run LINENO
1558 # ----------------------
1559 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1560 # that executables *can* be run.
1561 ac_fn_c_try_run ()
1562 {
1563   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564   if { { ac_try="$ac_link"
1565 case "(($ac_try" in
1566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567   *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571   (eval "$ac_link") 2>&5
1572   ac_status=$?
1573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1575   { { case "(($ac_try" in
1576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577   *) ac_try_echo=$ac_try;;
1578 esac
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581   (eval "$ac_try") 2>&5
1582   ac_status=$?
1583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584   test $ac_status = 0; }; }; then :
1585   ac_retval=0
1586 else
1587   $as_echo "$as_me: program exited with status $ac_status" >&5
1588        $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1590
1591        ac_retval=$ac_status
1592 fi
1593   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595   as_fn_set_status $ac_retval
1596
1597 } # ac_fn_c_try_run
1598
1599 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1600 # -------------------------------------------------------
1601 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1602 # the include files in INCLUDES and setting the cache variable VAR
1603 # accordingly.
1604 ac_fn_c_check_header_mongrel ()
1605 {
1606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607   if eval \${$3+:} false; then :
1608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609 $as_echo_n "checking for $2... " >&6; }
1610 if eval \${$3+:} false; then :
1611   $as_echo_n "(cached) " >&6
1612 fi
1613 eval ac_res=\$$3
1614                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1615 $as_echo "$ac_res" >&6; }
1616 else
1617   # Is the header compilable?
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1619 $as_echo_n "checking $2 usability... " >&6; }
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h.  */
1622 $4
1623 #include <$2>
1624 _ACEOF
1625 if ac_fn_c_try_compile "$LINENO"; then :
1626   ac_header_compiler=yes
1627 else
1628   ac_header_compiler=no
1629 fi
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1632 $as_echo "$ac_header_compiler" >&6; }
1633
1634 # Is the header present?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1636 $as_echo_n "checking $2 presence... " >&6; }
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h.  */
1639 #include <$2>
1640 _ACEOF
1641 if ac_fn_c_try_cpp "$LINENO"; then :
1642   ac_header_preproc=yes
1643 else
1644   ac_header_preproc=no
1645 fi
1646 rm -f conftest.err conftest.i conftest.$ac_ext
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1648 $as_echo "$ac_header_preproc" >&6; }
1649
1650 # So?  What about this header?
1651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1652   yes:no: )
1653     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1654 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1655     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1656 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1657     ;;
1658   no:yes:* )
1659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1660 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1661     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1662 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1663     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1664 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1665     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1666 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1667     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1668 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669 ( $as_echo "## ---------------------------------- ##
1670 ## Report this to freetype@nongnu.org ##
1671 ## ---------------------------------- ##"
1672      ) | sed "s/^/$as_me: WARNING:     /" >&2
1673     ;;
1674 esac
1675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \${$3+:} false; then :
1678   $as_echo_n "(cached) " >&6
1679 else
1680   eval "$3=\$ac_header_compiler"
1681 fi
1682 eval ac_res=\$$3
1683                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 fi
1686   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
1688 } # ac_fn_c_check_header_mongrel
1689
1690 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1691 # -------------------------------------------------------
1692 # Tests whether HEADER exists and can be compiled using the include files in
1693 # INCLUDES, setting the cache variable VAR accordingly.
1694 ac_fn_c_check_header_compile ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if eval \${$3+:} false; then :
1700   $as_echo_n "(cached) " >&6
1701 else
1702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h.  */
1704 $4
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_compile "$LINENO"; then :
1708   eval "$3=yes"
1709 else
1710   eval "$3=no"
1711 fi
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 fi
1714 eval ac_res=\$$3
1715                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
1719 } # ac_fn_c_check_header_compile
1720
1721 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1722 # --------------------------------------------
1723 # Tries to find the compile-time value of EXPR in a program that includes
1724 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1725 # computed
1726 ac_fn_c_compute_int ()
1727 {
1728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729   if test "$cross_compiling" = yes; then
1730     # Depending upon the size, compute the lo and hi bounds.
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h.  */
1733 $4
1734 int
1735 main ()
1736 {
1737 static int test_array [1 - 2 * !(($2) >= 0)];
1738 test_array [0] = 0
1739
1740   ;
1741   return 0;
1742 }
1743 _ACEOF
1744 if ac_fn_c_try_compile "$LINENO"; then :
1745   ac_lo=0 ac_mid=0
1746   while :; do
1747     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h.  */
1749 $4
1750 int
1751 main ()
1752 {
1753 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1754 test_array [0] = 0
1755
1756   ;
1757   return 0;
1758 }
1759 _ACEOF
1760 if ac_fn_c_try_compile "$LINENO"; then :
1761   ac_hi=$ac_mid; break
1762 else
1763   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1764                         if test $ac_lo -le $ac_mid; then
1765                           ac_lo= ac_hi=
1766                           break
1767                         fi
1768                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771   done
1772 else
1773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h.  */
1775 $4
1776 int
1777 main ()
1778 {
1779 static int test_array [1 - 2 * !(($2) < 0)];
1780 test_array [0] = 0
1781
1782   ;
1783   return 0;
1784 }
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787   ac_hi=-1 ac_mid=-1
1788   while :; do
1789     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h.  */
1791 $4
1792 int
1793 main ()
1794 {
1795 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1796 test_array [0] = 0
1797
1798   ;
1799   return 0;
1800 }
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803   ac_lo=$ac_mid; break
1804 else
1805   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1806                         if test $ac_mid -le $ac_hi; then
1807                           ac_lo= ac_hi=
1808                           break
1809                         fi
1810                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813   done
1814 else
1815   ac_lo= ac_hi=
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 # Binary search between lo and hi bounds.
1821 while test "x$ac_lo" != "x$ac_hi"; do
1822   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h.  */
1825 $4
1826 int
1827 main ()
1828 {
1829 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1830 test_array [0] = 0
1831
1832   ;
1833   return 0;
1834 }
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837   ac_hi=$ac_mid
1838 else
1839   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1840 fi
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 done
1843 case $ac_lo in #((
1844 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1845 '') ac_retval=1 ;;
1846 esac
1847   else
1848     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h.  */
1850 $4
1851 static long int longval () { return $2; }
1852 static unsigned long int ulongval () { return $2; }
1853 #include <stdio.h>
1854 #include <stdlib.h>
1855 int
1856 main ()
1857 {
1858
1859   FILE *f = fopen ("conftest.val", "w");
1860   if (! f)
1861     return 1;
1862   if (($2) < 0)
1863     {
1864       long int i = longval ();
1865       if (i != ($2))
1866         return 1;
1867       fprintf (f, "%ld", i);
1868     }
1869   else
1870     {
1871       unsigned long int i = ulongval ();
1872       if (i != ($2))
1873         return 1;
1874       fprintf (f, "%lu", i);
1875     }
1876   /* Do not output a trailing newline, as this causes \r\n confusion
1877      on some platforms.  */
1878   return ferror (f) || fclose (f) != 0;
1879
1880   ;
1881   return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_run "$LINENO"; then :
1885   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1886 else
1887   ac_retval=1
1888 fi
1889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1890   conftest.$ac_objext conftest.beam conftest.$ac_ext
1891 rm -f conftest.val
1892
1893   fi
1894   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895   as_fn_set_status $ac_retval
1896
1897 } # ac_fn_c_compute_int
1898
1899 # ac_fn_c_try_link LINENO
1900 # -----------------------
1901 # Try to link conftest.$ac_ext, and return whether this succeeded.
1902 ac_fn_c_try_link ()
1903 {
1904   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905   rm -f conftest.$ac_objext conftest$ac_exeext
1906   if { { ac_try="$ac_link"
1907 case "(($ac_try" in
1908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909   *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913   (eval "$ac_link") 2>conftest.err
1914   ac_status=$?
1915   if test -s conftest.err; then
1916     grep -v '^ *+' conftest.err >conftest.er1
1917     cat conftest.er1 >&5
1918     mv -f conftest.er1 conftest.err
1919   fi
1920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921   test $ac_status = 0; } && {
1922          test -z "$ac_c_werror_flag" ||
1923          test ! -s conftest.err
1924        } && test -s conftest$ac_exeext && {
1925          test "$cross_compiling" = yes ||
1926          $as_test_x conftest$ac_exeext
1927        }; then :
1928   ac_retval=0
1929 else
1930   $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933         ac_retval=1
1934 fi
1935   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937   # interfere with the next link command; also delete a directory that is
1938   # left behind by Apple's compiler.  We do this before executing the actions.
1939   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941   as_fn_set_status $ac_retval
1942
1943 } # ac_fn_c_try_link
1944
1945 # ac_fn_c_check_func LINENO FUNC VAR
1946 # ----------------------------------
1947 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1948 ac_fn_c_check_func ()
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   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h.  */
1958 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1960 #define $2 innocuous_$2
1961
1962 /* System header to define __stub macros and hopefully few prototypes,
1963     which can conflict with char $2 (); below.
1964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1965     <limits.h> exists even on freestanding compilers.  */
1966
1967 #ifdef __STDC__
1968 # include <limits.h>
1969 #else
1970 # include <assert.h>
1971 #endif
1972
1973 #undef $2
1974
1975 /* Override any GCC internal prototype to avoid an error.
1976    Use char because int might match the return type of a GCC
1977    builtin and then its argument prototype would still apply.  */
1978 #ifdef __cplusplus
1979 extern "C"
1980 #endif
1981 char $2 ();
1982 /* The GNU C library defines this for functions which it implements
1983     to always fail with ENOSYS.  Some functions are actually named
1984     something starting with __ and the normal name is an alias.  */
1985 #if defined __stub_$2 || defined __stub___$2
1986 choke me
1987 #endif
1988
1989 int
1990 main ()
1991 {
1992 return $2 ();
1993   ;
1994   return 0;
1995 }
1996 _ACEOF
1997 if ac_fn_c_try_link "$LINENO"; then :
1998   eval "$3=yes"
1999 else
2000   eval "$3=no"
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext \
2003     conftest$ac_exeext conftest.$ac_ext
2004 fi
2005 eval ac_res=\$$3
2006                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010 } # ac_fn_c_check_func
2011
2012 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2013 # ---------------------------------------------
2014 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2015 # accordingly.
2016 ac_fn_c_check_decl ()
2017 {
2018   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019   as_decl_name=`echo $2|sed 's/ *(.*//'`
2020   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2022 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2023 if eval \${$3+:} false; then :
2024   $as_echo_n "(cached) " >&6
2025 else
2026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h.  */
2028 $4
2029 int
2030 main ()
2031 {
2032 #ifndef $as_decl_name
2033 #ifdef __cplusplus
2034   (void) $as_decl_use;
2035 #else
2036   (void) $as_decl_name;
2037 #endif
2038 #endif
2039
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045   eval "$3=yes"
2046 else
2047   eval "$3=no"
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 fi
2051 eval ac_res=\$$3
2052                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055
2056 } # ac_fn_c_check_decl
2057 cat >config.log <<_ACEOF
2058 This file contains any messages produced by compilers while
2059 running configure, to aid debugging if configure makes a mistake.
2060
2061 It was created by FreeType $as_me 2.4.9, which was
2062 generated by GNU Autoconf 2.68.  Invocation command line was
2063
2064   $ $0 $@
2065
2066 _ACEOF
2067 exec 5>>config.log
2068 {
2069 cat <<_ASUNAME
2070 ## --------- ##
2071 ## Platform. ##
2072 ## --------- ##
2073
2074 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2075 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2076 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2077 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2078 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2079
2080 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2081 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2082
2083 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2084 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2085 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2086 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2087 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2088 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2089 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2090
2091 _ASUNAME
2092
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096   IFS=$as_save_IFS
2097   test -z "$as_dir" && as_dir=.
2098     $as_echo "PATH: $as_dir"
2099   done
2100 IFS=$as_save_IFS
2101
2102 } >&5
2103
2104 cat >&5 <<_ACEOF
2105
2106
2107 ## ----------- ##
2108 ## Core tests. ##
2109 ## ----------- ##
2110
2111 _ACEOF
2112
2113
2114 # Keep a trace of the command line.
2115 # Strip out --no-create and --no-recursion so they do not pile up.
2116 # Strip out --silent because we don't want to record it for future runs.
2117 # Also quote any args containing shell meta-characters.
2118 # Make two passes to allow for proper duplicate-argument suppression.
2119 ac_configure_args=
2120 ac_configure_args0=
2121 ac_configure_args1=
2122 ac_must_keep_next=false
2123 for ac_pass in 1 2
2124 do
2125   for ac_arg
2126   do
2127     case $ac_arg in
2128     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2129     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2130     | -silent | --silent | --silen | --sile | --sil)
2131       continue ;;
2132     *\'*)
2133       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2134     esac
2135     case $ac_pass in
2136     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2137     2)
2138       as_fn_append ac_configure_args1 " '$ac_arg'"
2139       if test $ac_must_keep_next = true; then
2140         ac_must_keep_next=false # Got value, back to normal.
2141       else
2142         case $ac_arg in
2143           *=* | --config-cache | -C | -disable-* | --disable-* \
2144           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2145           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2146           | -with-* | --with-* | -without-* | --without-* | --x)
2147             case "$ac_configure_args0 " in
2148               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2149             esac
2150             ;;
2151           -* ) ac_must_keep_next=true ;;
2152         esac
2153       fi
2154       as_fn_append ac_configure_args " '$ac_arg'"
2155       ;;
2156     esac
2157   done
2158 done
2159 { ac_configure_args0=; unset ac_configure_args0;}
2160 { ac_configure_args1=; unset ac_configure_args1;}
2161
2162 # When interrupted or exit'd, cleanup temporary files, and complete
2163 # config.log.  We remove comments because anyway the quotes in there
2164 # would cause problems or look ugly.
2165 # WARNING: Use '\'' to represent an apostrophe within the trap.
2166 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2167 trap 'exit_status=$?
2168   # Save into config.log some information that might help in debugging.
2169   {
2170     echo
2171
2172     $as_echo "## ---------------- ##
2173 ## Cache variables. ##
2174 ## ---------------- ##"
2175     echo
2176     # The following way of writing the cache mishandles newlines in values,
2177 (
2178   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2179     eval ac_val=\$$ac_var
2180     case $ac_val in #(
2181     *${as_nl}*)
2182       case $ac_var in #(
2183       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2184 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2185       esac
2186       case $ac_var in #(
2187       _ | IFS | as_nl) ;; #(
2188       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2189       *) { eval $ac_var=; unset $ac_var;} ;;
2190       esac ;;
2191     esac
2192   done
2193   (set) 2>&1 |
2194     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2195     *${as_nl}ac_space=\ *)
2196       sed -n \
2197         "s/'\''/'\''\\\\'\'''\''/g;
2198           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2199       ;; #(
2200     *)
2201       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2202       ;;
2203     esac |
2204     sort
2205 )
2206     echo
2207
2208     $as_echo "## ----------------- ##
2209 ## Output variables. ##
2210 ## ----------------- ##"
2211     echo
2212     for ac_var in $ac_subst_vars
2213     do
2214       eval ac_val=\$$ac_var
2215       case $ac_val in
2216       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2217       esac
2218       $as_echo "$ac_var='\''$ac_val'\''"
2219     done | sort
2220     echo
2221
2222     if test -n "$ac_subst_files"; then
2223       $as_echo "## ------------------- ##
2224 ## File substitutions. ##
2225 ## ------------------- ##"
2226       echo
2227       for ac_var in $ac_subst_files
2228       do
2229         eval ac_val=\$$ac_var
2230         case $ac_val in
2231         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2232         esac
2233         $as_echo "$ac_var='\''$ac_val'\''"
2234       done | sort
2235       echo
2236     fi
2237
2238     if test -s confdefs.h; then
2239       $as_echo "## ----------- ##
2240 ## confdefs.h. ##
2241 ## ----------- ##"
2242       echo
2243       cat confdefs.h
2244       echo
2245     fi
2246     test "$ac_signal" != 0 &&
2247       $as_echo "$as_me: caught signal $ac_signal"
2248     $as_echo "$as_me: exit $exit_status"
2249   } >&5
2250   rm -f core *.core core.conftest.* &&
2251     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2252     exit $exit_status
2253 ' 0
2254 for ac_signal in 1 2 13 15; do
2255   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2256 done
2257 ac_signal=0
2258
2259 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2260 rm -f -r conftest* confdefs.h
2261
2262 $as_echo "/* confdefs.h */" > confdefs.h
2263
2264 # Predefined preprocessor variables.
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_NAME "$PACKAGE_NAME"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2272 _ACEOF
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_STRING "$PACKAGE_STRING"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_URL "$PACKAGE_URL"
2288 _ACEOF
2289
2290
2291 # Let the site file select an alternate cache file if it wants to.
2292 # Prefer an explicitly selected file to automatically selected ones.
2293 ac_site_file1=NONE
2294 ac_site_file2=NONE
2295 if test -n "$CONFIG_SITE"; then
2296   # We do not want a PATH search for config.site.
2297   case $CONFIG_SITE in #((
2298     -*)  ac_site_file1=./$CONFIG_SITE;;
2299     */*) ac_site_file1=$CONFIG_SITE;;
2300     *)   ac_site_file1=./$CONFIG_SITE;;
2301   esac
2302 elif test "x$prefix" != xNONE; then
2303   ac_site_file1=$prefix/share/config.site
2304   ac_site_file2=$prefix/etc/config.site
2305 else
2306   ac_site_file1=$ac_default_prefix/share/config.site
2307   ac_site_file2=$ac_default_prefix/etc/config.site
2308 fi
2309 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2310 do
2311   test "x$ac_site_file" = xNONE && continue
2312   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2313     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2314 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2315     sed 's/^/| /' "$ac_site_file" >&5
2316     . "$ac_site_file" \
2317       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2319 as_fn_error $? "failed to load site script $ac_site_file
2320 See \`config.log' for more details" "$LINENO" 5; }
2321   fi
2322 done
2323
2324 if test -r "$cache_file"; then
2325   # Some versions of bash will fail to source /dev/null (special files
2326   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2327   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2328     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2329 $as_echo "$as_me: loading cache $cache_file" >&6;}
2330     case $cache_file in
2331       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2332       *)                      . "./$cache_file";;
2333     esac
2334   fi
2335 else
2336   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2337 $as_echo "$as_me: creating cache $cache_file" >&6;}
2338   >$cache_file
2339 fi
2340
2341 as_fn_append ac_header_list " stdlib.h"
2342 as_fn_append ac_header_list " unistd.h"
2343 as_fn_append ac_header_list " sys/param.h"
2344 # Check that the precious variables saved in the cache have kept the same
2345 # value.
2346 ac_cache_corrupted=false
2347 for ac_var in $ac_precious_vars; do
2348   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2349   eval ac_new_set=\$ac_env_${ac_var}_set
2350   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2351   eval ac_new_val=\$ac_env_${ac_var}_value
2352   case $ac_old_set,$ac_new_set in
2353     set,)
2354       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2355 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2356       ac_cache_corrupted=: ;;
2357     ,set)
2358       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2359 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2360       ac_cache_corrupted=: ;;
2361     ,);;
2362     *)
2363       if test "x$ac_old_val" != "x$ac_new_val"; then
2364         # differences in whitespace do not lead to failure.
2365         ac_old_val_w=`echo x $ac_old_val`
2366         ac_new_val_w=`echo x $ac_new_val`
2367         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2368           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2369 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2370           ac_cache_corrupted=:
2371         else
2372           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2373 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2374           eval $ac_var=\$ac_old_val
2375         fi
2376         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2377 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2378         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2379 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2380       fi;;
2381   esac
2382   # Pass precious variables to config.status.
2383   if test "$ac_new_set" = set; then
2384     case $ac_new_val in
2385     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2386     *) ac_arg=$ac_var=$ac_new_val ;;
2387     esac
2388     case " $ac_configure_args " in
2389       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2390       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2391     esac
2392   fi
2393 done
2394 if $ac_cache_corrupted; then
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2398 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2399   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2400 fi
2401 ## -------------------- ##
2402 ## Main body of script. ##
2403 ## -------------------- ##
2404
2405 ac_ext=c
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410
2411
2412
2413
2414
2415 # Don't forget to update docs/VERSION.DLL!
2416
2417 version_info='14:1:8'
2418
2419 ft_version=`echo $version_info | tr : .`
2420
2421
2422
2423 # checks for system type
2424
2425 ac_aux_dir=
2426 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2427   if test -f "$ac_dir/install-sh"; then
2428     ac_aux_dir=$ac_dir
2429     ac_install_sh="$ac_aux_dir/install-sh -c"
2430     break
2431   elif test -f "$ac_dir/install.sh"; then
2432     ac_aux_dir=$ac_dir
2433     ac_install_sh="$ac_aux_dir/install.sh -c"
2434     break
2435   elif test -f "$ac_dir/shtool"; then
2436     ac_aux_dir=$ac_dir
2437     ac_install_sh="$ac_aux_dir/shtool install -c"
2438     break
2439   fi
2440 done
2441 if test -z "$ac_aux_dir"; then
2442   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2443 fi
2444
2445 # These three variables are undocumented and unsupported,
2446 # and are intended to be withdrawn in a future Autoconf release.
2447 # They can cause serious problems if a builder's source tree is in a directory
2448 # whose full name contains unusual characters.
2449 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2450 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2451 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2452
2453
2454 # Make sure we can run config.sub.
2455 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2456   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2457
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2459 $as_echo_n "checking build system type... " >&6; }
2460 if ${ac_cv_build+:} false; then :
2461   $as_echo_n "(cached) " >&6
2462 else
2463   ac_build_alias=$build_alias
2464 test "x$ac_build_alias" = x &&
2465   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2466 test "x$ac_build_alias" = x &&
2467   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2468 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2469   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2470
2471 fi
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2473 $as_echo "$ac_cv_build" >&6; }
2474 case $ac_cv_build in
2475 *-*-*) ;;
2476 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2477 esac
2478 build=$ac_cv_build
2479 ac_save_IFS=$IFS; IFS='-'
2480 set x $ac_cv_build
2481 shift
2482 build_cpu=$1
2483 build_vendor=$2
2484 shift; shift
2485 # Remember, the first character of IFS is used to create $*,
2486 # except with old shells:
2487 build_os=$*
2488 IFS=$ac_save_IFS
2489 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2490
2491
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2493 $as_echo_n "checking host system type... " >&6; }
2494 if ${ac_cv_host+:} false; then :
2495   $as_echo_n "(cached) " >&6
2496 else
2497   if test "x$host_alias" = x; then
2498   ac_cv_host=$ac_cv_build
2499 else
2500   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2501     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2502 fi
2503
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2506 $as_echo "$ac_cv_host" >&6; }
2507 case $ac_cv_host in
2508 *-*-*) ;;
2509 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2510 esac
2511 host=$ac_cv_host
2512 ac_save_IFS=$IFS; IFS='-'
2513 set x $ac_cv_host
2514 shift
2515 host_cpu=$1
2516 host_vendor=$2
2517 shift; shift
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2520 host_os=$*
2521 IFS=$ac_save_IFS
2522 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2523
2524
2525
2526
2527 # checks for programs
2528
2529 ac_ext=c
2530 ac_cpp='$CPP $CPPFLAGS'
2531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534 if test -n "$ac_tool_prefix"; then
2535   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2536 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538 $as_echo_n "checking for $ac_word... " >&6; }
2539 if ${ac_cv_prog_CC+:} false; then :
2540   $as_echo_n "(cached) " >&6
2541 else
2542   if test -n "$CC"; then
2543   ac_cv_prog_CC="$CC" # Let the user override the test.
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550     for ac_exec_ext in '' $ac_executable_extensions; do
2551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2554     break 2
2555   fi
2556 done
2557   done
2558 IFS=$as_save_IFS
2559
2560 fi
2561 fi
2562 CC=$ac_cv_prog_CC
2563 if test -n "$CC"; then
2564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2565 $as_echo "$CC" >&6; }
2566 else
2567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568 $as_echo "no" >&6; }
2569 fi
2570
2571
2572 fi
2573 if test -z "$ac_cv_prog_CC"; then
2574   ac_ct_CC=$CC
2575   # Extract the first word of "gcc", so it can be a program name with args.
2576 set dummy gcc; ac_word=$2
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578 $as_echo_n "checking for $ac_word... " >&6; }
2579 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2580   $as_echo_n "(cached) " >&6
2581 else
2582   if test -n "$ac_ct_CC"; then
2583   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588   IFS=$as_save_IFS
2589   test -z "$as_dir" && as_dir=.
2590     for ac_exec_ext in '' $ac_executable_extensions; do
2591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592     ac_cv_prog_ac_ct_CC="gcc"
2593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594     break 2
2595   fi
2596 done
2597   done
2598 IFS=$as_save_IFS
2599
2600 fi
2601 fi
2602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2603 if test -n "$ac_ct_CC"; then
2604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2605 $as_echo "$ac_ct_CC" >&6; }
2606 else
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608 $as_echo "no" >&6; }
2609 fi
2610
2611   if test "x$ac_ct_CC" = x; then
2612     CC=""
2613   else
2614     case $cross_compiling:$ac_tool_warned in
2615 yes:)
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2618 ac_tool_warned=yes ;;
2619 esac
2620     CC=$ac_ct_CC
2621   fi
2622 else
2623   CC="$ac_cv_prog_CC"
2624 fi
2625
2626 if test -z "$CC"; then
2627           if test -n "$ac_tool_prefix"; then
2628     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2629 set dummy ${ac_tool_prefix}cc; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if ${ac_cv_prog_CC+:} false; then :
2633   $as_echo_n "(cached) " >&6
2634 else
2635   if test -n "$CC"; then
2636   ac_cv_prog_CC="$CC" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641   IFS=$as_save_IFS
2642   test -z "$as_dir" && as_dir=.
2643     for ac_exec_ext in '' $ac_executable_extensions; do
2644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645     ac_cv_prog_CC="${ac_tool_prefix}cc"
2646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647     break 2
2648   fi
2649 done
2650   done
2651 IFS=$as_save_IFS
2652
2653 fi
2654 fi
2655 CC=$ac_cv_prog_CC
2656 if test -n "$CC"; then
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2658 $as_echo "$CC" >&6; }
2659 else
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 fi
2663
2664
2665   fi
2666 fi
2667 if test -z "$CC"; then
2668   # Extract the first word of "cc", so it can be a program name with args.
2669 set dummy cc; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if ${ac_cv_prog_CC+:} false; then :
2673   $as_echo_n "(cached) " >&6
2674 else
2675   if test -n "$CC"; then
2676   ac_cv_prog_CC="$CC" # Let the user override the test.
2677 else
2678   ac_prog_rejected=no
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682   IFS=$as_save_IFS
2683   test -z "$as_dir" && as_dir=.
2684     for ac_exec_ext in '' $ac_executable_extensions; do
2685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2687        ac_prog_rejected=yes
2688        continue
2689      fi
2690     ac_cv_prog_CC="cc"
2691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692     break 2
2693   fi
2694 done
2695   done
2696 IFS=$as_save_IFS
2697
2698 if test $ac_prog_rejected = yes; then
2699   # We found a bogon in the path, so make sure we never use it.
2700   set dummy $ac_cv_prog_CC
2701   shift
2702   if test $# != 0; then
2703     # We chose a different compiler from the bogus one.
2704     # However, it has the same basename, so the bogon will be chosen
2705     # first if we set CC to just the basename; use the full file name.
2706     shift
2707     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2708   fi
2709 fi
2710 fi
2711 fi
2712 CC=$ac_cv_prog_CC
2713 if test -n "$CC"; then
2714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715 $as_echo "$CC" >&6; }
2716 else
2717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2719 fi
2720
2721
2722 fi
2723 if test -z "$CC"; then
2724   if test -n "$ac_tool_prefix"; then
2725   for ac_prog in cl.exe
2726   do
2727     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730 $as_echo_n "checking for $ac_word... " >&6; }
2731 if ${ac_cv_prog_CC+:} false; then :
2732   $as_echo_n "(cached) " >&6
2733 else
2734   if test -n "$CC"; then
2735   ac_cv_prog_CC="$CC" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740   IFS=$as_save_IFS
2741   test -z "$as_dir" && as_dir=.
2742     for ac_exec_ext in '' $ac_executable_extensions; do
2743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746     break 2
2747   fi
2748 done
2749   done
2750 IFS=$as_save_IFS
2751
2752 fi
2753 fi
2754 CC=$ac_cv_prog_CC
2755 if test -n "$CC"; then
2756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2757 $as_echo "$CC" >&6; }
2758 else
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2761 fi
2762
2763
2764     test -n "$CC" && break
2765   done
2766 fi
2767 if test -z "$CC"; then
2768   ac_ct_CC=$CC
2769   for ac_prog in cl.exe
2770 do
2771   # Extract the first word of "$ac_prog", so it can be a program name with args.
2772 set dummy $ac_prog; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2776   $as_echo_n "(cached) " >&6
2777 else
2778   if test -n "$ac_ct_CC"; then
2779   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786     for ac_exec_ext in '' $ac_executable_extensions; do
2787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788     ac_cv_prog_ac_ct_CC="$ac_prog"
2789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790     break 2
2791   fi
2792 done
2793   done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2799 if test -n "$ac_ct_CC"; then
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2801 $as_echo "$ac_ct_CC" >&6; }
2802 else
2803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808   test -n "$ac_ct_CC" && break
2809 done
2810
2811   if test "x$ac_ct_CC" = x; then
2812     CC=""
2813   else
2814     case $cross_compiling:$ac_tool_warned in
2815 yes:)
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2818 ac_tool_warned=yes ;;
2819 esac
2820     CC=$ac_ct_CC
2821   fi
2822 fi
2823
2824 fi
2825
2826
2827 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2829 as_fn_error $? "no acceptable C compiler found in \$PATH
2830 See \`config.log' for more details" "$LINENO" 5; }
2831
2832 # Provide some information about the compiler.
2833 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2834 set X $ac_compile
2835 ac_compiler=$2
2836 for ac_option in --version -v -V -qversion; do
2837   { { ac_try="$ac_compiler $ac_option >&5"
2838 case "(($ac_try" in
2839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840   *) ac_try_echo=$ac_try;;
2841 esac
2842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2843 $as_echo "$ac_try_echo"; } >&5
2844   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2845   ac_status=$?
2846   if test -s conftest.err; then
2847     sed '10a\
2848 ... rest of stderr output deleted ...
2849          10q' conftest.err >conftest.er1
2850     cat conftest.er1 >&5
2851   fi
2852   rm -f conftest.er1 conftest.err
2853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2854   test $ac_status = 0; }
2855 done
2856
2857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858 /* end confdefs.h.  */
2859
2860 int
2861 main ()
2862 {
2863
2864   ;
2865   return 0;
2866 }
2867 _ACEOF
2868 ac_clean_files_save=$ac_clean_files
2869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2870 # Try to create an executable without -o first, disregard a.out.
2871 # It will help us diagnose broken compilers, and finding out an intuition
2872 # of exeext.
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2874 $as_echo_n "checking whether the C compiler works... " >&6; }
2875 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2876
2877 # The possible output files:
2878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2879
2880 ac_rmfiles=
2881 for ac_file in $ac_files
2882 do
2883   case $ac_file in
2884     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2885     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2886   esac
2887 done
2888 rm -f $ac_rmfiles
2889
2890 if { { ac_try="$ac_link_default"
2891 case "(($ac_try" in
2892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893   *) ac_try_echo=$ac_try;;
2894 esac
2895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2896 $as_echo "$ac_try_echo"; } >&5
2897   (eval "$ac_link_default") 2>&5
2898   ac_status=$?
2899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2900   test $ac_status = 0; }; then :
2901   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2903 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2904 # so that the user can short-circuit this test for compilers unknown to
2905 # Autoconf.
2906 for ac_file in $ac_files ''
2907 do
2908   test -f "$ac_file" || continue
2909   case $ac_file in
2910     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2911         ;;
2912     [ab].out )
2913         # We found the default executable, but exeext='' is most
2914         # certainly right.
2915         break;;
2916     *.* )
2917         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2918         then :; else
2919            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2920         fi
2921         # We set ac_cv_exeext here because the later test for it is not
2922         # safe: cross compilers may not add the suffix if given an `-o'
2923         # argument, so we may need to know it at that point already.
2924         # Even if this section looks crufty: it has the advantage of
2925         # actually working.
2926         break;;
2927     * )
2928         break;;
2929   esac
2930 done
2931 test "$ac_cv_exeext" = no && ac_cv_exeext=
2932
2933 else
2934   ac_file=''
2935 fi
2936 if test -z "$ac_file"; then :
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2939 $as_echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944 as_fn_error 77 "C compiler cannot create executables
2945 See \`config.log' for more details" "$LINENO" 5; }
2946 else
2947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 $as_echo "yes" >&6; }
2949 fi
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2951 $as_echo_n "checking for C compiler default output file name... " >&6; }
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2953 $as_echo "$ac_file" >&6; }
2954 ac_exeext=$ac_cv_exeext
2955
2956 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2957 ac_clean_files=$ac_clean_files_save
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2959 $as_echo_n "checking for suffix of executables... " >&6; }
2960 if { { ac_try="$ac_link"
2961 case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966 $as_echo "$ac_try_echo"; } >&5
2967   (eval "$ac_link") 2>&5
2968   ac_status=$?
2969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970   test $ac_status = 0; }; then :
2971   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2972 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2973 # work properly (i.e., refer to `conftest.exe'), while it won't with
2974 # `rm'.
2975 for ac_file in conftest.exe conftest conftest.*; do
2976   test -f "$ac_file" || continue
2977   case $ac_file in
2978     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2979     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2980           break;;
2981     * ) break;;
2982   esac
2983 done
2984 else
2985   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2988 See \`config.log' for more details" "$LINENO" 5; }
2989 fi
2990 rm -f conftest conftest$ac_cv_exeext
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2992 $as_echo "$ac_cv_exeext" >&6; }
2993
2994 rm -f conftest.$ac_ext
2995 EXEEXT=$ac_cv_exeext
2996 ac_exeext=$EXEEXT
2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998 /* end confdefs.h.  */
2999 #include <stdio.h>
3000 int
3001 main ()
3002 {
3003 FILE *f = fopen ("conftest.out", "w");
3004  return ferror (f) || fclose (f) != 0;
3005
3006   ;
3007   return 0;
3008 }
3009 _ACEOF
3010 ac_clean_files="$ac_clean_files conftest.out"
3011 # Check that the compiler produces executables we can run.  If not, either
3012 # the compiler is broken, or we cross compile.
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3014 $as_echo_n "checking whether we are cross compiling... " >&6; }
3015 if test "$cross_compiling" != yes; then
3016   { { ac_try="$ac_link"
3017 case "(($ac_try" in
3018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019   *) ac_try_echo=$ac_try;;
3020 esac
3021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3022 $as_echo "$ac_try_echo"; } >&5
3023   (eval "$ac_link") 2>&5
3024   ac_status=$?
3025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3026   test $ac_status = 0; }
3027   if { ac_try='./conftest$ac_cv_exeext'
3028   { { case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034   (eval "$ac_try") 2>&5
3035   ac_status=$?
3036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037   test $ac_status = 0; }; }; then
3038     cross_compiling=no
3039   else
3040     if test "$cross_compiling" = maybe; then
3041         cross_compiling=yes
3042     else
3043         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045 as_fn_error $? "cannot run C compiled programs.
3046 If you meant to cross compile, use \`--host'.
3047 See \`config.log' for more details" "$LINENO" 5; }
3048     fi
3049   fi
3050 fi
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3052 $as_echo "$cross_compiling" >&6; }
3053
3054 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3055 ac_clean_files=$ac_clean_files_save
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3057 $as_echo_n "checking for suffix of object files... " >&6; }
3058 if ${ac_cv_objext+:} false; then :
3059   $as_echo_n "(cached) " >&6
3060 else
3061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h.  */
3063
3064 int
3065 main ()
3066 {
3067
3068   ;
3069   return 0;
3070 }
3071 _ACEOF
3072 rm -f conftest.o conftest.obj
3073 if { { ac_try="$ac_compile"
3074 case "(($ac_try" in
3075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076   *) ac_try_echo=$ac_try;;
3077 esac
3078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079 $as_echo "$ac_try_echo"; } >&5
3080   (eval "$ac_compile") 2>&5
3081   ac_status=$?
3082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083   test $ac_status = 0; }; then :
3084   for ac_file in conftest.o conftest.obj conftest.*; do
3085   test -f "$ac_file" || continue;
3086   case $ac_file in
3087     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3088     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3089        break;;
3090   esac
3091 done
3092 else
3093   $as_echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3095
3096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098 as_fn_error $? "cannot compute suffix of object files: cannot compile
3099 See \`config.log' for more details" "$LINENO" 5; }
3100 fi
3101 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3102 fi
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3104 $as_echo "$ac_cv_objext" >&6; }
3105 OBJEXT=$ac_cv_objext
3106 ac_objext=$OBJEXT
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3108 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3109 if ${ac_cv_c_compiler_gnu+:} false; then :
3110   $as_echo_n "(cached) " >&6
3111 else
3112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h.  */
3114
3115 int
3116 main ()
3117 {
3118 #ifndef __GNUC__
3119        choke me
3120 #endif
3121
3122   ;
3123   return 0;
3124 }
3125 _ACEOF
3126 if ac_fn_c_try_compile "$LINENO"; then :
3127   ac_compiler_gnu=yes
3128 else
3129   ac_compiler_gnu=no
3130 fi
3131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3133
3134 fi
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3136 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3137 if test $ac_compiler_gnu = yes; then
3138   GCC=yes
3139 else
3140   GCC=
3141 fi
3142 ac_test_CFLAGS=${CFLAGS+set}
3143 ac_save_CFLAGS=$CFLAGS
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3145 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3146 if ${ac_cv_prog_cc_g+:} false; then :
3147   $as_echo_n "(cached) " >&6
3148 else
3149   ac_save_c_werror_flag=$ac_c_werror_flag
3150    ac_c_werror_flag=yes
3151    ac_cv_prog_cc_g=no
3152    CFLAGS="-g"
3153    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h.  */
3155
3156 int
3157 main ()
3158 {
3159
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 if ac_fn_c_try_compile "$LINENO"; then :
3165   ac_cv_prog_cc_g=yes
3166 else
3167   CFLAGS=""
3168       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h.  */
3170
3171 int
3172 main ()
3173 {
3174
3175   ;
3176   return 0;
3177 }
3178 _ACEOF
3179 if ac_fn_c_try_compile "$LINENO"; then :
3180
3181 else
3182   ac_c_werror_flag=$ac_save_c_werror_flag
3183          CFLAGS="-g"
3184          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185 /* end confdefs.h.  */
3186
3187 int
3188 main ()
3189 {
3190
3191   ;
3192   return 0;
3193 }
3194 _ACEOF
3195 if ac_fn_c_try_compile "$LINENO"; then :
3196   ac_cv_prog_cc_g=yes
3197 fi
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 fi
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203    ac_c_werror_flag=$ac_save_c_werror_flag
3204 fi
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3206 $as_echo "$ac_cv_prog_cc_g" >&6; }
3207 if test "$ac_test_CFLAGS" = set; then
3208   CFLAGS=$ac_save_CFLAGS
3209 elif test $ac_cv_prog_cc_g = yes; then
3210   if test "$GCC" = yes; then
3211     CFLAGS="-g -O2"
3212   else
3213     CFLAGS="-g"
3214   fi
3215 else
3216   if test "$GCC" = yes; then
3217     CFLAGS="-O2"
3218   else
3219     CFLAGS=
3220   fi
3221 fi
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3223 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3224 if ${ac_cv_prog_cc_c89+:} false; then :
3225   $as_echo_n "(cached) " >&6
3226 else
3227   ac_cv_prog_cc_c89=no
3228 ac_save_CC=$CC
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h.  */
3231 #include <stdarg.h>
3232 #include <stdio.h>
3233 #include <sys/types.h>
3234 #include <sys/stat.h>
3235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3236 struct buf { int x; };
3237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 static char *e (p, i)
3239      char **p;
3240      int i;
3241 {
3242   return p[i];
3243 }
3244 static char *f (char * (*g) (char **, int), char **p, ...)
3245 {
3246   char *s;
3247   va_list v;
3248   va_start (v,p);
3249   s = g (p, va_arg (v,int));
3250   va_end (v);
3251   return s;
3252 }
3253
3254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3255    function prototypes and stuff, but not '\xHH' hex character constants.
3256    These don't provoke an error unfortunately, instead are silently treated
3257    as 'x'.  The following induces an error, until -std is added to get
3258    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3259    array size at least.  It's necessary to write '\x00'==0 to get something
3260    that's true only with -std.  */
3261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3262
3263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264    inside strings and character constants.  */
3265 #define FOO(x) 'x'
3266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3267
3268 int test (int i, double x);
3269 struct s1 {int (*f) (int a);};
3270 struct s2 {int (*f) (double a);};
3271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272 int argc;
3273 char **argv;
3274 int
3275 main ()
3276 {
3277 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3278   ;
3279   return 0;
3280 }
3281 _ACEOF
3282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3284 do
3285   CC="$ac_save_CC $ac_arg"
3286   if ac_fn_c_try_compile "$LINENO"; then :
3287   ac_cv_prog_cc_c89=$ac_arg
3288 fi
3289 rm -f core conftest.err conftest.$ac_objext
3290   test "x$ac_cv_prog_cc_c89" != "xno" && break
3291 done
3292 rm -f conftest.$ac_ext
3293 CC=$ac_save_CC
3294
3295 fi
3296 # AC_CACHE_VAL
3297 case "x$ac_cv_prog_cc_c89" in
3298   x)
3299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3300 $as_echo "none needed" >&6; } ;;
3301   xno)
3302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3303 $as_echo "unsupported" >&6; } ;;
3304   *)
3305     CC="$CC $ac_cv_prog_cc_c89"
3306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3307 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3308 esac
3309 if test "x$ac_cv_prog_cc_c89" != xno; then :
3310
3311 fi
3312
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3325 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3326 # On Suns, sometimes $CPP names a directory.
3327 if test -n "$CPP" && test -d "$CPP"; then
3328   CPP=
3329 fi
3330 if test -z "$CPP"; then
3331   if ${ac_cv_prog_CPP+:} false; then :
3332   $as_echo_n "(cached) " >&6
3333 else
3334       # Double quotes because CPP needs to be expanded
3335     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3336     do
3337       ac_preproc_ok=false
3338 for ac_c_preproc_warn_flag in '' yes
3339 do
3340   # Use a header file that comes with gcc, so configuring glibc
3341   # with a fresh cross-compiler works.
3342   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3343   # <limits.h> exists even on freestanding compilers.
3344   # On the NeXT, cc -E runs the code through the compiler's parser,
3345   # not just through cpp. "Syntax error" is here to catch this case.
3346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h.  */
3348 #ifdef __STDC__
3349 # include <limits.h>
3350 #else
3351 # include <assert.h>
3352 #endif
3353                      Syntax error
3354 _ACEOF
3355 if ac_fn_c_try_cpp "$LINENO"; then :
3356
3357 else
3358   # Broken: fails on valid input.
3359 continue
3360 fi
3361 rm -f conftest.err conftest.i conftest.$ac_ext
3362
3363   # OK, works on sane cases.  Now check whether nonexistent headers
3364   # can be detected and how.
3365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h.  */
3367 #include <ac_nonexistent.h>
3368 _ACEOF
3369 if ac_fn_c_try_cpp "$LINENO"; then :
3370   # Broken: success on invalid input.
3371 continue
3372 else
3373   # Passes both tests.
3374 ac_preproc_ok=:
3375 break
3376 fi
3377 rm -f conftest.err conftest.i conftest.$ac_ext
3378
3379 done
3380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3381 rm -f conftest.i conftest.err conftest.$ac_ext
3382 if $ac_preproc_ok; then :
3383   break
3384 fi
3385
3386     done
3387     ac_cv_prog_CPP=$CPP
3388
3389 fi
3390   CPP=$ac_cv_prog_CPP
3391 else
3392   ac_cv_prog_CPP=$CPP
3393 fi
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3395 $as_echo "$CPP" >&6; }
3396 ac_preproc_ok=false
3397 for ac_c_preproc_warn_flag in '' yes
3398 do
3399   # Use a header file that comes with gcc, so configuring glibc
3400   # with a fresh cross-compiler works.
3401   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3402   # <limits.h> exists even on freestanding compilers.
3403   # On the NeXT, cc -E runs the code through the compiler's parser,
3404   # not just through cpp. "Syntax error" is here to catch this case.
3405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h.  */
3407 #ifdef __STDC__
3408 # include <limits.h>
3409 #else
3410 # include <assert.h>
3411 #endif
3412                      Syntax error
3413 _ACEOF
3414 if ac_fn_c_try_cpp "$LINENO"; then :
3415
3416 else
3417   # Broken: fails on valid input.
3418 continue
3419 fi
3420 rm -f conftest.err conftest.i conftest.$ac_ext
3421
3422   # OK, works on sane cases.  Now check whether nonexistent headers
3423   # can be detected and how.
3424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h.  */
3426 #include <ac_nonexistent.h>
3427 _ACEOF
3428 if ac_fn_c_try_cpp "$LINENO"; then :
3429   # Broken: success on invalid input.
3430 continue
3431 else
3432   # Passes both tests.
3433 ac_preproc_ok=:
3434 break
3435 fi
3436 rm -f conftest.err conftest.i conftest.$ac_ext
3437
3438 done
3439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440 rm -f conftest.i conftest.err conftest.$ac_ext
3441 if $ac_preproc_ok; then :
3442
3443 else
3444   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3447 See \`config.log' for more details" "$LINENO" 5; }
3448 fi
3449
3450 ac_ext=c
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
3456
3457
3458
3459 # checks for native programs to generate building tool
3460
3461 if test ${cross_compiling} = yes; then
3462   # Extract the first word of "${build}-gcc", so it can be a program name with args.
3463 set dummy ${build}-gcc; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_prog_CC_BUILD+:} false; then :
3467   $as_echo_n "(cached) " >&6
3468 else
3469   if test -n "$CC_BUILD"; then
3470   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475   IFS=$as_save_IFS
3476   test -z "$as_dir" && as_dir=.
3477     for ac_exec_ext in '' $ac_executable_extensions; do
3478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479     ac_cv_prog_CC_BUILD="${build}-gcc"
3480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481     break 2
3482   fi
3483 done
3484   done
3485 IFS=$as_save_IFS
3486
3487 fi
3488 fi
3489 CC_BUILD=$ac_cv_prog_CC_BUILD
3490 if test -n "$CC_BUILD"; then
3491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3492 $as_echo "$CC_BUILD" >&6; }
3493 else
3494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3496 fi
3497
3498
3499   test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
3500 set dummy gcc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_CC_BUILD+:} false; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   if test -n "$CC_BUILD"; then
3507   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3511 do
3512   IFS=$as_save_IFS
3513   test -z "$as_dir" && as_dir=.
3514     for ac_exec_ext in '' $ac_executable_extensions; do
3515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516     ac_cv_prog_CC_BUILD="gcc"
3517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518     break 2
3519   fi
3520 done
3521   done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 CC_BUILD=$ac_cv_prog_CC_BUILD
3527 if test -n "$CC_BUILD"; then
3528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3529 $as_echo "$CC_BUILD" >&6; }
3530 else
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3533 fi
3534
3535
3536   test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
3537 set dummy cc; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if ${ac_cv_prog_CC_BUILD+:} false; then :
3541   $as_echo_n "(cached) " >&6
3542 else
3543   if test -n "$CC_BUILD"; then
3544   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3545 else
3546   ac_prog_rejected=no
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   test -z "$as_dir" && as_dir=.
3552     for ac_exec_ext in '' $ac_executable_extensions; do
3553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3555        ac_prog_rejected=yes
3556        continue
3557      fi
3558     ac_cv_prog_CC_BUILD="cc"
3559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560     break 2
3561   fi
3562 done
3563   done
3564 IFS=$as_save_IFS
3565
3566 if test $ac_prog_rejected = yes; then
3567   # We found a bogon in the path, so make sure we never use it.
3568   set dummy $ac_cv_prog_CC_BUILD
3569   shift
3570   if test $# != 0; then
3571     # We chose a different compiler from the bogus one.
3572     # However, it has the same basename, so the bogon will be chosen
3573     # first if we set CC_BUILD to just the basename; use the full file name.
3574     shift
3575     ac_cv_prog_CC_BUILD="$as_dir/$ac_word${1+' '}$@"
3576   fi
3577 fi
3578 fi
3579 fi
3580 CC_BUILD=$ac_cv_prog_CC_BUILD
3581 if test -n "$CC_BUILD"; then
3582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3583 $as_echo "$CC_BUILD" >&6; }
3584 else
3585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3587 fi
3588
3589
3590   test -z "${CC_BUILD}" && as_fn_error $? "cannot find native C compiler" "$LINENO" 5
3591
3592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of native executables" >&5
3593 $as_echo_n "checking for suffix of native executables... " >&6; }
3594   rm -f a.* b.* a_out.exe conftest.*
3595   echo > conftest.c "int main() { return 0;}"
3596   ${CC_BUILD} conftest.c || as_fn_error $? "native C compiler is not working" "$LINENO" 5
3597   rm -f conftest.c
3598   if test -x a.out -o -x b.out -o -x conftest; then
3599     EXEEXT_BUILD=""
3600   elif test -x a_out.exe -o -x conftest.exe; then
3601     EXEEXT_BUILD=".exe"
3602   elif test -x conftest.*; then
3603     EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
3604   fi
3605   rm -f a.* b.* a_out.exe conftest.*
3606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT_BUILD" >&5
3607 $as_echo "$EXEEXT_BUILD" >&6; }
3608 else
3609   CC_BUILD=${CC}
3610   EXEEXT_BUILD=${EXEEXT}
3611 fi
3612
3613
3614
3615
3616
3617
3618 # get compiler flags right
3619
3620 if test "x$GCC" = xyes; then
3621   XX_CFLAGS="-Wall"
3622   XX_ANSIFLAGS="-pedantic -ansi"
3623 else
3624   case "$host" in
3625   *-dec-osf*)
3626     CFLAGS=
3627     XX_CFLAGS="-std1 -g3"
3628     XX_ANSIFLAGS=
3629     ;;
3630   *)
3631     XX_CFLAGS=
3632     XX_ANSIFLAGS=
3633     ;;
3634   esac
3635 fi
3636
3637
3638
3639
3640 # auxiliary programs
3641
3642 # Extract the first word of "rm", so it can be a program name with args.
3643 set dummy rm; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_RMF+:} false; then :
3647   $as_echo_n "(cached) " >&6
3648 else
3649   if test -n "$RMF"; then
3650   ac_cv_prog_RMF="$RMF" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655   IFS=$as_save_IFS
3656   test -z "$as_dir" && as_dir=.
3657     for ac_exec_ext in '' $ac_executable_extensions; do
3658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659     ac_cv_prog_RMF="rm -f"
3660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661     break 2
3662   fi
3663 done
3664   done
3665 IFS=$as_save_IFS
3666
3667 fi
3668 fi
3669 RMF=$ac_cv_prog_RMF
3670 if test -n "$RMF"; then
3671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMF" >&5
3672 $as_echo "$RMF" >&6; }
3673 else
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3676 fi
3677
3678
3679 # Extract the first word of "rmdir", so it can be a program name with args.
3680 set dummy rmdir; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if ${ac_cv_prog_RMDIR+:} false; then :
3684   $as_echo_n "(cached) " >&6
3685 else
3686   if test -n "$RMDIR"; then
3687   ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692   IFS=$as_save_IFS
3693   test -z "$as_dir" && as_dir=.
3694     for ac_exec_ext in '' $ac_executable_extensions; do
3695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696     ac_cv_prog_RMDIR="rmdir"
3697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698     break 2
3699   fi
3700 done
3701   done
3702 IFS=$as_save_IFS
3703
3704 fi
3705 fi
3706 RMDIR=$ac_cv_prog_RMDIR
3707 if test -n "$RMDIR"; then
3708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
3709 $as_echo "$RMDIR" >&6; }
3710 else
3711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 fi
3714
3715
3716
3717
3718 # Since this file will be finally moved to another directory we make
3719 # the path of the install script absolute.  This small code snippet has
3720 # been taken from automake's `ylwrap' script.
3721
3722 # Find a good install program.  We prefer a C program (faster),
3723 # so one script is as good as another.  But avoid the broken or
3724 # incompatible versions:
3725 # SysV /etc/install, /usr/sbin/install
3726 # SunOS /usr/etc/install
3727 # IRIX /sbin/install
3728 # AIX /bin/install
3729 # AmigaOS /C/install, which installs bootblocks on floppy discs
3730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3733 # OS/2's system install, which has a completely different semantic
3734 # ./install, which can be erroneously created by make from ./install.sh.
3735 # Reject install programs that cannot install multiple files.
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3737 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3738 if test -z "$INSTALL"; then
3739 if ${ac_cv_path_install+:} false; then :
3740   $as_echo_n "(cached) " >&6
3741 else
3742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745   IFS=$as_save_IFS
3746   test -z "$as_dir" && as_dir=.
3747     # Account for people who put trailing slashes in PATH elements.
3748 case $as_dir/ in #((
3749   ./ | .// | /[cC]/* | \
3750   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3751   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3752   /usr/ucb/* ) ;;
3753   *)
3754     # OSF1 and SCO ODT 3.0 have their own names for install.
3755     # Don't use installbsd from OSF since it installs stuff as root
3756     # by default.
3757     for ac_prog in ginstall scoinst install; do
3758       for ac_exec_ext in '' $ac_executable_extensions; do
3759         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3760           if test $ac_prog = install &&
3761             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3762             # AIX install.  It has an incompatible calling convention.
3763             :
3764           elif test $ac_prog = install &&
3765             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3766             # program-specific install script used by HP pwplus--don't use.
3767             :
3768           else
3769             rm -rf conftest.one conftest.two conftest.dir
3770             echo one > conftest.one
3771             echo two > conftest.two
3772             mkdir conftest.dir
3773             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3774               test -s conftest.one && test -s conftest.two &&
3775               test -s conftest.dir/conftest.one &&
3776               test -s conftest.dir/conftest.two
3777             then
3778               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3779               break 3
3780             fi
3781           fi
3782         fi
3783       done
3784     done
3785     ;;
3786 esac
3787
3788   done
3789 IFS=$as_save_IFS
3790
3791 rm -rf conftest.one conftest.two conftest.dir
3792
3793 fi
3794   if test "${ac_cv_path_install+set}" = set; then
3795     INSTALL=$ac_cv_path_install
3796   else
3797     # As a last resort, use the slow shell script.  Don't cache a
3798     # value for INSTALL within a source directory, because that will
3799     # break other packages using the cache if that directory is
3800     # removed, or if the value is a relative name.
3801     INSTALL=$ac_install_sh
3802   fi
3803 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3805 $as_echo "$INSTALL" >&6; }
3806
3807 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3808 # It thinks the first close brace ends the variable substitution.
3809 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3810
3811 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3812
3813 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3814
3815 case "$INSTALL" in
3816 /*)
3817   ;;
3818 */*)
3819   INSTALL="`pwd`/$INSTALL"
3820   ;;
3821 esac
3822
3823
3824 # checks for header files
3825
3826
3827
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3829 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3830 if ${ac_cv_path_GREP+:} false; then :
3831   $as_echo_n "(cached) " >&6
3832 else
3833   if test -z "$GREP"; then
3834   ac_path_GREP_found=false
3835   # Loop through the user's path and test for each of PROGNAME-LIST
3836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3838 do
3839   IFS=$as_save_IFS
3840   test -z "$as_dir" && as_dir=.
3841     for ac_prog in grep ggrep; do
3842     for ac_exec_ext in '' $ac_executable_extensions; do
3843       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3844       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3845 # Check for GNU ac_path_GREP and select it if it is found.
3846   # Check for GNU $ac_path_GREP
3847 case `"$ac_path_GREP" --version 2>&1` in
3848 *GNU*)
3849   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3850 *)
3851   ac_count=0
3852   $as_echo_n 0123456789 >"conftest.in"
3853   while :
3854   do
3855     cat "conftest.in" "conftest.in" >"conftest.tmp"
3856     mv "conftest.tmp" "conftest.in"
3857     cp "conftest.in" "conftest.nl"
3858     $as_echo 'GREP' >> "conftest.nl"
3859     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3860     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3861     as_fn_arith $ac_count + 1 && ac_count=$as_val
3862     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3863       # Best one so far, save it but keep looking for a better one
3864       ac_cv_path_GREP="$ac_path_GREP"
3865       ac_path_GREP_max=$ac_count
3866     fi
3867     # 10*(2^10) chars as input seems more than enough
3868     test $ac_count -gt 10 && break
3869   done
3870   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3871 esac
3872
3873       $ac_path_GREP_found && break 3
3874     done
3875   done
3876   done
3877 IFS=$as_save_IFS
3878   if test -z "$ac_cv_path_GREP"; then
3879     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3880   fi
3881 else
3882   ac_cv_path_GREP=$GREP
3883 fi
3884
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3887 $as_echo "$ac_cv_path_GREP" >&6; }
3888  GREP="$ac_cv_path_GREP"
3889
3890
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3892 $as_echo_n "checking for egrep... " >&6; }
3893 if ${ac_cv_path_EGREP+:} false; then :
3894   $as_echo_n "(cached) " >&6
3895 else
3896   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3897    then ac_cv_path_EGREP="$GREP -E"
3898    else
3899      if test -z "$EGREP"; then
3900   ac_path_EGREP_found=false
3901   # Loop through the user's path and test for each of PROGNAME-LIST
3902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3904 do
3905   IFS=$as_save_IFS
3906   test -z "$as_dir" && as_dir=.
3907     for ac_prog in egrep; do
3908     for ac_exec_ext in '' $ac_executable_extensions; do
3909       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3910       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3911 # Check for GNU ac_path_EGREP and select it if it is found.
3912   # Check for GNU $ac_path_EGREP
3913 case `"$ac_path_EGREP" --version 2>&1` in
3914 *GNU*)
3915   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3916 *)
3917   ac_count=0
3918   $as_echo_n 0123456789 >"conftest.in"
3919   while :
3920   do
3921     cat "conftest.in" "conftest.in" >"conftest.tmp"
3922     mv "conftest.tmp" "conftest.in"
3923     cp "conftest.in" "conftest.nl"
3924     $as_echo 'EGREP' >> "conftest.nl"
3925     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927     as_fn_arith $ac_count + 1 && ac_count=$as_val
3928     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3929       # Best one so far, save it but keep looking for a better one
3930       ac_cv_path_EGREP="$ac_path_EGREP"
3931       ac_path_EGREP_max=$ac_count
3932     fi
3933     # 10*(2^10) chars as input seems more than enough
3934     test $ac_count -gt 10 && break
3935   done
3936   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3937 esac
3938
3939       $ac_path_EGREP_found && break 3
3940     done
3941   done
3942   done
3943 IFS=$as_save_IFS
3944   if test -z "$ac_cv_path_EGREP"; then
3945     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3946   fi
3947 else
3948   ac_cv_path_EGREP=$EGREP
3949 fi
3950
3951    fi
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3954 $as_echo "$ac_cv_path_EGREP" >&6; }
3955  EGREP="$ac_cv_path_EGREP"
3956
3957
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3959 $as_echo_n "checking for ANSI C header files... " >&6; }
3960 if ${ac_cv_header_stdc+:} false; then :
3961   $as_echo_n "(cached) " >&6
3962 else
3963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h.  */
3965 #include <stdlib.h>
3966 #include <stdarg.h>
3967 #include <string.h>
3968 #include <float.h>
3969
3970 int
3971 main ()
3972 {
3973
3974   ;
3975   return 0;
3976 }
3977 _ACEOF
3978 if ac_fn_c_try_compile "$LINENO"; then :
3979   ac_cv_header_stdc=yes
3980 else
3981   ac_cv_header_stdc=no
3982 fi
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984
3985 if test $ac_cv_header_stdc = yes; then
3986   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h.  */
3989 #include <string.h>
3990
3991 _ACEOF
3992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993   $EGREP "memchr" >/dev/null 2>&1; then :
3994
3995 else
3996   ac_cv_header_stdc=no
3997 fi
3998 rm -f conftest*
3999
4000 fi
4001
4002 if test $ac_cv_header_stdc = yes; then
4003   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h.  */
4006 #include <stdlib.h>
4007
4008 _ACEOF
4009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010   $EGREP "free" >/dev/null 2>&1; then :
4011
4012 else
4013   ac_cv_header_stdc=no
4014 fi
4015 rm -f conftest*
4016
4017 fi
4018
4019 if test $ac_cv_header_stdc = yes; then
4020   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4021   if test "$cross_compiling" = yes; then :
4022   :
4023 else
4024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h.  */
4026 #include <ctype.h>
4027 #include <stdlib.h>
4028 #if ((' ' & 0x0FF) == 0x020)
4029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4031 #else
4032 # define ISLOWER(c) \
4033                    (('a' <= (c) && (c) <= 'i') \
4034                      || ('j' <= (c) && (c) <= 'r') \
4035                      || ('s' <= (c) && (c) <= 'z'))
4036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4037 #endif
4038
4039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4040 int
4041 main ()
4042 {
4043   int i;
4044   for (i = 0; i < 256; i++)
4045     if (XOR (islower (i), ISLOWER (i))
4046         || toupper (i) != TOUPPER (i))
4047       return 2;
4048   return 0;
4049 }
4050 _ACEOF
4051 if ac_fn_c_try_run "$LINENO"; then :
4052
4053 else
4054   ac_cv_header_stdc=no
4055 fi
4056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4057   conftest.$ac_objext conftest.beam conftest.$ac_ext
4058 fi
4059
4060 fi
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4063 $as_echo "$ac_cv_header_stdc" >&6; }
4064 if test $ac_cv_header_stdc = yes; then
4065
4066 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4067
4068 fi
4069
4070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4071 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4072                   inttypes.h stdint.h unistd.h
4073 do :
4074   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4075 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4076 "
4077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4078   cat >>confdefs.h <<_ACEOF
4079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4080 _ACEOF
4081
4082 fi
4083
4084 done
4085
4086
4087 for ac_header in fcntl.h unistd.h
4088 do :
4089   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4090 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4091 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4092   cat >>confdefs.h <<_ACEOF
4093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4094 _ACEOF
4095
4096 fi
4097
4098 done
4099
4100
4101
4102 # checks for typedefs, structures, and compiler characteristics
4103
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4105 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4106 if ${ac_cv_c_const+:} false; then :
4107   $as_echo_n "(cached) " >&6
4108 else
4109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h.  */
4111
4112 int
4113 main ()
4114 {
4115 /* FIXME: Include the comments suggested by Paul. */
4116 #ifndef __cplusplus
4117   /* Ultrix mips cc rejects this.  */
4118   typedef int charset[2];
4119   const charset cs;
4120   /* SunOS 4.1.1 cc rejects this.  */
4121   char const *const *pcpcc;
4122   char **ppc;
4123   /* NEC SVR4.0.2 mips cc rejects this.  */
4124   struct point {int x, y;};
4125   static struct point const zero = {0,0};
4126   /* AIX XL C 1.02.0.0 rejects this.
4127      It does not let you subtract one const X* pointer from another in
4128      an arm of an if-expression whose if-part is not a constant
4129      expression */
4130   const char *g = "string";
4131   pcpcc = &g + (g ? g-g : 0);
4132   /* HPUX 7.0 cc rejects these. */
4133   ++pcpcc;
4134   ppc = (char**) pcpcc;
4135   pcpcc = (char const *const *) ppc;
4136   { /* SCO 3.2v4 cc rejects this.  */
4137     char *t;
4138     char const *s = 0 ? (char *) 0 : (char const *) 0;
4139
4140     *t++ = 0;
4141     if (s) return 0;
4142   }
4143   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4144     int x[] = {25, 17};
4145     const int *foo = &x[0];
4146     ++foo;
4147   }
4148   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4149     typedef const int *iptr;
4150     iptr p = 0;
4151     ++p;
4152   }
4153   { /* AIX XL C 1.02.0.0 rejects this saying
4154        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4155     struct s { int j; const int *ap[3]; };
4156     struct s *b; b->j = 5;
4157   }
4158   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4159     const int foo = 10;
4160     if (!foo) return 0;
4161   }
4162   return !cs[0] && !zero.x;
4163 #endif
4164
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170   ac_cv_c_const=yes
4171 else
4172   ac_cv_c_const=no
4173 fi
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 fi
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4177 $as_echo "$ac_cv_c_const" >&6; }
4178 if test $ac_cv_c_const = no; then
4179
4180 $as_echo "#define const /**/" >>confdefs.h
4181
4182 fi
4183
4184 # The cast to long int works around a bug in the HP C Compiler
4185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4187 # This bug is HP SR number 8606223364.
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4189 $as_echo_n "checking size of int... " >&6; }
4190 if ${ac_cv_sizeof_int+:} false; then :
4191   $as_echo_n "(cached) " >&6
4192 else
4193   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
4194
4195 else
4196   if test "$ac_cv_type_int" = yes; then
4197      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4199 as_fn_error 77 "cannot compute sizeof (int)
4200 See \`config.log' for more details" "$LINENO" 5; }
4201    else
4202      ac_cv_sizeof_int=0
4203    fi
4204 fi
4205
4206 fi
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4208 $as_echo "$ac_cv_sizeof_int" >&6; }
4209
4210
4211
4212 cat >>confdefs.h <<_ACEOF
4213 #define SIZEOF_INT $ac_cv_sizeof_int
4214 _ACEOF
4215
4216
4217 # The cast to long int works around a bug in the HP C Compiler
4218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4220 # This bug is HP SR number 8606223364.
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4222 $as_echo_n "checking size of long... " >&6; }
4223 if ${ac_cv_sizeof_long+:} false; then :
4224   $as_echo_n "(cached) " >&6
4225 else
4226   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
4227
4228 else
4229   if test "$ac_cv_type_long" = yes; then
4230      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4232 as_fn_error 77 "cannot compute sizeof (long)
4233 See \`config.log' for more details" "$LINENO" 5; }
4234    else
4235      ac_cv_sizeof_long=0
4236    fi
4237 fi
4238
4239 fi
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4241 $as_echo "$ac_cv_sizeof_long" >&6; }
4242
4243
4244
4245 cat >>confdefs.h <<_ACEOF
4246 #define SIZEOF_LONG $ac_cv_sizeof_long
4247 _ACEOF
4248
4249
4250
4251
4252 # check whether cpp computation of size of int and long in ftconfig.in works
4253
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cpp computation of bit length in ftconfig.in works" >&5
4255 $as_echo_n "checking whether cpp computation of bit length in ftconfig.in works... " >&6; }
4256 orig_CPPFLAGS="${CPPFLAGS}"
4257 CPPFLAGS="-I${srcdir} -I. ${CPPFLAGS}"
4258 ac_clean_files="ft2build.h ftoption.h ftstdlib.h"
4259 touch ft2build.h ftoption.h ftstdlib.h
4260
4261 cat > conftest.c <<\_ACEOF
4262 #include <limits.h>
4263 #define FT_CONFIG_OPTIONS_H "ftoption.h"
4264 #define FT_CONFIG_STANDARD_LIBRARY_H "ftstdlib.h"
4265 #define FT_UINT_MAX  UINT_MAX
4266 #define FT_ULONG_MAX ULONG_MAX
4267 #include "ftconfig.in"
4268 _ACEOF
4269 echo >> conftest.c "#if FT_SIZEOF_INT == "${ac_cv_sizeof_int}
4270 echo >> conftest.c "ac_cpp_ft_sizeof_int="${ac_cv_sizeof_int}
4271 echo >> conftest.c "#endif"
4272 echo >> conftest.c "#if FT_SIZEOF_LONG == "${ac_cv_sizeof_long}
4273 echo >> conftest.c "ac_cpp_ft_sizeof_long="${ac_cv_sizeof_long}
4274 echo >> conftest.c "#endif"
4275
4276 ${CPP} ${CPPFLAGS} conftest.c | ${GREP} ac_cpp_ft > conftest.sh
4277 eval `cat conftest.sh`
4278 ${RMF} conftest.c conftest.sh confft2build.h ftoption.h ftstdlib.h
4279
4280 if test x != "x${ac_cpp_ft_sizeof_int}" \
4281    -a x != x"${ac_cpp_ft_sizeof_long}"; then
4282   unset ft_use_autoconf_sizeof_types
4283 else
4284   ft_use_autoconf_sizeof_types=yes
4285 fi
4286
4287 # Check whether --enable-biarch-config was given.
4288 if test "${enable_biarch_config+set}" = set; then :
4289   enableval=$enable_biarch_config;
4290 fi
4291
4292
4293 case :${ft_use_autoconf_sizeof_types}:${enable_biarch_config}: in
4294   :yes:yes:)
4295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken but use it" >&5
4296 $as_echo "broken but use it" >&6; }
4297     unset ft_use_autoconf_sizeof_types
4298     ;;
4299   ::no:)
4300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: works but ignore it" >&5
4301 $as_echo "works but ignore it" >&6; }
4302     ft_use_autoconf_sizeof_types=yes
4303     ;;
4304   ::yes: | :::)
4305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4306 $as_echo "yes" >&6; }
4307     unset ft_use_autoconf_sizeof_types
4308     ;;
4309   *)
4310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4312     ft_use_autoconf_sizeof_types=yes
4313     ;;
4314 esac
4315
4316 if test x"${ft_use_autoconf_sizeof_types}" = xyes; then
4317   $as_echo "#define FT_USE_AUTOCONF_SIZEOF_TYPES 1" >>confdefs.h
4318
4319 fi
4320
4321 CPPFLAGS="${orig_CPPFLAGS}"
4322
4323
4324 # checks for library functions
4325
4326 # Here we check whether we can use our mmap file component.
4327
4328 # Check whether --enable-mmap was given.
4329 if test "${enable_mmap+set}" = set; then :
4330   enableval=$enable_mmap; enable_mmap="no"
4331 else
4332   enable_mmap="yes"
4333 fi
4334
4335 if test "x${enable_mmap}" != "xno"; then
4336
4337
4338
4339   for ac_header in $ac_header_list
4340 do :
4341   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4342 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4343 "
4344 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4345   cat >>confdefs.h <<_ACEOF
4346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4347 _ACEOF
4348
4349 fi
4350
4351 done
4352
4353
4354
4355
4356
4357
4358
4359
4360 for ac_func in getpagesize
4361 do :
4362   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4363 if test "x$ac_cv_func_getpagesize" = xyes; then :
4364   cat >>confdefs.h <<_ACEOF
4365 #define HAVE_GETPAGESIZE 1
4366 _ACEOF
4367
4368 fi
4369 done
4370
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4372 $as_echo_n "checking for working mmap... " >&6; }
4373 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4374   $as_echo_n "(cached) " >&6
4375 else
4376   if test "$cross_compiling" = yes; then :
4377   ac_cv_func_mmap_fixed_mapped=no
4378 else
4379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h.  */
4381 $ac_includes_default
4382 /* malloc might have been renamed as rpl_malloc. */
4383 #undef malloc
4384
4385 /* Thanks to Mike Haertel and Jim Avera for this test.
4386    Here is a matrix of mmap possibilities:
4387         mmap private not fixed
4388         mmap private fixed at somewhere currently unmapped
4389         mmap private fixed at somewhere already mapped
4390         mmap shared not fixed
4391         mmap shared fixed at somewhere currently unmapped
4392         mmap shared fixed at somewhere already mapped
4393    For private mappings, we should verify that changes cannot be read()
4394    back from the file, nor mmap's back from the file at a different
4395    address.  (There have been systems where private was not correctly
4396    implemented like the infamous i386 svr4.0, and systems where the
4397    VM page cache was not coherent with the file system buffer cache
4398    like early versions of FreeBSD and possibly contemporary NetBSD.)
4399    For shared mappings, we should conversely verify that changes get
4400    propagated back to all the places they're supposed to be.
4401
4402    Grep wants private fixed already mapped.
4403    The main things grep needs to know about mmap are:
4404    * does it exist and is it safe to write into the mmap'd area
4405    * how to use it (BSD variants)  */
4406
4407 #include <fcntl.h>
4408 #include <sys/mman.h>
4409
4410 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4411 char *malloc ();
4412 #endif
4413
4414 /* This mess was copied from the GNU getpagesize.h.  */
4415 #ifndef HAVE_GETPAGESIZE
4416 # ifdef _SC_PAGESIZE
4417 #  define getpagesize() sysconf(_SC_PAGESIZE)
4418 # else /* no _SC_PAGESIZE */
4419 #  ifdef HAVE_SYS_PARAM_H
4420 #   include <sys/param.h>
4421 #   ifdef EXEC_PAGESIZE
4422 #    define getpagesize() EXEC_PAGESIZE
4423 #   else /* no EXEC_PAGESIZE */
4424 #    ifdef NBPG
4425 #     define getpagesize() NBPG * CLSIZE
4426 #     ifndef CLSIZE
4427 #      define CLSIZE 1
4428 #     endif /* no CLSIZE */
4429 #    else /* no NBPG */
4430 #     ifdef NBPC
4431 #      define getpagesize() NBPC
4432 #     else /* no NBPC */
4433 #      ifdef PAGESIZE
4434 #       define getpagesize() PAGESIZE
4435 #      endif /* PAGESIZE */
4436 #     endif /* no NBPC */
4437 #    endif /* no NBPG */
4438 #   endif /* no EXEC_PAGESIZE */
4439 #  else /* no HAVE_SYS_PARAM_H */
4440 #   define getpagesize() 8192   /* punt totally */
4441 #  endif /* no HAVE_SYS_PARAM_H */
4442 # endif /* no _SC_PAGESIZE */
4443
4444 #endif /* no HAVE_GETPAGESIZE */
4445
4446 int
4447 main ()
4448 {
4449   char *data, *data2, *data3;
4450   const char *cdata2;
4451   int i, pagesize;
4452   int fd, fd2;
4453
4454   pagesize = getpagesize ();
4455
4456   /* First, make a file with some known garbage in it. */
4457   data = (char *) malloc (pagesize);
4458   if (!data)
4459     return 1;
4460   for (i = 0; i < pagesize; ++i)
4461     *(data + i) = rand ();
4462   umask (0);
4463   fd = creat ("conftest.mmap", 0600);
4464   if (fd < 0)
4465     return 2;
4466   if (write (fd, data, pagesize) != pagesize)
4467     return 3;
4468   close (fd);
4469
4470   /* Next, check that the tail of a page is zero-filled.  File must have
4471      non-zero length, otherwise we risk SIGBUS for entire page.  */
4472   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4473   if (fd2 < 0)
4474     return 4;
4475   cdata2 = "";
4476   if (write (fd2, cdata2, 1) != 1)
4477     return 5;
4478   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4479   if (data2 == MAP_FAILED)
4480     return 6;
4481   for (i = 0; i < pagesize; ++i)
4482     if (*(data2 + i))
4483       return 7;
4484   close (fd2);
4485   if (munmap (data2, pagesize))
4486     return 8;
4487
4488   /* Next, try to mmap the file at a fixed address which already has
4489      something else allocated at it.  If we can, also make sure that
4490      we see the same garbage.  */
4491   fd = open ("conftest.mmap", O_RDWR);
4492   if (fd < 0)
4493     return 9;
4494   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4495                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4496     return 10;
4497   for (i = 0; i < pagesize; ++i)
4498     if (*(data + i) != *(data2 + i))
4499       return 11;
4500
4501   /* Finally, make sure that changes to the mapped area do not
4502      percolate back to the file as seen by read().  (This is a bug on
4503      some variants of i386 svr4.0.)  */
4504   for (i = 0; i < pagesize; ++i)
4505     *(data2 + i) = *(data2 + i) + 1;
4506   data3 = (char *) malloc (pagesize);
4507   if (!data3)
4508     return 12;
4509   if (read (fd, data3, pagesize) != pagesize)
4510     return 13;
4511   for (i = 0; i < pagesize; ++i)
4512     if (*(data + i) != *(data3 + i))
4513       return 14;
4514   close (fd);
4515   return 0;
4516 }
4517 _ACEOF
4518 if ac_fn_c_try_run "$LINENO"; then :
4519   ac_cv_func_mmap_fixed_mapped=yes
4520 else
4521   ac_cv_func_mmap_fixed_mapped=no
4522 fi
4523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4524   conftest.$ac_objext conftest.beam conftest.$ac_ext
4525 fi
4526
4527 fi
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4529 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4530 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4531
4532 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4533
4534 fi
4535 rm -f conftest.mmap conftest.txt
4536
4537 fi
4538 if test "x${enable_mmap}" = "xno" \
4539    -o "$ac_cv_func_mmap_fixed_mapped" != "yes"; then
4540   FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
4541 else
4542   FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
4543
4544   ac_fn_c_check_decl "$LINENO" "munmap" "ac_cv_have_decl_munmap" "
4545
4546 #ifdef HAVE_UNISTD_H
4547 #include <unistd.h>
4548 #endif
4549 #include <sys/mman.h>
4550
4551
4552 "
4553 if test "x$ac_cv_have_decl_munmap" = xyes; then :
4554   ac_have_decl=1
4555 else
4556   ac_have_decl=0
4557 fi
4558
4559 cat >>confdefs.h <<_ACEOF
4560 #define HAVE_DECL_MUNMAP $ac_have_decl
4561 _ACEOF
4562
4563
4564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for munmap's first parameter type" >&5
4565 $as_echo_n "checking for munmap's first parameter type... " >&6; }
4566    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h.  */
4568
4569
4570
4571 #include <unistd.h>
4572 #include <sys/mman.h>
4573 int munmap(void *, size_t);
4574
4575
4576
4577 _ACEOF
4578 if ac_fn_c_try_compile "$LINENO"; then :
4579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: void *" >&5
4580 $as_echo "void *" >&6; }
4581
4582 $as_echo "#define MUNMAP_USES_VOIDP /**/" >>confdefs.h
4583
4584 else
4585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: char *" >&5
4586 $as_echo "char *" >&6; }
4587 fi
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589
4590 fi
4591
4592
4593 for ac_func in memcpy memmove
4594 do :
4595   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4596 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4597 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4598   cat >>confdefs.h <<_ACEOF
4599 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4600 _ACEOF
4601
4602 fi
4603 done
4604
4605
4606
4607 # check for system zlib
4608
4609 # don't quote AS_HELP_STRING!
4610
4611 # Check whether --with-zlib was given.
4612 if test "${with_zlib+set}" = set; then :
4613   withval=$with_zlib;
4614 fi
4615
4616 if test x$with_zlib != xno && test -z "$LIBZ"; then
4617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
4618 $as_echo_n "checking for gzsetparams in -lz... " >&6; }
4619 if ${ac_cv_lib_z_gzsetparams+:} false; then :
4620   $as_echo_n "(cached) " >&6
4621 else
4622   ac_check_lib_save_LIBS=$LIBS
4623 LIBS="-lz  $LIBS"
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h.  */
4626
4627 /* Override any GCC internal prototype to avoid an error.
4628    Use char because int might match the return type of a GCC
4629    builtin and then its argument prototype would still apply.  */
4630 #ifdef __cplusplus
4631 extern "C"
4632 #endif
4633 char gzsetparams ();
4634 int
4635 main ()
4636 {
4637 return gzsetparams ();
4638   ;
4639   return 0;
4640 }
4641 _ACEOF
4642 if ac_fn_c_try_link "$LINENO"; then :
4643   ac_cv_lib_z_gzsetparams=yes
4644 else
4645   ac_cv_lib_z_gzsetparams=no
4646 fi
4647 rm -f core conftest.err conftest.$ac_objext \
4648     conftest$ac_exeext conftest.$ac_ext
4649 LIBS=$ac_check_lib_save_LIBS
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
4652 $as_echo "$ac_cv_lib_z_gzsetparams" >&6; }
4653 if test "x$ac_cv_lib_z_gzsetparams" = xyes; then :
4654   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4655 if test "x$ac_cv_header_zlib_h" = xyes; then :
4656   LIBZ='-lz'
4657 fi
4658
4659
4660 fi
4661
4662 fi
4663 if test x$with_zlib != xno && test -n "$LIBZ"; then
4664   CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB"
4665   LDFLAGS="$LDFLAGS $LIBZ"
4666   SYSTEM_ZLIB=yes
4667 fi
4668
4669 # check for system libbz2
4670
4671 # don't quote AS_HELP_STRING!
4672
4673 # Check whether --with-bzip2 was given.
4674 if test "${with_bzip2+set}" = set; then :
4675   withval=$with_bzip2;
4676 fi
4677
4678 if test x$with_bzip2 != xno && test -z "$LIBBZ2"; then
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
4680 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
4681 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
4682   $as_echo_n "(cached) " >&6
4683 else
4684   ac_check_lib_save_LIBS=$LIBS
4685 LIBS="-lbz2  $LIBS"
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h.  */
4688
4689 /* Override any GCC internal prototype to avoid an error.
4690    Use char because int might match the return type of a GCC
4691    builtin and then its argument prototype would still apply.  */
4692 #ifdef __cplusplus
4693 extern "C"
4694 #endif
4695 char BZ2_bzDecompress ();
4696 int
4697 main ()
4698 {
4699 return BZ2_bzDecompress ();
4700   ;
4701   return 0;
4702 }
4703 _ACEOF
4704 if ac_fn_c_try_link "$LINENO"; then :
4705   ac_cv_lib_bz2_BZ2_bzDecompress=yes
4706 else
4707   ac_cv_lib_bz2_BZ2_bzDecompress=no
4708 fi
4709 rm -f core conftest.err conftest.$ac_objext \
4710     conftest$ac_exeext conftest.$ac_ext
4711 LIBS=$ac_check_lib_save_LIBS
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
4714 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
4715 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
4716   ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
4717 if test "x$ac_cv_header_bzlib_h" = xyes; then :
4718   LIBBZ2='-lbz2'
4719 fi
4720
4721
4722 fi
4723
4724 fi
4725 if test x$with_bzip2 != xno && test -n "$LIBBZ2"; then
4726   CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_USE_BZIP2"
4727   LDFLAGS="$LDFLAGS $LIBBZ2"
4728 fi
4729
4730 # Some options handling SDKs/archs in CFLAGS should be copied
4731 # to LDFLAGS. Apple TechNote 2137 recommends to include these
4732 # options in CFLAGS but not in LDFLAGS.
4733
4734 save_config_args=$*
4735 set dummy ${CFLAGS}
4736 i=1
4737 while test $i -le $#
4738 do
4739   c=$1
4740
4741   case "${c}" in
4742   -isysroot|-arch) # options taking 1 argument
4743     a=$2
4744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
4745 $as_echo_n "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
4746     if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
4747     then
4748       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4749 $as_echo "yes" >&6; }
4750     else
4751       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
4752 $as_echo "no, copy to LDFLAGS" >&6; }
4753       LDFLAGS="${LDFLAGS} ${c} ${a}"
4754     fi
4755     shift 1
4756     ;;
4757   -m32|-m64|-march=*|-mcpu=*) # options taking no argument
4758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: whether CFLAGS and LDFLAGS share ${c}" >&5
4759 $as_echo "whether CFLAGS and LDFLAGS share ${c}" >&6; }
4760     if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
4761     then
4762       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4763 $as_echo "yes" >&6; }
4764     else
4765       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
4766 $as_echo "no, copy to LDFLAGS" >&6; }
4767       LDFLAGS="${LDFLAGS} ${c}"
4768     fi
4769     ;;
4770   # *)
4771   #   AC_MSG_RESULT([${c} is not copied to LDFLAGS])
4772   #   ;;
4773   esac
4774
4775   shift 1
4776 done
4777 set ${save_config_args}
4778
4779
4780 # Whether to use Mac OS resource-based fonts.
4781
4782 ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
4783
4784 # don't quote AS_HELP_STRING!
4785
4786 # Check whether --with-old-mac-fonts was given.
4787 if test "${with_old_mac_fonts+set}" = set; then :
4788   withval=$with_old_mac_fonts;
4789 fi
4790
4791 if test x$with_old_mac_fonts = xyes; then
4792   orig_LDFLAGS="${LDFLAGS}"
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking CoreServices & ApplicationServices of Mac OS X" >&5
4794 $as_echo_n "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
4795   FT2_EXTRA_LIBS="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
4796   LDFLAGS="$LDFLAGS $FT2_EXTRA_LIBS"
4797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h.  */
4799
4800
4801
4802 #if defined(__GNUC__) && defined(__APPLE_CC__)
4803 # include <CoreServices/CoreServices.h>
4804 # include <ApplicationServices/ApplicationServices.h>
4805 #else
4806 # include <ConditionalMacros.h>
4807 # include <Files.h>
4808 #endif
4809
4810
4811 int
4812 main ()
4813 {
4814
4815
4816         short res = 0;
4817
4818
4819         UseResFile( res );
4820
4821
4822   ;
4823   return 0;
4824 }
4825 _ACEOF
4826 if ac_fn_c_try_link "$LINENO"; then :
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4828 $as_echo "ok" >&6; }
4829      ftmac_c='ftmac.c'
4830      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS_INLINE macro is ANSI compatible" >&5
4831 $as_echo_n "checking whether OS_INLINE macro is ANSI compatible... " >&6; }
4832      orig_CFLAGS="$CFLAGS -DFT_MACINTOSH"
4833      CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
4834      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h.  */
4836
4837
4838
4839 #if defined(__GNUC__) && defined(__APPLE_CC__)
4840 # include <CoreServices/CoreServices.h>
4841 # include <ApplicationServices/ApplicationServices.h>
4842 #else
4843 # include <ConditionalMacros.h>
4844 # include <Files.h>
4845 #endif
4846
4847
4848 int
4849 main ()
4850 {
4851
4852
4853            /* OSHostByteOrder() is typed as OS_INLINE */
4854            int32_t  os_byte_order = OSHostByteOrder();
4855
4856
4857            if ( OSBigEndian != os_byte_order )
4858              return 1;
4859
4860
4861   ;
4862   return 0;
4863 }
4864 _ACEOF
4865 if ac_fn_c_try_compile "$LINENO"; then :
4866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4867 $as_echo "ok" >&6; }
4868         CFLAGS="$orig_CFLAGS"
4869         CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
4870
4871 else
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, ANSI incompatible" >&5
4873 $as_echo "no, ANSI incompatible" >&6; }
4874         CFLAGS="$orig_CFLAGS"
4875
4876 fi
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878      { $as_echo "$as_me:${as_lineno-$LINENO}: checking type ResourceIndex" >&5
4879 $as_echo_n "checking type ResourceIndex... " >&6; }
4880      orig_CFLAGS="$CFLAGS"
4881      CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
4882      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h.  */
4884
4885
4886
4887 #if defined(__GNUC__) && defined(__APPLE_CC__)
4888 # include <CoreServices/CoreServices.h>
4889 # include <ApplicationServices/ApplicationServices.h>
4890 #else
4891 # include <ConditionalMacros.h>
4892 # include <Files.h>
4893 # include <Resources.h>
4894 #endif
4895
4896
4897 int
4898 main ()
4899 {
4900
4901
4902            ResourceIndex i = 0;
4903            return i;
4904
4905
4906   ;
4907   return 0;
4908 }
4909 _ACEOF
4910 if ac_fn_c_try_compile "$LINENO"; then :
4911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4912 $as_echo "ok" >&6; }
4913         CFLAGS="$orig_CFLAGS"
4914         CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
4915
4916 else
4917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4919         CFLAGS="$orig_CFLAGS"
4920         CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
4921
4922 fi
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 else
4925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4926 $as_echo "not found" >&6; }
4927      FT2_EXTRA_LIBS=""
4928      LDFLAGS="${orig_LDFLAGS}"
4929      CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext \
4932     conftest$ac_exeext conftest.$ac_ext
4933 else
4934   case x$host_os in
4935   xdarwin*)
4936         CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
4937     ;;
4938   *)
4939     ;;
4940   esac
4941 fi
4942
4943
4944 # Whether to use FileManager which is deprecated since Mac OS X 10.4.
4945
4946
4947 # Check whether --with-fsspec was given.
4948 if test "${with_fsspec+set}" = set; then :
4949   withval=$with_fsspec;
4950 fi
4951
4952 if test x$with_fsspec = xno; then
4953   CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
4954 elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSSpec-based FileManager" >&5
4956 $as_echo_n "checking FSSpec-based FileManager... " >&6; }
4957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h.  */
4959
4960
4961
4962 #if defined(__GNUC__) && defined(__APPLE_CC__)
4963 # include <CoreServices/CoreServices.h>
4964 # include <ApplicationServices/ApplicationServices.h>
4965 #else
4966 # include <ConditionalMacros.h>
4967 # include <Files.h>
4968 #endif
4969
4970
4971 int
4972 main ()
4973 {
4974
4975
4976         FCBPBPtr          paramBlock;
4977         short             vRefNum;
4978         long              dirID;
4979         ConstStr255Param  fileName;
4980         FSSpec*           spec;
4981
4982
4983         /* FSSpec functions: deprecated since Mac OS X 10.4 */
4984         PBGetFCBInfoSync( paramBlock );
4985         FSMakeFSSpec( vRefNum, dirID, fileName, spec );
4986
4987
4988   ;
4989   return 0;
4990 }
4991 _ACEOF
4992 if ac_fn_c_try_link "$LINENO"; then :
4993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4994 $as_echo "ok" >&6; }
4995      CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
4996 else
4997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4998 $as_echo "not found" >&6; }
4999      CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext \
5002     conftest$ac_exeext conftest.$ac_ext
5003 fi
5004
5005
5006 # Whether to use FileManager in Carbon since MacOS 9.x.
5007
5008
5009 # Check whether --with-fsref was given.
5010 if test "${with_fsref+set}" = set; then :
5011   withval=$with_fsref;
5012 fi
5013
5014 if test x$with_fsref = xno; then
5015   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5016 *** WARNING
5017     FreeType2 built without FSRef API cannot load
5018     data-fork fonts on MacOS, except of XXX.dfont.
5019     " >&5
5020 $as_echo "$as_me: WARNING:
5021 *** WARNING
5022     FreeType2 built without FSRef API cannot load
5023     data-fork fonts on MacOS, except of XXX.dfont.
5024     " >&2;}
5025   CFLAGS="$CFLAGS -DHAVE_FSREF=0"
5026 elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
5027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSRef-based FileManager" >&5
5028 $as_echo_n "checking FSRef-based FileManager... " >&6; }
5029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h.  */
5031
5032
5033
5034 #if defined(__GNUC__) && defined(__APPLE_CC__)
5035 # include <CoreServices/CoreServices.h>
5036 # include <ApplicationServices/ApplicationServices.h>
5037 #else
5038 # include <ConditionalMacros.h>
5039 # include <Files.h>
5040 #endif
5041
5042
5043 int
5044 main ()
5045 {
5046
5047
5048         short                vRefNum;
5049         long                 dirID;
5050         ConstStr255Param     fileName;
5051
5052         Boolean*             isDirectory;
5053         UInt8*               path;
5054         SInt16               desiredRefNum;
5055         SInt16*              iterator;
5056         SInt16*              actualRefNum;
5057         HFSUniStr255*        outForkName;
5058         FSVolumeRefNum       volume;
5059         FSCatalogInfoBitmap  whichInfo;
5060         FSCatalogInfo*       catalogInfo;
5061         FSForkInfo*          forkInfo;
5062         FSRef*               ref;
5063
5064 #if HAVE_FSSPEC
5065         FSSpec*              spec;
5066 #endif
5067
5068         /* FSRef functions: no need to check? */
5069         FSGetForkCBInfo( desiredRefNum, volume, iterator,
5070                          actualRefNum, forkInfo, ref,
5071                          outForkName );
5072         FSPathMakeRef( path, ref, isDirectory );
5073
5074 #if HAVE_FSSPEC
5075         FSpMakeFSRef ( spec, ref );
5076         FSGetCatalogInfo( ref, whichInfo, catalogInfo,
5077                           outForkName, spec, ref );
5078 #endif
5079
5080   ;
5081   return 0;
5082 }
5083 _ACEOF
5084 if ac_fn_c_try_link "$LINENO"; then :
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5086 $as_echo "ok" >&6; }
5087      CFLAGS="$CFLAGS -DHAVE_FSREF=1"
5088 else
5089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5090 $as_echo "not found" >&6; }
5091      CFLAGS="$CFLAGS -DHAVE_FSREF=0"
5092 fi
5093 rm -f core conftest.err conftest.$ac_objext \
5094     conftest$ac_exeext conftest.$ac_ext
5095 fi
5096
5097
5098 # Whether to use QuickDraw API in ToolBox which is deprecated since
5099 # Mac OS X 10.4.
5100
5101
5102 # Check whether --with-quickdraw-toolbox was given.
5103 if test "${with_quickdraw_toolbox+set}" = set; then :
5104   withval=$with_quickdraw_toolbox;
5105 fi
5106
5107 if test x$with_quickdraw_toolbox = xno; then
5108   CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
5109 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
5110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in ToolBox" >&5
5111 $as_echo_n "checking QuickDraw FontManager functions in ToolBox... " >&6; }
5112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h.  */
5114
5115
5116
5117 #if defined(__GNUC__) && defined(__APPLE_CC__)
5118 # include <CoreServices/CoreServices.h>
5119 # include <ApplicationServices/ApplicationServices.h>
5120 #else
5121 # include <ConditionalMacros.h>
5122 # include <Fonts.h>
5123 #endif
5124
5125
5126 int
5127 main ()
5128 {
5129
5130
5131         Str255     familyName;
5132         SInt16     familyID   = 0;
5133         FMInput*   fmIn       = NULL;
5134         FMOutput*  fmOut      = NULL;
5135
5136
5137         GetFontName( familyID, familyName );
5138         GetFNum( familyName, &familyID );
5139         fmOut = FMSwapFont( fmIn );
5140
5141
5142   ;
5143   return 0;
5144 }
5145 _ACEOF
5146 if ac_fn_c_try_link "$LINENO"; then :
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5148 $as_echo "ok" >&6; }
5149      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
5150 else
5151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5152 $as_echo "not found" >&6; }
5153      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
5154 fi
5155 rm -f core conftest.err conftest.$ac_objext \
5156     conftest$ac_exeext conftest.$ac_ext
5157 fi
5158
5159
5160 # Whether to use QuickDraw API in Carbon which is deprecated since
5161 # Mac OS X 10.4.
5162
5163
5164 # Check whether --with-quickdraw-carbon was given.
5165 if test "${with_quickdraw_carbon+set}" = set; then :
5166   withval=$with_quickdraw_carbon;
5167 fi
5168
5169 if test x$with_quickdraw_carbon = xno; then
5170   CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
5171 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
5172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in Carbon" >&5
5173 $as_echo_n "checking QuickDraw FontManager functions in Carbon... " >&6; }
5174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h.  */
5176
5177
5178
5179 #if defined(__GNUC__) && defined(__APPLE_CC__)
5180 # include <CoreServices/CoreServices.h>
5181 # include <ApplicationServices/ApplicationServices.h>
5182 #else
5183 # include <ConditionalMacros.h>
5184 # include <Fonts.h>
5185 #endif
5186
5187
5188 int
5189 main ()
5190 {
5191
5192
5193         FMFontFamilyIterator          famIter;
5194         FMFontFamily                  family;
5195         Str255                        famNameStr;
5196         FMFontFamilyInstanceIterator  instIter;
5197         FMFontStyle                   style;
5198         FMFontSize                    size;
5199         FMFont                        font;
5200         FSSpec*                       pathSpec;
5201
5202
5203         FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
5204                                     &famIter );
5205         FMGetNextFontFamily( &famIter, &family );
5206         FMGetFontFamilyName( family, famNameStr );
5207         FMCreateFontFamilyInstanceIterator( family, &instIter );
5208         FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
5209         FMDisposeFontFamilyInstanceIterator( &instIter );
5210         FMDisposeFontFamilyIterator( &famIter );
5211         FMGetFontContainer( font, pathSpec );
5212
5213
5214   ;
5215   return 0;
5216 }
5217 _ACEOF
5218 if ac_fn_c_try_link "$LINENO"; then :
5219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5220 $as_echo "ok" >&6; }
5221      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
5222 else
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5224 $as_echo "not found" >&6; }
5225      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
5226 fi
5227 rm -f core conftest.err conftest.$ac_objext \
5228     conftest$ac_exeext conftest.$ac_ext
5229 fi
5230
5231
5232 # Whether to use AppleTypeService since Mac OS X.
5233
5234 # don't quote AS_HELP_STRING!
5235
5236 # Check whether --with-ats was given.
5237 if test "${with_ats+set}" = set; then :
5238   withval=$with_ats;
5239 fi
5240
5241 if test x$with_ats = xno; then
5242   CFLAGS="$CFLAGS -DHAVE_ATS=0"
5243 elif test x$with_old_mac_fonts = xyes -a x$with_ats != x; then
5244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking AppleTypeService functions" >&5
5245 $as_echo_n "checking AppleTypeService functions... " >&6; }
5246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h.  */
5248
5249
5250
5251 #if defined(__GNUC__) && defined(__APPLE_CC__)
5252 # include <CoreServices/CoreServices.h>
5253 # include <ApplicationServices/ApplicationServices.h>
5254 #else
5255 # include <ConditionalMacros.h>
5256 # include <Files.h>
5257 #endif
5258
5259
5260 int
5261 main ()
5262 {
5263
5264
5265         FSSpec*  pathSpec;
5266
5267
5268         ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
5269 #if HAVE_FSSPEC
5270         ATSFontGetFileSpecification( 0, pathSpec );
5271 #endif
5272
5273
5274   ;
5275   return 0;
5276 }
5277 _ACEOF
5278 if ac_fn_c_try_link "$LINENO"; then :
5279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5280 $as_echo "ok" >&6; }
5281      CFLAGS="$CFLAGS -DHAVE_ATS=1"
5282 else
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5284 $as_echo "not found" >&6; }
5285      CFLAGS="$CFLAGS -DHAVE_ATS=0"
5286 fi
5287 rm -f core conftest.err conftest.$ac_objext \
5288     conftest$ac_exeext conftest.$ac_ext
5289 fi
5290
5291 case "$CFLAGS" in
5292   *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
5293     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5294 *** WARNING
5295     FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
5296     thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
5297     " >&5
5298 $as_echo "$as_me: WARNING:
5299 *** WARNING
5300     FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
5301     thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
5302     " >&2;}
5303     CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
5304     ;;
5305   *)
5306     ;;
5307 esac
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319 case `pwd` in
5320   *\ * | *\     *)
5321     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5322 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5323 esac
5324
5325
5326
5327 macro_version='2.4.2'
5328 macro_revision='1.3337'
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342 ltmain="$ac_aux_dir/ltmain.sh"
5343
5344 # Backslashify metacharacters that are still active within
5345 # double-quoted strings.
5346 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5347
5348 # Same as above, but do not quote variable references.
5349 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5350
5351 # Sed substitution to delay expansion of an escaped shell variable in a
5352 # double_quote_subst'ed string.
5353 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5354
5355 # Sed substitution to delay expansion of an escaped single quote.
5356 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5357
5358 # Sed substitution to avoid accidental globbing in evaled expressions
5359 no_glob_subst='s/\*/\\\*/g'
5360
5361 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5362 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5363 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5364
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5366 $as_echo_n "checking how to print strings... " >&6; }
5367 # Test print first, because it will be a builtin if present.
5368 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5369    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5370   ECHO='print -r --'
5371 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5372   ECHO='printf %s\n'
5373 else
5374   # Use this function as a fallback that always works.
5375   func_fallback_echo ()
5376   {
5377     eval 'cat <<_LTECHO_EOF
5378 $1
5379 _LTECHO_EOF'
5380   }
5381   ECHO='func_fallback_echo'
5382 fi
5383
5384 # func_echo_all arg...
5385 # Invoke $ECHO with all args, space-separated.
5386 func_echo_all ()
5387 {
5388     $ECHO ""
5389 }
5390
5391 case "$ECHO" in
5392   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5393 $as_echo "printf" >&6; } ;;
5394   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5395 $as_echo "print -r" >&6; } ;;
5396   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5397 $as_echo "cat" >&6; } ;;
5398 esac
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5414 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5415 if ${ac_cv_path_SED+:} false; then :
5416   $as_echo_n "(cached) " >&6
5417 else
5418             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5419      for ac_i in 1 2 3 4 5 6 7; do
5420        ac_script="$ac_script$as_nl$ac_script"
5421      done
5422      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5423      { ac_script=; unset ac_script;}
5424      if test -z "$SED"; then
5425   ac_path_SED_found=false
5426   # Loop through the user's path and test for each of PROGNAME-LIST
5427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5429 do
5430   IFS=$as_save_IFS
5431   test -z "$as_dir" && as_dir=.
5432     for ac_prog in sed gsed; do
5433     for ac_exec_ext in '' $ac_executable_extensions; do
5434       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5435       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5436 # Check for GNU ac_path_SED and select it if it is found.
5437   # Check for GNU $ac_path_SED
5438 case `"$ac_path_SED" --version 2>&1` in
5439 *GNU*)
5440   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5441 *)
5442   ac_count=0
5443   $as_echo_n 0123456789 >"conftest.in"
5444   while :
5445   do
5446     cat "conftest.in" "conftest.in" >"conftest.tmp"
5447     mv "conftest.tmp" "conftest.in"
5448     cp "conftest.in" "conftest.nl"
5449     $as_echo '' >> "conftest.nl"
5450     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5451     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5452     as_fn_arith $ac_count + 1 && ac_count=$as_val
5453     if test $ac_count -gt ${ac_path_SED_max-0}; then
5454       # Best one so far, save it but keep looking for a better one
5455       ac_cv_path_SED="$ac_path_SED"
5456       ac_path_SED_max=$ac_count
5457     fi
5458     # 10*(2^10) chars as input seems more than enough
5459     test $ac_count -gt 10 && break
5460   done
5461   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5462 esac
5463
5464       $ac_path_SED_found && break 3
5465     done
5466   done
5467   done
5468 IFS=$as_save_IFS
5469   if test -z "$ac_cv_path_SED"; then
5470     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5471   fi
5472 else
5473   ac_cv_path_SED=$SED
5474 fi
5475
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5478 $as_echo "$ac_cv_path_SED" >&6; }
5479  SED="$ac_cv_path_SED"
5480   rm -f conftest.sed
5481
5482 test -z "$SED" && SED=sed
5483 Xsed="$SED -e 1s/^X//"
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5496 $as_echo_n "checking for fgrep... " >&6; }
5497 if ${ac_cv_path_FGREP+:} false; then :
5498   $as_echo_n "(cached) " >&6
5499 else
5500   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5501    then ac_cv_path_FGREP="$GREP -F"
5502    else
5503      if test -z "$FGREP"; then
5504   ac_path_FGREP_found=false
5505   # Loop through the user's path and test for each of PROGNAME-LIST
5506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5508 do
5509   IFS=$as_save_IFS
5510   test -z "$as_dir" && as_dir=.
5511     for ac_prog in fgrep; do
5512     for ac_exec_ext in '' $ac_executable_extensions; do
5513       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5514       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5515 # Check for GNU ac_path_FGREP and select it if it is found.
5516   # Check for GNU $ac_path_FGREP
5517 case `"$ac_path_FGREP" --version 2>&1` in
5518 *GNU*)
5519   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5520 *)
5521   ac_count=0
5522   $as_echo_n 0123456789 >"conftest.in"
5523   while :
5524   do
5525     cat "conftest.in" "conftest.in" >"conftest.tmp"
5526     mv "conftest.tmp" "conftest.in"
5527     cp "conftest.in" "conftest.nl"
5528     $as_echo 'FGREP' >> "conftest.nl"
5529     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5530     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5531     as_fn_arith $ac_count + 1 && ac_count=$as_val
5532     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5533       # Best one so far, save it but keep looking for a better one
5534       ac_cv_path_FGREP="$ac_path_FGREP"
5535       ac_path_FGREP_max=$ac_count
5536     fi
5537     # 10*(2^10) chars as input seems more than enough
5538     test $ac_count -gt 10 && break
5539   done
5540   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5541 esac
5542
5543       $ac_path_FGREP_found && break 3
5544     done
5545   done
5546   done
5547 IFS=$as_save_IFS
5548   if test -z "$ac_cv_path_FGREP"; then
5549     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5550   fi
5551 else
5552   ac_cv_path_FGREP=$FGREP
5553 fi
5554
5555    fi
5556 fi
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5558 $as_echo "$ac_cv_path_FGREP" >&6; }
5559  FGREP="$ac_cv_path_FGREP"
5560
5561
5562 test -z "$GREP" && GREP=grep
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582 # Check whether --with-gnu-ld was given.
5583 if test "${with_gnu_ld+set}" = set; then :
5584   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5585 else
5586   with_gnu_ld=no
5587 fi
5588
5589 ac_prog=ld
5590 if test "$GCC" = yes; then
5591   # Check if gcc -print-prog-name=ld gives a path.
5592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5593 $as_echo_n "checking for ld used by $CC... " >&6; }
5594   case $host in
5595   *-*-mingw*)
5596     # gcc leaves a trailing carriage return which upsets mingw
5597     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5598   *)
5599     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5600   esac
5601   case $ac_prog in
5602     # Accept absolute paths.
5603     [\\/]* | ?:[\\/]*)
5604       re_direlt='/[^/][^/]*/\.\./'
5605       # Canonicalize the pathname of ld
5606       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5607       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5608         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5609       done
5610       test -z "$LD" && LD="$ac_prog"
5611       ;;
5612   "")
5613     # If it fails, then pretend we aren't using GCC.
5614     ac_prog=ld
5615     ;;
5616   *)
5617     # If it is relative, then search for the first ld in PATH.
5618     with_gnu_ld=unknown
5619     ;;
5620   esac
5621 elif test "$with_gnu_ld" = yes; then
5622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5623 $as_echo_n "checking for GNU ld... " >&6; }
5624 else
5625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5626 $as_echo_n "checking for non-GNU ld... " >&6; }
5627 fi
5628 if ${lt_cv_path_LD+:} false; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631   if test -z "$LD"; then
5632   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5633   for ac_dir in $PATH; do
5634     IFS="$lt_save_ifs"
5635     test -z "$ac_dir" && ac_dir=.
5636     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5637       lt_cv_path_LD="$ac_dir/$ac_prog"
5638       # Check to see if the program is GNU ld.  I'd rather use --version,
5639       # but apparently some variants of GNU ld only accept -v.
5640       # Break only if it was the GNU/non-GNU ld that we prefer.
5641       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5642       *GNU* | *'with BFD'*)
5643         test "$with_gnu_ld" != no && break
5644         ;;
5645       *)
5646         test "$with_gnu_ld" != yes && break
5647         ;;
5648       esac
5649     fi
5650   done
5651   IFS="$lt_save_ifs"
5652 else
5653   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5654 fi
5655 fi
5656
5657 LD="$lt_cv_path_LD"
5658 if test -n "$LD"; then
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5660 $as_echo "$LD" >&6; }
5661 else
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5664 fi
5665 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5667 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5668 if ${lt_cv_prog_gnu_ld+:} false; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5672 case `$LD -v 2>&1 </dev/null` in
5673 *GNU* | *'with BFD'*)
5674   lt_cv_prog_gnu_ld=yes
5675   ;;
5676 *)
5677   lt_cv_prog_gnu_ld=no
5678   ;;
5679 esac
5680 fi
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5682 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5683 with_gnu_ld=$lt_cv_prog_gnu_ld
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5694 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5695 if ${lt_cv_path_NM+:} false; then :
5696   $as_echo_n "(cached) " >&6
5697 else
5698   if test -n "$NM"; then
5699   # Let the user override the test.
5700   lt_cv_path_NM="$NM"
5701 else
5702   lt_nm_to_check="${ac_tool_prefix}nm"
5703   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5704     lt_nm_to_check="$lt_nm_to_check nm"
5705   fi
5706   for lt_tmp_nm in $lt_nm_to_check; do
5707     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5708     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5709       IFS="$lt_save_ifs"
5710       test -z "$ac_dir" && ac_dir=.
5711       tmp_nm="$ac_dir/$lt_tmp_nm"
5712       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5713         # Check to see if the nm accepts a BSD-compat flag.
5714         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5715         #   nm: unknown option "B" ignored
5716         # Tru64's nm complains that /dev/null is an invalid object file
5717         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5718         */dev/null* | *'Invalid file or object type'*)
5719           lt_cv_path_NM="$tmp_nm -B"
5720           break
5721           ;;
5722         *)
5723           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5724           */dev/null*)
5725             lt_cv_path_NM="$tmp_nm -p"
5726             break
5727             ;;
5728           *)
5729             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5730             continue # so that we can try to find one that supports BSD flags
5731             ;;
5732           esac
5733           ;;
5734         esac
5735       fi
5736     done
5737     IFS="$lt_save_ifs"
5738   done
5739   : ${lt_cv_path_NM=no}
5740 fi
5741 fi
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5743 $as_echo "$lt_cv_path_NM" >&6; }
5744 if test "$lt_cv_path_NM" != "no"; then
5745   NM="$lt_cv_path_NM"
5746 else
5747   # Didn't find any BSD compatible name lister, look for dumpbin.
5748   if test -n "$DUMPBIN"; then :
5749     # Let the user override the test.
5750   else
5751     if test -n "$ac_tool_prefix"; then
5752   for ac_prog in dumpbin "link -dump"
5753   do
5754     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_DUMPBIN+:} false; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   if test -n "$DUMPBIN"; then
5762   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769     for ac_exec_ext in '' $ac_executable_extensions; do
5770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5771     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776   done
5777 IFS=$as_save_IFS
5778
5779 fi
5780 fi
5781 DUMPBIN=$ac_cv_prog_DUMPBIN
5782 if test -n "$DUMPBIN"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5784 $as_echo "$DUMPBIN" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790
5791     test -n "$DUMPBIN" && break
5792   done
5793 fi
5794 if test -z "$DUMPBIN"; then
5795   ac_ct_DUMPBIN=$DUMPBIN
5796   for ac_prog in dumpbin "link -dump"
5797 do
5798   # Extract the first word of "$ac_prog", so it can be a program name with args.
5799 set dummy $ac_prog; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5803   $as_echo_n "(cached) " >&6
5804 else
5805   if test -n "$ac_ct_DUMPBIN"; then
5806   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811   IFS=$as_save_IFS
5812   test -z "$as_dir" && as_dir=.
5813     for ac_exec_ext in '' $ac_executable_extensions; do
5814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817     break 2
5818   fi
5819 done
5820   done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5826 if test -n "$ac_ct_DUMPBIN"; then
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5828 $as_echo "$ac_ct_DUMPBIN" >&6; }
5829 else
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834
5835   test -n "$ac_ct_DUMPBIN" && break
5836 done
5837
5838   if test "x$ac_ct_DUMPBIN" = x; then
5839     DUMPBIN=":"
5840   else
5841     case $cross_compiling:$ac_tool_warned in
5842 yes:)
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5845 ac_tool_warned=yes ;;
5846 esac
5847     DUMPBIN=$ac_ct_DUMPBIN
5848   fi
5849 fi
5850
5851     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5852     *COFF*)
5853       DUMPBIN="$DUMPBIN -symbols"
5854       ;;
5855     *)
5856       DUMPBIN=:
5857       ;;
5858     esac
5859   fi
5860
5861   if test "$DUMPBIN" != ":"; then
5862     NM="$DUMPBIN"
5863   fi
5864 fi
5865 test -z "$NM" && NM=nm
5866
5867
5868
5869
5870
5871
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5873 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5874 if ${lt_cv_nm_interface+:} false; then :
5875   $as_echo_n "(cached) " >&6
5876 else
5877   lt_cv_nm_interface="BSD nm"
5878   echo "int some_variable = 0;" > conftest.$ac_ext
5879   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5880   (eval "$ac_compile" 2>conftest.err)
5881   cat conftest.err >&5
5882   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5883   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5884   cat conftest.err >&5
5885   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5886   cat conftest.out >&5
5887   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5888     lt_cv_nm_interface="MS dumpbin"
5889   fi
5890   rm -f conftest*
5891 fi
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5893 $as_echo "$lt_cv_nm_interface" >&6; }
5894
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5896 $as_echo_n "checking whether ln -s works... " >&6; }
5897 LN_S=$as_ln_s
5898 if test "$LN_S" = "ln -s"; then
5899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5900 $as_echo "yes" >&6; }
5901 else
5902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5903 $as_echo "no, using $LN_S" >&6; }
5904 fi
5905
5906 # find the maximum length of command line arguments
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5908 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5909 if ${lt_cv_sys_max_cmd_len+:} false; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912     i=0
5913   teststring="ABCD"
5914
5915   case $build_os in
5916   msdosdjgpp*)
5917     # On DJGPP, this test can blow up pretty badly due to problems in libc
5918     # (any single argument exceeding 2000 bytes causes a buffer overrun
5919     # during glob expansion).  Even if it were fixed, the result of this
5920     # check would be larger than it should be.
5921     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5922     ;;
5923
5924   gnu*)
5925     # Under GNU Hurd, this test is not required because there is
5926     # no limit to the length of command line arguments.
5927     # Libtool will interpret -1 as no limit whatsoever
5928     lt_cv_sys_max_cmd_len=-1;
5929     ;;
5930
5931   cygwin* | mingw* | cegcc*)
5932     # On Win9x/ME, this test blows up -- it succeeds, but takes
5933     # about 5 minutes as the teststring grows exponentially.
5934     # Worse, since 9x/ME are not pre-emptively multitasking,
5935     # you end up with a "frozen" computer, even though with patience
5936     # the test eventually succeeds (with a max line length of 256k).
5937     # Instead, let's just punt: use the minimum linelength reported by
5938     # all of the supported platforms: 8192 (on NT/2K/XP).
5939     lt_cv_sys_max_cmd_len=8192;
5940     ;;
5941
5942   mint*)
5943     # On MiNT this can take a long time and run out of memory.
5944     lt_cv_sys_max_cmd_len=8192;
5945     ;;
5946
5947   amigaos*)
5948     # On AmigaOS with pdksh, this test takes hours, literally.
5949     # So we just punt and use a minimum line length of 8192.
5950     lt_cv_sys_max_cmd_len=8192;
5951     ;;
5952
5953   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5954     # This has been around since 386BSD, at least.  Likely further.
5955     if test -x /sbin/sysctl; then
5956       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5957     elif test -x /usr/sbin/sysctl; then
5958       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5959     else
5960       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5961     fi
5962     # And add a safety zone
5963     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5964     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5965     ;;
5966
5967   interix*)
5968     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5969     lt_cv_sys_max_cmd_len=196608
5970     ;;
5971
5972   os2*)
5973     # The test takes a long time on OS/2.
5974     lt_cv_sys_max_cmd_len=8192
5975     ;;
5976
5977   osf*)
5978     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5979     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5980     # nice to cause kernel panics so lets avoid the loop below.
5981     # First set a reasonable default.
5982     lt_cv_sys_max_cmd_len=16384
5983     #
5984     if test -x /sbin/sysconfig; then
5985       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5986         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5987       esac
5988     fi
5989     ;;
5990   sco3.2v5*)
5991     lt_cv_sys_max_cmd_len=102400
5992     ;;
5993   sysv5* | sco5v6* | sysv4.2uw2*)
5994     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5995     if test -n "$kargmax"; then
5996       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5997     else
5998       lt_cv_sys_max_cmd_len=32768
5999     fi
6000     ;;
6001   *)
6002     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6003     if test -n "$lt_cv_sys_max_cmd_len"; then
6004       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6005       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6006     else
6007       # Make teststring a little bigger before we do anything with it.
6008       # a 1K string should be a reasonable start.
6009       for i in 1 2 3 4 5 6 7 8 ; do
6010         teststring=$teststring$teststring
6011       done
6012       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6013       # If test is not a shell built-in, we'll probably end up computing a
6014       # maximum length that is only half of the actual maximum length, but
6015       # we can't tell.
6016       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6017                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6018               test $i != 17 # 1/2 MB should be enough
6019       do
6020         i=`expr $i + 1`
6021         teststring=$teststring$teststring
6022       done
6023       # Only check the string length outside the loop.
6024       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6025       teststring=
6026       # Add a significant safety factor because C++ compilers can tack on
6027       # massive amounts of additional arguments before passing them to the
6028       # linker.  It appears as though 1/2 is a usable value.
6029       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6030     fi
6031     ;;
6032   esac
6033
6034 fi
6035
6036 if test -n $lt_cv_sys_max_cmd_len ; then
6037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6038 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6039 else
6040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6041 $as_echo "none" >&6; }
6042 fi
6043 max_cmd_len=$lt_cv_sys_max_cmd_len
6044
6045
6046
6047
6048
6049
6050 : ${CP="cp -f"}
6051 : ${MV="mv -f"}
6052 : ${RM="rm -f"}
6053
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6055 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6056 # Try some XSI features
6057 xsi_shell=no
6058 ( _lt_dummy="a/b/c"
6059   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6060       = c,a/b,b/c, \
6061     && eval 'test $(( 1 + 1 )) -eq 2 \
6062     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6063   && xsi_shell=yes
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6065 $as_echo "$xsi_shell" >&6; }
6066
6067
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6069 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6070 lt_shell_append=no
6071 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6072     >/dev/null 2>&1 \
6073   && lt_shell_append=yes
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6075 $as_echo "$lt_shell_append" >&6; }
6076
6077
6078 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6079   lt_unset=unset
6080 else
6081   lt_unset=false
6082 fi
6083
6084
6085
6086
6087
6088 # test EBCDIC or ASCII
6089 case `echo X|tr X '\101'` in
6090  A) # ASCII based system
6091     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6092   lt_SP2NL='tr \040 \012'
6093   lt_NL2SP='tr \015\012 \040\040'
6094   ;;
6095  *) # EBCDIC based system
6096   lt_SP2NL='tr \100 \n'
6097   lt_NL2SP='tr \r\n \100\100'
6098   ;;
6099 esac
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6110 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6111 if ${lt_cv_to_host_file_cmd+:} false; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   case $host in
6115   *-*-mingw* )
6116     case $build in
6117       *-*-mingw* ) # actually msys
6118         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6119         ;;
6120       *-*-cygwin* )
6121         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6122         ;;
6123       * ) # otherwise, assume *nix
6124         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6125         ;;
6126     esac
6127     ;;
6128   *-*-cygwin* )
6129     case $build in
6130       *-*-mingw* ) # actually msys
6131         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6132         ;;
6133       *-*-cygwin* )
6134         lt_cv_to_host_file_cmd=func_convert_file_noop
6135         ;;
6136       * ) # otherwise, assume *nix
6137         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6138         ;;
6139     esac
6140     ;;
6141   * ) # unhandled hosts (and "normal" native builds)
6142     lt_cv_to_host_file_cmd=func_convert_file_noop
6143     ;;
6144 esac
6145
6146 fi
6147
6148 to_host_file_cmd=$lt_cv_to_host_file_cmd
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6150 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6151
6152
6153
6154
6155
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6157 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6158 if ${lt_cv_to_tool_file_cmd+:} false; then :
6159   $as_echo_n "(cached) " >&6
6160 else
6161   #assume ordinary cross tools, or native build.
6162 lt_cv_to_tool_file_cmd=func_convert_file_noop
6163 case $host in
6164   *-*-mingw* )
6165     case $build in
6166       *-*-mingw* ) # actually msys
6167         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6168         ;;
6169     esac
6170     ;;
6171 esac
6172
6173 fi
6174
6175 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6177 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6178
6179
6180
6181
6182
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6184 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6185 if ${lt_cv_ld_reload_flag+:} false; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   lt_cv_ld_reload_flag='-r'
6189 fi
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6191 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6192 reload_flag=$lt_cv_ld_reload_flag
6193 case $reload_flag in
6194 "" | " "*) ;;
6195 *) reload_flag=" $reload_flag" ;;
6196 esac
6197 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6198 case $host_os in
6199   cygwin* | mingw* | pw32* | cegcc*)
6200     if test "$GCC" != yes; then
6201       reload_cmds=false
6202     fi
6203     ;;
6204   darwin*)
6205     if test "$GCC" = yes; then
6206       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6207     else
6208       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6209     fi
6210     ;;
6211 esac
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221 if test -n "$ac_tool_prefix"; then
6222   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6223 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if ${ac_cv_prog_OBJDUMP+:} false; then :
6227   $as_echo_n "(cached) " >&6
6228 else
6229   if test -n "$OBJDUMP"; then
6230   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235   IFS=$as_save_IFS
6236   test -z "$as_dir" && as_dir=.
6237     for ac_exec_ext in '' $ac_executable_extensions; do
6238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241     break 2
6242   fi
6243 done
6244   done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 OBJDUMP=$ac_cv_prog_OBJDUMP
6250 if test -n "$OBJDUMP"; then
6251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6252 $as_echo "$OBJDUMP" >&6; }
6253 else
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257
6258
6259 fi
6260 if test -z "$ac_cv_prog_OBJDUMP"; then
6261   ac_ct_OBJDUMP=$OBJDUMP
6262   # Extract the first word of "objdump", so it can be a program name with args.
6263 set dummy objdump; ac_word=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6267   $as_echo_n "(cached) " >&6
6268 else
6269   if test -n "$ac_ct_OBJDUMP"; then
6270   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6271 else
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275   IFS=$as_save_IFS
6276   test -z "$as_dir" && as_dir=.
6277     for ac_exec_ext in '' $ac_executable_extensions; do
6278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281     break 2
6282   fi
6283 done
6284   done
6285 IFS=$as_save_IFS
6286
6287 fi
6288 fi
6289 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6290 if test -n "$ac_ct_OBJDUMP"; then
6291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6292 $as_echo "$ac_ct_OBJDUMP" >&6; }
6293 else
6294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6296 fi
6297
6298   if test "x$ac_ct_OBJDUMP" = x; then
6299     OBJDUMP="false"
6300   else
6301     case $cross_compiling:$ac_tool_warned in
6302 yes:)
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6305 ac_tool_warned=yes ;;
6306 esac
6307     OBJDUMP=$ac_ct_OBJDUMP
6308   fi
6309 else
6310   OBJDUMP="$ac_cv_prog_OBJDUMP"
6311 fi
6312
6313 test -z "$OBJDUMP" && OBJDUMP=objdump
6314
6315
6316
6317
6318
6319
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6321 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6322 if ${lt_cv_deplibs_check_method+:} false; then :
6323   $as_echo_n "(cached) " >&6
6324 else
6325   lt_cv_file_magic_cmd='$MAGIC_CMD'
6326 lt_cv_file_magic_test_file=
6327 lt_cv_deplibs_check_method='unknown'
6328 # Need to set the preceding variable on all platforms that support
6329 # interlibrary dependencies.
6330 # 'none' -- dependencies not supported.
6331 # `unknown' -- same as none, but documents that we really don't know.
6332 # 'pass_all' -- all dependencies passed with no checks.
6333 # 'test_compile' -- check by making test program.
6334 # 'file_magic [[regex]]' -- check by looking for files in library path
6335 # which responds to the $file_magic_cmd with a given extended regex.
6336 # If you have `file' or equivalent on your system and you're not sure
6337 # whether `pass_all' will *always* work, you probably want this one.
6338
6339 case $host_os in
6340 aix[4-9]*)
6341   lt_cv_deplibs_check_method=pass_all
6342   ;;
6343
6344 beos*)
6345   lt_cv_deplibs_check_method=pass_all
6346   ;;
6347
6348 bsdi[45]*)
6349   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6350   lt_cv_file_magic_cmd='/usr/bin/file -L'
6351   lt_cv_file_magic_test_file=/shlib/libc.so
6352   ;;
6353
6354 cygwin*)
6355   # func_win32_libid is a shell function defined in ltmain.sh
6356   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6357   lt_cv_file_magic_cmd='func_win32_libid'
6358   ;;
6359
6360 mingw* | pw32*)
6361   # Base MSYS/MinGW do not provide the 'file' command needed by
6362   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6363   # unless we find 'file', for example because we are cross-compiling.
6364   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6365   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6366     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6367     lt_cv_file_magic_cmd='func_win32_libid'
6368   else
6369     # Keep this pattern in sync with the one in func_win32_libid.
6370     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6371     lt_cv_file_magic_cmd='$OBJDUMP -f'
6372   fi
6373   ;;
6374
6375 cegcc*)
6376   # use the weaker test based on 'objdump'. See mingw*.
6377   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6378   lt_cv_file_magic_cmd='$OBJDUMP -f'
6379   ;;
6380
6381 darwin* | rhapsody*)
6382   lt_cv_deplibs_check_method=pass_all
6383   ;;
6384
6385 freebsd* | dragonfly*)
6386   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6387     case $host_cpu in
6388     i*86 )
6389       # Not sure whether the presence of OpenBSD here was a mistake.
6390       # Let's accept both of them until this is cleared up.
6391       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6392       lt_cv_file_magic_cmd=/usr/bin/file
6393       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6394       ;;
6395     esac
6396   else
6397     lt_cv_deplibs_check_method=pass_all
6398   fi
6399   ;;
6400
6401 gnu*)
6402   lt_cv_deplibs_check_method=pass_all
6403   ;;
6404
6405 haiku*)
6406   lt_cv_deplibs_check_method=pass_all
6407   ;;
6408
6409 hpux10.20* | hpux11*)
6410   lt_cv_file_magic_cmd=/usr/bin/file
6411   case $host_cpu in
6412   ia64*)
6413     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6414     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6415     ;;
6416   hppa*64*)
6417     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]'
6418     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6419     ;;
6420   *)
6421     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6422     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6423     ;;
6424   esac
6425   ;;
6426
6427 interix[3-9]*)
6428   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6429   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6430   ;;
6431
6432 irix5* | irix6* | nonstopux*)
6433   case $LD in
6434   *-32|*"-32 ") libmagic=32-bit;;
6435   *-n32|*"-n32 ") libmagic=N32;;
6436   *-64|*"-64 ") libmagic=64-bit;;
6437   *) libmagic=never-match;;
6438   esac
6439   lt_cv_deplibs_check_method=pass_all
6440   ;;
6441
6442 # This must be glibc/ELF.
6443 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6444   lt_cv_deplibs_check_method=pass_all
6445   ;;
6446
6447 netbsd*)
6448   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6449     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6450   else
6451     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6452   fi
6453   ;;
6454
6455 newos6*)
6456   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6457   lt_cv_file_magic_cmd=/usr/bin/file
6458   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6459   ;;
6460
6461 *nto* | *qnx*)
6462   lt_cv_deplibs_check_method=pass_all
6463   ;;
6464
6465 openbsd*)
6466   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6467     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6468   else
6469     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6470   fi
6471   ;;
6472
6473 osf3* | osf4* | osf5*)
6474   lt_cv_deplibs_check_method=pass_all
6475   ;;
6476
6477 rdos*)
6478   lt_cv_deplibs_check_method=pass_all
6479   ;;
6480
6481 solaris*)
6482   lt_cv_deplibs_check_method=pass_all
6483   ;;
6484
6485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6486   lt_cv_deplibs_check_method=pass_all
6487   ;;
6488
6489 sysv4 | sysv4.3*)
6490   case $host_vendor in
6491   motorola)
6492     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]'
6493     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6494     ;;
6495   ncr)
6496     lt_cv_deplibs_check_method=pass_all
6497     ;;
6498   sequent)
6499     lt_cv_file_magic_cmd='/bin/file'
6500     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6501     ;;
6502   sni)
6503     lt_cv_file_magic_cmd='/bin/file'
6504     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6505     lt_cv_file_magic_test_file=/lib/libc.so
6506     ;;
6507   siemens)
6508     lt_cv_deplibs_check_method=pass_all
6509     ;;
6510   pc)
6511     lt_cv_deplibs_check_method=pass_all
6512     ;;
6513   esac
6514   ;;
6515
6516 tpf*)
6517   lt_cv_deplibs_check_method=pass_all
6518   ;;
6519 esac
6520
6521 fi
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6523 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6524
6525 file_magic_glob=
6526 want_nocaseglob=no
6527 if test "$build" = "$host"; then
6528   case $host_os in
6529   mingw* | pw32*)
6530     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6531       want_nocaseglob=yes
6532     else
6533       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6534     fi
6535     ;;
6536   esac
6537 fi
6538
6539 file_magic_cmd=$lt_cv_file_magic_cmd
6540 deplibs_check_method=$lt_cv_deplibs_check_method
6541 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564 if test -n "$ac_tool_prefix"; then
6565   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6566 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 $as_echo_n "checking for $ac_word... " >&6; }
6569 if ${ac_cv_prog_DLLTOOL+:} false; then :
6570   $as_echo_n "(cached) " >&6
6571 else
6572   if test -n "$DLLTOOL"; then
6573   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578   IFS=$as_save_IFS
6579   test -z "$as_dir" && as_dir=.
6580     for ac_exec_ext in '' $ac_executable_extensions; do
6581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584     break 2
6585   fi
6586 done
6587   done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 DLLTOOL=$ac_cv_prog_DLLTOOL
6593 if test -n "$DLLTOOL"; then
6594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6595 $as_echo "$DLLTOOL" >&6; }
6596 else
6597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6599 fi
6600
6601
6602 fi
6603 if test -z "$ac_cv_prog_DLLTOOL"; then
6604   ac_ct_DLLTOOL=$DLLTOOL
6605   # Extract the first word of "dlltool", so it can be a program name with args.
6606 set dummy dlltool; ac_word=$2
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608 $as_echo_n "checking for $ac_word... " >&6; }
6609 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6610   $as_echo_n "(cached) " >&6
6611 else
6612   if test -n "$ac_ct_DLLTOOL"; then
6613   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6614 else
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 for as_dir in $PATH
6617 do
6618   IFS=$as_save_IFS
6619   test -z "$as_dir" && as_dir=.
6620     for ac_exec_ext in '' $ac_executable_extensions; do
6621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624     break 2
6625   fi
6626 done
6627   done
6628 IFS=$as_save_IFS
6629
6630 fi
6631 fi
6632 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6633 if test -n "$ac_ct_DLLTOOL"; then
6634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6635 $as_echo "$ac_ct_DLLTOOL" >&6; }
6636 else
6637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638 $as_echo "no" >&6; }
6639 fi
6640
6641   if test "x$ac_ct_DLLTOOL" = x; then
6642     DLLTOOL="false"
6643   else
6644     case $cross_compiling:$ac_tool_warned in
6645 yes:)
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6648 ac_tool_warned=yes ;;
6649 esac
6650     DLLTOOL=$ac_ct_DLLTOOL
6651   fi
6652 else
6653   DLLTOOL="$ac_cv_prog_DLLTOOL"
6654 fi
6655
6656 test -z "$DLLTOOL" && DLLTOOL=dlltool
6657
6658
6659
6660
6661
6662
6663
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6665 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6666 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669   lt_cv_sharedlib_from_linklib_cmd='unknown'
6670
6671 case $host_os in
6672 cygwin* | mingw* | pw32* | cegcc*)
6673   # two different shell functions defined in ltmain.sh
6674   # decide which to use based on capabilities of $DLLTOOL
6675   case `$DLLTOOL --help 2>&1` in
6676   *--identify-strict*)
6677     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6678     ;;
6679   *)
6680     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6681     ;;
6682   esac
6683   ;;
6684 *)
6685   # fallback: assume linklib IS sharedlib
6686   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6687   ;;
6688 esac
6689
6690 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6692 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6693 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6694 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6695
6696
6697
6698
6699
6700
6701
6702 if test -n "$ac_tool_prefix"; then
6703   for ac_prog in ar
6704   do
6705     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_prog_AR+:} false; then :
6710   $as_echo_n "(cached) " >&6
6711 else
6712   if test -n "$AR"; then
6713   ac_cv_prog_AR="$AR" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718   IFS=$as_save_IFS
6719   test -z "$as_dir" && as_dir=.
6720     for ac_exec_ext in '' $ac_executable_extensions; do
6721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724     break 2
6725   fi
6726 done
6727   done
6728 IFS=$as_save_IFS
6729
6730 fi
6731 fi
6732 AR=$ac_cv_prog_AR
6733 if test -n "$AR"; then
6734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6735 $as_echo "$AR" >&6; }
6736 else
6737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6739 fi
6740
6741
6742     test -n "$AR" && break
6743   done
6744 fi
6745 if test -z "$AR"; then
6746   ac_ct_AR=$AR
6747   for ac_prog in ar
6748 do
6749   # Extract the first word of "$ac_prog", so it can be a program name with args.
6750 set dummy $ac_prog; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6754   $as_echo_n "(cached) " >&6
6755 else
6756   if test -n "$ac_ct_AR"; then
6757   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6758 else
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762   IFS=$as_save_IFS
6763   test -z "$as_dir" && as_dir=.
6764     for ac_exec_ext in '' $ac_executable_extensions; do
6765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6766     ac_cv_prog_ac_ct_AR="$ac_prog"
6767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6768     break 2
6769   fi
6770 done
6771   done
6772 IFS=$as_save_IFS
6773
6774 fi
6775 fi
6776 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6777 if test -n "$ac_ct_AR"; then
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6779 $as_echo "$ac_ct_AR" >&6; }
6780 else
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6783 fi
6784
6785
6786   test -n "$ac_ct_AR" && break
6787 done
6788
6789   if test "x$ac_ct_AR" = x; then
6790     AR="false"
6791   else
6792     case $cross_compiling:$ac_tool_warned in
6793 yes:)
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796 ac_tool_warned=yes ;;
6797 esac
6798     AR=$ac_ct_AR
6799   fi
6800 fi
6801
6802 : ${AR=ar}
6803 : ${AR_FLAGS=cru}
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6816 $as_echo_n "checking for archiver @FILE support... " >&6; }
6817 if ${lt_cv_ar_at_file+:} false; then :
6818   $as_echo_n "(cached) " >&6
6819 else
6820   lt_cv_ar_at_file=no
6821    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h.  */
6823
6824 int
6825 main ()
6826 {
6827
6828   ;
6829   return 0;
6830 }
6831 _ACEOF
6832 if ac_fn_c_try_compile "$LINENO"; then :
6833   echo conftest.$ac_objext > conftest.lst
6834       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6835       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6836   (eval $lt_ar_try) 2>&5
6837   ac_status=$?
6838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6839   test $ac_status = 0; }
6840       if test "$ac_status" -eq 0; then
6841         # Ensure the archiver fails upon bogus file names.
6842         rm -f conftest.$ac_objext libconftest.a
6843         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6844   (eval $lt_ar_try) 2>&5
6845   ac_status=$?
6846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6847   test $ac_status = 0; }
6848         if test "$ac_status" -ne 0; then
6849           lt_cv_ar_at_file=@
6850         fi
6851       fi
6852       rm -f conftest.* libconftest.a
6853
6854 fi
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856
6857 fi
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6859 $as_echo "$lt_cv_ar_at_file" >&6; }
6860
6861 if test "x$lt_cv_ar_at_file" = xno; then
6862   archiver_list_spec=
6863 else
6864   archiver_list_spec=$lt_cv_ar_at_file
6865 fi
6866
6867
6868
6869
6870
6871
6872
6873 if test -n "$ac_tool_prefix"; then
6874   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6875 set dummy ${ac_tool_prefix}strip; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_STRIP+:} false; then :
6879   $as_echo_n "(cached) " >&6
6880 else
6881   if test -n "$STRIP"; then
6882   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887   IFS=$as_save_IFS
6888   test -z "$as_dir" && as_dir=.
6889     for ac_exec_ext in '' $ac_executable_extensions; do
6890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893     break 2
6894   fi
6895 done
6896   done
6897 IFS=$as_save_IFS
6898
6899 fi
6900 fi
6901 STRIP=$ac_cv_prog_STRIP
6902 if test -n "$STRIP"; then
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6904 $as_echo "$STRIP" >&6; }
6905 else
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6908 fi
6909
6910
6911 fi
6912 if test -z "$ac_cv_prog_STRIP"; then
6913   ac_ct_STRIP=$STRIP
6914   # Extract the first word of "strip", so it can be a program name with args.
6915 set dummy strip; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6919   $as_echo_n "(cached) " >&6
6920 else
6921   if test -n "$ac_ct_STRIP"; then
6922   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6923 else
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6926 do
6927   IFS=$as_save_IFS
6928   test -z "$as_dir" && as_dir=.
6929     for ac_exec_ext in '' $ac_executable_extensions; do
6930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6931     ac_cv_prog_ac_ct_STRIP="strip"
6932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933     break 2
6934   fi
6935 done
6936   done
6937 IFS=$as_save_IFS
6938
6939 fi
6940 fi
6941 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6942 if test -n "$ac_ct_STRIP"; then
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6944 $as_echo "$ac_ct_STRIP" >&6; }
6945 else
6946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6948 fi
6949
6950   if test "x$ac_ct_STRIP" = x; then
6951     STRIP=":"
6952   else
6953     case $cross_compiling:$ac_tool_warned in
6954 yes:)
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6957 ac_tool_warned=yes ;;
6958 esac
6959     STRIP=$ac_ct_STRIP
6960   fi
6961 else
6962   STRIP="$ac_cv_prog_STRIP"
6963 fi
6964
6965 test -z "$STRIP" && STRIP=:
6966
6967
6968
6969
6970
6971
6972 if test -n "$ac_tool_prefix"; then
6973   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6974 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_prog_RANLIB+:} false; then :
6978   $as_echo_n "(cached) " >&6
6979 else
6980   if test -n "$RANLIB"; then
6981   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986   IFS=$as_save_IFS
6987   test -z "$as_dir" && as_dir=.
6988     for ac_exec_ext in '' $ac_executable_extensions; do
6989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6990     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992     break 2
6993   fi
6994 done
6995   done
6996 IFS=$as_save_IFS
6997
6998 fi
6999 fi
7000 RANLIB=$ac_cv_prog_RANLIB
7001 if test -n "$RANLIB"; then
7002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7003 $as_echo "$RANLIB" >&6; }
7004 else
7005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7007 fi
7008
7009
7010 fi
7011 if test -z "$ac_cv_prog_RANLIB"; then
7012   ac_ct_RANLIB=$RANLIB
7013   # Extract the first word of "ranlib", so it can be a program name with args.
7014 set dummy ranlib; ac_word=$2
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 $as_echo_n "checking for $ac_word... " >&6; }
7017 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7018   $as_echo_n "(cached) " >&6
7019 else
7020   if test -n "$ac_ct_RANLIB"; then
7021   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7022 else
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026   IFS=$as_save_IFS
7027   test -z "$as_dir" && as_dir=.
7028     for ac_exec_ext in '' $ac_executable_extensions; do
7029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7030     ac_cv_prog_ac_ct_RANLIB="ranlib"
7031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032     break 2
7033   fi
7034 done
7035   done
7036 IFS=$as_save_IFS
7037
7038 fi
7039 fi
7040 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7041 if test -n "$ac_ct_RANLIB"; then
7042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7043 $as_echo "$ac_ct_RANLIB" >&6; }
7044 else
7045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7047 fi
7048
7049   if test "x$ac_ct_RANLIB" = x; then
7050     RANLIB=":"
7051   else
7052     case $cross_compiling:$ac_tool_warned in
7053 yes:)
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056 ac_tool_warned=yes ;;
7057 esac
7058     RANLIB=$ac_ct_RANLIB
7059   fi
7060 else
7061   RANLIB="$ac_cv_prog_RANLIB"
7062 fi
7063
7064 test -z "$RANLIB" && RANLIB=:
7065
7066
7067
7068
7069
7070
7071 # Determine commands to create old-style static archives.
7072 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7073 old_postinstall_cmds='chmod 644 $oldlib'
7074 old_postuninstall_cmds=
7075
7076 if test -n "$RANLIB"; then
7077   case $host_os in
7078   openbsd*)
7079     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7080     ;;
7081   *)
7082     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7083     ;;
7084   esac
7085   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7086 fi
7087
7088 case $host_os in
7089   darwin*)
7090     lock_old_archive_extraction=yes ;;
7091   *)
7092     lock_old_archive_extraction=no ;;
7093 esac
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115 for ac_prog in gawk mawk nawk awk
7116 do
7117   # Extract the first word of "$ac_prog", so it can be a program name with args.
7118 set dummy $ac_prog; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if ${ac_cv_prog_AWK+:} false; then :
7122   $as_echo_n "(cached) " >&6
7123 else
7124   if test -n "$AWK"; then
7125   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132     for ac_exec_ext in '' $ac_executable_extensions; do
7133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134     ac_cv_prog_AWK="$ac_prog"
7135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137   fi
7138 done
7139   done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 AWK=$ac_cv_prog_AWK
7145 if test -n "$AWK"; then
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7147 $as_echo "$AWK" >&6; }
7148 else
7149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7152
7153
7154   test -n "$AWK" && break
7155 done
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175 # If no C compiler was specified, use CC.
7176 LTCC=${LTCC-"$CC"}
7177
7178 # If no C compiler flags were specified, use CFLAGS.
7179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7180
7181 # Allow CC to be a program name with arguments.
7182 compiler=$CC
7183
7184
7185 # Check for command to grab the raw symbol name followed by C symbol from nm.
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7187 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7188 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7189   $as_echo_n "(cached) " >&6
7190 else
7191
7192 # These are sane defaults that work on at least a few old systems.
7193 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7194
7195 # Character class describing NM global symbol codes.
7196 symcode='[BCDEGRST]'
7197
7198 # Regexp to match symbols that can be accessed directly from C.
7199 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7200
7201 # Define system-specific variables.
7202 case $host_os in
7203 aix*)
7204   symcode='[BCDT]'
7205   ;;
7206 cygwin* | mingw* | pw32* | cegcc*)
7207   symcode='[ABCDGISTW]'
7208   ;;
7209 hpux*)
7210   if test "$host_cpu" = ia64; then
7211     symcode='[ABCDEGRST]'
7212   fi
7213   ;;
7214 irix* | nonstopux*)
7215   symcode='[BCDEGRST]'
7216   ;;
7217 osf*)
7218   symcode='[BCDEGQRST]'
7219   ;;
7220 solaris*)
7221   symcode='[BDRT]'
7222   ;;
7223 sco3.2v5*)
7224   symcode='[DT]'
7225   ;;
7226 sysv4.2uw2*)
7227   symcode='[DT]'
7228   ;;
7229 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7230   symcode='[ABDT]'
7231   ;;
7232 sysv4)
7233   symcode='[DFNSTU]'
7234   ;;
7235 esac
7236
7237 # If we're using GNU nm, then use its standard symbol codes.
7238 case `$NM -V 2>&1` in
7239 *GNU* | *'with BFD'*)
7240   symcode='[ABCDGIRSTW]' ;;
7241 esac
7242
7243 # Transform an extracted symbol line into a proper C declaration.
7244 # Some systems (esp. on ia64) link data and code symbols differently,
7245 # so use this general approach.
7246 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7247
7248 # Transform an extracted symbol line into symbol name and symbol address
7249 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7250 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'"
7251
7252 # Handle CRLF in mingw tool chain
7253 opt_cr=
7254 case $build_os in
7255 mingw*)
7256   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7257   ;;
7258 esac
7259
7260 # Try without a prefix underscore, then with it.
7261 for ac_symprfx in "" "_"; do
7262
7263   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7264   symxfrm="\\1 $ac_symprfx\\2 \\2"
7265
7266   # Write the raw and C identifiers.
7267   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7268     # Fake it for dumpbin and say T for any non-static function
7269     # and D for any global variable.
7270     # Also find C++ and __fastcall symbols from MSVC++,
7271     # which start with @ or ?.
7272     lt_cv_sys_global_symbol_pipe="$AWK '"\
7273 "     {last_section=section; section=\$ 3};"\
7274 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7275 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7276 "     \$ 0!~/External *\|/{next};"\
7277 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7278 "     {if(hide[section]) next};"\
7279 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7280 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7281 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7282 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7283 "     ' prfx=^$ac_symprfx"
7284   else
7285     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7286   fi
7287   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7288
7289   # Check to see that the pipe works correctly.
7290   pipe_works=no
7291
7292   rm -f conftest*
7293   cat > conftest.$ac_ext <<_LT_EOF
7294 #ifdef __cplusplus
7295 extern "C" {
7296 #endif
7297 char nm_test_var;
7298 void nm_test_func(void);
7299 void nm_test_func(void){}
7300 #ifdef __cplusplus
7301 }
7302 #endif
7303 int main(){nm_test_var='a';nm_test_func();return(0);}
7304 _LT_EOF
7305
7306   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7307   (eval $ac_compile) 2>&5
7308   ac_status=$?
7309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7310   test $ac_status = 0; }; then
7311     # Now try to grab the symbols.
7312     nlist=conftest.nm
7313     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7314   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7315   ac_status=$?
7316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7317   test $ac_status = 0; } && test -s "$nlist"; then
7318       # Try sorting and uniquifying the output.
7319       if sort "$nlist" | uniq > "$nlist"T; then
7320         mv -f "$nlist"T "$nlist"
7321       else
7322         rm -f "$nlist"T
7323       fi
7324
7325       # Make sure that we snagged all the symbols we need.
7326       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7327         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7328           cat <<_LT_EOF > conftest.$ac_ext
7329 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7330 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7331 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7332    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7333 # define LT_DLSYM_CONST
7334 #elif defined(__osf__)
7335 /* This system does not cope well with relocations in const data.  */
7336 # define LT_DLSYM_CONST
7337 #else
7338 # define LT_DLSYM_CONST const
7339 #endif
7340
7341 #ifdef __cplusplus
7342 extern "C" {
7343 #endif
7344
7345 _LT_EOF
7346           # Now generate the symbol file.
7347           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7348
7349           cat <<_LT_EOF >> conftest.$ac_ext
7350
7351 /* The mapping between symbol names and symbols.  */
7352 LT_DLSYM_CONST struct {
7353   const char *name;
7354   void       *address;
7355 }
7356 lt__PROGRAM__LTX_preloaded_symbols[] =
7357 {
7358   { "@PROGRAM@", (void *) 0 },
7359 _LT_EOF
7360           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7361           cat <<\_LT_EOF >> conftest.$ac_ext
7362   {0, (void *) 0}
7363 };
7364
7365 /* This works around a problem in FreeBSD linker */
7366 #ifdef FREEBSD_WORKAROUND
7367 static const void *lt_preloaded_setup() {
7368   return lt__PROGRAM__LTX_preloaded_symbols;
7369 }
7370 #endif
7371
7372 #ifdef __cplusplus
7373 }
7374 #endif
7375 _LT_EOF
7376           # Now try linking the two files.
7377           mv conftest.$ac_objext conftstm.$ac_objext
7378           lt_globsym_save_LIBS=$LIBS
7379           lt_globsym_save_CFLAGS=$CFLAGS
7380           LIBS="conftstm.$ac_objext"
7381           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7382           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7383   (eval $ac_link) 2>&5
7384   ac_status=$?
7385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7386   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7387             pipe_works=yes
7388           fi
7389           LIBS=$lt_globsym_save_LIBS
7390           CFLAGS=$lt_globsym_save_CFLAGS
7391         else
7392           echo "cannot find nm_test_func in $nlist" >&5
7393         fi
7394       else
7395         echo "cannot find nm_test_var in $nlist" >&5
7396       fi
7397     else
7398       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7399     fi
7400   else
7401     echo "$progname: failed program was:" >&5
7402     cat conftest.$ac_ext >&5
7403   fi
7404   rm -rf conftest* conftst*
7405
7406   # Do not use the global_symbol_pipe unless it works.
7407   if test "$pipe_works" = yes; then
7408     break
7409   else
7410     lt_cv_sys_global_symbol_pipe=
7411   fi
7412 done
7413
7414 fi
7415
7416 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7417   lt_cv_sys_global_symbol_to_cdecl=
7418 fi
7419 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7421 $as_echo "failed" >&6; }
7422 else
7423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7424 $as_echo "ok" >&6; }
7425 fi
7426
7427 # Response file support.
7428 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7429   nm_file_list_spec='@'
7430 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7431   nm_file_list_spec='@'
7432 fi
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7461 $as_echo_n "checking for sysroot... " >&6; }
7462
7463 # Check whether --with-sysroot was given.
7464 if test "${with_sysroot+set}" = set; then :
7465   withval=$with_sysroot;
7466 else
7467   with_sysroot=no
7468 fi
7469
7470
7471 lt_sysroot=
7472 case ${with_sysroot} in #(
7473  yes)
7474    if test "$GCC" = yes; then
7475      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7476    fi
7477    ;; #(
7478  /*)
7479    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7480    ;; #(
7481  no|'')
7482    ;; #(
7483  *)
7484    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7485 $as_echo "${with_sysroot}" >&6; }
7486    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7487    ;;
7488 esac
7489
7490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7491 $as_echo "${lt_sysroot:-no}" >&6; }
7492
7493
7494
7495
7496
7497 # Check whether --enable-libtool-lock was given.
7498 if test "${enable_libtool_lock+set}" = set; then :
7499   enableval=$enable_libtool_lock;
7500 fi
7501
7502 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7503
7504 # Some flags need to be propagated to the compiler or linker for good
7505 # libtool support.
7506 case $host in
7507 ia64-*-hpux*)
7508   # Find out which ABI we are using.
7509   echo 'int i;' > conftest.$ac_ext
7510   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7511   (eval $ac_compile) 2>&5
7512   ac_status=$?
7513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514   test $ac_status = 0; }; then
7515     case `/usr/bin/file conftest.$ac_objext` in
7516       *ELF-32*)
7517         HPUX_IA64_MODE="32"
7518         ;;
7519       *ELF-64*)
7520         HPUX_IA64_MODE="64"
7521         ;;
7522     esac
7523   fi
7524   rm -rf conftest*
7525   ;;
7526 *-*-irix6*)
7527   # Find out which ABI we are using.
7528   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7529   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7530   (eval $ac_compile) 2>&5
7531   ac_status=$?
7532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7533   test $ac_status = 0; }; then
7534     if test "$lt_cv_prog_gnu_ld" = yes; then
7535       case `/usr/bin/file conftest.$ac_objext` in
7536         *32-bit*)
7537           LD="${LD-ld} -melf32bsmip"
7538           ;;
7539         *N32*)
7540           LD="${LD-ld} -melf32bmipn32"
7541           ;;
7542         *64-bit*)
7543           LD="${LD-ld} -melf64bmip"
7544         ;;
7545       esac
7546     else
7547       case `/usr/bin/file conftest.$ac_objext` in
7548         *32-bit*)
7549           LD="${LD-ld} -32"
7550           ;;
7551         *N32*)
7552           LD="${LD-ld} -n32"
7553           ;;
7554         *64-bit*)
7555           LD="${LD-ld} -64"
7556           ;;
7557       esac
7558     fi
7559   fi
7560   rm -rf conftest*
7561   ;;
7562
7563 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7564 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7565   # Find out which ABI we are using.
7566   echo 'int i;' > conftest.$ac_ext
7567   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7568   (eval $ac_compile) 2>&5
7569   ac_status=$?
7570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571   test $ac_status = 0; }; then
7572     case `/usr/bin/file conftest.o` in
7573       *32-bit*)
7574         case $host in
7575           x86_64-*kfreebsd*-gnu)
7576             LD="${LD-ld} -m elf_i386_fbsd"
7577             ;;
7578           x86_64-*linux*)
7579             LD="${LD-ld} -m elf_i386"
7580             ;;
7581           ppc64-*linux*|powerpc64-*linux*)
7582             LD="${LD-ld} -m elf32ppclinux"
7583             ;;
7584           s390x-*linux*)
7585             LD="${LD-ld} -m elf_s390"
7586             ;;
7587           sparc64-*linux*)
7588             LD="${LD-ld} -m elf32_sparc"
7589             ;;
7590         esac
7591         ;;
7592       *64-bit*)
7593         case $host in
7594           x86_64-*kfreebsd*-gnu)
7595             LD="${LD-ld} -m elf_x86_64_fbsd"
7596             ;;
7597           x86_64-*linux*)
7598             LD="${LD-ld} -m elf_x86_64"
7599             ;;
7600           ppc*-*linux*|powerpc*-*linux*)
7601             LD="${LD-ld} -m elf64ppc"
7602             ;;
7603           s390*-*linux*|s390*-*tpf*)
7604             LD="${LD-ld} -m elf64_s390"
7605             ;;
7606           sparc*-*linux*)
7607             LD="${LD-ld} -m elf64_sparc"
7608             ;;
7609         esac
7610         ;;
7611     esac
7612   fi
7613   rm -rf conftest*
7614   ;;
7615
7616 *-*-sco3.2v5*)
7617   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7618   SAVE_CFLAGS="$CFLAGS"
7619   CFLAGS="$CFLAGS -belf"
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7621 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7622 if ${lt_cv_cc_needs_belf+:} false; then :
7623   $as_echo_n "(cached) " >&6
7624 else
7625   ac_ext=c
7626 ac_cpp='$CPP $CPPFLAGS'
7627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7630
7631      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h.  */
7633
7634 int
7635 main ()
7636 {
7637
7638   ;
7639   return 0;
7640 }
7641 _ACEOF
7642 if ac_fn_c_try_link "$LINENO"; then :
7643   lt_cv_cc_needs_belf=yes
7644 else
7645   lt_cv_cc_needs_belf=no
7646 fi
7647 rm -f core conftest.err conftest.$ac_objext \
7648     conftest$ac_exeext conftest.$ac_ext
7649      ac_ext=c
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654
7655 fi
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7657 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7658   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7659     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7660     CFLAGS="$SAVE_CFLAGS"
7661   fi
7662   ;;
7663 *-*solaris*)
7664   # Find out which ABI we are using.
7665   echo 'int i;' > conftest.$ac_ext
7666   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7667   (eval $ac_compile) 2>&5
7668   ac_status=$?
7669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7670   test $ac_status = 0; }; then
7671     case `/usr/bin/file conftest.o` in
7672     *64-bit*)
7673       case $lt_cv_prog_gnu_ld in
7674       yes*)
7675         case $host in
7676         i?86-*-solaris*)
7677           LD="${LD-ld} -m elf_x86_64"
7678           ;;
7679         sparc*-*-solaris*)
7680           LD="${LD-ld} -m elf64_sparc"
7681           ;;
7682         esac
7683         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7684         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7685           LD="${LD-ld}_sol2"
7686         fi
7687         ;;
7688       *)
7689         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7690           LD="${LD-ld} -64"
7691         fi
7692         ;;
7693       esac
7694       ;;
7695     esac
7696   fi
7697   rm -rf conftest*
7698   ;;
7699 esac
7700
7701 need_locks="$enable_libtool_lock"
7702
7703 if test -n "$ac_tool_prefix"; then
7704   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}mt; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7709   $as_echo_n "(cached) " >&6
7710 else
7711   if test -n "$MANIFEST_TOOL"; then
7712   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717   IFS=$as_save_IFS
7718   test -z "$as_dir" && as_dir=.
7719     for ac_exec_ext in '' $ac_executable_extensions; do
7720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723     break 2
7724   fi
7725 done
7726   done
7727 IFS=$as_save_IFS
7728
7729 fi
7730 fi
7731 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7732 if test -n "$MANIFEST_TOOL"; then
7733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7734 $as_echo "$MANIFEST_TOOL" >&6; }
7735 else
7736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7738 fi
7739
7740
7741 fi
7742 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7743   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7744   # Extract the first word of "mt", so it can be a program name with args.
7745 set dummy mt; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751   if test -n "$ac_ct_MANIFEST_TOOL"; then
7752   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759     for ac_exec_ext in '' $ac_executable_extensions; do
7760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766   done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7772 if test -n "$ac_ct_MANIFEST_TOOL"; then
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7774 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7775 else
7776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7778 fi
7779
7780   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7781     MANIFEST_TOOL=":"
7782   else
7783     case $cross_compiling:$ac_tool_warned in
7784 yes:)
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned=yes ;;
7788 esac
7789     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7790   fi
7791 else
7792   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7793 fi
7794
7795 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7797 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7798 if ${lt_cv_path_mainfest_tool+:} false; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   lt_cv_path_mainfest_tool=no
7802   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7803   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7804   cat conftest.err >&5
7805   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7806     lt_cv_path_mainfest_tool=yes
7807   fi
7808   rm -f conftest*
7809 fi
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7811 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7812 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7813   MANIFEST_TOOL=:
7814 fi
7815
7816
7817
7818
7819
7820
7821   case $host_os in
7822     rhapsody* | darwin*)
7823     if test -n "$ac_tool_prefix"; then
7824   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7825 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   if test -n "$DSYMUTIL"; then
7832   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7833 else
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7836 do
7837   IFS=$as_save_IFS
7838   test -z "$as_dir" && as_dir=.
7839     for ac_exec_ext in '' $ac_executable_extensions; do
7840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7841     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843     break 2
7844   fi
7845 done
7846   done
7847 IFS=$as_save_IFS
7848
7849 fi
7850 fi
7851 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7852 if test -n "$DSYMUTIL"; then
7853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7854 $as_echo "$DSYMUTIL" >&6; }
7855 else
7856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7858 fi
7859
7860
7861 fi
7862 if test -z "$ac_cv_prog_DSYMUTIL"; then
7863   ac_ct_DSYMUTIL=$DSYMUTIL
7864   # Extract the first word of "dsymutil", so it can be a program name with args.
7865 set dummy dsymutil; ac_word=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7869   $as_echo_n "(cached) " >&6
7870 else
7871   if test -n "$ac_ct_DSYMUTIL"; then
7872   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7873 else
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 for as_dir in $PATH
7876 do
7877   IFS=$as_save_IFS
7878   test -z "$as_dir" && as_dir=.
7879     for ac_exec_ext in '' $ac_executable_extensions; do
7880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7881     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883     break 2
7884   fi
7885 done
7886   done
7887 IFS=$as_save_IFS
7888
7889 fi
7890 fi
7891 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7892 if test -n "$ac_ct_DSYMUTIL"; then
7893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7894 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7895 else
7896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7898 fi
7899
7900   if test "x$ac_ct_DSYMUTIL" = x; then
7901     DSYMUTIL=":"
7902   else
7903     case $cross_compiling:$ac_tool_warned in
7904 yes:)
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7907 ac_tool_warned=yes ;;
7908 esac
7909     DSYMUTIL=$ac_ct_DSYMUTIL
7910   fi
7911 else
7912   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7913 fi
7914
7915     if test -n "$ac_tool_prefix"; then
7916   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7917 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919 $as_echo_n "checking for $ac_word... " >&6; }
7920 if ${ac_cv_prog_NMEDIT+:} false; then :
7921   $as_echo_n "(cached) " >&6
7922 else
7923   if test -n "$NMEDIT"; then
7924   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7925 else
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 for as_dir in $PATH
7928 do
7929   IFS=$as_save_IFS
7930   test -z "$as_dir" && as_dir=.
7931     for ac_exec_ext in '' $ac_executable_extensions; do
7932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7933     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935     break 2
7936   fi
7937 done
7938   done
7939 IFS=$as_save_IFS
7940
7941 fi
7942 fi
7943 NMEDIT=$ac_cv_prog_NMEDIT
7944 if test -n "$NMEDIT"; then
7945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7946 $as_echo "$NMEDIT" >&6; }
7947 else
7948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7950 fi
7951
7952
7953 fi
7954 if test -z "$ac_cv_prog_NMEDIT"; then
7955   ac_ct_NMEDIT=$NMEDIT
7956   # Extract the first word of "nmedit", so it can be a program name with args.
7957 set dummy nmedit; ac_word=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7961   $as_echo_n "(cached) " >&6
7962 else
7963   if test -n "$ac_ct_NMEDIT"; then
7964   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7965 else
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7968 do
7969   IFS=$as_save_IFS
7970   test -z "$as_dir" && as_dir=.
7971     for ac_exec_ext in '' $ac_executable_extensions; do
7972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7973     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975     break 2
7976   fi
7977 done
7978   done
7979 IFS=$as_save_IFS
7980
7981 fi
7982 fi
7983 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7984 if test -n "$ac_ct_NMEDIT"; then
7985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7986 $as_echo "$ac_ct_NMEDIT" >&6; }
7987 else
7988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7990 fi
7991
7992   if test "x$ac_ct_NMEDIT" = x; then
7993     NMEDIT=":"
7994   else
7995     case $cross_compiling:$ac_tool_warned in
7996 yes:)
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7999 ac_tool_warned=yes ;;
8000 esac
8001     NMEDIT=$ac_ct_NMEDIT
8002   fi
8003 else
8004   NMEDIT="$ac_cv_prog_NMEDIT"
8005 fi
8006
8007     if test -n "$ac_tool_prefix"; then
8008   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8009 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if ${ac_cv_prog_LIPO+:} false; then :
8013   $as_echo_n "(cached) " >&6
8014 else
8015   if test -n "$LIPO"; then
8016   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8020 do
8021   IFS=$as_save_IFS
8022   test -z "$as_dir" && as_dir=.
8023     for ac_exec_ext in '' $ac_executable_extensions; do
8024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027     break 2
8028   fi
8029 done
8030   done
8031 IFS=$as_save_IFS
8032
8033 fi
8034 fi
8035 LIPO=$ac_cv_prog_LIPO
8036 if test -n "$LIPO"; then
8037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8038 $as_echo "$LIPO" >&6; }
8039 else
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8042 fi
8043
8044
8045 fi
8046 if test -z "$ac_cv_prog_LIPO"; then
8047   ac_ct_LIPO=$LIPO
8048   # Extract the first word of "lipo", so it can be a program name with args.
8049 set dummy lipo; ac_word=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8053   $as_echo_n "(cached) " >&6
8054 else
8055   if test -n "$ac_ct_LIPO"; then
8056   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8057 else
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8060 do
8061   IFS=$as_save_IFS
8062   test -z "$as_dir" && as_dir=.
8063     for ac_exec_ext in '' $ac_executable_extensions; do
8064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8065     ac_cv_prog_ac_ct_LIPO="lipo"
8066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067     break 2
8068   fi
8069 done
8070   done
8071 IFS=$as_save_IFS
8072
8073 fi
8074 fi
8075 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8076 if test -n "$ac_ct_LIPO"; then
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8078 $as_echo "$ac_ct_LIPO" >&6; }
8079 else
8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8082 fi
8083
8084   if test "x$ac_ct_LIPO" = x; then
8085     LIPO=":"
8086   else
8087     case $cross_compiling:$ac_tool_warned in
8088 yes:)
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8091 ac_tool_warned=yes ;;
8092 esac
8093     LIPO=$ac_ct_LIPO
8094   fi
8095 else
8096   LIPO="$ac_cv_prog_LIPO"
8097 fi
8098
8099     if test -n "$ac_tool_prefix"; then
8100   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8101 set dummy ${ac_tool_prefix}otool; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if ${ac_cv_prog_OTOOL+:} false; then :
8105   $as_echo_n "(cached) " >&6
8106 else
8107   if test -n "$OTOOL"; then
8108   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8112 do
8113   IFS=$as_save_IFS
8114   test -z "$as_dir" && as_dir=.
8115     for ac_exec_ext in '' $ac_executable_extensions; do
8116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119     break 2
8120   fi
8121 done
8122   done
8123 IFS=$as_save_IFS
8124
8125 fi
8126 fi
8127 OTOOL=$ac_cv_prog_OTOOL
8128 if test -n "$OTOOL"; then
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8130 $as_echo "$OTOOL" >&6; }
8131 else
8132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8134 fi
8135
8136
8137 fi
8138 if test -z "$ac_cv_prog_OTOOL"; then
8139   ac_ct_OTOOL=$OTOOL
8140   # Extract the first word of "otool", so it can be a program name with args.
8141 set dummy otool; ac_word=$2
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 $as_echo_n "checking for $ac_word... " >&6; }
8144 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8145   $as_echo_n "(cached) " >&6
8146 else
8147   if test -n "$ac_ct_OTOOL"; then
8148   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8149 else
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8152 do
8153   IFS=$as_save_IFS
8154   test -z "$as_dir" && as_dir=.
8155     for ac_exec_ext in '' $ac_executable_extensions; do
8156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8157     ac_cv_prog_ac_ct_OTOOL="otool"
8158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8159     break 2
8160   fi
8161 done
8162   done
8163 IFS=$as_save_IFS
8164
8165 fi
8166 fi
8167 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8168 if test -n "$ac_ct_OTOOL"; then
8169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8170 $as_echo "$ac_ct_OTOOL" >&6; }
8171 else
8172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174 fi
8175
8176   if test "x$ac_ct_OTOOL" = x; then
8177     OTOOL=":"
8178   else
8179     case $cross_compiling:$ac_tool_warned in
8180 yes:)
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8183 ac_tool_warned=yes ;;
8184 esac
8185     OTOOL=$ac_ct_OTOOL
8186   fi
8187 else
8188   OTOOL="$ac_cv_prog_OTOOL"
8189 fi
8190
8191     if test -n "$ac_tool_prefix"; then
8192   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8193 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195 $as_echo_n "checking for $ac_word... " >&6; }
8196 if ${ac_cv_prog_OTOOL64+:} false; then :
8197   $as_echo_n "(cached) " >&6
8198 else
8199   if test -n "$OTOOL64"; then
8200   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8201 else
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 for as_dir in $PATH
8204 do
8205   IFS=$as_save_IFS
8206   test -z "$as_dir" && as_dir=.
8207     for ac_exec_ext in '' $ac_executable_extensions; do
8208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8209     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8211     break 2
8212   fi
8213 done
8214   done
8215 IFS=$as_save_IFS
8216
8217 fi
8218 fi
8219 OTOOL64=$ac_cv_prog_OTOOL64
8220 if test -n "$OTOOL64"; then
8221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8222 $as_echo "$OTOOL64" >&6; }
8223 else
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 $as_echo "no" >&6; }
8226 fi
8227
8228
8229 fi
8230 if test -z "$ac_cv_prog_OTOOL64"; then
8231   ac_ct_OTOOL64=$OTOOL64
8232   # Extract the first word of "otool64", so it can be a program name with args.
8233 set dummy otool64; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8237   $as_echo_n "(cached) " >&6
8238 else
8239   if test -n "$ac_ct_OTOOL64"; then
8240   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8241 else
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8244 do
8245   IFS=$as_save_IFS
8246   test -z "$as_dir" && as_dir=.
8247     for ac_exec_ext in '' $ac_executable_extensions; do
8248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8249     ac_cv_prog_ac_ct_OTOOL64="otool64"
8250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251     break 2
8252   fi
8253 done
8254   done
8255 IFS=$as_save_IFS
8256
8257 fi
8258 fi
8259 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8260 if test -n "$ac_ct_OTOOL64"; then
8261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8262 $as_echo "$ac_ct_OTOOL64" >&6; }
8263 else
8264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8266 fi
8267
8268   if test "x$ac_ct_OTOOL64" = x; then
8269     OTOOL64=":"
8270   else
8271     case $cross_compiling:$ac_tool_warned in
8272 yes:)
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8275 ac_tool_warned=yes ;;
8276 esac
8277     OTOOL64=$ac_ct_OTOOL64
8278   fi
8279 else
8280   OTOOL64="$ac_cv_prog_OTOOL64"
8281 fi
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8310 $as_echo_n "checking for -single_module linker flag... " >&6; }
8311 if ${lt_cv_apple_cc_single_mod+:} false; then :
8312   $as_echo_n "(cached) " >&6
8313 else
8314   lt_cv_apple_cc_single_mod=no
8315       if test -z "${LT_MULTI_MODULE}"; then
8316         # By default we will add the -single_module flag. You can override
8317         # by either setting the environment variable LT_MULTI_MODULE
8318         # non-empty at configure time, or by adding -multi_module to the
8319         # link flags.
8320         rm -rf libconftest.dylib*
8321         echo "int foo(void){return 1;}" > conftest.c
8322         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8323 -dynamiclib -Wl,-single_module conftest.c" >&5
8324         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8325           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8326         _lt_result=$?
8327         # If there is a non-empty error log, and "single_module"
8328         # appears in it, assume the flag caused a linker warning
8329         if test -s conftest.err && $GREP single_module conftest.err; then
8330           cat conftest.err >&5
8331         # Otherwise, if the output was created with a 0 exit code from
8332         # the compiler, it worked.
8333         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8334           lt_cv_apple_cc_single_mod=yes
8335         else
8336           cat conftest.err >&5
8337         fi
8338         rm -rf libconftest.dylib*
8339         rm -f conftest.*
8340       fi
8341 fi
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8343 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8344
8345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8346 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8347 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8348   $as_echo_n "(cached) " >&6
8349 else
8350   lt_cv_ld_exported_symbols_list=no
8351       save_LDFLAGS=$LDFLAGS
8352       echo "_main" > conftest.sym
8353       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8354       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h.  */
8356
8357 int
8358 main ()
8359 {
8360
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 if ac_fn_c_try_link "$LINENO"; then :
8366   lt_cv_ld_exported_symbols_list=yes
8367 else
8368   lt_cv_ld_exported_symbols_list=no
8369 fi
8370 rm -f core conftest.err conftest.$ac_objext \
8371     conftest$ac_exeext conftest.$ac_ext
8372         LDFLAGS="$save_LDFLAGS"
8373
8374 fi
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8376 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8377
8378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8379 $as_echo_n "checking for -force_load linker flag... " >&6; }
8380 if ${lt_cv_ld_force_load+:} false; then :
8381   $as_echo_n "(cached) " >&6
8382 else
8383   lt_cv_ld_force_load=no
8384       cat > conftest.c << _LT_EOF
8385 int forced_loaded() { return 2;}
8386 _LT_EOF
8387       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8388       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8389       echo "$AR cru libconftest.a conftest.o" >&5
8390       $AR cru libconftest.a conftest.o 2>&5
8391       echo "$RANLIB libconftest.a" >&5
8392       $RANLIB libconftest.a 2>&5
8393       cat > conftest.c << _LT_EOF
8394 int main() { return 0;}
8395 _LT_EOF
8396       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8397       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8398       _lt_result=$?
8399       if test -s conftest.err && $GREP force_load conftest.err; then
8400         cat conftest.err >&5
8401       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8402         lt_cv_ld_force_load=yes
8403       else
8404         cat conftest.err >&5
8405       fi
8406         rm -f conftest.err libconftest.a conftest conftest.c
8407         rm -rf conftest.dSYM
8408
8409 fi
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8411 $as_echo "$lt_cv_ld_force_load" >&6; }
8412     case $host_os in
8413     rhapsody* | darwin1.[012])
8414       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8415     darwin1.*)
8416       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8417     darwin*) # darwin 5.x on
8418       # if running on 10.5 or later, the deployment target defaults
8419       # to the OS version, if on x86, and 10.4, the deployment
8420       # target defaults to 10.4. Don't you love it?
8421       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8422         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8423           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8424         10.[012]*)
8425           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8426         10.*)
8427           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8428       esac
8429     ;;
8430   esac
8431     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8432       _lt_dar_single_mod='$single_module'
8433     fi
8434     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8435       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8436     else
8437       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8438     fi
8439     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8440       _lt_dsymutil='~$DSYMUTIL $lib || :'
8441     else
8442       _lt_dsymutil=
8443     fi
8444     ;;
8445   esac
8446
8447 for ac_header in dlfcn.h
8448 do :
8449   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8450 "
8451 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8452   cat >>confdefs.h <<_ACEOF
8453 #define HAVE_DLFCN_H 1
8454 _ACEOF
8455
8456 fi
8457
8458 done
8459
8460
8461
8462
8463
8464 # Set options
8465 enable_win32_dll=yes
8466
8467 case $host in
8468 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8469   if test -n "$ac_tool_prefix"; then
8470   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8471 set dummy ${ac_tool_prefix}as; ac_word=$2
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8473 $as_echo_n "checking for $ac_word... " >&6; }
8474 if ${ac_cv_prog_AS+:} false; then :
8475   $as_echo_n "(cached) " >&6
8476 else
8477   if test -n "$AS"; then
8478   ac_cv_prog_AS="$AS" # Let the user override the test.
8479 else
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 for as_dir in $PATH
8482 do
8483   IFS=$as_save_IFS
8484   test -z "$as_dir" && as_dir=.
8485     for ac_exec_ext in '' $ac_executable_extensions; do
8486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8487     ac_cv_prog_AS="${ac_tool_prefix}as"
8488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8489     break 2
8490   fi
8491 done
8492   done
8493 IFS=$as_save_IFS
8494
8495 fi
8496 fi
8497 AS=$ac_cv_prog_AS
8498 if test -n "$AS"; then
8499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8500 $as_echo "$AS" >&6; }
8501 else
8502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8504 fi
8505
8506
8507 fi
8508 if test -z "$ac_cv_prog_AS"; then
8509   ac_ct_AS=$AS
8510   # Extract the first word of "as", so it can be a program name with args.
8511 set dummy as; ac_word=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8515   $as_echo_n "(cached) " >&6
8516 else
8517   if test -n "$ac_ct_AS"; then
8518   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8519 else
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8522 do
8523   IFS=$as_save_IFS
8524   test -z "$as_dir" && as_dir=.
8525     for ac_exec_ext in '' $ac_executable_extensions; do
8526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8527     ac_cv_prog_ac_ct_AS="as"
8528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529     break 2
8530   fi
8531 done
8532   done
8533 IFS=$as_save_IFS
8534
8535 fi
8536 fi
8537 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8538 if test -n "$ac_ct_AS"; then
8539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8540 $as_echo "$ac_ct_AS" >&6; }
8541 else
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8544 fi
8545
8546   if test "x$ac_ct_AS" = x; then
8547     AS="false"
8548   else
8549     case $cross_compiling:$ac_tool_warned in
8550 yes:)
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8553 ac_tool_warned=yes ;;
8554 esac
8555     AS=$ac_ct_AS
8556   fi
8557 else
8558   AS="$ac_cv_prog_AS"
8559 fi
8560
8561   if test -n "$ac_tool_prefix"; then
8562   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8563 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8565 $as_echo_n "checking for $ac_word... " >&6; }
8566 if ${ac_cv_prog_DLLTOOL+:} false; then :
8567   $as_echo_n "(cached) " >&6
8568 else
8569   if test -n "$DLLTOOL"; then
8570   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8571 else
8572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 for as_dir in $PATH
8574 do
8575   IFS=$as_save_IFS
8576   test -z "$as_dir" && as_dir=.
8577     for ac_exec_ext in '' $ac_executable_extensions; do
8578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8579     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581     break 2
8582   fi
8583 done
8584   done
8585 IFS=$as_save_IFS
8586
8587 fi
8588 fi
8589 DLLTOOL=$ac_cv_prog_DLLTOOL
8590 if test -n "$DLLTOOL"; then
8591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8592 $as_echo "$DLLTOOL" >&6; }
8593 else
8594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595 $as_echo "no" >&6; }
8596 fi
8597
8598
8599 fi
8600 if test -z "$ac_cv_prog_DLLTOOL"; then
8601   ac_ct_DLLTOOL=$DLLTOOL
8602   # Extract the first word of "dlltool", so it can be a program name with args.
8603 set dummy dlltool; ac_word=$2
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605 $as_echo_n "checking for $ac_word... " >&6; }
8606 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8607   $as_echo_n "(cached) " >&6
8608 else
8609   if test -n "$ac_ct_DLLTOOL"; then
8610   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8611 else
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH
8614 do
8615   IFS=$as_save_IFS
8616   test -z "$as_dir" && as_dir=.
8617     for ac_exec_ext in '' $ac_executable_extensions; do
8618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8619     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621     break 2
8622   fi
8623 done
8624   done
8625 IFS=$as_save_IFS
8626
8627 fi
8628 fi
8629 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8630 if test -n "$ac_ct_DLLTOOL"; then
8631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8632 $as_echo "$ac_ct_DLLTOOL" >&6; }
8633 else
8634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }
8636 fi
8637
8638   if test "x$ac_ct_DLLTOOL" = x; then
8639     DLLTOOL="false"
8640   else
8641     case $cross_compiling:$ac_tool_warned in
8642 yes:)
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8645 ac_tool_warned=yes ;;
8646 esac
8647     DLLTOOL=$ac_ct_DLLTOOL
8648   fi
8649 else
8650   DLLTOOL="$ac_cv_prog_DLLTOOL"
8651 fi
8652
8653   if test -n "$ac_tool_prefix"; then
8654   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8655 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657 $as_echo_n "checking for $ac_word... " >&6; }
8658 if ${ac_cv_prog_OBJDUMP+:} false; then :
8659   $as_echo_n "(cached) " >&6
8660 else
8661   if test -n "$OBJDUMP"; then
8662   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8663 else
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8666 do
8667   IFS=$as_save_IFS
8668   test -z "$as_dir" && as_dir=.
8669     for ac_exec_ext in '' $ac_executable_extensions; do
8670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8671     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673     break 2
8674   fi
8675 done
8676   done
8677 IFS=$as_save_IFS
8678
8679 fi
8680 fi
8681 OBJDUMP=$ac_cv_prog_OBJDUMP
8682 if test -n "$OBJDUMP"; then
8683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8684 $as_echo "$OBJDUMP" >&6; }
8685 else
8686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8688 fi
8689
8690
8691 fi
8692 if test -z "$ac_cv_prog_OBJDUMP"; then
8693   ac_ct_OBJDUMP=$OBJDUMP
8694   # Extract the first word of "objdump", so it can be a program name with args.
8695 set dummy objdump; ac_word=$2
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8699   $as_echo_n "(cached) " >&6
8700 else
8701   if test -n "$ac_ct_OBJDUMP"; then
8702   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8703 else
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 for as_dir in $PATH
8706 do
8707   IFS=$as_save_IFS
8708   test -z "$as_dir" && as_dir=.
8709     for ac_exec_ext in '' $ac_executable_extensions; do
8710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8711     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713     break 2
8714   fi
8715 done
8716   done
8717 IFS=$as_save_IFS
8718
8719 fi
8720 fi
8721 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8722 if test -n "$ac_ct_OBJDUMP"; then
8723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8724 $as_echo "$ac_ct_OBJDUMP" >&6; }
8725 else
8726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8728 fi
8729
8730   if test "x$ac_ct_OBJDUMP" = x; then
8731     OBJDUMP="false"
8732   else
8733     case $cross_compiling:$ac_tool_warned in
8734 yes:)
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8737 ac_tool_warned=yes ;;
8738 esac
8739     OBJDUMP=$ac_ct_OBJDUMP
8740   fi
8741 else
8742   OBJDUMP="$ac_cv_prog_OBJDUMP"
8743 fi
8744
8745   ;;
8746 esac
8747
8748 test -z "$AS" && AS=as
8749
8750
8751
8752
8753
8754 test -z "$DLLTOOL" && DLLTOOL=dlltool
8755
8756
8757
8758
8759
8760 test -z "$OBJDUMP" && OBJDUMP=objdump
8761
8762
8763
8764
8765
8766
8767
8768         enable_dlopen=no
8769
8770
8771
8772             # Check whether --enable-shared was given.
8773 if test "${enable_shared+set}" = set; then :
8774   enableval=$enable_shared; p=${PACKAGE-default}
8775     case $enableval in
8776     yes) enable_shared=yes ;;
8777     no) enable_shared=no ;;
8778     *)
8779       enable_shared=no
8780       # Look at the argument we got.  We use all the common list separators.
8781       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8782       for pkg in $enableval; do
8783         IFS="$lt_save_ifs"
8784         if test "X$pkg" = "X$p"; then
8785           enable_shared=yes
8786         fi
8787       done
8788       IFS="$lt_save_ifs"
8789       ;;
8790     esac
8791 else
8792   enable_shared=yes
8793 fi
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803   # Check whether --enable-static was given.
8804 if test "${enable_static+set}" = set; then :
8805   enableval=$enable_static; p=${PACKAGE-default}
8806     case $enableval in
8807     yes) enable_static=yes ;;
8808     no) enable_static=no ;;
8809     *)
8810      enable_static=no
8811       # Look at the argument we got.  We use all the common list separators.
8812       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8813       for pkg in $enableval; do
8814         IFS="$lt_save_ifs"
8815         if test "X$pkg" = "X$p"; then
8816           enable_static=yes
8817         fi
8818       done
8819       IFS="$lt_save_ifs"
8820       ;;
8821     esac
8822 else
8823   enable_static=yes
8824 fi
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835 # Check whether --with-pic was given.
8836 if test "${with_pic+set}" = set; then :
8837   withval=$with_pic; lt_p=${PACKAGE-default}
8838     case $withval in
8839     yes|no) pic_mode=$withval ;;
8840     *)
8841       pic_mode=default
8842       # Look at the argument we got.  We use all the common list separators.
8843       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8844       for lt_pkg in $withval; do
8845         IFS="$lt_save_ifs"
8846         if test "X$lt_pkg" = "X$lt_p"; then
8847           pic_mode=yes
8848         fi
8849       done
8850       IFS="$lt_save_ifs"
8851       ;;
8852     esac
8853 else
8854   pic_mode=default
8855 fi
8856
8857
8858 test -z "$pic_mode" && pic_mode=default
8859
8860
8861
8862
8863
8864
8865
8866   # Check whether --enable-fast-install was given.
8867 if test "${enable_fast_install+set}" = set; then :
8868   enableval=$enable_fast_install; p=${PACKAGE-default}
8869     case $enableval in
8870     yes) enable_fast_install=yes ;;
8871     no) enable_fast_install=no ;;
8872     *)
8873       enable_fast_install=no
8874       # Look at the argument we got.  We use all the common list separators.
8875       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8876       for pkg in $enableval; do
8877         IFS="$lt_save_ifs"
8878         if test "X$pkg" = "X$p"; then
8879           enable_fast_install=yes
8880         fi
8881       done
8882       IFS="$lt_save_ifs"
8883       ;;
8884     esac
8885 else
8886   enable_fast_install=yes
8887 fi
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899 # This can be used to rebuild libtool when needed
8900 LIBTOOL_DEPS="$ltmain"
8901
8902 # Always use our own libtool.
8903 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934 test -z "$LN_S" && LN_S="ln -s"
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949 if test -n "${ZSH_VERSION+set}" ; then
8950    setopt NO_GLOB_SUBST
8951 fi
8952
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8954 $as_echo_n "checking for objdir... " >&6; }
8955 if ${lt_cv_objdir+:} false; then :
8956   $as_echo_n "(cached) " >&6
8957 else
8958   rm -f .libs 2>/dev/null
8959 mkdir .libs 2>/dev/null
8960 if test -d .libs; then
8961   lt_cv_objdir=.libs
8962 else
8963   # MS-DOS does not allow filenames that begin with a dot.
8964   lt_cv_objdir=_libs
8965 fi
8966 rmdir .libs 2>/dev/null
8967 fi
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8969 $as_echo "$lt_cv_objdir" >&6; }
8970 objdir=$lt_cv_objdir
8971
8972
8973
8974
8975
8976 cat >>confdefs.h <<_ACEOF
8977 #define LT_OBJDIR "$lt_cv_objdir/"
8978 _ACEOF
8979
8980
8981
8982
8983 case $host_os in
8984 aix3*)
8985   # AIX sometimes has problems with the GCC collect2 program.  For some
8986   # reason, if we set the COLLECT_NAMES environment variable, the problems
8987   # vanish in a puff of smoke.
8988   if test "X${COLLECT_NAMES+set}" != Xset; then
8989     COLLECT_NAMES=
8990     export COLLECT_NAMES
8991   fi
8992   ;;
8993 esac
8994
8995 # Global variables:
8996 ofile=libtool
8997 can_build_shared=yes
8998
8999 # All known linkers require a `.a' archive for static linking (except MSVC,
9000 # which needs '.lib').
9001 libext=a
9002
9003 with_gnu_ld="$lt_cv_prog_gnu_ld"
9004
9005 old_CC="$CC"
9006 old_CFLAGS="$CFLAGS"
9007
9008 # Set sane defaults for various variables
9009 test -z "$CC" && CC=cc
9010 test -z "$LTCC" && LTCC=$CC
9011 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9012 test -z "$LD" && LD=ld
9013 test -z "$ac_objext" && ac_objext=o
9014
9015 for cc_temp in $compiler""; do
9016   case $cc_temp in
9017     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9018     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9019     \-*) ;;
9020     *) break;;
9021   esac
9022 done
9023 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9024
9025
9026 # Only perform the check for file, if the check method requires it
9027 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9028 case $deplibs_check_method in
9029 file_magic*)
9030   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9032 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9033 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9034   $as_echo_n "(cached) " >&6
9035 else
9036   case $MAGIC_CMD in
9037 [\\/*] |  ?:[\\/]*)
9038   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9039   ;;
9040 *)
9041   lt_save_MAGIC_CMD="$MAGIC_CMD"
9042   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9043   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9044   for ac_dir in $ac_dummy; do
9045     IFS="$lt_save_ifs"
9046     test -z "$ac_dir" && ac_dir=.
9047     if test -f $ac_dir/${ac_tool_prefix}file; then
9048       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9049       if test -n "$file_magic_test_file"; then
9050         case $deplibs_check_method in
9051         "file_magic "*)
9052           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9053           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9054           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9055             $EGREP "$file_magic_regex" > /dev/null; then
9056             :
9057           else
9058             cat <<_LT_EOF 1>&2
9059
9060 *** Warning: the command libtool uses to detect shared libraries,
9061 *** $file_magic_cmd, produces output that libtool cannot recognize.
9062 *** The result is that libtool may fail to recognize shared libraries
9063 *** as such.  This will affect the creation of libtool libraries that
9064 *** depend on shared libraries, but programs linked with such libtool
9065 *** libraries will work regardless of this problem.  Nevertheless, you
9066 *** may want to report the problem to your system manager and/or to
9067 *** bug-libtool@gnu.org
9068
9069 _LT_EOF
9070           fi ;;
9071         esac
9072       fi
9073       break
9074     fi
9075   done
9076   IFS="$lt_save_ifs"
9077   MAGIC_CMD="$lt_save_MAGIC_CMD"
9078   ;;
9079 esac
9080 fi
9081
9082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9083 if test -n "$MAGIC_CMD"; then
9084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9085 $as_echo "$MAGIC_CMD" >&6; }
9086 else
9087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9089 fi
9090
9091
9092
9093
9094
9095 if test -z "$lt_cv_path_MAGIC_CMD"; then
9096   if test -n "$ac_tool_prefix"; then
9097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9098 $as_echo_n "checking for file... " >&6; }
9099 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9100   $as_echo_n "(cached) " >&6
9101 else
9102   case $MAGIC_CMD in
9103 [\\/*] |  ?:[\\/]*)
9104   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9105   ;;
9106 *)
9107   lt_save_MAGIC_CMD="$MAGIC_CMD"
9108   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9109   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9110   for ac_dir in $ac_dummy; do
9111     IFS="$lt_save_ifs"
9112     test -z "$ac_dir" && ac_dir=.
9113     if test -f $ac_dir/file; then
9114       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9115       if test -n "$file_magic_test_file"; then
9116         case $deplibs_check_method in
9117         "file_magic "*)
9118           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9119           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9120           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9121             $EGREP "$file_magic_regex" > /dev/null; then
9122             :
9123           else
9124             cat <<_LT_EOF 1>&2
9125
9126 *** Warning: the command libtool uses to detect shared libraries,
9127 *** $file_magic_cmd, produces output that libtool cannot recognize.
9128 *** The result is that libtool may fail to recognize shared libraries
9129 *** as such.  This will affect the creation of libtool libraries that
9130 *** depend on shared libraries, but programs linked with such libtool
9131 *** libraries will work regardless of this problem.  Nevertheless, you
9132 *** may want to report the problem to your system manager and/or to
9133 *** bug-libtool@gnu.org
9134
9135 _LT_EOF
9136           fi ;;
9137         esac
9138       fi
9139       break
9140     fi
9141   done
9142   IFS="$lt_save_ifs"
9143   MAGIC_CMD="$lt_save_MAGIC_CMD"
9144   ;;
9145 esac
9146 fi
9147
9148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9149 if test -n "$MAGIC_CMD"; then
9150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9151 $as_echo "$MAGIC_CMD" >&6; }
9152 else
9153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9155 fi
9156
9157
9158   else
9159     MAGIC_CMD=:
9160   fi
9161 fi
9162
9163   fi
9164   ;;
9165 esac
9166
9167 # Use C for the default configuration in the libtool script
9168
9169 lt_save_CC="$CC"
9170 ac_ext=c
9171 ac_cpp='$CPP $CPPFLAGS'
9172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9175
9176
9177 # Source file extension for C test sources.
9178 ac_ext=c
9179
9180 # Object file extension for compiled C test sources.
9181 objext=o
9182 objext=$objext
9183
9184 # Code to be used in simple compile tests
9185 lt_simple_compile_test_code="int some_variable = 0;"
9186
9187 # Code to be used in simple link tests
9188 lt_simple_link_test_code='int main(){return(0);}'
9189
9190
9191
9192
9193
9194
9195
9196 # If no C compiler was specified, use CC.
9197 LTCC=${LTCC-"$CC"}
9198
9199 # If no C compiler flags were specified, use CFLAGS.
9200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9201
9202 # Allow CC to be a program name with arguments.
9203 compiler=$CC
9204
9205 # Save the default compiler, since it gets overwritten when the other
9206 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9207 compiler_DEFAULT=$CC
9208
9209 # save warnings/boilerplate of simple test code
9210 ac_outfile=conftest.$ac_objext
9211 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9212 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9213 _lt_compiler_boilerplate=`cat conftest.err`
9214 $RM conftest*
9215
9216 ac_outfile=conftest.$ac_objext
9217 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9218 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9219 _lt_linker_boilerplate=`cat conftest.err`
9220 $RM -r conftest*
9221
9222
9223 if test -n "$compiler"; then
9224
9225 lt_prog_compiler_no_builtin_flag=
9226
9227 if test "$GCC" = yes; then
9228   case $cc_basename in
9229   nvcc*)
9230     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9231   *)
9232     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9233   esac
9234
9235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9236 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9237 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9238   $as_echo_n "(cached) " >&6
9239 else
9240   lt_cv_prog_compiler_rtti_exceptions=no
9241    ac_outfile=conftest.$ac_objext
9242    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9243    lt_compiler_flag="-fno-rtti -fno-exceptions"
9244    # Insert the option either (1) after the last *FLAGS variable, or
9245    # (2) before a word containing "conftest.", or (3) at the end.
9246    # Note that $ac_compile itself does not contain backslashes and begins
9247    # with a dollar sign (not a hyphen), so the echo should work correctly.
9248    # The option is referenced via a variable to avoid confusing sed.
9249    lt_compile=`echo "$ac_compile" | $SED \
9250    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9251    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9252    -e 's:$: $lt_compiler_flag:'`
9253    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9254    (eval "$lt_compile" 2>conftest.err)
9255    ac_status=$?
9256    cat conftest.err >&5
9257    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258    if (exit $ac_status) && test -s "$ac_outfile"; then
9259      # The compiler can only warn and ignore the option if not recognized
9260      # So say no if there are warnings other than the usual output.
9261      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9262      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9263      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9264        lt_cv_prog_compiler_rtti_exceptions=yes
9265      fi
9266    fi
9267    $RM conftest*
9268
9269 fi
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9271 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9272
9273 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9274     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9275 else
9276     :
9277 fi
9278
9279 fi
9280
9281
9282
9283
9284
9285
9286   lt_prog_compiler_wl=
9287 lt_prog_compiler_pic=
9288 lt_prog_compiler_static=
9289
9290
9291   if test "$GCC" = yes; then
9292     lt_prog_compiler_wl='-Wl,'
9293     lt_prog_compiler_static='-static'
9294
9295     case $host_os in
9296       aix*)
9297       # All AIX code is PIC.
9298       if test "$host_cpu" = ia64; then
9299         # AIX 5 now supports IA64 processor
9300         lt_prog_compiler_static='-Bstatic'
9301       fi
9302       ;;
9303
9304     amigaos*)
9305       case $host_cpu in
9306       powerpc)
9307             # see comment about AmigaOS4 .so support
9308             lt_prog_compiler_pic='-fPIC'
9309         ;;
9310       m68k)
9311             # FIXME: we need at least 68020 code to build shared libraries, but
9312             # adding the `-m68020' flag to GCC prevents building anything better,
9313             # like `-m68040'.
9314             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9315         ;;
9316       esac
9317       ;;
9318
9319     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9320       # PIC is the default for these OSes.
9321       ;;
9322
9323     mingw* | cygwin* | pw32* | os2* | cegcc*)
9324       # This hack is so that the source file can tell whether it is being
9325       # built for inclusion in a dll (and should export symbols for example).
9326       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9327       # (--disable-auto-import) libraries
9328       lt_prog_compiler_pic='-DDLL_EXPORT'
9329       ;;
9330
9331     darwin* | rhapsody*)
9332       # PIC is the default on this platform
9333       # Common symbols not allowed in MH_DYLIB files
9334       lt_prog_compiler_pic='-fno-common'
9335       ;;
9336
9337     haiku*)
9338       # PIC is the default for Haiku.
9339       # The "-static" flag exists, but is broken.
9340       lt_prog_compiler_static=
9341       ;;
9342
9343     hpux*)
9344       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9345       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9346       # sets the default TLS model and affects inlining.
9347       case $host_cpu in
9348       hppa*64*)
9349         # +Z the default
9350         ;;
9351       *)
9352         lt_prog_compiler_pic='-fPIC'
9353         ;;
9354       esac
9355       ;;
9356
9357     interix[3-9]*)
9358       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9359       # Instead, we relocate shared libraries at runtime.
9360       ;;
9361
9362     msdosdjgpp*)
9363       # Just because we use GCC doesn't mean we suddenly get shared libraries
9364       # on systems that don't support them.
9365       lt_prog_compiler_can_build_shared=no
9366       enable_shared=no
9367       ;;
9368
9369     *nto* | *qnx*)
9370       # QNX uses GNU C++, but need to define -shared option too, otherwise
9371       # it will coredump.
9372       lt_prog_compiler_pic='-fPIC -shared'
9373       ;;
9374
9375     sysv4*MP*)
9376       if test -d /usr/nec; then
9377         lt_prog_compiler_pic=-Kconform_pic
9378       fi
9379       ;;
9380
9381     *)
9382       lt_prog_compiler_pic='-fPIC'
9383       ;;
9384     esac
9385
9386     case $cc_basename in
9387     nvcc*) # Cuda Compiler Driver 2.2
9388       lt_prog_compiler_wl='-Xlinker '
9389       if test -n "$lt_prog_compiler_pic"; then
9390         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9391       fi
9392       ;;
9393     esac
9394   else
9395     # PORTME Check for flag to pass linker flags through the system compiler.
9396     case $host_os in
9397     aix*)
9398       lt_prog_compiler_wl='-Wl,'
9399       if test "$host_cpu" = ia64; then
9400         # AIX 5 now supports IA64 processor
9401         lt_prog_compiler_static='-Bstatic'
9402       else
9403         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9404       fi
9405       ;;
9406
9407     mingw* | cygwin* | pw32* | os2* | cegcc*)
9408       # This hack is so that the source file can tell whether it is being
9409       # built for inclusion in a dll (and should export symbols for example).
9410       lt_prog_compiler_pic='-DDLL_EXPORT'
9411       ;;
9412
9413     hpux9* | hpux10* | hpux11*)
9414       lt_prog_compiler_wl='-Wl,'
9415       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9416       # not for PA HP-UX.
9417       case $host_cpu in
9418       hppa*64*|ia64*)
9419         # +Z the default
9420         ;;
9421       *)
9422         lt_prog_compiler_pic='+Z'
9423         ;;
9424       esac
9425       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9426       lt_prog_compiler_static='${wl}-a ${wl}archive'
9427       ;;
9428
9429     irix5* | irix6* | nonstopux*)
9430       lt_prog_compiler_wl='-Wl,'
9431       # PIC (with -KPIC) is the default.
9432       lt_prog_compiler_static='-non_shared'
9433       ;;
9434
9435     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9436       case $cc_basename in
9437       # old Intel for x86_64 which still supported -KPIC.
9438       ecc*)
9439         lt_prog_compiler_wl='-Wl,'
9440         lt_prog_compiler_pic='-KPIC'
9441         lt_prog_compiler_static='-static'
9442         ;;
9443       # icc used to be incompatible with GCC.
9444       # ICC 10 doesn't accept -KPIC any more.
9445       icc* | ifort*)
9446         lt_prog_compiler_wl='-Wl,'
9447         lt_prog_compiler_pic='-fPIC'
9448         lt_prog_compiler_static='-static'
9449         ;;
9450       # Lahey Fortran 8.1.
9451       lf95*)
9452         lt_prog_compiler_wl='-Wl,'
9453         lt_prog_compiler_pic='--shared'
9454         lt_prog_compiler_static='--static'
9455         ;;
9456       nagfor*)
9457         # NAG Fortran compiler
9458         lt_prog_compiler_wl='-Wl,-Wl,,'
9459         lt_prog_compiler_pic='-PIC'
9460         lt_prog_compiler_static='-Bstatic'
9461         ;;
9462       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9463         # Portland Group compilers (*not* the Pentium gcc compiler,
9464         # which looks to be a dead project)
9465         lt_prog_compiler_wl='-Wl,'
9466         lt_prog_compiler_pic='-fpic'
9467         lt_prog_compiler_static='-Bstatic'
9468         ;;
9469       ccc*)
9470         lt_prog_compiler_wl='-Wl,'
9471         # All Alpha code is PIC.
9472         lt_prog_compiler_static='-non_shared'
9473         ;;
9474       xl* | bgxl* | bgf* | mpixl*)
9475         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9476         lt_prog_compiler_wl='-Wl,'
9477         lt_prog_compiler_pic='-qpic'
9478         lt_prog_compiler_static='-qstaticlink'
9479         ;;
9480       *)
9481         case `$CC -V 2>&1 | sed 5q` in
9482         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9483           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9484           lt_prog_compiler_pic='-KPIC'
9485           lt_prog_compiler_static='-Bstatic'
9486           lt_prog_compiler_wl=''
9487           ;;
9488         *Sun\ F* | *Sun*Fortran*)
9489           lt_prog_compiler_pic='-KPIC'
9490           lt_prog_compiler_static='-Bstatic'
9491           lt_prog_compiler_wl='-Qoption ld '
9492           ;;
9493         *Sun\ C*)
9494           # Sun C 5.9
9495           lt_prog_compiler_pic='-KPIC'
9496           lt_prog_compiler_static='-Bstatic'
9497           lt_prog_compiler_wl='-Wl,'
9498           ;;
9499         *Intel*\ [CF]*Compiler*)
9500           lt_prog_compiler_wl='-Wl,'
9501           lt_prog_compiler_pic='-fPIC'
9502           lt_prog_compiler_static='-static'
9503           ;;
9504         *Portland\ Group*)
9505           lt_prog_compiler_wl='-Wl,'
9506           lt_prog_compiler_pic='-fpic'
9507           lt_prog_compiler_static='-Bstatic'
9508           ;;
9509         esac
9510         ;;
9511       esac
9512       ;;
9513
9514     newsos6)
9515       lt_prog_compiler_pic='-KPIC'
9516       lt_prog_compiler_static='-Bstatic'
9517       ;;
9518
9519     *nto* | *qnx*)
9520       # QNX uses GNU C++, but need to define -shared option too, otherwise
9521       # it will coredump.
9522       lt_prog_compiler_pic='-fPIC -shared'
9523       ;;
9524
9525     osf3* | osf4* | osf5*)
9526       lt_prog_compiler_wl='-Wl,'
9527       # All OSF/1 code is PIC.
9528       lt_prog_compiler_static='-non_shared'
9529       ;;
9530
9531     rdos*)
9532       lt_prog_compiler_static='-non_shared'
9533       ;;
9534
9535     solaris*)
9536       lt_prog_compiler_pic='-KPIC'
9537       lt_prog_compiler_static='-Bstatic'
9538       case $cc_basename in
9539       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9540         lt_prog_compiler_wl='-Qoption ld ';;
9541       *)
9542         lt_prog_compiler_wl='-Wl,';;
9543       esac
9544       ;;
9545
9546     sunos4*)
9547       lt_prog_compiler_wl='-Qoption ld '
9548       lt_prog_compiler_pic='-PIC'
9549       lt_prog_compiler_static='-Bstatic'
9550       ;;
9551
9552     sysv4 | sysv4.2uw2* | sysv4.3*)
9553       lt_prog_compiler_wl='-Wl,'
9554       lt_prog_compiler_pic='-KPIC'
9555       lt_prog_compiler_static='-Bstatic'
9556       ;;
9557
9558     sysv4*MP*)
9559       if test -d /usr/nec ;then
9560         lt_prog_compiler_pic='-Kconform_pic'
9561         lt_prog_compiler_static='-Bstatic'
9562       fi
9563       ;;
9564
9565     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9566       lt_prog_compiler_wl='-Wl,'
9567       lt_prog_compiler_pic='-KPIC'
9568       lt_prog_compiler_static='-Bstatic'
9569       ;;
9570
9571     unicos*)
9572       lt_prog_compiler_wl='-Wl,'
9573       lt_prog_compiler_can_build_shared=no
9574       ;;
9575
9576     uts4*)
9577       lt_prog_compiler_pic='-pic'
9578       lt_prog_compiler_static='-Bstatic'
9579       ;;
9580
9581     *)
9582       lt_prog_compiler_can_build_shared=no
9583       ;;
9584     esac
9585   fi
9586
9587 case $host_os in
9588   # For platforms which do not support PIC, -DPIC is meaningless:
9589   *djgpp*)
9590     lt_prog_compiler_pic=
9591     ;;
9592   *)
9593     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9594     ;;
9595 esac
9596
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9598 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9599 if ${lt_cv_prog_compiler_pic+:} false; then :
9600   $as_echo_n "(cached) " >&6
9601 else
9602   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9603 fi
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9605 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9606 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9607
9608 #
9609 # Check to make sure the PIC flag actually works.
9610 #
9611 if test -n "$lt_prog_compiler_pic"; then
9612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9613 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9614 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9615   $as_echo_n "(cached) " >&6
9616 else
9617   lt_cv_prog_compiler_pic_works=no
9618    ac_outfile=conftest.$ac_objext
9619    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9620    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9621    # Insert the option either (1) after the last *FLAGS variable, or
9622    # (2) before a word containing "conftest.", or (3) at the end.
9623    # Note that $ac_compile itself does not contain backslashes and begins
9624    # with a dollar sign (not a hyphen), so the echo should work correctly.
9625    # The option is referenced via a variable to avoid confusing sed.
9626    lt_compile=`echo "$ac_compile" | $SED \
9627    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9628    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9629    -e 's:$: $lt_compiler_flag:'`
9630    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9631    (eval "$lt_compile" 2>conftest.err)
9632    ac_status=$?
9633    cat conftest.err >&5
9634    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635    if (exit $ac_status) && test -s "$ac_outfile"; then
9636      # The compiler can only warn and ignore the option if not recognized
9637      # So say no if there are warnings other than the usual output.
9638      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9639      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9640      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9641        lt_cv_prog_compiler_pic_works=yes
9642      fi
9643    fi
9644    $RM conftest*
9645
9646 fi
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9648 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9649
9650 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9651     case $lt_prog_compiler_pic in
9652      "" | " "*) ;;
9653      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9654      esac
9655 else
9656     lt_prog_compiler_pic=
9657      lt_prog_compiler_can_build_shared=no
9658 fi
9659
9660 fi
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672 #
9673 # Check to make sure the static flag actually works.
9674 #
9675 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9677 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9678 if ${lt_cv_prog_compiler_static_works+:} false; then :
9679   $as_echo_n "(cached) " >&6
9680 else
9681   lt_cv_prog_compiler_static_works=no
9682    save_LDFLAGS="$LDFLAGS"
9683    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9684    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9685    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9686      # The linker can only warn and ignore the option if not recognized
9687      # So say no if there are warnings
9688      if test -s conftest.err; then
9689        # Append any errors to the config.log.
9690        cat conftest.err 1>&5
9691        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9692        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9693        if diff conftest.exp conftest.er2 >/dev/null; then
9694          lt_cv_prog_compiler_static_works=yes
9695        fi
9696      else
9697        lt_cv_prog_compiler_static_works=yes
9698      fi
9699    fi
9700    $RM -r conftest*
9701    LDFLAGS="$save_LDFLAGS"
9702
9703 fi
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9705 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9706
9707 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9708     :
9709 else
9710     lt_prog_compiler_static=
9711 fi
9712
9713
9714
9715
9716
9717
9718
9719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9720 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9721 if ${lt_cv_prog_compiler_c_o+:} false; then :
9722   $as_echo_n "(cached) " >&6
9723 else
9724   lt_cv_prog_compiler_c_o=no
9725    $RM -r conftest 2>/dev/null
9726    mkdir conftest
9727    cd conftest
9728    mkdir out
9729    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9730
9731    lt_compiler_flag="-o out/conftest2.$ac_objext"
9732    # Insert the option either (1) after the last *FLAGS variable, or
9733    # (2) before a word containing "conftest.", or (3) at the end.
9734    # Note that $ac_compile itself does not contain backslashes and begins
9735    # with a dollar sign (not a hyphen), so the echo should work correctly.
9736    lt_compile=`echo "$ac_compile" | $SED \
9737    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9738    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9739    -e 's:$: $lt_compiler_flag:'`
9740    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9741    (eval "$lt_compile" 2>out/conftest.err)
9742    ac_status=$?
9743    cat out/conftest.err >&5
9744    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9746    then
9747      # The compiler can only warn and ignore the option if not recognized
9748      # So say no if there are warnings
9749      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9750      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9751      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9752        lt_cv_prog_compiler_c_o=yes
9753      fi
9754    fi
9755    chmod u+w . 2>&5
9756    $RM conftest*
9757    # SGI C++ compiler will create directory out/ii_files/ for
9758    # template instantiation
9759    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9760    $RM out/* && rmdir out
9761    cd ..
9762    $RM -r conftest
9763    $RM conftest*
9764
9765 fi
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9767 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9768
9769
9770
9771
9772
9773
9774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9775 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9776 if ${lt_cv_prog_compiler_c_o+:} false; then :
9777   $as_echo_n "(cached) " >&6
9778 else
9779   lt_cv_prog_compiler_c_o=no
9780    $RM -r conftest 2>/dev/null
9781    mkdir conftest
9782    cd conftest
9783    mkdir out
9784    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9785
9786    lt_compiler_flag="-o out/conftest2.$ac_objext"
9787    # Insert the option either (1) after the last *FLAGS variable, or
9788    # (2) before a word containing "conftest.", or (3) at the end.
9789    # Note that $ac_compile itself does not contain backslashes and begins
9790    # with a dollar sign (not a hyphen), so the echo should work correctly.
9791    lt_compile=`echo "$ac_compile" | $SED \
9792    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9793    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9794    -e 's:$: $lt_compiler_flag:'`
9795    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9796    (eval "$lt_compile" 2>out/conftest.err)
9797    ac_status=$?
9798    cat out/conftest.err >&5
9799    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9801    then
9802      # The compiler can only warn and ignore the option if not recognized
9803      # So say no if there are warnings
9804      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9805      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9806      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9807        lt_cv_prog_compiler_c_o=yes
9808      fi
9809    fi
9810    chmod u+w . 2>&5
9811    $RM conftest*
9812    # SGI C++ compiler will create directory out/ii_files/ for
9813    # template instantiation
9814    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9815    $RM out/* && rmdir out
9816    cd ..
9817    $RM -r conftest
9818    $RM conftest*
9819
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9822 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9823
9824
9825
9826
9827 hard_links="nottested"
9828 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9829   # do not overwrite the value of need_locks provided by the user
9830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9831 $as_echo_n "checking if we can lock with hard links... " >&6; }
9832   hard_links=yes
9833   $RM conftest*
9834   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9835   touch conftest.a
9836   ln conftest.a conftest.b 2>&5 || hard_links=no
9837   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9839 $as_echo "$hard_links" >&6; }
9840   if test "$hard_links" = no; then
9841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9842 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9843     need_locks=warn
9844   fi
9845 else
9846   need_locks=no
9847 fi
9848
9849
9850
9851
9852
9853
9854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9855 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9856
9857   runpath_var=
9858   allow_undefined_flag=
9859   always_export_symbols=no
9860   archive_cmds=
9861   archive_expsym_cmds=
9862   compiler_needs_object=no
9863   enable_shared_with_static_runtimes=no
9864   export_dynamic_flag_spec=
9865   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9866   hardcode_automatic=no
9867   hardcode_direct=no
9868   hardcode_direct_absolute=no
9869   hardcode_libdir_flag_spec=
9870   hardcode_libdir_separator=
9871   hardcode_minus_L=no
9872   hardcode_shlibpath_var=unsupported
9873   inherit_rpath=no
9874   link_all_deplibs=unknown
9875   module_cmds=
9876   module_expsym_cmds=
9877   old_archive_from_new_cmds=
9878   old_archive_from_expsyms_cmds=
9879   thread_safe_flag_spec=
9880   whole_archive_flag_spec=
9881   # include_expsyms should be a list of space-separated symbols to be *always*
9882   # included in the symbol list
9883   include_expsyms=
9884   # exclude_expsyms can be an extended regexp of symbols to exclude
9885   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9886   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9887   # as well as any symbol that contains `d'.
9888   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9889   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9890   # platforms (ab)use it in PIC code, but their linkers get confused if
9891   # the symbol is explicitly referenced.  Since portable code cannot
9892   # rely on this symbol name, it's probably fine to never include it in
9893   # preloaded symbol tables.
9894   # Exclude shared library initialization/finalization symbols.
9895   extract_expsyms_cmds=
9896
9897   case $host_os in
9898   cygwin* | mingw* | pw32* | cegcc*)
9899     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9900     # When not using gcc, we currently assume that we are using
9901     # Microsoft Visual C++.
9902     if test "$GCC" != yes; then
9903       with_gnu_ld=no
9904     fi
9905     ;;
9906   interix*)
9907     # we just hope/assume this is gcc and not c89 (= MSVC++)
9908     with_gnu_ld=yes
9909     ;;
9910   openbsd*)
9911     with_gnu_ld=no
9912     ;;
9913   esac
9914
9915   ld_shlibs=yes
9916
9917   # On some targets, GNU ld is compatible enough with the native linker
9918   # that we're better off using the native interface for both.
9919   lt_use_gnu_ld_interface=no
9920   if test "$with_gnu_ld" = yes; then
9921     case $host_os in
9922       aix*)
9923         # The AIX port of GNU ld has always aspired to compatibility
9924         # with the native linker.  However, as the warning in the GNU ld
9925         # block says, versions before 2.19.5* couldn't really create working
9926         # shared libraries, regardless of the interface used.
9927         case `$LD -v 2>&1` in
9928           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9929           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9930           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9931           *)
9932             lt_use_gnu_ld_interface=yes
9933             ;;
9934         esac
9935         ;;
9936       *)
9937         lt_use_gnu_ld_interface=yes
9938         ;;
9939     esac
9940   fi
9941
9942   if test "$lt_use_gnu_ld_interface" = yes; then
9943     # If archive_cmds runs LD, not CC, wlarc should be empty
9944     wlarc='${wl}'
9945
9946     # Set some defaults for GNU ld with shared library support. These
9947     # are reset later if shared libraries are not supported. Putting them
9948     # here allows them to be overridden if necessary.
9949     runpath_var=LD_RUN_PATH
9950     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9951     export_dynamic_flag_spec='${wl}--export-dynamic'
9952     # ancient GNU ld didn't support --whole-archive et. al.
9953     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9954       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9955     else
9956       whole_archive_flag_spec=
9957     fi
9958     supports_anon_versioning=no
9959     case `$LD -v 2>&1` in
9960       *GNU\ gold*) supports_anon_versioning=yes ;;
9961       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9962       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9963       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9964       *\ 2.11.*) ;; # other 2.11 versions
9965       *) supports_anon_versioning=yes ;;
9966     esac
9967
9968     # See if GNU ld supports shared libraries.
9969     case $host_os in
9970     aix[3-9]*)
9971       # On AIX/PPC, the GNU linker is very broken
9972       if test "$host_cpu" != ia64; then
9973         ld_shlibs=no
9974         cat <<_LT_EOF 1>&2
9975
9976 *** Warning: the GNU linker, at least up to release 2.19, is reported
9977 *** to be unable to reliably create shared libraries on AIX.
9978 *** Therefore, libtool is disabling shared libraries support.  If you
9979 *** really care for shared libraries, you may want to install binutils
9980 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9981 *** You will then need to restart the configuration process.
9982
9983 _LT_EOF
9984       fi
9985       ;;
9986
9987     amigaos*)
9988       case $host_cpu in
9989       powerpc)
9990             # see comment about AmigaOS4 .so support
9991             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9992             archive_expsym_cmds=''
9993         ;;
9994       m68k)
9995             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)'
9996             hardcode_libdir_flag_spec='-L$libdir'
9997             hardcode_minus_L=yes
9998         ;;
9999       esac
10000       ;;
10001
10002     beos*)
10003       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10004         allow_undefined_flag=unsupported
10005         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10006         # support --undefined.  This deserves some investigation.  FIXME
10007         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10008       else
10009         ld_shlibs=no
10010       fi
10011       ;;
10012
10013     cygwin* | mingw* | pw32* | cegcc*)
10014       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10015       # as there is no search path for DLLs.
10016       hardcode_libdir_flag_spec='-L$libdir'
10017       export_dynamic_flag_spec='${wl}--export-all-symbols'
10018       allow_undefined_flag=unsupported
10019       always_export_symbols=no
10020       enable_shared_with_static_runtimes=yes
10021       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'
10022       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10023
10024       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10025         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10026         # If the export-symbols file already is a .def file (1st line
10027         # is EXPORTS), use it as is; otherwise, prepend...
10028         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10029           cp $export_symbols $output_objdir/$soname.def;
10030         else
10031           echo EXPORTS > $output_objdir/$soname.def;
10032           cat $export_symbols >> $output_objdir/$soname.def;
10033         fi~
10034         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10035       else
10036         ld_shlibs=no
10037       fi
10038       ;;
10039
10040     haiku*)
10041       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10042       link_all_deplibs=yes
10043       ;;
10044
10045     interix[3-9]*)
10046       hardcode_direct=no
10047       hardcode_shlibpath_var=no
10048       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10049       export_dynamic_flag_spec='${wl}-E'
10050       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10051       # Instead, shared libraries are loaded at an image base (0x10000000 by
10052       # default) and relocated if they conflict, which is a slow very memory
10053       # consuming and fragmenting process.  To avoid this, we pick a random,
10054       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10055       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10056       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10057       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'
10058       ;;
10059
10060     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10061       tmp_diet=no
10062       if test "$host_os" = linux-dietlibc; then
10063         case $cc_basename in
10064           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10065         esac
10066       fi
10067       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10068          && test "$tmp_diet" = no
10069       then
10070         tmp_addflag=' $pic_flag'
10071         tmp_sharedflag='-shared'
10072         case $cc_basename,$host_cpu in
10073         pgcc*)                          # Portland Group C compiler
10074           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'
10075           tmp_addflag=' $pic_flag'
10076           ;;
10077         pgf77* | pgf90* | pgf95* | pgfortran*)
10078                                         # Portland Group f77 and f90 compilers
10079           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'
10080           tmp_addflag=' $pic_flag -Mnomain' ;;
10081         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10082           tmp_addflag=' -i_dynamic' ;;
10083         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10084           tmp_addflag=' -i_dynamic -nofor_main' ;;
10085         ifc* | ifort*)                  # Intel Fortran compiler
10086           tmp_addflag=' -nofor_main' ;;
10087         lf95*)                          # Lahey Fortran 8.1
10088           whole_archive_flag_spec=
10089           tmp_sharedflag='--shared' ;;
10090         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10091           tmp_sharedflag='-qmkshrobj'
10092           tmp_addflag= ;;
10093         nvcc*)  # Cuda Compiler Driver 2.2
10094           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'
10095           compiler_needs_object=yes
10096           ;;
10097         esac
10098         case `$CC -V 2>&1 | sed 5q` in
10099         *Sun\ C*)                       # Sun C 5.9
10100           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'
10101           compiler_needs_object=yes
10102           tmp_sharedflag='-G' ;;
10103         *Sun\ F*)                       # Sun Fortran 8.3
10104           tmp_sharedflag='-G' ;;
10105         esac
10106         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10107
10108         if test "x$supports_anon_versioning" = xyes; then
10109           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10110             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10111             echo "local: *; };" >> $output_objdir/$libname.ver~
10112             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10113         fi
10114
10115         case $cc_basename in
10116         xlf* | bgf* | bgxlf* | mpixlf*)
10117           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10118           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10119           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10121           if test "x$supports_anon_versioning" = xyes; then
10122             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10123               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10124               echo "local: *; };" >> $output_objdir/$libname.ver~
10125               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10126           fi
10127           ;;
10128         esac
10129       else
10130         ld_shlibs=no
10131       fi
10132       ;;
10133
10134     netbsd*)
10135       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10136         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10137         wlarc=
10138       else
10139         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10140         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10141       fi
10142       ;;
10143
10144     solaris*)
10145       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10146         ld_shlibs=no
10147         cat <<_LT_EOF 1>&2
10148
10149 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10150 *** create shared libraries on Solaris systems.  Therefore, libtool
10151 *** is disabling shared libraries support.  We urge you to upgrade GNU
10152 *** binutils to release 2.9.1 or newer.  Another option is to modify
10153 *** your PATH or compiler configuration so that the native linker is
10154 *** used, and then restart.
10155
10156 _LT_EOF
10157       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10158         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10159         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10160       else
10161         ld_shlibs=no
10162       fi
10163       ;;
10164
10165     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10166       case `$LD -v 2>&1` in
10167         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10168         ld_shlibs=no
10169         cat <<_LT_EOF 1>&2
10170
10171 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10172 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10173 *** is disabling shared libraries support.  We urge you to upgrade GNU
10174 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10175 *** your PATH or compiler configuration so that the native linker is
10176 *** used, and then restart.
10177
10178 _LT_EOF
10179         ;;
10180         *)
10181           # For security reasons, it is highly recommended that you always
10182           # use absolute paths for naming shared libraries, and exclude the
10183           # DT_RUNPATH tag from executables and libraries.  But doing so
10184           # requires that you compile everything twice, which is a pain.
10185           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10186             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10187             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10188             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10189           else
10190             ld_shlibs=no
10191           fi
10192         ;;
10193       esac
10194       ;;
10195
10196     sunos4*)
10197       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10198       wlarc=
10199       hardcode_direct=yes
10200       hardcode_shlibpath_var=no
10201       ;;
10202
10203     *)
10204       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10205         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10207       else
10208         ld_shlibs=no
10209       fi
10210       ;;
10211     esac
10212
10213     if test "$ld_shlibs" = no; then
10214       runpath_var=
10215       hardcode_libdir_flag_spec=
10216       export_dynamic_flag_spec=
10217       whole_archive_flag_spec=
10218     fi
10219   else
10220     # PORTME fill in a description of your system's linker (not GNU ld)
10221     case $host_os in
10222     aix3*)
10223       allow_undefined_flag=unsupported
10224       always_export_symbols=yes
10225       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'
10226       # Note: this linker hardcodes the directories in LIBPATH if there
10227       # are no directories specified by -L.
10228       hardcode_minus_L=yes
10229       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10230         # Neither direct hardcoding nor static linking is supported with a
10231         # broken collect2.
10232         hardcode_direct=unsupported
10233       fi
10234       ;;
10235
10236     aix[4-9]*)
10237       if test "$host_cpu" = ia64; then
10238         # On IA64, the linker does run time linking by default, so we don't
10239         # have to do anything special.
10240         aix_use_runtimelinking=no
10241         exp_sym_flag='-Bexport'
10242         no_entry_flag=""
10243       else
10244         # If we're using GNU nm, then we don't want the "-C" option.
10245         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10246         # Also, AIX nm treats weak defined symbols like other global
10247         # defined symbols, whereas GNU nm marks them as "W".
10248         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10249           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'
10250         else
10251           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'
10252         fi
10253         aix_use_runtimelinking=no
10254
10255         # Test if we are trying to use run time linking or normal
10256         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10257         # need to do runtime linking.
10258         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10259           for ld_flag in $LDFLAGS; do
10260           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10261             aix_use_runtimelinking=yes
10262             break
10263           fi
10264           done
10265           ;;
10266         esac
10267
10268         exp_sym_flag='-bexport'
10269         no_entry_flag='-bnoentry'
10270       fi
10271
10272       # When large executables or shared objects are built, AIX ld can
10273       # have problems creating the table of contents.  If linking a library
10274       # or program results in "error TOC overflow" add -mminimal-toc to
10275       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10276       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10277
10278       archive_cmds=''
10279       hardcode_direct=yes
10280       hardcode_direct_absolute=yes
10281       hardcode_libdir_separator=':'
10282       link_all_deplibs=yes
10283       file_list_spec='${wl}-f,'
10284
10285       if test "$GCC" = yes; then
10286         case $host_os in aix4.[012]|aix4.[012].*)
10287         # We only want to do this on AIX 4.2 and lower, the check
10288         # below for broken collect2 doesn't work under 4.3+
10289           collect2name=`${CC} -print-prog-name=collect2`
10290           if test -f "$collect2name" &&
10291            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10292           then
10293           # We have reworked collect2
10294           :
10295           else
10296           # We have old collect2
10297           hardcode_direct=unsupported
10298           # It fails to find uninstalled libraries when the uninstalled
10299           # path is not listed in the libpath.  Setting hardcode_minus_L
10300           # to unsupported forces relinking
10301           hardcode_minus_L=yes
10302           hardcode_libdir_flag_spec='-L$libdir'
10303           hardcode_libdir_separator=
10304           fi
10305           ;;
10306         esac
10307         shared_flag='-shared'
10308         if test "$aix_use_runtimelinking" = yes; then
10309           shared_flag="$shared_flag "'${wl}-G'
10310         fi
10311       else
10312         # not using gcc
10313         if test "$host_cpu" = ia64; then
10314         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10315         # chokes on -Wl,-G. The following line is correct:
10316           shared_flag='-G'
10317         else
10318           if test "$aix_use_runtimelinking" = yes; then
10319             shared_flag='${wl}-G'
10320           else
10321             shared_flag='${wl}-bM:SRE'
10322           fi
10323         fi
10324       fi
10325
10326       export_dynamic_flag_spec='${wl}-bexpall'
10327       # It seems that -bexpall does not export symbols beginning with
10328       # underscore (_), so it is better to generate a list of symbols to export.
10329       always_export_symbols=yes
10330       if test "$aix_use_runtimelinking" = yes; then
10331         # Warning - without using the other runtime loading flags (-brtl),
10332         # -berok will link without error, but may produce a broken library.
10333         allow_undefined_flag='-berok'
10334         # Determine the default libpath from the value encoded in an
10335         # empty executable.
10336         if test "${lt_cv_aix_libpath+set}" = set; then
10337   aix_libpath=$lt_cv_aix_libpath
10338 else
10339   if ${lt_cv_aix_libpath_+:} false; then :
10340   $as_echo_n "(cached) " >&6
10341 else
10342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h.  */
10344
10345 int
10346 main ()
10347 {
10348
10349   ;
10350   return 0;
10351 }
10352 _ACEOF
10353 if ac_fn_c_try_link "$LINENO"; then :
10354
10355   lt_aix_libpath_sed='
10356       /Import File Strings/,/^$/ {
10357           /^0/ {
10358               s/^0  *\([^ ]*\) *$/\1/
10359               p
10360           }
10361       }'
10362   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10363   # Check for a 64-bit object if we didn't find anything.
10364   if test -z "$lt_cv_aix_libpath_"; then
10365     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10366   fi
10367 fi
10368 rm -f core conftest.err conftest.$ac_objext \
10369     conftest$ac_exeext conftest.$ac_ext
10370   if test -z "$lt_cv_aix_libpath_"; then
10371     lt_cv_aix_libpath_="/usr/lib:/lib"
10372   fi
10373
10374 fi
10375
10376   aix_libpath=$lt_cv_aix_libpath_
10377 fi
10378
10379         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10380         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"
10381       else
10382         if test "$host_cpu" = ia64; then
10383           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10384           allow_undefined_flag="-z nodefs"
10385           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"
10386         else
10387          # Determine the default libpath from the value encoded in an
10388          # empty executable.
10389          if test "${lt_cv_aix_libpath+set}" = set; then
10390   aix_libpath=$lt_cv_aix_libpath
10391 else
10392   if ${lt_cv_aix_libpath_+:} false; then :
10393   $as_echo_n "(cached) " >&6
10394 else
10395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396 /* end confdefs.h.  */
10397
10398 int
10399 main ()
10400 {
10401
10402   ;
10403   return 0;
10404 }
10405 _ACEOF
10406 if ac_fn_c_try_link "$LINENO"; then :
10407
10408   lt_aix_libpath_sed='
10409       /Import File Strings/,/^$/ {
10410           /^0/ {
10411               s/^0  *\([^ ]*\) *$/\1/
10412               p
10413           }
10414       }'
10415   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10416   # Check for a 64-bit object if we didn't find anything.
10417   if test -z "$lt_cv_aix_libpath_"; then
10418     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10419   fi
10420 fi
10421 rm -f core conftest.err conftest.$ac_objext \
10422     conftest$ac_exeext conftest.$ac_ext
10423   if test -z "$lt_cv_aix_libpath_"; then
10424     lt_cv_aix_libpath_="/usr/lib:/lib"
10425   fi
10426
10427 fi
10428
10429   aix_libpath=$lt_cv_aix_libpath_
10430 fi
10431
10432          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10433           # Warning - without using the other run time loading flags,
10434           # -berok will link without error, but may produce a broken library.
10435           no_undefined_flag=' ${wl}-bernotok'
10436           allow_undefined_flag=' ${wl}-berok'
10437           if test "$with_gnu_ld" = yes; then
10438             # We only use this code for GNU lds that support --whole-archive.
10439             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10440           else
10441             # Exported symbols can be pulled into shared objects from archives
10442             whole_archive_flag_spec='$convenience'
10443           fi
10444           archive_cmds_need_lc=yes
10445           # This is similar to how AIX traditionally builds its shared libraries.
10446           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'
10447         fi
10448       fi
10449       ;;
10450
10451     amigaos*)
10452       case $host_cpu in
10453       powerpc)
10454             # see comment about AmigaOS4 .so support
10455             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10456             archive_expsym_cmds=''
10457         ;;
10458       m68k)
10459             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)'
10460             hardcode_libdir_flag_spec='-L$libdir'
10461             hardcode_minus_L=yes
10462         ;;
10463       esac
10464       ;;
10465
10466     bsdi[45]*)
10467       export_dynamic_flag_spec=-rdynamic
10468       ;;
10469
10470     cygwin* | mingw* | pw32* | cegcc*)
10471       # When not using gcc, we currently assume that we are using
10472       # Microsoft Visual C++.
10473       # hardcode_libdir_flag_spec is actually meaningless, as there is
10474       # no search path for DLLs.
10475       case $cc_basename in
10476       cl*)
10477         # Native MSVC
10478         hardcode_libdir_flag_spec=' '
10479         allow_undefined_flag=unsupported
10480         always_export_symbols=yes
10481         file_list_spec='@'
10482         # Tell ltmain to make .lib files, not .a files.
10483         libext=lib
10484         # Tell ltmain to make .dll files, not .so files.
10485         shrext_cmds=".dll"
10486         # FIXME: Setting linknames here is a bad hack.
10487         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10488         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10489             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10490           else
10491             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10492           fi~
10493           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10494           linknames='
10495         # The linker will not automatically build a static lib if we build a DLL.
10496         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10497         enable_shared_with_static_runtimes=yes
10498         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10499         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10500         # Don't use ranlib
10501         old_postinstall_cmds='chmod 644 $oldlib'
10502         postlink_cmds='lt_outputfile="@OUTPUT@"~
10503           lt_tool_outputfile="@TOOL_OUTPUT@"~
10504           case $lt_outputfile in
10505             *.exe|*.EXE) ;;
10506             *)
10507               lt_outputfile="$lt_outputfile.exe"
10508               lt_tool_outputfile="$lt_tool_outputfile.exe"
10509               ;;
10510           esac~
10511           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10512             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10513             $RM "$lt_outputfile.manifest";
10514           fi'
10515         ;;
10516       *)
10517         # Assume MSVC wrapper
10518         hardcode_libdir_flag_spec=' '
10519         allow_undefined_flag=unsupported
10520         # Tell ltmain to make .lib files, not .a files.
10521         libext=lib
10522         # Tell ltmain to make .dll files, not .so files.
10523         shrext_cmds=".dll"
10524         # FIXME: Setting linknames here is a bad hack.
10525         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10526         # The linker will automatically build a .lib file if we build a DLL.
10527         old_archive_from_new_cmds='true'
10528         # FIXME: Should let the user specify the lib program.
10529         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10530         enable_shared_with_static_runtimes=yes
10531         ;;
10532       esac
10533       ;;
10534
10535     darwin* | rhapsody*)
10536
10537
10538   archive_cmds_need_lc=no
10539   hardcode_direct=no
10540   hardcode_automatic=yes
10541   hardcode_shlibpath_var=unsupported
10542   if test "$lt_cv_ld_force_load" = "yes"; then
10543     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\"`'
10544
10545   else
10546     whole_archive_flag_spec=''
10547   fi
10548   link_all_deplibs=yes
10549   allow_undefined_flag="$_lt_dar_allow_undefined"
10550   case $cc_basename in
10551      ifort*) _lt_dar_can_shared=yes ;;
10552      *) _lt_dar_can_shared=$GCC ;;
10553   esac
10554   if test "$_lt_dar_can_shared" = "yes"; then
10555     output_verbose_link_cmd=func_echo_all
10556     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10557     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10558     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}"
10559     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}"
10560
10561   else
10562   ld_shlibs=no
10563   fi
10564
10565       ;;
10566
10567     dgux*)
10568       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10569       hardcode_libdir_flag_spec='-L$libdir'
10570       hardcode_shlibpath_var=no
10571       ;;
10572
10573     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10574     # support.  Future versions do this automatically, but an explicit c++rt0.o
10575     # does not break anything, and helps significantly (at the cost of a little
10576     # extra space).
10577     freebsd2.2*)
10578       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10579       hardcode_libdir_flag_spec='-R$libdir'
10580       hardcode_direct=yes
10581       hardcode_shlibpath_var=no
10582       ;;
10583
10584     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10585     freebsd2.*)
10586       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10587       hardcode_direct=yes
10588       hardcode_minus_L=yes
10589       hardcode_shlibpath_var=no
10590       ;;
10591
10592     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10593     freebsd* | dragonfly*)
10594       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10595       hardcode_libdir_flag_spec='-R$libdir'
10596       hardcode_direct=yes
10597       hardcode_shlibpath_var=no
10598       ;;
10599
10600     hpux9*)
10601       if test "$GCC" = yes; then
10602         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'
10603       else
10604         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'
10605       fi
10606       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10607       hardcode_libdir_separator=:
10608       hardcode_direct=yes
10609
10610       # hardcode_minus_L: Not really in the search PATH,
10611       # but as the default location of the library.
10612       hardcode_minus_L=yes
10613       export_dynamic_flag_spec='${wl}-E'
10614       ;;
10615
10616     hpux10*)
10617       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10618         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10619       else
10620         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10621       fi
10622       if test "$with_gnu_ld" = no; then
10623         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10624         hardcode_libdir_separator=:
10625         hardcode_direct=yes
10626         hardcode_direct_absolute=yes
10627         export_dynamic_flag_spec='${wl}-E'
10628         # hardcode_minus_L: Not really in the search PATH,
10629         # but as the default location of the library.
10630         hardcode_minus_L=yes
10631       fi
10632       ;;
10633
10634     hpux11*)
10635       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10636         case $host_cpu in
10637         hppa*64*)
10638           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10639           ;;
10640         ia64*)
10641           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10642           ;;
10643         *)
10644           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10645           ;;
10646         esac
10647       else
10648         case $host_cpu in
10649         hppa*64*)
10650           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10651           ;;
10652         ia64*)
10653           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10654           ;;
10655         *)
10656
10657           # Older versions of the 11.00 compiler do not understand -b yet
10658           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10659           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10660 $as_echo_n "checking if $CC understands -b... " >&6; }
10661 if ${lt_cv_prog_compiler__b+:} false; then :
10662   $as_echo_n "(cached) " >&6
10663 else
10664   lt_cv_prog_compiler__b=no
10665    save_LDFLAGS="$LDFLAGS"
10666    LDFLAGS="$LDFLAGS -b"
10667    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10668    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10669      # The linker can only warn and ignore the option if not recognized
10670      # So say no if there are warnings
10671      if test -s conftest.err; then
10672        # Append any errors to the config.log.
10673        cat conftest.err 1>&5
10674        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10675        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10676        if diff conftest.exp conftest.er2 >/dev/null; then
10677          lt_cv_prog_compiler__b=yes
10678        fi
10679      else
10680        lt_cv_prog_compiler__b=yes
10681      fi
10682    fi
10683    $RM -r conftest*
10684    LDFLAGS="$save_LDFLAGS"
10685
10686 fi
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10688 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10689
10690 if test x"$lt_cv_prog_compiler__b" = xyes; then
10691     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10692 else
10693     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10694 fi
10695
10696           ;;
10697         esac
10698       fi
10699       if test "$with_gnu_ld" = no; then
10700         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10701         hardcode_libdir_separator=:
10702
10703         case $host_cpu in
10704         hppa*64*|ia64*)
10705           hardcode_direct=no
10706           hardcode_shlibpath_var=no
10707           ;;
10708         *)
10709           hardcode_direct=yes
10710           hardcode_direct_absolute=yes
10711           export_dynamic_flag_spec='${wl}-E'
10712
10713           # hardcode_minus_L: Not really in the search PATH,
10714           # but as the default location of the library.
10715           hardcode_minus_L=yes
10716           ;;
10717         esac
10718       fi
10719       ;;
10720
10721     irix5* | irix6* | nonstopux*)
10722       if test "$GCC" = yes; then
10723         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'
10724         # Try to use the -exported_symbol ld option, if it does not
10725         # work, assume that -exports_file does not work either and
10726         # implicitly export all symbols.
10727         # This should be the same for all languages, so no per-tag cache variable.
10728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10729 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10730 if ${lt_cv_irix_exported_symbol+:} false; then :
10731   $as_echo_n "(cached) " >&6
10732 else
10733   save_LDFLAGS="$LDFLAGS"
10734            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10735            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h.  */
10737 int foo (void) { return 0; }
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"; then :
10740   lt_cv_irix_exported_symbol=yes
10741 else
10742   lt_cv_irix_exported_symbol=no
10743 fi
10744 rm -f core conftest.err conftest.$ac_objext \
10745     conftest$ac_exeext conftest.$ac_ext
10746            LDFLAGS="$save_LDFLAGS"
10747 fi
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10749 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10750         if test "$lt_cv_irix_exported_symbol" = yes; then
10751           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'
10752         fi
10753       else
10754         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'
10755         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'
10756       fi
10757       archive_cmds_need_lc='no'
10758       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10759       hardcode_libdir_separator=:
10760       inherit_rpath=yes
10761       link_all_deplibs=yes
10762       ;;
10763
10764     netbsd*)
10765       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10766         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10767       else
10768         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10769       fi
10770       hardcode_libdir_flag_spec='-R$libdir'
10771       hardcode_direct=yes
10772       hardcode_shlibpath_var=no
10773       ;;
10774
10775     newsos6)
10776       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10777       hardcode_direct=yes
10778       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10779       hardcode_libdir_separator=:
10780       hardcode_shlibpath_var=no
10781       ;;
10782
10783     *nto* | *qnx*)
10784       ;;
10785
10786     openbsd*)
10787       if test -f /usr/libexec/ld.so; then
10788         hardcode_direct=yes
10789         hardcode_shlibpath_var=no
10790         hardcode_direct_absolute=yes
10791         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10792           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10793           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10794           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10795           export_dynamic_flag_spec='${wl}-E'
10796         else
10797           case $host_os in
10798            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10799              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10800              hardcode_libdir_flag_spec='-R$libdir'
10801              ;;
10802            *)
10803              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10804              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10805              ;;
10806           esac
10807         fi
10808       else
10809         ld_shlibs=no
10810       fi
10811       ;;
10812
10813     os2*)
10814       hardcode_libdir_flag_spec='-L$libdir'
10815       hardcode_minus_L=yes
10816       allow_undefined_flag=unsupported
10817       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'
10818       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10819       ;;
10820
10821     osf3*)
10822       if test "$GCC" = yes; then
10823         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10824         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'
10825       else
10826         allow_undefined_flag=' -expect_unresolved \*'
10827         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'
10828       fi
10829       archive_cmds_need_lc='no'
10830       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10831       hardcode_libdir_separator=:
10832       ;;
10833
10834     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10835       if test "$GCC" = yes; then
10836         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10837         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'
10838         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10839       else
10840         allow_undefined_flag=' -expect_unresolved \*'
10841         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'
10842         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~
10843         $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'
10844
10845         # Both c and cxx compiler support -rpath directly
10846         hardcode_libdir_flag_spec='-rpath $libdir'
10847       fi
10848       archive_cmds_need_lc='no'
10849       hardcode_libdir_separator=:
10850       ;;
10851
10852     solaris*)
10853       no_undefined_flag=' -z defs'
10854       if test "$GCC" = yes; then
10855         wlarc='${wl}'
10856         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10857         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10858           $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'
10859       else
10860         case `$CC -V 2>&1` in
10861         *"Compilers 5.0"*)
10862           wlarc=''
10863           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10864           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10865           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10866           ;;
10867         *)
10868           wlarc='${wl}'
10869           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10870           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10871           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10872           ;;
10873         esac
10874       fi
10875       hardcode_libdir_flag_spec='-R$libdir'
10876       hardcode_shlibpath_var=no
10877       case $host_os in
10878       solaris2.[0-5] | solaris2.[0-5].*) ;;
10879       *)
10880         # The compiler driver will combine and reorder linker options,
10881         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10882         # but is careful enough not to reorder.
10883         # Supported since Solaris 2.6 (maybe 2.5.1?)
10884         if test "$GCC" = yes; then
10885           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10886         else
10887           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10888         fi
10889         ;;
10890       esac
10891       link_all_deplibs=yes
10892       ;;
10893
10894     sunos4*)
10895       if test "x$host_vendor" = xsequent; then
10896         # Use $CC to link under sequent, because it throws in some extra .o
10897         # files that make .init and .fini sections work.
10898         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10899       else
10900         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10901       fi
10902       hardcode_libdir_flag_spec='-L$libdir'
10903       hardcode_direct=yes
10904       hardcode_minus_L=yes
10905       hardcode_shlibpath_var=no
10906       ;;
10907
10908     sysv4)
10909       case $host_vendor in
10910         sni)
10911           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912           hardcode_direct=yes # is this really true???
10913         ;;
10914         siemens)
10915           ## LD is ld it makes a PLAMLIB
10916           ## CC just makes a GrossModule.
10917           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10918           reload_cmds='$CC -r -o $output$reload_objs'
10919           hardcode_direct=no
10920         ;;
10921         motorola)
10922           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10923           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10924         ;;
10925       esac
10926       runpath_var='LD_RUN_PATH'
10927       hardcode_shlibpath_var=no
10928       ;;
10929
10930     sysv4.3*)
10931       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10932       hardcode_shlibpath_var=no
10933       export_dynamic_flag_spec='-Bexport'
10934       ;;
10935
10936     sysv4*MP*)
10937       if test -d /usr/nec; then
10938         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10939         hardcode_shlibpath_var=no
10940         runpath_var=LD_RUN_PATH
10941         hardcode_runpath_var=yes
10942         ld_shlibs=yes
10943       fi
10944       ;;
10945
10946     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10947       no_undefined_flag='${wl}-z,text'
10948       archive_cmds_need_lc=no
10949       hardcode_shlibpath_var=no
10950       runpath_var='LD_RUN_PATH'
10951
10952       if test "$GCC" = yes; then
10953         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10955       else
10956         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10957         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10958       fi
10959       ;;
10960
10961     sysv5* | sco3.2v5* | sco5v6*)
10962       # Note: We can NOT use -z defs as we might desire, because we do not
10963       # link with -lc, and that would cause any symbols used from libc to
10964       # always be unresolved, which means just about no library would
10965       # ever link correctly.  If we're not using GNU ld we use -z text
10966       # though, which does catch some bad symbols but isn't as heavy-handed
10967       # as -z defs.
10968       no_undefined_flag='${wl}-z,text'
10969       allow_undefined_flag='${wl}-z,nodefs'
10970       archive_cmds_need_lc=no
10971       hardcode_shlibpath_var=no
10972       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10973       hardcode_libdir_separator=':'
10974       link_all_deplibs=yes
10975       export_dynamic_flag_spec='${wl}-Bexport'
10976       runpath_var='LD_RUN_PATH'
10977
10978       if test "$GCC" = yes; then
10979         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10980         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10981       else
10982         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10983         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10984       fi
10985       ;;
10986
10987     uts4*)
10988       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989       hardcode_libdir_flag_spec='-L$libdir'
10990       hardcode_shlibpath_var=no
10991       ;;
10992
10993     *)
10994       ld_shlibs=no
10995       ;;
10996     esac
10997
10998     if test x$host_vendor = xsni; then
10999       case $host in
11000       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11001         export_dynamic_flag_spec='${wl}-Blargedynsym'
11002         ;;
11003       esac
11004     fi
11005   fi
11006
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11008 $as_echo "$ld_shlibs" >&6; }
11009 test "$ld_shlibs" = no && can_build_shared=no
11010
11011 with_gnu_ld=$with_gnu_ld
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027 #
11028 # Do we need to explicitly link libc?
11029 #
11030 case "x$archive_cmds_need_lc" in
11031 x|xyes)
11032   # Assume -lc should be added
11033   archive_cmds_need_lc=yes
11034
11035   if test "$enable_shared" = yes && test "$GCC" = yes; then
11036     case $archive_cmds in
11037     *'~'*)
11038       # FIXME: we may have to deal with multi-command sequences.
11039       ;;
11040     '$CC '*)
11041       # Test whether the compiler implicitly links with -lc since on some
11042       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11043       # to ld, don't add -lc before -lgcc.
11044       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11045 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11046 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11047   $as_echo_n "(cached) " >&6
11048 else
11049   $RM conftest*
11050         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11051
11052         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11053   (eval $ac_compile) 2>&5
11054   ac_status=$?
11055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11056   test $ac_status = 0; } 2>conftest.err; then
11057           soname=conftest
11058           lib=conftest
11059           libobjs=conftest.$ac_objext
11060           deplibs=
11061           wl=$lt_prog_compiler_wl
11062           pic_flag=$lt_prog_compiler_pic
11063           compiler_flags=-v
11064           linker_flags=-v
11065           verstring=
11066           output_objdir=.
11067           libname=conftest
11068           lt_save_allow_undefined_flag=$allow_undefined_flag
11069           allow_undefined_flag=
11070           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11071   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11072   ac_status=$?
11073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11074   test $ac_status = 0; }
11075           then
11076             lt_cv_archive_cmds_need_lc=no
11077           else
11078             lt_cv_archive_cmds_need_lc=yes
11079           fi
11080           allow_undefined_flag=$lt_save_allow_undefined_flag
11081         else
11082           cat conftest.err 1>&5
11083         fi
11084         $RM conftest*
11085
11086 fi
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11088 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11089       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11090       ;;
11091     esac
11092   fi
11093   ;;
11094 esac
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11248 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11249
11250 if test "$GCC" = yes; then
11251   case $host_os in
11252     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11253     *) lt_awk_arg="/^libraries:/" ;;
11254   esac
11255   case $host_os in
11256     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11257     *) lt_sed_strip_eq="s,=/,/,g" ;;
11258   esac
11259   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11260   case $lt_search_path_spec in
11261   *\;*)
11262     # if the path contains ";" then we assume it to be the separator
11263     # otherwise default to the standard path separator (i.e. ":") - it is
11264     # assumed that no part of a normal pathname contains ";" but that should
11265     # okay in the real world where ";" in dirpaths is itself problematic.
11266     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11267     ;;
11268   *)
11269     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11270     ;;
11271   esac
11272   # Ok, now we have the path, separated by spaces, we can step through it
11273   # and add multilib dir if necessary.
11274   lt_tmp_lt_search_path_spec=
11275   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11276   for lt_sys_path in $lt_search_path_spec; do
11277     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11278       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11279     else
11280       test -d "$lt_sys_path" && \
11281         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11282     fi
11283   done
11284   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11285 BEGIN {RS=" "; FS="/|\n";} {
11286   lt_foo="";
11287   lt_count=0;
11288   for (lt_i = NF; lt_i > 0; lt_i--) {
11289     if ($lt_i != "" && $lt_i != ".") {
11290       if ($lt_i == "..") {
11291         lt_count++;
11292       } else {
11293         if (lt_count == 0) {
11294           lt_foo="/" $lt_i lt_foo;
11295         } else {
11296           lt_count--;
11297         }
11298       }
11299     }
11300   }
11301   if (lt_foo != "") { lt_freq[lt_foo]++; }
11302   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11303 }'`
11304   # AWK program above erroneously prepends '/' to C:/dos/paths
11305   # for these hosts.
11306   case $host_os in
11307     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11308       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11309   esac
11310   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11311 else
11312   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11313 fi
11314 library_names_spec=
11315 libname_spec='lib$name'
11316 soname_spec=
11317 shrext_cmds=".so"
11318 postinstall_cmds=
11319 postuninstall_cmds=
11320 finish_cmds=
11321 finish_eval=
11322 shlibpath_var=
11323 shlibpath_overrides_runpath=unknown
11324 version_type=none
11325 dynamic_linker="$host_os ld.so"
11326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11327 need_lib_prefix=unknown
11328 hardcode_into_libs=no
11329
11330 # when you set need_version to no, make sure it does not cause -set_version
11331 # flags to be left without arguments
11332 need_version=unknown
11333
11334 case $host_os in
11335 aix3*)
11336   version_type=linux # correct to gnu/linux during the next big refactor
11337   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11338   shlibpath_var=LIBPATH
11339
11340   # AIX 3 has no versioning support, so we append a major version to the name.
11341   soname_spec='${libname}${release}${shared_ext}$major'
11342   ;;
11343
11344 aix[4-9]*)
11345   version_type=linux # correct to gnu/linux during the next big refactor
11346   need_lib_prefix=no
11347   need_version=no
11348   hardcode_into_libs=yes
11349   if test "$host_cpu" = ia64; then
11350     # AIX 5 supports IA64
11351     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11352     shlibpath_var=LD_LIBRARY_PATH
11353   else
11354     # With GCC up to 2.95.x, collect2 would create an import file
11355     # for dependence libraries.  The import file would start with
11356     # the line `#! .'.  This would cause the generated library to
11357     # depend on `.', always an invalid library.  This was fixed in
11358     # development snapshots of GCC prior to 3.0.
11359     case $host_os in
11360       aix4 | aix4.[01] | aix4.[01].*)
11361       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11362            echo ' yes '
11363            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11364         :
11365       else
11366         can_build_shared=no
11367       fi
11368       ;;
11369     esac
11370     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11371     # soname into executable. Probably we can add versioning support to
11372     # collect2, so additional links can be useful in future.
11373     if test "$aix_use_runtimelinking" = yes; then
11374       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11375       # instead of lib<name>.a to let people know that these are not
11376       # typical AIX shared libraries.
11377       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378     else
11379       # We preserve .a as extension for shared libraries through AIX4.2
11380       # and later when we are not doing run time linking.
11381       library_names_spec='${libname}${release}.a $libname.a'
11382       soname_spec='${libname}${release}${shared_ext}$major'
11383     fi
11384     shlibpath_var=LIBPATH
11385   fi
11386   ;;
11387
11388 amigaos*)
11389   case $host_cpu in
11390   powerpc)
11391     # Since July 2007 AmigaOS4 officially supports .so libraries.
11392     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11394     ;;
11395   m68k)
11396     library_names_spec='$libname.ixlibrary $libname.a'
11397     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11398     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'
11399     ;;
11400   esac
11401   ;;
11402
11403 beos*)
11404   library_names_spec='${libname}${shared_ext}'
11405   dynamic_linker="$host_os ld.so"
11406   shlibpath_var=LIBRARY_PATH
11407   ;;
11408
11409 bsdi[45]*)
11410   version_type=linux # correct to gnu/linux during the next big refactor
11411   need_version=no
11412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413   soname_spec='${libname}${release}${shared_ext}$major'
11414   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11415   shlibpath_var=LD_LIBRARY_PATH
11416   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11417   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11418   # the default ld.so.conf also contains /usr/contrib/lib and
11419   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11420   # libtool to hard-code these into programs
11421   ;;
11422
11423 cygwin* | mingw* | pw32* | cegcc*)
11424   version_type=windows
11425   shrext_cmds=".dll"
11426   need_version=no
11427   need_lib_prefix=no
11428
11429   case $GCC,$cc_basename in
11430   yes,*)
11431     # gcc
11432     library_names_spec='$libname.dll.a'
11433     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11434     postinstall_cmds='base_file=`basename \${file}`~
11435       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11436       dldir=$destdir/`dirname \$dlpath`~
11437       test -d \$dldir || mkdir -p \$dldir~
11438       $install_prog $dir/$dlname \$dldir/$dlname~
11439       chmod a+x \$dldir/$dlname~
11440       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11441         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11442       fi'
11443     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11444       dlpath=$dir/\$dldll~
11445        $RM \$dlpath'
11446     shlibpath_overrides_runpath=yes
11447
11448     case $host_os in
11449     cygwin*)
11450       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11451       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11452
11453       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11454       ;;
11455     mingw* | cegcc*)
11456       # MinGW DLLs use traditional 'lib' prefix
11457       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11458       ;;
11459     pw32*)
11460       # pw32 DLLs use 'pw' prefix rather than 'lib'
11461       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11462       ;;
11463     esac
11464     dynamic_linker='Win32 ld.exe'
11465     ;;
11466
11467   *,cl*)
11468     # Native MSVC
11469     libname_spec='$name'
11470     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11471     library_names_spec='${libname}.dll.lib'
11472
11473     case $build_os in
11474     mingw*)
11475       sys_lib_search_path_spec=
11476       lt_save_ifs=$IFS
11477       IFS=';'
11478       for lt_path in $LIB
11479       do
11480         IFS=$lt_save_ifs
11481         # Let DOS variable expansion print the short 8.3 style file name.
11482         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11483         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11484       done
11485       IFS=$lt_save_ifs
11486       # Convert to MSYS style.
11487       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11488       ;;
11489     cygwin*)
11490       # Convert to unix form, then to dos form, then back to unix form
11491       # but this time dos style (no spaces!) so that the unix form looks
11492       # like /cygdrive/c/PROGRA~1:/cygdr...
11493       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11494       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11495       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11496       ;;
11497     *)
11498       sys_lib_search_path_spec="$LIB"
11499       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11500         # It is most probably a Windows format PATH.
11501         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11502       else
11503         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11504       fi
11505       # FIXME: find the short name or the path components, as spaces are
11506       # common. (e.g. "Program Files" -> "PROGRA~1")
11507       ;;
11508     esac
11509
11510     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11511     postinstall_cmds='base_file=`basename \${file}`~
11512       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11513       dldir=$destdir/`dirname \$dlpath`~
11514       test -d \$dldir || mkdir -p \$dldir~
11515       $install_prog $dir/$dlname \$dldir/$dlname'
11516     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11517       dlpath=$dir/\$dldll~
11518        $RM \$dlpath'
11519     shlibpath_overrides_runpath=yes
11520     dynamic_linker='Win32 link.exe'
11521     ;;
11522
11523   *)
11524     # Assume MSVC wrapper
11525     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11526     dynamic_linker='Win32 ld.exe'
11527     ;;
11528   esac
11529   # FIXME: first we should search . and the directory the executable is in
11530   shlibpath_var=PATH
11531   ;;
11532
11533 darwin* | rhapsody*)
11534   dynamic_linker="$host_os dyld"
11535   version_type=darwin
11536   need_lib_prefix=no
11537   need_version=no
11538   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11539   soname_spec='${libname}${release}${major}$shared_ext'
11540   shlibpath_overrides_runpath=yes
11541   shlibpath_var=DYLD_LIBRARY_PATH
11542   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11543
11544   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11545   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11546   ;;
11547
11548 dgux*)
11549   version_type=linux # correct to gnu/linux during the next big refactor
11550   need_lib_prefix=no
11551   need_version=no
11552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11553   soname_spec='${libname}${release}${shared_ext}$major'
11554   shlibpath_var=LD_LIBRARY_PATH
11555   ;;
11556
11557 freebsd* | dragonfly*)
11558   # DragonFly does not have aout.  When/if they implement a new
11559   # versioning mechanism, adjust this.
11560   if test -x /usr/bin/objformat; then
11561     objformat=`/usr/bin/objformat`
11562   else
11563     case $host_os in
11564     freebsd[23].*) objformat=aout ;;
11565     *) objformat=elf ;;
11566     esac
11567   fi
11568   version_type=freebsd-$objformat
11569   case $version_type in
11570     freebsd-elf*)
11571       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11572       need_version=no
11573       need_lib_prefix=no
11574       ;;
11575     freebsd-*)
11576       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11577       need_version=yes
11578       ;;
11579   esac
11580   shlibpath_var=LD_LIBRARY_PATH
11581   case $host_os in
11582   freebsd2.*)
11583     shlibpath_overrides_runpath=yes
11584     ;;
11585   freebsd3.[01]* | freebsdelf3.[01]*)
11586     shlibpath_overrides_runpath=yes
11587     hardcode_into_libs=yes
11588     ;;
11589   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11590   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11591     shlibpath_overrides_runpath=no
11592     hardcode_into_libs=yes
11593     ;;
11594   *) # from 4.6 on, and DragonFly
11595     shlibpath_overrides_runpath=yes
11596     hardcode_into_libs=yes
11597     ;;
11598   esac
11599   ;;
11600
11601 gnu*)
11602   version_type=linux # correct to gnu/linux during the next big refactor
11603   need_lib_prefix=no
11604   need_version=no
11605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11606   soname_spec='${libname}${release}${shared_ext}$major'
11607   shlibpath_var=LD_LIBRARY_PATH
11608   shlibpath_overrides_runpath=no
11609   hardcode_into_libs=yes
11610   ;;
11611
11612 haiku*)
11613   version_type=linux # correct to gnu/linux during the next big refactor
11614   need_lib_prefix=no
11615   need_version=no
11616   dynamic_linker="$host_os runtime_loader"
11617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11618   soname_spec='${libname}${release}${shared_ext}$major'
11619   shlibpath_var=LIBRARY_PATH
11620   shlibpath_overrides_runpath=yes
11621   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11622   hardcode_into_libs=yes
11623   ;;
11624
11625 hpux9* | hpux10* | hpux11*)
11626   # Give a soname corresponding to the major version so that dld.sl refuses to
11627   # link against other versions.
11628   version_type=sunos
11629   need_lib_prefix=no
11630   need_version=no
11631   case $host_cpu in
11632   ia64*)
11633     shrext_cmds='.so'
11634     hardcode_into_libs=yes
11635     dynamic_linker="$host_os dld.so"
11636     shlibpath_var=LD_LIBRARY_PATH
11637     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639     soname_spec='${libname}${release}${shared_ext}$major'
11640     if test "X$HPUX_IA64_MODE" = X32; then
11641       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11642     else
11643       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11644     fi
11645     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11646     ;;
11647   hppa*64*)
11648     shrext_cmds='.sl'
11649     hardcode_into_libs=yes
11650     dynamic_linker="$host_os dld.sl"
11651     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11652     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11654     soname_spec='${libname}${release}${shared_ext}$major'
11655     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11656     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11657     ;;
11658   *)
11659     shrext_cmds='.sl'
11660     dynamic_linker="$host_os dld.sl"
11661     shlibpath_var=SHLIB_PATH
11662     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11664     soname_spec='${libname}${release}${shared_ext}$major'
11665     ;;
11666   esac
11667   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11668   postinstall_cmds='chmod 555 $lib'
11669   # or fails outright, so override atomically:
11670   install_override_mode=555
11671   ;;
11672
11673 interix[3-9]*)
11674   version_type=linux # correct to gnu/linux during the next big refactor
11675   need_lib_prefix=no
11676   need_version=no
11677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11678   soname_spec='${libname}${release}${shared_ext}$major'
11679   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11680   shlibpath_var=LD_LIBRARY_PATH
11681   shlibpath_overrides_runpath=no
11682   hardcode_into_libs=yes
11683   ;;
11684
11685 irix5* | irix6* | nonstopux*)
11686   case $host_os in
11687     nonstopux*) version_type=nonstopux ;;
11688     *)
11689         if test "$lt_cv_prog_gnu_ld" = yes; then
11690                 version_type=linux # correct to gnu/linux during the next big refactor
11691         else
11692                 version_type=irix
11693         fi ;;
11694   esac
11695   need_lib_prefix=no
11696   need_version=no
11697   soname_spec='${libname}${release}${shared_ext}$major'
11698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11699   case $host_os in
11700   irix5* | nonstopux*)
11701     libsuff= shlibsuff=
11702     ;;
11703   *)
11704     case $LD in # libtool.m4 will add one of these switches to LD
11705     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11706       libsuff= shlibsuff= libmagic=32-bit;;
11707     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11708       libsuff=32 shlibsuff=N32 libmagic=N32;;
11709     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11710       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11711     *) libsuff= shlibsuff= libmagic=never-match;;
11712     esac
11713     ;;
11714   esac
11715   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11716   shlibpath_overrides_runpath=no
11717   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11718   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11719   hardcode_into_libs=yes
11720   ;;
11721
11722 # No shared lib support for Linux oldld, aout, or coff.
11723 linux*oldld* | linux*aout* | linux*coff*)
11724   dynamic_linker=no
11725   ;;
11726
11727 # This must be glibc/ELF.
11728 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11729   version_type=linux # correct to gnu/linux during the next big refactor
11730   need_lib_prefix=no
11731   need_version=no
11732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11733   soname_spec='${libname}${release}${shared_ext}$major'
11734   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11735   shlibpath_var=LD_LIBRARY_PATH
11736   shlibpath_overrides_runpath=no
11737
11738   # Some binutils ld are patched to set DT_RUNPATH
11739   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11740   $as_echo_n "(cached) " >&6
11741 else
11742   lt_cv_shlibpath_overrides_runpath=no
11743     save_LDFLAGS=$LDFLAGS
11744     save_libdir=$libdir
11745     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11746          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11747     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h.  */
11749
11750 int
11751 main ()
11752 {
11753
11754   ;
11755   return 0;
11756 }
11757 _ACEOF
11758 if ac_fn_c_try_link "$LINENO"; then :
11759   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11760   lt_cv_shlibpath_overrides_runpath=yes
11761 fi
11762 fi
11763 rm -f core conftest.err conftest.$ac_objext \
11764     conftest$ac_exeext conftest.$ac_ext
11765     LDFLAGS=$save_LDFLAGS
11766     libdir=$save_libdir
11767
11768 fi
11769
11770   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11771
11772   # This implies no fast_install, which is unacceptable.
11773   # Some rework will be needed to allow for fast_install
11774   # before this can be enabled.
11775   hardcode_into_libs=yes
11776
11777   # Append ld.so.conf contents to the search path
11778   if test -f /etc/ld.so.conf; then
11779     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' ' '`
11780     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11781   fi
11782
11783   # We used to test for /lib/ld.so.1 and disable shared libraries on
11784   # powerpc, because MkLinux only supported shared libraries with the
11785   # GNU dynamic linker.  Since this was broken with cross compilers,
11786   # most powerpc-linux boxes support dynamic linking these days and
11787   # people can always --disable-shared, the test was removed, and we
11788   # assume the GNU/Linux dynamic linker is in use.
11789   dynamic_linker='GNU/Linux ld.so'
11790   ;;
11791
11792 netbsd*)
11793   version_type=sunos
11794   need_lib_prefix=no
11795   need_version=no
11796   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11797     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11798     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11799     dynamic_linker='NetBSD (a.out) ld.so'
11800   else
11801     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11802     soname_spec='${libname}${release}${shared_ext}$major'
11803     dynamic_linker='NetBSD ld.elf_so'
11804   fi
11805   shlibpath_var=LD_LIBRARY_PATH
11806   shlibpath_overrides_runpath=yes
11807   hardcode_into_libs=yes
11808   ;;
11809
11810 newsos6)
11811   version_type=linux # correct to gnu/linux during the next big refactor
11812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813   shlibpath_var=LD_LIBRARY_PATH
11814   shlibpath_overrides_runpath=yes
11815   ;;
11816
11817 *nto* | *qnx*)
11818   version_type=qnx
11819   need_lib_prefix=no
11820   need_version=no
11821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822   soname_spec='${libname}${release}${shared_ext}$major'
11823   shlibpath_var=LD_LIBRARY_PATH
11824   shlibpath_overrides_runpath=no
11825   hardcode_into_libs=yes
11826   dynamic_linker='ldqnx.so'
11827   ;;
11828
11829 openbsd*)
11830   version_type=sunos
11831   sys_lib_dlsearch_path_spec="/usr/lib"
11832   need_lib_prefix=no
11833   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11834   case $host_os in
11835     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11836     *)                          need_version=no  ;;
11837   esac
11838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11839   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11840   shlibpath_var=LD_LIBRARY_PATH
11841   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11842     case $host_os in
11843       openbsd2.[89] | openbsd2.[89].*)
11844         shlibpath_overrides_runpath=no
11845         ;;
11846       *)
11847         shlibpath_overrides_runpath=yes
11848         ;;
11849       esac
11850   else
11851     shlibpath_overrides_runpath=yes
11852   fi
11853   ;;
11854
11855 os2*)
11856   libname_spec='$name'
11857   shrext_cmds=".dll"
11858   need_lib_prefix=no
11859   library_names_spec='$libname${shared_ext} $libname.a'
11860   dynamic_linker='OS/2 ld.exe'
11861   shlibpath_var=LIBPATH
11862   ;;
11863
11864 osf3* | osf4* | osf5*)
11865   version_type=osf
11866   need_lib_prefix=no
11867   need_version=no
11868   soname_spec='${libname}${release}${shared_ext}$major'
11869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11870   shlibpath_var=LD_LIBRARY_PATH
11871   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11872   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11873   ;;
11874
11875 rdos*)
11876   dynamic_linker=no
11877   ;;
11878
11879 solaris*)
11880   version_type=linux # correct to gnu/linux during the next big refactor
11881   need_lib_prefix=no
11882   need_version=no
11883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11884   soname_spec='${libname}${release}${shared_ext}$major'
11885   shlibpath_var=LD_LIBRARY_PATH
11886   shlibpath_overrides_runpath=yes
11887   hardcode_into_libs=yes
11888   # ldd complains unless libraries are executable
11889   postinstall_cmds='chmod +x $lib'
11890   ;;
11891
11892 sunos4*)
11893   version_type=sunos
11894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11895   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11896   shlibpath_var=LD_LIBRARY_PATH
11897   shlibpath_overrides_runpath=yes
11898   if test "$with_gnu_ld" = yes; then
11899     need_lib_prefix=no
11900   fi
11901   need_version=yes
11902   ;;
11903
11904 sysv4 | sysv4.3*)
11905   version_type=linux # correct to gnu/linux during the next big refactor
11906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11907   soname_spec='${libname}${release}${shared_ext}$major'
11908   shlibpath_var=LD_LIBRARY_PATH
11909   case $host_vendor in
11910     sni)
11911       shlibpath_overrides_runpath=no
11912       need_lib_prefix=no
11913       runpath_var=LD_RUN_PATH
11914       ;;
11915     siemens)
11916       need_lib_prefix=no
11917       ;;
11918     motorola)
11919       need_lib_prefix=no
11920       need_version=no
11921       shlibpath_overrides_runpath=no
11922       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11923       ;;
11924   esac
11925   ;;
11926
11927 sysv4*MP*)
11928   if test -d /usr/nec ;then
11929     version_type=linux # correct to gnu/linux during the next big refactor
11930     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11931     soname_spec='$libname${shared_ext}.$major'
11932     shlibpath_var=LD_LIBRARY_PATH
11933   fi
11934   ;;
11935
11936 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11937   version_type=freebsd-elf
11938   need_lib_prefix=no
11939   need_version=no
11940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11941   soname_spec='${libname}${release}${shared_ext}$major'
11942   shlibpath_var=LD_LIBRARY_PATH
11943   shlibpath_overrides_runpath=yes
11944   hardcode_into_libs=yes
11945   if test "$with_gnu_ld" = yes; then
11946     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11947   else
11948     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11949     case $host_os in
11950       sco3.2v5*)
11951         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11952         ;;
11953     esac
11954   fi
11955   sys_lib_dlsearch_path_spec='/usr/lib'
11956   ;;
11957
11958 tpf*)
11959   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11960   version_type=linux # correct to gnu/linux during the next big refactor
11961   need_lib_prefix=no
11962   need_version=no
11963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11964   shlibpath_var=LD_LIBRARY_PATH
11965   shlibpath_overrides_runpath=no
11966   hardcode_into_libs=yes
11967   ;;
11968
11969 uts4*)
11970   version_type=linux # correct to gnu/linux during the next big refactor
11971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11972   soname_spec='${libname}${release}${shared_ext}$major'
11973   shlibpath_var=LD_LIBRARY_PATH
11974   ;;
11975
11976 *)
11977   dynamic_linker=no
11978   ;;
11979 esac
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11981 $as_echo "$dynamic_linker" >&6; }
11982 test "$dynamic_linker" = no && can_build_shared=no
11983
11984 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11985 if test "$GCC" = yes; then
11986   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11987 fi
11988
11989 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11990   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11991 fi
11992 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11993   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11994 fi
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12088 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12089 hardcode_action=
12090 if test -n "$hardcode_libdir_flag_spec" ||
12091    test -n "$runpath_var" ||
12092    test "X$hardcode_automatic" = "Xyes" ; then
12093
12094   # We can hardcode non-existent directories.
12095   if test "$hardcode_direct" != no &&
12096      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12097      # have to relink, otherwise we might link with an installed library
12098      # when we should be linking with a yet-to-be-installed one
12099      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12100      test "$hardcode_minus_L" != no; then
12101     # Linking always hardcodes the temporary library directory.
12102     hardcode_action=relink
12103   else
12104     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12105     hardcode_action=immediate
12106   fi
12107 else
12108   # We cannot hardcode anything, or else we can only hardcode existing
12109   # directories.
12110   hardcode_action=unsupported
12111 fi
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12113 $as_echo "$hardcode_action" >&6; }
12114
12115 if test "$hardcode_action" = relink ||
12116    test "$inherit_rpath" = yes; then
12117   # Fast installation is not supported
12118   enable_fast_install=no
12119 elif test "$shlibpath_overrides_runpath" = yes ||
12120      test "$enable_shared" = no; then
12121   # Fast installation is not necessary
12122   enable_fast_install=needless
12123 fi
12124
12125
12126
12127
12128
12129
12130   if test "x$enable_dlopen" != xyes; then
12131   enable_dlopen=unknown
12132   enable_dlopen_self=unknown
12133   enable_dlopen_self_static=unknown
12134 else
12135   lt_cv_dlopen=no
12136   lt_cv_dlopen_libs=
12137
12138   case $host_os in
12139   beos*)
12140     lt_cv_dlopen="load_add_on"
12141     lt_cv_dlopen_libs=
12142     lt_cv_dlopen_self=yes
12143     ;;
12144
12145   mingw* | pw32* | cegcc*)
12146     lt_cv_dlopen="LoadLibrary"
12147     lt_cv_dlopen_libs=
12148     ;;
12149
12150   cygwin*)
12151     lt_cv_dlopen="dlopen"
12152     lt_cv_dlopen_libs=
12153     ;;
12154
12155   darwin*)
12156   # if libdl is installed we need to link against it
12157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12158 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12159 if ${ac_cv_lib_dl_dlopen+:} false; then :
12160   $as_echo_n "(cached) " >&6
12161 else
12162   ac_check_lib_save_LIBS=$LIBS
12163 LIBS="-ldl  $LIBS"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h.  */
12166
12167 /* Override any GCC internal prototype to avoid an error.
12168    Use char because int might match the return type of a GCC
12169    builtin and then its argument prototype would still apply.  */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char dlopen ();
12174 int
12175 main ()
12176 {
12177 return dlopen ();
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 if ac_fn_c_try_link "$LINENO"; then :
12183   ac_cv_lib_dl_dlopen=yes
12184 else
12185   ac_cv_lib_dl_dlopen=no
12186 fi
12187 rm -f core conftest.err conftest.$ac_objext \
12188     conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12190 fi
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12192 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12193 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12194   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12195 else
12196
12197     lt_cv_dlopen="dyld"
12198     lt_cv_dlopen_libs=
12199     lt_cv_dlopen_self=yes
12200
12201 fi
12202
12203     ;;
12204
12205   *)
12206     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12207 if test "x$ac_cv_func_shl_load" = xyes; then :
12208   lt_cv_dlopen="shl_load"
12209 else
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12211 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12212 if ${ac_cv_lib_dld_shl_load+:} false; then :
12213   $as_echo_n "(cached) " >&6
12214 else
12215   ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-ldld  $LIBS"
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h.  */
12219
12220 /* Override any GCC internal prototype to avoid an error.
12221    Use char because int might match the return type of a GCC
12222    builtin and then its argument prototype would still apply.  */
12223 #ifdef __cplusplus
12224 extern "C"
12225 #endif
12226 char shl_load ();
12227 int
12228 main ()
12229 {
12230 return shl_load ();
12231   ;
12232   return 0;
12233 }
12234 _ACEOF
12235 if ac_fn_c_try_link "$LINENO"; then :
12236   ac_cv_lib_dld_shl_load=yes
12237 else
12238   ac_cv_lib_dld_shl_load=no
12239 fi
12240 rm -f core conftest.err conftest.$ac_objext \
12241     conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12243 fi
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12245 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12246 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12247   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12248 else
12249   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12250 if test "x$ac_cv_func_dlopen" = xyes; then :
12251   lt_cv_dlopen="dlopen"
12252 else
12253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12255 if ${ac_cv_lib_dl_dlopen+:} false; then :
12256   $as_echo_n "(cached) " >&6
12257 else
12258   ac_check_lib_save_LIBS=$LIBS
12259 LIBS="-ldl  $LIBS"
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h.  */
12262
12263 /* Override any GCC internal prototype to avoid an error.
12264    Use char because int might match the return type of a GCC
12265    builtin and then its argument prototype would still apply.  */
12266 #ifdef __cplusplus
12267 extern "C"
12268 #endif
12269 char dlopen ();
12270 int
12271 main ()
12272 {
12273 return dlopen ();
12274   ;
12275   return 0;
12276 }
12277 _ACEOF
12278 if ac_fn_c_try_link "$LINENO"; then :
12279   ac_cv_lib_dl_dlopen=yes
12280 else
12281   ac_cv_lib_dl_dlopen=no
12282 fi
12283 rm -f core conftest.err conftest.$ac_objext \
12284     conftest$ac_exeext conftest.$ac_ext
12285 LIBS=$ac_check_lib_save_LIBS
12286 fi
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12288 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12289 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12290   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12291 else
12292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12293 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12294 if ${ac_cv_lib_svld_dlopen+:} false; then :
12295   $as_echo_n "(cached) " >&6
12296 else
12297   ac_check_lib_save_LIBS=$LIBS
12298 LIBS="-lsvld  $LIBS"
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h.  */
12301
12302 /* Override any GCC internal prototype to avoid an error.
12303    Use char because int might match the return type of a GCC
12304    builtin and then its argument prototype would still apply.  */
12305 #ifdef __cplusplus
12306 extern "C"
12307 #endif
12308 char dlopen ();
12309 int
12310 main ()
12311 {
12312 return dlopen ();
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 if ac_fn_c_try_link "$LINENO"; then :
12318   ac_cv_lib_svld_dlopen=yes
12319 else
12320   ac_cv_lib_svld_dlopen=no
12321 fi
12322 rm -f core conftest.err conftest.$ac_objext \
12323     conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12325 fi
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12327 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12328 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12329   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12330 else
12331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12332 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12333 if ${ac_cv_lib_dld_dld_link+:} false; then :
12334   $as_echo_n "(cached) " >&6
12335 else
12336   ac_check_lib_save_LIBS=$LIBS
12337 LIBS="-ldld  $LIBS"
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h.  */
12340
12341 /* Override any GCC internal prototype to avoid an error.
12342    Use char because int might match the return type of a GCC
12343    builtin and then its argument prototype would still apply.  */
12344 #ifdef __cplusplus
12345 extern "C"
12346 #endif
12347 char dld_link ();
12348 int
12349 main ()
12350 {
12351 return dld_link ();
12352   ;
12353   return 0;
12354 }
12355 _ACEOF
12356 if ac_fn_c_try_link "$LINENO"; then :
12357   ac_cv_lib_dld_dld_link=yes
12358 else
12359   ac_cv_lib_dld_dld_link=no
12360 fi
12361 rm -f core conftest.err conftest.$ac_objext \
12362     conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12364 fi
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12366 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12367 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12368   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12369 fi
12370
12371
12372 fi
12373
12374
12375 fi
12376
12377
12378 fi
12379
12380
12381 fi
12382
12383
12384 fi
12385
12386     ;;
12387   esac
12388
12389   if test "x$lt_cv_dlopen" != xno; then
12390     enable_dlopen=yes
12391   else
12392     enable_dlopen=no
12393   fi
12394
12395   case $lt_cv_dlopen in
12396   dlopen)
12397     save_CPPFLAGS="$CPPFLAGS"
12398     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12399
12400     save_LDFLAGS="$LDFLAGS"
12401     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12402
12403     save_LIBS="$LIBS"
12404     LIBS="$lt_cv_dlopen_libs $LIBS"
12405
12406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12407 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12408 if ${lt_cv_dlopen_self+:} false; then :
12409   $as_echo_n "(cached) " >&6
12410 else
12411           if test "$cross_compiling" = yes; then :
12412   lt_cv_dlopen_self=cross
12413 else
12414   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12415   lt_status=$lt_dlunknown
12416   cat > conftest.$ac_ext <<_LT_EOF
12417 #line $LINENO "configure"
12418 #include "confdefs.h"
12419
12420 #if HAVE_DLFCN_H
12421 #include <dlfcn.h>
12422 #endif
12423
12424 #include <stdio.h>
12425
12426 #ifdef RTLD_GLOBAL
12427 #  define LT_DLGLOBAL           RTLD_GLOBAL
12428 #else
12429 #  ifdef DL_GLOBAL
12430 #    define LT_DLGLOBAL         DL_GLOBAL
12431 #  else
12432 #    define LT_DLGLOBAL         0
12433 #  endif
12434 #endif
12435
12436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12437    find out it does not work in some platform. */
12438 #ifndef LT_DLLAZY_OR_NOW
12439 #  ifdef RTLD_LAZY
12440 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12441 #  else
12442 #    ifdef DL_LAZY
12443 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12444 #    else
12445 #      ifdef RTLD_NOW
12446 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12447 #      else
12448 #        ifdef DL_NOW
12449 #          define LT_DLLAZY_OR_NOW      DL_NOW
12450 #        else
12451 #          define LT_DLLAZY_OR_NOW      0
12452 #        endif
12453 #      endif
12454 #    endif
12455 #  endif
12456 #endif
12457
12458 /* When -fvisbility=hidden is used, assume the code has been annotated
12459    correspondingly for the symbols needed.  */
12460 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12461 int fnord () __attribute__((visibility("default")));
12462 #endif
12463
12464 int fnord () { return 42; }
12465 int main ()
12466 {
12467   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12468   int status = $lt_dlunknown;
12469
12470   if (self)
12471     {
12472       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12473       else
12474         {
12475           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12476           else puts (dlerror ());
12477         }
12478       /* dlclose (self); */
12479     }
12480   else
12481     puts (dlerror ());
12482
12483   return status;
12484 }
12485 _LT_EOF
12486   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12487   (eval $ac_link) 2>&5
12488   ac_status=$?
12489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12490   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12491     (./conftest; exit; ) >&5 2>/dev/null
12492     lt_status=$?
12493     case x$lt_status in
12494       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12495       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12496       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12497     esac
12498   else :
12499     # compilation failed
12500     lt_cv_dlopen_self=no
12501   fi
12502 fi
12503 rm -fr conftest*
12504
12505
12506 fi
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12508 $as_echo "$lt_cv_dlopen_self" >&6; }
12509
12510     if test "x$lt_cv_dlopen_self" = xyes; then
12511       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12512       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12513 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12514 if ${lt_cv_dlopen_self_static+:} false; then :
12515   $as_echo_n "(cached) " >&6
12516 else
12517           if test "$cross_compiling" = yes; then :
12518   lt_cv_dlopen_self_static=cross
12519 else
12520   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12521   lt_status=$lt_dlunknown
12522   cat > conftest.$ac_ext <<_LT_EOF
12523 #line $LINENO "configure"
12524 #include "confdefs.h"
12525
12526 #if HAVE_DLFCN_H
12527 #include <dlfcn.h>
12528 #endif
12529
12530 #include <stdio.h>
12531
12532 #ifdef RTLD_GLOBAL
12533 #  define LT_DLGLOBAL           RTLD_GLOBAL
12534 #else
12535 #  ifdef DL_GLOBAL
12536 #    define LT_DLGLOBAL         DL_GLOBAL
12537 #  else
12538 #    define LT_DLGLOBAL         0
12539 #  endif
12540 #endif
12541
12542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12543    find out it does not work in some platform. */
12544 #ifndef LT_DLLAZY_OR_NOW
12545 #  ifdef RTLD_LAZY
12546 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12547 #  else
12548 #    ifdef DL_LAZY
12549 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12550 #    else
12551 #      ifdef RTLD_NOW
12552 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12553 #      else
12554 #        ifdef DL_NOW
12555 #          define LT_DLLAZY_OR_NOW      DL_NOW
12556 #        else
12557 #          define LT_DLLAZY_OR_NOW      0
12558 #        endif
12559 #      endif
12560 #    endif
12561 #  endif
12562 #endif
12563
12564 /* When -fvisbility=hidden is used, assume the code has been annotated
12565    correspondingly for the symbols needed.  */
12566 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12567 int fnord () __attribute__((visibility("default")));
12568 #endif
12569
12570 int fnord () { return 42; }
12571 int main ()
12572 {
12573   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12574   int status = $lt_dlunknown;
12575
12576   if (self)
12577     {
12578       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12579       else
12580         {
12581           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12582           else puts (dlerror ());
12583         }
12584       /* dlclose (self); */
12585     }
12586   else
12587     puts (dlerror ());
12588
12589   return status;
12590 }
12591 _LT_EOF
12592   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12593   (eval $ac_link) 2>&5
12594   ac_status=$?
12595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12596   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12597     (./conftest; exit; ) >&5 2>/dev/null
12598     lt_status=$?
12599     case x$lt_status in
12600       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12601       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12602       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12603     esac
12604   else :
12605     # compilation failed
12606     lt_cv_dlopen_self_static=no
12607   fi
12608 fi
12609 rm -fr conftest*
12610
12611
12612 fi
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12614 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12615     fi
12616
12617     CPPFLAGS="$save_CPPFLAGS"
12618     LDFLAGS="$save_LDFLAGS"
12619     LIBS="$save_LIBS"
12620     ;;
12621   esac
12622
12623   case $lt_cv_dlopen_self in
12624   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12625   *) enable_dlopen_self=unknown ;;
12626   esac
12627
12628   case $lt_cv_dlopen_self_static in
12629   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12630   *) enable_dlopen_self_static=unknown ;;
12631   esac
12632 fi
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650 striplib=
12651 old_striplib=
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12653 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12654 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12655   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12656   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12658 $as_echo "yes" >&6; }
12659 else
12660 # FIXME - insert some real tests, host_os isn't really good enough
12661   case $host_os in
12662   darwin*)
12663     if test -n "$STRIP" ; then
12664       striplib="$STRIP -x"
12665       old_striplib="$STRIP -S"
12666       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12667 $as_echo "yes" >&6; }
12668     else
12669       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 $as_echo "no" >&6; }
12671     fi
12672     ;;
12673   *)
12674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675 $as_echo "no" >&6; }
12676     ;;
12677   esac
12678 fi
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691   # Report which library types will actually be built
12692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12693 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12695 $as_echo "$can_build_shared" >&6; }
12696
12697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12698 $as_echo_n "checking whether to build shared libraries... " >&6; }
12699   test "$can_build_shared" = "no" && enable_shared=no
12700
12701   # On AIX, shared libraries and static libraries use the same namespace, and
12702   # are all built from PIC.
12703   case $host_os in
12704   aix3*)
12705     test "$enable_shared" = yes && enable_static=no
12706     if test -n "$RANLIB"; then
12707       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12708       postinstall_cmds='$RANLIB $lib'
12709     fi
12710     ;;
12711
12712   aix[4-9]*)
12713     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12714       test "$enable_shared" = yes && enable_static=no
12715     fi
12716     ;;
12717   esac
12718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12719 $as_echo "$enable_shared" >&6; }
12720
12721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12722 $as_echo_n "checking whether to build static libraries... " >&6; }
12723   # Make sure either enable_shared or enable_static is yes.
12724   test "$enable_shared" = yes || enable_static=yes
12725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12726 $as_echo "$enable_static" >&6; }
12727
12728
12729
12730
12731 fi
12732 ac_ext=c
12733 ac_cpp='$CPP $CPPFLAGS'
12734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12737
12738 CC="$lt_save_CC"
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754         ac_config_commands="$ac_config_commands libtool"
12755
12756
12757
12758
12759 # Only expand once:
12760
12761
12762
12763
12764
12765
12766
12767
12768 # configuration file -- stay in 8.3 limit
12769 #
12770 # since #undef doesn't survive in configuration header files we replace
12771 # `/undef' with `#undef' after creating the output file
12772
12773 ac_config_headers="$ac_config_headers ftconfig.h:ftconfig.in"
12774
12775
12776 # create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
12777 # and `builds/unix/unix-cc.mk' that will be used by the build system
12778 #
12779 ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in freetype-config freetype2.pc:freetype2.in"
12780
12781
12782 # re-generate the Jamfile to use libtool now
12783 #
12784 # AC_CONFIG_FILES([../../Jamfile:../../Jamfile.in])
12785
12786 cat >confcache <<\_ACEOF
12787 # This file is a shell script that caches the results of configure
12788 # tests run on this system so they can be shared between configure
12789 # scripts and configure runs, see configure's option --config-cache.
12790 # It is not useful on other systems.  If it contains results you don't
12791 # want to keep, you may remove or edit it.
12792 #
12793 # config.status only pays attention to the cache file if you give it
12794 # the --recheck option to rerun configure.
12795 #
12796 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12797 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12798 # following values.
12799
12800 _ACEOF
12801
12802 # The following way of writing the cache mishandles newlines in values,
12803 # but we know of no workaround that is simple, portable, and efficient.
12804 # So, we kill variables containing newlines.
12805 # Ultrix sh set writes to stderr and can't be redirected directly,
12806 # and sets the high bit in the cache file unless we assign to the vars.
12807 (
12808   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12809     eval ac_val=\$$ac_var
12810     case $ac_val in #(
12811     *${as_nl}*)
12812       case $ac_var in #(
12813       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12814 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12815       esac
12816       case $ac_var in #(
12817       _ | IFS | as_nl) ;; #(
12818       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12819       *) { eval $ac_var=; unset $ac_var;} ;;
12820       esac ;;
12821     esac
12822   done
12823
12824   (set) 2>&1 |
12825     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12826     *${as_nl}ac_space=\ *)
12827       # `set' does not quote correctly, so add quotes: double-quote
12828       # substitution turns \\\\ into \\, and sed turns \\ into \.
12829       sed -n \
12830         "s/'/'\\\\''/g;
12831           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12832       ;; #(
12833     *)
12834       # `set' quotes correctly as required by POSIX, so do not add quotes.
12835       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12836       ;;
12837     esac |
12838     sort
12839 ) |
12840   sed '
12841      /^ac_cv_env_/b end
12842      t clear
12843      :clear
12844      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12845      t end
12846      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12847      :end' >>confcache
12848 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12849   if test -w "$cache_file"; then
12850     if test "x$cache_file" != "x/dev/null"; then
12851       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12852 $as_echo "$as_me: updating cache $cache_file" >&6;}
12853       if test ! -f "$cache_file" || test -h "$cache_file"; then
12854         cat confcache >"$cache_file"
12855       else
12856         case $cache_file in #(
12857         */* | ?:*)
12858           mv -f confcache "$cache_file"$$ &&
12859           mv -f "$cache_file"$$ "$cache_file" ;; #(
12860         *)
12861           mv -f confcache "$cache_file" ;;
12862         esac
12863       fi
12864     fi
12865   else
12866     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12867 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12868   fi
12869 fi
12870 rm -f confcache
12871
12872 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12873 # Let make expand exec_prefix.
12874 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12875
12876 DEFS=-DHAVE_CONFIG_H
12877
12878 ac_libobjs=
12879 ac_ltlibobjs=
12880 U=
12881 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12882   # 1. Remove the extension, and $U if already installed.
12883   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12884   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12885   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12886   #    will be set to the directory where LIBOBJS objects are built.
12887   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12888   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12889 done
12890 LIBOBJS=$ac_libobjs
12891
12892 LTLIBOBJS=$ac_ltlibobjs
12893
12894
12895
12896 : "${CONFIG_STATUS=./config.status}"
12897 ac_write_fail=0
12898 ac_clean_files_save=$ac_clean_files
12899 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12901 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12902 as_write_fail=0
12903 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12904 #! $SHELL
12905 # Generated by $as_me.
12906 # Run this file to recreate the current configuration.
12907 # Compiler output produced by configure, useful for debugging
12908 # configure, is in config.log if it exists.
12909
12910 debug=false
12911 ac_cs_recheck=false
12912 ac_cs_silent=false
12913
12914 SHELL=\${CONFIG_SHELL-$SHELL}
12915 export SHELL
12916 _ASEOF
12917 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12918 ## -------------------- ##
12919 ## M4sh Initialization. ##
12920 ## -------------------- ##
12921
12922 # Be more Bourne compatible
12923 DUALCASE=1; export DUALCASE # for MKS sh
12924 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12925   emulate sh
12926   NULLCMD=:
12927   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12928   # is contrary to our usage.  Disable this feature.
12929   alias -g '${1+"$@"}'='"$@"'
12930   setopt NO_GLOB_SUBST
12931 else
12932   case `(set -o) 2>/dev/null` in #(
12933   *posix*) :
12934     set -o posix ;; #(
12935   *) :
12936      ;;
12937 esac
12938 fi
12939
12940
12941 as_nl='
12942 '
12943 export as_nl
12944 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12945 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12946 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12947 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12948 # Prefer a ksh shell builtin over an external printf program on Solaris,
12949 # but without wasting forks for bash or zsh.
12950 if test -z "$BASH_VERSION$ZSH_VERSION" \
12951     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12952   as_echo='print -r --'
12953   as_echo_n='print -rn --'
12954 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12955   as_echo='printf %s\n'
12956   as_echo_n='printf %s'
12957 else
12958   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12959     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12960     as_echo_n='/usr/ucb/echo -n'
12961   else
12962     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12963     as_echo_n_body='eval
12964       arg=$1;
12965       case $arg in #(
12966       *"$as_nl"*)
12967         expr "X$arg" : "X\\(.*\\)$as_nl";
12968         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12969       esac;
12970       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12971     '
12972     export as_echo_n_body
12973     as_echo_n='sh -c $as_echo_n_body as_echo'
12974   fi
12975   export as_echo_body
12976   as_echo='sh -c $as_echo_body as_echo'
12977 fi
12978
12979 # The user is always right.
12980 if test "${PATH_SEPARATOR+set}" != set; then
12981   PATH_SEPARATOR=:
12982   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12983     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12984       PATH_SEPARATOR=';'
12985   }
12986 fi
12987
12988
12989 # IFS
12990 # We need space, tab and new line, in precisely that order.  Quoting is
12991 # there to prevent editors from complaining about space-tab.
12992 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12993 # splitting by setting IFS to empty value.)
12994 IFS=" ""        $as_nl"
12995
12996 # Find who we are.  Look in the path if we contain no directory separator.
12997 as_myself=
12998 case $0 in #((
12999   *[\\/]* ) as_myself=$0 ;;
13000   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001 for as_dir in $PATH
13002 do
13003   IFS=$as_save_IFS
13004   test -z "$as_dir" && as_dir=.
13005     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13006   done
13007 IFS=$as_save_IFS
13008
13009      ;;
13010 esac
13011 # We did not find ourselves, most probably we were run as `sh COMMAND'
13012 # in which case we are not to be found in the path.
13013 if test "x$as_myself" = x; then
13014   as_myself=$0
13015 fi
13016 if test ! -f "$as_myself"; then
13017   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13018   exit 1
13019 fi
13020
13021 # Unset variables that we do not need and which cause bugs (e.g. in
13022 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13023 # suppresses any "Segmentation fault" message there.  '((' could
13024 # trigger a bug in pdksh 5.2.14.
13025 for as_var in BASH_ENV ENV MAIL MAILPATH
13026 do eval test x\${$as_var+set} = xset \
13027   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13028 done
13029 PS1='$ '
13030 PS2='> '
13031 PS4='+ '
13032
13033 # NLS nuisances.
13034 LC_ALL=C
13035 export LC_ALL
13036 LANGUAGE=C
13037 export LANGUAGE
13038
13039 # CDPATH.
13040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13041
13042
13043 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13044 # ----------------------------------------
13045 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13046 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13047 # script with STATUS, using 1 if that was 0.
13048 as_fn_error ()
13049 {
13050   as_status=$1; test $as_status -eq 0 && as_status=1
13051   if test "$4"; then
13052     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13053     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13054   fi
13055   $as_echo "$as_me: error: $2" >&2
13056   as_fn_exit $as_status
13057 } # as_fn_error
13058
13059
13060 # as_fn_set_status STATUS
13061 # -----------------------
13062 # Set $? to STATUS, without forking.
13063 as_fn_set_status ()
13064 {
13065   return $1
13066 } # as_fn_set_status
13067
13068 # as_fn_exit STATUS
13069 # -----------------
13070 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13071 as_fn_exit ()
13072 {
13073   set +e
13074   as_fn_set_status $1
13075   exit $1
13076 } # as_fn_exit
13077
13078 # as_fn_unset VAR
13079 # ---------------
13080 # Portably unset VAR.
13081 as_fn_unset ()
13082 {
13083   { eval $1=; unset $1;}
13084 }
13085 as_unset=as_fn_unset
13086 # as_fn_append VAR VALUE
13087 # ----------------------
13088 # Append the text in VALUE to the end of the definition contained in VAR. Take
13089 # advantage of any shell optimizations that allow amortized linear growth over
13090 # repeated appends, instead of the typical quadratic growth present in naive
13091 # implementations.
13092 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13093   eval 'as_fn_append ()
13094   {
13095     eval $1+=\$2
13096   }'
13097 else
13098   as_fn_append ()
13099   {
13100     eval $1=\$$1\$2
13101   }
13102 fi # as_fn_append
13103
13104 # as_fn_arith ARG...
13105 # ------------------
13106 # Perform arithmetic evaluation on the ARGs, and store the result in the
13107 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13108 # must be portable across $(()) and expr.
13109 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13110   eval 'as_fn_arith ()
13111   {
13112     as_val=$(( $* ))
13113   }'
13114 else
13115   as_fn_arith ()
13116   {
13117     as_val=`expr "$@" || test $? -eq 1`
13118   }
13119 fi # as_fn_arith
13120
13121
13122 if expr a : '\(a\)' >/dev/null 2>&1 &&
13123    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13124   as_expr=expr
13125 else
13126   as_expr=false
13127 fi
13128
13129 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13130   as_basename=basename
13131 else
13132   as_basename=false
13133 fi
13134
13135 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13136   as_dirname=dirname
13137 else
13138   as_dirname=false
13139 fi
13140
13141 as_me=`$as_basename -- "$0" ||
13142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13143          X"$0" : 'X\(//\)$' \| \
13144          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13145 $as_echo X/"$0" |
13146     sed '/^.*\/\([^/][^/]*\)\/*$/{
13147             s//\1/
13148             q
13149           }
13150           /^X\/\(\/\/\)$/{
13151             s//\1/
13152             q
13153           }
13154           /^X\/\(\/\).*/{
13155             s//\1/
13156             q
13157           }
13158           s/.*/./; q'`
13159
13160 # Avoid depending upon Character Ranges.
13161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13164 as_cr_digits='0123456789'
13165 as_cr_alnum=$as_cr_Letters$as_cr_digits
13166
13167 ECHO_C= ECHO_N= ECHO_T=
13168 case `echo -n x` in #(((((
13169 -n*)
13170   case `echo 'xy\c'` in
13171   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13172   xy)  ECHO_C='\c';;
13173   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13174        ECHO_T=' ';;
13175   esac;;
13176 *)
13177   ECHO_N='-n';;
13178 esac
13179
13180 rm -f conf$$ conf$$.exe conf$$.file
13181 if test -d conf$$.dir; then
13182   rm -f conf$$.dir/conf$$.file
13183 else
13184   rm -f conf$$.dir
13185   mkdir conf$$.dir 2>/dev/null
13186 fi
13187 if (echo >conf$$.file) 2>/dev/null; then
13188   if ln -s conf$$.file conf$$ 2>/dev/null; then
13189     as_ln_s='ln -s'
13190     # ... but there are two gotchas:
13191     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13192     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13193     # In both cases, we have to default to `cp -p'.
13194     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13195       as_ln_s='cp -p'
13196   elif ln conf$$.file conf$$ 2>/dev/null; then
13197     as_ln_s=ln
13198   else
13199     as_ln_s='cp -p'
13200   fi
13201 else
13202   as_ln_s='cp -p'
13203 fi
13204 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13205 rmdir conf$$.dir 2>/dev/null
13206
13207
13208 # as_fn_mkdir_p
13209 # -------------
13210 # Create "$as_dir" as a directory, including parents if necessary.
13211 as_fn_mkdir_p ()
13212 {
13213
13214   case $as_dir in #(
13215   -*) as_dir=./$as_dir;;
13216   esac
13217   test -d "$as_dir" || eval $as_mkdir_p || {
13218     as_dirs=
13219     while :; do
13220       case $as_dir in #(
13221       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13222       *) as_qdir=$as_dir;;
13223       esac
13224       as_dirs="'$as_qdir' $as_dirs"
13225       as_dir=`$as_dirname -- "$as_dir" ||
13226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13227          X"$as_dir" : 'X\(//\)[^/]' \| \
13228          X"$as_dir" : 'X\(//\)$' \| \
13229          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13230 $as_echo X"$as_dir" |
13231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13232             s//\1/
13233             q
13234           }
13235           /^X\(\/\/\)[^/].*/{
13236             s//\1/
13237             q
13238           }
13239           /^X\(\/\/\)$/{
13240             s//\1/
13241             q
13242           }
13243           /^X\(\/\).*/{
13244             s//\1/
13245             q
13246           }
13247           s/.*/./; q'`
13248       test -d "$as_dir" && break
13249     done
13250     test -z "$as_dirs" || eval "mkdir $as_dirs"
13251   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13252
13253
13254 } # as_fn_mkdir_p
13255 if mkdir -p . 2>/dev/null; then
13256   as_mkdir_p='mkdir -p "$as_dir"'
13257 else
13258   test -d ./-p && rmdir ./-p
13259   as_mkdir_p=false
13260 fi
13261
13262 if test -x / >/dev/null 2>&1; then
13263   as_test_x='test -x'
13264 else
13265   if ls -dL / >/dev/null 2>&1; then
13266     as_ls_L_option=L
13267   else
13268     as_ls_L_option=
13269   fi
13270   as_test_x='
13271     eval sh -c '\''
13272       if test -d "$1"; then
13273         test -d "$1/.";
13274       else
13275         case $1 in #(
13276         -*)set "./$1";;
13277         esac;
13278         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13279         ???[sx]*):;;*)false;;esac;fi
13280     '\'' sh
13281   '
13282 fi
13283 as_executable_p=$as_test_x
13284
13285 # Sed expression to map a string onto a valid CPP name.
13286 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13287
13288 # Sed expression to map a string onto a valid variable name.
13289 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13290
13291
13292 exec 6>&1
13293 ## ----------------------------------- ##
13294 ## Main body of $CONFIG_STATUS script. ##
13295 ## ----------------------------------- ##
13296 _ASEOF
13297 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13298
13299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13300 # Save the log message, to keep $0 and so on meaningful, and to
13301 # report actual input values of CONFIG_FILES etc. instead of their
13302 # values after options handling.
13303 ac_log="
13304 This file was extended by FreeType $as_me 2.4.9, which was
13305 generated by GNU Autoconf 2.68.  Invocation command line was
13306
13307   CONFIG_FILES    = $CONFIG_FILES
13308   CONFIG_HEADERS  = $CONFIG_HEADERS
13309   CONFIG_LINKS    = $CONFIG_LINKS
13310   CONFIG_COMMANDS = $CONFIG_COMMANDS
13311   $ $0 $@
13312
13313 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13314 "
13315
13316 _ACEOF
13317
13318 case $ac_config_files in *"
13319 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13320 esac
13321
13322 case $ac_config_headers in *"
13323 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13324 esac
13325
13326
13327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13328 # Files that config.status was made for.
13329 config_files="$ac_config_files"
13330 config_headers="$ac_config_headers"
13331 config_commands="$ac_config_commands"
13332
13333 _ACEOF
13334
13335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13336 ac_cs_usage="\
13337 \`$as_me' instantiates files and other configuration actions
13338 from templates according to the current configuration.  Unless the files
13339 and actions are specified as TAGs, all are instantiated by default.
13340
13341 Usage: $0 [OPTION]... [TAG]...
13342
13343   -h, --help       print this help, then exit
13344   -V, --version    print version number and configuration settings, then exit
13345       --config     print configuration, then exit
13346   -q, --quiet, --silent
13347                    do not print progress messages
13348   -d, --debug      don't remove temporary files
13349       --recheck    update $as_me by reconfiguring in the same conditions
13350       --file=FILE[:TEMPLATE]
13351                    instantiate the configuration file FILE
13352       --header=FILE[:TEMPLATE]
13353                    instantiate the configuration header FILE
13354
13355 Configuration files:
13356 $config_files
13357
13358 Configuration headers:
13359 $config_headers
13360
13361 Configuration commands:
13362 $config_commands
13363
13364 Report bugs to <freetype@nongnu.org>."
13365
13366 _ACEOF
13367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13368 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13369 ac_cs_version="\\
13370 FreeType config.status 2.4.9
13371 configured by $0, generated by GNU Autoconf 2.68,
13372   with options \\"\$ac_cs_config\\"
13373
13374 Copyright (C) 2010 Free Software Foundation, Inc.
13375 This config.status script is free software; the Free Software Foundation
13376 gives unlimited permission to copy, distribute and modify it."
13377
13378 ac_pwd='$ac_pwd'
13379 srcdir='$srcdir'
13380 INSTALL='$INSTALL'
13381 AWK='$AWK'
13382 test -n "\$AWK" || AWK=awk
13383 _ACEOF
13384
13385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13386 # The default lists apply if the user does not specify any file.
13387 ac_need_defaults=:
13388 while test $# != 0
13389 do
13390   case $1 in
13391   --*=?*)
13392     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13393     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13394     ac_shift=:
13395     ;;
13396   --*=)
13397     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13398     ac_optarg=
13399     ac_shift=:
13400     ;;
13401   *)
13402     ac_option=$1
13403     ac_optarg=$2
13404     ac_shift=shift
13405     ;;
13406   esac
13407
13408   case $ac_option in
13409   # Handling of the options.
13410   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13411     ac_cs_recheck=: ;;
13412   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13413     $as_echo "$ac_cs_version"; exit ;;
13414   --config | --confi | --conf | --con | --co | --c )
13415     $as_echo "$ac_cs_config"; exit ;;
13416   --debug | --debu | --deb | --de | --d | -d )
13417     debug=: ;;
13418   --file | --fil | --fi | --f )
13419     $ac_shift
13420     case $ac_optarg in
13421     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13422     '') as_fn_error $? "missing file argument" ;;
13423     esac
13424     as_fn_append CONFIG_FILES " '$ac_optarg'"
13425     ac_need_defaults=false;;
13426   --header | --heade | --head | --hea )
13427     $ac_shift
13428     case $ac_optarg in
13429     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13430     esac
13431     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13432     ac_need_defaults=false;;
13433   --he | --h)
13434     # Conflict between --help and --header
13435     as_fn_error $? "ambiguous option: \`$1'
13436 Try \`$0 --help' for more information.";;
13437   --help | --hel | -h )
13438     $as_echo "$ac_cs_usage"; exit ;;
13439   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13440   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13441     ac_cs_silent=: ;;
13442
13443   # This is an error.
13444   -*) as_fn_error $? "unrecognized option: \`$1'
13445 Try \`$0 --help' for more information." ;;
13446
13447   *) as_fn_append ac_config_targets " $1"
13448      ac_need_defaults=false ;;
13449
13450   esac
13451   shift
13452 done
13453
13454 ac_configure_extra_args=
13455
13456 if $ac_cs_silent; then
13457   exec 6>/dev/null
13458   ac_configure_extra_args="$ac_configure_extra_args --silent"
13459 fi
13460
13461 _ACEOF
13462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13463 if \$ac_cs_recheck; then
13464   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13465   shift
13466   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13467   CONFIG_SHELL='$SHELL'
13468   export CONFIG_SHELL
13469   exec "\$@"
13470 fi
13471
13472 _ACEOF
13473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13474 exec 5>>config.log
13475 {
13476   echo
13477   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13478 ## Running $as_me. ##
13479 _ASBOX
13480   $as_echo "$ac_log"
13481 } >&5
13482
13483 _ACEOF
13484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13485 #
13486 # INIT-COMMANDS
13487 #
13488
13489
13490 # The HP-UX ksh and POSIX shell print the target directory to stdout
13491 # if CDPATH is set.
13492 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13493
13494 sed_quote_subst='$sed_quote_subst'
13495 double_quote_subst='$double_quote_subst'
13496 delay_variable_subst='$delay_variable_subst'
13497 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13498 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13499 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13500 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13501 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13502 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13503 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13504 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13505 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13506 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13507 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13508 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13509 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13510 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13511 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13512 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13513 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13514 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13515 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13516 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13517 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13518 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13519 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13520 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13521 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13522 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13523 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13524 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13525 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13526 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13527 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13528 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13529 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13530 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13531 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13532 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13533 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13534 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13535 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13536 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13537 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13538 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13539 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13540 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13541 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13542 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13543 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13544 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13545 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13546 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13547 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13548 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13549 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13550 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13551 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13552 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13553 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13554 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"`'
13555 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13556 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13557 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13558 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13559 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13560 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13561 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13562 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13563 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13564 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13565 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13566 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13567 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13568 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13569 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13570 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13571 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13572 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13573 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13574 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13575 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13576 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13577 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13578 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13579 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13580 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13581 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13582 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13583 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13584 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13585 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13586 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13587 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13588 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13589 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13590 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13591 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13592 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13593 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13594 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13595 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13596 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13597 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13598 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13599 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13600 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13601 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13602 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13603 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13604 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13605 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13606 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13607 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13608 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13609 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13610 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13611 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13612 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13613 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13614 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13615 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13616 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13617 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13618 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13619 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13620 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13621 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13622 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13623 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13624 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13625 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13626 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13627 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13628
13629 LTCC='$LTCC'
13630 LTCFLAGS='$LTCFLAGS'
13631 compiler='$compiler_DEFAULT'
13632
13633 # A function that is used when there is no print builtin or printf.
13634 func_fallback_echo ()
13635 {
13636   eval 'cat <<_LTECHO_EOF
13637 \$1
13638 _LTECHO_EOF'
13639 }
13640
13641 # Quote evaled strings.
13642 for var in AS \
13643 DLLTOOL \
13644 OBJDUMP \
13645 SHELL \
13646 ECHO \
13647 PATH_SEPARATOR \
13648 SED \
13649 GREP \
13650 EGREP \
13651 FGREP \
13652 LD \
13653 NM \
13654 LN_S \
13655 lt_SP2NL \
13656 lt_NL2SP \
13657 reload_flag \
13658 deplibs_check_method \
13659 file_magic_cmd \
13660 file_magic_glob \
13661 want_nocaseglob \
13662 sharedlib_from_linklib_cmd \
13663 AR \
13664 AR_FLAGS \
13665 archiver_list_spec \
13666 STRIP \
13667 RANLIB \
13668 CC \
13669 CFLAGS \
13670 compiler \
13671 lt_cv_sys_global_symbol_pipe \
13672 lt_cv_sys_global_symbol_to_cdecl \
13673 lt_cv_sys_global_symbol_to_c_name_address \
13674 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13675 nm_file_list_spec \
13676 lt_prog_compiler_no_builtin_flag \
13677 lt_prog_compiler_pic \
13678 lt_prog_compiler_wl \
13679 lt_prog_compiler_static \
13680 lt_cv_prog_compiler_c_o \
13681 need_locks \
13682 MANIFEST_TOOL \
13683 DSYMUTIL \
13684 NMEDIT \
13685 LIPO \
13686 OTOOL \
13687 OTOOL64 \
13688 shrext_cmds \
13689 export_dynamic_flag_spec \
13690 whole_archive_flag_spec \
13691 compiler_needs_object \
13692 with_gnu_ld \
13693 allow_undefined_flag \
13694 no_undefined_flag \
13695 hardcode_libdir_flag_spec \
13696 hardcode_libdir_separator \
13697 exclude_expsyms \
13698 include_expsyms \
13699 file_list_spec \
13700 variables_saved_for_relink \
13701 libname_spec \
13702 library_names_spec \
13703 soname_spec \
13704 install_override_mode \
13705 finish_eval \
13706 old_striplib \
13707 striplib; do
13708     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13709     *[\\\\\\\`\\"\\\$]*)
13710       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13711       ;;
13712     *)
13713       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13714       ;;
13715     esac
13716 done
13717
13718 # Double-quote double-evaled strings.
13719 for var in reload_cmds \
13720 old_postinstall_cmds \
13721 old_postuninstall_cmds \
13722 old_archive_cmds \
13723 extract_expsyms_cmds \
13724 old_archive_from_new_cmds \
13725 old_archive_from_expsyms_cmds \
13726 archive_cmds \
13727 archive_expsym_cmds \
13728 module_cmds \
13729 module_expsym_cmds \
13730 export_symbols_cmds \
13731 prelink_cmds \
13732 postlink_cmds \
13733 postinstall_cmds \
13734 postuninstall_cmds \
13735 finish_cmds \
13736 sys_lib_search_path_spec \
13737 sys_lib_dlsearch_path_spec; do
13738     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13739     *[\\\\\\\`\\"\\\$]*)
13740       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13741       ;;
13742     *)
13743       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13744       ;;
13745     esac
13746 done
13747
13748 ac_aux_dir='$ac_aux_dir'
13749 xsi_shell='$xsi_shell'
13750 lt_shell_append='$lt_shell_append'
13751
13752 # See if we are running on zsh, and set the options which allow our
13753 # commands through without removal of \ escapes INIT.
13754 if test -n "\${ZSH_VERSION+set}" ; then
13755    setopt NO_GLOB_SUBST
13756 fi
13757
13758
13759     PACKAGE='$PACKAGE'
13760     VERSION='$VERSION'
13761     TIMESTAMP='$TIMESTAMP'
13762     RM='$RM'
13763     ofile='$ofile'
13764
13765
13766
13767
13768 _ACEOF
13769
13770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13771
13772 # Handling of arguments.
13773 for ac_config_target in $ac_config_targets
13774 do
13775   case $ac_config_target in
13776     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13777     "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h:ftconfig.in" ;;
13778     "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
13779     "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
13780     "freetype-config") CONFIG_FILES="$CONFIG_FILES freetype-config" ;;
13781     "freetype2.pc") CONFIG_FILES="$CONFIG_FILES freetype2.pc:freetype2.in" ;;
13782
13783   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13784   esac
13785 done
13786
13787
13788 # If the user did not use the arguments to specify the items to instantiate,
13789 # then the envvar interface is used.  Set only those that are not.
13790 # We use the long form for the default assignment because of an extremely
13791 # bizarre bug on SunOS 4.1.3.
13792 if $ac_need_defaults; then
13793   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13794   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13795   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13796 fi
13797
13798 # Have a temporary directory for convenience.  Make it in the build tree
13799 # simply because there is no reason against having it here, and in addition,
13800 # creating and moving files from /tmp can sometimes cause problems.
13801 # Hook for its removal unless debugging.
13802 # Note that there is a small window in which the directory will not be cleaned:
13803 # after its creation but before its name has been assigned to `$tmp'.
13804 $debug ||
13805 {
13806   tmp= ac_tmp=
13807   trap 'exit_status=$?
13808   : "${ac_tmp:=$tmp}"
13809   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13810 ' 0
13811   trap 'as_fn_exit 1' 1 2 13 15
13812 }
13813 # Create a (secure) tmp directory for tmp files.
13814
13815 {
13816   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13817   test -d "$tmp"
13818 }  ||
13819 {
13820   tmp=./conf$$-$RANDOM
13821   (umask 077 && mkdir "$tmp")
13822 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13823 ac_tmp=$tmp
13824
13825 # Set up the scripts for CONFIG_FILES section.
13826 # No need to generate them if there are no CONFIG_FILES.
13827 # This happens for instance with `./config.status config.h'.
13828 if test -n "$CONFIG_FILES"; then
13829
13830
13831 ac_cr=`echo X | tr X '\015'`
13832 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13833 # But we know of no other shell where ac_cr would be empty at this
13834 # point, so we can use a bashism as a fallback.
13835 if test "x$ac_cr" = x; then
13836   eval ac_cr=\$\'\\r\'
13837 fi
13838 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13839 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13840   ac_cs_awk_cr='\\r'
13841 else
13842   ac_cs_awk_cr=$ac_cr
13843 fi
13844
13845 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13846 _ACEOF
13847
13848
13849 {
13850   echo "cat >conf$$subs.awk <<_ACEOF" &&
13851   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13852   echo "_ACEOF"
13853 } >conf$$subs.sh ||
13854   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13855 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13856 ac_delim='%!_!# '
13857 for ac_last_try in false false false false false :; do
13858   . ./conf$$subs.sh ||
13859     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13860
13861   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13862   if test $ac_delim_n = $ac_delim_num; then
13863     break
13864   elif $ac_last_try; then
13865     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13866   else
13867     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13868   fi
13869 done
13870 rm -f conf$$subs.sh
13871
13872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13873 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13874 _ACEOF
13875 sed -n '
13876 h
13877 s/^/S["/; s/!.*/"]=/
13878 p
13879 g
13880 s/^[^!]*!//
13881 :repl
13882 t repl
13883 s/'"$ac_delim"'$//
13884 t delim
13885 :nl
13886 h
13887 s/\(.\{148\}\)..*/\1/
13888 t more1
13889 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13890 p
13891 n
13892 b repl
13893 :more1
13894 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13895 p
13896 g
13897 s/.\{148\}//
13898 t nl
13899 :delim
13900 h
13901 s/\(.\{148\}\)..*/\1/
13902 t more2
13903 s/["\\]/\\&/g; s/^/"/; s/$/"/
13904 p
13905 b
13906 :more2
13907 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13908 p
13909 g
13910 s/.\{148\}//
13911 t delim
13912 ' <conf$$subs.awk | sed '
13913 /^[^""]/{
13914   N
13915   s/\n//
13916 }
13917 ' >>$CONFIG_STATUS || ac_write_fail=1
13918 rm -f conf$$subs.awk
13919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13920 _ACAWK
13921 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13922   for (key in S) S_is_set[key] = 1
13923   FS = "\a"
13924
13925 }
13926 {
13927   line = $ 0
13928   nfields = split(line, field, "@")
13929   substed = 0
13930   len = length(field[1])
13931   for (i = 2; i < nfields; i++) {
13932     key = field[i]
13933     keylen = length(key)
13934     if (S_is_set[key]) {
13935       value = S[key]
13936       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13937       len += length(value) + length(field[++i])
13938       substed = 1
13939     } else
13940       len += 1 + keylen
13941   }
13942
13943   print line
13944 }
13945
13946 _ACAWK
13947 _ACEOF
13948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13949 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13950   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13951 else
13952   cat
13953 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13954   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13955 _ACEOF
13956
13957 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13958 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13959 # trailing colons and then remove the whole line if VPATH becomes empty
13960 # (actually we leave an empty line to preserve line numbers).
13961 if test "x$srcdir" = x.; then
13962   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13963 h
13964 s///
13965 s/^/:/
13966 s/[      ]*$/:/
13967 s/:\$(srcdir):/:/g
13968 s/:\${srcdir}:/:/g
13969 s/:@srcdir@:/:/g
13970 s/^:*//
13971 s/:*$//
13972 x
13973 s/\(=[   ]*\).*/\1/
13974 G
13975 s/\n//
13976 s/^[^=]*=[       ]*$//
13977 }'
13978 fi
13979
13980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13981 fi # test -n "$CONFIG_FILES"
13982
13983 # Set up the scripts for CONFIG_HEADERS section.
13984 # No need to generate them if there are no CONFIG_HEADERS.
13985 # This happens for instance with `./config.status Makefile'.
13986 if test -n "$CONFIG_HEADERS"; then
13987 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13988 BEGIN {
13989 _ACEOF
13990
13991 # Transform confdefs.h into an awk script `defines.awk', embedded as
13992 # here-document in config.status, that substitutes the proper values into
13993 # config.h.in to produce config.h.
13994
13995 # Create a delimiter string that does not exist in confdefs.h, to ease
13996 # handling of long lines.
13997 ac_delim='%!_!# '
13998 for ac_last_try in false false :; do
13999   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14000   if test -z "$ac_tt"; then
14001     break
14002   elif $ac_last_try; then
14003     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14004   else
14005     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14006   fi
14007 done
14008
14009 # For the awk script, D is an array of macro values keyed by name,
14010 # likewise P contains macro parameters if any.  Preserve backslash
14011 # newline sequences.
14012
14013 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14014 sed -n '
14015 s/.\{148\}/&'"$ac_delim"'/g
14016 t rset
14017 :rset
14018 s/^[     ]*#[    ]*define[       ][      ]*/ /
14019 t def
14020 d
14021 :def
14022 s/\\$//
14023 t bsnl
14024 s/["\\]/\\&/g
14025 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14026 D["\1"]=" \3"/p
14027 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14028 d
14029 :bsnl
14030 s/["\\]/\\&/g
14031 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14032 D["\1"]=" \3\\\\\\n"\\/p
14033 t cont
14034 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14035 t cont
14036 d
14037 :cont
14038 n
14039 s/.\{148\}/&'"$ac_delim"'/g
14040 t clear
14041 :clear
14042 s/\\$//
14043 t bsnlc
14044 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14045 d
14046 :bsnlc
14047 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14048 b cont
14049 ' <confdefs.h | sed '
14050 s/'"$ac_delim"'/"\\\
14051 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14052
14053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14054   for (key in D) D_is_set[key] = 1
14055   FS = "\a"
14056 }
14057 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14058   line = \$ 0
14059   split(line, arg, " ")
14060   if (arg[1] == "#") {
14061     defundef = arg[2]
14062     mac1 = arg[3]
14063   } else {
14064     defundef = substr(arg[1], 2)
14065     mac1 = arg[2]
14066   }
14067   split(mac1, mac2, "(") #)
14068   macro = mac2[1]
14069   prefix = substr(line, 1, index(line, defundef) - 1)
14070   if (D_is_set[macro]) {
14071     # Preserve the white space surrounding the "#".
14072     print prefix "define", macro P[macro] D[macro]
14073     next
14074   } else {
14075     # Replace #undef with comments.  This is necessary, for example,
14076     # in the case of _POSIX_SOURCE, which is predefined and required
14077     # on some systems where configure will not decide to define it.
14078     if (defundef == "undef") {
14079       print "/*", prefix defundef, macro, "*/"
14080       next
14081     }
14082   }
14083 }
14084 { print }
14085 _ACAWK
14086 _ACEOF
14087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14088   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14089 fi # test -n "$CONFIG_HEADERS"
14090
14091
14092 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14093 shift
14094 for ac_tag
14095 do
14096   case $ac_tag in
14097   :[FHLC]) ac_mode=$ac_tag; continue;;
14098   esac
14099   case $ac_mode$ac_tag in
14100   :[FHL]*:*);;
14101   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14102   :[FH]-) ac_tag=-:-;;
14103   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14104   esac
14105   ac_save_IFS=$IFS
14106   IFS=:
14107   set x $ac_tag
14108   IFS=$ac_save_IFS
14109   shift
14110   ac_file=$1
14111   shift
14112
14113   case $ac_mode in
14114   :L) ac_source=$1;;
14115   :[FH])
14116     ac_file_inputs=
14117     for ac_f
14118     do
14119       case $ac_f in
14120       -) ac_f="$ac_tmp/stdin";;
14121       *) # Look for the file first in the build tree, then in the source tree
14122          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14123          # because $ac_f cannot contain `:'.
14124          test -f "$ac_f" ||
14125            case $ac_f in
14126            [\\/$]*) false;;
14127            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14128            esac ||
14129            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14130       esac
14131       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14132       as_fn_append ac_file_inputs " '$ac_f'"
14133     done
14134
14135     # Let's still pretend it is `configure' which instantiates (i.e., don't
14136     # use $as_me), people would be surprised to read:
14137     #    /* config.h.  Generated by config.status.  */
14138     configure_input='Generated from '`
14139           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14140         `' by configure.'
14141     if test x"$ac_file" != x-; then
14142       configure_input="$ac_file.  $configure_input"
14143       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14144 $as_echo "$as_me: creating $ac_file" >&6;}
14145     fi
14146     # Neutralize special characters interpreted by sed in replacement strings.
14147     case $configure_input in #(
14148     *\&* | *\|* | *\\* )
14149        ac_sed_conf_input=`$as_echo "$configure_input" |
14150        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14151     *) ac_sed_conf_input=$configure_input;;
14152     esac
14153
14154     case $ac_tag in
14155     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14156       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14157     esac
14158     ;;
14159   esac
14160
14161   ac_dir=`$as_dirname -- "$ac_file" ||
14162 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14163          X"$ac_file" : 'X\(//\)[^/]' \| \
14164          X"$ac_file" : 'X\(//\)$' \| \
14165          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14166 $as_echo X"$ac_file" |
14167     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14168             s//\1/
14169             q
14170           }
14171           /^X\(\/\/\)[^/].*/{
14172             s//\1/
14173             q
14174           }
14175           /^X\(\/\/\)$/{
14176             s//\1/
14177             q
14178           }
14179           /^X\(\/\).*/{
14180             s//\1/
14181             q
14182           }
14183           s/.*/./; q'`
14184   as_dir="$ac_dir"; as_fn_mkdir_p
14185   ac_builddir=.
14186
14187 case "$ac_dir" in
14188 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14189 *)
14190   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14191   # A ".." for each directory in $ac_dir_suffix.
14192   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14193   case $ac_top_builddir_sub in
14194   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14195   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14196   esac ;;
14197 esac
14198 ac_abs_top_builddir=$ac_pwd
14199 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14200 # for backward compatibility:
14201 ac_top_builddir=$ac_top_build_prefix
14202
14203 case $srcdir in
14204   .)  # We are building in place.
14205     ac_srcdir=.
14206     ac_top_srcdir=$ac_top_builddir_sub
14207     ac_abs_top_srcdir=$ac_pwd ;;
14208   [\\/]* | ?:[\\/]* )  # Absolute name.
14209     ac_srcdir=$srcdir$ac_dir_suffix;
14210     ac_top_srcdir=$srcdir
14211     ac_abs_top_srcdir=$srcdir ;;
14212   *) # Relative name.
14213     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14214     ac_top_srcdir=$ac_top_build_prefix$srcdir
14215     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14216 esac
14217 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14218
14219
14220   case $ac_mode in
14221   :F)
14222   #
14223   # CONFIG_FILE
14224   #
14225
14226   case $INSTALL in
14227   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14228   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14229   esac
14230 _ACEOF
14231
14232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14233 # If the template does not know about datarootdir, expand it.
14234 # FIXME: This hack should be removed a few years after 2.60.
14235 ac_datarootdir_hack=; ac_datarootdir_seen=
14236 ac_sed_dataroot='
14237 /datarootdir/ {
14238   p
14239   q
14240 }
14241 /@datadir@/p
14242 /@docdir@/p
14243 /@infodir@/p
14244 /@localedir@/p
14245 /@mandir@/p'
14246 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14247 *datarootdir*) ac_datarootdir_seen=yes;;
14248 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14249   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14250 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14251 _ACEOF
14252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14253   ac_datarootdir_hack='
14254   s&@datadir@&$datadir&g
14255   s&@docdir@&$docdir&g
14256   s&@infodir@&$infodir&g
14257   s&@localedir@&$localedir&g
14258   s&@mandir@&$mandir&g
14259   s&\\\${datarootdir}&$datarootdir&g' ;;
14260 esac
14261 _ACEOF
14262
14263 # Neutralize VPATH when `$srcdir' = `.'.
14264 # Shell code in configure.ac might set extrasub.
14265 # FIXME: do we really want to maintain this feature?
14266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14267 ac_sed_extra="$ac_vpsub
14268 $extrasub
14269 _ACEOF
14270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14271 :t
14272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14273 s|@configure_input@|$ac_sed_conf_input|;t t
14274 s&@top_builddir@&$ac_top_builddir_sub&;t t
14275 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14276 s&@srcdir@&$ac_srcdir&;t t
14277 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14278 s&@top_srcdir@&$ac_top_srcdir&;t t
14279 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14280 s&@builddir@&$ac_builddir&;t t
14281 s&@abs_builddir@&$ac_abs_builddir&;t t
14282 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14283 s&@INSTALL@&$ac_INSTALL&;t t
14284 $ac_datarootdir_hack
14285 "
14286 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14287   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14288
14289 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14290   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14291   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14292       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14293   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14294 which seems to be undefined.  Please make sure it is defined" >&5
14295 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14296 which seems to be undefined.  Please make sure it is defined" >&2;}
14297
14298   rm -f "$ac_tmp/stdin"
14299   case $ac_file in
14300   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14301   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14302   esac \
14303   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14304  ;;
14305   :H)
14306   #
14307   # CONFIG_HEADER
14308   #
14309   if test x"$ac_file" != x-; then
14310     {
14311       $as_echo "/* $configure_input  */" \
14312       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14313     } >"$ac_tmp/config.h" \
14314       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14315     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14316       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14317 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14318     else
14319       rm -f "$ac_file"
14320       mv "$ac_tmp/config.h" "$ac_file" \
14321         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14322     fi
14323   else
14324     $as_echo "/* $configure_input  */" \
14325       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14326       || as_fn_error $? "could not create -" "$LINENO" 5
14327   fi
14328  ;;
14329
14330   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14331 $as_echo "$as_me: executing $ac_file commands" >&6;}
14332  ;;
14333   esac
14334
14335
14336   case $ac_file$ac_mode in
14337     "libtool":C)
14338
14339     # See if we are running on zsh, and set the options which allow our
14340     # commands through without removal of \ escapes.
14341     if test -n "${ZSH_VERSION+set}" ; then
14342       setopt NO_GLOB_SUBST
14343     fi
14344
14345     cfgfile="${ofile}T"
14346     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14347     $RM "$cfgfile"
14348
14349     cat <<_LT_EOF >> "$cfgfile"
14350 #! $SHELL
14351
14352 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14353 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14354 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14355 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14356 #
14357 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14358 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14359 #                 Foundation, Inc.
14360 #   Written by Gordon Matzigkeit, 1996
14361 #
14362 #   This file is part of GNU Libtool.
14363 #
14364 # GNU Libtool is free software; you can redistribute it and/or
14365 # modify it under the terms of the GNU General Public License as
14366 # published by the Free Software Foundation; either version 2 of
14367 # the License, or (at your option) any later version.
14368 #
14369 # As a special exception to the GNU General Public License,
14370 # if you distribute this file as part of a program or library that
14371 # is built using GNU Libtool, you may include this file under the
14372 # same distribution terms that you use for the rest of that program.
14373 #
14374 # GNU Libtool is distributed in the hope that it will be useful,
14375 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14376 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14377 # GNU General Public License for more details.
14378 #
14379 # You should have received a copy of the GNU General Public License
14380 # along with GNU Libtool; see the file COPYING.  If not, a copy
14381 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14382 # obtained by writing to the Free Software Foundation, Inc.,
14383 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14384
14385
14386 # The names of the tagged configurations supported by this script.
14387 available_tags=""
14388
14389 # ### BEGIN LIBTOOL CONFIG
14390
14391 # Which release of libtool.m4 was used?
14392 macro_version=$macro_version
14393 macro_revision=$macro_revision
14394
14395 # Assembler program.
14396 AS=$lt_AS
14397
14398 # DLL creation program.
14399 DLLTOOL=$lt_DLLTOOL
14400
14401 # Object dumper program.
14402 OBJDUMP=$lt_OBJDUMP
14403
14404 # Whether or not to build shared libraries.
14405 build_libtool_libs=$enable_shared
14406
14407 # Whether or not to build static libraries.
14408 build_old_libs=$enable_static
14409
14410 # What type of objects to build.
14411 pic_mode=$pic_mode
14412
14413 # Whether or not to optimize for fast installation.
14414 fast_install=$enable_fast_install
14415
14416 # Shell to use when invoking shell scripts.
14417 SHELL=$lt_SHELL
14418
14419 # An echo program that protects backslashes.
14420 ECHO=$lt_ECHO
14421
14422 # The PATH separator for the build system.
14423 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14424
14425 # The host system.
14426 host_alias=$host_alias
14427 host=$host
14428 host_os=$host_os
14429
14430 # The build system.
14431 build_alias=$build_alias
14432 build=$build
14433 build_os=$build_os
14434
14435 # A sed program that does not truncate output.
14436 SED=$lt_SED
14437
14438 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14439 Xsed="\$SED -e 1s/^X//"
14440
14441 # A grep program that handles long lines.
14442 GREP=$lt_GREP
14443
14444 # An ERE matcher.
14445 EGREP=$lt_EGREP
14446
14447 # A literal string matcher.
14448 FGREP=$lt_FGREP
14449
14450 # A BSD- or MS-compatible name lister.
14451 NM=$lt_NM
14452
14453 # Whether we need soft or hard links.
14454 LN_S=$lt_LN_S
14455
14456 # What is the maximum length of a command?
14457 max_cmd_len=$max_cmd_len
14458
14459 # Object file suffix (normally "o").
14460 objext=$ac_objext
14461
14462 # Executable file suffix (normally "").
14463 exeext=$exeext
14464
14465 # whether the shell understands "unset".
14466 lt_unset=$lt_unset
14467
14468 # turn spaces into newlines.
14469 SP2NL=$lt_lt_SP2NL
14470
14471 # turn newlines into spaces.
14472 NL2SP=$lt_lt_NL2SP
14473
14474 # convert \$build file names to \$host format.
14475 to_host_file_cmd=$lt_cv_to_host_file_cmd
14476
14477 # convert \$build files to toolchain format.
14478 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14479
14480 # Method to check whether dependent libraries are shared objects.
14481 deplibs_check_method=$lt_deplibs_check_method
14482
14483 # Command to use when deplibs_check_method = "file_magic".
14484 file_magic_cmd=$lt_file_magic_cmd
14485
14486 # How to find potential files when deplibs_check_method = "file_magic".
14487 file_magic_glob=$lt_file_magic_glob
14488
14489 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14490 want_nocaseglob=$lt_want_nocaseglob
14491
14492 # Command to associate shared and link libraries.
14493 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14494
14495 # The archiver.
14496 AR=$lt_AR
14497
14498 # Flags to create an archive.
14499 AR_FLAGS=$lt_AR_FLAGS
14500
14501 # How to feed a file listing to the archiver.
14502 archiver_list_spec=$lt_archiver_list_spec
14503
14504 # A symbol stripping program.
14505 STRIP=$lt_STRIP
14506
14507 # Commands used to install an old-style archive.
14508 RANLIB=$lt_RANLIB
14509 old_postinstall_cmds=$lt_old_postinstall_cmds
14510 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14511
14512 # Whether to use a lock for old archive extraction.
14513 lock_old_archive_extraction=$lock_old_archive_extraction
14514
14515 # A C compiler.
14516 LTCC=$lt_CC
14517
14518 # LTCC compiler flags.
14519 LTCFLAGS=$lt_CFLAGS
14520
14521 # Take the output of nm and produce a listing of raw symbols and C names.
14522 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14523
14524 # Transform the output of nm in a proper C declaration.
14525 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14526
14527 # Transform the output of nm in a C name address pair.
14528 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14529
14530 # Transform the output of nm in a C name address pair when lib prefix is needed.
14531 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14532
14533 # Specify filename containing input files for \$NM.
14534 nm_file_list_spec=$lt_nm_file_list_spec
14535
14536 # The root where to search for dependent libraries,and in which our libraries should be installed.
14537 lt_sysroot=$lt_sysroot
14538
14539 # The name of the directory that contains temporary libtool files.
14540 objdir=$objdir
14541
14542 # Used to examine libraries when file_magic_cmd begins with "file".
14543 MAGIC_CMD=$MAGIC_CMD
14544
14545 # Must we lock files when doing compilation?
14546 need_locks=$lt_need_locks
14547
14548 # Manifest tool.
14549 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14550
14551 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14552 DSYMUTIL=$lt_DSYMUTIL
14553
14554 # Tool to change global to local symbols on Mac OS X.
14555 NMEDIT=$lt_NMEDIT
14556
14557 # Tool to manipulate fat objects and archives on Mac OS X.
14558 LIPO=$lt_LIPO
14559
14560 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14561 OTOOL=$lt_OTOOL
14562
14563 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14564 OTOOL64=$lt_OTOOL64
14565
14566 # Old archive suffix (normally "a").
14567 libext=$libext
14568
14569 # Shared library suffix (normally ".so").
14570 shrext_cmds=$lt_shrext_cmds
14571
14572 # The commands to extract the exported symbol list from a shared archive.
14573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14574
14575 # Variables whose values should be saved in libtool wrapper scripts and
14576 # restored at link time.
14577 variables_saved_for_relink=$lt_variables_saved_for_relink
14578
14579 # Do we need the "lib" prefix for modules?
14580 need_lib_prefix=$need_lib_prefix
14581
14582 # Do we need a version for libraries?
14583 need_version=$need_version
14584
14585 # Library versioning type.
14586 version_type=$version_type
14587
14588 # Shared library runtime path variable.
14589 runpath_var=$runpath_var
14590
14591 # Shared library path variable.
14592 shlibpath_var=$shlibpath_var
14593
14594 # Is shlibpath searched before the hard-coded library search path?
14595 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14596
14597 # Format of library name prefix.
14598 libname_spec=$lt_libname_spec
14599
14600 # List of archive names.  First name is the real one, the rest are links.
14601 # The last name is the one that the linker finds with -lNAME
14602 library_names_spec=$lt_library_names_spec
14603
14604 # The coded name of the library, if different from the real name.
14605 soname_spec=$lt_soname_spec
14606
14607 # Permission mode override for installation of shared libraries.
14608 install_override_mode=$lt_install_override_mode
14609
14610 # Command to use after installation of a shared archive.
14611 postinstall_cmds=$lt_postinstall_cmds
14612
14613 # Command to use after uninstallation of a shared archive.
14614 postuninstall_cmds=$lt_postuninstall_cmds
14615
14616 # Commands used to finish a libtool library installation in a directory.
14617 finish_cmds=$lt_finish_cmds
14618
14619 # As "finish_cmds", except a single script fragment to be evaled but
14620 # not shown.
14621 finish_eval=$lt_finish_eval
14622
14623 # Whether we should hardcode library paths into libraries.
14624 hardcode_into_libs=$hardcode_into_libs
14625
14626 # Compile-time system search path for libraries.
14627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14628
14629 # Run-time system search path for libraries.
14630 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14631
14632 # Whether dlopen is supported.
14633 dlopen_support=$enable_dlopen
14634
14635 # Whether dlopen of programs is supported.
14636 dlopen_self=$enable_dlopen_self
14637
14638 # Whether dlopen of statically linked programs is supported.
14639 dlopen_self_static=$enable_dlopen_self_static
14640
14641 # Commands to strip libraries.
14642 old_striplib=$lt_old_striplib
14643 striplib=$lt_striplib
14644
14645
14646 # The linker used to build libraries.
14647 LD=$lt_LD
14648
14649 # How to create reloadable object files.
14650 reload_flag=$lt_reload_flag
14651 reload_cmds=$lt_reload_cmds
14652
14653 # Commands used to build an old-style archive.
14654 old_archive_cmds=$lt_old_archive_cmds
14655
14656 # A language specific compiler.
14657 CC=$lt_compiler
14658
14659 # Is the compiler the GNU compiler?
14660 with_gcc=$GCC
14661
14662 # Compiler flag to turn off builtin functions.
14663 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14664
14665 # Additional compiler flags for building library objects.
14666 pic_flag=$lt_lt_prog_compiler_pic
14667
14668 # How to pass a linker flag through the compiler.
14669 wl=$lt_lt_prog_compiler_wl
14670
14671 # Compiler flag to prevent dynamic linking.
14672 link_static_flag=$lt_lt_prog_compiler_static
14673
14674 # Does compiler simultaneously support -c and -o options?
14675 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14676
14677 # Whether or not to add -lc for building shared libraries.
14678 build_libtool_need_lc=$archive_cmds_need_lc
14679
14680 # Whether or not to disallow shared libs when runtime libs are static.
14681 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14682
14683 # Compiler flag to allow reflexive dlopens.
14684 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14685
14686 # Compiler flag to generate shared objects directly from archives.
14687 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14688
14689 # Whether the compiler copes with passing no objects directly.
14690 compiler_needs_object=$lt_compiler_needs_object
14691
14692 # Create an old-style archive from a shared archive.
14693 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14694
14695 # Create a temporary old-style archive to link instead of a shared archive.
14696 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14697
14698 # Commands used to build a shared archive.
14699 archive_cmds=$lt_archive_cmds
14700 archive_expsym_cmds=$lt_archive_expsym_cmds
14701
14702 # Commands used to build a loadable module if different from building
14703 # a shared archive.
14704 module_cmds=$lt_module_cmds
14705 module_expsym_cmds=$lt_module_expsym_cmds
14706
14707 # Whether we are building with GNU ld or not.
14708 with_gnu_ld=$lt_with_gnu_ld
14709
14710 # Flag that allows shared libraries with undefined symbols to be built.
14711 allow_undefined_flag=$lt_allow_undefined_flag
14712
14713 # Flag that enforces no undefined symbols.
14714 no_undefined_flag=$lt_no_undefined_flag
14715
14716 # Flag to hardcode \$libdir into a binary during linking.
14717 # This must work even if \$libdir does not exist
14718 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14719
14720 # Whether we need a single "-rpath" flag with a separated argument.
14721 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14722
14723 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14724 # DIR into the resulting binary.
14725 hardcode_direct=$hardcode_direct
14726
14727 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14728 # DIR into the resulting binary and the resulting library dependency is
14729 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14730 # library is relocated.
14731 hardcode_direct_absolute=$hardcode_direct_absolute
14732
14733 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14734 # into the resulting binary.
14735 hardcode_minus_L=$hardcode_minus_L
14736
14737 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14738 # into the resulting binary.
14739 hardcode_shlibpath_var=$hardcode_shlibpath_var
14740
14741 # Set to "yes" if building a shared library automatically hardcodes DIR
14742 # into the library and all subsequent libraries and executables linked
14743 # against it.
14744 hardcode_automatic=$hardcode_automatic
14745
14746 # Set to yes if linker adds runtime paths of dependent libraries
14747 # to runtime path list.
14748 inherit_rpath=$inherit_rpath
14749
14750 # Whether libtool must link a program against all its dependency libraries.
14751 link_all_deplibs=$link_all_deplibs
14752
14753 # Set to "yes" if exported symbols are required.
14754 always_export_symbols=$always_export_symbols
14755
14756 # The commands to list exported symbols.
14757 export_symbols_cmds=$lt_export_symbols_cmds
14758
14759 # Symbols that should not be listed in the preloaded symbols.
14760 exclude_expsyms=$lt_exclude_expsyms
14761
14762 # Symbols that must always be exported.
14763 include_expsyms=$lt_include_expsyms
14764
14765 # Commands necessary for linking programs (against libraries) with templates.
14766 prelink_cmds=$lt_prelink_cmds
14767
14768 # Commands necessary for finishing linking programs.
14769 postlink_cmds=$lt_postlink_cmds
14770
14771 # Specify filename containing input files.
14772 file_list_spec=$lt_file_list_spec
14773
14774 # How to hardcode a shared library path into an executable.
14775 hardcode_action=$hardcode_action
14776
14777 # ### END LIBTOOL CONFIG
14778
14779 _LT_EOF
14780
14781   case $host_os in
14782   aix3*)
14783     cat <<\_LT_EOF >> "$cfgfile"
14784 # AIX sometimes has problems with the GCC collect2 program.  For some
14785 # reason, if we set the COLLECT_NAMES environment variable, the problems
14786 # vanish in a puff of smoke.
14787 if test "X${COLLECT_NAMES+set}" != Xset; then
14788   COLLECT_NAMES=
14789   export COLLECT_NAMES
14790 fi
14791 _LT_EOF
14792     ;;
14793   esac
14794
14795
14796 ltmain="$ac_aux_dir/ltmain.sh"
14797
14798
14799   # We use sed instead of cat because bash on DJGPP gets confused if
14800   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14801   # text mode, it properly converts lines to CR/LF.  This bash problem
14802   # is reportedly fixed, but why not run on old versions too?
14803   sed '$q' "$ltmain" >> "$cfgfile" \
14804      || (rm -f "$cfgfile"; exit 1)
14805
14806   if test x"$xsi_shell" = xyes; then
14807   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14808 func_dirname ()\
14809 {\
14810 \    case ${1} in\
14811 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14812 \      *  ) func_dirname_result="${3}" ;;\
14813 \    esac\
14814 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14815   && mv -f "$cfgfile.tmp" "$cfgfile" \
14816     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14817 test 0 -eq $? || _lt_function_replace_fail=:
14818
14819
14820   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14821 func_basename ()\
14822 {\
14823 \    func_basename_result="${1##*/}"\
14824 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14825   && mv -f "$cfgfile.tmp" "$cfgfile" \
14826     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14827 test 0 -eq $? || _lt_function_replace_fail=:
14828
14829
14830   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14831 func_dirname_and_basename ()\
14832 {\
14833 \    case ${1} in\
14834 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14835 \      *  ) func_dirname_result="${3}" ;;\
14836 \    esac\
14837 \    func_basename_result="${1##*/}"\
14838 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14839   && mv -f "$cfgfile.tmp" "$cfgfile" \
14840     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14841 test 0 -eq $? || _lt_function_replace_fail=:
14842
14843
14844   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14845 func_stripname ()\
14846 {\
14847 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14848 \    # positional parameters, so assign one to ordinary parameter first.\
14849 \    func_stripname_result=${3}\
14850 \    func_stripname_result=${func_stripname_result#"${1}"}\
14851 \    func_stripname_result=${func_stripname_result%"${2}"}\
14852 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14853   && mv -f "$cfgfile.tmp" "$cfgfile" \
14854     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14855 test 0 -eq $? || _lt_function_replace_fail=:
14856
14857
14858   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14859 func_split_long_opt ()\
14860 {\
14861 \    func_split_long_opt_name=${1%%=*}\
14862 \    func_split_long_opt_arg=${1#*=}\
14863 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14864   && mv -f "$cfgfile.tmp" "$cfgfile" \
14865     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14866 test 0 -eq $? || _lt_function_replace_fail=:
14867
14868
14869   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14870 func_split_short_opt ()\
14871 {\
14872 \    func_split_short_opt_arg=${1#??}\
14873 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14874 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14875   && mv -f "$cfgfile.tmp" "$cfgfile" \
14876     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14877 test 0 -eq $? || _lt_function_replace_fail=:
14878
14879
14880   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14881 func_lo2o ()\
14882 {\
14883 \    case ${1} in\
14884 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14885 \      *)    func_lo2o_result=${1} ;;\
14886 \    esac\
14887 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14888   && mv -f "$cfgfile.tmp" "$cfgfile" \
14889     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14890 test 0 -eq $? || _lt_function_replace_fail=:
14891
14892
14893   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14894 func_xform ()\
14895 {\
14896     func_xform_result=${1%.*}.lo\
14897 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14898   && mv -f "$cfgfile.tmp" "$cfgfile" \
14899     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14900 test 0 -eq $? || _lt_function_replace_fail=:
14901
14902
14903   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14904 func_arith ()\
14905 {\
14906     func_arith_result=$(( $* ))\
14907 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14908   && mv -f "$cfgfile.tmp" "$cfgfile" \
14909     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14910 test 0 -eq $? || _lt_function_replace_fail=:
14911
14912
14913   sed -e '/^func_len ()$/,/^} # func_len /c\
14914 func_len ()\
14915 {\
14916     func_len_result=${#1}\
14917 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14918   && mv -f "$cfgfile.tmp" "$cfgfile" \
14919     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14920 test 0 -eq $? || _lt_function_replace_fail=:
14921
14922 fi
14923
14924 if test x"$lt_shell_append" = xyes; then
14925   sed -e '/^func_append ()$/,/^} # func_append /c\
14926 func_append ()\
14927 {\
14928     eval "${1}+=\\${2}"\
14929 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14930   && mv -f "$cfgfile.tmp" "$cfgfile" \
14931     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14932 test 0 -eq $? || _lt_function_replace_fail=:
14933
14934
14935   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14936 func_append_quoted ()\
14937 {\
14938 \    func_quote_for_eval "${2}"\
14939 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14940 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14941   && mv -f "$cfgfile.tmp" "$cfgfile" \
14942     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14943 test 0 -eq $? || _lt_function_replace_fail=:
14944
14945
14946   # Save a `func_append' function call where possible by direct use of '+='
14947   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14948     && mv -f "$cfgfile.tmp" "$cfgfile" \
14949       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14950   test 0 -eq $? || _lt_function_replace_fail=:
14951 else
14952   # Save a `func_append' function call even when '+=' is not available
14953   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14954     && mv -f "$cfgfile.tmp" "$cfgfile" \
14955       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14956   test 0 -eq $? || _lt_function_replace_fail=:
14957 fi
14958
14959 if test x"$_lt_function_replace_fail" = x":"; then
14960   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14961 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14962 fi
14963
14964
14965    mv -f "$cfgfile" "$ofile" ||
14966     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14967   chmod +x "$ofile"
14968
14969  ;;
14970     "ftconfig.h":H) mv ftconfig.h ftconfig.tmp
14971    sed 's|/undef|#undef|' < ftconfig.tmp > ftconfig.h
14972    rm ftconfig.tmp ;;
14973
14974   esac
14975 done # for ac_tag
14976
14977
14978 as_fn_exit 0
14979 _ACEOF
14980 ac_clean_files=$ac_clean_files_save
14981
14982 test $ac_write_fail = 0 ||
14983   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14984
14985
14986 # configure is writing to config.log, and then calls config.status.
14987 # config.status does its own redirection, appending to config.log.
14988 # Unfortunately, on DOS this fails, as config.log is still kept open
14989 # by configure, so config.status won't be able to write to it; its
14990 # output is simply discarded.  So we exec the FD to /dev/null,
14991 # effectively closing config.log, so it can be properly (re)opened and
14992 # appended to by config.status.  When coming back to configure, we
14993 # need to make the FD available again.
14994 if test "$no_create" != yes; then
14995   ac_cs_success=:
14996   ac_config_status_args=
14997   test "$silent" = yes &&
14998     ac_config_status_args="$ac_config_status_args --quiet"
14999   exec 5>/dev/null
15000   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15001   exec 5>>config.log
15002   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15003   # would make configure fail if this is the last instruction.
15004   $ac_cs_success || as_fn_exit 1
15005 fi
15006 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15007   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15008 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15009 fi
15010
15011
15012 # end of configure.raw