d62efe8fafc39925c3d73a780158b44b08bb5144
[platform/upstream/freetype2.git] / builds / unix / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for FreeType 2.10.4.
4 #
5 # Report bugs to <freetype@nongnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: freetype@nongnu.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='FreeType'
592 PACKAGE_TARNAME='freetype'
593 PACKAGE_VERSION='2.10.4'
594 PACKAGE_STRING='FreeType 2.10.4'
595 PACKAGE_BUGREPORT='freetype@nongnu.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="ftconfig.h.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_list=
636 ac_subst_vars='LTLIBOBJS
637 LIBOBJS
638 build_libtool_libs
639 wl
640 hardcode_libdir_flag_spec
641 LIBSSTATIC_CONFIG
642 LIBS_PRIVATE
643 REQUIRES_PRIVATE
644 ftmac_c
645 PYTHON_VERSION
646 PYTHON
647 LIB_CLOCK_GETTIME
648 BROTLI_LIBS
649 BROTLI_CFLAGS
650 HARFBUZZ_LIBS
651 HARFBUZZ_CFLAGS
652 LIBPNG_LIBS
653 LIBPNG_CFLAGS
654 BZIP2_LIBS
655 BZIP2_CFLAGS
656 ZLIB_LIBS
657 ZLIB_CFLAGS
658 XX_ANSIFLAGS
659 XX_CFLAGS
660 FTSYS_SRC
661 INSTALL_FT2_CONFIG
662 MKDIR_P
663 INSTALL_DATA
664 INSTALL_SCRIPT
665 INSTALL_PROGRAM
666 EXEEXT_BUILD
667 CC_BUILD
668 RC
669 LT_SYS_LIBRARY_PATH
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 MANIFEST_TOOL
676 AWK
677 RANLIB
678 STRIP
679 ac_ct_AR
680 AR
681 LN_S
682 NM
683 ac_ct_DUMPBIN
684 DUMPBIN
685 LD
686 FGREP
687 EGREP
688 GREP
689 SED
690 LIBTOOL
691 OBJDUMP
692 DLLTOOL
693 AS
694 PKG_CONFIG_LIBDIR
695 PKG_CONFIG_PATH
696 PKG_CONFIG
697 CPP
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 host_os
706 host_vendor
707 host_cpu
708 host
709 build_os
710 build_vendor
711 build_cpu
712 build
713 ft_version
714 version_info
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_shared
757 enable_static
758 with_pic
759 enable_fast_install
760 with_aix_soname
761 with_gnu_ld
762 with_sysroot
763 enable_libtool_lock
764 enable_biarch_config
765 enable_freetype_config
766 enable_largefile
767 enable_mmap
768 with_zlib
769 with_bzip2
770 with_png
771 with_harfbuzz
772 with_brotli
773 with_old_mac_fonts
774 with_fsspec
775 with_fsref
776 with_quickdraw_toolbox
777 with_quickdraw_carbon
778 with_ats
779 '
780       ac_precious_vars='build_alias
781 host_alias
782 target_alias
783 CC
784 CFLAGS
785 LDFLAGS
786 LIBS
787 CPPFLAGS
788 CPP
789 PKG_CONFIG
790 PKG_CONFIG_PATH
791 PKG_CONFIG_LIBDIR
792 LT_SYS_LIBRARY_PATH
793 ZLIB_CFLAGS
794 ZLIB_LIBS
795 BZIP2_CFLAGS
796 BZIP2_LIBS
797 LIBPNG_CFLAGS
798 LIBPNG_LIBS
799 HARFBUZZ_CFLAGS
800 HARFBUZZ_LIBS
801 BROTLI_CFLAGS
802 BROTLI_LIBS'
803
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
826
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
852
853 ac_prev=
854 ac_dashdash=
855 for ac_option
856 do
857   # If the previous option needs an argument, assign it.
858   if test -n "$ac_prev"; then
859     eval $ac_prev=\$ac_option
860     ac_prev=
861     continue
862   fi
863
864   case $ac_option in
865   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866   *=)   ac_optarg= ;;
867   *)    ac_optarg=yes ;;
868   esac
869
870   # Accept the important Cygnus configure options, so we can diagnose typos.
871
872   case $ac_dashdash$ac_option in
873   --)
874     ac_dashdash=yes ;;
875
876   -bindir | --bindir | --bindi | --bind | --bin | --bi)
877     ac_prev=bindir ;;
878   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879     bindir=$ac_optarg ;;
880
881   -build | --build | --buil | --bui | --bu)
882     ac_prev=build_alias ;;
883   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884     build_alias=$ac_optarg ;;
885
886   -cache-file | --cache-file | --cache-fil | --cache-fi \
887   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888     ac_prev=cache_file ;;
889   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891     cache_file=$ac_optarg ;;
892
893   --config-cache | -C)
894     cache_file=config.cache ;;
895
896   -datadir | --datadir | --datadi | --datad)
897     ac_prev=datadir ;;
898   -datadir=* | --datadir=* | --datadi=* | --datad=*)
899     datadir=$ac_optarg ;;
900
901   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902   | --dataroo | --dataro | --datar)
903     ac_prev=datarootdir ;;
904   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906     datarootdir=$ac_optarg ;;
907
908   -disable-* | --disable-*)
909     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910     # Reject names that are not valid shell variable names.
911     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912       as_fn_error $? "invalid feature name: $ac_useropt"
913     ac_useropt_orig=$ac_useropt
914     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915     case $ac_user_opts in
916       *"
917 "enable_$ac_useropt"
918 "*) ;;
919       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920          ac_unrecognized_sep=', ';;
921     esac
922     eval enable_$ac_useropt=no ;;
923
924   -docdir | --docdir | --docdi | --doc | --do)
925     ac_prev=docdir ;;
926   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927     docdir=$ac_optarg ;;
928
929   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930     ac_prev=dvidir ;;
931   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932     dvidir=$ac_optarg ;;
933
934   -enable-* | --enable-*)
935     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938       as_fn_error $? "invalid feature name: $ac_useropt"
939     ac_useropt_orig=$ac_useropt
940     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941     case $ac_user_opts in
942       *"
943 "enable_$ac_useropt"
944 "*) ;;
945       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946          ac_unrecognized_sep=', ';;
947     esac
948     eval enable_$ac_useropt=\$ac_optarg ;;
949
950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952   | --exec | --exe | --ex)
953     ac_prev=exec_prefix ;;
954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956   | --exec=* | --exe=* | --ex=*)
957     exec_prefix=$ac_optarg ;;
958
959   -gas | --gas | --ga | --g)
960     # Obsolete; use --with-gas.
961     with_gas=yes ;;
962
963   -help | --help | --hel | --he | -h)
964     ac_init_help=long ;;
965   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966     ac_init_help=recursive ;;
967   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968     ac_init_help=short ;;
969
970   -host | --host | --hos | --ho)
971     ac_prev=host_alias ;;
972   -host=* | --host=* | --hos=* | --ho=*)
973     host_alias=$ac_optarg ;;
974
975   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976     ac_prev=htmldir ;;
977   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978   | --ht=*)
979     htmldir=$ac_optarg ;;
980
981   -includedir | --includedir | --includedi | --included | --include \
982   | --includ | --inclu | --incl | --inc)
983     ac_prev=includedir ;;
984   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985   | --includ=* | --inclu=* | --incl=* | --inc=*)
986     includedir=$ac_optarg ;;
987
988   -infodir | --infodir | --infodi | --infod | --info | --inf)
989     ac_prev=infodir ;;
990   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991     infodir=$ac_optarg ;;
992
993   -libdir | --libdir | --libdi | --libd)
994     ac_prev=libdir ;;
995   -libdir=* | --libdir=* | --libdi=* | --libd=*)
996     libdir=$ac_optarg ;;
997
998   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999   | --libexe | --libex | --libe)
1000     ac_prev=libexecdir ;;
1001   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002   | --libexe=* | --libex=* | --libe=*)
1003     libexecdir=$ac_optarg ;;
1004
1005   -localedir | --localedir | --localedi | --localed | --locale)
1006     ac_prev=localedir ;;
1007   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008     localedir=$ac_optarg ;;
1009
1010   -localstatedir | --localstatedir | --localstatedi | --localstated \
1011   | --localstate | --localstat | --localsta | --localst | --locals)
1012     ac_prev=localstatedir ;;
1013   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015     localstatedir=$ac_optarg ;;
1016
1017   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018     ac_prev=mandir ;;
1019   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020     mandir=$ac_optarg ;;
1021
1022   -nfp | --nfp | --nf)
1023     # Obsolete; use --without-fp.
1024     with_fp=no ;;
1025
1026   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027   | --no-cr | --no-c | -n)
1028     no_create=yes ;;
1029
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     no_recursion=yes ;;
1033
1034   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036   | --oldin | --oldi | --old | --ol | --o)
1037     ac_prev=oldincludedir ;;
1038   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041     oldincludedir=$ac_optarg ;;
1042
1043   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044     ac_prev=prefix ;;
1045   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046     prefix=$ac_optarg ;;
1047
1048   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049   | --program-pre | --program-pr | --program-p)
1050     ac_prev=program_prefix ;;
1051   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053     program_prefix=$ac_optarg ;;
1054
1055   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056   | --program-suf | --program-su | --program-s)
1057     ac_prev=program_suffix ;;
1058   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060     program_suffix=$ac_optarg ;;
1061
1062   -program-transform-name | --program-transform-name \
1063   | --program-transform-nam | --program-transform-na \
1064   | --program-transform-n | --program-transform- \
1065   | --program-transform | --program-transfor \
1066   | --program-transfo | --program-transf \
1067   | --program-trans | --program-tran \
1068   | --progr-tra | --program-tr | --program-t)
1069     ac_prev=program_transform_name ;;
1070   -program-transform-name=* | --program-transform-name=* \
1071   | --program-transform-nam=* | --program-transform-na=* \
1072   | --program-transform-n=* | --program-transform-=* \
1073   | --program-transform=* | --program-transfor=* \
1074   | --program-transfo=* | --program-transf=* \
1075   | --program-trans=* | --program-tran=* \
1076   | --progr-tra=* | --program-tr=* | --program-t=*)
1077     program_transform_name=$ac_optarg ;;
1078
1079   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080     ac_prev=pdfdir ;;
1081   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082     pdfdir=$ac_optarg ;;
1083
1084   -psdir | --psdir | --psdi | --psd | --ps)
1085     ac_prev=psdir ;;
1086   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087     psdir=$ac_optarg ;;
1088
1089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090   | -silent | --silent | --silen | --sile | --sil)
1091     silent=yes ;;
1092
1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094     ac_prev=sbindir ;;
1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096   | --sbi=* | --sb=*)
1097     sbindir=$ac_optarg ;;
1098
1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101   | --sharedst | --shareds | --shared | --share | --shar \
1102   | --sha | --sh)
1103     ac_prev=sharedstatedir ;;
1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107   | --sha=* | --sh=*)
1108     sharedstatedir=$ac_optarg ;;
1109
1110   -site | --site | --sit)
1111     ac_prev=site ;;
1112   -site=* | --site=* | --sit=*)
1113     site=$ac_optarg ;;
1114
1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116     ac_prev=srcdir ;;
1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118     srcdir=$ac_optarg ;;
1119
1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121   | --syscon | --sysco | --sysc | --sys | --sy)
1122     ac_prev=sysconfdir ;;
1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125     sysconfdir=$ac_optarg ;;
1126
1127   -target | --target | --targe | --targ | --tar | --ta | --t)
1128     ac_prev=target_alias ;;
1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130     target_alias=$ac_optarg ;;
1131
1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133     verbose=yes ;;
1134
1135   -version | --version | --versio | --versi | --vers | -V)
1136     ac_init_version=: ;;
1137
1138   -with-* | --with-*)
1139     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142       as_fn_error $? "invalid package name: $ac_useropt"
1143     ac_useropt_orig=$ac_useropt
1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145     case $ac_user_opts in
1146       *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150          ac_unrecognized_sep=', ';;
1151     esac
1152     eval with_$ac_useropt=\$ac_optarg ;;
1153
1154   -without-* | --without-*)
1155     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158       as_fn_error $? "invalid package name: $ac_useropt"
1159     ac_useropt_orig=$ac_useropt
1160     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161     case $ac_user_opts in
1162       *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166          ac_unrecognized_sep=', ';;
1167     esac
1168     eval with_$ac_useropt=no ;;
1169
1170   --x)
1171     # Obsolete; use --with-x.
1172     with_x=yes ;;
1173
1174   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175   | --x-incl | --x-inc | --x-in | --x-i)
1176     ac_prev=x_includes ;;
1177   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179     x_includes=$ac_optarg ;;
1180
1181   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183     ac_prev=x_libraries ;;
1184   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186     x_libraries=$ac_optarg ;;
1187
1188   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1190     ;;
1191
1192   *=*)
1193     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194     # Reject names that are not valid shell variable names.
1195     case $ac_envvar in #(
1196       '' | [0-9]* | *[!_$as_cr_alnum]* )
1197       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198     esac
1199     eval $ac_envvar=\$ac_optarg
1200     export $ac_envvar ;;
1201
1202   *)
1203     # FIXME: should be removed in autoconf 3.0.
1204     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208     ;;
1209
1210   esac
1211 done
1212
1213 if test -n "$ac_prev"; then
1214   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215   as_fn_error $? "missing argument to $ac_option"
1216 fi
1217
1218 if test -n "$ac_unrecognized_opts"; then
1219   case $enable_option_checking in
1220     no) ;;
1221     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223   esac
1224 fi
1225
1226 # Check all directory arguments for consistency.
1227 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228                 datadir sysconfdir sharedstatedir localstatedir includedir \
1229                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230                 libdir localedir mandir
1231 do
1232   eval ac_val=\$$ac_var
1233   # Remove trailing slashes.
1234   case $ac_val in
1235     */ )
1236       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237       eval $ac_var=\$ac_val;;
1238   esac
1239   # Be sure to have absolute directory names.
1240   case $ac_val in
1241     [\\/$]* | ?:[\\/]* )  continue;;
1242     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243   esac
1244   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245 done
1246
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1250 build=$build_alias
1251 host=$host_alias
1252 target=$target_alias
1253
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256   if test "x$build_alias" = x; then
1257     cross_compiling=maybe
1258   elif test "x$build_alias" != "x$host_alias"; then
1259     cross_compiling=yes
1260   fi
1261 fi
1262
1263 ac_tool_prefix=
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266 test "$silent" = yes && exec 6>/dev/null
1267
1268
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272   as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274   as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279   ac_srcdir_defaulted=yes
1280   # Try the directory containing this script, then the parent directory.
1281   ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283          X"$as_myself" : 'X\(//\)[^/]' \| \
1284          X"$as_myself" : 'X\(//\)$' \| \
1285          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288             s//\1/
1289             q
1290           }
1291           /^X\(\/\/\)[^/].*/{
1292             s//\1/
1293             q
1294           }
1295           /^X\(\/\/\)$/{
1296             s//\1/
1297             q
1298           }
1299           /^X\(\/\).*/{
1300             s//\1/
1301             q
1302           }
1303           s/.*/./; q'`
1304   srcdir=$ac_confdir
1305   if test ! -r "$srcdir/$ac_unique_file"; then
1306     srcdir=..
1307   fi
1308 else
1309   ac_srcdir_defaulted=no
1310 fi
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314 fi
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318         pwd)`
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321   srcdir=.
1322 fi
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1326 case $srcdir in
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 esac
1329 for ac_var in $ac_precious_vars; do
1330   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331   eval ac_env_${ac_var}_value=\$${ac_var}
1332   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 done
1335
1336 #
1337 # Report the --help message.
1338 #
1339 if test "$ac_init_help" = "long"; then
1340   # Omit some internal or obsolete options to make the list less imposing.
1341   # This message is too long to be a string in the A/UX 3.1 sh.
1342   cat <<_ACEOF
1343 \`configure' configures FreeType 2.10.4 to adapt to many kinds of systems.
1344
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE.  See below for descriptions of some of the useful variables.
1349
1350 Defaults for the options are specified in brackets.
1351
1352 Configuration:
1353   -h, --help              display this help and exit
1354       --help=short        display options specific to this package
1355       --help=recursive    display the short help of all the included packages
1356   -V, --version           display version information and exit
1357   -q, --quiet, --silent   do not print \`checking ...' messages
1358       --cache-file=FILE   cache test results in FILE [disabled]
1359   -C, --config-cache      alias for \`--cache-file=config.cache'
1360   -n, --no-create         do not create output files
1361       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1362
1363 Installation directories:
1364   --prefix=PREFIX         install architecture-independent files in PREFIX
1365                           [$ac_default_prefix]
1366   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1367                           [PREFIX]
1368
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1373
1374 For better control, use the options below.
1375
1376 Fine tuning of the installation directories:
1377   --bindir=DIR            user executables [EPREFIX/bin]
1378   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1379   --libexecdir=DIR        program executables [EPREFIX/libexec]
1380   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1381   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1382   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1383   --libdir=DIR            object code libraries [EPREFIX/lib]
1384   --includedir=DIR        C header files [PREFIX/include]
1385   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1386   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1387   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1388   --infodir=DIR           info documentation [DATAROOTDIR/info]
1389   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1390   --mandir=DIR            man documentation [DATAROOTDIR/man]
1391   --docdir=DIR            documentation root [DATAROOTDIR/doc/freetype]
1392   --htmldir=DIR           html documentation [DOCDIR]
1393   --dvidir=DIR            dvi documentation [DOCDIR]
1394   --pdfdir=DIR            pdf documentation [DOCDIR]
1395   --psdir=DIR             ps documentation [DOCDIR]
1396 _ACEOF
1397
1398   cat <<\_ACEOF
1399
1400 System types:
1401   --build=BUILD     configure for building on BUILD [guessed]
1402   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1403 _ACEOF
1404 fi
1405
1406 if test -n "$ac_init_help"; then
1407   case $ac_init_help in
1408      short | recursive ) echo "Configuration of FreeType 2.10.4:";;
1409    esac
1410   cat <<\_ACEOF
1411
1412 Optional Features:
1413   --disable-option-checking  ignore unrecognized --enable/--with options
1414   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1415   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1416   --enable-shared[=PKGS]  build shared libraries [default=yes]
1417   --enable-static[=PKGS]  build static libraries [default=yes]
1418   --enable-fast-install[=PKGS]
1419                           optimize for fast installation [default=yes]
1420   --disable-libtool-lock  avoid locking (might break parallel builds)
1421   --enable-biarch-config  install biarch ftconfig.h to support multiple
1422                           architectures by single file
1423   --enable-freetype-config
1424                           install freetype-config
1425   --disable-largefile     omit support for large files
1426   --disable-mmap          do not check mmap() and do not use
1427
1428 Optional Packages:
1429   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1430   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1431   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1432                           both]
1433   --with-aix-soname=aix|svr4|both
1434                           shared library versioning (aka "SONAME") variant to
1435                           provide on AIX, [default=aix].
1436   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1437   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1438                           compiler's sysroot if not specified).
1439   --with-zlib=[yes|no|auto]
1440                           use system zlib instead of internal library
1441                           [default=auto]
1442   --with-bzip2=[yes|no|auto]
1443                           support bzip2 compressed fonts [default=auto]
1444   --with-png=[yes|no|auto]
1445                           support png compressed OpenType embedded bitmaps
1446                           [default=auto]
1447   --with-harfbuzz=[yes|no|auto]
1448                           improve auto-hinting of OpenType fonts
1449                           [default=auto]
1450   --with-brotli=[yes|no|auto]
1451                           support decompression of WOFF2 streams
1452                           [default=auto]
1453   --with-old-mac-fonts    allow Mac resource-based fonts to be used
1454   --with-fsspec           use obsolete FSSpec API of MacOS, if available
1455                           (default=yes)
1456   --with-fsref            use Carbon FSRef API of MacOS, if available
1457                           (default=yes)
1458   --with-quickdraw-toolbox
1459                           use MacOS QuickDraw in ToolBox, if available
1460                           (default=yes)
1461   --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1462                           (default=yes)
1463   --with-ats              use AppleTypeService, if available (default=yes)
1464
1465 Some influential environment variables:
1466   CC          C compiler command
1467   CFLAGS      C compiler flags
1468   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1469               nonstandard directory <lib dir>
1470   LIBS        libraries to pass to the linker, e.g. -l<library>
1471   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472               you have headers in a nonstandard directory <include dir>
1473   CPP         C preprocessor
1474   PKG_CONFIG  path to pkg-config utility
1475   PKG_CONFIG_PATH
1476               directories to add to pkg-config's search path
1477   PKG_CONFIG_LIBDIR
1478               path overriding pkg-config's built-in search path
1479   LT_SYS_LIBRARY_PATH
1480               User-defined run-time library search path.
1481   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1482   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1483   BZIP2_CFLAGS
1484               C compiler flags for BZIP2, overriding pkg-config
1485   BZIP2_LIBS  linker flags for BZIP2, overriding pkg-config
1486   LIBPNG_CFLAGS
1487               C compiler flags for LIBPNG, overriding pkg-config
1488   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1489   HARFBUZZ_CFLAGS
1490               C compiler flags for HARFBUZZ, overriding pkg-config
1491   HARFBUZZ_LIBS
1492               linker flags for HARFBUZZ, overriding pkg-config
1493   BROTLI_CFLAGS
1494               C compiler flags for BROTLI, overriding pkg-config
1495   BROTLI_LIBS linker flags for BROTLI, overriding pkg-config
1496
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1499
1500 Report bugs to <freetype@nongnu.org>.
1501 _ACEOF
1502 ac_status=$?
1503 fi
1504
1505 if test "$ac_init_help" = "recursive"; then
1506   # If there are subdirs, report their specific --help.
1507   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508     test -d "$ac_dir" ||
1509       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510       continue
1511     ac_builddir=.
1512
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *)
1516   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517   # A ".." for each directory in $ac_dir_suffix.
1518   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519   case $ac_top_builddir_sub in
1520   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522   esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1528
1529 case $srcdir in
1530   .)  # We are building in place.
1531     ac_srcdir=.
1532     ac_top_srcdir=$ac_top_builddir_sub
1533     ac_abs_top_srcdir=$ac_pwd ;;
1534   [\\/]* | ?:[\\/]* )  # Absolute name.
1535     ac_srcdir=$srcdir$ac_dir_suffix;
1536     ac_top_srcdir=$srcdir
1537     ac_abs_top_srcdir=$srcdir ;;
1538   *) # Relative name.
1539     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540     ac_top_srcdir=$ac_top_build_prefix$srcdir
1541     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545     cd "$ac_dir" || { ac_status=$?; continue; }
1546     # Check for guested configure.
1547     if test -f "$ac_srcdir/configure.gnu"; then
1548       echo &&
1549       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550     elif test -f "$ac_srcdir/configure"; then
1551       echo &&
1552       $SHELL "$ac_srcdir/configure" --help=recursive
1553     else
1554       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555     fi || ac_status=$?
1556     cd "$ac_pwd" || { ac_status=$?; break; }
1557   done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562   cat <<\_ACEOF
1563 FreeType configure 2.10.4
1564 generated by GNU Autoconf 2.69
1565
1566 Copyright (C) 2012 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570   exit
1571 fi
1572
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1576
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1581 {
1582   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583   rm -f conftest.$ac_objext
1584   if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587   *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591   (eval "$ac_compile") 2>conftest.err
1592   ac_status=$?
1593   if test -s conftest.err; then
1594     grep -v '^ *+' conftest.err >conftest.er1
1595     cat conftest.er1 >&5
1596     mv -f conftest.er1 conftest.err
1597   fi
1598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599   test $ac_status = 0; } && {
1600          test -z "$ac_c_werror_flag" ||
1601          test ! -s conftest.err
1602        } && test -s conftest.$ac_objext; then :
1603   ac_retval=0
1604 else
1605   $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608         ac_retval=1
1609 fi
1610   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611   as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_compile
1614
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_cpp ()
1619 {
1620   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621   if { { ac_try="$ac_cpp conftest.$ac_ext"
1622 case "(($ac_try" in
1623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624   *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629   ac_status=$?
1630   if test -s conftest.err; then
1631     grep -v '^ *+' conftest.err >conftest.er1
1632     cat conftest.er1 >&5
1633     mv -f conftest.er1 conftest.err
1634   fi
1635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636   test $ac_status = 0; } > conftest.i && {
1637          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638          test ! -s conftest.err
1639        }; then :
1640   ac_retval=0
1641 else
1642   $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645     ac_retval=1
1646 fi
1647   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648   as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_cpp
1651
1652 # ac_fn_c_try_link LINENO
1653 # -----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_link ()
1656 {
1657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658   rm -f conftest.$ac_objext conftest$ac_exeext
1659   if { { ac_try="$ac_link"
1660 case "(($ac_try" in
1661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662   *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666   (eval "$ac_link") 2>conftest.err
1667   ac_status=$?
1668   if test -s conftest.err; then
1669     grep -v '^ *+' conftest.err >conftest.er1
1670     cat conftest.er1 >&5
1671     mv -f conftest.er1 conftest.err
1672   fi
1673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674   test $ac_status = 0; } && {
1675          test -z "$ac_c_werror_flag" ||
1676          test ! -s conftest.err
1677        } && test -s conftest$ac_exeext && {
1678          test "$cross_compiling" = yes ||
1679          test -x conftest$ac_exeext
1680        }; then :
1681   ac_retval=0
1682 else
1683   $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686         ac_retval=1
1687 fi
1688   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1689   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1690   # interfere with the next link command; also delete a directory that is
1691   # left behind by Apple's compiler.  We do this before executing the actions.
1692   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694   as_fn_set_status $ac_retval
1695
1696 } # ac_fn_c_try_link
1697
1698 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699 # -------------------------------------------------------
1700 # Tests whether HEADER exists and can be compiled using the include files in
1701 # INCLUDES, setting the cache variable VAR accordingly.
1702 ac_fn_c_check_header_compile ()
1703 {
1704   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708   $as_echo_n "(cached) " >&6
1709 else
1710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h.  */
1712 $4
1713 #include <$2>
1714 _ACEOF
1715 if ac_fn_c_try_compile "$LINENO"; then :
1716   eval "$3=yes"
1717 else
1718   eval "$3=no"
1719 fi
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 fi
1722 eval ac_res=\$$3
1723                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1725   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726
1727 } # ac_fn_c_check_header_compile
1728
1729 # ac_fn_c_try_run LINENO
1730 # ----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 # that executables *can* be run.
1733 ac_fn_c_try_run ()
1734 {
1735   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736   if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739   *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743   (eval "$ac_link") 2>&5
1744   ac_status=$?
1745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747   { { case "(($ac_try" in
1748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749   *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753   (eval "$ac_try") 2>&5
1754   ac_status=$?
1755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756   test $ac_status = 0; }; }; then :
1757   ac_retval=0
1758 else
1759   $as_echo "$as_me: program exited with status $ac_status" >&5
1760        $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763        ac_retval=$ac_status
1764 fi
1765   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767   as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_run
1770
1771 # ac_fn_c_check_func LINENO FUNC VAR
1772 # ----------------------------------
1773 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774 ac_fn_c_check_func ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780   $as_echo_n "(cached) " >&6
1781 else
1782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h.  */
1784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1786 #define $2 innocuous_$2
1787
1788 /* System header to define __stub macros and hopefully few prototypes,
1789     which can conflict with char $2 (); below.
1790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791     <limits.h> exists even on freestanding compilers.  */
1792
1793 #ifdef __STDC__
1794 # include <limits.h>
1795 #else
1796 # include <assert.h>
1797 #endif
1798
1799 #undef $2
1800
1801 /* Override any GCC internal prototype to avoid an error.
1802    Use char because int might match the return type of a GCC
1803    builtin and then its argument prototype would still apply.  */
1804 #ifdef __cplusplus
1805 extern "C"
1806 #endif
1807 char $2 ();
1808 /* The GNU C library defines this for functions which it implements
1809     to always fail with ENOSYS.  Some functions are actually named
1810     something starting with __ and the normal name is an alias.  */
1811 #if defined __stub_$2 || defined __stub___$2
1812 choke me
1813 #endif
1814
1815 int
1816 main ()
1817 {
1818 return $2 ();
1819   ;
1820   return 0;
1821 }
1822 _ACEOF
1823 if ac_fn_c_try_link "$LINENO"; then :
1824   eval "$3=yes"
1825 else
1826   eval "$3=no"
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext \
1829     conftest$ac_exeext conftest.$ac_ext
1830 fi
1831 eval ac_res=\$$3
1832                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836 } # ac_fn_c_check_func
1837
1838 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1839 # -------------------------------------------------------
1840 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1841 # the include files in INCLUDES and setting the cache variable VAR
1842 # accordingly.
1843 ac_fn_c_check_header_mongrel ()
1844 {
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   if eval \${$3+:} false; then :
1847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850   $as_echo_n "(cached) " >&6
1851 fi
1852 eval ac_res=\$$3
1853                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 else
1856   # Is the header compilable?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1858 $as_echo_n "checking $2 usability... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h.  */
1861 $4
1862 #include <$2>
1863 _ACEOF
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865   ac_header_compiler=yes
1866 else
1867   ac_header_compiler=no
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1871 $as_echo "$ac_header_compiler" >&6; }
1872
1873 # Is the header present?
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1875 $as_echo_n "checking $2 presence... " >&6; }
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h.  */
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_cpp "$LINENO"; then :
1881   ac_header_preproc=yes
1882 else
1883   ac_header_preproc=no
1884 fi
1885 rm -f conftest.err conftest.i conftest.$ac_ext
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1887 $as_echo "$ac_header_preproc" >&6; }
1888
1889 # So?  What about this header?
1890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1891   yes:no: )
1892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1893 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1895 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1896     ;;
1897   no:yes:* )
1898     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1899 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1901 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1903 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1904     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1905 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1908 ( $as_echo "## ---------------------------------- ##
1909 ## Report this to freetype@nongnu.org ##
1910 ## ---------------------------------- ##"
1911      ) | sed "s/^/$as_me: WARNING:     /" >&2
1912     ;;
1913 esac
1914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917   $as_echo_n "(cached) " >&6
1918 else
1919   eval "$3=\$ac_header_compiler"
1920 fi
1921 eval ac_res=\$$3
1922                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 fi
1925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927 } # ac_fn_c_check_header_mongrel
1928
1929 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1930 # --------------------------------------------
1931 # Tries to find the compile-time value of EXPR in a program that includes
1932 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1933 # computed
1934 ac_fn_c_compute_int ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   if test "$cross_compiling" = yes; then
1938     # Depending upon the size, compute the lo and hi bounds.
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h.  */
1941 $4
1942 int
1943 main ()
1944 {
1945 static int test_array [1 - 2 * !(($2) >= 0)];
1946 test_array [0] = 0;
1947 return test_array [0];
1948
1949   ;
1950   return 0;
1951 }
1952 _ACEOF
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954   ac_lo=0 ac_mid=0
1955   while :; do
1956     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h.  */
1958 $4
1959 int
1960 main ()
1961 {
1962 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1963 test_array [0] = 0;
1964 return test_array [0];
1965
1966   ;
1967   return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971   ac_hi=$ac_mid; break
1972 else
1973   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1974                         if test $ac_lo -le $ac_mid; then
1975                           ac_lo= ac_hi=
1976                           break
1977                         fi
1978                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981   done
1982 else
1983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h.  */
1985 $4
1986 int
1987 main ()
1988 {
1989 static int test_array [1 - 2 * !(($2) < 0)];
1990 test_array [0] = 0;
1991 return test_array [0];
1992
1993   ;
1994   return 0;
1995 }
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998   ac_hi=-1 ac_mid=-1
1999   while :; do
2000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 $4
2003 int
2004 main ()
2005 {
2006 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2007 test_array [0] = 0;
2008 return test_array [0];
2009
2010   ;
2011   return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015   ac_lo=$ac_mid; break
2016 else
2017   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2018                         if test $ac_mid -le $ac_hi; then
2019                           ac_lo= ac_hi=
2020                           break
2021                         fi
2022                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2023 fi
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025   done
2026 else
2027   ac_lo= ac_hi=
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 # Binary search between lo and hi bounds.
2033 while test "x$ac_lo" != "x$ac_hi"; do
2034   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 $4
2038 int
2039 main ()
2040 {
2041 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2042 test_array [0] = 0;
2043 return test_array [0];
2044
2045   ;
2046   return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050   ac_hi=$ac_mid
2051 else
2052   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 done
2056 case $ac_lo in #((
2057 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2058 '') ac_retval=1 ;;
2059 esac
2060   else
2061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h.  */
2063 $4
2064 static long int longval () { return $2; }
2065 static unsigned long int ulongval () { return $2; }
2066 #include <stdio.h>
2067 #include <stdlib.h>
2068 int
2069 main ()
2070 {
2071
2072   FILE *f = fopen ("conftest.val", "w");
2073   if (! f)
2074     return 1;
2075   if (($2) < 0)
2076     {
2077       long int i = longval ();
2078       if (i != ($2))
2079         return 1;
2080       fprintf (f, "%ld", i);
2081     }
2082   else
2083     {
2084       unsigned long int i = ulongval ();
2085       if (i != ($2))
2086         return 1;
2087       fprintf (f, "%lu", i);
2088     }
2089   /* Do not output a trailing newline, as this causes \r\n confusion
2090      on some platforms.  */
2091   return ferror (f) || fclose (f) != 0;
2092
2093   ;
2094   return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_run "$LINENO"; then :
2098   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2099 else
2100   ac_retval=1
2101 fi
2102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2103   conftest.$ac_objext conftest.beam conftest.$ac_ext
2104 rm -f conftest.val
2105
2106   fi
2107   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108   as_fn_set_status $ac_retval
2109
2110 } # ac_fn_c_compute_int
2111
2112 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2113 # ---------------------------------------------
2114 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2115 # accordingly.
2116 ac_fn_c_check_decl ()
2117 {
2118   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119   as_decl_name=`echo $2|sed 's/ *(.*//'`
2120   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2122 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2123 if eval \${$3+:} false; then :
2124   $as_echo_n "(cached) " >&6
2125 else
2126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h.  */
2128 $4
2129 int
2130 main ()
2131 {
2132 #ifndef $as_decl_name
2133 #ifdef __cplusplus
2134   (void) $as_decl_use;
2135 #else
2136   (void) $as_decl_name;
2137 #endif
2138 #endif
2139
2140   ;
2141   return 0;
2142 }
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145   eval "$3=yes"
2146 else
2147   eval "$3=no"
2148 fi
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 fi
2151 eval ac_res=\$$3
2152                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155
2156 } # ac_fn_c_check_decl
2157 cat >config.log <<_ACEOF
2158 This file contains any messages produced by compilers while
2159 running configure, to aid debugging if configure makes a mistake.
2160
2161 It was created by FreeType $as_me 2.10.4, which was
2162 generated by GNU Autoconf 2.69.  Invocation command line was
2163
2164   $ $0 $@
2165
2166 _ACEOF
2167 exec 5>>config.log
2168 {
2169 cat <<_ASUNAME
2170 ## --------- ##
2171 ## Platform. ##
2172 ## --------- ##
2173
2174 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2175 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2176 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2177 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2178 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2179
2180 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2181 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2182
2183 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2184 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2185 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2186 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2187 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2188 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2189 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2190
2191 _ASUNAME
2192
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2195 do
2196   IFS=$as_save_IFS
2197   test -z "$as_dir" && as_dir=.
2198     $as_echo "PATH: $as_dir"
2199   done
2200 IFS=$as_save_IFS
2201
2202 } >&5
2203
2204 cat >&5 <<_ACEOF
2205
2206
2207 ## ----------- ##
2208 ## Core tests. ##
2209 ## ----------- ##
2210
2211 _ACEOF
2212
2213
2214 # Keep a trace of the command line.
2215 # Strip out --no-create and --no-recursion so they do not pile up.
2216 # Strip out --silent because we don't want to record it for future runs.
2217 # Also quote any args containing shell meta-characters.
2218 # Make two passes to allow for proper duplicate-argument suppression.
2219 ac_configure_args=
2220 ac_configure_args0=
2221 ac_configure_args1=
2222 ac_must_keep_next=false
2223 for ac_pass in 1 2
2224 do
2225   for ac_arg
2226   do
2227     case $ac_arg in
2228     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2229     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2230     | -silent | --silent | --silen | --sile | --sil)
2231       continue ;;
2232     *\'*)
2233       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2234     esac
2235     case $ac_pass in
2236     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2237     2)
2238       as_fn_append ac_configure_args1 " '$ac_arg'"
2239       if test $ac_must_keep_next = true; then
2240         ac_must_keep_next=false # Got value, back to normal.
2241       else
2242         case $ac_arg in
2243           *=* | --config-cache | -C | -disable-* | --disable-* \
2244           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2245           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2246           | -with-* | --with-* | -without-* | --without-* | --x)
2247             case "$ac_configure_args0 " in
2248               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2249             esac
2250             ;;
2251           -* ) ac_must_keep_next=true ;;
2252         esac
2253       fi
2254       as_fn_append ac_configure_args " '$ac_arg'"
2255       ;;
2256     esac
2257   done
2258 done
2259 { ac_configure_args0=; unset ac_configure_args0;}
2260 { ac_configure_args1=; unset ac_configure_args1;}
2261
2262 # When interrupted or exit'd, cleanup temporary files, and complete
2263 # config.log.  We remove comments because anyway the quotes in there
2264 # would cause problems or look ugly.
2265 # WARNING: Use '\'' to represent an apostrophe within the trap.
2266 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2267 trap 'exit_status=$?
2268   # Save into config.log some information that might help in debugging.
2269   {
2270     echo
2271
2272     $as_echo "## ---------------- ##
2273 ## Cache variables. ##
2274 ## ---------------- ##"
2275     echo
2276     # The following way of writing the cache mishandles newlines in values,
2277 (
2278   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2279     eval ac_val=\$$ac_var
2280     case $ac_val in #(
2281     *${as_nl}*)
2282       case $ac_var in #(
2283       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2284 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2285       esac
2286       case $ac_var in #(
2287       _ | IFS | as_nl) ;; #(
2288       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2289       *) { eval $ac_var=; unset $ac_var;} ;;
2290       esac ;;
2291     esac
2292   done
2293   (set) 2>&1 |
2294     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2295     *${as_nl}ac_space=\ *)
2296       sed -n \
2297         "s/'\''/'\''\\\\'\'''\''/g;
2298           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2299       ;; #(
2300     *)
2301       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2302       ;;
2303     esac |
2304     sort
2305 )
2306     echo
2307
2308     $as_echo "## ----------------- ##
2309 ## Output variables. ##
2310 ## ----------------- ##"
2311     echo
2312     for ac_var in $ac_subst_vars
2313     do
2314       eval ac_val=\$$ac_var
2315       case $ac_val in
2316       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317       esac
2318       $as_echo "$ac_var='\''$ac_val'\''"
2319     done | sort
2320     echo
2321
2322     if test -n "$ac_subst_files"; then
2323       $as_echo "## ------------------- ##
2324 ## File substitutions. ##
2325 ## ------------------- ##"
2326       echo
2327       for ac_var in $ac_subst_files
2328       do
2329         eval ac_val=\$$ac_var
2330         case $ac_val in
2331         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332         esac
2333         $as_echo "$ac_var='\''$ac_val'\''"
2334       done | sort
2335       echo
2336     fi
2337
2338     if test -s confdefs.h; then
2339       $as_echo "## ----------- ##
2340 ## confdefs.h. ##
2341 ## ----------- ##"
2342       echo
2343       cat confdefs.h
2344       echo
2345     fi
2346     test "$ac_signal" != 0 &&
2347       $as_echo "$as_me: caught signal $ac_signal"
2348     $as_echo "$as_me: exit $exit_status"
2349   } >&5
2350   rm -f core *.core core.conftest.* &&
2351     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2352     exit $exit_status
2353 ' 0
2354 for ac_signal in 1 2 13 15; do
2355   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2356 done
2357 ac_signal=0
2358
2359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2360 rm -f -r conftest* confdefs.h
2361
2362 $as_echo "/* confdefs.h */" > confdefs.h
2363
2364 # Predefined preprocessor variables.
2365
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_NAME "$PACKAGE_NAME"
2368 _ACEOF
2369
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2372 _ACEOF
2373
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2376 _ACEOF
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_STRING "$PACKAGE_STRING"
2380 _ACEOF
2381
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2384 _ACEOF
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_URL "$PACKAGE_URL"
2388 _ACEOF
2389
2390
2391 # Let the site file select an alternate cache file if it wants to.
2392 # Prefer an explicitly selected file to automatically selected ones.
2393 ac_site_file1=NONE
2394 ac_site_file2=NONE
2395 if test -n "$CONFIG_SITE"; then
2396   # We do not want a PATH search for config.site.
2397   case $CONFIG_SITE in #((
2398     -*)  ac_site_file1=./$CONFIG_SITE;;
2399     */*) ac_site_file1=$CONFIG_SITE;;
2400     *)   ac_site_file1=./$CONFIG_SITE;;
2401   esac
2402 elif test "x$prefix" != xNONE; then
2403   ac_site_file1=$prefix/share/config.site
2404   ac_site_file2=$prefix/etc/config.site
2405 else
2406   ac_site_file1=$ac_default_prefix/share/config.site
2407   ac_site_file2=$ac_default_prefix/etc/config.site
2408 fi
2409 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2410 do
2411   test "x$ac_site_file" = xNONE && continue
2412   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2413     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2414 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2415     sed 's/^/| /' "$ac_site_file" >&5
2416     . "$ac_site_file" \
2417       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419 as_fn_error $? "failed to load site script $ac_site_file
2420 See \`config.log' for more details" "$LINENO" 5; }
2421   fi
2422 done
2423
2424 if test -r "$cache_file"; then
2425   # Some versions of bash will fail to source /dev/null (special files
2426   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2427   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2428     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2429 $as_echo "$as_me: loading cache $cache_file" >&6;}
2430     case $cache_file in
2431       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2432       *)                      . "./$cache_file";;
2433     esac
2434   fi
2435 else
2436   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2437 $as_echo "$as_me: creating cache $cache_file" >&6;}
2438   >$cache_file
2439 fi
2440
2441 as_fn_append ac_header_list " stdlib.h"
2442 as_fn_append ac_header_list " unistd.h"
2443 as_fn_append ac_header_list " sys/param.h"
2444 # Check that the precious variables saved in the cache have kept the same
2445 # value.
2446 ac_cache_corrupted=false
2447 for ac_var in $ac_precious_vars; do
2448   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2449   eval ac_new_set=\$ac_env_${ac_var}_set
2450   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2451   eval ac_new_val=\$ac_env_${ac_var}_value
2452   case $ac_old_set,$ac_new_set in
2453     set,)
2454       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2455 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2456       ac_cache_corrupted=: ;;
2457     ,set)
2458       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2459 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2460       ac_cache_corrupted=: ;;
2461     ,);;
2462     *)
2463       if test "x$ac_old_val" != "x$ac_new_val"; then
2464         # differences in whitespace do not lead to failure.
2465         ac_old_val_w=`echo x $ac_old_val`
2466         ac_new_val_w=`echo x $ac_new_val`
2467         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2468           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2469 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2470           ac_cache_corrupted=:
2471         else
2472           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2473 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2474           eval $ac_var=\$ac_old_val
2475         fi
2476         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2477 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2478         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2479 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2480       fi;;
2481   esac
2482   # Pass precious variables to config.status.
2483   if test "$ac_new_set" = set; then
2484     case $ac_new_val in
2485     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2486     *) ac_arg=$ac_var=$ac_new_val ;;
2487     esac
2488     case " $ac_configure_args " in
2489       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2490       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2491     esac
2492   fi
2493 done
2494 if $ac_cache_corrupted; then
2495   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2497   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2498 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2499   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2500 fi
2501 ## -------------------- ##
2502 ## Main body of script. ##
2503 ## -------------------- ##
2504
2505 ac_ext=c
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510
2511
2512
2513
2514
2515 # Don't forget to update `docs/VERSIONS.TXT'!
2516
2517 version_info='23:4:17'
2518
2519 ft_version=`echo $version_info | tr : .`
2520
2521
2522
2523 # checks for system type
2524
2525 ac_aux_dir=
2526 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2527   if test -f "$ac_dir/install-sh"; then
2528     ac_aux_dir=$ac_dir
2529     ac_install_sh="$ac_aux_dir/install-sh -c"
2530     break
2531   elif test -f "$ac_dir/install.sh"; then
2532     ac_aux_dir=$ac_dir
2533     ac_install_sh="$ac_aux_dir/install.sh -c"
2534     break
2535   elif test -f "$ac_dir/shtool"; then
2536     ac_aux_dir=$ac_dir
2537     ac_install_sh="$ac_aux_dir/shtool install -c"
2538     break
2539   fi
2540 done
2541 if test -z "$ac_aux_dir"; then
2542   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2543 fi
2544
2545 # These three variables are undocumented and unsupported,
2546 # and are intended to be withdrawn in a future Autoconf release.
2547 # They can cause serious problems if a builder's source tree is in a directory
2548 # whose full name contains unusual characters.
2549 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2550 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2551 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2552
2553
2554 # Make sure we can run config.sub.
2555 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2556   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2557
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2559 $as_echo_n "checking build system type... " >&6; }
2560 if ${ac_cv_build+:} false; then :
2561   $as_echo_n "(cached) " >&6
2562 else
2563   ac_build_alias=$build_alias
2564 test "x$ac_build_alias" = x &&
2565   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2566 test "x$ac_build_alias" = x &&
2567   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2568 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2569   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2570
2571 fi
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2573 $as_echo "$ac_cv_build" >&6; }
2574 case $ac_cv_build in
2575 *-*-*) ;;
2576 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2577 esac
2578 build=$ac_cv_build
2579 ac_save_IFS=$IFS; IFS='-'
2580 set x $ac_cv_build
2581 shift
2582 build_cpu=$1
2583 build_vendor=$2
2584 shift; shift
2585 # Remember, the first character of IFS is used to create $*,
2586 # except with old shells:
2587 build_os=$*
2588 IFS=$ac_save_IFS
2589 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2590
2591
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2593 $as_echo_n "checking host system type... " >&6; }
2594 if ${ac_cv_host+:} false; then :
2595   $as_echo_n "(cached) " >&6
2596 else
2597   if test "x$host_alias" = x; then
2598   ac_cv_host=$ac_cv_build
2599 else
2600   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2601     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2602 fi
2603
2604 fi
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2606 $as_echo "$ac_cv_host" >&6; }
2607 case $ac_cv_host in
2608 *-*-*) ;;
2609 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2610 esac
2611 host=$ac_cv_host
2612 ac_save_IFS=$IFS; IFS='-'
2613 set x $ac_cv_host
2614 shift
2615 host_cpu=$1
2616 host_vendor=$2
2617 shift; shift
2618 # Remember, the first character of IFS is used to create $*,
2619 # except with old shells:
2620 host_os=$*
2621 IFS=$ac_save_IFS
2622 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2623
2624
2625
2626
2627 # checks for programs
2628
2629 ac_ext=c
2630 ac_cpp='$CPP $CPPFLAGS'
2631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2634 if test -n "$ac_tool_prefix"; then
2635   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_CC+:} false; then :
2640   $as_echo_n "(cached) " >&6
2641 else
2642   if test -n "$CC"; then
2643   ac_cv_prog_CC="$CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648   IFS=$as_save_IFS
2649   test -z "$as_dir" && as_dir=.
2650     for ac_exec_ext in '' $ac_executable_extensions; do
2651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654     break 2
2655   fi
2656 done
2657   done
2658 IFS=$as_save_IFS
2659
2660 fi
2661 fi
2662 CC=$ac_cv_prog_CC
2663 if test -n "$CC"; then
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665 $as_echo "$CC" >&6; }
2666 else
2667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2669 fi
2670
2671
2672 fi
2673 if test -z "$ac_cv_prog_CC"; then
2674   ac_ct_CC=$CC
2675   # Extract the first word of "gcc", so it can be a program name with args.
2676 set dummy gcc; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2680   $as_echo_n "(cached) " >&6
2681 else
2682   if test -n "$ac_ct_CC"; then
2683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688   IFS=$as_save_IFS
2689   test -z "$as_dir" && as_dir=.
2690     for ac_exec_ext in '' $ac_executable_extensions; do
2691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692     ac_cv_prog_ac_ct_CC="gcc"
2693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694     break 2
2695   fi
2696 done
2697   done
2698 IFS=$as_save_IFS
2699
2700 fi
2701 fi
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2705 $as_echo "$ac_ct_CC" >&6; }
2706 else
2707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2709 fi
2710
2711   if test "x$ac_ct_CC" = x; then
2712     CC=""
2713   else
2714     case $cross_compiling:$ac_tool_warned in
2715 yes:)
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2718 ac_tool_warned=yes ;;
2719 esac
2720     CC=$ac_ct_CC
2721   fi
2722 else
2723   CC="$ac_cv_prog_CC"
2724 fi
2725
2726 if test -z "$CC"; then
2727           if test -n "$ac_tool_prefix"; then
2728     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}cc; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if ${ac_cv_prog_CC+:} false; then :
2733   $as_echo_n "(cached) " >&6
2734 else
2735   if test -n "$CC"; then
2736   ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741   IFS=$as_save_IFS
2742   test -z "$as_dir" && as_dir=.
2743     for ac_exec_ext in '' $ac_executable_extensions; do
2744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745     ac_cv_prog_CC="${ac_tool_prefix}cc"
2746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747     break 2
2748   fi
2749 done
2750   done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758 $as_echo "$CC" >&6; }
2759 else
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2762 fi
2763
2764
2765   fi
2766 fi
2767 if test -z "$CC"; then
2768   # Extract the first word of "cc", so it can be a program name with args.
2769 set dummy cc; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_CC+:} false; then :
2773   $as_echo_n "(cached) " >&6
2774 else
2775   if test -n "$CC"; then
2776   ac_cv_prog_CC="$CC" # Let the user override the test.
2777 else
2778   ac_prog_rejected=no
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782   IFS=$as_save_IFS
2783   test -z "$as_dir" && as_dir=.
2784     for ac_exec_ext in '' $ac_executable_extensions; do
2785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2787        ac_prog_rejected=yes
2788        continue
2789      fi
2790     ac_cv_prog_CC="cc"
2791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792     break 2
2793   fi
2794 done
2795   done
2796 IFS=$as_save_IFS
2797
2798 if test $ac_prog_rejected = yes; then
2799   # We found a bogon in the path, so make sure we never use it.
2800   set dummy $ac_cv_prog_CC
2801   shift
2802   if test $# != 0; then
2803     # We chose a different compiler from the bogus one.
2804     # However, it has the same basename, so the bogon will be chosen
2805     # first if we set CC to just the basename; use the full file name.
2806     shift
2807     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2808   fi
2809 fi
2810 fi
2811 fi
2812 CC=$ac_cv_prog_CC
2813 if test -n "$CC"; then
2814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815 $as_echo "$CC" >&6; }
2816 else
2817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2819 fi
2820
2821
2822 fi
2823 if test -z "$CC"; then
2824   if test -n "$ac_tool_prefix"; then
2825   for ac_prog in cl.exe
2826   do
2827     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_CC+:} false; then :
2832   $as_echo_n "(cached) " >&6
2833 else
2834   if test -n "$CC"; then
2835   ac_cv_prog_CC="$CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840   IFS=$as_save_IFS
2841   test -z "$as_dir" && as_dir=.
2842     for ac_exec_ext in '' $ac_executable_extensions; do
2843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846     break 2
2847   fi
2848 done
2849   done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 CC=$ac_cv_prog_CC
2855 if test -n "$CC"; then
2856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
2858 else
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861 fi
2862
2863
2864     test -n "$CC" && break
2865   done
2866 fi
2867 if test -z "$CC"; then
2868   ac_ct_CC=$CC
2869   for ac_prog in cl.exe
2870 do
2871   # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy $ac_prog; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2876   $as_echo_n "(cached) " >&6
2877 else
2878   if test -n "$ac_ct_CC"; then
2879   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884   IFS=$as_save_IFS
2885   test -z "$as_dir" && as_dir=.
2886     for ac_exec_ext in '' $ac_executable_extensions; do
2887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888     ac_cv_prog_ac_ct_CC="$ac_prog"
2889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890     break 2
2891   fi
2892 done
2893   done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2901 $as_echo "$ac_ct_CC" >&6; }
2902 else
2903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2905 fi
2906
2907
2908   test -n "$ac_ct_CC" && break
2909 done
2910
2911   if test "x$ac_ct_CC" = x; then
2912     CC=""
2913   else
2914     case $cross_compiling:$ac_tool_warned in
2915 yes:)
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 ac_tool_warned=yes ;;
2919 esac
2920     CC=$ac_ct_CC
2921   fi
2922 fi
2923
2924 fi
2925
2926
2927 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 as_fn_error $? "no acceptable C compiler found in \$PATH
2930 See \`config.log' for more details" "$LINENO" 5; }
2931
2932 # Provide some information about the compiler.
2933 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2934 set X $ac_compile
2935 ac_compiler=$2
2936 for ac_option in --version -v -V -qversion; do
2937   { { ac_try="$ac_compiler $ac_option >&5"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2945   ac_status=$?
2946   if test -s conftest.err; then
2947     sed '10a\
2948 ... rest of stderr output deleted ...
2949          10q' conftest.err >conftest.er1
2950     cat conftest.er1 >&5
2951   fi
2952   rm -f conftest.er1 conftest.err
2953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2954   test $ac_status = 0; }
2955 done
2956
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958 /* end confdefs.h.  */
2959
2960 int
2961 main ()
2962 {
2963
2964   ;
2965   return 0;
2966 }
2967 _ACEOF
2968 ac_clean_files_save=$ac_clean_files
2969 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2970 # Try to create an executable without -o first, disregard a.out.
2971 # It will help us diagnose broken compilers, and finding out an intuition
2972 # of exeext.
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2974 $as_echo_n "checking whether the C compiler works... " >&6; }
2975 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2976
2977 # The possible output files:
2978 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2979
2980 ac_rmfiles=
2981 for ac_file in $ac_files
2982 do
2983   case $ac_file in
2984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2985     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2986   esac
2987 done
2988 rm -f $ac_rmfiles
2989
2990 if { { ac_try="$ac_link_default"
2991 case "(($ac_try" in
2992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993   *) ac_try_echo=$ac_try;;
2994 esac
2995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997   (eval "$ac_link_default") 2>&5
2998   ac_status=$?
2999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000   test $ac_status = 0; }; then :
3001   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3002 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3003 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3004 # so that the user can short-circuit this test for compilers unknown to
3005 # Autoconf.
3006 for ac_file in $ac_files ''
3007 do
3008   test -f "$ac_file" || continue
3009   case $ac_file in
3010     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3011         ;;
3012     [ab].out )
3013         # We found the default executable, but exeext='' is most
3014         # certainly right.
3015         break;;
3016     *.* )
3017         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3018         then :; else
3019            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3020         fi
3021         # We set ac_cv_exeext here because the later test for it is not
3022         # safe: cross compilers may not add the suffix if given an `-o'
3023         # argument, so we may need to know it at that point already.
3024         # Even if this section looks crufty: it has the advantage of
3025         # actually working.
3026         break;;
3027     * )
3028         break;;
3029   esac
3030 done
3031 test "$ac_cv_exeext" = no && ac_cv_exeext=
3032
3033 else
3034   ac_file=''
3035 fi
3036 if test -z "$ac_file"; then :
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 $as_echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3041
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error 77 "C compiler cannot create executables
3045 See \`config.log' for more details" "$LINENO" 5; }
3046 else
3047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048 $as_echo "yes" >&6; }
3049 fi
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3051 $as_echo_n "checking for C compiler default output file name... " >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3053 $as_echo "$ac_file" >&6; }
3054 ac_exeext=$ac_cv_exeext
3055
3056 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3057 ac_clean_files=$ac_clean_files_save
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3059 $as_echo_n "checking for suffix of executables... " >&6; }
3060 if { { ac_try="$ac_link"
3061 case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067   (eval "$ac_link") 2>&5
3068   ac_status=$?
3069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070   test $ac_status = 0; }; then :
3071   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3072 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3073 # work properly (i.e., refer to `conftest.exe'), while it won't with
3074 # `rm'.
3075 for ac_file in conftest.exe conftest conftest.*; do
3076   test -f "$ac_file" || continue
3077   case $ac_file in
3078     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3079     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080           break;;
3081     * ) break;;
3082   esac
3083 done
3084 else
3085   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3088 See \`config.log' for more details" "$LINENO" 5; }
3089 fi
3090 rm -f conftest conftest$ac_cv_exeext
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3092 $as_echo "$ac_cv_exeext" >&6; }
3093
3094 rm -f conftest.$ac_ext
3095 EXEEXT=$ac_cv_exeext
3096 ac_exeext=$EXEEXT
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h.  */
3099 #include <stdio.h>
3100 int
3101 main ()
3102 {
3103 FILE *f = fopen ("conftest.out", "w");
3104  return ferror (f) || fclose (f) != 0;
3105
3106   ;
3107   return 0;
3108 }
3109 _ACEOF
3110 ac_clean_files="$ac_clean_files conftest.out"
3111 # Check that the compiler produces executables we can run.  If not, either
3112 # the compiler is broken, or we cross compile.
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3114 $as_echo_n "checking whether we are cross compiling... " >&6; }
3115 if test "$cross_compiling" != yes; then
3116   { { ac_try="$ac_link"
3117 case "(($ac_try" in
3118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119   *) ac_try_echo=$ac_try;;
3120 esac
3121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123   (eval "$ac_link") 2>&5
3124   ac_status=$?
3125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126   test $ac_status = 0; }
3127   if { ac_try='./conftest$ac_cv_exeext'
3128   { { case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133 $as_echo "$ac_try_echo"; } >&5
3134   (eval "$ac_try") 2>&5
3135   ac_status=$?
3136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137   test $ac_status = 0; }; }; then
3138     cross_compiling=no
3139   else
3140     if test "$cross_compiling" = maybe; then
3141         cross_compiling=yes
3142     else
3143         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error $? "cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details" "$LINENO" 5; }
3148     fi
3149   fi
3150 fi
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3152 $as_echo "$cross_compiling" >&6; }
3153
3154 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3155 ac_clean_files=$ac_clean_files_save
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3157 $as_echo_n "checking for suffix of object files... " >&6; }
3158 if ${ac_cv_objext+:} false; then :
3159   $as_echo_n "(cached) " >&6
3160 else
3161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h.  */
3163
3164 int
3165 main ()
3166 {
3167
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.o conftest.obj
3173 if { { ac_try="$ac_compile"
3174 case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180   (eval "$ac_compile") 2>&5
3181   ac_status=$?
3182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183   test $ac_status = 0; }; then :
3184   for ac_file in conftest.o conftest.obj conftest.*; do
3185   test -f "$ac_file" || continue;
3186   case $ac_file in
3187     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3188     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3189        break;;
3190   esac
3191 done
3192 else
3193   $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "cannot compute suffix of object files: cannot compile
3199 See \`config.log' for more details" "$LINENO" 5; }
3200 fi
3201 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3202 fi
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3204 $as_echo "$ac_cv_objext" >&6; }
3205 OBJEXT=$ac_cv_objext
3206 ac_objext=$OBJEXT
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3208 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3209 if ${ac_cv_c_compiler_gnu+:} false; then :
3210   $as_echo_n "(cached) " >&6
3211 else
3212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h.  */
3214
3215 int
3216 main ()
3217 {
3218 #ifndef __GNUC__
3219        choke me
3220 #endif
3221
3222   ;
3223   return 0;
3224 }
3225 _ACEOF
3226 if ac_fn_c_try_compile "$LINENO"; then :
3227   ac_compiler_gnu=yes
3228 else
3229   ac_compiler_gnu=no
3230 fi
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3233
3234 fi
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3236 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3237 if test $ac_compiler_gnu = yes; then
3238   GCC=yes
3239 else
3240   GCC=
3241 fi
3242 ac_test_CFLAGS=${CFLAGS+set}
3243 ac_save_CFLAGS=$CFLAGS
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3245 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3246 if ${ac_cv_prog_cc_g+:} false; then :
3247   $as_echo_n "(cached) " >&6
3248 else
3249   ac_save_c_werror_flag=$ac_c_werror_flag
3250    ac_c_werror_flag=yes
3251    ac_cv_prog_cc_g=no
3252    CFLAGS="-g"
3253    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h.  */
3255
3256 int
3257 main ()
3258 {
3259
3260   ;
3261   return 0;
3262 }
3263 _ACEOF
3264 if ac_fn_c_try_compile "$LINENO"; then :
3265   ac_cv_prog_cc_g=yes
3266 else
3267   CFLAGS=""
3268       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h.  */
3270
3271 int
3272 main ()
3273 {
3274
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 if ac_fn_c_try_compile "$LINENO"; then :
3280
3281 else
3282   ac_c_werror_flag=$ac_save_c_werror_flag
3283          CFLAGS="-g"
3284          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h.  */
3286
3287 int
3288 main ()
3289 {
3290
3291   ;
3292   return 0;
3293 }
3294 _ACEOF
3295 if ac_fn_c_try_compile "$LINENO"; then :
3296   ac_cv_prog_cc_g=yes
3297 fi
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 fi
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 fi
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303    ac_c_werror_flag=$ac_save_c_werror_flag
3304 fi
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3306 $as_echo "$ac_cv_prog_cc_g" >&6; }
3307 if test "$ac_test_CFLAGS" = set; then
3308   CFLAGS=$ac_save_CFLAGS
3309 elif test $ac_cv_prog_cc_g = yes; then
3310   if test "$GCC" = yes; then
3311     CFLAGS="-g -O2"
3312   else
3313     CFLAGS="-g"
3314   fi
3315 else
3316   if test "$GCC" = yes; then
3317     CFLAGS="-O2"
3318   else
3319     CFLAGS=
3320   fi
3321 fi
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3323 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3324 if ${ac_cv_prog_cc_c89+:} false; then :
3325   $as_echo_n "(cached) " >&6
3326 else
3327   ac_cv_prog_cc_c89=no
3328 ac_save_CC=$CC
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h.  */
3331 #include <stdarg.h>
3332 #include <stdio.h>
3333 struct stat;
3334 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3335 struct buf { int x; };
3336 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3337 static char *e (p, i)
3338      char **p;
3339      int i;
3340 {
3341   return p[i];
3342 }
3343 static char *f (char * (*g) (char **, int), char **p, ...)
3344 {
3345   char *s;
3346   va_list v;
3347   va_start (v,p);
3348   s = g (p, va_arg (v,int));
3349   va_end (v);
3350   return s;
3351 }
3352
3353 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3354    function prototypes and stuff, but not '\xHH' hex character constants.
3355    These don't provoke an error unfortunately, instead are silently treated
3356    as 'x'.  The following induces an error, until -std is added to get
3357    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3358    array size at least.  It's necessary to write '\x00'==0 to get something
3359    that's true only with -std.  */
3360 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3361
3362 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3363    inside strings and character constants.  */
3364 #define FOO(x) 'x'
3365 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3366
3367 int test (int i, double x);
3368 struct s1 {int (*f) (int a);};
3369 struct s2 {int (*f) (double a);};
3370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3371 int argc;
3372 char **argv;
3373 int
3374 main ()
3375 {
3376 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3382         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3383 do
3384   CC="$ac_save_CC $ac_arg"
3385   if ac_fn_c_try_compile "$LINENO"; then :
3386   ac_cv_prog_cc_c89=$ac_arg
3387 fi
3388 rm -f core conftest.err conftest.$ac_objext
3389   test "x$ac_cv_prog_cc_c89" != "xno" && break
3390 done
3391 rm -f conftest.$ac_ext
3392 CC=$ac_save_CC
3393
3394 fi
3395 # AC_CACHE_VAL
3396 case "x$ac_cv_prog_cc_c89" in
3397   x)
3398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3399 $as_echo "none needed" >&6; } ;;
3400   xno)
3401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3402 $as_echo "unsupported" >&6; } ;;
3403   *)
3404     CC="$CC $ac_cv_prog_cc_c89"
3405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3406 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3407 esac
3408 if test "x$ac_cv_prog_cc_c89" != xno; then :
3409
3410 fi
3411
3412 ac_ext=c
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417
3418 ac_ext=c
3419 ac_cpp='$CPP $CPPFLAGS'
3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3424 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3425 # On Suns, sometimes $CPP names a directory.
3426 if test -n "$CPP" && test -d "$CPP"; then
3427   CPP=
3428 fi
3429 if test -z "$CPP"; then
3430   if ${ac_cv_prog_CPP+:} false; then :
3431   $as_echo_n "(cached) " >&6
3432 else
3433       # Double quotes because CPP needs to be expanded
3434     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3435     do
3436       ac_preproc_ok=false
3437 for ac_c_preproc_warn_flag in '' yes
3438 do
3439   # Use a header file that comes with gcc, so configuring glibc
3440   # with a fresh cross-compiler works.
3441   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3442   # <limits.h> exists even on freestanding compilers.
3443   # On the NeXT, cc -E runs the code through the compiler's parser,
3444   # not just through cpp. "Syntax error" is here to catch this case.
3445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h.  */
3447 #ifdef __STDC__
3448 # include <limits.h>
3449 #else
3450 # include <assert.h>
3451 #endif
3452                      Syntax error
3453 _ACEOF
3454 if ac_fn_c_try_cpp "$LINENO"; then :
3455
3456 else
3457   # Broken: fails on valid input.
3458 continue
3459 fi
3460 rm -f conftest.err conftest.i conftest.$ac_ext
3461
3462   # OK, works on sane cases.  Now check whether nonexistent headers
3463   # can be detected and how.
3464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h.  */
3466 #include <ac_nonexistent.h>
3467 _ACEOF
3468 if ac_fn_c_try_cpp "$LINENO"; then :
3469   # Broken: success on invalid input.
3470 continue
3471 else
3472   # Passes both tests.
3473 ac_preproc_ok=:
3474 break
3475 fi
3476 rm -f conftest.err conftest.i conftest.$ac_ext
3477
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.i conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then :
3482   break
3483 fi
3484
3485     done
3486     ac_cv_prog_CPP=$CPP
3487
3488 fi
3489   CPP=$ac_cv_prog_CPP
3490 else
3491   ac_cv_prog_CPP=$CPP
3492 fi
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3494 $as_echo "$CPP" >&6; }
3495 ac_preproc_ok=false
3496 for ac_c_preproc_warn_flag in '' yes
3497 do
3498   # Use a header file that comes with gcc, so configuring glibc
3499   # with a fresh cross-compiler works.
3500   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3501   # <limits.h> exists even on freestanding compilers.
3502   # On the NeXT, cc -E runs the code through the compiler's parser,
3503   # not just through cpp. "Syntax error" is here to catch this case.
3504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h.  */
3506 #ifdef __STDC__
3507 # include <limits.h>
3508 #else
3509 # include <assert.h>
3510 #endif
3511                      Syntax error
3512 _ACEOF
3513 if ac_fn_c_try_cpp "$LINENO"; then :
3514
3515 else
3516   # Broken: fails on valid input.
3517 continue
3518 fi
3519 rm -f conftest.err conftest.i conftest.$ac_ext
3520
3521   # OK, works on sane cases.  Now check whether nonexistent headers
3522   # can be detected and how.
3523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h.  */
3525 #include <ac_nonexistent.h>
3526 _ACEOF
3527 if ac_fn_c_try_cpp "$LINENO"; then :
3528   # Broken: success on invalid input.
3529 continue
3530 else
3531   # Passes both tests.
3532 ac_preproc_ok=:
3533 break
3534 fi
3535 rm -f conftest.err conftest.i conftest.$ac_ext
3536
3537 done
3538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539 rm -f conftest.i conftest.err conftest.$ac_ext
3540 if $ac_preproc_ok; then :
3541
3542 else
3543   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3546 See \`config.log' for more details" "$LINENO" 5; }
3547 fi
3548
3549 ac_ext=c
3550 ac_cpp='$CPP $CPPFLAGS'
3551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3565         if test -n "$ac_tool_prefix"; then
3566   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3567 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3571   $as_echo_n "(cached) " >&6
3572 else
3573   case $PKG_CONFIG in
3574   [\\/]* | ?:[\\/]*)
3575   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3576   ;;
3577   *)
3578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3580 do
3581   IFS=$as_save_IFS
3582   test -z "$as_dir" && as_dir=.
3583     for ac_exec_ext in '' $ac_executable_extensions; do
3584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587     break 2
3588   fi
3589 done
3590   done
3591 IFS=$as_save_IFS
3592
3593   ;;
3594 esac
3595 fi
3596 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3597 if test -n "$PKG_CONFIG"; then
3598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3599 $as_echo "$PKG_CONFIG" >&6; }
3600 else
3601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3603 fi
3604
3605
3606 fi
3607 if test -z "$ac_cv_path_PKG_CONFIG"; then
3608   ac_pt_PKG_CONFIG=$PKG_CONFIG
3609   # Extract the first word of "pkg-config", so it can be a program name with args.
3610 set dummy pkg-config; ac_word=$2
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 $as_echo_n "checking for $ac_word... " >&6; }
3613 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3614   $as_echo_n "(cached) " >&6
3615 else
3616   case $ac_pt_PKG_CONFIG in
3617   [\\/]* | ?:[\\/]*)
3618   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3619   ;;
3620   *)
3621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624   IFS=$as_save_IFS
3625   test -z "$as_dir" && as_dir=.
3626     for ac_exec_ext in '' $ac_executable_extensions; do
3627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630     break 2
3631   fi
3632 done
3633   done
3634 IFS=$as_save_IFS
3635
3636   ;;
3637 esac
3638 fi
3639 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3640 if test -n "$ac_pt_PKG_CONFIG"; then
3641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3642 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3643 else
3644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3646 fi
3647
3648   if test "x$ac_pt_PKG_CONFIG" = x; then
3649     PKG_CONFIG=""
3650   else
3651     case $cross_compiling:$ac_tool_warned in
3652 yes:)
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3655 ac_tool_warned=yes ;;
3656 esac
3657     PKG_CONFIG=$ac_pt_PKG_CONFIG
3658   fi
3659 else
3660   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3661 fi
3662
3663 fi
3664 if test -n "$PKG_CONFIG"; then
3665         _pkg_min_version=0.24
3666         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3667 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3668         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3669                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3671         else
3672                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3674                 PKG_CONFIG=""
3675         fi
3676 fi
3677
3678 case `pwd` in
3679   *\ * | *\     *)
3680     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3681 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3682 esac
3683
3684
3685
3686 macro_version='2.4.6'
3687 macro_revision='2.4.6'
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701 ltmain=$ac_aux_dir/ltmain.sh
3702
3703 # Backslashify metacharacters that are still active within
3704 # double-quoted strings.
3705 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3706
3707 # Same as above, but do not quote variable references.
3708 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3709
3710 # Sed substitution to delay expansion of an escaped shell variable in a
3711 # double_quote_subst'ed string.
3712 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3713
3714 # Sed substitution to delay expansion of an escaped single quote.
3715 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3716
3717 # Sed substitution to avoid accidental globbing in evaled expressions
3718 no_glob_subst='s/\*/\\\*/g'
3719
3720 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3721 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3722 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3723
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3725 $as_echo_n "checking how to print strings... " >&6; }
3726 # Test print first, because it will be a builtin if present.
3727 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3728    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3729   ECHO='print -r --'
3730 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3731   ECHO='printf %s\n'
3732 else
3733   # Use this function as a fallback that always works.
3734   func_fallback_echo ()
3735   {
3736     eval 'cat <<_LTECHO_EOF
3737 $1
3738 _LTECHO_EOF'
3739   }
3740   ECHO='func_fallback_echo'
3741 fi
3742
3743 # func_echo_all arg...
3744 # Invoke $ECHO with all args, space-separated.
3745 func_echo_all ()
3746 {
3747     $ECHO ""
3748 }
3749
3750 case $ECHO in
3751   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3752 $as_echo "printf" >&6; } ;;
3753   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3754 $as_echo "print -r" >&6; } ;;
3755   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3756 $as_echo "cat" >&6; } ;;
3757 esac
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3773 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3774 if ${ac_cv_path_SED+:} false; then :
3775   $as_echo_n "(cached) " >&6
3776 else
3777             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3778      for ac_i in 1 2 3 4 5 6 7; do
3779        ac_script="$ac_script$as_nl$ac_script"
3780      done
3781      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3782      { ac_script=; unset ac_script;}
3783      if test -z "$SED"; then
3784   ac_path_SED_found=false
3785   # Loop through the user's path and test for each of PROGNAME-LIST
3786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3788 do
3789   IFS=$as_save_IFS
3790   test -z "$as_dir" && as_dir=.
3791     for ac_prog in sed gsed; do
3792     for ac_exec_ext in '' $ac_executable_extensions; do
3793       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3794       as_fn_executable_p "$ac_path_SED" || continue
3795 # Check for GNU ac_path_SED and select it if it is found.
3796   # Check for GNU $ac_path_SED
3797 case `"$ac_path_SED" --version 2>&1` in
3798 *GNU*)
3799   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3800 *)
3801   ac_count=0
3802   $as_echo_n 0123456789 >"conftest.in"
3803   while :
3804   do
3805     cat "conftest.in" "conftest.in" >"conftest.tmp"
3806     mv "conftest.tmp" "conftest.in"
3807     cp "conftest.in" "conftest.nl"
3808     $as_echo '' >> "conftest.nl"
3809     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3810     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3811     as_fn_arith $ac_count + 1 && ac_count=$as_val
3812     if test $ac_count -gt ${ac_path_SED_max-0}; then
3813       # Best one so far, save it but keep looking for a better one
3814       ac_cv_path_SED="$ac_path_SED"
3815       ac_path_SED_max=$ac_count
3816     fi
3817     # 10*(2^10) chars as input seems more than enough
3818     test $ac_count -gt 10 && break
3819   done
3820   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3821 esac
3822
3823       $ac_path_SED_found && break 3
3824     done
3825   done
3826   done
3827 IFS=$as_save_IFS
3828   if test -z "$ac_cv_path_SED"; then
3829     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3830   fi
3831 else
3832   ac_cv_path_SED=$SED
3833 fi
3834
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3837 $as_echo "$ac_cv_path_SED" >&6; }
3838  SED="$ac_cv_path_SED"
3839   rm -f conftest.sed
3840
3841 test -z "$SED" && SED=sed
3842 Xsed="$SED -e 1s/^X//"
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3855 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3856 if ${ac_cv_path_GREP+:} false; then :
3857   $as_echo_n "(cached) " >&6
3858 else
3859   if test -z "$GREP"; then
3860   ac_path_GREP_found=false
3861   # Loop through the user's path and test for each of PROGNAME-LIST
3862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3864 do
3865   IFS=$as_save_IFS
3866   test -z "$as_dir" && as_dir=.
3867     for ac_prog in grep ggrep; do
3868     for ac_exec_ext in '' $ac_executable_extensions; do
3869       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3870       as_fn_executable_p "$ac_path_GREP" || continue
3871 # Check for GNU ac_path_GREP and select it if it is found.
3872   # Check for GNU $ac_path_GREP
3873 case `"$ac_path_GREP" --version 2>&1` in
3874 *GNU*)
3875   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3876 *)
3877   ac_count=0
3878   $as_echo_n 0123456789 >"conftest.in"
3879   while :
3880   do
3881     cat "conftest.in" "conftest.in" >"conftest.tmp"
3882     mv "conftest.tmp" "conftest.in"
3883     cp "conftest.in" "conftest.nl"
3884     $as_echo 'GREP' >> "conftest.nl"
3885     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3886     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3887     as_fn_arith $ac_count + 1 && ac_count=$as_val
3888     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3889       # Best one so far, save it but keep looking for a better one
3890       ac_cv_path_GREP="$ac_path_GREP"
3891       ac_path_GREP_max=$ac_count
3892     fi
3893     # 10*(2^10) chars as input seems more than enough
3894     test $ac_count -gt 10 && break
3895   done
3896   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3897 esac
3898
3899       $ac_path_GREP_found && break 3
3900     done
3901   done
3902   done
3903 IFS=$as_save_IFS
3904   if test -z "$ac_cv_path_GREP"; then
3905     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3906   fi
3907 else
3908   ac_cv_path_GREP=$GREP
3909 fi
3910
3911 fi
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3913 $as_echo "$ac_cv_path_GREP" >&6; }
3914  GREP="$ac_cv_path_GREP"
3915
3916
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3918 $as_echo_n "checking for egrep... " >&6; }
3919 if ${ac_cv_path_EGREP+:} false; then :
3920   $as_echo_n "(cached) " >&6
3921 else
3922   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3923    then ac_cv_path_EGREP="$GREP -E"
3924    else
3925      if test -z "$EGREP"; then
3926   ac_path_EGREP_found=false
3927   # Loop through the user's path and test for each of PROGNAME-LIST
3928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3930 do
3931   IFS=$as_save_IFS
3932   test -z "$as_dir" && as_dir=.
3933     for ac_prog in egrep; do
3934     for ac_exec_ext in '' $ac_executable_extensions; do
3935       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3936       as_fn_executable_p "$ac_path_EGREP" || continue
3937 # Check for GNU ac_path_EGREP and select it if it is found.
3938   # Check for GNU $ac_path_EGREP
3939 case `"$ac_path_EGREP" --version 2>&1` in
3940 *GNU*)
3941   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3942 *)
3943   ac_count=0
3944   $as_echo_n 0123456789 >"conftest.in"
3945   while :
3946   do
3947     cat "conftest.in" "conftest.in" >"conftest.tmp"
3948     mv "conftest.tmp" "conftest.in"
3949     cp "conftest.in" "conftest.nl"
3950     $as_echo 'EGREP' >> "conftest.nl"
3951     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3952     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3953     as_fn_arith $ac_count + 1 && ac_count=$as_val
3954     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3955       # Best one so far, save it but keep looking for a better one
3956       ac_cv_path_EGREP="$ac_path_EGREP"
3957       ac_path_EGREP_max=$ac_count
3958     fi
3959     # 10*(2^10) chars as input seems more than enough
3960     test $ac_count -gt 10 && break
3961   done
3962   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3963 esac
3964
3965       $ac_path_EGREP_found && break 3
3966     done
3967   done
3968   done
3969 IFS=$as_save_IFS
3970   if test -z "$ac_cv_path_EGREP"; then
3971     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3972   fi
3973 else
3974   ac_cv_path_EGREP=$EGREP
3975 fi
3976
3977    fi
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3980 $as_echo "$ac_cv_path_EGREP" >&6; }
3981  EGREP="$ac_cv_path_EGREP"
3982
3983
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3985 $as_echo_n "checking for fgrep... " >&6; }
3986 if ${ac_cv_path_FGREP+:} false; then :
3987   $as_echo_n "(cached) " >&6
3988 else
3989   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3990    then ac_cv_path_FGREP="$GREP -F"
3991    else
3992      if test -z "$FGREP"; then
3993   ac_path_FGREP_found=false
3994   # Loop through the user's path and test for each of PROGNAME-LIST
3995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997 do
3998   IFS=$as_save_IFS
3999   test -z "$as_dir" && as_dir=.
4000     for ac_prog in fgrep; do
4001     for ac_exec_ext in '' $ac_executable_extensions; do
4002       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4003       as_fn_executable_p "$ac_path_FGREP" || continue
4004 # Check for GNU ac_path_FGREP and select it if it is found.
4005   # Check for GNU $ac_path_FGREP
4006 case `"$ac_path_FGREP" --version 2>&1` in
4007 *GNU*)
4008   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4009 *)
4010   ac_count=0
4011   $as_echo_n 0123456789 >"conftest.in"
4012   while :
4013   do
4014     cat "conftest.in" "conftest.in" >"conftest.tmp"
4015     mv "conftest.tmp" "conftest.in"
4016     cp "conftest.in" "conftest.nl"
4017     $as_echo 'FGREP' >> "conftest.nl"
4018     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4019     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4020     as_fn_arith $ac_count + 1 && ac_count=$as_val
4021     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4022       # Best one so far, save it but keep looking for a better one
4023       ac_cv_path_FGREP="$ac_path_FGREP"
4024       ac_path_FGREP_max=$ac_count
4025     fi
4026     # 10*(2^10) chars as input seems more than enough
4027     test $ac_count -gt 10 && break
4028   done
4029   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030 esac
4031
4032       $ac_path_FGREP_found && break 3
4033     done
4034   done
4035   done
4036 IFS=$as_save_IFS
4037   if test -z "$ac_cv_path_FGREP"; then
4038     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4039   fi
4040 else
4041   ac_cv_path_FGREP=$FGREP
4042 fi
4043
4044    fi
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4047 $as_echo "$ac_cv_path_FGREP" >&6; }
4048  FGREP="$ac_cv_path_FGREP"
4049
4050
4051 test -z "$GREP" && GREP=grep
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071 # Check whether --with-gnu-ld was given.
4072 if test "${with_gnu_ld+set}" = set; then :
4073   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4074 else
4075   with_gnu_ld=no
4076 fi
4077
4078 ac_prog=ld
4079 if test yes = "$GCC"; then
4080   # Check if gcc -print-prog-name=ld gives a path.
4081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4082 $as_echo_n "checking for ld used by $CC... " >&6; }
4083   case $host in
4084   *-*-mingw*)
4085     # gcc leaves a trailing carriage return, which upsets mingw
4086     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4087   *)
4088     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4089   esac
4090   case $ac_prog in
4091     # Accept absolute paths.
4092     [\\/]* | ?:[\\/]*)
4093       re_direlt='/[^/][^/]*/\.\./'
4094       # Canonicalize the pathname of ld
4095       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4096       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4097         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4098       done
4099       test -z "$LD" && LD=$ac_prog
4100       ;;
4101   "")
4102     # If it fails, then pretend we aren't using GCC.
4103     ac_prog=ld
4104     ;;
4105   *)
4106     # If it is relative, then search for the first ld in PATH.
4107     with_gnu_ld=unknown
4108     ;;
4109   esac
4110 elif test yes = "$with_gnu_ld"; then
4111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4112 $as_echo_n "checking for GNU ld... " >&6; }
4113 else
4114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4115 $as_echo_n "checking for non-GNU ld... " >&6; }
4116 fi
4117 if ${lt_cv_path_LD+:} false; then :
4118   $as_echo_n "(cached) " >&6
4119 else
4120   if test -z "$LD"; then
4121   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4122   for ac_dir in $PATH; do
4123     IFS=$lt_save_ifs
4124     test -z "$ac_dir" && ac_dir=.
4125     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4126       lt_cv_path_LD=$ac_dir/$ac_prog
4127       # Check to see if the program is GNU ld.  I'd rather use --version,
4128       # but apparently some variants of GNU ld only accept -v.
4129       # Break only if it was the GNU/non-GNU ld that we prefer.
4130       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4131       *GNU* | *'with BFD'*)
4132         test no != "$with_gnu_ld" && break
4133         ;;
4134       *)
4135         test yes != "$with_gnu_ld" && break
4136         ;;
4137       esac
4138     fi
4139   done
4140   IFS=$lt_save_ifs
4141 else
4142   lt_cv_path_LD=$LD # Let the user override the test with a path.
4143 fi
4144 fi
4145
4146 LD=$lt_cv_path_LD
4147 if test -n "$LD"; then
4148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4149 $as_echo "$LD" >&6; }
4150 else
4151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4153 fi
4154 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4156 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4157 if ${lt_cv_prog_gnu_ld+:} false; then :
4158   $as_echo_n "(cached) " >&6
4159 else
4160   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4161 case `$LD -v 2>&1 </dev/null` in
4162 *GNU* | *'with BFD'*)
4163   lt_cv_prog_gnu_ld=yes
4164   ;;
4165 *)
4166   lt_cv_prog_gnu_ld=no
4167   ;;
4168 esac
4169 fi
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4171 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4172 with_gnu_ld=$lt_cv_prog_gnu_ld
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4183 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4184 if ${lt_cv_path_NM+:} false; then :
4185   $as_echo_n "(cached) " >&6
4186 else
4187   if test -n "$NM"; then
4188   # Let the user override the test.
4189   lt_cv_path_NM=$NM
4190 else
4191   lt_nm_to_check=${ac_tool_prefix}nm
4192   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4193     lt_nm_to_check="$lt_nm_to_check nm"
4194   fi
4195   for lt_tmp_nm in $lt_nm_to_check; do
4196     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4197     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4198       IFS=$lt_save_ifs
4199       test -z "$ac_dir" && ac_dir=.
4200       tmp_nm=$ac_dir/$lt_tmp_nm
4201       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4202         # Check to see if the nm accepts a BSD-compat flag.
4203         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4204         #   nm: unknown option "B" ignored
4205         # Tru64's nm complains that /dev/null is an invalid object file
4206         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4207         case $build_os in
4208         mingw*) lt_bad_file=conftest.nm/nofile ;;
4209         *) lt_bad_file=/dev/null ;;
4210         esac
4211         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4212         *$lt_bad_file* | *'Invalid file or object type'*)
4213           lt_cv_path_NM="$tmp_nm -B"
4214           break 2
4215           ;;
4216         *)
4217           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4218           */dev/null*)
4219             lt_cv_path_NM="$tmp_nm -p"
4220             break 2
4221             ;;
4222           *)
4223             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4224             continue # so that we can try to find one that supports BSD flags
4225             ;;
4226           esac
4227           ;;
4228         esac
4229       fi
4230     done
4231     IFS=$lt_save_ifs
4232   done
4233   : ${lt_cv_path_NM=no}
4234 fi
4235 fi
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4237 $as_echo "$lt_cv_path_NM" >&6; }
4238 if test no != "$lt_cv_path_NM"; then
4239   NM=$lt_cv_path_NM
4240 else
4241   # Didn't find any BSD compatible name lister, look for dumpbin.
4242   if test -n "$DUMPBIN"; then :
4243     # Let the user override the test.
4244   else
4245     if test -n "$ac_tool_prefix"; then
4246   for ac_prog in dumpbin "link -dump"
4247   do
4248     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4249 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4251 $as_echo_n "checking for $ac_word... " >&6; }
4252 if ${ac_cv_prog_DUMPBIN+:} false; then :
4253   $as_echo_n "(cached) " >&6
4254 else
4255   if test -n "$DUMPBIN"; then
4256   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4257 else
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4260 do
4261   IFS=$as_save_IFS
4262   test -z "$as_dir" && as_dir=.
4263     for ac_exec_ext in '' $ac_executable_extensions; do
4264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4265     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4267     break 2
4268   fi
4269 done
4270   done
4271 IFS=$as_save_IFS
4272
4273 fi
4274 fi
4275 DUMPBIN=$ac_cv_prog_DUMPBIN
4276 if test -n "$DUMPBIN"; then
4277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4278 $as_echo "$DUMPBIN" >&6; }
4279 else
4280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 $as_echo "no" >&6; }
4282 fi
4283
4284
4285     test -n "$DUMPBIN" && break
4286   done
4287 fi
4288 if test -z "$DUMPBIN"; then
4289   ac_ct_DUMPBIN=$DUMPBIN
4290   for ac_prog in dumpbin "link -dump"
4291 do
4292   # Extract the first word of "$ac_prog", so it can be a program name with args.
4293 set dummy $ac_prog; ac_word=$2
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295 $as_echo_n "checking for $ac_word... " >&6; }
4296 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4297   $as_echo_n "(cached) " >&6
4298 else
4299   if test -n "$ac_ct_DUMPBIN"; then
4300   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4301 else
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4304 do
4305   IFS=$as_save_IFS
4306   test -z "$as_dir" && as_dir=.
4307     for ac_exec_ext in '' $ac_executable_extensions; do
4308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4309     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311     break 2
4312   fi
4313 done
4314   done
4315 IFS=$as_save_IFS
4316
4317 fi
4318 fi
4319 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4320 if test -n "$ac_ct_DUMPBIN"; then
4321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4322 $as_echo "$ac_ct_DUMPBIN" >&6; }
4323 else
4324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 $as_echo "no" >&6; }
4326 fi
4327
4328
4329   test -n "$ac_ct_DUMPBIN" && break
4330 done
4331
4332   if test "x$ac_ct_DUMPBIN" = x; then
4333     DUMPBIN=":"
4334   else
4335     case $cross_compiling:$ac_tool_warned in
4336 yes:)
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4339 ac_tool_warned=yes ;;
4340 esac
4341     DUMPBIN=$ac_ct_DUMPBIN
4342   fi
4343 fi
4344
4345     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4346     *COFF*)
4347       DUMPBIN="$DUMPBIN -symbols -headers"
4348       ;;
4349     *)
4350       DUMPBIN=:
4351       ;;
4352     esac
4353   fi
4354
4355   if test : != "$DUMPBIN"; then
4356     NM=$DUMPBIN
4357   fi
4358 fi
4359 test -z "$NM" && NM=nm
4360
4361
4362
4363
4364
4365
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4367 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4368 if ${lt_cv_nm_interface+:} false; then :
4369   $as_echo_n "(cached) " >&6
4370 else
4371   lt_cv_nm_interface="BSD nm"
4372   echo "int some_variable = 0;" > conftest.$ac_ext
4373   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4374   (eval "$ac_compile" 2>conftest.err)
4375   cat conftest.err >&5
4376   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4377   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4378   cat conftest.err >&5
4379   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4380   cat conftest.out >&5
4381   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4382     lt_cv_nm_interface="MS dumpbin"
4383   fi
4384   rm -f conftest*
4385 fi
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4387 $as_echo "$lt_cv_nm_interface" >&6; }
4388
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4390 $as_echo_n "checking whether ln -s works... " >&6; }
4391 LN_S=$as_ln_s
4392 if test "$LN_S" = "ln -s"; then
4393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4394 $as_echo "yes" >&6; }
4395 else
4396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4397 $as_echo "no, using $LN_S" >&6; }
4398 fi
4399
4400 # find the maximum length of command line arguments
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4402 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4403 if ${lt_cv_sys_max_cmd_len+:} false; then :
4404   $as_echo_n "(cached) " >&6
4405 else
4406     i=0
4407   teststring=ABCD
4408
4409   case $build_os in
4410   msdosdjgpp*)
4411     # On DJGPP, this test can blow up pretty badly due to problems in libc
4412     # (any single argument exceeding 2000 bytes causes a buffer overrun
4413     # during glob expansion).  Even if it were fixed, the result of this
4414     # check would be larger than it should be.
4415     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4416     ;;
4417
4418   gnu*)
4419     # Under GNU Hurd, this test is not required because there is
4420     # no limit to the length of command line arguments.
4421     # Libtool will interpret -1 as no limit whatsoever
4422     lt_cv_sys_max_cmd_len=-1;
4423     ;;
4424
4425   cygwin* | mingw* | cegcc*)
4426     # On Win9x/ME, this test blows up -- it succeeds, but takes
4427     # about 5 minutes as the teststring grows exponentially.
4428     # Worse, since 9x/ME are not pre-emptively multitasking,
4429     # you end up with a "frozen" computer, even though with patience
4430     # the test eventually succeeds (with a max line length of 256k).
4431     # Instead, let's just punt: use the minimum linelength reported by
4432     # all of the supported platforms: 8192 (on NT/2K/XP).
4433     lt_cv_sys_max_cmd_len=8192;
4434     ;;
4435
4436   mint*)
4437     # On MiNT this can take a long time and run out of memory.
4438     lt_cv_sys_max_cmd_len=8192;
4439     ;;
4440
4441   amigaos*)
4442     # On AmigaOS with pdksh, this test takes hours, literally.
4443     # So we just punt and use a minimum line length of 8192.
4444     lt_cv_sys_max_cmd_len=8192;
4445     ;;
4446
4447   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4448     # This has been around since 386BSD, at least.  Likely further.
4449     if test -x /sbin/sysctl; then
4450       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4451     elif test -x /usr/sbin/sysctl; then
4452       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4453     else
4454       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4455     fi
4456     # And add a safety zone
4457     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4458     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4459     ;;
4460
4461   interix*)
4462     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4463     lt_cv_sys_max_cmd_len=196608
4464     ;;
4465
4466   os2*)
4467     # The test takes a long time on OS/2.
4468     lt_cv_sys_max_cmd_len=8192
4469     ;;
4470
4471   osf*)
4472     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4473     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4474     # nice to cause kernel panics so lets avoid the loop below.
4475     # First set a reasonable default.
4476     lt_cv_sys_max_cmd_len=16384
4477     #
4478     if test -x /sbin/sysconfig; then
4479       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4480         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4481       esac
4482     fi
4483     ;;
4484   sco3.2v5*)
4485     lt_cv_sys_max_cmd_len=102400
4486     ;;
4487   sysv5* | sco5v6* | sysv4.2uw2*)
4488     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4489     if test -n "$kargmax"; then
4490       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4491     else
4492       lt_cv_sys_max_cmd_len=32768
4493     fi
4494     ;;
4495   *)
4496     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4497     if test -n "$lt_cv_sys_max_cmd_len" && \
4498        test undefined != "$lt_cv_sys_max_cmd_len"; then
4499       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4500       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4501     else
4502       # Make teststring a little bigger before we do anything with it.
4503       # a 1K string should be a reasonable start.
4504       for i in 1 2 3 4 5 6 7 8; do
4505         teststring=$teststring$teststring
4506       done
4507       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4508       # If test is not a shell built-in, we'll probably end up computing a
4509       # maximum length that is only half of the actual maximum length, but
4510       # we can't tell.
4511       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4512                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4513               test 17 != "$i" # 1/2 MB should be enough
4514       do
4515         i=`expr $i + 1`
4516         teststring=$teststring$teststring
4517       done
4518       # Only check the string length outside the loop.
4519       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4520       teststring=
4521       # Add a significant safety factor because C++ compilers can tack on
4522       # massive amounts of additional arguments before passing them to the
4523       # linker.  It appears as though 1/2 is a usable value.
4524       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4525     fi
4526     ;;
4527   esac
4528
4529 fi
4530
4531 if test -n "$lt_cv_sys_max_cmd_len"; then
4532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4533 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4534 else
4535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4536 $as_echo "none" >&6; }
4537 fi
4538 max_cmd_len=$lt_cv_sys_max_cmd_len
4539
4540
4541
4542
4543
4544
4545 : ${CP="cp -f"}
4546 : ${MV="mv -f"}
4547 : ${RM="rm -f"}
4548
4549 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4550   lt_unset=unset
4551 else
4552   lt_unset=false
4553 fi
4554
4555
4556
4557
4558
4559 # test EBCDIC or ASCII
4560 case `echo X|tr X '\101'` in
4561  A) # ASCII based system
4562     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4563   lt_SP2NL='tr \040 \012'
4564   lt_NL2SP='tr \015\012 \040\040'
4565   ;;
4566  *) # EBCDIC based system
4567   lt_SP2NL='tr \100 \n'
4568   lt_NL2SP='tr \r\n \100\100'
4569   ;;
4570 esac
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4581 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4582 if ${lt_cv_to_host_file_cmd+:} false; then :
4583   $as_echo_n "(cached) " >&6
4584 else
4585   case $host in
4586   *-*-mingw* )
4587     case $build in
4588       *-*-mingw* ) # actually msys
4589         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4590         ;;
4591       *-*-cygwin* )
4592         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4593         ;;
4594       * ) # otherwise, assume *nix
4595         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4596         ;;
4597     esac
4598     ;;
4599   *-*-cygwin* )
4600     case $build in
4601       *-*-mingw* ) # actually msys
4602         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4603         ;;
4604       *-*-cygwin* )
4605         lt_cv_to_host_file_cmd=func_convert_file_noop
4606         ;;
4607       * ) # otherwise, assume *nix
4608         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4609         ;;
4610     esac
4611     ;;
4612   * ) # unhandled hosts (and "normal" native builds)
4613     lt_cv_to_host_file_cmd=func_convert_file_noop
4614     ;;
4615 esac
4616
4617 fi
4618
4619 to_host_file_cmd=$lt_cv_to_host_file_cmd
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4621 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4622
4623
4624
4625
4626
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4628 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4629 if ${lt_cv_to_tool_file_cmd+:} false; then :
4630   $as_echo_n "(cached) " >&6
4631 else
4632   #assume ordinary cross tools, or native build.
4633 lt_cv_to_tool_file_cmd=func_convert_file_noop
4634 case $host in
4635   *-*-mingw* )
4636     case $build in
4637       *-*-mingw* ) # actually msys
4638         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4639         ;;
4640     esac
4641     ;;
4642 esac
4643
4644 fi
4645
4646 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4648 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4649
4650
4651
4652
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4655 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4656 if ${lt_cv_ld_reload_flag+:} false; then :
4657   $as_echo_n "(cached) " >&6
4658 else
4659   lt_cv_ld_reload_flag='-r'
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4662 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4663 reload_flag=$lt_cv_ld_reload_flag
4664 case $reload_flag in
4665 "" | " "*) ;;
4666 *) reload_flag=" $reload_flag" ;;
4667 esac
4668 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4669 case $host_os in
4670   cygwin* | mingw* | pw32* | cegcc*)
4671     if test yes != "$GCC"; then
4672       reload_cmds=false
4673     fi
4674     ;;
4675   darwin*)
4676     if test yes = "$GCC"; then
4677       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4678     else
4679       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4680     fi
4681     ;;
4682 esac
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692 if test -n "$ac_tool_prefix"; then
4693   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4694 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if ${ac_cv_prog_OBJDUMP+:} false; then :
4698   $as_echo_n "(cached) " >&6
4699 else
4700   if test -n "$OBJDUMP"; then
4701   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706   IFS=$as_save_IFS
4707   test -z "$as_dir" && as_dir=.
4708     for ac_exec_ext in '' $ac_executable_extensions; do
4709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4710     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712     break 2
4713   fi
4714 done
4715   done
4716 IFS=$as_save_IFS
4717
4718 fi
4719 fi
4720 OBJDUMP=$ac_cv_prog_OBJDUMP
4721 if test -n "$OBJDUMP"; then
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4723 $as_echo "$OBJDUMP" >&6; }
4724 else
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4727 fi
4728
4729
4730 fi
4731 if test -z "$ac_cv_prog_OBJDUMP"; then
4732   ac_ct_OBJDUMP=$OBJDUMP
4733   # Extract the first word of "objdump", so it can be a program name with args.
4734 set dummy objdump; ac_word=$2
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4738   $as_echo_n "(cached) " >&6
4739 else
4740   if test -n "$ac_ct_OBJDUMP"; then
4741   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746   IFS=$as_save_IFS
4747   test -z "$as_dir" && as_dir=.
4748     for ac_exec_ext in '' $ac_executable_extensions; do
4749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4750     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752     break 2
4753   fi
4754 done
4755   done
4756 IFS=$as_save_IFS
4757
4758 fi
4759 fi
4760 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4761 if test -n "$ac_ct_OBJDUMP"; then
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4763 $as_echo "$ac_ct_OBJDUMP" >&6; }
4764 else
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4767 fi
4768
4769   if test "x$ac_ct_OBJDUMP" = x; then
4770     OBJDUMP="false"
4771   else
4772     case $cross_compiling:$ac_tool_warned in
4773 yes:)
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4776 ac_tool_warned=yes ;;
4777 esac
4778     OBJDUMP=$ac_ct_OBJDUMP
4779   fi
4780 else
4781   OBJDUMP="$ac_cv_prog_OBJDUMP"
4782 fi
4783
4784 test -z "$OBJDUMP" && OBJDUMP=objdump
4785
4786
4787
4788
4789
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4792 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4793 if ${lt_cv_deplibs_check_method+:} false; then :
4794   $as_echo_n "(cached) " >&6
4795 else
4796   lt_cv_file_magic_cmd='$MAGIC_CMD'
4797 lt_cv_file_magic_test_file=
4798 lt_cv_deplibs_check_method='unknown'
4799 # Need to set the preceding variable on all platforms that support
4800 # interlibrary dependencies.
4801 # 'none' -- dependencies not supported.
4802 # 'unknown' -- same as none, but documents that we really don't know.
4803 # 'pass_all' -- all dependencies passed with no checks.
4804 # 'test_compile' -- check by making test program.
4805 # 'file_magic [[regex]]' -- check by looking for files in library path
4806 # that responds to the $file_magic_cmd with a given extended regex.
4807 # If you have 'file' or equivalent on your system and you're not sure
4808 # whether 'pass_all' will *always* work, you probably want this one.
4809
4810 case $host_os in
4811 aix[4-9]*)
4812   lt_cv_deplibs_check_method=pass_all
4813   ;;
4814
4815 beos*)
4816   lt_cv_deplibs_check_method=pass_all
4817   ;;
4818
4819 bsdi[45]*)
4820   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4821   lt_cv_file_magic_cmd='/usr/bin/file -L'
4822   lt_cv_file_magic_test_file=/shlib/libc.so
4823   ;;
4824
4825 cygwin*)
4826   # func_win32_libid is a shell function defined in ltmain.sh
4827   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4828   lt_cv_file_magic_cmd='func_win32_libid'
4829   ;;
4830
4831 mingw* | pw32*)
4832   # Base MSYS/MinGW do not provide the 'file' command needed by
4833   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4834   # unless we find 'file', for example because we are cross-compiling.
4835   if ( file / ) >/dev/null 2>&1; then
4836     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4837     lt_cv_file_magic_cmd='func_win32_libid'
4838   else
4839     # Keep this pattern in sync with the one in func_win32_libid.
4840     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4841     lt_cv_file_magic_cmd='$OBJDUMP -f'
4842   fi
4843   ;;
4844
4845 cegcc*)
4846   # use the weaker test based on 'objdump'. See mingw*.
4847   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4848   lt_cv_file_magic_cmd='$OBJDUMP -f'
4849   ;;
4850
4851 darwin* | rhapsody*)
4852   lt_cv_deplibs_check_method=pass_all
4853   ;;
4854
4855 freebsd* | dragonfly*)
4856   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4857     case $host_cpu in
4858     i*86 )
4859       # Not sure whether the presence of OpenBSD here was a mistake.
4860       # Let's accept both of them until this is cleared up.
4861       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4862       lt_cv_file_magic_cmd=/usr/bin/file
4863       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4864       ;;
4865     esac
4866   else
4867     lt_cv_deplibs_check_method=pass_all
4868   fi
4869   ;;
4870
4871 haiku*)
4872   lt_cv_deplibs_check_method=pass_all
4873   ;;
4874
4875 hpux10.20* | hpux11*)
4876   lt_cv_file_magic_cmd=/usr/bin/file
4877   case $host_cpu in
4878   ia64*)
4879     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4880     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4881     ;;
4882   hppa*64*)
4883     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]'
4884     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4885     ;;
4886   *)
4887     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4888     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4889     ;;
4890   esac
4891   ;;
4892
4893 interix[3-9]*)
4894   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4895   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4896   ;;
4897
4898 irix5* | irix6* | nonstopux*)
4899   case $LD in
4900   *-32|*"-32 ") libmagic=32-bit;;
4901   *-n32|*"-n32 ") libmagic=N32;;
4902   *-64|*"-64 ") libmagic=64-bit;;
4903   *) libmagic=never-match;;
4904   esac
4905   lt_cv_deplibs_check_method=pass_all
4906   ;;
4907
4908 # This must be glibc/ELF.
4909 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4910   lt_cv_deplibs_check_method=pass_all
4911   ;;
4912
4913 netbsd*)
4914   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4915     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4916   else
4917     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4918   fi
4919   ;;
4920
4921 newos6*)
4922   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4923   lt_cv_file_magic_cmd=/usr/bin/file
4924   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4925   ;;
4926
4927 *nto* | *qnx*)
4928   lt_cv_deplibs_check_method=pass_all
4929   ;;
4930
4931 openbsd* | bitrig*)
4932   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4933     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4934   else
4935     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4936   fi
4937   ;;
4938
4939 osf3* | osf4* | osf5*)
4940   lt_cv_deplibs_check_method=pass_all
4941   ;;
4942
4943 rdos*)
4944   lt_cv_deplibs_check_method=pass_all
4945   ;;
4946
4947 solaris*)
4948   lt_cv_deplibs_check_method=pass_all
4949   ;;
4950
4951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4952   lt_cv_deplibs_check_method=pass_all
4953   ;;
4954
4955 sysv4 | sysv4.3*)
4956   case $host_vendor in
4957   motorola)
4958     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]'
4959     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4960     ;;
4961   ncr)
4962     lt_cv_deplibs_check_method=pass_all
4963     ;;
4964   sequent)
4965     lt_cv_file_magic_cmd='/bin/file'
4966     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4967     ;;
4968   sni)
4969     lt_cv_file_magic_cmd='/bin/file'
4970     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4971     lt_cv_file_magic_test_file=/lib/libc.so
4972     ;;
4973   siemens)
4974     lt_cv_deplibs_check_method=pass_all
4975     ;;
4976   pc)
4977     lt_cv_deplibs_check_method=pass_all
4978     ;;
4979   esac
4980   ;;
4981
4982 tpf*)
4983   lt_cv_deplibs_check_method=pass_all
4984   ;;
4985 os2*)
4986   lt_cv_deplibs_check_method=pass_all
4987   ;;
4988 esac
4989
4990 fi
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4992 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4993
4994 file_magic_glob=
4995 want_nocaseglob=no
4996 if test "$build" = "$host"; then
4997   case $host_os in
4998   mingw* | pw32*)
4999     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5000       want_nocaseglob=yes
5001     else
5002       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5003     fi
5004     ;;
5005   esac
5006 fi
5007
5008 file_magic_cmd=$lt_cv_file_magic_cmd
5009 deplibs_check_method=$lt_cv_deplibs_check_method
5010 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033 if test -n "$ac_tool_prefix"; then
5034   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5035 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if ${ac_cv_prog_DLLTOOL+:} false; then :
5039   $as_echo_n "(cached) " >&6
5040 else
5041   if test -n "$DLLTOOL"; then
5042   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5046 do
5047   IFS=$as_save_IFS
5048   test -z "$as_dir" && as_dir=.
5049     for ac_exec_ext in '' $ac_executable_extensions; do
5050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5051     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053     break 2
5054   fi
5055 done
5056   done
5057 IFS=$as_save_IFS
5058
5059 fi
5060 fi
5061 DLLTOOL=$ac_cv_prog_DLLTOOL
5062 if test -n "$DLLTOOL"; then
5063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5064 $as_echo "$DLLTOOL" >&6; }
5065 else
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5068 fi
5069
5070
5071 fi
5072 if test -z "$ac_cv_prog_DLLTOOL"; then
5073   ac_ct_DLLTOOL=$DLLTOOL
5074   # Extract the first word of "dlltool", so it can be a program name with args.
5075 set dummy dlltool; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5079   $as_echo_n "(cached) " >&6
5080 else
5081   if test -n "$ac_ct_DLLTOOL"; then
5082   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087   IFS=$as_save_IFS
5088   test -z "$as_dir" && as_dir=.
5089     for ac_exec_ext in '' $ac_executable_extensions; do
5090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093     break 2
5094   fi
5095 done
5096   done
5097 IFS=$as_save_IFS
5098
5099 fi
5100 fi
5101 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5102 if test -n "$ac_ct_DLLTOOL"; then
5103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5104 $as_echo "$ac_ct_DLLTOOL" >&6; }
5105 else
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5108 fi
5109
5110   if test "x$ac_ct_DLLTOOL" = x; then
5111     DLLTOOL="false"
5112   else
5113     case $cross_compiling:$ac_tool_warned in
5114 yes:)
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5117 ac_tool_warned=yes ;;
5118 esac
5119     DLLTOOL=$ac_ct_DLLTOOL
5120   fi
5121 else
5122   DLLTOOL="$ac_cv_prog_DLLTOOL"
5123 fi
5124
5125 test -z "$DLLTOOL" && DLLTOOL=dlltool
5126
5127
5128
5129
5130
5131
5132
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5134 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5135 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5136   $as_echo_n "(cached) " >&6
5137 else
5138   lt_cv_sharedlib_from_linklib_cmd='unknown'
5139
5140 case $host_os in
5141 cygwin* | mingw* | pw32* | cegcc*)
5142   # two different shell functions defined in ltmain.sh;
5143   # decide which one to use based on capabilities of $DLLTOOL
5144   case `$DLLTOOL --help 2>&1` in
5145   *--identify-strict*)
5146     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5147     ;;
5148   *)
5149     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5150     ;;
5151   esac
5152   ;;
5153 *)
5154   # fallback: assume linklib IS sharedlib
5155   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5156   ;;
5157 esac
5158
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5161 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5162 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5163 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5164
5165
5166
5167
5168
5169
5170
5171
5172 if test -n "$ac_tool_prefix"; then
5173   for ac_prog in ar
5174   do
5175     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_AR+:} false; then :
5180   $as_echo_n "(cached) " >&6
5181 else
5182   if test -n "$AR"; then
5183   ac_cv_prog_AR="$AR" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188   IFS=$as_save_IFS
5189   test -z "$as_dir" && as_dir=.
5190     for ac_exec_ext in '' $ac_executable_extensions; do
5191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194     break 2
5195   fi
5196 done
5197   done
5198 IFS=$as_save_IFS
5199
5200 fi
5201 fi
5202 AR=$ac_cv_prog_AR
5203 if test -n "$AR"; then
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5205 $as_echo "$AR" >&6; }
5206 else
5207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5209 fi
5210
5211
5212     test -n "$AR" && break
5213   done
5214 fi
5215 if test -z "$AR"; then
5216   ac_ct_AR=$AR
5217   for ac_prog in ar
5218 do
5219   # Extract the first word of "$ac_prog", so it can be a program name with args.
5220 set dummy $ac_prog; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5224   $as_echo_n "(cached) " >&6
5225 else
5226   if test -n "$ac_ct_AR"; then
5227   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232   IFS=$as_save_IFS
5233   test -z "$as_dir" && as_dir=.
5234     for ac_exec_ext in '' $ac_executable_extensions; do
5235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236     ac_cv_prog_ac_ct_AR="$ac_prog"
5237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238     break 2
5239   fi
5240 done
5241   done
5242 IFS=$as_save_IFS
5243
5244 fi
5245 fi
5246 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5247 if test -n "$ac_ct_AR"; then
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5249 $as_echo "$ac_ct_AR" >&6; }
5250 else
5251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253 fi
5254
5255
5256   test -n "$ac_ct_AR" && break
5257 done
5258
5259   if test "x$ac_ct_AR" = x; then
5260     AR="false"
5261   else
5262     case $cross_compiling:$ac_tool_warned in
5263 yes:)
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5266 ac_tool_warned=yes ;;
5267 esac
5268     AR=$ac_ct_AR
5269   fi
5270 fi
5271
5272 : ${AR=ar}
5273 : ${AR_FLAGS=cru}
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5286 $as_echo_n "checking for archiver @FILE support... " >&6; }
5287 if ${lt_cv_ar_at_file+:} false; then :
5288   $as_echo_n "(cached) " >&6
5289 else
5290   lt_cv_ar_at_file=no
5291    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h.  */
5293
5294 int
5295 main ()
5296 {
5297
5298   ;
5299   return 0;
5300 }
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303   echo conftest.$ac_objext > conftest.lst
5304       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5305       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5306   (eval $lt_ar_try) 2>&5
5307   ac_status=$?
5308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5309   test $ac_status = 0; }
5310       if test 0 -eq "$ac_status"; then
5311         # Ensure the archiver fails upon bogus file names.
5312         rm -f conftest.$ac_objext libconftest.a
5313         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5314   (eval $lt_ar_try) 2>&5
5315   ac_status=$?
5316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5317   test $ac_status = 0; }
5318         if test 0 -ne "$ac_status"; then
5319           lt_cv_ar_at_file=@
5320         fi
5321       fi
5322       rm -f conftest.* libconftest.a
5323
5324 fi
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5329 $as_echo "$lt_cv_ar_at_file" >&6; }
5330
5331 if test no = "$lt_cv_ar_at_file"; then
5332   archiver_list_spec=
5333 else
5334   archiver_list_spec=$lt_cv_ar_at_file
5335 fi
5336
5337
5338
5339
5340
5341
5342
5343 if test -n "$ac_tool_prefix"; then
5344   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5345 set dummy ${ac_tool_prefix}strip; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if ${ac_cv_prog_STRIP+:} false; then :
5349   $as_echo_n "(cached) " >&6
5350 else
5351   if test -n "$STRIP"; then
5352   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5353 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5356 do
5357   IFS=$as_save_IFS
5358   test -z "$as_dir" && as_dir=.
5359     for ac_exec_ext in '' $ac_executable_extensions; do
5360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363     break 2
5364   fi
5365 done
5366   done
5367 IFS=$as_save_IFS
5368
5369 fi
5370 fi
5371 STRIP=$ac_cv_prog_STRIP
5372 if test -n "$STRIP"; then
5373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5374 $as_echo "$STRIP" >&6; }
5375 else
5376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5378 fi
5379
5380
5381 fi
5382 if test -z "$ac_cv_prog_STRIP"; then
5383   ac_ct_STRIP=$STRIP
5384   # Extract the first word of "strip", so it can be a program name with args.
5385 set dummy strip; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5389   $as_echo_n "(cached) " >&6
5390 else
5391   if test -n "$ac_ct_STRIP"; then
5392   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5393 else
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5396 do
5397   IFS=$as_save_IFS
5398   test -z "$as_dir" && as_dir=.
5399     for ac_exec_ext in '' $ac_executable_extensions; do
5400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401     ac_cv_prog_ac_ct_STRIP="strip"
5402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403     break 2
5404   fi
5405 done
5406   done
5407 IFS=$as_save_IFS
5408
5409 fi
5410 fi
5411 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5412 if test -n "$ac_ct_STRIP"; then
5413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5414 $as_echo "$ac_ct_STRIP" >&6; }
5415 else
5416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5418 fi
5419
5420   if test "x$ac_ct_STRIP" = x; then
5421     STRIP=":"
5422   else
5423     case $cross_compiling:$ac_tool_warned in
5424 yes:)
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5427 ac_tool_warned=yes ;;
5428 esac
5429     STRIP=$ac_ct_STRIP
5430   fi
5431 else
5432   STRIP="$ac_cv_prog_STRIP"
5433 fi
5434
5435 test -z "$STRIP" && STRIP=:
5436
5437
5438
5439
5440
5441
5442 if test -n "$ac_tool_prefix"; then
5443   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5444 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if ${ac_cv_prog_RANLIB+:} false; then :
5448   $as_echo_n "(cached) " >&6
5449 else
5450   if test -n "$RANLIB"; then
5451   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5452 else
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5455 do
5456   IFS=$as_save_IFS
5457   test -z "$as_dir" && as_dir=.
5458     for ac_exec_ext in '' $ac_executable_extensions; do
5459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462     break 2
5463   fi
5464 done
5465   done
5466 IFS=$as_save_IFS
5467
5468 fi
5469 fi
5470 RANLIB=$ac_cv_prog_RANLIB
5471 if test -n "$RANLIB"; then
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5473 $as_echo "$RANLIB" >&6; }
5474 else
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5477 fi
5478
5479
5480 fi
5481 if test -z "$ac_cv_prog_RANLIB"; then
5482   ac_ct_RANLIB=$RANLIB
5483   # Extract the first word of "ranlib", so it can be a program name with args.
5484 set dummy ranlib; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5488   $as_echo_n "(cached) " >&6
5489 else
5490   if test -n "$ac_ct_RANLIB"; then
5491   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498     for ac_exec_ext in '' $ac_executable_extensions; do
5499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500     ac_cv_prog_ac_ct_RANLIB="ranlib"
5501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502     break 2
5503   fi
5504 done
5505   done
5506 IFS=$as_save_IFS
5507
5508 fi
5509 fi
5510 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5511 if test -n "$ac_ct_RANLIB"; then
5512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5513 $as_echo "$ac_ct_RANLIB" >&6; }
5514 else
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5517 fi
5518
5519   if test "x$ac_ct_RANLIB" = x; then
5520     RANLIB=":"
5521   else
5522     case $cross_compiling:$ac_tool_warned in
5523 yes:)
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526 ac_tool_warned=yes ;;
5527 esac
5528     RANLIB=$ac_ct_RANLIB
5529   fi
5530 else
5531   RANLIB="$ac_cv_prog_RANLIB"
5532 fi
5533
5534 test -z "$RANLIB" && RANLIB=:
5535
5536
5537
5538
5539
5540
5541 # Determine commands to create old-style static archives.
5542 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5543 old_postinstall_cmds='chmod 644 $oldlib'
5544 old_postuninstall_cmds=
5545
5546 if test -n "$RANLIB"; then
5547   case $host_os in
5548   bitrig* | openbsd*)
5549     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5550     ;;
5551   *)
5552     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5553     ;;
5554   esac
5555   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5556 fi
5557
5558 case $host_os in
5559   darwin*)
5560     lock_old_archive_extraction=yes ;;
5561   *)
5562     lock_old_archive_extraction=no ;;
5563 esac
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585 for ac_prog in gawk mawk nawk awk
5586 do
5587   # Extract the first word of "$ac_prog", so it can be a program name with args.
5588 set dummy $ac_prog; ac_word=$2
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590 $as_echo_n "checking for $ac_word... " >&6; }
5591 if ${ac_cv_prog_AWK+:} false; then :
5592   $as_echo_n "(cached) " >&6
5593 else
5594   if test -n "$AWK"; then
5595   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5596 else
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5599 do
5600   IFS=$as_save_IFS
5601   test -z "$as_dir" && as_dir=.
5602     for ac_exec_ext in '' $ac_executable_extensions; do
5603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5604     ac_cv_prog_AWK="$ac_prog"
5605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606     break 2
5607   fi
5608 done
5609   done
5610 IFS=$as_save_IFS
5611
5612 fi
5613 fi
5614 AWK=$ac_cv_prog_AWK
5615 if test -n "$AWK"; then
5616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5617 $as_echo "$AWK" >&6; }
5618 else
5619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620 $as_echo "no" >&6; }
5621 fi
5622
5623
5624   test -n "$AWK" && break
5625 done
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645 # If no C compiler was specified, use CC.
5646 LTCC=${LTCC-"$CC"}
5647
5648 # If no C compiler flags were specified, use CFLAGS.
5649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5650
5651 # Allow CC to be a program name with arguments.
5652 compiler=$CC
5653
5654
5655 # Check for command to grab the raw symbol name followed by C symbol from nm.
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5657 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5658 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5659   $as_echo_n "(cached) " >&6
5660 else
5661
5662 # These are sane defaults that work on at least a few old systems.
5663 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5664
5665 # Character class describing NM global symbol codes.
5666 symcode='[BCDEGRST]'
5667
5668 # Regexp to match symbols that can be accessed directly from C.
5669 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5670
5671 # Define system-specific variables.
5672 case $host_os in
5673 aix*)
5674   symcode='[BCDT]'
5675   ;;
5676 cygwin* | mingw* | pw32* | cegcc*)
5677   symcode='[ABCDGISTW]'
5678   ;;
5679 hpux*)
5680   if test ia64 = "$host_cpu"; then
5681     symcode='[ABCDEGRST]'
5682   fi
5683   ;;
5684 irix* | nonstopux*)
5685   symcode='[BCDEGRST]'
5686   ;;
5687 osf*)
5688   symcode='[BCDEGQRST]'
5689   ;;
5690 solaris*)
5691   symcode='[BDRT]'
5692   ;;
5693 sco3.2v5*)
5694   symcode='[DT]'
5695   ;;
5696 sysv4.2uw2*)
5697   symcode='[DT]'
5698   ;;
5699 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5700   symcode='[ABDT]'
5701   ;;
5702 sysv4)
5703   symcode='[DFNSTU]'
5704   ;;
5705 esac
5706
5707 # If we're using GNU nm, then use its standard symbol codes.
5708 case `$NM -V 2>&1` in
5709 *GNU* | *'with BFD'*)
5710   symcode='[ABCDGIRSTW]' ;;
5711 esac
5712
5713 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5714   # Gets list of data symbols to import.
5715   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5716   # Adjust the below global symbol transforms to fixup imported variables.
5717   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5718   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5719   lt_c_name_lib_hook="\
5720   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5721   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5722 else
5723   # Disable hooks by default.
5724   lt_cv_sys_global_symbol_to_import=
5725   lt_cdecl_hook=
5726   lt_c_name_hook=
5727   lt_c_name_lib_hook=
5728 fi
5729
5730 # Transform an extracted symbol line into a proper C declaration.
5731 # Some systems (esp. on ia64) link data and code symbols differently,
5732 # so use this general approach.
5733 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5734 $lt_cdecl_hook\
5735 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5736 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5737
5738 # Transform an extracted symbol line into symbol name and symbol address
5739 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5740 $lt_c_name_hook\
5741 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5742 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5743
5744 # Transform an extracted symbol line into symbol name with lib prefix and
5745 # symbol address.
5746 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5747 $lt_c_name_lib_hook\
5748 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5749 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5750 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5751
5752 # Handle CRLF in mingw tool chain
5753 opt_cr=
5754 case $build_os in
5755 mingw*)
5756   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5757   ;;
5758 esac
5759
5760 # Try without a prefix underscore, then with it.
5761 for ac_symprfx in "" "_"; do
5762
5763   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5764   symxfrm="\\1 $ac_symprfx\\2 \\2"
5765
5766   # Write the raw and C identifiers.
5767   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5768     # Fake it for dumpbin and say T for any non-static function,
5769     # D for any global variable and I for any imported variable.
5770     # Also find C++ and __fastcall symbols from MSVC++,
5771     # which start with @ or ?.
5772     lt_cv_sys_global_symbol_pipe="$AWK '"\
5773 "     {last_section=section; section=\$ 3};"\
5774 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5775 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5776 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5777 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5778 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5779 "     \$ 0!~/External *\|/{next};"\
5780 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5781 "     {if(hide[section]) next};"\
5782 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5783 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5784 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5785 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5786 "     ' prfx=^$ac_symprfx"
5787   else
5788     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5789   fi
5790   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5791
5792   # Check to see that the pipe works correctly.
5793   pipe_works=no
5794
5795   rm -f conftest*
5796   cat > conftest.$ac_ext <<_LT_EOF
5797 #ifdef __cplusplus
5798 extern "C" {
5799 #endif
5800 char nm_test_var;
5801 void nm_test_func(void);
5802 void nm_test_func(void){}
5803 #ifdef __cplusplus
5804 }
5805 #endif
5806 int main(){nm_test_var='a';nm_test_func();return(0);}
5807 _LT_EOF
5808
5809   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5810   (eval $ac_compile) 2>&5
5811   ac_status=$?
5812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5813   test $ac_status = 0; }; then
5814     # Now try to grab the symbols.
5815     nlist=conftest.nm
5816     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5817   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5818   ac_status=$?
5819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5820   test $ac_status = 0; } && test -s "$nlist"; then
5821       # Try sorting and uniquifying the output.
5822       if sort "$nlist" | uniq > "$nlist"T; then
5823         mv -f "$nlist"T "$nlist"
5824       else
5825         rm -f "$nlist"T
5826       fi
5827
5828       # Make sure that we snagged all the symbols we need.
5829       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5830         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5831           cat <<_LT_EOF > conftest.$ac_ext
5832 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5833 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5834 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5835    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5836 # define LT_DLSYM_CONST
5837 #elif defined __osf__
5838 /* This system does not cope well with relocations in const data.  */
5839 # define LT_DLSYM_CONST
5840 #else
5841 # define LT_DLSYM_CONST const
5842 #endif
5843
5844 #ifdef __cplusplus
5845 extern "C" {
5846 #endif
5847
5848 _LT_EOF
5849           # Now generate the symbol file.
5850           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5851
5852           cat <<_LT_EOF >> conftest.$ac_ext
5853
5854 /* The mapping between symbol names and symbols.  */
5855 LT_DLSYM_CONST struct {
5856   const char *name;
5857   void       *address;
5858 }
5859 lt__PROGRAM__LTX_preloaded_symbols[] =
5860 {
5861   { "@PROGRAM@", (void *) 0 },
5862 _LT_EOF
5863           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5864           cat <<\_LT_EOF >> conftest.$ac_ext
5865   {0, (void *) 0}
5866 };
5867
5868 /* This works around a problem in FreeBSD linker */
5869 #ifdef FREEBSD_WORKAROUND
5870 static const void *lt_preloaded_setup() {
5871   return lt__PROGRAM__LTX_preloaded_symbols;
5872 }
5873 #endif
5874
5875 #ifdef __cplusplus
5876 }
5877 #endif
5878 _LT_EOF
5879           # Now try linking the two files.
5880           mv conftest.$ac_objext conftstm.$ac_objext
5881           lt_globsym_save_LIBS=$LIBS
5882           lt_globsym_save_CFLAGS=$CFLAGS
5883           LIBS=conftstm.$ac_objext
5884           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5885           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5886   (eval $ac_link) 2>&5
5887   ac_status=$?
5888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5889   test $ac_status = 0; } && test -s conftest$ac_exeext; then
5890             pipe_works=yes
5891           fi
5892           LIBS=$lt_globsym_save_LIBS
5893           CFLAGS=$lt_globsym_save_CFLAGS
5894         else
5895           echo "cannot find nm_test_func in $nlist" >&5
5896         fi
5897       else
5898         echo "cannot find nm_test_var in $nlist" >&5
5899       fi
5900     else
5901       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5902     fi
5903   else
5904     echo "$progname: failed program was:" >&5
5905     cat conftest.$ac_ext >&5
5906   fi
5907   rm -rf conftest* conftst*
5908
5909   # Do not use the global_symbol_pipe unless it works.
5910   if test yes = "$pipe_works"; then
5911     break
5912   else
5913     lt_cv_sys_global_symbol_pipe=
5914   fi
5915 done
5916
5917 fi
5918
5919 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5920   lt_cv_sys_global_symbol_to_cdecl=
5921 fi
5922 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5924 $as_echo "failed" >&6; }
5925 else
5926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5927 $as_echo "ok" >&6; }
5928 fi
5929
5930 # Response file support.
5931 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5932   nm_file_list_spec='@'
5933 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5934   nm_file_list_spec='@'
5935 fi
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5974 $as_echo_n "checking for sysroot... " >&6; }
5975
5976 # Check whether --with-sysroot was given.
5977 if test "${with_sysroot+set}" = set; then :
5978   withval=$with_sysroot;
5979 else
5980   with_sysroot=no
5981 fi
5982
5983
5984 lt_sysroot=
5985 case $with_sysroot in #(
5986  yes)
5987    if test yes = "$GCC"; then
5988      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5989    fi
5990    ;; #(
5991  /*)
5992    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5993    ;; #(
5994  no|'')
5995    ;; #(
5996  *)
5997    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5998 $as_echo "$with_sysroot" >&6; }
5999    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6000    ;;
6001 esac
6002
6003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6004 $as_echo "${lt_sysroot:-no}" >&6; }
6005
6006
6007
6008
6009
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6011 $as_echo_n "checking for a working dd... " >&6; }
6012 if ${ac_cv_path_lt_DD+:} false; then :
6013   $as_echo_n "(cached) " >&6
6014 else
6015   printf 0123456789abcdef0123456789abcdef >conftest.i
6016 cat conftest.i conftest.i >conftest2.i
6017 : ${lt_DD:=$DD}
6018 if test -z "$lt_DD"; then
6019   ac_path_lt_DD_found=false
6020   # Loop through the user's path and test for each of PROGNAME-LIST
6021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024   IFS=$as_save_IFS
6025   test -z "$as_dir" && as_dir=.
6026     for ac_prog in dd; do
6027     for ac_exec_ext in '' $ac_executable_extensions; do
6028       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6029       as_fn_executable_p "$ac_path_lt_DD" || continue
6030 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6031   cmp -s conftest.i conftest.out \
6032   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6033 fi
6034       $ac_path_lt_DD_found && break 3
6035     done
6036   done
6037   done
6038 IFS=$as_save_IFS
6039   if test -z "$ac_cv_path_lt_DD"; then
6040     :
6041   fi
6042 else
6043   ac_cv_path_lt_DD=$lt_DD
6044 fi
6045
6046 rm -f conftest.i conftest2.i conftest.out
6047 fi
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6049 $as_echo "$ac_cv_path_lt_DD" >&6; }
6050
6051
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6053 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6054 if ${lt_cv_truncate_bin+:} false; then :
6055   $as_echo_n "(cached) " >&6
6056 else
6057   printf 0123456789abcdef0123456789abcdef >conftest.i
6058 cat conftest.i conftest.i >conftest2.i
6059 lt_cv_truncate_bin=
6060 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6061   cmp -s conftest.i conftest.out \
6062   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6063 fi
6064 rm -f conftest.i conftest2.i conftest.out
6065 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6066 fi
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6068 $as_echo "$lt_cv_truncate_bin" >&6; }
6069
6070
6071
6072
6073
6074
6075
6076 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6077 func_cc_basename ()
6078 {
6079     for cc_temp in $*""; do
6080       case $cc_temp in
6081         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6082         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6083         \-*) ;;
6084         *) break;;
6085       esac
6086     done
6087     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6088 }
6089
6090 # Check whether --enable-libtool-lock was given.
6091 if test "${enable_libtool_lock+set}" = set; then :
6092   enableval=$enable_libtool_lock;
6093 fi
6094
6095 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6096
6097 # Some flags need to be propagated to the compiler or linker for good
6098 # libtool support.
6099 case $host in
6100 ia64-*-hpux*)
6101   # Find out what ABI is being produced by ac_compile, and set mode
6102   # options accordingly.
6103   echo 'int i;' > conftest.$ac_ext
6104   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6105   (eval $ac_compile) 2>&5
6106   ac_status=$?
6107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108   test $ac_status = 0; }; then
6109     case `/usr/bin/file conftest.$ac_objext` in
6110       *ELF-32*)
6111         HPUX_IA64_MODE=32
6112         ;;
6113       *ELF-64*)
6114         HPUX_IA64_MODE=64
6115         ;;
6116     esac
6117   fi
6118   rm -rf conftest*
6119   ;;
6120 *-*-irix6*)
6121   # Find out what ABI is being produced by ac_compile, and set linker
6122   # options accordingly.
6123   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6124   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6125   (eval $ac_compile) 2>&5
6126   ac_status=$?
6127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128   test $ac_status = 0; }; then
6129     if test yes = "$lt_cv_prog_gnu_ld"; then
6130       case `/usr/bin/file conftest.$ac_objext` in
6131         *32-bit*)
6132           LD="${LD-ld} -melf32bsmip"
6133           ;;
6134         *N32*)
6135           LD="${LD-ld} -melf32bmipn32"
6136           ;;
6137         *64-bit*)
6138           LD="${LD-ld} -melf64bmip"
6139         ;;
6140       esac
6141     else
6142       case `/usr/bin/file conftest.$ac_objext` in
6143         *32-bit*)
6144           LD="${LD-ld} -32"
6145           ;;
6146         *N32*)
6147           LD="${LD-ld} -n32"
6148           ;;
6149         *64-bit*)
6150           LD="${LD-ld} -64"
6151           ;;
6152       esac
6153     fi
6154   fi
6155   rm -rf conftest*
6156   ;;
6157
6158 mips64*-*linux*)
6159   # Find out what ABI is being produced by ac_compile, and set linker
6160   # options accordingly.
6161   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6162   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6163   (eval $ac_compile) 2>&5
6164   ac_status=$?
6165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166   test $ac_status = 0; }; then
6167     emul=elf
6168     case `/usr/bin/file conftest.$ac_objext` in
6169       *32-bit*)
6170         emul="${emul}32"
6171         ;;
6172       *64-bit*)
6173         emul="${emul}64"
6174         ;;
6175     esac
6176     case `/usr/bin/file conftest.$ac_objext` in
6177       *MSB*)
6178         emul="${emul}btsmip"
6179         ;;
6180       *LSB*)
6181         emul="${emul}ltsmip"
6182         ;;
6183     esac
6184     case `/usr/bin/file conftest.$ac_objext` in
6185       *N32*)
6186         emul="${emul}n32"
6187         ;;
6188     esac
6189     LD="${LD-ld} -m $emul"
6190   fi
6191   rm -rf conftest*
6192   ;;
6193
6194 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6195 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6196   # Find out what ABI is being produced by ac_compile, and set linker
6197   # options accordingly.  Note that the listed cases only cover the
6198   # situations where additional linker options are needed (such as when
6199   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6200   # vice versa); the common cases where no linker options are needed do
6201   # not appear in the list.
6202   echo 'int i;' > conftest.$ac_ext
6203   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6204   (eval $ac_compile) 2>&5
6205   ac_status=$?
6206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6207   test $ac_status = 0; }; then
6208     case `/usr/bin/file conftest.o` in
6209       *32-bit*)
6210         case $host in
6211           x86_64-*kfreebsd*-gnu)
6212             LD="${LD-ld} -m elf_i386_fbsd"
6213             ;;
6214           x86_64-*linux*)
6215             case `/usr/bin/file conftest.o` in
6216               *x86-64*)
6217                 LD="${LD-ld} -m elf32_x86_64"
6218                 ;;
6219               *)
6220                 LD="${LD-ld} -m elf_i386"
6221                 ;;
6222             esac
6223             ;;
6224           powerpc64le-*linux*)
6225             LD="${LD-ld} -m elf32lppclinux"
6226             ;;
6227           powerpc64-*linux*)
6228             LD="${LD-ld} -m elf32ppclinux"
6229             ;;
6230           s390x-*linux*)
6231             LD="${LD-ld} -m elf_s390"
6232             ;;
6233           sparc64-*linux*)
6234             LD="${LD-ld} -m elf32_sparc"
6235             ;;
6236         esac
6237         ;;
6238       *64-bit*)
6239         case $host in
6240           x86_64-*kfreebsd*-gnu)
6241             LD="${LD-ld} -m elf_x86_64_fbsd"
6242             ;;
6243           x86_64-*linux*)
6244             LD="${LD-ld} -m elf_x86_64"
6245             ;;
6246           powerpcle-*linux*)
6247             LD="${LD-ld} -m elf64lppc"
6248             ;;
6249           powerpc-*linux*)
6250             LD="${LD-ld} -m elf64ppc"
6251             ;;
6252           s390*-*linux*|s390*-*tpf*)
6253             LD="${LD-ld} -m elf64_s390"
6254             ;;
6255           sparc*-*linux*)
6256             LD="${LD-ld} -m elf64_sparc"
6257             ;;
6258         esac
6259         ;;
6260     esac
6261   fi
6262   rm -rf conftest*
6263   ;;
6264
6265 *-*-sco3.2v5*)
6266   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6267   SAVE_CFLAGS=$CFLAGS
6268   CFLAGS="$CFLAGS -belf"
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6270 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6271 if ${lt_cv_cc_needs_belf+:} false; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274   ac_ext=c
6275 ac_cpp='$CPP $CPPFLAGS'
6276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6279
6280      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h.  */
6282
6283 int
6284 main ()
6285 {
6286
6287   ;
6288   return 0;
6289 }
6290 _ACEOF
6291 if ac_fn_c_try_link "$LINENO"; then :
6292   lt_cv_cc_needs_belf=yes
6293 else
6294   lt_cv_cc_needs_belf=no
6295 fi
6296 rm -f core conftest.err conftest.$ac_objext \
6297     conftest$ac_exeext conftest.$ac_ext
6298      ac_ext=c
6299 ac_cpp='$CPP $CPPFLAGS'
6300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6303
6304 fi
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6306 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6307   if test yes != "$lt_cv_cc_needs_belf"; then
6308     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6309     CFLAGS=$SAVE_CFLAGS
6310   fi
6311   ;;
6312 *-*solaris*)
6313   # Find out what ABI is being produced by ac_compile, and set linker
6314   # options accordingly.
6315   echo 'int i;' > conftest.$ac_ext
6316   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6317   (eval $ac_compile) 2>&5
6318   ac_status=$?
6319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6320   test $ac_status = 0; }; then
6321     case `/usr/bin/file conftest.o` in
6322     *64-bit*)
6323       case $lt_cv_prog_gnu_ld in
6324       yes*)
6325         case $host in
6326         i?86-*-solaris*|x86_64-*-solaris*)
6327           LD="${LD-ld} -m elf_x86_64"
6328           ;;
6329         sparc*-*-solaris*)
6330           LD="${LD-ld} -m elf64_sparc"
6331           ;;
6332         esac
6333         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6334         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6335           LD=${LD-ld}_sol2
6336         fi
6337         ;;
6338       *)
6339         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6340           LD="${LD-ld} -64"
6341         fi
6342         ;;
6343       esac
6344       ;;
6345     esac
6346   fi
6347   rm -rf conftest*
6348   ;;
6349 esac
6350
6351 need_locks=$enable_libtool_lock
6352
6353 if test -n "$ac_tool_prefix"; then
6354   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6355 set dummy ${ac_tool_prefix}mt; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6359   $as_echo_n "(cached) " >&6
6360 else
6361   if test -n "$MANIFEST_TOOL"; then
6362   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367   IFS=$as_save_IFS
6368   test -z "$as_dir" && as_dir=.
6369     for ac_exec_ext in '' $ac_executable_extensions; do
6370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6371     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373     break 2
6374   fi
6375 done
6376   done
6377 IFS=$as_save_IFS
6378
6379 fi
6380 fi
6381 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6382 if test -n "$MANIFEST_TOOL"; then
6383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6384 $as_echo "$MANIFEST_TOOL" >&6; }
6385 else
6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6388 fi
6389
6390
6391 fi
6392 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6393   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6394   # Extract the first word of "mt", so it can be a program name with args.
6395 set dummy mt; ac_word=$2
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6399   $as_echo_n "(cached) " >&6
6400 else
6401   if test -n "$ac_ct_MANIFEST_TOOL"; then
6402   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6403 else
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407   IFS=$as_save_IFS
6408   test -z "$as_dir" && as_dir=.
6409     for ac_exec_ext in '' $ac_executable_extensions; do
6410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6411     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6413     break 2
6414   fi
6415 done
6416   done
6417 IFS=$as_save_IFS
6418
6419 fi
6420 fi
6421 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6422 if test -n "$ac_ct_MANIFEST_TOOL"; then
6423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6424 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6425 else
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6428 fi
6429
6430   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6431     MANIFEST_TOOL=":"
6432   else
6433     case $cross_compiling:$ac_tool_warned in
6434 yes:)
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6437 ac_tool_warned=yes ;;
6438 esac
6439     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6440   fi
6441 else
6442   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6443 fi
6444
6445 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6447 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6448 if ${lt_cv_path_mainfest_tool+:} false; then :
6449   $as_echo_n "(cached) " >&6
6450 else
6451   lt_cv_path_mainfest_tool=no
6452   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6453   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6454   cat conftest.err >&5
6455   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6456     lt_cv_path_mainfest_tool=yes
6457   fi
6458   rm -f conftest*
6459 fi
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6461 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6462 if test yes != "$lt_cv_path_mainfest_tool"; then
6463   MANIFEST_TOOL=:
6464 fi
6465
6466
6467
6468
6469
6470
6471   case $host_os in
6472     rhapsody* | darwin*)
6473     if test -n "$ac_tool_prefix"; then
6474   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   if test -n "$DSYMUTIL"; then
6482   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489     for ac_exec_ext in '' $ac_executable_extensions; do
6490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6491     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496   done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6502 if test -n "$DSYMUTIL"; then
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6504 $as_echo "$DSYMUTIL" >&6; }
6505 else
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509
6510
6511 fi
6512 if test -z "$ac_cv_prog_DSYMUTIL"; then
6513   ac_ct_DSYMUTIL=$DSYMUTIL
6514   # Extract the first word of "dsymutil", so it can be a program name with args.
6515 set dummy dsymutil; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6519   $as_echo_n "(cached) " >&6
6520 else
6521   if test -n "$ac_ct_DSYMUTIL"; then
6522   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527   IFS=$as_save_IFS
6528   test -z "$as_dir" && as_dir=.
6529     for ac_exec_ext in '' $ac_executable_extensions; do
6530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533     break 2
6534   fi
6535 done
6536   done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6542 if test -n "$ac_ct_DSYMUTIL"; then
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6544 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6545 else
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6548 fi
6549
6550   if test "x$ac_ct_DSYMUTIL" = x; then
6551     DSYMUTIL=":"
6552   else
6553     case $cross_compiling:$ac_tool_warned in
6554 yes:)
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557 ac_tool_warned=yes ;;
6558 esac
6559     DSYMUTIL=$ac_ct_DSYMUTIL
6560   fi
6561 else
6562   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6563 fi
6564
6565     if test -n "$ac_tool_prefix"; then
6566   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6567 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if ${ac_cv_prog_NMEDIT+:} false; then :
6571   $as_echo_n "(cached) " >&6
6572 else
6573   if test -n "$NMEDIT"; then
6574   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579   IFS=$as_save_IFS
6580   test -z "$as_dir" && as_dir=.
6581     for ac_exec_ext in '' $ac_executable_extensions; do
6582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585     break 2
6586   fi
6587 done
6588   done
6589 IFS=$as_save_IFS
6590
6591 fi
6592 fi
6593 NMEDIT=$ac_cv_prog_NMEDIT
6594 if test -n "$NMEDIT"; then
6595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6596 $as_echo "$NMEDIT" >&6; }
6597 else
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6600 fi
6601
6602
6603 fi
6604 if test -z "$ac_cv_prog_NMEDIT"; then
6605   ac_ct_NMEDIT=$NMEDIT
6606   # Extract the first word of "nmedit", so it can be a program name with args.
6607 set dummy nmedit; ac_word=$2
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609 $as_echo_n "checking for $ac_word... " >&6; }
6610 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6611   $as_echo_n "(cached) " >&6
6612 else
6613   if test -n "$ac_ct_NMEDIT"; then
6614   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6615 else
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $PATH
6618 do
6619   IFS=$as_save_IFS
6620   test -z "$as_dir" && as_dir=.
6621     for ac_exec_ext in '' $ac_executable_extensions; do
6622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6623     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6625     break 2
6626   fi
6627 done
6628   done
6629 IFS=$as_save_IFS
6630
6631 fi
6632 fi
6633 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6634 if test -n "$ac_ct_NMEDIT"; then
6635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6636 $as_echo "$ac_ct_NMEDIT" >&6; }
6637 else
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639 $as_echo "no" >&6; }
6640 fi
6641
6642   if test "x$ac_ct_NMEDIT" = x; then
6643     NMEDIT=":"
6644   else
6645     case $cross_compiling:$ac_tool_warned in
6646 yes:)
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6649 ac_tool_warned=yes ;;
6650 esac
6651     NMEDIT=$ac_ct_NMEDIT
6652   fi
6653 else
6654   NMEDIT="$ac_cv_prog_NMEDIT"
6655 fi
6656
6657     if test -n "$ac_tool_prefix"; then
6658   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6659 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 $as_echo_n "checking for $ac_word... " >&6; }
6662 if ${ac_cv_prog_LIPO+:} false; then :
6663   $as_echo_n "(cached) " >&6
6664 else
6665   if test -n "$LIPO"; then
6666   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6667 else
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 for as_dir in $PATH
6670 do
6671   IFS=$as_save_IFS
6672   test -z "$as_dir" && as_dir=.
6673     for ac_exec_ext in '' $ac_executable_extensions; do
6674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6675     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6677     break 2
6678   fi
6679 done
6680   done
6681 IFS=$as_save_IFS
6682
6683 fi
6684 fi
6685 LIPO=$ac_cv_prog_LIPO
6686 if test -n "$LIPO"; then
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6688 $as_echo "$LIPO" >&6; }
6689 else
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 $as_echo "no" >&6; }
6692 fi
6693
6694
6695 fi
6696 if test -z "$ac_cv_prog_LIPO"; then
6697   ac_ct_LIPO=$LIPO
6698   # Extract the first word of "lipo", so it can be a program name with args.
6699 set dummy lipo; ac_word=$2
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 $as_echo_n "checking for $ac_word... " >&6; }
6702 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6703   $as_echo_n "(cached) " >&6
6704 else
6705   if test -n "$ac_ct_LIPO"; then
6706   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711   IFS=$as_save_IFS
6712   test -z "$as_dir" && as_dir=.
6713     for ac_exec_ext in '' $ac_executable_extensions; do
6714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6715     ac_cv_prog_ac_ct_LIPO="lipo"
6716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717     break 2
6718   fi
6719 done
6720   done
6721 IFS=$as_save_IFS
6722
6723 fi
6724 fi
6725 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6726 if test -n "$ac_ct_LIPO"; then
6727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6728 $as_echo "$ac_ct_LIPO" >&6; }
6729 else
6730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6732 fi
6733
6734   if test "x$ac_ct_LIPO" = x; then
6735     LIPO=":"
6736   else
6737     case $cross_compiling:$ac_tool_warned in
6738 yes:)
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6741 ac_tool_warned=yes ;;
6742 esac
6743     LIPO=$ac_ct_LIPO
6744   fi
6745 else
6746   LIPO="$ac_cv_prog_LIPO"
6747 fi
6748
6749     if test -n "$ac_tool_prefix"; then
6750   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6751 set dummy ${ac_tool_prefix}otool; ac_word=$2
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if ${ac_cv_prog_OTOOL+:} false; then :
6755   $as_echo_n "(cached) " >&6
6756 else
6757   if test -n "$OTOOL"; then
6758   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6759 else
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763   IFS=$as_save_IFS
6764   test -z "$as_dir" && as_dir=.
6765     for ac_exec_ext in '' $ac_executable_extensions; do
6766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769     break 2
6770   fi
6771 done
6772   done
6773 IFS=$as_save_IFS
6774
6775 fi
6776 fi
6777 OTOOL=$ac_cv_prog_OTOOL
6778 if test -n "$OTOOL"; then
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6780 $as_echo "$OTOOL" >&6; }
6781 else
6782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783 $as_echo "no" >&6; }
6784 fi
6785
6786
6787 fi
6788 if test -z "$ac_cv_prog_OTOOL"; then
6789   ac_ct_OTOOL=$OTOOL
6790   # Extract the first word of "otool", so it can be a program name with args.
6791 set dummy otool; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6795   $as_echo_n "(cached) " >&6
6796 else
6797   if test -n "$ac_ct_OTOOL"; then
6798   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803   IFS=$as_save_IFS
6804   test -z "$as_dir" && as_dir=.
6805     for ac_exec_ext in '' $ac_executable_extensions; do
6806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807     ac_cv_prog_ac_ct_OTOOL="otool"
6808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809     break 2
6810   fi
6811 done
6812   done
6813 IFS=$as_save_IFS
6814
6815 fi
6816 fi
6817 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6818 if test -n "$ac_ct_OTOOL"; then
6819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6820 $as_echo "$ac_ct_OTOOL" >&6; }
6821 else
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6824 fi
6825
6826   if test "x$ac_ct_OTOOL" = x; then
6827     OTOOL=":"
6828   else
6829     case $cross_compiling:$ac_tool_warned in
6830 yes:)
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833 ac_tool_warned=yes ;;
6834 esac
6835     OTOOL=$ac_ct_OTOOL
6836   fi
6837 else
6838   OTOOL="$ac_cv_prog_OTOOL"
6839 fi
6840
6841     if test -n "$ac_tool_prefix"; then
6842   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6843 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845 $as_echo_n "checking for $ac_word... " >&6; }
6846 if ${ac_cv_prog_OTOOL64+:} false; then :
6847   $as_echo_n "(cached) " >&6
6848 else
6849   if test -n "$OTOOL64"; then
6850   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6851 else
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 for as_dir in $PATH
6854 do
6855   IFS=$as_save_IFS
6856   test -z "$as_dir" && as_dir=.
6857     for ac_exec_ext in '' $ac_executable_extensions; do
6858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6859     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6861     break 2
6862   fi
6863 done
6864   done
6865 IFS=$as_save_IFS
6866
6867 fi
6868 fi
6869 OTOOL64=$ac_cv_prog_OTOOL64
6870 if test -n "$OTOOL64"; then
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6872 $as_echo "$OTOOL64" >&6; }
6873 else
6874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 $as_echo "no" >&6; }
6876 fi
6877
6878
6879 fi
6880 if test -z "$ac_cv_prog_OTOOL64"; then
6881   ac_ct_OTOOL64=$OTOOL64
6882   # Extract the first word of "otool64", so it can be a program name with args.
6883 set dummy otool64; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   if test -n "$ac_ct_OTOOL64"; then
6890   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897     for ac_exec_ext in '' $ac_executable_extensions; do
6898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6899     ac_cv_prog_ac_ct_OTOOL64="otool64"
6900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904   done
6905 IFS=$as_save_IFS
6906
6907 fi
6908 fi
6909 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6910 if test -n "$ac_ct_OTOOL64"; then
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6912 $as_echo "$ac_ct_OTOOL64" >&6; }
6913 else
6914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6916 fi
6917
6918   if test "x$ac_ct_OTOOL64" = x; then
6919     OTOOL64=":"
6920   else
6921     case $cross_compiling:$ac_tool_warned in
6922 yes:)
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6925 ac_tool_warned=yes ;;
6926 esac
6927     OTOOL64=$ac_ct_OTOOL64
6928   fi
6929 else
6930   OTOOL64="$ac_cv_prog_OTOOL64"
6931 fi
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6960 $as_echo_n "checking for -single_module linker flag... " >&6; }
6961 if ${lt_cv_apple_cc_single_mod+:} false; then :
6962   $as_echo_n "(cached) " >&6
6963 else
6964   lt_cv_apple_cc_single_mod=no
6965       if test -z "$LT_MULTI_MODULE"; then
6966         # By default we will add the -single_module flag. You can override
6967         # by either setting the environment variable LT_MULTI_MODULE
6968         # non-empty at configure time, or by adding -multi_module to the
6969         # link flags.
6970         rm -rf libconftest.dylib*
6971         echo "int foo(void){return 1;}" > conftest.c
6972         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6973 -dynamiclib -Wl,-single_module conftest.c" >&5
6974         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6975           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6976         _lt_result=$?
6977         # If there is a non-empty error log, and "single_module"
6978         # appears in it, assume the flag caused a linker warning
6979         if test -s conftest.err && $GREP single_module conftest.err; then
6980           cat conftest.err >&5
6981         # Otherwise, if the output was created with a 0 exit code from
6982         # the compiler, it worked.
6983         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6984           lt_cv_apple_cc_single_mod=yes
6985         else
6986           cat conftest.err >&5
6987         fi
6988         rm -rf libconftest.dylib*
6989         rm -f conftest.*
6990       fi
6991 fi
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6993 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6994
6995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6996 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6997 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6998   $as_echo_n "(cached) " >&6
6999 else
7000   lt_cv_ld_exported_symbols_list=no
7001       save_LDFLAGS=$LDFLAGS
7002       echo "_main" > conftest.sym
7003       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7004       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h.  */
7006
7007 int
7008 main ()
7009 {
7010
7011   ;
7012   return 0;
7013 }
7014 _ACEOF
7015 if ac_fn_c_try_link "$LINENO"; then :
7016   lt_cv_ld_exported_symbols_list=yes
7017 else
7018   lt_cv_ld_exported_symbols_list=no
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext \
7021     conftest$ac_exeext conftest.$ac_ext
7022         LDFLAGS=$save_LDFLAGS
7023
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7026 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7027
7028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7029 $as_echo_n "checking for -force_load linker flag... " >&6; }
7030 if ${lt_cv_ld_force_load+:} false; then :
7031   $as_echo_n "(cached) " >&6
7032 else
7033   lt_cv_ld_force_load=no
7034       cat > conftest.c << _LT_EOF
7035 int forced_loaded() { return 2;}
7036 _LT_EOF
7037       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7038       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7039       echo "$AR cru libconftest.a conftest.o" >&5
7040       $AR cru libconftest.a conftest.o 2>&5
7041       echo "$RANLIB libconftest.a" >&5
7042       $RANLIB libconftest.a 2>&5
7043       cat > conftest.c << _LT_EOF
7044 int main() { return 0;}
7045 _LT_EOF
7046       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7047       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7048       _lt_result=$?
7049       if test -s conftest.err && $GREP force_load conftest.err; then
7050         cat conftest.err >&5
7051       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7052         lt_cv_ld_force_load=yes
7053       else
7054         cat conftest.err >&5
7055       fi
7056         rm -f conftest.err libconftest.a conftest conftest.c
7057         rm -rf conftest.dSYM
7058
7059 fi
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7061 $as_echo "$lt_cv_ld_force_load" >&6; }
7062     case $host_os in
7063     rhapsody* | darwin1.[012])
7064       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7065     darwin1.*)
7066       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7067     darwin*) # darwin 5.x on
7068       # if running on 10.5 or later, the deployment target defaults
7069       # to the OS version, if on x86, and 10.4, the deployment
7070       # target defaults to 10.4. Don't you love it?
7071       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7072         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7073           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7074         10.[012][,.]*)
7075           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7076         10.*)
7077           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7078       esac
7079     ;;
7080   esac
7081     if test yes = "$lt_cv_apple_cc_single_mod"; then
7082       _lt_dar_single_mod='$single_module'
7083     fi
7084     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7085       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7086     else
7087       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7088     fi
7089     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7090       _lt_dsymutil='~$DSYMUTIL $lib || :'
7091     else
7092       _lt_dsymutil=
7093     fi
7094     ;;
7095   esac
7096
7097 # func_munge_path_list VARIABLE PATH
7098 # -----------------------------------
7099 # VARIABLE is name of variable containing _space_ separated list of
7100 # directories to be munged by the contents of PATH, which is string
7101 # having a format:
7102 # "DIR[:DIR]:"
7103 #       string "DIR[ DIR]" will be prepended to VARIABLE
7104 # ":DIR[:DIR]"
7105 #       string "DIR[ DIR]" will be appended to VARIABLE
7106 # "DIRP[:DIRP]::[DIRA:]DIRA"
7107 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7108 #       "DIRA[ DIRA]" will be appended to VARIABLE
7109 # "DIR[:DIR]"
7110 #       VARIABLE will be replaced by "DIR[ DIR]"
7111 func_munge_path_list ()
7112 {
7113     case x$2 in
7114     x)
7115         ;;
7116     *:)
7117         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7118         ;;
7119     x:*)
7120         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7121         ;;
7122     *::*)
7123         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7124         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7125         ;;
7126     *)
7127         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7128         ;;
7129     esac
7130 }
7131
7132
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7134 $as_echo_n "checking for ANSI C header files... " >&6; }
7135 if ${ac_cv_header_stdc+:} false; then :
7136   $as_echo_n "(cached) " >&6
7137 else
7138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h.  */
7140 #include <stdlib.h>
7141 #include <stdarg.h>
7142 #include <string.h>
7143 #include <float.h>
7144
7145 int
7146 main ()
7147 {
7148
7149   ;
7150   return 0;
7151 }
7152 _ACEOF
7153 if ac_fn_c_try_compile "$LINENO"; then :
7154   ac_cv_header_stdc=yes
7155 else
7156   ac_cv_header_stdc=no
7157 fi
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159
7160 if test $ac_cv_header_stdc = yes; then
7161   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h.  */
7164 #include <string.h>
7165
7166 _ACEOF
7167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7168   $EGREP "memchr" >/dev/null 2>&1; then :
7169
7170 else
7171   ac_cv_header_stdc=no
7172 fi
7173 rm -f conftest*
7174
7175 fi
7176
7177 if test $ac_cv_header_stdc = yes; then
7178   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h.  */
7181 #include <stdlib.h>
7182
7183 _ACEOF
7184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7185   $EGREP "free" >/dev/null 2>&1; then :
7186
7187 else
7188   ac_cv_header_stdc=no
7189 fi
7190 rm -f conftest*
7191
7192 fi
7193
7194 if test $ac_cv_header_stdc = yes; then
7195   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7196   if test "$cross_compiling" = yes; then :
7197   :
7198 else
7199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h.  */
7201 #include <ctype.h>
7202 #include <stdlib.h>
7203 #if ((' ' & 0x0FF) == 0x020)
7204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7206 #else
7207 # define ISLOWER(c) \
7208                    (('a' <= (c) && (c) <= 'i') \
7209                      || ('j' <= (c) && (c) <= 'r') \
7210                      || ('s' <= (c) && (c) <= 'z'))
7211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7212 #endif
7213
7214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7215 int
7216 main ()
7217 {
7218   int i;
7219   for (i = 0; i < 256; i++)
7220     if (XOR (islower (i), ISLOWER (i))
7221         || toupper (i) != TOUPPER (i))
7222       return 2;
7223   return 0;
7224 }
7225 _ACEOF
7226 if ac_fn_c_try_run "$LINENO"; then :
7227
7228 else
7229   ac_cv_header_stdc=no
7230 fi
7231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7232   conftest.$ac_objext conftest.beam conftest.$ac_ext
7233 fi
7234
7235 fi
7236 fi
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7238 $as_echo "$ac_cv_header_stdc" >&6; }
7239 if test $ac_cv_header_stdc = yes; then
7240
7241 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7242
7243 fi
7244
7245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7246 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7247                   inttypes.h stdint.h unistd.h
7248 do :
7249   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7250 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7251 "
7252 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7253   cat >>confdefs.h <<_ACEOF
7254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7255 _ACEOF
7256
7257 fi
7258
7259 done
7260
7261
7262 for ac_header in dlfcn.h
7263 do :
7264   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7265 "
7266 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7267   cat >>confdefs.h <<_ACEOF
7268 #define HAVE_DLFCN_H 1
7269 _ACEOF
7270
7271 fi
7272
7273 done
7274
7275
7276
7277
7278
7279 # Set options
7280 enable_win32_dll=yes
7281
7282 case $host in
7283 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7284   if test -n "$ac_tool_prefix"; then
7285   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7286 set dummy ${ac_tool_prefix}as; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_AS+:} false; then :
7290   $as_echo_n "(cached) " >&6
7291 else
7292   if test -n "$AS"; then
7293   ac_cv_prog_AS="$AS" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298   IFS=$as_save_IFS
7299   test -z "$as_dir" && as_dir=.
7300     for ac_exec_ext in '' $ac_executable_extensions; do
7301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302     ac_cv_prog_AS="${ac_tool_prefix}as"
7303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304     break 2
7305   fi
7306 done
7307   done
7308 IFS=$as_save_IFS
7309
7310 fi
7311 fi
7312 AS=$ac_cv_prog_AS
7313 if test -n "$AS"; then
7314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7315 $as_echo "$AS" >&6; }
7316 else
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7319 fi
7320
7321
7322 fi
7323 if test -z "$ac_cv_prog_AS"; then
7324   ac_ct_AS=$AS
7325   # Extract the first word of "as", so it can be a program name with args.
7326 set dummy as; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   if test -n "$ac_ct_AS"; then
7333   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338   IFS=$as_save_IFS
7339   test -z "$as_dir" && as_dir=.
7340     for ac_exec_ext in '' $ac_executable_extensions; do
7341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342     ac_cv_prog_ac_ct_AS="as"
7343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344     break 2
7345   fi
7346 done
7347   done
7348 IFS=$as_save_IFS
7349
7350 fi
7351 fi
7352 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7353 if test -n "$ac_ct_AS"; then
7354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7355 $as_echo "$ac_ct_AS" >&6; }
7356 else
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7359 fi
7360
7361   if test "x$ac_ct_AS" = x; then
7362     AS="false"
7363   else
7364     case $cross_compiling:$ac_tool_warned in
7365 yes:)
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7368 ac_tool_warned=yes ;;
7369 esac
7370     AS=$ac_ct_AS
7371   fi
7372 else
7373   AS="$ac_cv_prog_AS"
7374 fi
7375
7376   if test -n "$ac_tool_prefix"; then
7377   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7378 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if ${ac_cv_prog_DLLTOOL+:} false; then :
7382   $as_echo_n "(cached) " >&6
7383 else
7384   if test -n "$DLLTOOL"; then
7385   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390   IFS=$as_save_IFS
7391   test -z "$as_dir" && as_dir=.
7392     for ac_exec_ext in '' $ac_executable_extensions; do
7393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396     break 2
7397   fi
7398 done
7399   done
7400 IFS=$as_save_IFS
7401
7402 fi
7403 fi
7404 DLLTOOL=$ac_cv_prog_DLLTOOL
7405 if test -n "$DLLTOOL"; then
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7407 $as_echo "$DLLTOOL" >&6; }
7408 else
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 fi
7412
7413
7414 fi
7415 if test -z "$ac_cv_prog_DLLTOOL"; then
7416   ac_ct_DLLTOOL=$DLLTOOL
7417   # Extract the first word of "dlltool", so it can be a program name with args.
7418 set dummy dlltool; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7422   $as_echo_n "(cached) " >&6
7423 else
7424   if test -n "$ac_ct_DLLTOOL"; then
7425   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430   IFS=$as_save_IFS
7431   test -z "$as_dir" && as_dir=.
7432     for ac_exec_ext in '' $ac_executable_extensions; do
7433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436     break 2
7437   fi
7438 done
7439   done
7440 IFS=$as_save_IFS
7441
7442 fi
7443 fi
7444 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7445 if test -n "$ac_ct_DLLTOOL"; then
7446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7447 $as_echo "$ac_ct_DLLTOOL" >&6; }
7448 else
7449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7451 fi
7452
7453   if test "x$ac_ct_DLLTOOL" = x; then
7454     DLLTOOL="false"
7455   else
7456     case $cross_compiling:$ac_tool_warned in
7457 yes:)
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7460 ac_tool_warned=yes ;;
7461 esac
7462     DLLTOOL=$ac_ct_DLLTOOL
7463   fi
7464 else
7465   DLLTOOL="$ac_cv_prog_DLLTOOL"
7466 fi
7467
7468   if test -n "$ac_tool_prefix"; then
7469   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7470 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_OBJDUMP+:} false; then :
7474   $as_echo_n "(cached) " >&6
7475 else
7476   if test -n "$OBJDUMP"; then
7477   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482   IFS=$as_save_IFS
7483   test -z "$as_dir" && as_dir=.
7484     for ac_exec_ext in '' $ac_executable_extensions; do
7485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488     break 2
7489   fi
7490 done
7491   done
7492 IFS=$as_save_IFS
7493
7494 fi
7495 fi
7496 OBJDUMP=$ac_cv_prog_OBJDUMP
7497 if test -n "$OBJDUMP"; then
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7499 $as_echo "$OBJDUMP" >&6; }
7500 else
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 fi
7504
7505
7506 fi
7507 if test -z "$ac_cv_prog_OBJDUMP"; then
7508   ac_ct_OBJDUMP=$OBJDUMP
7509   # Extract the first word of "objdump", so it can be a program name with args.
7510 set dummy objdump; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7514   $as_echo_n "(cached) " >&6
7515 else
7516   if test -n "$ac_ct_OBJDUMP"; then
7517   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524     for ac_exec_ext in '' $ac_executable_extensions; do
7525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528     break 2
7529   fi
7530 done
7531   done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7537 if test -n "$ac_ct_OBJDUMP"; then
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7539 $as_echo "$ac_ct_OBJDUMP" >&6; }
7540 else
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545   if test "x$ac_ct_OBJDUMP" = x; then
7546     OBJDUMP="false"
7547   else
7548     case $cross_compiling:$ac_tool_warned in
7549 yes:)
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7552 ac_tool_warned=yes ;;
7553 esac
7554     OBJDUMP=$ac_ct_OBJDUMP
7555   fi
7556 else
7557   OBJDUMP="$ac_cv_prog_OBJDUMP"
7558 fi
7559
7560   ;;
7561 esac
7562
7563 test -z "$AS" && AS=as
7564
7565
7566
7567
7568
7569 test -z "$DLLTOOL" && DLLTOOL=dlltool
7570
7571
7572
7573
7574
7575 test -z "$OBJDUMP" && OBJDUMP=objdump
7576
7577
7578
7579
7580
7581
7582
7583         enable_dlopen=no
7584
7585
7586
7587             # Check whether --enable-shared was given.
7588 if test "${enable_shared+set}" = set; then :
7589   enableval=$enable_shared; p=${PACKAGE-default}
7590     case $enableval in
7591     yes) enable_shared=yes ;;
7592     no) enable_shared=no ;;
7593     *)
7594       enable_shared=no
7595       # Look at the argument we got.  We use all the common list separators.
7596       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7597       for pkg in $enableval; do
7598         IFS=$lt_save_ifs
7599         if test "X$pkg" = "X$p"; then
7600           enable_shared=yes
7601         fi
7602       done
7603       IFS=$lt_save_ifs
7604       ;;
7605     esac
7606 else
7607   enable_shared=yes
7608 fi
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618   # Check whether --enable-static was given.
7619 if test "${enable_static+set}" = set; then :
7620   enableval=$enable_static; p=${PACKAGE-default}
7621     case $enableval in
7622     yes) enable_static=yes ;;
7623     no) enable_static=no ;;
7624     *)
7625      enable_static=no
7626       # Look at the argument we got.  We use all the common list separators.
7627       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7628       for pkg in $enableval; do
7629         IFS=$lt_save_ifs
7630         if test "X$pkg" = "X$p"; then
7631           enable_static=yes
7632         fi
7633       done
7634       IFS=$lt_save_ifs
7635       ;;
7636     esac
7637 else
7638   enable_static=yes
7639 fi
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650 # Check whether --with-pic was given.
7651 if test "${with_pic+set}" = set; then :
7652   withval=$with_pic; lt_p=${PACKAGE-default}
7653     case $withval in
7654     yes|no) pic_mode=$withval ;;
7655     *)
7656       pic_mode=default
7657       # Look at the argument we got.  We use all the common list separators.
7658       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7659       for lt_pkg in $withval; do
7660         IFS=$lt_save_ifs
7661         if test "X$lt_pkg" = "X$lt_p"; then
7662           pic_mode=yes
7663         fi
7664       done
7665       IFS=$lt_save_ifs
7666       ;;
7667     esac
7668 else
7669   pic_mode=default
7670 fi
7671
7672
7673
7674
7675
7676
7677
7678
7679   # Check whether --enable-fast-install was given.
7680 if test "${enable_fast_install+set}" = set; then :
7681   enableval=$enable_fast_install; p=${PACKAGE-default}
7682     case $enableval in
7683     yes) enable_fast_install=yes ;;
7684     no) enable_fast_install=no ;;
7685     *)
7686       enable_fast_install=no
7687       # Look at the argument we got.  We use all the common list separators.
7688       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7689       for pkg in $enableval; do
7690         IFS=$lt_save_ifs
7691         if test "X$pkg" = "X$p"; then
7692           enable_fast_install=yes
7693         fi
7694       done
7695       IFS=$lt_save_ifs
7696       ;;
7697     esac
7698 else
7699   enable_fast_install=yes
7700 fi
7701
7702
7703
7704
7705
7706
7707
7708
7709   shared_archive_member_spec=
7710 case $host,$enable_shared in
7711 power*-*-aix[5-9]*,yes)
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7713 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7714
7715 # Check whether --with-aix-soname was given.
7716 if test "${with_aix_soname+set}" = set; then :
7717   withval=$with_aix_soname; case $withval in
7718     aix|svr4|both)
7719       ;;
7720     *)
7721       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7722       ;;
7723     esac
7724     lt_cv_with_aix_soname=$with_aix_soname
7725 else
7726   if ${lt_cv_with_aix_soname+:} false; then :
7727   $as_echo_n "(cached) " >&6
7728 else
7729   lt_cv_with_aix_soname=aix
7730 fi
7731
7732     with_aix_soname=$lt_cv_with_aix_soname
7733 fi
7734
7735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7736 $as_echo "$with_aix_soname" >&6; }
7737   if test aix != "$with_aix_soname"; then
7738     # For the AIX way of multilib, we name the shared archive member
7739     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7740     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7741     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7742     # the AIX toolchain works better with OBJECT_MODE set (default 32).
7743     if test 64 = "${OBJECT_MODE-32}"; then
7744       shared_archive_member_spec=shr_64
7745     else
7746       shared_archive_member_spec=shr
7747     fi
7748   fi
7749   ;;
7750 *)
7751   with_aix_soname=aix
7752   ;;
7753 esac
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764 # This can be used to rebuild libtool when needed
7765 LIBTOOL_DEPS=$ltmain
7766
7767 # Always use our own libtool.
7768 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799 test -z "$LN_S" && LN_S="ln -s"
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814 if test -n "${ZSH_VERSION+set}"; then
7815    setopt NO_GLOB_SUBST
7816 fi
7817
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7819 $as_echo_n "checking for objdir... " >&6; }
7820 if ${lt_cv_objdir+:} false; then :
7821   $as_echo_n "(cached) " >&6
7822 else
7823   rm -f .libs 2>/dev/null
7824 mkdir .libs 2>/dev/null
7825 if test -d .libs; then
7826   lt_cv_objdir=.libs
7827 else
7828   # MS-DOS does not allow filenames that begin with a dot.
7829   lt_cv_objdir=_libs
7830 fi
7831 rmdir .libs 2>/dev/null
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7834 $as_echo "$lt_cv_objdir" >&6; }
7835 objdir=$lt_cv_objdir
7836
7837
7838
7839
7840
7841 cat >>confdefs.h <<_ACEOF
7842 #define LT_OBJDIR "$lt_cv_objdir/"
7843 _ACEOF
7844
7845
7846
7847
7848 case $host_os in
7849 aix3*)
7850   # AIX sometimes has problems with the GCC collect2 program.  For some
7851   # reason, if we set the COLLECT_NAMES environment variable, the problems
7852   # vanish in a puff of smoke.
7853   if test set != "${COLLECT_NAMES+set}"; then
7854     COLLECT_NAMES=
7855     export COLLECT_NAMES
7856   fi
7857   ;;
7858 esac
7859
7860 # Global variables:
7861 ofile=libtool
7862 can_build_shared=yes
7863
7864 # All known linkers require a '.a' archive for static linking (except MSVC,
7865 # which needs '.lib').
7866 libext=a
7867
7868 with_gnu_ld=$lt_cv_prog_gnu_ld
7869
7870 old_CC=$CC
7871 old_CFLAGS=$CFLAGS
7872
7873 # Set sane defaults for various variables
7874 test -z "$CC" && CC=cc
7875 test -z "$LTCC" && LTCC=$CC
7876 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7877 test -z "$LD" && LD=ld
7878 test -z "$ac_objext" && ac_objext=o
7879
7880 func_cc_basename $compiler
7881 cc_basename=$func_cc_basename_result
7882
7883
7884 # Only perform the check for file, if the check method requires it
7885 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7886 case $deplibs_check_method in
7887 file_magic*)
7888   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7890 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7891 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7892   $as_echo_n "(cached) " >&6
7893 else
7894   case $MAGIC_CMD in
7895 [\\/*] |  ?:[\\/]*)
7896   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7897   ;;
7898 *)
7899   lt_save_MAGIC_CMD=$MAGIC_CMD
7900   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7901   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7902   for ac_dir in $ac_dummy; do
7903     IFS=$lt_save_ifs
7904     test -z "$ac_dir" && ac_dir=.
7905     if test -f "$ac_dir/${ac_tool_prefix}file"; then
7906       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7907       if test -n "$file_magic_test_file"; then
7908         case $deplibs_check_method in
7909         "file_magic "*)
7910           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7911           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7912           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7913             $EGREP "$file_magic_regex" > /dev/null; then
7914             :
7915           else
7916             cat <<_LT_EOF 1>&2
7917
7918 *** Warning: the command libtool uses to detect shared libraries,
7919 *** $file_magic_cmd, produces output that libtool cannot recognize.
7920 *** The result is that libtool may fail to recognize shared libraries
7921 *** as such.  This will affect the creation of libtool libraries that
7922 *** depend on shared libraries, but programs linked with such libtool
7923 *** libraries will work regardless of this problem.  Nevertheless, you
7924 *** may want to report the problem to your system manager and/or to
7925 *** bug-libtool@gnu.org
7926
7927 _LT_EOF
7928           fi ;;
7929         esac
7930       fi
7931       break
7932     fi
7933   done
7934   IFS=$lt_save_ifs
7935   MAGIC_CMD=$lt_save_MAGIC_CMD
7936   ;;
7937 esac
7938 fi
7939
7940 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7941 if test -n "$MAGIC_CMD"; then
7942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7943 $as_echo "$MAGIC_CMD" >&6; }
7944 else
7945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7947 fi
7948
7949
7950
7951
7952
7953 if test -z "$lt_cv_path_MAGIC_CMD"; then
7954   if test -n "$ac_tool_prefix"; then
7955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7956 $as_echo_n "checking for file... " >&6; }
7957 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7958   $as_echo_n "(cached) " >&6
7959 else
7960   case $MAGIC_CMD in
7961 [\\/*] |  ?:[\\/]*)
7962   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7963   ;;
7964 *)
7965   lt_save_MAGIC_CMD=$MAGIC_CMD
7966   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7967   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7968   for ac_dir in $ac_dummy; do
7969     IFS=$lt_save_ifs
7970     test -z "$ac_dir" && ac_dir=.
7971     if test -f "$ac_dir/file"; then
7972       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7973       if test -n "$file_magic_test_file"; then
7974         case $deplibs_check_method in
7975         "file_magic "*)
7976           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7977           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7978           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7979             $EGREP "$file_magic_regex" > /dev/null; then
7980             :
7981           else
7982             cat <<_LT_EOF 1>&2
7983
7984 *** Warning: the command libtool uses to detect shared libraries,
7985 *** $file_magic_cmd, produces output that libtool cannot recognize.
7986 *** The result is that libtool may fail to recognize shared libraries
7987 *** as such.  This will affect the creation of libtool libraries that
7988 *** depend on shared libraries, but programs linked with such libtool
7989 *** libraries will work regardless of this problem.  Nevertheless, you
7990 *** may want to report the problem to your system manager and/or to
7991 *** bug-libtool@gnu.org
7992
7993 _LT_EOF
7994           fi ;;
7995         esac
7996       fi
7997       break
7998     fi
7999   done
8000   IFS=$lt_save_ifs
8001   MAGIC_CMD=$lt_save_MAGIC_CMD
8002   ;;
8003 esac
8004 fi
8005
8006 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8007 if test -n "$MAGIC_CMD"; then
8008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8009 $as_echo "$MAGIC_CMD" >&6; }
8010 else
8011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8013 fi
8014
8015
8016   else
8017     MAGIC_CMD=:
8018   fi
8019 fi
8020
8021   fi
8022   ;;
8023 esac
8024
8025 # Use C for the default configuration in the libtool script
8026
8027 lt_save_CC=$CC
8028 ac_ext=c
8029 ac_cpp='$CPP $CPPFLAGS'
8030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033
8034
8035 # Source file extension for C test sources.
8036 ac_ext=c
8037
8038 # Object file extension for compiled C test sources.
8039 objext=o
8040 objext=$objext
8041
8042 # Code to be used in simple compile tests
8043 lt_simple_compile_test_code="int some_variable = 0;"
8044
8045 # Code to be used in simple link tests
8046 lt_simple_link_test_code='int main(){return(0);}'
8047
8048
8049
8050
8051
8052
8053
8054 # If no C compiler was specified, use CC.
8055 LTCC=${LTCC-"$CC"}
8056
8057 # If no C compiler flags were specified, use CFLAGS.
8058 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8059
8060 # Allow CC to be a program name with arguments.
8061 compiler=$CC
8062
8063 # Save the default compiler, since it gets overwritten when the other
8064 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8065 compiler_DEFAULT=$CC
8066
8067 # save warnings/boilerplate of simple test code
8068 ac_outfile=conftest.$ac_objext
8069 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8070 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8071 _lt_compiler_boilerplate=`cat conftest.err`
8072 $RM conftest*
8073
8074 ac_outfile=conftest.$ac_objext
8075 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8076 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8077 _lt_linker_boilerplate=`cat conftest.err`
8078 $RM -r conftest*
8079
8080
8081 if test -n "$compiler"; then
8082
8083 lt_prog_compiler_no_builtin_flag=
8084
8085 if test yes = "$GCC"; then
8086   case $cc_basename in
8087   nvcc*)
8088     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8089   *)
8090     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8091   esac
8092
8093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8094 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8095 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8096   $as_echo_n "(cached) " >&6
8097 else
8098   lt_cv_prog_compiler_rtti_exceptions=no
8099    ac_outfile=conftest.$ac_objext
8100    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8101    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8102    # Insert the option either (1) after the last *FLAGS variable, or
8103    # (2) before a word containing "conftest.", or (3) at the end.
8104    # Note that $ac_compile itself does not contain backslashes and begins
8105    # with a dollar sign (not a hyphen), so the echo should work correctly.
8106    # The option is referenced via a variable to avoid confusing sed.
8107    lt_compile=`echo "$ac_compile" | $SED \
8108    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8109    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8110    -e 's:$: $lt_compiler_flag:'`
8111    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8112    (eval "$lt_compile" 2>conftest.err)
8113    ac_status=$?
8114    cat conftest.err >&5
8115    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116    if (exit $ac_status) && test -s "$ac_outfile"; then
8117      # The compiler can only warn and ignore the option if not recognized
8118      # So say no if there are warnings other than the usual output.
8119      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8120      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8121      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8122        lt_cv_prog_compiler_rtti_exceptions=yes
8123      fi
8124    fi
8125    $RM conftest*
8126
8127 fi
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8129 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8130
8131 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8132     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8133 else
8134     :
8135 fi
8136
8137 fi
8138
8139
8140
8141
8142
8143
8144   lt_prog_compiler_wl=
8145 lt_prog_compiler_pic=
8146 lt_prog_compiler_static=
8147
8148
8149   if test yes = "$GCC"; then
8150     lt_prog_compiler_wl='-Wl,'
8151     lt_prog_compiler_static='-static'
8152
8153     case $host_os in
8154       aix*)
8155       # All AIX code is PIC.
8156       if test ia64 = "$host_cpu"; then
8157         # AIX 5 now supports IA64 processor
8158         lt_prog_compiler_static='-Bstatic'
8159       fi
8160       lt_prog_compiler_pic='-fPIC'
8161       ;;
8162
8163     amigaos*)
8164       case $host_cpu in
8165       powerpc)
8166             # see comment about AmigaOS4 .so support
8167             lt_prog_compiler_pic='-fPIC'
8168         ;;
8169       m68k)
8170             # FIXME: we need at least 68020 code to build shared libraries, but
8171             # adding the '-m68020' flag to GCC prevents building anything better,
8172             # like '-m68040'.
8173             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8174         ;;
8175       esac
8176       ;;
8177
8178     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8179       # PIC is the default for these OSes.
8180       ;;
8181
8182     mingw* | cygwin* | pw32* | os2* | cegcc*)
8183       # This hack is so that the source file can tell whether it is being
8184       # built for inclusion in a dll (and should export symbols for example).
8185       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8186       # (--disable-auto-import) libraries
8187       lt_prog_compiler_pic='-DDLL_EXPORT'
8188       case $host_os in
8189       os2*)
8190         lt_prog_compiler_static='$wl-static'
8191         ;;
8192       esac
8193       ;;
8194
8195     darwin* | rhapsody*)
8196       # PIC is the default on this platform
8197       # Common symbols not allowed in MH_DYLIB files
8198       lt_prog_compiler_pic='-fno-common'
8199       ;;
8200
8201     haiku*)
8202       # PIC is the default for Haiku.
8203       # The "-static" flag exists, but is broken.
8204       lt_prog_compiler_static=
8205       ;;
8206
8207     hpux*)
8208       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8209       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8210       # sets the default TLS model and affects inlining.
8211       case $host_cpu in
8212       hppa*64*)
8213         # +Z the default
8214         ;;
8215       *)
8216         lt_prog_compiler_pic='-fPIC'
8217         ;;
8218       esac
8219       ;;
8220
8221     interix[3-9]*)
8222       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8223       # Instead, we relocate shared libraries at runtime.
8224       ;;
8225
8226     msdosdjgpp*)
8227       # Just because we use GCC doesn't mean we suddenly get shared libraries
8228       # on systems that don't support them.
8229       lt_prog_compiler_can_build_shared=no
8230       enable_shared=no
8231       ;;
8232
8233     *nto* | *qnx*)
8234       # QNX uses GNU C++, but need to define -shared option too, otherwise
8235       # it will coredump.
8236       lt_prog_compiler_pic='-fPIC -shared'
8237       ;;
8238
8239     sysv4*MP*)
8240       if test -d /usr/nec; then
8241         lt_prog_compiler_pic=-Kconform_pic
8242       fi
8243       ;;
8244
8245     *)
8246       lt_prog_compiler_pic='-fPIC'
8247       ;;
8248     esac
8249
8250     case $cc_basename in
8251     nvcc*) # Cuda Compiler Driver 2.2
8252       lt_prog_compiler_wl='-Xlinker '
8253       if test -n "$lt_prog_compiler_pic"; then
8254         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8255       fi
8256       ;;
8257     esac
8258   else
8259     # PORTME Check for flag to pass linker flags through the system compiler.
8260     case $host_os in
8261     aix*)
8262       lt_prog_compiler_wl='-Wl,'
8263       if test ia64 = "$host_cpu"; then
8264         # AIX 5 now supports IA64 processor
8265         lt_prog_compiler_static='-Bstatic'
8266       else
8267         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8268       fi
8269       ;;
8270
8271     darwin* | rhapsody*)
8272       # PIC is the default on this platform
8273       # Common symbols not allowed in MH_DYLIB files
8274       lt_prog_compiler_pic='-fno-common'
8275       case $cc_basename in
8276       nagfor*)
8277         # NAG Fortran compiler
8278         lt_prog_compiler_wl='-Wl,-Wl,,'
8279         lt_prog_compiler_pic='-PIC'
8280         lt_prog_compiler_static='-Bstatic'
8281         ;;
8282       esac
8283       ;;
8284
8285     mingw* | cygwin* | pw32* | os2* | cegcc*)
8286       # This hack is so that the source file can tell whether it is being
8287       # built for inclusion in a dll (and should export symbols for example).
8288       lt_prog_compiler_pic='-DDLL_EXPORT'
8289       case $host_os in
8290       os2*)
8291         lt_prog_compiler_static='$wl-static'
8292         ;;
8293       esac
8294       ;;
8295
8296     hpux9* | hpux10* | hpux11*)
8297       lt_prog_compiler_wl='-Wl,'
8298       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8299       # not for PA HP-UX.
8300       case $host_cpu in
8301       hppa*64*|ia64*)
8302         # +Z the default
8303         ;;
8304       *)
8305         lt_prog_compiler_pic='+Z'
8306         ;;
8307       esac
8308       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8309       lt_prog_compiler_static='$wl-a ${wl}archive'
8310       ;;
8311
8312     irix5* | irix6* | nonstopux*)
8313       lt_prog_compiler_wl='-Wl,'
8314       # PIC (with -KPIC) is the default.
8315       lt_prog_compiler_static='-non_shared'
8316       ;;
8317
8318     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8319       case $cc_basename in
8320       # old Intel for x86_64, which still supported -KPIC.
8321       ecc*)
8322         lt_prog_compiler_wl='-Wl,'
8323         lt_prog_compiler_pic='-KPIC'
8324         lt_prog_compiler_static='-static'
8325         ;;
8326       # icc used to be incompatible with GCC.
8327       # ICC 10 doesn't accept -KPIC any more.
8328       icc* | ifort*)
8329         lt_prog_compiler_wl='-Wl,'
8330         lt_prog_compiler_pic='-fPIC'
8331         lt_prog_compiler_static='-static'
8332         ;;
8333       # Lahey Fortran 8.1.
8334       lf95*)
8335         lt_prog_compiler_wl='-Wl,'
8336         lt_prog_compiler_pic='--shared'
8337         lt_prog_compiler_static='--static'
8338         ;;
8339       nagfor*)
8340         # NAG Fortran compiler
8341         lt_prog_compiler_wl='-Wl,-Wl,,'
8342         lt_prog_compiler_pic='-PIC'
8343         lt_prog_compiler_static='-Bstatic'
8344         ;;
8345       tcc*)
8346         # Fabrice Bellard et al's Tiny C Compiler
8347         lt_prog_compiler_wl='-Wl,'
8348         lt_prog_compiler_pic='-fPIC'
8349         lt_prog_compiler_static='-static'
8350         ;;
8351       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8352         # Portland Group compilers (*not* the Pentium gcc compiler,
8353         # which looks to be a dead project)
8354         lt_prog_compiler_wl='-Wl,'
8355         lt_prog_compiler_pic='-fpic'
8356         lt_prog_compiler_static='-Bstatic'
8357         ;;
8358       ccc*)
8359         lt_prog_compiler_wl='-Wl,'
8360         # All Alpha code is PIC.
8361         lt_prog_compiler_static='-non_shared'
8362         ;;
8363       xl* | bgxl* | bgf* | mpixl*)
8364         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8365         lt_prog_compiler_wl='-Wl,'
8366         lt_prog_compiler_pic='-qpic'
8367         lt_prog_compiler_static='-qstaticlink'
8368         ;;
8369       *)
8370         case `$CC -V 2>&1 | sed 5q` in
8371         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8372           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8373           lt_prog_compiler_pic='-KPIC'
8374           lt_prog_compiler_static='-Bstatic'
8375           lt_prog_compiler_wl=''
8376           ;;
8377         *Sun\ F* | *Sun*Fortran*)
8378           lt_prog_compiler_pic='-KPIC'
8379           lt_prog_compiler_static='-Bstatic'
8380           lt_prog_compiler_wl='-Qoption ld '
8381           ;;
8382         *Sun\ C*)
8383           # Sun C 5.9
8384           lt_prog_compiler_pic='-KPIC'
8385           lt_prog_compiler_static='-Bstatic'
8386           lt_prog_compiler_wl='-Wl,'
8387           ;;
8388         *Intel*\ [CF]*Compiler*)
8389           lt_prog_compiler_wl='-Wl,'
8390           lt_prog_compiler_pic='-fPIC'
8391           lt_prog_compiler_static='-static'
8392           ;;
8393         *Portland\ Group*)
8394           lt_prog_compiler_wl='-Wl,'
8395           lt_prog_compiler_pic='-fpic'
8396           lt_prog_compiler_static='-Bstatic'
8397           ;;
8398         esac
8399         ;;
8400       esac
8401       ;;
8402
8403     newsos6)
8404       lt_prog_compiler_pic='-KPIC'
8405       lt_prog_compiler_static='-Bstatic'
8406       ;;
8407
8408     *nto* | *qnx*)
8409       # QNX uses GNU C++, but need to define -shared option too, otherwise
8410       # it will coredump.
8411       lt_prog_compiler_pic='-fPIC -shared'
8412       ;;
8413
8414     osf3* | osf4* | osf5*)
8415       lt_prog_compiler_wl='-Wl,'
8416       # All OSF/1 code is PIC.
8417       lt_prog_compiler_static='-non_shared'
8418       ;;
8419
8420     rdos*)
8421       lt_prog_compiler_static='-non_shared'
8422       ;;
8423
8424     solaris*)
8425       lt_prog_compiler_pic='-KPIC'
8426       lt_prog_compiler_static='-Bstatic'
8427       case $cc_basename in
8428       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8429         lt_prog_compiler_wl='-Qoption ld ';;
8430       *)
8431         lt_prog_compiler_wl='-Wl,';;
8432       esac
8433       ;;
8434
8435     sunos4*)
8436       lt_prog_compiler_wl='-Qoption ld '
8437       lt_prog_compiler_pic='-PIC'
8438       lt_prog_compiler_static='-Bstatic'
8439       ;;
8440
8441     sysv4 | sysv4.2uw2* | sysv4.3*)
8442       lt_prog_compiler_wl='-Wl,'
8443       lt_prog_compiler_pic='-KPIC'
8444       lt_prog_compiler_static='-Bstatic'
8445       ;;
8446
8447     sysv4*MP*)
8448       if test -d /usr/nec; then
8449         lt_prog_compiler_pic='-Kconform_pic'
8450         lt_prog_compiler_static='-Bstatic'
8451       fi
8452       ;;
8453
8454     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8455       lt_prog_compiler_wl='-Wl,'
8456       lt_prog_compiler_pic='-KPIC'
8457       lt_prog_compiler_static='-Bstatic'
8458       ;;
8459
8460     unicos*)
8461       lt_prog_compiler_wl='-Wl,'
8462       lt_prog_compiler_can_build_shared=no
8463       ;;
8464
8465     uts4*)
8466       lt_prog_compiler_pic='-pic'
8467       lt_prog_compiler_static='-Bstatic'
8468       ;;
8469
8470     *)
8471       lt_prog_compiler_can_build_shared=no
8472       ;;
8473     esac
8474   fi
8475
8476 case $host_os in
8477   # For platforms that do not support PIC, -DPIC is meaningless:
8478   *djgpp*)
8479     lt_prog_compiler_pic=
8480     ;;
8481   *)
8482     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8483     ;;
8484 esac
8485
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8487 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8488 if ${lt_cv_prog_compiler_pic+:} false; then :
8489   $as_echo_n "(cached) " >&6
8490 else
8491   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8492 fi
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8494 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8495 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8496
8497 #
8498 # Check to make sure the PIC flag actually works.
8499 #
8500 if test -n "$lt_prog_compiler_pic"; then
8501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8502 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8503 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8504   $as_echo_n "(cached) " >&6
8505 else
8506   lt_cv_prog_compiler_pic_works=no
8507    ac_outfile=conftest.$ac_objext
8508    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8509    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8510    # Insert the option either (1) after the last *FLAGS variable, or
8511    # (2) before a word containing "conftest.", or (3) at the end.
8512    # Note that $ac_compile itself does not contain backslashes and begins
8513    # with a dollar sign (not a hyphen), so the echo should work correctly.
8514    # The option is referenced via a variable to avoid confusing sed.
8515    lt_compile=`echo "$ac_compile" | $SED \
8516    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8517    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8518    -e 's:$: $lt_compiler_flag:'`
8519    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8520    (eval "$lt_compile" 2>conftest.err)
8521    ac_status=$?
8522    cat conftest.err >&5
8523    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524    if (exit $ac_status) && test -s "$ac_outfile"; then
8525      # The compiler can only warn and ignore the option if not recognized
8526      # So say no if there are warnings other than the usual output.
8527      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8528      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8529      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8530        lt_cv_prog_compiler_pic_works=yes
8531      fi
8532    fi
8533    $RM conftest*
8534
8535 fi
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8537 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8538
8539 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8540     case $lt_prog_compiler_pic in
8541      "" | " "*) ;;
8542      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8543      esac
8544 else
8545     lt_prog_compiler_pic=
8546      lt_prog_compiler_can_build_shared=no
8547 fi
8548
8549 fi
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561 #
8562 # Check to make sure the static flag actually works.
8563 #
8564 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8566 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8567 if ${lt_cv_prog_compiler_static_works+:} false; then :
8568   $as_echo_n "(cached) " >&6
8569 else
8570   lt_cv_prog_compiler_static_works=no
8571    save_LDFLAGS=$LDFLAGS
8572    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8573    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8574    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8575      # The linker can only warn and ignore the option if not recognized
8576      # So say no if there are warnings
8577      if test -s conftest.err; then
8578        # Append any errors to the config.log.
8579        cat conftest.err 1>&5
8580        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8581        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8582        if diff conftest.exp conftest.er2 >/dev/null; then
8583          lt_cv_prog_compiler_static_works=yes
8584        fi
8585      else
8586        lt_cv_prog_compiler_static_works=yes
8587      fi
8588    fi
8589    $RM -r conftest*
8590    LDFLAGS=$save_LDFLAGS
8591
8592 fi
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8594 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8595
8596 if test yes = "$lt_cv_prog_compiler_static_works"; then
8597     :
8598 else
8599     lt_prog_compiler_static=
8600 fi
8601
8602
8603
8604
8605
8606
8607
8608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8609 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8610 if ${lt_cv_prog_compiler_c_o+:} false; then :
8611   $as_echo_n "(cached) " >&6
8612 else
8613   lt_cv_prog_compiler_c_o=no
8614    $RM -r conftest 2>/dev/null
8615    mkdir conftest
8616    cd conftest
8617    mkdir out
8618    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8619
8620    lt_compiler_flag="-o out/conftest2.$ac_objext"
8621    # Insert the option either (1) after the last *FLAGS variable, or
8622    # (2) before a word containing "conftest.", or (3) at the end.
8623    # Note that $ac_compile itself does not contain backslashes and begins
8624    # with a dollar sign (not a hyphen), so the echo should work correctly.
8625    lt_compile=`echo "$ac_compile" | $SED \
8626    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8627    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8628    -e 's:$: $lt_compiler_flag:'`
8629    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8630    (eval "$lt_compile" 2>out/conftest.err)
8631    ac_status=$?
8632    cat out/conftest.err >&5
8633    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8635    then
8636      # The compiler can only warn and ignore the option if not recognized
8637      # So say no if there are warnings
8638      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8639      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8640      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8641        lt_cv_prog_compiler_c_o=yes
8642      fi
8643    fi
8644    chmod u+w . 2>&5
8645    $RM conftest*
8646    # SGI C++ compiler will create directory out/ii_files/ for
8647    # template instantiation
8648    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8649    $RM out/* && rmdir out
8650    cd ..
8651    $RM -r conftest
8652    $RM conftest*
8653
8654 fi
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8656 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8657
8658
8659
8660
8661
8662
8663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8664 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8665 if ${lt_cv_prog_compiler_c_o+:} false; then :
8666   $as_echo_n "(cached) " >&6
8667 else
8668   lt_cv_prog_compiler_c_o=no
8669    $RM -r conftest 2>/dev/null
8670    mkdir conftest
8671    cd conftest
8672    mkdir out
8673    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8674
8675    lt_compiler_flag="-o out/conftest2.$ac_objext"
8676    # Insert the option either (1) after the last *FLAGS variable, or
8677    # (2) before a word containing "conftest.", or (3) at the end.
8678    # Note that $ac_compile itself does not contain backslashes and begins
8679    # with a dollar sign (not a hyphen), so the echo should work correctly.
8680    lt_compile=`echo "$ac_compile" | $SED \
8681    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8682    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8683    -e 's:$: $lt_compiler_flag:'`
8684    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8685    (eval "$lt_compile" 2>out/conftest.err)
8686    ac_status=$?
8687    cat out/conftest.err >&5
8688    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8690    then
8691      # The compiler can only warn and ignore the option if not recognized
8692      # So say no if there are warnings
8693      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8694      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8695      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8696        lt_cv_prog_compiler_c_o=yes
8697      fi
8698    fi
8699    chmod u+w . 2>&5
8700    $RM conftest*
8701    # SGI C++ compiler will create directory out/ii_files/ for
8702    # template instantiation
8703    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8704    $RM out/* && rmdir out
8705    cd ..
8706    $RM -r conftest
8707    $RM conftest*
8708
8709 fi
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8711 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8712
8713
8714
8715
8716 hard_links=nottested
8717 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8718   # do not overwrite the value of need_locks provided by the user
8719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8720 $as_echo_n "checking if we can lock with hard links... " >&6; }
8721   hard_links=yes
8722   $RM conftest*
8723   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8724   touch conftest.a
8725   ln conftest.a conftest.b 2>&5 || hard_links=no
8726   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8728 $as_echo "$hard_links" >&6; }
8729   if test no = "$hard_links"; then
8730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8731 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8732     need_locks=warn
8733   fi
8734 else
8735   need_locks=no
8736 fi
8737
8738
8739
8740
8741
8742
8743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8744 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8745
8746   runpath_var=
8747   allow_undefined_flag=
8748   always_export_symbols=no
8749   archive_cmds=
8750   archive_expsym_cmds=
8751   compiler_needs_object=no
8752   enable_shared_with_static_runtimes=no
8753   export_dynamic_flag_spec=
8754   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8755   hardcode_automatic=no
8756   hardcode_direct=no
8757   hardcode_direct_absolute=no
8758   hardcode_libdir_flag_spec=
8759   hardcode_libdir_separator=
8760   hardcode_minus_L=no
8761   hardcode_shlibpath_var=unsupported
8762   inherit_rpath=no
8763   link_all_deplibs=unknown
8764   module_cmds=
8765   module_expsym_cmds=
8766   old_archive_from_new_cmds=
8767   old_archive_from_expsyms_cmds=
8768   thread_safe_flag_spec=
8769   whole_archive_flag_spec=
8770   # include_expsyms should be a list of space-separated symbols to be *always*
8771   # included in the symbol list
8772   include_expsyms=
8773   # exclude_expsyms can be an extended regexp of symbols to exclude
8774   # it will be wrapped by ' (' and ')$', so one must not match beginning or
8775   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8776   # as well as any symbol that contains 'd'.
8777   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8778   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8779   # platforms (ab)use it in PIC code, but their linkers get confused if
8780   # the symbol is explicitly referenced.  Since portable code cannot
8781   # rely on this symbol name, it's probably fine to never include it in
8782   # preloaded symbol tables.
8783   # Exclude shared library initialization/finalization symbols.
8784   extract_expsyms_cmds=
8785
8786   case $host_os in
8787   cygwin* | mingw* | pw32* | cegcc*)
8788     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8789     # When not using gcc, we currently assume that we are using
8790     # Microsoft Visual C++.
8791     if test yes != "$GCC"; then
8792       with_gnu_ld=no
8793     fi
8794     ;;
8795   interix*)
8796     # we just hope/assume this is gcc and not c89 (= MSVC++)
8797     with_gnu_ld=yes
8798     ;;
8799   openbsd* | bitrig*)
8800     with_gnu_ld=no
8801     ;;
8802   esac
8803
8804   ld_shlibs=yes
8805
8806   # On some targets, GNU ld is compatible enough with the native linker
8807   # that we're better off using the native interface for both.
8808   lt_use_gnu_ld_interface=no
8809   if test yes = "$with_gnu_ld"; then
8810     case $host_os in
8811       aix*)
8812         # The AIX port of GNU ld has always aspired to compatibility
8813         # with the native linker.  However, as the warning in the GNU ld
8814         # block says, versions before 2.19.5* couldn't really create working
8815         # shared libraries, regardless of the interface used.
8816         case `$LD -v 2>&1` in
8817           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8818           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8819           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8820           *)
8821             lt_use_gnu_ld_interface=yes
8822             ;;
8823         esac
8824         ;;
8825       *)
8826         lt_use_gnu_ld_interface=yes
8827         ;;
8828     esac
8829   fi
8830
8831   if test yes = "$lt_use_gnu_ld_interface"; then
8832     # If archive_cmds runs LD, not CC, wlarc should be empty
8833     wlarc='$wl'
8834
8835     # Set some defaults for GNU ld with shared library support. These
8836     # are reset later if shared libraries are not supported. Putting them
8837     # here allows them to be overridden if necessary.
8838     runpath_var=LD_RUN_PATH
8839     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8840     export_dynamic_flag_spec='$wl--export-dynamic'
8841     # ancient GNU ld didn't support --whole-archive et. al.
8842     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8843       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8844     else
8845       whole_archive_flag_spec=
8846     fi
8847     supports_anon_versioning=no
8848     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8849       *GNU\ gold*) supports_anon_versioning=yes ;;
8850       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8851       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8852       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8853       *\ 2.11.*) ;; # other 2.11 versions
8854       *) supports_anon_versioning=yes ;;
8855     esac
8856
8857     # See if GNU ld supports shared libraries.
8858     case $host_os in
8859     aix[3-9]*)
8860       # On AIX/PPC, the GNU linker is very broken
8861       if test ia64 != "$host_cpu"; then
8862         ld_shlibs=no
8863         cat <<_LT_EOF 1>&2
8864
8865 *** Warning: the GNU linker, at least up to release 2.19, is reported
8866 *** to be unable to reliably create shared libraries on AIX.
8867 *** Therefore, libtool is disabling shared libraries support.  If you
8868 *** really care for shared libraries, you may want to install binutils
8869 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8870 *** You will then need to restart the configuration process.
8871
8872 _LT_EOF
8873       fi
8874       ;;
8875
8876     amigaos*)
8877       case $host_cpu in
8878       powerpc)
8879             # see comment about AmigaOS4 .so support
8880             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8881             archive_expsym_cmds=''
8882         ;;
8883       m68k)
8884             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)'
8885             hardcode_libdir_flag_spec='-L$libdir'
8886             hardcode_minus_L=yes
8887         ;;
8888       esac
8889       ;;
8890
8891     beos*)
8892       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8893         allow_undefined_flag=unsupported
8894         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8895         # support --undefined.  This deserves some investigation.  FIXME
8896         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8897       else
8898         ld_shlibs=no
8899       fi
8900       ;;
8901
8902     cygwin* | mingw* | pw32* | cegcc*)
8903       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8904       # as there is no search path for DLLs.
8905       hardcode_libdir_flag_spec='-L$libdir'
8906       export_dynamic_flag_spec='$wl--export-all-symbols'
8907       allow_undefined_flag=unsupported
8908       always_export_symbols=no
8909       enable_shared_with_static_runtimes=yes
8910       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'
8911       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8912
8913       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8914         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8915         # If the export-symbols file already is a .def file, use it as
8916         # is; otherwise, prepend EXPORTS...
8917         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8918           cp $export_symbols $output_objdir/$soname.def;
8919         else
8920           echo EXPORTS > $output_objdir/$soname.def;
8921           cat $export_symbols >> $output_objdir/$soname.def;
8922         fi~
8923         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8924       else
8925         ld_shlibs=no
8926       fi
8927       ;;
8928
8929     haiku*)
8930       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8931       link_all_deplibs=yes
8932       ;;
8933
8934     os2*)
8935       hardcode_libdir_flag_spec='-L$libdir'
8936       hardcode_minus_L=yes
8937       allow_undefined_flag=unsupported
8938       shrext_cmds=.dll
8939       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8940         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8941         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8942         $ECHO EXPORTS >> $output_objdir/$libname.def~
8943         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8944         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8945         emximp -o $lib $output_objdir/$libname.def'
8946       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8947         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8948         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8949         $ECHO EXPORTS >> $output_objdir/$libname.def~
8950         prefix_cmds="$SED"~
8951         if test EXPORTS = "`$SED 1q $export_symbols`"; then
8952           prefix_cmds="$prefix_cmds -e 1d";
8953         fi~
8954         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8955         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8956         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8957         emximp -o $lib $output_objdir/$libname.def'
8958       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8959       enable_shared_with_static_runtimes=yes
8960       ;;
8961
8962     interix[3-9]*)
8963       hardcode_direct=no
8964       hardcode_shlibpath_var=no
8965       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8966       export_dynamic_flag_spec='$wl-E'
8967       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8968       # Instead, shared libraries are loaded at an image base (0x10000000 by
8969       # default) and relocated if they conflict, which is a slow very memory
8970       # consuming and fragmenting process.  To avoid this, we pick a random,
8971       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8972       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8973       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8974       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'
8975       ;;
8976
8977     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8978       tmp_diet=no
8979       if test linux-dietlibc = "$host_os"; then
8980         case $cc_basename in
8981           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8982         esac
8983       fi
8984       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8985          && test no = "$tmp_diet"
8986       then
8987         tmp_addflag=' $pic_flag'
8988         tmp_sharedflag='-shared'
8989         case $cc_basename,$host_cpu in
8990         pgcc*)                          # Portland Group C compiler
8991           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'
8992           tmp_addflag=' $pic_flag'
8993           ;;
8994         pgf77* | pgf90* | pgf95* | pgfortran*)
8995                                         # Portland Group f77 and f90 compilers
8996           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'
8997           tmp_addflag=' $pic_flag -Mnomain' ;;
8998         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8999           tmp_addflag=' -i_dynamic' ;;
9000         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9001           tmp_addflag=' -i_dynamic -nofor_main' ;;
9002         ifc* | ifort*)                  # Intel Fortran compiler
9003           tmp_addflag=' -nofor_main' ;;
9004         lf95*)                          # Lahey Fortran 8.1
9005           whole_archive_flag_spec=
9006           tmp_sharedflag='--shared' ;;
9007         nagfor*)                        # NAGFOR 5.3
9008           tmp_sharedflag='-Wl,-shared' ;;
9009         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9010           tmp_sharedflag='-qmkshrobj'
9011           tmp_addflag= ;;
9012         nvcc*)  # Cuda Compiler Driver 2.2
9013           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'
9014           compiler_needs_object=yes
9015           ;;
9016         esac
9017         case `$CC -V 2>&1 | sed 5q` in
9018         *Sun\ C*)                       # Sun C 5.9
9019           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'
9020           compiler_needs_object=yes
9021           tmp_sharedflag='-G' ;;
9022         *Sun\ F*)                       # Sun Fortran 8.3
9023           tmp_sharedflag='-G' ;;
9024         esac
9025         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9026
9027         if test yes = "$supports_anon_versioning"; then
9028           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9029             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9030             echo "local: *; };" >> $output_objdir/$libname.ver~
9031             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9032         fi
9033
9034         case $cc_basename in
9035         tcc*)
9036           export_dynamic_flag_spec='-rdynamic'
9037           ;;
9038         xlf* | bgf* | bgxlf* | mpixlf*)
9039           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9040           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9041           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9042           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9043           if test yes = "$supports_anon_versioning"; then
9044             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9045               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9046               echo "local: *; };" >> $output_objdir/$libname.ver~
9047               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9048           fi
9049           ;;
9050         esac
9051       else
9052         ld_shlibs=no
9053       fi
9054       ;;
9055
9056     netbsd*)
9057       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9058         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9059         wlarc=
9060       else
9061         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9062         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9063       fi
9064       ;;
9065
9066     solaris*)
9067       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9068         ld_shlibs=no
9069         cat <<_LT_EOF 1>&2
9070
9071 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9072 *** create shared libraries on Solaris systems.  Therefore, libtool
9073 *** is disabling shared libraries support.  We urge you to upgrade GNU
9074 *** binutils to release 2.9.1 or newer.  Another option is to modify
9075 *** your PATH or compiler configuration so that the native linker is
9076 *** used, and then restart.
9077
9078 _LT_EOF
9079       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9080         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9081         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9082       else
9083         ld_shlibs=no
9084       fi
9085       ;;
9086
9087     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9088       case `$LD -v 2>&1` in
9089         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9090         ld_shlibs=no
9091         cat <<_LT_EOF 1>&2
9092
9093 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9094 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9095 *** is disabling shared libraries support.  We urge you to upgrade GNU
9096 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9097 *** your PATH or compiler configuration so that the native linker is
9098 *** used, and then restart.
9099
9100 _LT_EOF
9101         ;;
9102         *)
9103           # For security reasons, it is highly recommended that you always
9104           # use absolute paths for naming shared libraries, and exclude the
9105           # DT_RUNPATH tag from executables and libraries.  But doing so
9106           # requires that you compile everything twice, which is a pain.
9107           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9108             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9109             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9110             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9111           else
9112             ld_shlibs=no
9113           fi
9114         ;;
9115       esac
9116       ;;
9117
9118     sunos4*)
9119       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9120       wlarc=
9121       hardcode_direct=yes
9122       hardcode_shlibpath_var=no
9123       ;;
9124
9125     *)
9126       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9127         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9128         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9129       else
9130         ld_shlibs=no
9131       fi
9132       ;;
9133     esac
9134
9135     if test no = "$ld_shlibs"; then
9136       runpath_var=
9137       hardcode_libdir_flag_spec=
9138       export_dynamic_flag_spec=
9139       whole_archive_flag_spec=
9140     fi
9141   else
9142     # PORTME fill in a description of your system's linker (not GNU ld)
9143     case $host_os in
9144     aix3*)
9145       allow_undefined_flag=unsupported
9146       always_export_symbols=yes
9147       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'
9148       # Note: this linker hardcodes the directories in LIBPATH if there
9149       # are no directories specified by -L.
9150       hardcode_minus_L=yes
9151       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9152         # Neither direct hardcoding nor static linking is supported with a
9153         # broken collect2.
9154         hardcode_direct=unsupported
9155       fi
9156       ;;
9157
9158     aix[4-9]*)
9159       if test ia64 = "$host_cpu"; then
9160         # On IA64, the linker does run time linking by default, so we don't
9161         # have to do anything special.
9162         aix_use_runtimelinking=no
9163         exp_sym_flag='-Bexport'
9164         no_entry_flag=
9165       else
9166         # If we're using GNU nm, then we don't want the "-C" option.
9167         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9168         # Without the "-l" option, or with the "-B" option, AIX nm treats
9169         # weak defined symbols like other global defined symbols, whereas
9170         # GNU nm marks them as "W".
9171         # While the 'weak' keyword is ignored in the Export File, we need
9172         # it in the Import File for the 'aix-soname' feature, so we have
9173         # to replace the "-B" option with "-P" for AIX nm.
9174         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9175           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9176         else
9177           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9178         fi
9179         aix_use_runtimelinking=no
9180
9181         # Test if we are trying to use run time linking or normal
9182         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9183         # have runtime linking enabled, and use it for executables.
9184         # For shared libraries, we enable/disable runtime linking
9185         # depending on the kind of the shared library created -
9186         # when "with_aix_soname,aix_use_runtimelinking" is:
9187         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9188         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9189         #            lib.a           static archive
9190         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9191         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9192         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9193         #            lib.a(lib.so.V) shared, rtl:no
9194         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9195         #            lib.a           static archive
9196         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9197           for ld_flag in $LDFLAGS; do
9198           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9199             aix_use_runtimelinking=yes
9200             break
9201           fi
9202           done
9203           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9204             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9205             # so we don't have lib.a shared libs to link our executables.
9206             # We have to force runtime linking in this case.
9207             aix_use_runtimelinking=yes
9208             LDFLAGS="$LDFLAGS -Wl,-brtl"
9209           fi
9210           ;;
9211         esac
9212
9213         exp_sym_flag='-bexport'
9214         no_entry_flag='-bnoentry'
9215       fi
9216
9217       # When large executables or shared objects are built, AIX ld can
9218       # have problems creating the table of contents.  If linking a library
9219       # or program results in "error TOC overflow" add -mminimal-toc to
9220       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9221       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9222
9223       archive_cmds=''
9224       hardcode_direct=yes
9225       hardcode_direct_absolute=yes
9226       hardcode_libdir_separator=':'
9227       link_all_deplibs=yes
9228       file_list_spec='$wl-f,'
9229       case $with_aix_soname,$aix_use_runtimelinking in
9230       aix,*) ;; # traditional, no import file
9231       svr4,* | *,yes) # use import file
9232         # The Import File defines what to hardcode.
9233         hardcode_direct=no
9234         hardcode_direct_absolute=no
9235         ;;
9236       esac
9237
9238       if test yes = "$GCC"; then
9239         case $host_os in aix4.[012]|aix4.[012].*)
9240         # We only want to do this on AIX 4.2 and lower, the check
9241         # below for broken collect2 doesn't work under 4.3+
9242           collect2name=`$CC -print-prog-name=collect2`
9243           if test -f "$collect2name" &&
9244            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9245           then
9246           # We have reworked collect2
9247           :
9248           else
9249           # We have old collect2
9250           hardcode_direct=unsupported
9251           # It fails to find uninstalled libraries when the uninstalled
9252           # path is not listed in the libpath.  Setting hardcode_minus_L
9253           # to unsupported forces relinking
9254           hardcode_minus_L=yes
9255           hardcode_libdir_flag_spec='-L$libdir'
9256           hardcode_libdir_separator=
9257           fi
9258           ;;
9259         esac
9260         shared_flag='-shared'
9261         if test yes = "$aix_use_runtimelinking"; then
9262           shared_flag="$shared_flag "'$wl-G'
9263         fi
9264         # Need to ensure runtime linking is disabled for the traditional
9265         # shared library, or the linker may eventually find shared libraries
9266         # /with/ Import File - we do not want to mix them.
9267         shared_flag_aix='-shared'
9268         shared_flag_svr4='-shared $wl-G'
9269       else
9270         # not using gcc
9271         if test ia64 = "$host_cpu"; then
9272         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9273         # chokes on -Wl,-G. The following line is correct:
9274           shared_flag='-G'
9275         else
9276           if test yes = "$aix_use_runtimelinking"; then
9277             shared_flag='$wl-G'
9278           else
9279             shared_flag='$wl-bM:SRE'
9280           fi
9281           shared_flag_aix='$wl-bM:SRE'
9282           shared_flag_svr4='$wl-G'
9283         fi
9284       fi
9285
9286       export_dynamic_flag_spec='$wl-bexpall'
9287       # It seems that -bexpall does not export symbols beginning with
9288       # underscore (_), so it is better to generate a list of symbols to export.
9289       always_export_symbols=yes
9290       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9291         # Warning - without using the other runtime loading flags (-brtl),
9292         # -berok will link without error, but may produce a broken library.
9293         allow_undefined_flag='-berok'
9294         # Determine the default libpath from the value encoded in an
9295         # empty executable.
9296         if test set = "${lt_cv_aix_libpath+set}"; then
9297   aix_libpath=$lt_cv_aix_libpath
9298 else
9299   if ${lt_cv_aix_libpath_+:} false; then :
9300   $as_echo_n "(cached) " >&6
9301 else
9302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h.  */
9304
9305 int
9306 main ()
9307 {
9308
9309   ;
9310   return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"; then :
9314
9315   lt_aix_libpath_sed='
9316       /Import File Strings/,/^$/ {
9317           /^0/ {
9318               s/^0  *\([^ ]*\) *$/\1/
9319               p
9320           }
9321       }'
9322   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9323   # Check for a 64-bit object if we didn't find anything.
9324   if test -z "$lt_cv_aix_libpath_"; then
9325     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9326   fi
9327 fi
9328 rm -f core conftest.err conftest.$ac_objext \
9329     conftest$ac_exeext conftest.$ac_ext
9330   if test -z "$lt_cv_aix_libpath_"; then
9331     lt_cv_aix_libpath_=/usr/lib:/lib
9332   fi
9333
9334 fi
9335
9336   aix_libpath=$lt_cv_aix_libpath_
9337 fi
9338
9339         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9340         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9341       else
9342         if test ia64 = "$host_cpu"; then
9343           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9344           allow_undefined_flag="-z nodefs"
9345           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"
9346         else
9347          # Determine the default libpath from the value encoded in an
9348          # empty executable.
9349          if test set = "${lt_cv_aix_libpath+set}"; then
9350   aix_libpath=$lt_cv_aix_libpath
9351 else
9352   if ${lt_cv_aix_libpath_+:} false; then :
9353   $as_echo_n "(cached) " >&6
9354 else
9355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h.  */
9357
9358 int
9359 main ()
9360 {
9361
9362   ;
9363   return 0;
9364 }
9365 _ACEOF
9366 if ac_fn_c_try_link "$LINENO"; then :
9367
9368   lt_aix_libpath_sed='
9369       /Import File Strings/,/^$/ {
9370           /^0/ {
9371               s/^0  *\([^ ]*\) *$/\1/
9372               p
9373           }
9374       }'
9375   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9376   # Check for a 64-bit object if we didn't find anything.
9377   if test -z "$lt_cv_aix_libpath_"; then
9378     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9379   fi
9380 fi
9381 rm -f core conftest.err conftest.$ac_objext \
9382     conftest$ac_exeext conftest.$ac_ext
9383   if test -z "$lt_cv_aix_libpath_"; then
9384     lt_cv_aix_libpath_=/usr/lib:/lib
9385   fi
9386
9387 fi
9388
9389   aix_libpath=$lt_cv_aix_libpath_
9390 fi
9391
9392          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9393           # Warning - without using the other run time loading flags,
9394           # -berok will link without error, but may produce a broken library.
9395           no_undefined_flag=' $wl-bernotok'
9396           allow_undefined_flag=' $wl-berok'
9397           if test yes = "$with_gnu_ld"; then
9398             # We only use this code for GNU lds that support --whole-archive.
9399             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9400           else
9401             # Exported symbols can be pulled into shared objects from archives
9402             whole_archive_flag_spec='$convenience'
9403           fi
9404           archive_cmds_need_lc=yes
9405           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9406           # -brtl affects multiple linker settings, -berok does not and is overridden later
9407           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9408           if test svr4 != "$with_aix_soname"; then
9409             # This is similar to how AIX traditionally builds its shared libraries.
9410             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9411           fi
9412           if test aix != "$with_aix_soname"; then
9413             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9414           else
9415             # used by -dlpreopen to get the symbols
9416             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9417           fi
9418           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9419         fi
9420       fi
9421       ;;
9422
9423     amigaos*)
9424       case $host_cpu in
9425       powerpc)
9426             # see comment about AmigaOS4 .so support
9427             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9428             archive_expsym_cmds=''
9429         ;;
9430       m68k)
9431             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)'
9432             hardcode_libdir_flag_spec='-L$libdir'
9433             hardcode_minus_L=yes
9434         ;;
9435       esac
9436       ;;
9437
9438     bsdi[45]*)
9439       export_dynamic_flag_spec=-rdynamic
9440       ;;
9441
9442     cygwin* | mingw* | pw32* | cegcc*)
9443       # When not using gcc, we currently assume that we are using
9444       # Microsoft Visual C++.
9445       # hardcode_libdir_flag_spec is actually meaningless, as there is
9446       # no search path for DLLs.
9447       case $cc_basename in
9448       cl*)
9449         # Native MSVC
9450         hardcode_libdir_flag_spec=' '
9451         allow_undefined_flag=unsupported
9452         always_export_symbols=yes
9453         file_list_spec='@'
9454         # Tell ltmain to make .lib files, not .a files.
9455         libext=lib
9456         # Tell ltmain to make .dll files, not .so files.
9457         shrext_cmds=.dll
9458         # FIXME: Setting linknames here is a bad hack.
9459         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9460         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9461             cp "$export_symbols" "$output_objdir/$soname.def";
9462             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9463           else
9464             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9465           fi~
9466           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9467           linknames='
9468         # The linker will not automatically build a static lib if we build a DLL.
9469         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9470         enable_shared_with_static_runtimes=yes
9471         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9472         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9473         # Don't use ranlib
9474         old_postinstall_cmds='chmod 644 $oldlib'
9475         postlink_cmds='lt_outputfile="@OUTPUT@"~
9476           lt_tool_outputfile="@TOOL_OUTPUT@"~
9477           case $lt_outputfile in
9478             *.exe|*.EXE) ;;
9479             *)
9480               lt_outputfile=$lt_outputfile.exe
9481               lt_tool_outputfile=$lt_tool_outputfile.exe
9482               ;;
9483           esac~
9484           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9485             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9486             $RM "$lt_outputfile.manifest";
9487           fi'
9488         ;;
9489       *)
9490         # Assume MSVC wrapper
9491         hardcode_libdir_flag_spec=' '
9492         allow_undefined_flag=unsupported
9493         # Tell ltmain to make .lib files, not .a files.
9494         libext=lib
9495         # Tell ltmain to make .dll files, not .so files.
9496         shrext_cmds=.dll
9497         # FIXME: Setting linknames here is a bad hack.
9498         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9499         # The linker will automatically build a .lib file if we build a DLL.
9500         old_archive_from_new_cmds='true'
9501         # FIXME: Should let the user specify the lib program.
9502         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9503         enable_shared_with_static_runtimes=yes
9504         ;;
9505       esac
9506       ;;
9507
9508     darwin* | rhapsody*)
9509
9510
9511   archive_cmds_need_lc=no
9512   hardcode_direct=no
9513   hardcode_automatic=yes
9514   hardcode_shlibpath_var=unsupported
9515   if test yes = "$lt_cv_ld_force_load"; then
9516     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\"`'
9517
9518   else
9519     whole_archive_flag_spec=''
9520   fi
9521   link_all_deplibs=yes
9522   allow_undefined_flag=$_lt_dar_allow_undefined
9523   case $cc_basename in
9524      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9525      *) _lt_dar_can_shared=$GCC ;;
9526   esac
9527   if test yes = "$_lt_dar_can_shared"; then
9528     output_verbose_link_cmd=func_echo_all
9529     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9530     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9531     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"
9532     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"
9533
9534   else
9535   ld_shlibs=no
9536   fi
9537
9538       ;;
9539
9540     dgux*)
9541       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542       hardcode_libdir_flag_spec='-L$libdir'
9543       hardcode_shlibpath_var=no
9544       ;;
9545
9546     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9547     # support.  Future versions do this automatically, but an explicit c++rt0.o
9548     # does not break anything, and helps significantly (at the cost of a little
9549     # extra space).
9550     freebsd2.2*)
9551       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9552       hardcode_libdir_flag_spec='-R$libdir'
9553       hardcode_direct=yes
9554       hardcode_shlibpath_var=no
9555       ;;
9556
9557     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9558     freebsd2.*)
9559       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9560       hardcode_direct=yes
9561       hardcode_minus_L=yes
9562       hardcode_shlibpath_var=no
9563       ;;
9564
9565     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9566     freebsd* | dragonfly*)
9567       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9568       hardcode_libdir_flag_spec='-R$libdir'
9569       hardcode_direct=yes
9570       hardcode_shlibpath_var=no
9571       ;;
9572
9573     hpux9*)
9574       if test yes = "$GCC"; then
9575         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9576       else
9577         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9578       fi
9579       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9580       hardcode_libdir_separator=:
9581       hardcode_direct=yes
9582
9583       # hardcode_minus_L: Not really in the search PATH,
9584       # but as the default location of the library.
9585       hardcode_minus_L=yes
9586       export_dynamic_flag_spec='$wl-E'
9587       ;;
9588
9589     hpux10*)
9590       if test yes,no = "$GCC,$with_gnu_ld"; then
9591         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9592       else
9593         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9594       fi
9595       if test no = "$with_gnu_ld"; then
9596         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9597         hardcode_libdir_separator=:
9598         hardcode_direct=yes
9599         hardcode_direct_absolute=yes
9600         export_dynamic_flag_spec='$wl-E'
9601         # hardcode_minus_L: Not really in the search PATH,
9602         # but as the default location of the library.
9603         hardcode_minus_L=yes
9604       fi
9605       ;;
9606
9607     hpux11*)
9608       if test yes,no = "$GCC,$with_gnu_ld"; then
9609         case $host_cpu in
9610         hppa*64*)
9611           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9612           ;;
9613         ia64*)
9614           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9615           ;;
9616         *)
9617           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9618           ;;
9619         esac
9620       else
9621         case $host_cpu in
9622         hppa*64*)
9623           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9624           ;;
9625         ia64*)
9626           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9627           ;;
9628         *)
9629
9630           # Older versions of the 11.00 compiler do not understand -b yet
9631           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9632           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9633 $as_echo_n "checking if $CC understands -b... " >&6; }
9634 if ${lt_cv_prog_compiler__b+:} false; then :
9635   $as_echo_n "(cached) " >&6
9636 else
9637   lt_cv_prog_compiler__b=no
9638    save_LDFLAGS=$LDFLAGS
9639    LDFLAGS="$LDFLAGS -b"
9640    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9641    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9642      # The linker can only warn and ignore the option if not recognized
9643      # So say no if there are warnings
9644      if test -s conftest.err; then
9645        # Append any errors to the config.log.
9646        cat conftest.err 1>&5
9647        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9648        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9649        if diff conftest.exp conftest.er2 >/dev/null; then
9650          lt_cv_prog_compiler__b=yes
9651        fi
9652      else
9653        lt_cv_prog_compiler__b=yes
9654      fi
9655    fi
9656    $RM -r conftest*
9657    LDFLAGS=$save_LDFLAGS
9658
9659 fi
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9661 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9662
9663 if test yes = "$lt_cv_prog_compiler__b"; then
9664     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9665 else
9666     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9667 fi
9668
9669           ;;
9670         esac
9671       fi
9672       if test no = "$with_gnu_ld"; then
9673         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9674         hardcode_libdir_separator=:
9675
9676         case $host_cpu in
9677         hppa*64*|ia64*)
9678           hardcode_direct=no
9679           hardcode_shlibpath_var=no
9680           ;;
9681         *)
9682           hardcode_direct=yes
9683           hardcode_direct_absolute=yes
9684           export_dynamic_flag_spec='$wl-E'
9685
9686           # hardcode_minus_L: Not really in the search PATH,
9687           # but as the default location of the library.
9688           hardcode_minus_L=yes
9689           ;;
9690         esac
9691       fi
9692       ;;
9693
9694     irix5* | irix6* | nonstopux*)
9695       if test yes = "$GCC"; then
9696         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'
9697         # Try to use the -exported_symbol ld option, if it does not
9698         # work, assume that -exports_file does not work either and
9699         # implicitly export all symbols.
9700         # This should be the same for all languages, so no per-tag cache variable.
9701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9702 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9703 if ${lt_cv_irix_exported_symbol+:} false; then :
9704   $as_echo_n "(cached) " >&6
9705 else
9706   save_LDFLAGS=$LDFLAGS
9707            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9708            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h.  */
9710 int foo (void) { return 0; }
9711 _ACEOF
9712 if ac_fn_c_try_link "$LINENO"; then :
9713   lt_cv_irix_exported_symbol=yes
9714 else
9715   lt_cv_irix_exported_symbol=no
9716 fi
9717 rm -f core conftest.err conftest.$ac_objext \
9718     conftest$ac_exeext conftest.$ac_ext
9719            LDFLAGS=$save_LDFLAGS
9720 fi
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9722 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9723         if test yes = "$lt_cv_irix_exported_symbol"; then
9724           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'
9725         fi
9726       else
9727         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'
9728         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'
9729       fi
9730       archive_cmds_need_lc='no'
9731       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9732       hardcode_libdir_separator=:
9733       inherit_rpath=yes
9734       link_all_deplibs=yes
9735       ;;
9736
9737     linux*)
9738       case $cc_basename in
9739       tcc*)
9740         # Fabrice Bellard et al's Tiny C Compiler
9741         ld_shlibs=yes
9742         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9743         ;;
9744       esac
9745       ;;
9746
9747     netbsd*)
9748       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9749         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9750       else
9751         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9752       fi
9753       hardcode_libdir_flag_spec='-R$libdir'
9754       hardcode_direct=yes
9755       hardcode_shlibpath_var=no
9756       ;;
9757
9758     newsos6)
9759       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760       hardcode_direct=yes
9761       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9762       hardcode_libdir_separator=:
9763       hardcode_shlibpath_var=no
9764       ;;
9765
9766     *nto* | *qnx*)
9767       ;;
9768
9769     openbsd* | bitrig*)
9770       if test -f /usr/libexec/ld.so; then
9771         hardcode_direct=yes
9772         hardcode_shlibpath_var=no
9773         hardcode_direct_absolute=yes
9774         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9775           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9776           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9777           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9778           export_dynamic_flag_spec='$wl-E'
9779         else
9780           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9781           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9782         fi
9783       else
9784         ld_shlibs=no
9785       fi
9786       ;;
9787
9788     os2*)
9789       hardcode_libdir_flag_spec='-L$libdir'
9790       hardcode_minus_L=yes
9791       allow_undefined_flag=unsupported
9792       shrext_cmds=.dll
9793       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9794         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9795         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9796         $ECHO EXPORTS >> $output_objdir/$libname.def~
9797         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9798         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9799         emximp -o $lib $output_objdir/$libname.def'
9800       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9801         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9802         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9803         $ECHO EXPORTS >> $output_objdir/$libname.def~
9804         prefix_cmds="$SED"~
9805         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9806           prefix_cmds="$prefix_cmds -e 1d";
9807         fi~
9808         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9809         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9810         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9811         emximp -o $lib $output_objdir/$libname.def'
9812       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9813       enable_shared_with_static_runtimes=yes
9814       ;;
9815
9816     osf3*)
9817       if test yes = "$GCC"; then
9818         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9819         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'
9820       else
9821         allow_undefined_flag=' -expect_unresolved \*'
9822         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'
9823       fi
9824       archive_cmds_need_lc='no'
9825       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9826       hardcode_libdir_separator=:
9827       ;;
9828
9829     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9830       if test yes = "$GCC"; then
9831         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9832         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'
9833         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9834       else
9835         allow_undefined_flag=' -expect_unresolved \*'
9836         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'
9837         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~
9838           $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'
9839
9840         # Both c and cxx compiler support -rpath directly
9841         hardcode_libdir_flag_spec='-rpath $libdir'
9842       fi
9843       archive_cmds_need_lc='no'
9844       hardcode_libdir_separator=:
9845       ;;
9846
9847     solaris*)
9848       no_undefined_flag=' -z defs'
9849       if test yes = "$GCC"; then
9850         wlarc='$wl'
9851         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9852         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9853           $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'
9854       else
9855         case `$CC -V 2>&1` in
9856         *"Compilers 5.0"*)
9857           wlarc=''
9858           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9860             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9861           ;;
9862         *)
9863           wlarc='$wl'
9864           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9865           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9866             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9867           ;;
9868         esac
9869       fi
9870       hardcode_libdir_flag_spec='-R$libdir'
9871       hardcode_shlibpath_var=no
9872       case $host_os in
9873       solaris2.[0-5] | solaris2.[0-5].*) ;;
9874       *)
9875         # The compiler driver will combine and reorder linker options,
9876         # but understands '-z linker_flag'.  GCC discards it without '$wl',
9877         # but is careful enough not to reorder.
9878         # Supported since Solaris 2.6 (maybe 2.5.1?)
9879         if test yes = "$GCC"; then
9880           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9881         else
9882           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9883         fi
9884         ;;
9885       esac
9886       link_all_deplibs=yes
9887       ;;
9888
9889     sunos4*)
9890       if test sequent = "$host_vendor"; then
9891         # Use $CC to link under sequent, because it throws in some extra .o
9892         # files that make .init and .fini sections work.
9893         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9894       else
9895         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9896       fi
9897       hardcode_libdir_flag_spec='-L$libdir'
9898       hardcode_direct=yes
9899       hardcode_minus_L=yes
9900       hardcode_shlibpath_var=no
9901       ;;
9902
9903     sysv4)
9904       case $host_vendor in
9905         sni)
9906           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9907           hardcode_direct=yes # is this really true???
9908         ;;
9909         siemens)
9910           ## LD is ld it makes a PLAMLIB
9911           ## CC just makes a GrossModule.
9912           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9913           reload_cmds='$CC -r -o $output$reload_objs'
9914           hardcode_direct=no
9915         ;;
9916         motorola)
9917           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9918           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9919         ;;
9920       esac
9921       runpath_var='LD_RUN_PATH'
9922       hardcode_shlibpath_var=no
9923       ;;
9924
9925     sysv4.3*)
9926       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9927       hardcode_shlibpath_var=no
9928       export_dynamic_flag_spec='-Bexport'
9929       ;;
9930
9931     sysv4*MP*)
9932       if test -d /usr/nec; then
9933         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934         hardcode_shlibpath_var=no
9935         runpath_var=LD_RUN_PATH
9936         hardcode_runpath_var=yes
9937         ld_shlibs=yes
9938       fi
9939       ;;
9940
9941     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9942       no_undefined_flag='$wl-z,text'
9943       archive_cmds_need_lc=no
9944       hardcode_shlibpath_var=no
9945       runpath_var='LD_RUN_PATH'
9946
9947       if test yes = "$GCC"; then
9948         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9949         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9950       else
9951         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9952         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9953       fi
9954       ;;
9955
9956     sysv5* | sco3.2v5* | sco5v6*)
9957       # Note: We CANNOT use -z defs as we might desire, because we do not
9958       # link with -lc, and that would cause any symbols used from libc to
9959       # always be unresolved, which means just about no library would
9960       # ever link correctly.  If we're not using GNU ld we use -z text
9961       # though, which does catch some bad symbols but isn't as heavy-handed
9962       # as -z defs.
9963       no_undefined_flag='$wl-z,text'
9964       allow_undefined_flag='$wl-z,nodefs'
9965       archive_cmds_need_lc=no
9966       hardcode_shlibpath_var=no
9967       hardcode_libdir_flag_spec='$wl-R,$libdir'
9968       hardcode_libdir_separator=':'
9969       link_all_deplibs=yes
9970       export_dynamic_flag_spec='$wl-Bexport'
9971       runpath_var='LD_RUN_PATH'
9972
9973       if test yes = "$GCC"; then
9974         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9975         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9976       else
9977         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9978         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9979       fi
9980       ;;
9981
9982     uts4*)
9983       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9984       hardcode_libdir_flag_spec='-L$libdir'
9985       hardcode_shlibpath_var=no
9986       ;;
9987
9988     *)
9989       ld_shlibs=no
9990       ;;
9991     esac
9992
9993     if test sni = "$host_vendor"; then
9994       case $host in
9995       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9996         export_dynamic_flag_spec='$wl-Blargedynsym'
9997         ;;
9998       esac
9999     fi
10000   fi
10001
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10003 $as_echo "$ld_shlibs" >&6; }
10004 test no = "$ld_shlibs" && can_build_shared=no
10005
10006 with_gnu_ld=$with_gnu_ld
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022 #
10023 # Do we need to explicitly link libc?
10024 #
10025 case "x$archive_cmds_need_lc" in
10026 x|xyes)
10027   # Assume -lc should be added
10028   archive_cmds_need_lc=yes
10029
10030   if test yes,yes = "$GCC,$enable_shared"; then
10031     case $archive_cmds in
10032     *'~'*)
10033       # FIXME: we may have to deal with multi-command sequences.
10034       ;;
10035     '$CC '*)
10036       # Test whether the compiler implicitly links with -lc since on some
10037       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10038       # to ld, don't add -lc before -lgcc.
10039       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10040 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10041 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10042   $as_echo_n "(cached) " >&6
10043 else
10044   $RM conftest*
10045         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10046
10047         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10048   (eval $ac_compile) 2>&5
10049   ac_status=$?
10050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10051   test $ac_status = 0; } 2>conftest.err; then
10052           soname=conftest
10053           lib=conftest
10054           libobjs=conftest.$ac_objext
10055           deplibs=
10056           wl=$lt_prog_compiler_wl
10057           pic_flag=$lt_prog_compiler_pic
10058           compiler_flags=-v
10059           linker_flags=-v
10060           verstring=
10061           output_objdir=.
10062           libname=conftest
10063           lt_save_allow_undefined_flag=$allow_undefined_flag
10064           allow_undefined_flag=
10065           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10066   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10067   ac_status=$?
10068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10069   test $ac_status = 0; }
10070           then
10071             lt_cv_archive_cmds_need_lc=no
10072           else
10073             lt_cv_archive_cmds_need_lc=yes
10074           fi
10075           allow_undefined_flag=$lt_save_allow_undefined_flag
10076         else
10077           cat conftest.err 1>&5
10078         fi
10079         $RM conftest*
10080
10081 fi
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10083 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10084       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10085       ;;
10086     esac
10087   fi
10088   ;;
10089 esac
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10243 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10244
10245 if test yes = "$GCC"; then
10246   case $host_os in
10247     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10248     *) lt_awk_arg='/^libraries:/' ;;
10249   esac
10250   case $host_os in
10251     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10252     *) lt_sed_strip_eq='s|=/|/|g' ;;
10253   esac
10254   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10255   case $lt_search_path_spec in
10256   *\;*)
10257     # if the path contains ";" then we assume it to be the separator
10258     # otherwise default to the standard path separator (i.e. ":") - it is
10259     # assumed that no part of a normal pathname contains ";" but that should
10260     # okay in the real world where ";" in dirpaths is itself problematic.
10261     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10262     ;;
10263   *)
10264     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10265     ;;
10266   esac
10267   # Ok, now we have the path, separated by spaces, we can step through it
10268   # and add multilib dir if necessary...
10269   lt_tmp_lt_search_path_spec=
10270   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10271   # ...but if some path component already ends with the multilib dir we assume
10272   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10273   case "$lt_multi_os_dir; $lt_search_path_spec " in
10274   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10275     lt_multi_os_dir=
10276     ;;
10277   esac
10278   for lt_sys_path in $lt_search_path_spec; do
10279     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10280       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10281     elif test -n "$lt_multi_os_dir"; then
10282       test -d "$lt_sys_path" && \
10283         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10284     fi
10285   done
10286   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10287 BEGIN {RS = " "; FS = "/|\n";} {
10288   lt_foo = "";
10289   lt_count = 0;
10290   for (lt_i = NF; lt_i > 0; lt_i--) {
10291     if ($lt_i != "" && $lt_i != ".") {
10292       if ($lt_i == "..") {
10293         lt_count++;
10294       } else {
10295         if (lt_count == 0) {
10296           lt_foo = "/" $lt_i lt_foo;
10297         } else {
10298           lt_count--;
10299         }
10300       }
10301     }
10302   }
10303   if (lt_foo != "") { lt_freq[lt_foo]++; }
10304   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10305 }'`
10306   # AWK program above erroneously prepends '/' to C:/dos/paths
10307   # for these hosts.
10308   case $host_os in
10309     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10310       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10311   esac
10312   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10313 else
10314   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10315 fi
10316 library_names_spec=
10317 libname_spec='lib$name'
10318 soname_spec=
10319 shrext_cmds=.so
10320 postinstall_cmds=
10321 postuninstall_cmds=
10322 finish_cmds=
10323 finish_eval=
10324 shlibpath_var=
10325 shlibpath_overrides_runpath=unknown
10326 version_type=none
10327 dynamic_linker="$host_os ld.so"
10328 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10329 need_lib_prefix=unknown
10330 hardcode_into_libs=no
10331
10332 # when you set need_version to no, make sure it does not cause -set_version
10333 # flags to be left without arguments
10334 need_version=unknown
10335
10336
10337
10338 case $host_os in
10339 aix3*)
10340   version_type=linux # correct to gnu/linux during the next big refactor
10341   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10342   shlibpath_var=LIBPATH
10343
10344   # AIX 3 has no versioning support, so we append a major version to the name.
10345   soname_spec='$libname$release$shared_ext$major'
10346   ;;
10347
10348 aix[4-9]*)
10349   version_type=linux # correct to gnu/linux during the next big refactor
10350   need_lib_prefix=no
10351   need_version=no
10352   hardcode_into_libs=yes
10353   if test ia64 = "$host_cpu"; then
10354     # AIX 5 supports IA64
10355     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10356     shlibpath_var=LD_LIBRARY_PATH
10357   else
10358     # With GCC up to 2.95.x, collect2 would create an import file
10359     # for dependence libraries.  The import file would start with
10360     # the line '#! .'.  This would cause the generated library to
10361     # depend on '.', always an invalid library.  This was fixed in
10362     # development snapshots of GCC prior to 3.0.
10363     case $host_os in
10364       aix4 | aix4.[01] | aix4.[01].*)
10365       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10366            echo ' yes '
10367            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10368         :
10369       else
10370         can_build_shared=no
10371       fi
10372       ;;
10373     esac
10374     # Using Import Files as archive members, it is possible to support
10375     # filename-based versioning of shared library archives on AIX. While
10376     # this would work for both with and without runtime linking, it will
10377     # prevent static linking of such archives. So we do filename-based
10378     # shared library versioning with .so extension only, which is used
10379     # when both runtime linking and shared linking is enabled.
10380     # Unfortunately, runtime linking may impact performance, so we do
10381     # not want this to be the default eventually. Also, we use the
10382     # versioned .so libs for executables only if there is the -brtl
10383     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10384     # To allow for filename-based versioning support, we need to create
10385     # libNAME.so.V as an archive file, containing:
10386     # *) an Import File, referring to the versioned filename of the
10387     #    archive as well as the shared archive member, telling the
10388     #    bitwidth (32 or 64) of that shared object, and providing the
10389     #    list of exported symbols of that shared object, eventually
10390     #    decorated with the 'weak' keyword
10391     # *) the shared object with the F_LOADONLY flag set, to really avoid
10392     #    it being seen by the linker.
10393     # At run time we better use the real file rather than another symlink,
10394     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10395
10396     case $with_aix_soname,$aix_use_runtimelinking in
10397     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10398     # soname into executable. Probably we can add versioning support to
10399     # collect2, so additional links can be useful in future.
10400     aix,yes) # traditional libtool
10401       dynamic_linker='AIX unversionable lib.so'
10402       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10403       # instead of lib<name>.a to let people know that these are not
10404       # typical AIX shared libraries.
10405       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10406       ;;
10407     aix,no) # traditional AIX only
10408       dynamic_linker='AIX lib.a(lib.so.V)'
10409       # We preserve .a as extension for shared libraries through AIX4.2
10410       # and later when we are not doing run time linking.
10411       library_names_spec='$libname$release.a $libname.a'
10412       soname_spec='$libname$release$shared_ext$major'
10413       ;;
10414     svr4,*) # full svr4 only
10415       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10416       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10417       # We do not specify a path in Import Files, so LIBPATH fires.
10418       shlibpath_overrides_runpath=yes
10419       ;;
10420     *,yes) # both, prefer svr4
10421       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10422       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10423       # unpreferred sharedlib libNAME.a needs extra handling
10424       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10425       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10426       # We do not specify a path in Import Files, so LIBPATH fires.
10427       shlibpath_overrides_runpath=yes
10428       ;;
10429     *,no) # both, prefer aix
10430       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10431       library_names_spec='$libname$release.a $libname.a'
10432       soname_spec='$libname$release$shared_ext$major'
10433       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10434       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10435       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10436       ;;
10437     esac
10438     shlibpath_var=LIBPATH
10439   fi
10440   ;;
10441
10442 amigaos*)
10443   case $host_cpu in
10444   powerpc)
10445     # Since July 2007 AmigaOS4 officially supports .so libraries.
10446     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10447     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10448     ;;
10449   m68k)
10450     library_names_spec='$libname.ixlibrary $libname.a'
10451     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10452     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10453     ;;
10454   esac
10455   ;;
10456
10457 beos*)
10458   library_names_spec='$libname$shared_ext'
10459   dynamic_linker="$host_os ld.so"
10460   shlibpath_var=LIBRARY_PATH
10461   ;;
10462
10463 bsdi[45]*)
10464   version_type=linux # correct to gnu/linux during the next big refactor
10465   need_version=no
10466   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10467   soname_spec='$libname$release$shared_ext$major'
10468   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10469   shlibpath_var=LD_LIBRARY_PATH
10470   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10471   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10472   # the default ld.so.conf also contains /usr/contrib/lib and
10473   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10474   # libtool to hard-code these into programs
10475   ;;
10476
10477 cygwin* | mingw* | pw32* | cegcc*)
10478   version_type=windows
10479   shrext_cmds=.dll
10480   need_version=no
10481   need_lib_prefix=no
10482
10483   case $GCC,$cc_basename in
10484   yes,*)
10485     # gcc
10486     library_names_spec='$libname.dll.a'
10487     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10488     postinstall_cmds='base_file=`basename \$file`~
10489       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10490       dldir=$destdir/`dirname \$dlpath`~
10491       test -d \$dldir || mkdir -p \$dldir~
10492       $install_prog $dir/$dlname \$dldir/$dlname~
10493       chmod a+x \$dldir/$dlname~
10494       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10495         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10496       fi'
10497     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10498       dlpath=$dir/\$dldll~
10499        $RM \$dlpath'
10500     shlibpath_overrides_runpath=yes
10501
10502     case $host_os in
10503     cygwin*)
10504       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10505       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10506
10507       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10508       ;;
10509     mingw* | cegcc*)
10510       # MinGW DLLs use traditional 'lib' prefix
10511       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10512       ;;
10513     pw32*)
10514       # pw32 DLLs use 'pw' prefix rather than 'lib'
10515       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10516       ;;
10517     esac
10518     dynamic_linker='Win32 ld.exe'
10519     ;;
10520
10521   *,cl*)
10522     # Native MSVC
10523     libname_spec='$name'
10524     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10525     library_names_spec='$libname.dll.lib'
10526
10527     case $build_os in
10528     mingw*)
10529       sys_lib_search_path_spec=
10530       lt_save_ifs=$IFS
10531       IFS=';'
10532       for lt_path in $LIB
10533       do
10534         IFS=$lt_save_ifs
10535         # Let DOS variable expansion print the short 8.3 style file name.
10536         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10537         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10538       done
10539       IFS=$lt_save_ifs
10540       # Convert to MSYS style.
10541       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10542       ;;
10543     cygwin*)
10544       # Convert to unix form, then to dos form, then back to unix form
10545       # but this time dos style (no spaces!) so that the unix form looks
10546       # like /cygdrive/c/PROGRA~1:/cygdr...
10547       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10548       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10549       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10550       ;;
10551     *)
10552       sys_lib_search_path_spec=$LIB
10553       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10554         # It is most probably a Windows format PATH.
10555         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10556       else
10557         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10558       fi
10559       # FIXME: find the short name or the path components, as spaces are
10560       # common. (e.g. "Program Files" -> "PROGRA~1")
10561       ;;
10562     esac
10563
10564     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10565     postinstall_cmds='base_file=`basename \$file`~
10566       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10567       dldir=$destdir/`dirname \$dlpath`~
10568       test -d \$dldir || mkdir -p \$dldir~
10569       $install_prog $dir/$dlname \$dldir/$dlname'
10570     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10571       dlpath=$dir/\$dldll~
10572        $RM \$dlpath'
10573     shlibpath_overrides_runpath=yes
10574     dynamic_linker='Win32 link.exe'
10575     ;;
10576
10577   *)
10578     # Assume MSVC wrapper
10579     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10580     dynamic_linker='Win32 ld.exe'
10581     ;;
10582   esac
10583   # FIXME: first we should search . and the directory the executable is in
10584   shlibpath_var=PATH
10585   ;;
10586
10587 darwin* | rhapsody*)
10588   dynamic_linker="$host_os dyld"
10589   version_type=darwin
10590   need_lib_prefix=no
10591   need_version=no
10592   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10593   soname_spec='$libname$release$major$shared_ext'
10594   shlibpath_overrides_runpath=yes
10595   shlibpath_var=DYLD_LIBRARY_PATH
10596   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10597
10598   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10599   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10600   ;;
10601
10602 dgux*)
10603   version_type=linux # correct to gnu/linux during the next big refactor
10604   need_lib_prefix=no
10605   need_version=no
10606   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10607   soname_spec='$libname$release$shared_ext$major'
10608   shlibpath_var=LD_LIBRARY_PATH
10609   ;;
10610
10611 freebsd* | dragonfly*)
10612   # DragonFly does not have aout.  When/if they implement a new
10613   # versioning mechanism, adjust this.
10614   if test -x /usr/bin/objformat; then
10615     objformat=`/usr/bin/objformat`
10616   else
10617     case $host_os in
10618     freebsd[23].*) objformat=aout ;;
10619     *) objformat=elf ;;
10620     esac
10621   fi
10622   version_type=freebsd-$objformat
10623   case $version_type in
10624     freebsd-elf*)
10625       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10626       soname_spec='$libname$release$shared_ext$major'
10627       need_version=no
10628       need_lib_prefix=no
10629       ;;
10630     freebsd-*)
10631       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10632       need_version=yes
10633       ;;
10634   esac
10635   shlibpath_var=LD_LIBRARY_PATH
10636   case $host_os in
10637   freebsd2.*)
10638     shlibpath_overrides_runpath=yes
10639     ;;
10640   freebsd3.[01]* | freebsdelf3.[01]*)
10641     shlibpath_overrides_runpath=yes
10642     hardcode_into_libs=yes
10643     ;;
10644   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10645   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10646     shlibpath_overrides_runpath=no
10647     hardcode_into_libs=yes
10648     ;;
10649   *) # from 4.6 on, and DragonFly
10650     shlibpath_overrides_runpath=yes
10651     hardcode_into_libs=yes
10652     ;;
10653   esac
10654   ;;
10655
10656 haiku*)
10657   version_type=linux # correct to gnu/linux during the next big refactor
10658   need_lib_prefix=no
10659   need_version=no
10660   dynamic_linker="$host_os runtime_loader"
10661   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10662   soname_spec='$libname$release$shared_ext$major'
10663   shlibpath_var=LIBRARY_PATH
10664   shlibpath_overrides_runpath=no
10665   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10666   hardcode_into_libs=yes
10667   ;;
10668
10669 hpux9* | hpux10* | hpux11*)
10670   # Give a soname corresponding to the major version so that dld.sl refuses to
10671   # link against other versions.
10672   version_type=sunos
10673   need_lib_prefix=no
10674   need_version=no
10675   case $host_cpu in
10676   ia64*)
10677     shrext_cmds='.so'
10678     hardcode_into_libs=yes
10679     dynamic_linker="$host_os dld.so"
10680     shlibpath_var=LD_LIBRARY_PATH
10681     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10682     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10683     soname_spec='$libname$release$shared_ext$major'
10684     if test 32 = "$HPUX_IA64_MODE"; then
10685       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10686       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10687     else
10688       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10689       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10690     fi
10691     ;;
10692   hppa*64*)
10693     shrext_cmds='.sl'
10694     hardcode_into_libs=yes
10695     dynamic_linker="$host_os dld.sl"
10696     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10697     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10698     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10699     soname_spec='$libname$release$shared_ext$major'
10700     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10701     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10702     ;;
10703   *)
10704     shrext_cmds='.sl'
10705     dynamic_linker="$host_os dld.sl"
10706     shlibpath_var=SHLIB_PATH
10707     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10708     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10709     soname_spec='$libname$release$shared_ext$major'
10710     ;;
10711   esac
10712   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10713   postinstall_cmds='chmod 555 $lib'
10714   # or fails outright, so override atomically:
10715   install_override_mode=555
10716   ;;
10717
10718 interix[3-9]*)
10719   version_type=linux # correct to gnu/linux during the next big refactor
10720   need_lib_prefix=no
10721   need_version=no
10722   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10723   soname_spec='$libname$release$shared_ext$major'
10724   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10725   shlibpath_var=LD_LIBRARY_PATH
10726   shlibpath_overrides_runpath=no
10727   hardcode_into_libs=yes
10728   ;;
10729
10730 irix5* | irix6* | nonstopux*)
10731   case $host_os in
10732     nonstopux*) version_type=nonstopux ;;
10733     *)
10734         if test yes = "$lt_cv_prog_gnu_ld"; then
10735                 version_type=linux # correct to gnu/linux during the next big refactor
10736         else
10737                 version_type=irix
10738         fi ;;
10739   esac
10740   need_lib_prefix=no
10741   need_version=no
10742   soname_spec='$libname$release$shared_ext$major'
10743   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10744   case $host_os in
10745   irix5* | nonstopux*)
10746     libsuff= shlibsuff=
10747     ;;
10748   *)
10749     case $LD in # libtool.m4 will add one of these switches to LD
10750     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10751       libsuff= shlibsuff= libmagic=32-bit;;
10752     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10753       libsuff=32 shlibsuff=N32 libmagic=N32;;
10754     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10755       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10756     *) libsuff= shlibsuff= libmagic=never-match;;
10757     esac
10758     ;;
10759   esac
10760   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10761   shlibpath_overrides_runpath=no
10762   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10763   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10764   hardcode_into_libs=yes
10765   ;;
10766
10767 # No shared lib support for Linux oldld, aout, or coff.
10768 linux*oldld* | linux*aout* | linux*coff*)
10769   dynamic_linker=no
10770   ;;
10771
10772 linux*android*)
10773   version_type=none # Android doesn't support versioned libraries.
10774   need_lib_prefix=no
10775   need_version=no
10776   library_names_spec='$libname$release$shared_ext'
10777   soname_spec='$libname$release$shared_ext'
10778   finish_cmds=
10779   shlibpath_var=LD_LIBRARY_PATH
10780   shlibpath_overrides_runpath=yes
10781
10782   # This implies no fast_install, which is unacceptable.
10783   # Some rework will be needed to allow for fast_install
10784   # before this can be enabled.
10785   hardcode_into_libs=yes
10786
10787   dynamic_linker='Android linker'
10788   # Don't embed -rpath directories since the linker doesn't support them.
10789   hardcode_libdir_flag_spec='-L$libdir'
10790   ;;
10791
10792 # This must be glibc/ELF.
10793 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10794   version_type=linux # correct to gnu/linux during the next big refactor
10795   need_lib_prefix=no
10796   need_version=no
10797   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10798   soname_spec='$libname$release$shared_ext$major'
10799   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10800   shlibpath_var=LD_LIBRARY_PATH
10801   shlibpath_overrides_runpath=no
10802
10803   # Some binutils ld are patched to set DT_RUNPATH
10804   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10805   $as_echo_n "(cached) " >&6
10806 else
10807   lt_cv_shlibpath_overrides_runpath=no
10808     save_LDFLAGS=$LDFLAGS
10809     save_libdir=$libdir
10810     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10811          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10812     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h.  */
10814
10815 int
10816 main ()
10817 {
10818
10819   ;
10820   return 0;
10821 }
10822 _ACEOF
10823 if ac_fn_c_try_link "$LINENO"; then :
10824   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10825   lt_cv_shlibpath_overrides_runpath=yes
10826 fi
10827 fi
10828 rm -f core conftest.err conftest.$ac_objext \
10829     conftest$ac_exeext conftest.$ac_ext
10830     LDFLAGS=$save_LDFLAGS
10831     libdir=$save_libdir
10832
10833 fi
10834
10835   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10836
10837   # This implies no fast_install, which is unacceptable.
10838   # Some rework will be needed to allow for fast_install
10839   # before this can be enabled.
10840   hardcode_into_libs=yes
10841
10842   # Ideally, we could use ldconfig to report *all* directores which are
10843   # searched for libraries, however this is still not possible.  Aside from not
10844   # being certain /sbin/ldconfig is available, command
10845   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10846   # even though it is searched at run-time.  Try to do the best guess by
10847   # appending ld.so.conf contents (and includes) to the search path.
10848   if test -f /etc/ld.so.conf; then
10849     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' ' '`
10850     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10851   fi
10852
10853   # We used to test for /lib/ld.so.1 and disable shared libraries on
10854   # powerpc, because MkLinux only supported shared libraries with the
10855   # GNU dynamic linker.  Since this was broken with cross compilers,
10856   # most powerpc-linux boxes support dynamic linking these days and
10857   # people can always --disable-shared, the test was removed, and we
10858   # assume the GNU/Linux dynamic linker is in use.
10859   dynamic_linker='GNU/Linux ld.so'
10860   ;;
10861
10862 netbsd*)
10863   version_type=sunos
10864   need_lib_prefix=no
10865   need_version=no
10866   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10867     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10868     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10869     dynamic_linker='NetBSD (a.out) ld.so'
10870   else
10871     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10872     soname_spec='$libname$release$shared_ext$major'
10873     dynamic_linker='NetBSD ld.elf_so'
10874   fi
10875   shlibpath_var=LD_LIBRARY_PATH
10876   shlibpath_overrides_runpath=yes
10877   hardcode_into_libs=yes
10878   ;;
10879
10880 newsos6)
10881   version_type=linux # correct to gnu/linux during the next big refactor
10882   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10883   shlibpath_var=LD_LIBRARY_PATH
10884   shlibpath_overrides_runpath=yes
10885   ;;
10886
10887 *nto* | *qnx*)
10888   version_type=qnx
10889   need_lib_prefix=no
10890   need_version=no
10891   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10892   soname_spec='$libname$release$shared_ext$major'
10893   shlibpath_var=LD_LIBRARY_PATH
10894   shlibpath_overrides_runpath=no
10895   hardcode_into_libs=yes
10896   dynamic_linker='ldqnx.so'
10897   ;;
10898
10899 openbsd* | bitrig*)
10900   version_type=sunos
10901   sys_lib_dlsearch_path_spec=/usr/lib
10902   need_lib_prefix=no
10903   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10904     need_version=no
10905   else
10906     need_version=yes
10907   fi
10908   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10909   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10910   shlibpath_var=LD_LIBRARY_PATH
10911   shlibpath_overrides_runpath=yes
10912   ;;
10913
10914 os2*)
10915   libname_spec='$name'
10916   version_type=windows
10917   shrext_cmds=.dll
10918   need_version=no
10919   need_lib_prefix=no
10920   # OS/2 can only load a DLL with a base name of 8 characters or less.
10921   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10922     v=$($ECHO $release$versuffix | tr -d .-);
10923     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10924     $ECHO $n$v`$shared_ext'
10925   library_names_spec='${libname}_dll.$libext'
10926   dynamic_linker='OS/2 ld.exe'
10927   shlibpath_var=BEGINLIBPATH
10928   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10929   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10930   postinstall_cmds='base_file=`basename \$file`~
10931     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10932     dldir=$destdir/`dirname \$dlpath`~
10933     test -d \$dldir || mkdir -p \$dldir~
10934     $install_prog $dir/$dlname \$dldir/$dlname~
10935     chmod a+x \$dldir/$dlname~
10936     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10937       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10938     fi'
10939   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10940     dlpath=$dir/\$dldll~
10941     $RM \$dlpath'
10942   ;;
10943
10944 osf3* | osf4* | osf5*)
10945   version_type=osf
10946   need_lib_prefix=no
10947   need_version=no
10948   soname_spec='$libname$release$shared_ext$major'
10949   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10950   shlibpath_var=LD_LIBRARY_PATH
10951   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10952   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10953   ;;
10954
10955 rdos*)
10956   dynamic_linker=no
10957   ;;
10958
10959 solaris*)
10960   version_type=linux # correct to gnu/linux during the next big refactor
10961   need_lib_prefix=no
10962   need_version=no
10963   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10964   soname_spec='$libname$release$shared_ext$major'
10965   shlibpath_var=LD_LIBRARY_PATH
10966   shlibpath_overrides_runpath=yes
10967   hardcode_into_libs=yes
10968   # ldd complains unless libraries are executable
10969   postinstall_cmds='chmod +x $lib'
10970   ;;
10971
10972 sunos4*)
10973   version_type=sunos
10974   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10975   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10976   shlibpath_var=LD_LIBRARY_PATH
10977   shlibpath_overrides_runpath=yes
10978   if test yes = "$with_gnu_ld"; then
10979     need_lib_prefix=no
10980   fi
10981   need_version=yes
10982   ;;
10983
10984 sysv4 | sysv4.3*)
10985   version_type=linux # correct to gnu/linux during the next big refactor
10986   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10987   soname_spec='$libname$release$shared_ext$major'
10988   shlibpath_var=LD_LIBRARY_PATH
10989   case $host_vendor in
10990     sni)
10991       shlibpath_overrides_runpath=no
10992       need_lib_prefix=no
10993       runpath_var=LD_RUN_PATH
10994       ;;
10995     siemens)
10996       need_lib_prefix=no
10997       ;;
10998     motorola)
10999       need_lib_prefix=no
11000       need_version=no
11001       shlibpath_overrides_runpath=no
11002       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11003       ;;
11004   esac
11005   ;;
11006
11007 sysv4*MP*)
11008   if test -d /usr/nec; then
11009     version_type=linux # correct to gnu/linux during the next big refactor
11010     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11011     soname_spec='$libname$shared_ext.$major'
11012     shlibpath_var=LD_LIBRARY_PATH
11013   fi
11014   ;;
11015
11016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11017   version_type=sco
11018   need_lib_prefix=no
11019   need_version=no
11020   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11021   soname_spec='$libname$release$shared_ext$major'
11022   shlibpath_var=LD_LIBRARY_PATH
11023   shlibpath_overrides_runpath=yes
11024   hardcode_into_libs=yes
11025   if test yes = "$with_gnu_ld"; then
11026     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11027   else
11028     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11029     case $host_os in
11030       sco3.2v5*)
11031         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11032         ;;
11033     esac
11034   fi
11035   sys_lib_dlsearch_path_spec='/usr/lib'
11036   ;;
11037
11038 tpf*)
11039   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11040   version_type=linux # correct to gnu/linux during the next big refactor
11041   need_lib_prefix=no
11042   need_version=no
11043   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11044   shlibpath_var=LD_LIBRARY_PATH
11045   shlibpath_overrides_runpath=no
11046   hardcode_into_libs=yes
11047   ;;
11048
11049 uts4*)
11050   version_type=linux # correct to gnu/linux during the next big refactor
11051   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11052   soname_spec='$libname$release$shared_ext$major'
11053   shlibpath_var=LD_LIBRARY_PATH
11054   ;;
11055
11056 *)
11057   dynamic_linker=no
11058   ;;
11059 esac
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11061 $as_echo "$dynamic_linker" >&6; }
11062 test no = "$dynamic_linker" && can_build_shared=no
11063
11064 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11065 if test yes = "$GCC"; then
11066   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11067 fi
11068
11069 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11070   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11071 fi
11072
11073 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11074   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11075 fi
11076
11077 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11078 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11079
11080 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11081 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11082
11083 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11084 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11183 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11184 hardcode_action=
11185 if test -n "$hardcode_libdir_flag_spec" ||
11186    test -n "$runpath_var" ||
11187    test yes = "$hardcode_automatic"; then
11188
11189   # We can hardcode non-existent directories.
11190   if test no != "$hardcode_direct" &&
11191      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11192      # have to relink, otherwise we might link with an installed library
11193      # when we should be linking with a yet-to-be-installed one
11194      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11195      test no != "$hardcode_minus_L"; then
11196     # Linking always hardcodes the temporary library directory.
11197     hardcode_action=relink
11198   else
11199     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11200     hardcode_action=immediate
11201   fi
11202 else
11203   # We cannot hardcode anything, or else we can only hardcode existing
11204   # directories.
11205   hardcode_action=unsupported
11206 fi
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11208 $as_echo "$hardcode_action" >&6; }
11209
11210 if test relink = "$hardcode_action" ||
11211    test yes = "$inherit_rpath"; then
11212   # Fast installation is not supported
11213   enable_fast_install=no
11214 elif test yes = "$shlibpath_overrides_runpath" ||
11215      test no = "$enable_shared"; then
11216   # Fast installation is not necessary
11217   enable_fast_install=needless
11218 fi
11219
11220
11221
11222
11223
11224
11225   if test yes != "$enable_dlopen"; then
11226   enable_dlopen=unknown
11227   enable_dlopen_self=unknown
11228   enable_dlopen_self_static=unknown
11229 else
11230   lt_cv_dlopen=no
11231   lt_cv_dlopen_libs=
11232
11233   case $host_os in
11234   beos*)
11235     lt_cv_dlopen=load_add_on
11236     lt_cv_dlopen_libs=
11237     lt_cv_dlopen_self=yes
11238     ;;
11239
11240   mingw* | pw32* | cegcc*)
11241     lt_cv_dlopen=LoadLibrary
11242     lt_cv_dlopen_libs=
11243     ;;
11244
11245   cygwin*)
11246     lt_cv_dlopen=dlopen
11247     lt_cv_dlopen_libs=
11248     ;;
11249
11250   darwin*)
11251     # if libdl is installed we need to link against it
11252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11253 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11254 if ${ac_cv_lib_dl_dlopen+:} false; then :
11255   $as_echo_n "(cached) " >&6
11256 else
11257   ac_check_lib_save_LIBS=$LIBS
11258 LIBS="-ldl  $LIBS"
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h.  */
11261
11262 /* Override any GCC internal prototype to avoid an error.
11263    Use char because int might match the return type of a GCC
11264    builtin and then its argument prototype would still apply.  */
11265 #ifdef __cplusplus
11266 extern "C"
11267 #endif
11268 char dlopen ();
11269 int
11270 main ()
11271 {
11272 return dlopen ();
11273   ;
11274   return 0;
11275 }
11276 _ACEOF
11277 if ac_fn_c_try_link "$LINENO"; then :
11278   ac_cv_lib_dl_dlopen=yes
11279 else
11280   ac_cv_lib_dl_dlopen=no
11281 fi
11282 rm -f core conftest.err conftest.$ac_objext \
11283     conftest$ac_exeext conftest.$ac_ext
11284 LIBS=$ac_check_lib_save_LIBS
11285 fi
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11287 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11288 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11289   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11290 else
11291
11292     lt_cv_dlopen=dyld
11293     lt_cv_dlopen_libs=
11294     lt_cv_dlopen_self=yes
11295
11296 fi
11297
11298     ;;
11299
11300   tpf*)
11301     # Don't try to run any link tests for TPF.  We know it's impossible
11302     # because TPF is a cross-compiler, and we know how we open DSOs.
11303     lt_cv_dlopen=dlopen
11304     lt_cv_dlopen_libs=
11305     lt_cv_dlopen_self=no
11306     ;;
11307
11308   *)
11309     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11310 if test "x$ac_cv_func_shl_load" = xyes; then :
11311   lt_cv_dlopen=shl_load
11312 else
11313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11314 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11315 if ${ac_cv_lib_dld_shl_load+:} false; then :
11316   $as_echo_n "(cached) " >&6
11317 else
11318   ac_check_lib_save_LIBS=$LIBS
11319 LIBS="-ldld  $LIBS"
11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h.  */
11322
11323 /* Override any GCC internal prototype to avoid an error.
11324    Use char because int might match the return type of a GCC
11325    builtin and then its argument prototype would still apply.  */
11326 #ifdef __cplusplus
11327 extern "C"
11328 #endif
11329 char shl_load ();
11330 int
11331 main ()
11332 {
11333 return shl_load ();
11334   ;
11335   return 0;
11336 }
11337 _ACEOF
11338 if ac_fn_c_try_link "$LINENO"; then :
11339   ac_cv_lib_dld_shl_load=yes
11340 else
11341   ac_cv_lib_dld_shl_load=no
11342 fi
11343 rm -f core conftest.err conftest.$ac_objext \
11344     conftest$ac_exeext conftest.$ac_ext
11345 LIBS=$ac_check_lib_save_LIBS
11346 fi
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11348 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11349 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11350   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11351 else
11352   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11353 if test "x$ac_cv_func_dlopen" = xyes; then :
11354   lt_cv_dlopen=dlopen
11355 else
11356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11357 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11358 if ${ac_cv_lib_dl_dlopen+:} false; then :
11359   $as_echo_n "(cached) " >&6
11360 else
11361   ac_check_lib_save_LIBS=$LIBS
11362 LIBS="-ldl  $LIBS"
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h.  */
11365
11366 /* Override any GCC internal prototype to avoid an error.
11367    Use char because int might match the return type of a GCC
11368    builtin and then its argument prototype would still apply.  */
11369 #ifdef __cplusplus
11370 extern "C"
11371 #endif
11372 char dlopen ();
11373 int
11374 main ()
11375 {
11376 return dlopen ();
11377   ;
11378   return 0;
11379 }
11380 _ACEOF
11381 if ac_fn_c_try_link "$LINENO"; then :
11382   ac_cv_lib_dl_dlopen=yes
11383 else
11384   ac_cv_lib_dl_dlopen=no
11385 fi
11386 rm -f core conftest.err conftest.$ac_objext \
11387     conftest$ac_exeext conftest.$ac_ext
11388 LIBS=$ac_check_lib_save_LIBS
11389 fi
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11391 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11392 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11393   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11394 else
11395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11396 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11397 if ${ac_cv_lib_svld_dlopen+:} false; then :
11398   $as_echo_n "(cached) " >&6
11399 else
11400   ac_check_lib_save_LIBS=$LIBS
11401 LIBS="-lsvld  $LIBS"
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h.  */
11404
11405 /* Override any GCC internal prototype to avoid an error.
11406    Use char because int might match the return type of a GCC
11407    builtin and then its argument prototype would still apply.  */
11408 #ifdef __cplusplus
11409 extern "C"
11410 #endif
11411 char dlopen ();
11412 int
11413 main ()
11414 {
11415 return dlopen ();
11416   ;
11417   return 0;
11418 }
11419 _ACEOF
11420 if ac_fn_c_try_link "$LINENO"; then :
11421   ac_cv_lib_svld_dlopen=yes
11422 else
11423   ac_cv_lib_svld_dlopen=no
11424 fi
11425 rm -f core conftest.err conftest.$ac_objext \
11426     conftest$ac_exeext conftest.$ac_ext
11427 LIBS=$ac_check_lib_save_LIBS
11428 fi
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11430 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11431 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11432   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11433 else
11434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11435 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11436 if ${ac_cv_lib_dld_dld_link+:} false; then :
11437   $as_echo_n "(cached) " >&6
11438 else
11439   ac_check_lib_save_LIBS=$LIBS
11440 LIBS="-ldld  $LIBS"
11441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442 /* end confdefs.h.  */
11443
11444 /* Override any GCC internal prototype to avoid an error.
11445    Use char because int might match the return type of a GCC
11446    builtin and then its argument prototype would still apply.  */
11447 #ifdef __cplusplus
11448 extern "C"
11449 #endif
11450 char dld_link ();
11451 int
11452 main ()
11453 {
11454 return dld_link ();
11455   ;
11456   return 0;
11457 }
11458 _ACEOF
11459 if ac_fn_c_try_link "$LINENO"; then :
11460   ac_cv_lib_dld_dld_link=yes
11461 else
11462   ac_cv_lib_dld_dld_link=no
11463 fi
11464 rm -f core conftest.err conftest.$ac_objext \
11465     conftest$ac_exeext conftest.$ac_ext
11466 LIBS=$ac_check_lib_save_LIBS
11467 fi
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11469 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11470 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11471   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11472 fi
11473
11474
11475 fi
11476
11477
11478 fi
11479
11480
11481 fi
11482
11483
11484 fi
11485
11486
11487 fi
11488
11489     ;;
11490   esac
11491
11492   if test no = "$lt_cv_dlopen"; then
11493     enable_dlopen=no
11494   else
11495     enable_dlopen=yes
11496   fi
11497
11498   case $lt_cv_dlopen in
11499   dlopen)
11500     save_CPPFLAGS=$CPPFLAGS
11501     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11502
11503     save_LDFLAGS=$LDFLAGS
11504     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11505
11506     save_LIBS=$LIBS
11507     LIBS="$lt_cv_dlopen_libs $LIBS"
11508
11509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11510 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11511 if ${lt_cv_dlopen_self+:} false; then :
11512   $as_echo_n "(cached) " >&6
11513 else
11514           if test yes = "$cross_compiling"; then :
11515   lt_cv_dlopen_self=cross
11516 else
11517   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11518   lt_status=$lt_dlunknown
11519   cat > conftest.$ac_ext <<_LT_EOF
11520 #line $LINENO "configure"
11521 #include "confdefs.h"
11522
11523 #if HAVE_DLFCN_H
11524 #include <dlfcn.h>
11525 #endif
11526
11527 #include <stdio.h>
11528
11529 #ifdef RTLD_GLOBAL
11530 #  define LT_DLGLOBAL           RTLD_GLOBAL
11531 #else
11532 #  ifdef DL_GLOBAL
11533 #    define LT_DLGLOBAL         DL_GLOBAL
11534 #  else
11535 #    define LT_DLGLOBAL         0
11536 #  endif
11537 #endif
11538
11539 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11540    find out it does not work in some platform. */
11541 #ifndef LT_DLLAZY_OR_NOW
11542 #  ifdef RTLD_LAZY
11543 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11544 #  else
11545 #    ifdef DL_LAZY
11546 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11547 #    else
11548 #      ifdef RTLD_NOW
11549 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11550 #      else
11551 #        ifdef DL_NOW
11552 #          define LT_DLLAZY_OR_NOW      DL_NOW
11553 #        else
11554 #          define LT_DLLAZY_OR_NOW      0
11555 #        endif
11556 #      endif
11557 #    endif
11558 #  endif
11559 #endif
11560
11561 /* When -fvisibility=hidden is used, assume the code has been annotated
11562    correspondingly for the symbols needed.  */
11563 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11564 int fnord () __attribute__((visibility("default")));
11565 #endif
11566
11567 int fnord () { return 42; }
11568 int main ()
11569 {
11570   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11571   int status = $lt_dlunknown;
11572
11573   if (self)
11574     {
11575       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11576       else
11577         {
11578           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11579           else puts (dlerror ());
11580         }
11581       /* dlclose (self); */
11582     }
11583   else
11584     puts (dlerror ());
11585
11586   return status;
11587 }
11588 _LT_EOF
11589   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11590   (eval $ac_link) 2>&5
11591   ac_status=$?
11592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11593   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11594     (./conftest; exit; ) >&5 2>/dev/null
11595     lt_status=$?
11596     case x$lt_status in
11597       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11598       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11599       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11600     esac
11601   else :
11602     # compilation failed
11603     lt_cv_dlopen_self=no
11604   fi
11605 fi
11606 rm -fr conftest*
11607
11608
11609 fi
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11611 $as_echo "$lt_cv_dlopen_self" >&6; }
11612
11613     if test yes = "$lt_cv_dlopen_self"; then
11614       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11615       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11616 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11617 if ${lt_cv_dlopen_self_static+:} false; then :
11618   $as_echo_n "(cached) " >&6
11619 else
11620           if test yes = "$cross_compiling"; then :
11621   lt_cv_dlopen_self_static=cross
11622 else
11623   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11624   lt_status=$lt_dlunknown
11625   cat > conftest.$ac_ext <<_LT_EOF
11626 #line $LINENO "configure"
11627 #include "confdefs.h"
11628
11629 #if HAVE_DLFCN_H
11630 #include <dlfcn.h>
11631 #endif
11632
11633 #include <stdio.h>
11634
11635 #ifdef RTLD_GLOBAL
11636 #  define LT_DLGLOBAL           RTLD_GLOBAL
11637 #else
11638 #  ifdef DL_GLOBAL
11639 #    define LT_DLGLOBAL         DL_GLOBAL
11640 #  else
11641 #    define LT_DLGLOBAL         0
11642 #  endif
11643 #endif
11644
11645 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11646    find out it does not work in some platform. */
11647 #ifndef LT_DLLAZY_OR_NOW
11648 #  ifdef RTLD_LAZY
11649 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11650 #  else
11651 #    ifdef DL_LAZY
11652 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11653 #    else
11654 #      ifdef RTLD_NOW
11655 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11656 #      else
11657 #        ifdef DL_NOW
11658 #          define LT_DLLAZY_OR_NOW      DL_NOW
11659 #        else
11660 #          define LT_DLLAZY_OR_NOW      0
11661 #        endif
11662 #      endif
11663 #    endif
11664 #  endif
11665 #endif
11666
11667 /* When -fvisibility=hidden is used, assume the code has been annotated
11668    correspondingly for the symbols needed.  */
11669 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11670 int fnord () __attribute__((visibility("default")));
11671 #endif
11672
11673 int fnord () { return 42; }
11674 int main ()
11675 {
11676   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11677   int status = $lt_dlunknown;
11678
11679   if (self)
11680     {
11681       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11682       else
11683         {
11684           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11685           else puts (dlerror ());
11686         }
11687       /* dlclose (self); */
11688     }
11689   else
11690     puts (dlerror ());
11691
11692   return status;
11693 }
11694 _LT_EOF
11695   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11696   (eval $ac_link) 2>&5
11697   ac_status=$?
11698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11699   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11700     (./conftest; exit; ) >&5 2>/dev/null
11701     lt_status=$?
11702     case x$lt_status in
11703       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11704       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11705       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11706     esac
11707   else :
11708     # compilation failed
11709     lt_cv_dlopen_self_static=no
11710   fi
11711 fi
11712 rm -fr conftest*
11713
11714
11715 fi
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11717 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11718     fi
11719
11720     CPPFLAGS=$save_CPPFLAGS
11721     LDFLAGS=$save_LDFLAGS
11722     LIBS=$save_LIBS
11723     ;;
11724   esac
11725
11726   case $lt_cv_dlopen_self in
11727   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11728   *) enable_dlopen_self=unknown ;;
11729   esac
11730
11731   case $lt_cv_dlopen_self_static in
11732   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11733   *) enable_dlopen_self_static=unknown ;;
11734   esac
11735 fi
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753 striplib=
11754 old_striplib=
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11756 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11757 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11758   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11759   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761 $as_echo "yes" >&6; }
11762 else
11763 # FIXME - insert some real tests, host_os isn't really good enough
11764   case $host_os in
11765   darwin*)
11766     if test -n "$STRIP"; then
11767       striplib="$STRIP -x"
11768       old_striplib="$STRIP -S"
11769       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11770 $as_echo "yes" >&6; }
11771     else
11772       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11774     fi
11775     ;;
11776   *)
11777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778 $as_echo "no" >&6; }
11779     ;;
11780   esac
11781 fi
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794   # Report what library types will actually be built
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11796 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11798 $as_echo "$can_build_shared" >&6; }
11799
11800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11801 $as_echo_n "checking whether to build shared libraries... " >&6; }
11802   test no = "$can_build_shared" && enable_shared=no
11803
11804   # On AIX, shared libraries and static libraries use the same namespace, and
11805   # are all built from PIC.
11806   case $host_os in
11807   aix3*)
11808     test yes = "$enable_shared" && enable_static=no
11809     if test -n "$RANLIB"; then
11810       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11811       postinstall_cmds='$RANLIB $lib'
11812     fi
11813     ;;
11814
11815   aix[4-9]*)
11816     if test ia64 != "$host_cpu"; then
11817       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11818       yes,aix,yes) ;;                   # shared object as lib.so file only
11819       yes,svr4,*) ;;                    # shared object as lib.so archive member only
11820       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
11821       esac
11822     fi
11823     ;;
11824   esac
11825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11826 $as_echo "$enable_shared" >&6; }
11827
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11829 $as_echo_n "checking whether to build static libraries... " >&6; }
11830   # Make sure either enable_shared or enable_static is yes.
11831   test yes = "$enable_shared" || enable_static=yes
11832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11833 $as_echo "$enable_static" >&6; }
11834
11835
11836
11837
11838 fi
11839 ac_ext=c
11840 ac_cpp='$CPP $CPPFLAGS'
11841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11844
11845 CC=$lt_save_CC
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861         ac_config_commands="$ac_config_commands libtool"
11862
11863
11864
11865
11866 # Only expand once:
11867
11868
11869 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
11870 if test "x$ac_cv_header_windows_h" = xyes; then :
11871   if test -n "$ac_tool_prefix"; then
11872   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
11873 set dummy ${ac_tool_prefix}windres; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875 $as_echo_n "checking for $ac_word... " >&6; }
11876 if ${ac_cv_prog_RC+:} false; then :
11877   $as_echo_n "(cached) " >&6
11878 else
11879   if test -n "$RC"; then
11880   ac_cv_prog_RC="$RC" # Let the user override the test.
11881 else
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $PATH
11884 do
11885   IFS=$as_save_IFS
11886   test -z "$as_dir" && as_dir=.
11887     for ac_exec_ext in '' $ac_executable_extensions; do
11888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11889     ac_cv_prog_RC="${ac_tool_prefix}windres"
11890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891     break 2
11892   fi
11893 done
11894   done
11895 IFS=$as_save_IFS
11896
11897 fi
11898 fi
11899 RC=$ac_cv_prog_RC
11900 if test -n "$RC"; then
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
11902 $as_echo "$RC" >&6; }
11903 else
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 fi
11907
11908
11909 fi
11910 if test -z "$ac_cv_prog_RC"; then
11911   ac_ct_RC=$RC
11912   # Extract the first word of "windres", so it can be a program name with args.
11913 set dummy windres; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if ${ac_cv_prog_ac_ct_RC+:} false; then :
11917   $as_echo_n "(cached) " >&6
11918 else
11919   if test -n "$ac_ct_RC"; then
11920   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
11921 else
11922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11923 for as_dir in $PATH
11924 do
11925   IFS=$as_save_IFS
11926   test -z "$as_dir" && as_dir=.
11927     for ac_exec_ext in '' $ac_executable_extensions; do
11928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11929     ac_cv_prog_ac_ct_RC="windres"
11930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11931     break 2
11932   fi
11933 done
11934   done
11935 IFS=$as_save_IFS
11936
11937 fi
11938 fi
11939 ac_ct_RC=$ac_cv_prog_ac_ct_RC
11940 if test -n "$ac_ct_RC"; then
11941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
11942 $as_echo "$ac_ct_RC" >&6; }
11943 else
11944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11946 fi
11947
11948   if test "x$ac_ct_RC" = x; then
11949     RC=""
11950   else
11951     case $cross_compiling:$ac_tool_warned in
11952 yes:)
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11955 ac_tool_warned=yes ;;
11956 esac
11957     RC=$ac_ct_RC
11958   fi
11959 else
11960   RC="$ac_cv_prog_RC"
11961 fi
11962
11963
11964
11965 # Source file extension for RC test sources.
11966 ac_ext=rc
11967
11968 # Object file extension for compiled RC test sources.
11969 objext=o
11970 objext_RC=$objext
11971
11972 # Code to be used in simple compile tests
11973 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
11974
11975 # Code to be used in simple link tests
11976 lt_simple_link_test_code=$lt_simple_compile_test_code
11977
11978 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11979
11980
11981
11982
11983
11984
11985 # If no C compiler was specified, use CC.
11986 LTCC=${LTCC-"$CC"}
11987
11988 # If no C compiler flags were specified, use CFLAGS.
11989 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11990
11991 # Allow CC to be a program name with arguments.
11992 compiler=$CC
11993
11994
11995 # save warnings/boilerplate of simple test code
11996 ac_outfile=conftest.$ac_objext
11997 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11998 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11999 _lt_compiler_boilerplate=`cat conftest.err`
12000 $RM conftest*
12001
12002 ac_outfile=conftest.$ac_objext
12003 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12004 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12005 _lt_linker_boilerplate=`cat conftest.err`
12006 $RM -r conftest*
12007
12008
12009 # Allow CC to be a program name with arguments.
12010 lt_save_CC=$CC
12011 lt_save_CFLAGS=$CFLAGS
12012 lt_save_GCC=$GCC
12013 GCC=
12014 CC=${RC-"windres"}
12015 CFLAGS=
12016 compiler=$CC
12017 compiler_RC=$CC
12018 func_cc_basename $compiler
12019 cc_basename=$func_cc_basename_result
12020
12021 lt_cv_prog_compiler_c_o_RC=yes
12022
12023 if test -n "$compiler"; then
12024   :
12025
12026
12027
12028 fi
12029
12030 GCC=$lt_save_GCC
12031 ac_ext=c
12032 ac_cpp='$CPP $CPPFLAGS'
12033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12036
12037 CC=$lt_save_CC
12038 CFLAGS=$lt_save_CFLAGS
12039
12040 fi
12041
12042
12043
12044
12045 # checks for native programs to generate building tool
12046
12047 if test ${cross_compiling} = yes; then
12048   # Extract the first word of "${build}-gcc", so it can be a program name with args.
12049 set dummy ${build}-gcc; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if ${ac_cv_prog_CC_BUILD+:} false; then :
12053   $as_echo_n "(cached) " >&6
12054 else
12055   if test -n "$CC_BUILD"; then
12056   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12057 else
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12060 do
12061   IFS=$as_save_IFS
12062   test -z "$as_dir" && as_dir=.
12063     for ac_exec_ext in '' $ac_executable_extensions; do
12064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12065     ac_cv_prog_CC_BUILD="${build}-gcc"
12066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12067     break 2
12068   fi
12069 done
12070   done
12071 IFS=$as_save_IFS
12072
12073 fi
12074 fi
12075 CC_BUILD=$ac_cv_prog_CC_BUILD
12076 if test -n "$CC_BUILD"; then
12077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12078 $as_echo "$CC_BUILD" >&6; }
12079 else
12080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12082 fi
12083
12084
12085   test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
12086 set dummy gcc; ac_word=$2
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088 $as_echo_n "checking for $ac_word... " >&6; }
12089 if ${ac_cv_prog_CC_BUILD+:} false; then :
12090   $as_echo_n "(cached) " >&6
12091 else
12092   if test -n "$CC_BUILD"; then
12093   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12094 else
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $PATH
12097 do
12098   IFS=$as_save_IFS
12099   test -z "$as_dir" && as_dir=.
12100     for ac_exec_ext in '' $ac_executable_extensions; do
12101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12102     ac_cv_prog_CC_BUILD="gcc"
12103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104     break 2
12105   fi
12106 done
12107   done
12108 IFS=$as_save_IFS
12109
12110 fi
12111 fi
12112 CC_BUILD=$ac_cv_prog_CC_BUILD
12113 if test -n "$CC_BUILD"; then
12114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12115 $as_echo "$CC_BUILD" >&6; }
12116 else
12117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12119 fi
12120
12121
12122   test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
12123 set dummy cc; ac_word=$2
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125 $as_echo_n "checking for $ac_word... " >&6; }
12126 if ${ac_cv_prog_CC_BUILD+:} false; then :
12127   $as_echo_n "(cached) " >&6
12128 else
12129   if test -n "$CC_BUILD"; then
12130   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12131 else
12132   ac_prog_rejected=no
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $PATH
12135 do
12136   IFS=$as_save_IFS
12137   test -z "$as_dir" && as_dir=.
12138     for ac_exec_ext in '' $ac_executable_extensions; do
12139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12140     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12141        ac_prog_rejected=yes
12142        continue
12143      fi
12144     ac_cv_prog_CC_BUILD="cc"
12145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146     break 2
12147   fi
12148 done
12149   done
12150 IFS=$as_save_IFS
12151
12152 if test $ac_prog_rejected = yes; then
12153   # We found a bogon in the path, so make sure we never use it.
12154   set dummy $ac_cv_prog_CC_BUILD
12155   shift
12156   if test $# != 0; then
12157     # We chose a different compiler from the bogus one.
12158     # However, it has the same basename, so the bogon will be chosen
12159     # first if we set CC_BUILD to just the basename; use the full file name.
12160     shift
12161     ac_cv_prog_CC_BUILD="$as_dir/$ac_word${1+' '}$@"
12162   fi
12163 fi
12164 fi
12165 fi
12166 CC_BUILD=$ac_cv_prog_CC_BUILD
12167 if test -n "$CC_BUILD"; then
12168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12169 $as_echo "$CC_BUILD" >&6; }
12170 else
12171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12173 fi
12174
12175
12176   test -z "${CC_BUILD}" && as_fn_error $? "cannot find native C compiler" "$LINENO" 5
12177
12178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of native executables" >&5
12179 $as_echo_n "checking for suffix of native executables... " >&6; }
12180   rm -f a.* b.* a_out.exe conftest.*
12181   echo > conftest.c "int main() { return 0;}"
12182   ${CC_BUILD} conftest.c || as_fn_error $? "native C compiler is not working" "$LINENO" 5
12183   rm -f conftest.c
12184   if test -x a.out -o -x b.out -o -x conftest; then
12185     EXEEXT_BUILD=""
12186   elif test -x a_out.exe -o -x conftest.exe; then
12187     EXEEXT_BUILD=".exe"
12188   elif test -x conftest.*; then
12189     EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
12190   fi
12191   rm -f a.* b.* a_out.exe conftest.*
12192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT_BUILD" >&5
12193 $as_echo "$EXEEXT_BUILD" >&6; }
12194 else
12195   CC_BUILD=${CC}
12196   EXEEXT_BUILD=${EXEEXT}
12197 fi
12198
12199
12200
12201
12202
12203 # Since these files will be eventually called from another directory (namely
12204 # from the top level) we make the path of the scripts absolute.
12205 #
12206 # This small code snippet has been taken from automake's `ylwrap' script.
12207
12208 # Find a good install program.  We prefer a C program (faster),
12209 # so one script is as good as another.  But avoid the broken or
12210 # incompatible versions:
12211 # SysV /etc/install, /usr/sbin/install
12212 # SunOS /usr/etc/install
12213 # IRIX /sbin/install
12214 # AIX /bin/install
12215 # AmigaOS /C/install, which installs bootblocks on floppy discs
12216 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12219 # OS/2's system install, which has a completely different semantic
12220 # ./install, which can be erroneously created by make from ./install.sh.
12221 # Reject install programs that cannot install multiple files.
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12223 $as_echo_n "checking for a BSD-compatible install... " >&6; }
12224 if test -z "$INSTALL"; then
12225 if ${ac_cv_path_install+:} false; then :
12226   $as_echo_n "(cached) " >&6
12227 else
12228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12230 do
12231   IFS=$as_save_IFS
12232   test -z "$as_dir" && as_dir=.
12233     # Account for people who put trailing slashes in PATH elements.
12234 case $as_dir/ in #((
12235   ./ | .// | /[cC]/* | \
12236   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12237   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12238   /usr/ucb/* ) ;;
12239   *)
12240     # OSF1 and SCO ODT 3.0 have their own names for install.
12241     # Don't use installbsd from OSF since it installs stuff as root
12242     # by default.
12243     for ac_prog in ginstall scoinst install; do
12244       for ac_exec_ext in '' $ac_executable_extensions; do
12245         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12246           if test $ac_prog = install &&
12247             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12248             # AIX install.  It has an incompatible calling convention.
12249             :
12250           elif test $ac_prog = install &&
12251             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12252             # program-specific install script used by HP pwplus--don't use.
12253             :
12254           else
12255             rm -rf conftest.one conftest.two conftest.dir
12256             echo one > conftest.one
12257             echo two > conftest.two
12258             mkdir conftest.dir
12259             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12260               test -s conftest.one && test -s conftest.two &&
12261               test -s conftest.dir/conftest.one &&
12262               test -s conftest.dir/conftest.two
12263             then
12264               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12265               break 3
12266             fi
12267           fi
12268         fi
12269       done
12270     done
12271     ;;
12272 esac
12273
12274   done
12275 IFS=$as_save_IFS
12276
12277 rm -rf conftest.one conftest.two conftest.dir
12278
12279 fi
12280   if test "${ac_cv_path_install+set}" = set; then
12281     INSTALL=$ac_cv_path_install
12282   else
12283     # As a last resort, use the slow shell script.  Don't cache a
12284     # value for INSTALL within a source directory, because that will
12285     # break other packages using the cache if that directory is
12286     # removed, or if the value is a relative name.
12287     INSTALL=$ac_install_sh
12288   fi
12289 fi
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12291 $as_echo "$INSTALL" >&6; }
12292
12293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12294 # It thinks the first close brace ends the variable substitution.
12295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12296
12297 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12298
12299 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12300
12301 case "$INSTALL" in
12302 [\\/]* | ?:[\\/]*)
12303   ;;
12304 *[\\/]*)
12305   INSTALL="`pwd`/$INSTALL"
12306   ;;
12307 esac
12308
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12310 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12311 if test -z "$MKDIR_P"; then
12312   if ${ac_cv_path_mkdir+:} false; then :
12313   $as_echo_n "(cached) " >&6
12314 else
12315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12317 do
12318   IFS=$as_save_IFS
12319   test -z "$as_dir" && as_dir=.
12320     for ac_prog in mkdir gmkdir; do
12321          for ac_exec_ext in '' $ac_executable_extensions; do
12322            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12323            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12324              'mkdir (GNU coreutils) '* | \
12325              'mkdir (coreutils) '* | \
12326              'mkdir (fileutils) '4.1*)
12327                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12328                break 3;;
12329            esac
12330          done
12331        done
12332   done
12333 IFS=$as_save_IFS
12334
12335 fi
12336
12337   test -d ./--version && rmdir ./--version
12338   if test "${ac_cv_path_mkdir+set}" = set; then
12339     MKDIR_P="$ac_cv_path_mkdir -p"
12340   else
12341     # As a last resort, use the slow shell script.  Don't cache a
12342     # value for MKDIR_P within a source directory, because that will
12343     # break other packages using the cache if that directory is
12344     # removed, or if the value is a relative name.
12345     MKDIR_P="$ac_install_sh -d"
12346   fi
12347 fi
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12349 $as_echo "$MKDIR_P" >&6; }
12350
12351 case "$MKDIR_P" in
12352 [\\/]* | ?:[\\/]*)
12353   ;;
12354 *[\\/]*)
12355   MKDIR_P="`pwd`/$MKDIR_P"
12356   ;;
12357 esac
12358
12359
12360 # checks for header files
12361
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12363 $as_echo_n "checking for ANSI C header files... " >&6; }
12364 if ${ac_cv_header_stdc+:} false; then :
12365   $as_echo_n "(cached) " >&6
12366 else
12367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h.  */
12369 #include <stdlib.h>
12370 #include <stdarg.h>
12371 #include <string.h>
12372 #include <float.h>
12373
12374 int
12375 main ()
12376 {
12377
12378   ;
12379   return 0;
12380 }
12381 _ACEOF
12382 if ac_fn_c_try_compile "$LINENO"; then :
12383   ac_cv_header_stdc=yes
12384 else
12385   ac_cv_header_stdc=no
12386 fi
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388
12389 if test $ac_cv_header_stdc = yes; then
12390   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h.  */
12393 #include <string.h>
12394
12395 _ACEOF
12396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12397   $EGREP "memchr" >/dev/null 2>&1; then :
12398
12399 else
12400   ac_cv_header_stdc=no
12401 fi
12402 rm -f conftest*
12403
12404 fi
12405
12406 if test $ac_cv_header_stdc = yes; then
12407   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h.  */
12410 #include <stdlib.h>
12411
12412 _ACEOF
12413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12414   $EGREP "free" >/dev/null 2>&1; then :
12415
12416 else
12417   ac_cv_header_stdc=no
12418 fi
12419 rm -f conftest*
12420
12421 fi
12422
12423 if test $ac_cv_header_stdc = yes; then
12424   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12425   if test "$cross_compiling" = yes; then :
12426   :
12427 else
12428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h.  */
12430 #include <ctype.h>
12431 #include <stdlib.h>
12432 #if ((' ' & 0x0FF) == 0x020)
12433 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12434 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12435 #else
12436 # define ISLOWER(c) \
12437                    (('a' <= (c) && (c) <= 'i') \
12438                      || ('j' <= (c) && (c) <= 'r') \
12439                      || ('s' <= (c) && (c) <= 'z'))
12440 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12441 #endif
12442
12443 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12444 int
12445 main ()
12446 {
12447   int i;
12448   for (i = 0; i < 256; i++)
12449     if (XOR (islower (i), ISLOWER (i))
12450         || toupper (i) != TOUPPER (i))
12451       return 2;
12452   return 0;
12453 }
12454 _ACEOF
12455 if ac_fn_c_try_run "$LINENO"; then :
12456
12457 else
12458   ac_cv_header_stdc=no
12459 fi
12460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12461   conftest.$ac_objext conftest.beam conftest.$ac_ext
12462 fi
12463
12464 fi
12465 fi
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12467 $as_echo "$ac_cv_header_stdc" >&6; }
12468 if test $ac_cv_header_stdc = yes; then
12469
12470 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12471
12472 fi
12473
12474 for ac_header in fcntl.h unistd.h
12475 do :
12476   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12477 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12479   cat >>confdefs.h <<_ACEOF
12480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12481 _ACEOF
12482
12483 fi
12484
12485 done
12486
12487
12488
12489 # checks for typedefs, structures, and compiler characteristics
12490
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12492 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12493 if ${ac_cv_c_const+:} false; then :
12494   $as_echo_n "(cached) " >&6
12495 else
12496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h.  */
12498
12499 int
12500 main ()
12501 {
12502
12503 #ifndef __cplusplus
12504   /* Ultrix mips cc rejects this sort of thing.  */
12505   typedef int charset[2];
12506   const charset cs = { 0, 0 };
12507   /* SunOS 4.1.1 cc rejects this.  */
12508   char const *const *pcpcc;
12509   char **ppc;
12510   /* NEC SVR4.0.2 mips cc rejects this.  */
12511   struct point {int x, y;};
12512   static struct point const zero = {0,0};
12513   /* AIX XL C 1.02.0.0 rejects this.
12514      It does not let you subtract one const X* pointer from another in
12515      an arm of an if-expression whose if-part is not a constant
12516      expression */
12517   const char *g = "string";
12518   pcpcc = &g + (g ? g-g : 0);
12519   /* HPUX 7.0 cc rejects these. */
12520   ++pcpcc;
12521   ppc = (char**) pcpcc;
12522   pcpcc = (char const *const *) ppc;
12523   { /* SCO 3.2v4 cc rejects this sort of thing.  */
12524     char tx;
12525     char *t = &tx;
12526     char const *s = 0 ? (char *) 0 : (char const *) 0;
12527
12528     *t++ = 0;
12529     if (s) return 0;
12530   }
12531   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12532     int x[] = {25, 17};
12533     const int *foo = &x[0];
12534     ++foo;
12535   }
12536   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12537     typedef const int *iptr;
12538     iptr p = 0;
12539     ++p;
12540   }
12541   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12542        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12543     struct s { int j; const int *ap[3]; } bx;
12544     struct s *b = &bx; b->j = 5;
12545   }
12546   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12547     const int foo = 10;
12548     if (!foo) return 0;
12549   }
12550   return !cs[0] && !zero.x;
12551 #endif
12552
12553   ;
12554   return 0;
12555 }
12556 _ACEOF
12557 if ac_fn_c_try_compile "$LINENO"; then :
12558   ac_cv_c_const=yes
12559 else
12560   ac_cv_c_const=no
12561 fi
12562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12563 fi
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12565 $as_echo "$ac_cv_c_const" >&6; }
12566 if test $ac_cv_c_const = no; then
12567
12568 $as_echo "#define const /**/" >>confdefs.h
12569
12570 fi
12571
12572 # The cast to long int works around a bug in the HP C Compiler
12573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12575 # This bug is HP SR number 8606223364.
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12577 $as_echo_n "checking size of int... " >&6; }
12578 if ${ac_cv_sizeof_int+:} false; then :
12579   $as_echo_n "(cached) " >&6
12580 else
12581   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12582
12583 else
12584   if test "$ac_cv_type_int" = yes; then
12585      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12587 as_fn_error 77 "cannot compute sizeof (int)
12588 See \`config.log' for more details" "$LINENO" 5; }
12589    else
12590      ac_cv_sizeof_int=0
12591    fi
12592 fi
12593
12594 fi
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12596 $as_echo "$ac_cv_sizeof_int" >&6; }
12597
12598
12599
12600 cat >>confdefs.h <<_ACEOF
12601 #define SIZEOF_INT $ac_cv_sizeof_int
12602 _ACEOF
12603
12604
12605 # The cast to long int works around a bug in the HP C Compiler
12606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12608 # This bug is HP SR number 8606223364.
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12610 $as_echo_n "checking size of long... " >&6; }
12611 if ${ac_cv_sizeof_long+:} false; then :
12612   $as_echo_n "(cached) " >&6
12613 else
12614   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12615
12616 else
12617   if test "$ac_cv_type_long" = yes; then
12618      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12620 as_fn_error 77 "cannot compute sizeof (long)
12621 See \`config.log' for more details" "$LINENO" 5; }
12622    else
12623      ac_cv_sizeof_long=0
12624    fi
12625 fi
12626
12627 fi
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12629 $as_echo "$ac_cv_sizeof_long" >&6; }
12630
12631
12632
12633 cat >>confdefs.h <<_ACEOF
12634 #define SIZEOF_LONG $ac_cv_sizeof_long
12635 _ACEOF
12636
12637
12638
12639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
12640 $as_echo_n "checking for unsigned long long int... " >&6; }
12641 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
12642   $as_echo_n "(cached) " >&6
12643 else
12644   ac_cv_type_unsigned_long_long_int=yes
12645      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12646        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h.  */
12648
12649   /* For now, do not test the preprocessor; as of 2007 there are too many
12650          implementations with broken preprocessors.  Perhaps this can
12651          be revisited in 2012.  In the meantime, code should not expect
12652          #if to work with literals wider than 32 bits.  */
12653       /* Test literals.  */
12654       long long int ll = 9223372036854775807ll;
12655       long long int nll = -9223372036854775807LL;
12656       unsigned long long int ull = 18446744073709551615ULL;
12657       /* Test constant expressions.   */
12658       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12659                      ? 1 : -1)];
12660       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12661                      ? 1 : -1)];
12662       int i = 63;
12663 int
12664 main ()
12665 {
12666 /* Test availability of runtime routines for shift and division.  */
12667       long long int llmax = 9223372036854775807ll;
12668       unsigned long long int ullmax = 18446744073709551615ull;
12669       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12670               | (llmax / ll) | (llmax % ll)
12671               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12672               | (ullmax / ull) | (ullmax % ull));
12673   ;
12674   return 0;
12675 }
12676
12677 _ACEOF
12678 if ac_fn_c_try_link "$LINENO"; then :
12679
12680 else
12681   ac_cv_type_unsigned_long_long_int=no
12682 fi
12683 rm -f core conftest.err conftest.$ac_objext \
12684     conftest$ac_exeext conftest.$ac_ext
12685      fi
12686 fi
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
12688 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
12689   if test $ac_cv_type_unsigned_long_long_int = yes; then
12690
12691 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12692
12693   fi
12694
12695
12696
12697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
12698 $as_echo_n "checking for long long int... " >&6; }
12699 if ${ac_cv_type_long_long_int+:} false; then :
12700   $as_echo_n "(cached) " >&6
12701 else
12702   ac_cv_type_long_long_int=yes
12703       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12704         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
12705         if test $ac_cv_type_long_long_int = yes; then
12706                                         if test "$cross_compiling" = yes; then :
12707   :
12708 else
12709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12710 /* end confdefs.h.  */
12711 #include <limits.h>
12712                  #ifndef LLONG_MAX
12713                  # define HALF \
12714                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
12715                  # define LLONG_MAX (HALF - 1 + HALF)
12716                  #endif
12717 int
12718 main ()
12719 {
12720 long long int n = 1;
12721                  int i;
12722                  for (i = 0; ; i++)
12723                    {
12724                      long long int m = n << i;
12725                      if (m >> i != n)
12726                        return 1;
12727                      if (LLONG_MAX / 2 < m)
12728                        break;
12729                    }
12730                  return 0;
12731   ;
12732   return 0;
12733 }
12734 _ACEOF
12735 if ac_fn_c_try_run "$LINENO"; then :
12736
12737 else
12738   ac_cv_type_long_long_int=no
12739 fi
12740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12741   conftest.$ac_objext conftest.beam conftest.$ac_ext
12742 fi
12743
12744         fi
12745       fi
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
12748 $as_echo "$ac_cv_type_long_long_int" >&6; }
12749   if test $ac_cv_type_long_long_int = yes; then
12750
12751 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12752
12753   fi
12754
12755
12756
12757 # check whether cpp computation of size of int and long in ftconfig.h.in works
12758
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cpp computation of bit length in ftconfig.h.in works" >&5
12760 $as_echo_n "checking whether cpp computation of bit length in ftconfig.h.in works... " >&6; }
12761 orig_CPPFLAGS="${CPPFLAGS}"
12762 CPPFLAGS="-I${srcdir} -I. -I${srcdir}/../../include ${CPPFLAGS}"
12763
12764 ac_clean_files=
12765 if test ! -f ft2build.h; then
12766   ac_clean_files=ft2build.h
12767   touch ft2build.h
12768 fi
12769
12770 cat > conftest.c <<\_ACEOF
12771 #include <limits.h>
12772 #define FT_CONFIG_OPTIONS_H <freetype/config/ftoption.h>
12773 #define FT_CONFIG_STANDARD_LIBRARY_H <freetype/config/ftstdlib.h>
12774 #define FT_UINT_MAX  UINT_MAX
12775 #define FT_ULONG_MAX ULONG_MAX
12776 #include "ftconfig.h.in"
12777 _ACEOF
12778 echo >> conftest.c "#if FT_SIZEOF_INT == "${ac_cv_sizeof_int}
12779 echo >> conftest.c "ac_cpp_ft_sizeof_int="${ac_cv_sizeof_int}
12780 echo >> conftest.c "#endif"
12781 echo >> conftest.c "#if FT_SIZEOF_LONG == "${ac_cv_sizeof_long}
12782 echo >> conftest.c "ac_cpp_ft_sizeof_long="${ac_cv_sizeof_long}
12783 echo >> conftest.c "#endif"
12784
12785 ${CPP} ${CPPFLAGS} conftest.c | ${GREP} ac_cpp_ft > conftest.sh
12786 eval `cat conftest.sh`
12787 rm -f conftest.* $ac_clean_files
12788
12789 if test x != "x${ac_cpp_ft_sizeof_int}" \
12790    -a x != x"${ac_cpp_ft_sizeof_long}"; then
12791   unset ft_use_autoconf_sizeof_types
12792 else
12793   ft_use_autoconf_sizeof_types=yes
12794 fi
12795
12796 # Check whether --enable-biarch-config was given.
12797 if test "${enable_biarch_config+set}" = set; then :
12798   enableval=$enable_biarch_config;
12799 fi
12800
12801
12802 case :${ft_use_autoconf_sizeof_types}:${enable_biarch_config}: in
12803   :yes:yes:)
12804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken but use it" >&5
12805 $as_echo "broken but use it" >&6; }
12806     unset ft_use_autoconf_sizeof_types
12807     ;;
12808   ::no:)
12809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: works but ignore it" >&5
12810 $as_echo "works but ignore it" >&6; }
12811     ft_use_autoconf_sizeof_types=yes
12812     ;;
12813   ::yes: | :::)
12814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12815 $as_echo "yes" >&6; }
12816     unset ft_use_autoconf_sizeof_types
12817     ;;
12818   *)
12819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 $as_echo "no" >&6; }
12821     ft_use_autoconf_sizeof_types=yes
12822     ;;
12823 esac
12824
12825 if test x"${ft_use_autoconf_sizeof_types}" = xyes; then
12826
12827 $as_echo "#define FT_USE_AUTOCONF_SIZEOF_TYPES /**/" >>confdefs.h
12828
12829 fi
12830
12831 CPPFLAGS="${orig_CPPFLAGS}"
12832
12833 # Check whether --enable-freetype-config was given.
12834 if test "${enable_freetype_config+set}" = set; then :
12835   enableval=$enable_freetype_config; case "${enableval}" in
12836     yes) enable_freetype_config="TRUE" ;;
12837     no)  enable_freetype_config="FALSE" ;;
12838     *)   as_fn_error $? "unknown value '${enableval}' passed with --enable-freetype-config" "$LINENO" 5 ;;
12839    esac
12840 else
12841   enable_freetype_config="FALSE"
12842 fi
12843
12844
12845 INSTALL_FT2_CONFIG=$enable_freetype_config
12846
12847
12848 # checks for library functions
12849
12850 # Check whether --enable-largefile was given.
12851 if test "${enable_largefile+set}" = set; then :
12852   enableval=$enable_largefile;
12853 fi
12854
12855 if test "$enable_largefile" != no; then
12856
12857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12858 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12859 if ${ac_cv_sys_largefile_CC+:} false; then :
12860   $as_echo_n "(cached) " >&6
12861 else
12862   ac_cv_sys_largefile_CC=no
12863      if test "$GCC" != yes; then
12864        ac_save_CC=$CC
12865        while :; do
12866          # IRIX 6.2 and later do not support large files by default,
12867          # so use the C compiler's -n32 option if that helps.
12868          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h.  */
12870 #include <sys/types.h>
12871  /* Check that off_t can represent 2**63 - 1 correctly.
12872     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12873     since some C++ compilers masquerading as C compilers
12874     incorrectly reject 9223372036854775807.  */
12875 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12876   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12877                        && LARGE_OFF_T % 2147483647 == 1)
12878                       ? 1 : -1];
12879 int
12880 main ()
12881 {
12882
12883   ;
12884   return 0;
12885 }
12886 _ACEOF
12887          if ac_fn_c_try_compile "$LINENO"; then :
12888   break
12889 fi
12890 rm -f core conftest.err conftest.$ac_objext
12891          CC="$CC -n32"
12892          if ac_fn_c_try_compile "$LINENO"; then :
12893   ac_cv_sys_largefile_CC=' -n32'; break
12894 fi
12895 rm -f core conftest.err conftest.$ac_objext
12896          break
12897        done
12898        CC=$ac_save_CC
12899        rm -f conftest.$ac_ext
12900     fi
12901 fi
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12903 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12904   if test "$ac_cv_sys_largefile_CC" != no; then
12905     CC=$CC$ac_cv_sys_largefile_CC
12906   fi
12907
12908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12909 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12910 if ${ac_cv_sys_file_offset_bits+:} false; then :
12911   $as_echo_n "(cached) " >&6
12912 else
12913   while :; do
12914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h.  */
12916 #include <sys/types.h>
12917  /* Check that off_t can represent 2**63 - 1 correctly.
12918     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12919     since some C++ compilers masquerading as C compilers
12920     incorrectly reject 9223372036854775807.  */
12921 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12922   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12923                        && LARGE_OFF_T % 2147483647 == 1)
12924                       ? 1 : -1];
12925 int
12926 main ()
12927 {
12928
12929   ;
12930   return 0;
12931 }
12932 _ACEOF
12933 if ac_fn_c_try_compile "$LINENO"; then :
12934   ac_cv_sys_file_offset_bits=no; break
12935 fi
12936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h.  */
12939 #define _FILE_OFFSET_BITS 64
12940 #include <sys/types.h>
12941  /* Check that off_t can represent 2**63 - 1 correctly.
12942     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12943     since some C++ compilers masquerading as C compilers
12944     incorrectly reject 9223372036854775807.  */
12945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12946   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12947                        && LARGE_OFF_T % 2147483647 == 1)
12948                       ? 1 : -1];
12949 int
12950 main ()
12951 {
12952
12953   ;
12954   return 0;
12955 }
12956 _ACEOF
12957 if ac_fn_c_try_compile "$LINENO"; then :
12958   ac_cv_sys_file_offset_bits=64; break
12959 fi
12960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12961   ac_cv_sys_file_offset_bits=unknown
12962   break
12963 done
12964 fi
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12966 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12967 case $ac_cv_sys_file_offset_bits in #(
12968   no | unknown) ;;
12969   *)
12970 cat >>confdefs.h <<_ACEOF
12971 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12972 _ACEOF
12973 ;;
12974 esac
12975 rm -rf conftest*
12976   if test $ac_cv_sys_file_offset_bits = unknown; then
12977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12978 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12979 if ${ac_cv_sys_large_files+:} false; then :
12980   $as_echo_n "(cached) " >&6
12981 else
12982   while :; do
12983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h.  */
12985 #include <sys/types.h>
12986  /* Check that off_t can represent 2**63 - 1 correctly.
12987     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12988     since some C++ compilers masquerading as C compilers
12989     incorrectly reject 9223372036854775807.  */
12990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12991   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12992                        && LARGE_OFF_T % 2147483647 == 1)
12993                       ? 1 : -1];
12994 int
12995 main ()
12996 {
12997
12998   ;
12999   return 0;
13000 }
13001 _ACEOF
13002 if ac_fn_c_try_compile "$LINENO"; then :
13003   ac_cv_sys_large_files=no; break
13004 fi
13005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h.  */
13008 #define _LARGE_FILES 1
13009 #include <sys/types.h>
13010  /* Check that off_t can represent 2**63 - 1 correctly.
13011     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13012     since some C++ compilers masquerading as C compilers
13013     incorrectly reject 9223372036854775807.  */
13014 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13015   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13016                        && LARGE_OFF_T % 2147483647 == 1)
13017                       ? 1 : -1];
13018 int
13019 main ()
13020 {
13021
13022   ;
13023   return 0;
13024 }
13025 _ACEOF
13026 if ac_fn_c_try_compile "$LINENO"; then :
13027   ac_cv_sys_large_files=1; break
13028 fi
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030   ac_cv_sys_large_files=unknown
13031   break
13032 done
13033 fi
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13035 $as_echo "$ac_cv_sys_large_files" >&6; }
13036 case $ac_cv_sys_large_files in #(
13037   no | unknown) ;;
13038   *)
13039 cat >>confdefs.h <<_ACEOF
13040 #define _LARGE_FILES $ac_cv_sys_large_files
13041 _ACEOF
13042 ;;
13043 esac
13044 rm -rf conftest*
13045   fi
13046
13047
13048 fi
13049
13050
13051 # Here we check whether we can use our mmap file component.
13052
13053 # Check whether --enable-mmap was given.
13054 if test "${enable_mmap+set}" = set; then :
13055   enableval=$enable_mmap; enable_mmap="no"
13056 else
13057   enable_mmap="yes"
13058 fi
13059
13060 if test "x${enable_mmap}" != "xno"; then
13061
13062
13063
13064   for ac_header in $ac_header_list
13065 do :
13066   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13067 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13068 "
13069 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13070   cat >>confdefs.h <<_ACEOF
13071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13072 _ACEOF
13073
13074 fi
13075
13076 done
13077
13078
13079
13080
13081
13082
13083
13084
13085 for ac_func in getpagesize
13086 do :
13087   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13088 if test "x$ac_cv_func_getpagesize" = xyes; then :
13089   cat >>confdefs.h <<_ACEOF
13090 #define HAVE_GETPAGESIZE 1
13091 _ACEOF
13092
13093 fi
13094 done
13095
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13097 $as_echo_n "checking for working mmap... " >&6; }
13098 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13099   $as_echo_n "(cached) " >&6
13100 else
13101   if test "$cross_compiling" = yes; then :
13102   ac_cv_func_mmap_fixed_mapped=no
13103 else
13104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h.  */
13106 $ac_includes_default
13107 /* malloc might have been renamed as rpl_malloc. */
13108 #undef malloc
13109
13110 /* Thanks to Mike Haertel and Jim Avera for this test.
13111    Here is a matrix of mmap possibilities:
13112         mmap private not fixed
13113         mmap private fixed at somewhere currently unmapped
13114         mmap private fixed at somewhere already mapped
13115         mmap shared not fixed
13116         mmap shared fixed at somewhere currently unmapped
13117         mmap shared fixed at somewhere already mapped
13118    For private mappings, we should verify that changes cannot be read()
13119    back from the file, nor mmap's back from the file at a different
13120    address.  (There have been systems where private was not correctly
13121    implemented like the infamous i386 svr4.0, and systems where the
13122    VM page cache was not coherent with the file system buffer cache
13123    like early versions of FreeBSD and possibly contemporary NetBSD.)
13124    For shared mappings, we should conversely verify that changes get
13125    propagated back to all the places they're supposed to be.
13126
13127    Grep wants private fixed already mapped.
13128    The main things grep needs to know about mmap are:
13129    * does it exist and is it safe to write into the mmap'd area
13130    * how to use it (BSD variants)  */
13131
13132 #include <fcntl.h>
13133 #include <sys/mman.h>
13134
13135 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13136 char *malloc ();
13137 #endif
13138
13139 /* This mess was copied from the GNU getpagesize.h.  */
13140 #ifndef HAVE_GETPAGESIZE
13141 # ifdef _SC_PAGESIZE
13142 #  define getpagesize() sysconf(_SC_PAGESIZE)
13143 # else /* no _SC_PAGESIZE */
13144 #  ifdef HAVE_SYS_PARAM_H
13145 #   include <sys/param.h>
13146 #   ifdef EXEC_PAGESIZE
13147 #    define getpagesize() EXEC_PAGESIZE
13148 #   else /* no EXEC_PAGESIZE */
13149 #    ifdef NBPG
13150 #     define getpagesize() NBPG * CLSIZE
13151 #     ifndef CLSIZE
13152 #      define CLSIZE 1
13153 #     endif /* no CLSIZE */
13154 #    else /* no NBPG */
13155 #     ifdef NBPC
13156 #      define getpagesize() NBPC
13157 #     else /* no NBPC */
13158 #      ifdef PAGESIZE
13159 #       define getpagesize() PAGESIZE
13160 #      endif /* PAGESIZE */
13161 #     endif /* no NBPC */
13162 #    endif /* no NBPG */
13163 #   endif /* no EXEC_PAGESIZE */
13164 #  else /* no HAVE_SYS_PARAM_H */
13165 #   define getpagesize() 8192   /* punt totally */
13166 #  endif /* no HAVE_SYS_PARAM_H */
13167 # endif /* no _SC_PAGESIZE */
13168
13169 #endif /* no HAVE_GETPAGESIZE */
13170
13171 int
13172 main ()
13173 {
13174   char *data, *data2, *data3;
13175   const char *cdata2;
13176   int i, pagesize;
13177   int fd, fd2;
13178
13179   pagesize = getpagesize ();
13180
13181   /* First, make a file with some known garbage in it. */
13182   data = (char *) malloc (pagesize);
13183   if (!data)
13184     return 1;
13185   for (i = 0; i < pagesize; ++i)
13186     *(data + i) = rand ();
13187   umask (0);
13188   fd = creat ("conftest.mmap", 0600);
13189   if (fd < 0)
13190     return 2;
13191   if (write (fd, data, pagesize) != pagesize)
13192     return 3;
13193   close (fd);
13194
13195   /* Next, check that the tail of a page is zero-filled.  File must have
13196      non-zero length, otherwise we risk SIGBUS for entire page.  */
13197   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13198   if (fd2 < 0)
13199     return 4;
13200   cdata2 = "";
13201   if (write (fd2, cdata2, 1) != 1)
13202     return 5;
13203   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13204   if (data2 == MAP_FAILED)
13205     return 6;
13206   for (i = 0; i < pagesize; ++i)
13207     if (*(data2 + i))
13208       return 7;
13209   close (fd2);
13210   if (munmap (data2, pagesize))
13211     return 8;
13212
13213   /* Next, try to mmap the file at a fixed address which already has
13214      something else allocated at it.  If we can, also make sure that
13215      we see the same garbage.  */
13216   fd = open ("conftest.mmap", O_RDWR);
13217   if (fd < 0)
13218     return 9;
13219   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13220                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
13221     return 10;
13222   for (i = 0; i < pagesize; ++i)
13223     if (*(data + i) != *(data2 + i))
13224       return 11;
13225
13226   /* Finally, make sure that changes to the mapped area do not
13227      percolate back to the file as seen by read().  (This is a bug on
13228      some variants of i386 svr4.0.)  */
13229   for (i = 0; i < pagesize; ++i)
13230     *(data2 + i) = *(data2 + i) + 1;
13231   data3 = (char *) malloc (pagesize);
13232   if (!data3)
13233     return 12;
13234   if (read (fd, data3, pagesize) != pagesize)
13235     return 13;
13236   for (i = 0; i < pagesize; ++i)
13237     if (*(data + i) != *(data3 + i))
13238       return 14;
13239   close (fd);
13240   return 0;
13241 }
13242 _ACEOF
13243 if ac_fn_c_try_run "$LINENO"; then :
13244   ac_cv_func_mmap_fixed_mapped=yes
13245 else
13246   ac_cv_func_mmap_fixed_mapped=no
13247 fi
13248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13249   conftest.$ac_objext conftest.beam conftest.$ac_ext
13250 fi
13251
13252 fi
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13254 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13255 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13256
13257 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13258
13259 fi
13260 rm -f conftest.mmap conftest.txt
13261
13262 fi
13263 if test "x${enable_mmap}" = "xno" \
13264    -o "$ac_cv_func_mmap_fixed_mapped" != "yes"; then
13265   FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
13266 else
13267   FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
13268
13269   ac_fn_c_check_decl "$LINENO" "munmap" "ac_cv_have_decl_munmap" "
13270
13271 #ifdef HAVE_UNISTD_H
13272 #include <unistd.h>
13273 #endif
13274 #include <sys/mman.h>
13275
13276
13277 "
13278 if test "x$ac_cv_have_decl_munmap" = xyes; then :
13279   ac_have_decl=1
13280 else
13281   ac_have_decl=0
13282 fi
13283
13284 cat >>confdefs.h <<_ACEOF
13285 #define HAVE_DECL_MUNMAP $ac_have_decl
13286 _ACEOF
13287
13288
13289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for munmap's first parameter type" >&5
13290 $as_echo_n "checking for munmap's first parameter type... " >&6; }
13291    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h.  */
13293
13294
13295
13296 #include <unistd.h>
13297 #include <sys/mman.h>
13298 int munmap(void *, size_t);
13299
13300
13301
13302 _ACEOF
13303 if ac_fn_c_try_compile "$LINENO"; then :
13304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: void *" >&5
13305 $as_echo "void *" >&6; }
13306
13307 $as_echo "#define MUNMAP_USES_VOIDP /**/" >>confdefs.h
13308
13309 else
13310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: char *" >&5
13311 $as_echo "char *" >&6; }
13312 fi
13313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314
13315 fi
13316
13317
13318 for ac_func in memcpy memmove
13319 do :
13320   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13321 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13322 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13323   cat >>confdefs.h <<_ACEOF
13324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13325 _ACEOF
13326
13327 fi
13328 done
13329
13330
13331
13332 # get compiler flags right
13333 #
13334 #   We try to make the compiler work for C89-strict source.  Even if the
13335 #   C compiler is gcc and C89 flags are available, some system headers
13336 #   (e.g., Android Bionic libc) are broken in C89 mode.  We have to check
13337 #   whether the compilation finishes successfully.
13338 #
13339 #   Due to bugs in mingwrt 4.0.3 we don't use `-ansi' for MinGW.
13340 #
13341 #   To avoid zillions of
13342 #
13343 #     ISO C90 does not support 'long long'
13344 #
13345 #   warnings, we disable `-pedantic' for gcc version < 4.6.
13346 #
13347 if test "x$GCC" = xyes; then
13348   XX_CFLAGS="-Wall"
13349   case "$host" in
13350   *-*-mingw*)
13351     XX_ANSIFLAGS="-pedantic"
13352     ;;
13353   *-*-aix*)
13354     XX_ANSIFLAGS="-pedantic"
13355     ;;
13356   *)
13357     GCC_VERSION=`$CC -dumpversion`
13358     GCC_MAJOR=`echo "$GCC_VERSION" | sed 's/\([^.][^.]*\).*/\1/'`
13359     GCC_MINOR=`echo "$GCC_VERSION" | sed 's/[^.][^.]*.\([^.][^.]*\).*/\1/'`
13360
13361     XX_PEDANTIC=-pedantic
13362     if test $GCC_MAJOR -lt 4; then
13363       XX_PEDANTIC=
13364     else
13365       if test $GCC_MAJOR -eq 4 -a $GCC_MINOR -lt 6; then
13366         XX_PEDANTIC=
13367       fi
13368     fi
13369
13370     XX_ANSIFLAGS=""
13371     for a in $XX_PEDANTIC -ansi
13372     do
13373       { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc compiler flag ${a} to assure ANSI C works correctly" >&5
13374 $as_echo_n "checking gcc compiler flag ${a} to assure ANSI C works correctly... " >&6; }
13375       orig_CFLAGS="${CFLAGS}"
13376       CFLAGS="${CFLAGS} ${XX_ANSIFLAGS} ${a}"
13377       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h.  */
13379
13380
13381
13382 #include <stdio.h>
13383
13384
13385 int
13386 main ()
13387 {
13388
13389
13390             {
13391               puts( "" );
13392               return 0;
13393             }
13394
13395
13396   ;
13397   return 0;
13398 }
13399 _ACEOF
13400 if ac_fn_c_try_compile "$LINENO"; then :
13401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, adding to XX_ANSIFLAGS" >&5
13402 $as_echo "ok, adding to XX_ANSIFLAGS" >&6; }
13403          XX_ANSIFLAGS="${XX_ANSIFLAGS} ${a}"
13404
13405 else
13406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 $as_echo "no" >&6; }
13408 fi
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13410       CFLAGS="${orig_CFLAGS}"
13411     done
13412     ;;
13413   esac
13414 else
13415   case "$host" in
13416   *-dec-osf*)
13417     CFLAGS=
13418     XX_CFLAGS="-std1 -g3"
13419     XX_ANSIFLAGS=
13420     ;;
13421   *)
13422     XX_CFLAGS=
13423     XX_ANSIFLAGS=
13424     ;;
13425   esac
13426 fi
13427
13428
13429
13430
13431 # It is recommended that shared libraries hide symbols except those with
13432 # explicit __attribute__((visibility("default"))).
13433 #
13434 found_visibility_flag=no
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
13436 $as_echo_n "checking for -fvisibility=hidden compiler flag... " >&6; }
13437 orig_CFLAGS="${CFLAGS}"
13438 CFLAGS="${CFLAGS} -fvisibility=hidden"
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h.  */
13441
13442 int
13443 main ()
13444 {
13445
13446   ;
13447   return 0;
13448 }
13449 _ACEOF
13450 if ac_fn_c_try_link "$LINENO"; then :
13451   found_visibility_flag=yes
13452                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13453 $as_echo "yes" >&6; }
13454 else
13455   CFLAGS="${orig_CFLAGS}"
13456                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13458 fi
13459 rm -f core conftest.err conftest.$ac_objext \
13460     conftest$ac_exeext conftest.$ac_ext
13461
13462 if test "${found_visibility_flag}" = "no"; then
13463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -xldscope=hidden compiler flag" >&5
13464 $as_echo_n "checking for -xldscope=hidden compiler flag... " >&6; }
13465   orig_CFLAGS="${CFLAGS}"
13466   CFLAGS="${CFLAGS} -xldscope=hidden"
13467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h.  */
13469
13470 int
13471 main ()
13472 {
13473
13474   ;
13475   return 0;
13476 }
13477 _ACEOF
13478 if ac_fn_c_try_link "$LINENO"; then :
13479   found_visibility_flag=yes
13480                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13481 $as_echo "yes" >&6; }
13482 else
13483   CFLAGS="${orig_CFLAGS}"
13484                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485 $as_echo "no" >&6; }
13486 fi
13487 rm -f core conftest.err conftest.$ac_objext \
13488     conftest$ac_exeext conftest.$ac_ext
13489 fi
13490
13491 # All library tests below try `pkg-config' first.  If that fails, a function
13492 # from the library is tested in the traditional autoconf way (zlib, bzip2),
13493 # or a config script is called (libpng).
13494 #
13495 # The `xxx_reqpriv' variables are for the `Requires.private' field in
13496 # `freetype2.pc'.  The `xxx_libspriv' variables are for the `Libs.private'
13497 # field in `freetype2.pc' if pkg-config doesn't find a proper .pc file.
13498 #
13499 # The `xxx_libsstaticconf' variables are for the `freetype-config' script.
13500 #
13501 # Note that a call to PKG_CHECK_MODULES(XXX, ...) sets and creates the
13502 # output variables `XXX_CFLAGS' and `XXX_LIBS'.  In case one or both are set
13503 # for a library by the user, no entry for this library is added to
13504 # `Requires.private'.  Instead, it gets added to `Libs.private'
13505
13506
13507 # check for system zlib
13508
13509
13510 # Check whether --with-zlib was given.
13511 if test "${with_zlib+set}" = set; then :
13512   withval=$with_zlib;
13513 else
13514   with_zlib=auto
13515 fi
13516
13517
13518 have_zlib=no
13519 if test x"$with_zlib" = xyes -o x"$with_zlib" = xauto; then
13520   zlib_pkg="zlib"
13521   have_zlib_pkg=no
13522
13523   if test x"$ZLIB_CFLAGS" = x -a x"$ZLIB_LIBS" = x; then
13524     if test -n "$PKG_CONFIG" && \
13525     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13526   ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13527   ac_status=$?
13528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13529   test $ac_status = 0; }; then
13530   have_zlib_pkg=yes
13531 fi
13532   fi
13533
13534 pkg_failed=no
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
13536 $as_echo_n "checking for ZLIB... " >&6; }
13537
13538 if test -n "$ZLIB_CFLAGS"; then
13539     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
13540  elif test -n "$PKG_CONFIG"; then
13541     if test -n "$PKG_CONFIG" && \
13542     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13543   ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13544   ac_status=$?
13545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13546   test $ac_status = 0; }; then
13547   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "$zlib_pkg" 2>/dev/null`
13548                       test "x$?" != "x0" && pkg_failed=yes
13549 else
13550   pkg_failed=yes
13551 fi
13552  else
13553     pkg_failed=untried
13554 fi
13555 if test -n "$ZLIB_LIBS"; then
13556     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
13557  elif test -n "$PKG_CONFIG"; then
13558     if test -n "$PKG_CONFIG" && \
13559     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13560   ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13561   ac_status=$?
13562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13563   test $ac_status = 0; }; then
13564   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "$zlib_pkg" 2>/dev/null`
13565                       test "x$?" != "x0" && pkg_failed=yes
13566 else
13567   pkg_failed=yes
13568 fi
13569  else
13570     pkg_failed=untried
13571 fi
13572
13573
13574
13575 if test $pkg_failed = yes; then
13576         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577 $as_echo "no" >&6; }
13578
13579 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13580         _pkg_short_errors_supported=yes
13581 else
13582         _pkg_short_errors_supported=no
13583 fi
13584         if test $_pkg_short_errors_supported = yes; then
13585                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$zlib_pkg" 2>&1`
13586         else
13587                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$zlib_pkg" 2>&1`
13588         fi
13589         # Put the nasty error message in config.log where it belongs
13590         echo "$ZLIB_PKG_ERRORS" >&5
13591
13592         :
13593 elif test $pkg_failed = untried; then
13594         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13596         :
13597 else
13598         ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
13599         ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
13600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13601 $as_echo "yes" >&6; }
13602         have_zlib="yes (pkg-config)"
13603 fi
13604
13605   if test $have_zlib_pkg = yes; then
13606     # we have zlib.pc
13607     zlib_reqpriv="$zlib_pkg"
13608     zlib_libspriv=
13609     zlib_libsstaticconf=`$PKG_CONFIG --static --libs "$zlib_pkg"`
13610   else
13611     zlib_reqpriv=
13612
13613     if test "$have_zlib" != no; then
13614       # ZLIB_CFLAGS and ZLIB_LIBS are set by the user
13615       zlib_libspriv="$ZLIB_LIBS"
13616       zlib_libsstaticconf="$ZLIB_LIBS"
13617       have_zlib="yes (ZLIB_CFLAGS and ZLIB_LIBS)"
13618     else
13619       # fall back to standard autoconf test
13620       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
13621 $as_echo_n "checking for gzsetparams in -lz... " >&6; }
13622 if ${ac_cv_lib_z_gzsetparams+:} false; then :
13623   $as_echo_n "(cached) " >&6
13624 else
13625   ac_check_lib_save_LIBS=$LIBS
13626 LIBS="-lz  $LIBS"
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h.  */
13629
13630 /* Override any GCC internal prototype to avoid an error.
13631    Use char because int might match the return type of a GCC
13632    builtin and then its argument prototype would still apply.  */
13633 #ifdef __cplusplus
13634 extern "C"
13635 #endif
13636 char gzsetparams ();
13637 int
13638 main ()
13639 {
13640 return gzsetparams ();
13641   ;
13642   return 0;
13643 }
13644 _ACEOF
13645 if ac_fn_c_try_link "$LINENO"; then :
13646   ac_cv_lib_z_gzsetparams=yes
13647 else
13648   ac_cv_lib_z_gzsetparams=no
13649 fi
13650 rm -f core conftest.err conftest.$ac_objext \
13651     conftest$ac_exeext conftest.$ac_ext
13652 LIBS=$ac_check_lib_save_LIBS
13653 fi
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
13655 $as_echo "$ac_cv_lib_z_gzsetparams" >&6; }
13656 if test "x$ac_cv_lib_z_gzsetparams" = xyes; then :
13657   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13658 if test "x$ac_cv_header_zlib_h" = xyes; then :
13659   have_zlib="yes (autoconf test)"
13660                                      zlib_libspriv="-lz"
13661                                      zlib_libsstaticconf="$zlib_libspriv"
13662                                      ZLIB_LIBS="$zlib_libspriv"
13663 fi
13664
13665
13666 fi
13667
13668     fi
13669   fi
13670 fi
13671
13672 if test x"$with_zlib" = xyes -a "$have_zlib" = no; then
13673   as_fn_error $? "external zlib support requested but library not found" "$LINENO" 5
13674 fi
13675
13676
13677 # check for system libbz2
13678
13679
13680 # Check whether --with-bzip2 was given.
13681 if test "${with_bzip2+set}" = set; then :
13682   withval=$with_bzip2;
13683 else
13684   with_bzip2=auto
13685 fi
13686
13687
13688 have_bzip2=no
13689 if test x"$with_bzip2" = xyes -o x"$with_bzip2" = xauto; then
13690   bzip2_pkg="bzip2"
13691   have_bzip2_pkg=no
13692
13693   if test x"$BZIP2_CFLAGS" = x -a x"$BZIP2_LIBS" = x; then
13694     if test -n "$PKG_CONFIG" && \
13695     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
13696   ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
13697   ac_status=$?
13698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13699   test $ac_status = 0; }; then
13700   have_bzip2_pkg=yes
13701 fi
13702   fi
13703
13704 pkg_failed=no
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZIP2" >&5
13706 $as_echo_n "checking for BZIP2... " >&6; }
13707
13708 if test -n "$BZIP2_CFLAGS"; then
13709     pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS"
13710  elif test -n "$PKG_CONFIG"; then
13711     if test -n "$PKG_CONFIG" && \
13712     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
13713   ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
13714   ac_status=$?
13715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13716   test $ac_status = 0; }; then
13717   pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "$bzip2_pkg" 2>/dev/null`
13718                       test "x$?" != "x0" && pkg_failed=yes
13719 else
13720   pkg_failed=yes
13721 fi
13722  else
13723     pkg_failed=untried
13724 fi
13725 if test -n "$BZIP2_LIBS"; then
13726     pkg_cv_BZIP2_LIBS="$BZIP2_LIBS"
13727  elif test -n "$PKG_CONFIG"; then
13728     if test -n "$PKG_CONFIG" && \
13729     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
13730   ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
13731   ac_status=$?
13732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13733   test $ac_status = 0; }; then
13734   pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "$bzip2_pkg" 2>/dev/null`
13735                       test "x$?" != "x0" && pkg_failed=yes
13736 else
13737   pkg_failed=yes
13738 fi
13739  else
13740     pkg_failed=untried
13741 fi
13742
13743
13744
13745 if test $pkg_failed = yes; then
13746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13747 $as_echo "no" >&6; }
13748
13749 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13750         _pkg_short_errors_supported=yes
13751 else
13752         _pkg_short_errors_supported=no
13753 fi
13754         if test $_pkg_short_errors_supported = yes; then
13755                 BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
13756         else
13757                 BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
13758         fi
13759         # Put the nasty error message in config.log where it belongs
13760         echo "$BZIP2_PKG_ERRORS" >&5
13761
13762         :
13763 elif test $pkg_failed = untried; then
13764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13766         :
13767 else
13768         BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
13769         BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
13770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13771 $as_echo "yes" >&6; }
13772         have_bzip2="yes (pkg-config)"
13773 fi
13774
13775   if test $have_bzip2_pkg = yes; then
13776     # we have bzip2.pc
13777     bzip2_reqpriv="$bzip2_pkg"
13778     bzip2_libspriv=
13779     bzip2_libsstaticconf=`$PKG_CONFIG --static --libs "$bzip2_pkg"`
13780   else
13781     bzip2_reqpriv=
13782
13783     if test "$have_bzip2" != no; then
13784       # BZIP2_CFLAGS and BZIP2_LIBS are set by the user
13785       bzip2_libspriv="$BZIP2_LIBS"
13786       bzip2_libsstaticconf="$BZIP2_LIBS"
13787       have_bzip2="yes (BZIP2_CFLAGS and BZIP2_LIBS)"
13788     else
13789       # fall back to standard autoconf test
13790       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
13791 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
13792 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
13793   $as_echo_n "(cached) " >&6
13794 else
13795   ac_check_lib_save_LIBS=$LIBS
13796 LIBS="-lbz2  $LIBS"
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h.  */
13799
13800 /* Override any GCC internal prototype to avoid an error.
13801    Use char because int might match the return type of a GCC
13802    builtin and then its argument prototype would still apply.  */
13803 #ifdef __cplusplus
13804 extern "C"
13805 #endif
13806 char BZ2_bzDecompress ();
13807 int
13808 main ()
13809 {
13810 return BZ2_bzDecompress ();
13811   ;
13812   return 0;
13813 }
13814 _ACEOF
13815 if ac_fn_c_try_link "$LINENO"; then :
13816   ac_cv_lib_bz2_BZ2_bzDecompress=yes
13817 else
13818   ac_cv_lib_bz2_BZ2_bzDecompress=no
13819 fi
13820 rm -f core conftest.err conftest.$ac_objext \
13821     conftest$ac_exeext conftest.$ac_ext
13822 LIBS=$ac_check_lib_save_LIBS
13823 fi
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
13825 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
13826 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
13827   ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
13828 if test "x$ac_cv_header_bzlib_h" = xyes; then :
13829   have_bzip2="yes (autoconf test)"
13830                                      bzip2_libspriv="-lbz2"
13831                                      bzip2_libsstaticconf="$bzip2_libspriv"
13832                                      BZIP2_LIBS="$bzip2_libspriv"
13833 fi
13834
13835
13836 fi
13837
13838     fi
13839   fi
13840 fi
13841
13842 if test x"$with_bzip2" = xyes -a "$have_bzip2" = no; then
13843   as_fn_error $? "bzip2 support requested but library not found" "$LINENO" 5
13844 fi
13845
13846
13847 # check for system libpng
13848
13849
13850 # Check whether --with-png was given.
13851 if test "${with_png+set}" = set; then :
13852   withval=$with_png;
13853 else
13854   with_png=auto
13855 fi
13856
13857
13858 have_libpng=no
13859 if test x"$with_png" = xyes -o x"$with_png" = xauto; then
13860   libpng_pkg="libpng"
13861   have_libpng_pkg=no
13862
13863   if test x"$LIBPNG_CFLAGS" = x -a x"$LIBPNG_LIBS" = x; then
13864     if test -n "$PKG_CONFIG" && \
13865     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
13866   ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
13867   ac_status=$?
13868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13869   test $ac_status = 0; }; then
13870   have_libpng_pkg=yes
13871 fi
13872   fi
13873
13874 pkg_failed=no
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
13876 $as_echo_n "checking for LIBPNG... " >&6; }
13877
13878 if test -n "$LIBPNG_CFLAGS"; then
13879     pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
13880  elif test -n "$PKG_CONFIG"; then
13881     if test -n "$PKG_CONFIG" && \
13882     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
13883   ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
13884   ac_status=$?
13885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13886   test $ac_status = 0; }; then
13887   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "$libpng_pkg" 2>/dev/null`
13888                       test "x$?" != "x0" && pkg_failed=yes
13889 else
13890   pkg_failed=yes
13891 fi
13892  else
13893     pkg_failed=untried
13894 fi
13895 if test -n "$LIBPNG_LIBS"; then
13896     pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
13897  elif test -n "$PKG_CONFIG"; then
13898     if test -n "$PKG_CONFIG" && \
13899     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
13900   ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
13901   ac_status=$?
13902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13903   test $ac_status = 0; }; then
13904   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "$libpng_pkg" 2>/dev/null`
13905                       test "x$?" != "x0" && pkg_failed=yes
13906 else
13907   pkg_failed=yes
13908 fi
13909  else
13910     pkg_failed=untried
13911 fi
13912
13913
13914
13915 if test $pkg_failed = yes; then
13916         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 $as_echo "no" >&6; }
13918
13919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13920         _pkg_short_errors_supported=yes
13921 else
13922         _pkg_short_errors_supported=no
13923 fi
13924         if test $_pkg_short_errors_supported = yes; then
13925                 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$libpng_pkg" 2>&1`
13926         else
13927                 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$libpng_pkg" 2>&1`
13928         fi
13929         # Put the nasty error message in config.log where it belongs
13930         echo "$LIBPNG_PKG_ERRORS" >&5
13931
13932         :
13933 elif test $pkg_failed = untried; then
13934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13935 $as_echo "no" >&6; }
13936         :
13937 else
13938         LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
13939         LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
13940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13941 $as_echo "yes" >&6; }
13942         have_libpng="yes (pkg-config)"
13943 fi
13944
13945   if test $have_libpng_pkg = yes; then
13946     # we have libpng.pc
13947     libpng_reqpriv="$libpng_pkg"
13948     libpng_libspriv=
13949     libpng_libsstaticconf=`$PKG_CONFIG --static --libs "$libpng_pkg"`
13950   else
13951     libpng_reqpriv=
13952
13953     if test "$have_libpng" != no; then
13954       # LIBPNG_CFLAGS and LIBPNG_LIBS are set by the user
13955       libpng_libspriv="$LIBPNG_LIBS"
13956       libpng_libsstaticconf="$LIBPNG_LIBS"
13957       have_libpng="yes (LIBPNG_CFLAGS and LIBPNG_LIBS)"
13958     else
13959       # fall back to config script
13960       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
13961 $as_echo_n "checking for libpng-config... " >&6; }
13962       if which libpng-config > /dev/null 2>&1; then
13963         LIBPNG_CFLAGS=`libpng-config --cflags`
13964         LIBPNG_LIBS=`libpng-config --ldflags`
13965         libpng_libspriv=`libpng-config --static --ldflags`
13966         libpng_libsstaticconf="$libpng_libspriv"
13967         have_libpng="yes (libpng-config)"
13968         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13969 $as_echo "yes" >&6; }
13970       else
13971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13972 $as_echo "no" >&6; }
13973       fi
13974     fi
13975   fi
13976 fi
13977
13978 if test x"$with_png" = xyes -a "$have_libpng" = no; then
13979   as_fn_error $? "libpng support requested but library not found" "$LINENO" 5
13980 fi
13981
13982
13983 # check for system libharfbuzz
13984
13985
13986 # Check whether --with-harfbuzz was given.
13987 if test "${with_harfbuzz+set}" = set; then :
13988   withval=$with_harfbuzz;
13989 else
13990   with_harfbuzz=auto
13991 fi
13992
13993
13994 have_harfbuzz=no
13995 if test x"$with_harfbuzz" = xyes -o x"$with_harfbuzz" = xauto; then
13996   harfbuzz_pkg="harfbuzz >= 1.8.0"
13997   have_harfbuzz_pkg=no
13998
13999   if test x"$HARFBUZZ_CFLAGS" = x -a x"$HARFBUZZ_LIBS" = x; then
14000     if test -n "$PKG_CONFIG" && \
14001     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14002   ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14003   ac_status=$?
14004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14005   test $ac_status = 0; }; then
14006   have_harfbuzz_pkg=yes
14007 fi
14008   fi
14009
14010 pkg_failed=no
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HARFBUZZ" >&5
14012 $as_echo_n "checking for HARFBUZZ... " >&6; }
14013
14014 if test -n "$HARFBUZZ_CFLAGS"; then
14015     pkg_cv_HARFBUZZ_CFLAGS="$HARFBUZZ_CFLAGS"
14016  elif test -n "$PKG_CONFIG"; then
14017     if test -n "$PKG_CONFIG" && \
14018     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14019   ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14020   ac_status=$?
14021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14022   test $ac_status = 0; }; then
14023   pkg_cv_HARFBUZZ_CFLAGS=`$PKG_CONFIG --cflags "$harfbuzz_pkg" 2>/dev/null`
14024                       test "x$?" != "x0" && pkg_failed=yes
14025 else
14026   pkg_failed=yes
14027 fi
14028  else
14029     pkg_failed=untried
14030 fi
14031 if test -n "$HARFBUZZ_LIBS"; then
14032     pkg_cv_HARFBUZZ_LIBS="$HARFBUZZ_LIBS"
14033  elif test -n "$PKG_CONFIG"; then
14034     if test -n "$PKG_CONFIG" && \
14035     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14036   ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14037   ac_status=$?
14038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14039   test $ac_status = 0; }; then
14040   pkg_cv_HARFBUZZ_LIBS=`$PKG_CONFIG --libs "$harfbuzz_pkg" 2>/dev/null`
14041                       test "x$?" != "x0" && pkg_failed=yes
14042 else
14043   pkg_failed=yes
14044 fi
14045  else
14046     pkg_failed=untried
14047 fi
14048
14049
14050
14051 if test $pkg_failed = yes; then
14052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14054
14055 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14056         _pkg_short_errors_supported=yes
14057 else
14058         _pkg_short_errors_supported=no
14059 fi
14060         if test $_pkg_short_errors_supported = yes; then
14061                 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
14062         else
14063                 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
14064         fi
14065         # Put the nasty error message in config.log where it belongs
14066         echo "$HARFBUZZ_PKG_ERRORS" >&5
14067
14068         :
14069 elif test $pkg_failed = untried; then
14070         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071 $as_echo "no" >&6; }
14072         :
14073 else
14074         HARFBUZZ_CFLAGS=$pkg_cv_HARFBUZZ_CFLAGS
14075         HARFBUZZ_LIBS=$pkg_cv_HARFBUZZ_LIBS
14076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14077 $as_echo "yes" >&6; }
14078         have_harfbuzz="yes (pkg-config)"
14079 fi
14080
14081   if test $have_harfbuzz_pkg = yes; then
14082     # we have harfbuzz.pc
14083     harfbuzz_reqpriv="$harfbuzz_pkg"
14084     harfbuzz_libspriv=
14085     harfbuzz_libsstaticconf=`$PKG_CONFIG --static --libs "$harfbuzz_pkg"`
14086   else
14087     harfbuzz_reqpriv=
14088
14089     if test "$have_harfbuzz" != no; then
14090       # HARFBUZZ_CFLAGS and HARFBUZZ_LIBS are set by the user
14091       harfbuzz_libspriv="$HARFBUZZ_LIBS"
14092       harfbuzz_libsstaticconf="$HARFBUZZ_LIBS"
14093       have_harfbuzz="yes (HARFBUZZ_CFLAGS and HARFBUZZ_LIBS)"
14094     else
14095       # since HarfBuzz is quite a new library we don't fall back to a
14096       # different test; additionally, it has too many dependencies
14097       :
14098     fi
14099   fi
14100 fi
14101
14102 if test x"$with_harfbuzz" = xyes -a "$have_harfbuzz" = no; then
14103   as_fn_error $? "harfbuzz support requested but library not found" "$LINENO" 5
14104 fi
14105
14106
14107 # check for system libbrotlidec
14108
14109
14110 # Check whether --with-brotli was given.
14111 if test "${with_brotli+set}" = set; then :
14112   withval=$with_brotli;
14113 else
14114   with_brotli=auto
14115 fi
14116
14117
14118 have_brotli=no
14119 if test x"$with_brotli" = xyes -o x"$with_brotli" = xauto; then
14120   brotli_pkg="libbrotlidec"
14121   have_brotli_pkg=no
14122
14123   if test x"$BROTLI_CFLAGS" = x -a x"$BROTLI_LIBS" = x; then
14124     if test -n "$PKG_CONFIG" && \
14125     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14126   ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14127   ac_status=$?
14128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14129   test $ac_status = 0; }; then
14130   have_brotli_pkg=yes
14131 fi
14132   fi
14133
14134 pkg_failed=no
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BROTLI" >&5
14136 $as_echo_n "checking for BROTLI... " >&6; }
14137
14138 if test -n "$BROTLI_CFLAGS"; then
14139     pkg_cv_BROTLI_CFLAGS="$BROTLI_CFLAGS"
14140  elif test -n "$PKG_CONFIG"; then
14141     if test -n "$PKG_CONFIG" && \
14142     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14143   ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14144   ac_status=$?
14145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14146   test $ac_status = 0; }; then
14147   pkg_cv_BROTLI_CFLAGS=`$PKG_CONFIG --cflags "$brotli_pkg" 2>/dev/null`
14148                       test "x$?" != "x0" && pkg_failed=yes
14149 else
14150   pkg_failed=yes
14151 fi
14152  else
14153     pkg_failed=untried
14154 fi
14155 if test -n "$BROTLI_LIBS"; then
14156     pkg_cv_BROTLI_LIBS="$BROTLI_LIBS"
14157  elif test -n "$PKG_CONFIG"; then
14158     if test -n "$PKG_CONFIG" && \
14159     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14160   ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14161   ac_status=$?
14162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14163   test $ac_status = 0; }; then
14164   pkg_cv_BROTLI_LIBS=`$PKG_CONFIG --libs "$brotli_pkg" 2>/dev/null`
14165                       test "x$?" != "x0" && pkg_failed=yes
14166 else
14167   pkg_failed=yes
14168 fi
14169  else
14170     pkg_failed=untried
14171 fi
14172
14173
14174
14175 if test $pkg_failed = yes; then
14176         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177 $as_echo "no" >&6; }
14178
14179 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14180         _pkg_short_errors_supported=yes
14181 else
14182         _pkg_short_errors_supported=no
14183 fi
14184         if test $_pkg_short_errors_supported = yes; then
14185                 BROTLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$brotli_pkg" 2>&1`
14186         else
14187                 BROTLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$brotli_pkg" 2>&1`
14188         fi
14189         # Put the nasty error message in config.log where it belongs
14190         echo "$BROTLI_PKG_ERRORS" >&5
14191
14192         :
14193 elif test $pkg_failed = untried; then
14194         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14195 $as_echo "no" >&6; }
14196         :
14197 else
14198         BROTLI_CFLAGS=$pkg_cv_BROTLI_CFLAGS
14199         BROTLI_LIBS=$pkg_cv_BROTLI_LIBS
14200         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14201 $as_echo "yes" >&6; }
14202         have_brotli="yes (pkg-config)"
14203 fi
14204
14205   if test $have_brotli_pkg = yes; then
14206     # we have libbrotlidec.pc
14207     brotli_reqpriv="$brotli_pkg"
14208     brotli_libspriv=
14209     brotli_libsstaticconf=`$PKG_CONFIG --static --libs "$brotli_pkg"`
14210   else
14211     brotli_reqpriv=
14212
14213     if test "$have_brotli" != no; then
14214       # BROTLI_CFLAGS and BROTLI_LIBS are set by the user
14215       brotli_libspriv="$BROTLI_LIBS"
14216       brotli_libsstaticconf="$BROTLI_LIBS"
14217       have_brotli="yes (BROTLI_CFLAGS and BROTLI_LIBS)"
14218     else
14219       # since Brotli is quite a new library we don't fall back to a
14220       # different test
14221       :
14222     fi
14223   fi
14224 fi
14225
14226 if test x"$with_brotli" = xyes -a "$have_brotli" = no; then
14227   as_fn_error $? "brotli support requested but library not found" "$LINENO" 5
14228 fi
14229
14230
14231 # check for librt
14232 #
14233 # We need `clock_gettime' for the `ftbench' demo program.
14234 #
14235 # The code is modeled after gnulib's file `clock_time.m4', ignoring
14236 # very old Solaris systems.
14237
14238 LIB_CLOCK_GETTIME=
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14240 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14241 if ${ac_cv_search_clock_gettime+:} false; then :
14242   $as_echo_n "(cached) " >&6
14243 else
14244   ac_func_search_save_LIBS=$LIBS
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h.  */
14247
14248 /* Override any GCC internal prototype to avoid an error.
14249    Use char because int might match the return type of a GCC
14250    builtin and then its argument prototype would still apply.  */
14251 #ifdef __cplusplus
14252 extern "C"
14253 #endif
14254 char clock_gettime ();
14255 int
14256 main ()
14257 {
14258 return clock_gettime ();
14259   ;
14260   return 0;
14261 }
14262 _ACEOF
14263 for ac_lib in '' rt; do
14264   if test -z "$ac_lib"; then
14265     ac_res="none required"
14266   else
14267     ac_res=-l$ac_lib
14268     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14269   fi
14270   if ac_fn_c_try_link "$LINENO"; then :
14271   ac_cv_search_clock_gettime=$ac_res
14272 fi
14273 rm -f core conftest.err conftest.$ac_objext \
14274     conftest$ac_exeext
14275   if ${ac_cv_search_clock_gettime+:} false; then :
14276   break
14277 fi
14278 done
14279 if ${ac_cv_search_clock_gettime+:} false; then :
14280
14281 else
14282   ac_cv_search_clock_gettime=no
14283 fi
14284 rm conftest.$ac_ext
14285 LIBS=$ac_func_search_save_LIBS
14286 fi
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14288 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14289 ac_res=$ac_cv_search_clock_gettime
14290 if test "$ac_res" != no; then :
14291   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14292   test "$ac_cv_search_clock_gettime" = "none required" \
14293                 || LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
14294 fi
14295
14296
14297
14298
14299 # Some options handling SDKs/archs in CFLAGS should be copied
14300 # to LDFLAGS. Apple TechNote 2137 recommends to include these
14301 # options in CFLAGS but not in LDFLAGS.
14302
14303 save_config_args=$*
14304 set dummy ${CFLAGS}
14305 i=1
14306 while test $i -le $#
14307 do
14308   c=$1
14309
14310   case "${c}" in
14311   -isysroot|-arch) # options taking 1 argument
14312     a=$2
14313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
14314 $as_echo_n "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
14315     if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
14316     then
14317       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14318 $as_echo "yes" >&6; }
14319     else
14320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
14321 $as_echo "no, copy to LDFLAGS" >&6; }
14322       LDFLAGS="${LDFLAGS} ${c} ${a}"
14323     fi
14324     shift 1
14325     ;;
14326   -m32|-m64|-march=*|-mcpu=*) # options taking no argument
14327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c}" >&5
14328 $as_echo_n "checking whether CFLAGS and LDFLAGS share ${c}... " >&6; }
14329     if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
14330     then
14331       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14332 $as_echo "yes" >&6; }
14333     else
14334       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
14335 $as_echo "no, copy to LDFLAGS" >&6; }
14336       LDFLAGS="${LDFLAGS} ${c}"
14337     fi
14338     ;;
14339   # *)
14340   #   AC_MSG_RESULT([${c} is not copied to LDFLAGS])
14341   #   ;;
14342   esac
14343
14344   shift 1
14345 done
14346 set ${save_config_args}
14347
14348
14349 # Whether to use Mac OS resource-based fonts.
14350
14351 ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
14352
14353
14354 # Check whether --with-old-mac-fonts was given.
14355 if test "${with_old_mac_fonts+set}" = set; then :
14356   withval=$with_old_mac_fonts;
14357 fi
14358
14359 if test x$with_old_mac_fonts = xyes; then
14360   orig_LDFLAGS="${LDFLAGS}"
14361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking CoreServices & ApplicationServices of Mac OS X" >&5
14362 $as_echo_n "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
14363   ft2_extra_libs="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
14364   LDFLAGS="$LDFLAGS $ft2_extra_libs"
14365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h.  */
14367
14368
14369
14370 #if defined(__GNUC__) && defined(__APPLE_CC__)
14371 # include <CoreServices/CoreServices.h>
14372 # include <ApplicationServices/ApplicationServices.h>
14373 #else
14374 # include <ConditionalMacros.h>
14375 # include <Files.h>
14376 #endif
14377
14378
14379 int
14380 main ()
14381 {
14382
14383
14384         short res = 0;
14385
14386
14387         UseResFile( res );
14388
14389
14390   ;
14391   return 0;
14392 }
14393 _ACEOF
14394 if ac_fn_c_try_link "$LINENO"; then :
14395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14396 $as_echo "ok" >&6; }
14397      ftmac_c='ftmac.c'
14398      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS_INLINE macro is ANSI compatible" >&5
14399 $as_echo_n "checking whether OS_INLINE macro is ANSI compatible... " >&6; }
14400      orig_CFLAGS="$CFLAGS -DFT_MACINTOSH"
14401      CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
14402      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h.  */
14404
14405
14406
14407 #if defined(__GNUC__) && defined(__APPLE_CC__)
14408 # include <CoreServices/CoreServices.h>
14409 # include <ApplicationServices/ApplicationServices.h>
14410 #else
14411 # include <ConditionalMacros.h>
14412 # include <Files.h>
14413 #endif
14414
14415
14416 int
14417 main ()
14418 {
14419
14420
14421            /* OSHostByteOrder() is typed as OS_INLINE */
14422            int32_t  os_byte_order = OSHostByteOrder();
14423
14424
14425            if ( OSBigEndian != os_byte_order )
14426              return 1;
14427
14428
14429   ;
14430   return 0;
14431 }
14432 _ACEOF
14433 if ac_fn_c_try_compile "$LINENO"; then :
14434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14435 $as_echo "ok" >&6; }
14436         CFLAGS="$orig_CFLAGS"
14437         CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
14438
14439 else
14440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, ANSI incompatible" >&5
14441 $as_echo "no, ANSI incompatible" >&6; }
14442         CFLAGS="$orig_CFLAGS"
14443
14444 fi
14445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446      { $as_echo "$as_me:${as_lineno-$LINENO}: checking type ResourceIndex" >&5
14447 $as_echo_n "checking type ResourceIndex... " >&6; }
14448      orig_CFLAGS="$CFLAGS"
14449      CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
14450      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h.  */
14452
14453
14454
14455 #if defined(__GNUC__) && defined(__APPLE_CC__)
14456 # include <CoreServices/CoreServices.h>
14457 # include <ApplicationServices/ApplicationServices.h>
14458 #else
14459 # include <ConditionalMacros.h>
14460 # include <Files.h>
14461 # include <Resources.h>
14462 #endif
14463
14464
14465 int
14466 main ()
14467 {
14468
14469
14470            ResourceIndex i = 0;
14471            return i;
14472
14473
14474   ;
14475   return 0;
14476 }
14477 _ACEOF
14478 if ac_fn_c_try_compile "$LINENO"; then :
14479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14480 $as_echo "ok" >&6; }
14481         CFLAGS="$orig_CFLAGS"
14482         CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
14483
14484 else
14485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14486 $as_echo "no" >&6; }
14487         CFLAGS="$orig_CFLAGS"
14488         CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
14489
14490 fi
14491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 else
14493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14494 $as_echo "not found" >&6; }
14495      ft2_extra_libs=""
14496      LDFLAGS="${orig_LDFLAGS}"
14497      CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
14498 fi
14499 rm -f core conftest.err conftest.$ac_objext \
14500     conftest$ac_exeext conftest.$ac_ext
14501 else
14502   case x$host_os in
14503   xdarwin*)
14504         CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
14505     ;;
14506   *)
14507     ;;
14508   esac
14509 fi
14510
14511
14512 # Whether to use FileManager, which is deprecated since Mac OS X 10.4.
14513
14514
14515 # Check whether --with-fsspec was given.
14516 if test "${with_fsspec+set}" = set; then :
14517   withval=$with_fsspec;
14518 fi
14519
14520 if test x$with_fsspec = xno; then
14521   CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
14522 elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
14523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSSpec-based FileManager" >&5
14524 $as_echo_n "checking FSSpec-based FileManager... " >&6; }
14525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h.  */
14527
14528
14529
14530 #if defined(__GNUC__) && defined(__APPLE_CC__)
14531 # include <CoreServices/CoreServices.h>
14532 # include <ApplicationServices/ApplicationServices.h>
14533 #else
14534 # include <ConditionalMacros.h>
14535 # include <Files.h>
14536 #endif
14537
14538
14539 int
14540 main ()
14541 {
14542
14543
14544         FCBPBPtr          paramBlock;
14545         short             vRefNum;
14546         long              dirID;
14547         ConstStr255Param  fileName;
14548         FSSpec*           spec;
14549
14550
14551         /* FSSpec functions: deprecated since Mac OS X 10.4 */
14552         PBGetFCBInfoSync( paramBlock );
14553         FSMakeFSSpec( vRefNum, dirID, fileName, spec );
14554
14555
14556   ;
14557   return 0;
14558 }
14559 _ACEOF
14560 if ac_fn_c_try_link "$LINENO"; then :
14561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14562 $as_echo "ok" >&6; }
14563      CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
14564 else
14565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14566 $as_echo "not found" >&6; }
14567      CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
14568 fi
14569 rm -f core conftest.err conftest.$ac_objext \
14570     conftest$ac_exeext conftest.$ac_ext
14571 fi
14572
14573
14574 # Whether to use FileManager in Carbon since MacOS 9.x.
14575
14576
14577 # Check whether --with-fsref was given.
14578 if test "${with_fsref+set}" = set; then :
14579   withval=$with_fsref;
14580 fi
14581
14582 if test x$with_fsref = xno; then
14583   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14584 *** WARNING
14585     FreeType2 built without FSRef API cannot load
14586     data-fork fonts on MacOS, except of XXX.dfont.
14587     " >&5
14588 $as_echo "$as_me: WARNING:
14589 *** WARNING
14590     FreeType2 built without FSRef API cannot load
14591     data-fork fonts on MacOS, except of XXX.dfont.
14592     " >&2;}
14593   CFLAGS="$CFLAGS -DHAVE_FSREF=0"
14594 elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
14595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSRef-based FileManager" >&5
14596 $as_echo_n "checking FSRef-based FileManager... " >&6; }
14597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h.  */
14599
14600
14601
14602 #if defined(__GNUC__) && defined(__APPLE_CC__)
14603 # include <CoreServices/CoreServices.h>
14604 # include <ApplicationServices/ApplicationServices.h>
14605 #else
14606 # include <ConditionalMacros.h>
14607 # include <Files.h>
14608 #endif
14609
14610
14611 int
14612 main ()
14613 {
14614
14615
14616         short                vRefNum;
14617         long                 dirID;
14618         ConstStr255Param     fileName;
14619
14620         Boolean*             isDirectory;
14621         UInt8*               path;
14622         SInt16               desiredRefNum;
14623         SInt16*              iterator;
14624         SInt16*              actualRefNum;
14625         HFSUniStr255*        outForkName;
14626         FSVolumeRefNum       volume;
14627         FSCatalogInfoBitmap  whichInfo;
14628         FSCatalogInfo*       catalogInfo;
14629         FSForkInfo*          forkInfo;
14630         FSRef*               ref;
14631
14632 #if HAVE_FSSPEC
14633         FSSpec*              spec;
14634 #endif
14635
14636         /* FSRef functions: no need to check? */
14637         FSGetForkCBInfo( desiredRefNum, volume, iterator,
14638                          actualRefNum, forkInfo, ref,
14639                          outForkName );
14640         FSPathMakeRef( path, ref, isDirectory );
14641
14642 #if HAVE_FSSPEC
14643         FSpMakeFSRef ( spec, ref );
14644         FSGetCatalogInfo( ref, whichInfo, catalogInfo,
14645                           outForkName, spec, ref );
14646 #endif
14647
14648   ;
14649   return 0;
14650 }
14651 _ACEOF
14652 if ac_fn_c_try_link "$LINENO"; then :
14653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14654 $as_echo "ok" >&6; }
14655      CFLAGS="$CFLAGS -DHAVE_FSREF=1"
14656 else
14657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14658 $as_echo "not found" >&6; }
14659      CFLAGS="$CFLAGS -DHAVE_FSREF=0"
14660 fi
14661 rm -f core conftest.err conftest.$ac_objext \
14662     conftest$ac_exeext conftest.$ac_ext
14663 fi
14664
14665
14666 # Whether to use QuickDraw API in ToolBox, which is deprecated since
14667 # Mac OS X 10.4.
14668
14669
14670 # Check whether --with-quickdraw-toolbox was given.
14671 if test "${with_quickdraw_toolbox+set}" = set; then :
14672   withval=$with_quickdraw_toolbox;
14673 fi
14674
14675 if test x$with_quickdraw_toolbox = xno; then
14676   CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
14677 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
14678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in ToolBox" >&5
14679 $as_echo_n "checking QuickDraw FontManager functions in ToolBox... " >&6; }
14680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h.  */
14682
14683
14684
14685 #if defined(__GNUC__) && defined(__APPLE_CC__)
14686 # include <CoreServices/CoreServices.h>
14687 # include <ApplicationServices/ApplicationServices.h>
14688 #else
14689 # include <ConditionalMacros.h>
14690 # include <Fonts.h>
14691 #endif
14692
14693
14694 int
14695 main ()
14696 {
14697
14698
14699         Str255     familyName;
14700         SInt16     familyID   = 0;
14701         FMInput*   fmIn       = NULL;
14702         FMOutput*  fmOut      = NULL;
14703
14704
14705         GetFontName( familyID, familyName );
14706         GetFNum( familyName, &familyID );
14707         fmOut = FMSwapFont( fmIn );
14708
14709
14710   ;
14711   return 0;
14712 }
14713 _ACEOF
14714 if ac_fn_c_try_link "$LINENO"; then :
14715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14716 $as_echo "ok" >&6; }
14717      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
14718 else
14719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14720 $as_echo "not found" >&6; }
14721      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
14722 fi
14723 rm -f core conftest.err conftest.$ac_objext \
14724     conftest$ac_exeext conftest.$ac_ext
14725 fi
14726
14727
14728 # Whether to use QuickDraw API in Carbon, which is deprecated since
14729 # Mac OS X 10.4.
14730
14731
14732 # Check whether --with-quickdraw-carbon was given.
14733 if test "${with_quickdraw_carbon+set}" = set; then :
14734   withval=$with_quickdraw_carbon;
14735 fi
14736
14737 if test x$with_quickdraw_carbon = xno; then
14738   CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
14739 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
14740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in Carbon" >&5
14741 $as_echo_n "checking QuickDraw FontManager functions in Carbon... " >&6; }
14742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h.  */
14744
14745
14746
14747 #if defined(__GNUC__) && defined(__APPLE_CC__)
14748 # include <CoreServices/CoreServices.h>
14749 # include <ApplicationServices/ApplicationServices.h>
14750 #else
14751 # include <ConditionalMacros.h>
14752 # include <Fonts.h>
14753 #endif
14754
14755
14756 int
14757 main ()
14758 {
14759
14760
14761         FMFontFamilyIterator          famIter;
14762         FMFontFamily                  family;
14763         Str255                        famNameStr;
14764         FMFontFamilyInstanceIterator  instIter;
14765         FMFontStyle                   style;
14766         FMFontSize                    size;
14767         FMFont                        font;
14768         FSSpec*                       pathSpec;
14769
14770
14771         FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
14772                                     &famIter );
14773         FMGetNextFontFamily( &famIter, &family );
14774         FMGetFontFamilyName( family, famNameStr );
14775         FMCreateFontFamilyInstanceIterator( family, &instIter );
14776         FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
14777         FMDisposeFontFamilyInstanceIterator( &instIter );
14778         FMDisposeFontFamilyIterator( &famIter );
14779         FMGetFontContainer( font, pathSpec );
14780
14781
14782   ;
14783   return 0;
14784 }
14785 _ACEOF
14786 if ac_fn_c_try_link "$LINENO"; then :
14787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14788 $as_echo "ok" >&6; }
14789      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
14790 else
14791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14792 $as_echo "not found" >&6; }
14793      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
14794 fi
14795 rm -f core conftest.err conftest.$ac_objext \
14796     conftest$ac_exeext conftest.$ac_ext
14797 fi
14798
14799
14800 # Whether to use AppleTypeService since Mac OS X.
14801
14802
14803 # Check whether --with-ats was given.
14804 if test "${with_ats+set}" = set; then :
14805   withval=$with_ats;
14806 fi
14807
14808 if test x$with_ats = xno; then
14809   CFLAGS="$CFLAGS -DHAVE_ATS=0"
14810 elif test x$with_old_mac_fonts = xyes -a x$with_ats != x; then
14811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking AppleTypeService functions" >&5
14812 $as_echo_n "checking AppleTypeService functions... " >&6; }
14813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h.  */
14815
14816
14817
14818 #if defined(__GNUC__) && defined(__APPLE_CC__)
14819 # include <CoreServices/CoreServices.h>
14820 # include <ApplicationServices/ApplicationServices.h>
14821 #else
14822 # include <ConditionalMacros.h>
14823 # include <Files.h>
14824 #endif
14825
14826
14827 int
14828 main ()
14829 {
14830
14831
14832         FSSpec*  pathSpec;
14833
14834
14835         ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
14836 #if HAVE_FSSPEC
14837         ATSFontGetFileSpecification( 0, pathSpec );
14838 #endif
14839
14840
14841   ;
14842   return 0;
14843 }
14844 _ACEOF
14845 if ac_fn_c_try_link "$LINENO"; then :
14846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14847 $as_echo "ok" >&6; }
14848      CFLAGS="$CFLAGS -DHAVE_ATS=1"
14849 else
14850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14851 $as_echo "not found" >&6; }
14852      CFLAGS="$CFLAGS -DHAVE_ATS=0"
14853 fi
14854 rm -f core conftest.err conftest.$ac_objext \
14855     conftest$ac_exeext conftest.$ac_ext
14856 fi
14857
14858 case "$CFLAGS" in
14859   *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
14860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14861 *** WARNING
14862     FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
14863     thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
14864     " >&5
14865 $as_echo "$as_me: WARNING:
14866 *** WARNING
14867     FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
14868     thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
14869     " >&2;}
14870     CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
14871     ;;
14872   *)
14873     ;;
14874 esac
14875
14876 # Check for Python and docwriter
14877
14878 have_py3=no
14879 have_docwriter=no
14880 PIP=pip
14881
14882 for ac_prog in python3 python
14883 do
14884   # Extract the first word of "$ac_prog", so it can be a program name with args.
14885 set dummy $ac_prog; ac_word=$2
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14887 $as_echo_n "checking for $ac_word... " >&6; }
14888 if ${ac_cv_prog_PYTHON+:} false; then :
14889   $as_echo_n "(cached) " >&6
14890 else
14891   if test -n "$PYTHON"; then
14892   ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
14893 else
14894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14895 for as_dir in $PATH
14896 do
14897   IFS=$as_save_IFS
14898   test -z "$as_dir" && as_dir=.
14899     for ac_exec_ext in '' $ac_executable_extensions; do
14900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14901     ac_cv_prog_PYTHON="$ac_prog"
14902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14903     break 2
14904   fi
14905 done
14906   done
14907 IFS=$as_save_IFS
14908
14909 fi
14910 fi
14911 PYTHON=$ac_cv_prog_PYTHON
14912 if test -n "$PYTHON"; then
14913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14914 $as_echo "$PYTHON" >&6; }
14915 else
14916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14917 $as_echo "no" >&6; }
14918 fi
14919
14920
14921   test -n "$PYTHON" && break
14922 done
14923 test -n "$PYTHON" || PYTHON="missing"
14924
14925 if test "x$PYTHON" != "xmissing"; then
14926
14927
14928
14929
14930     if test -n "$PYTHON"; then :
14931
14932         ax_python_version="3.5"
14933
14934         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python version" >&5
14935 $as_echo_n "checking for python version... " >&6; }
14936
14937         python_version=`$PYTHON -V 2>&1 | $GREP "^Python " | $SED -e 's/^.* \([0-9]*\.[0-9]*\.[0-9]*\)/\1/'`
14938
14939         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_version" >&5
14940 $as_echo "$python_version" >&6; }
14941
14942         PYTHON_VERSION=$python_version
14943
14944
14945
14946
14947
14948   # Used to indicate true or false condition
14949   ax_compare_version=false
14950
14951   # Convert the two version strings to be compared into a format that
14952   # allows a simple string comparison.  The end result is that a version
14953   # string of the form 1.12.5-r617 will be converted to the form
14954   # 0001001200050617.  In other words, each number is zero padded to four
14955   # digits, and non digits are removed.
14956
14957   ax_compare_version_A=`echo "$ax_python_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14958                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14959                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14960                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14961                      -e 's/[^0-9]//g'`
14962
14963
14964   ax_compare_version_B=`echo "$python_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14965                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14966                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14967                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14968                      -e 's/[^0-9]//g'`
14969
14970
14971     ax_compare_version=`echo "x$ax_compare_version_A
14972 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
14973
14974
14975
14976     if test "$ax_compare_version" = "true" ; then
14977
14978             :
14979             have_py3=yes
14980
14981     else
14982             :
14983
14984
14985   fi
14986
14987
14988 else
14989
14990         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the python interpreter" >&5
14991 $as_echo "$as_me: WARNING: could not find the python interpreter" >&2;}
14992
14993
14994 fi
14995
14996
14997   if test "x$have_py3" = "xyes"; then
14998     PIP="$PYTHON -m $PIP"
14999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \`docwriter' Python module" >&5
15000 $as_echo_n "checking for \`docwriter' Python module... " >&6; }
15001     $PYTHON -m docwriter -h > /dev/null 2>&1
15002     if test "x$?" = "x0"; then
15003       have_docwriter=yes
15004       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15005 $as_echo "yes" >&6; }
15006     else
15007       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15008 $as_echo "no" >&6; }
15009     fi
15010   fi
15011 fi
15012
15013
15014 # entries in Requires.private are separated by commas
15015 REQUIRES_PRIVATE="$zlib_reqpriv,     \
15016                   $bzip2_reqpriv,    \
15017                   $libpng_reqpriv,   \
15018                   $harfbuzz_reqpriv, \
15019                   $brotli_reqpriv"
15020 # beautify
15021 REQUIRES_PRIVATE=`echo "$REQUIRES_PRIVATE" \
15022                   | sed -e 's/^  *//'      \
15023                         -e 's/  *$//'      \
15024                         -e 's/, */,/g'     \
15025                         -e 's/,,*/,/g'     \
15026                         -e 's/^,*//'       \
15027                         -e 's/,*$//'       \
15028                         -e 's/,/, /g'`
15029
15030 LIBS_PRIVATE="$zlib_libspriv     \
15031               $bzip2_libspriv    \
15032               $libpng_libspriv   \
15033               $harfbuzz_libspriv \
15034               $brotli_libspriv   \
15035               $ft2_extra_libs"
15036 # beautify
15037 LIBS_PRIVATE=`echo "$LIBS_PRIVATE"  \
15038               | sed -e 's/^  *//'   \
15039                     -e 's/  *$//'   \
15040                     -e 's/  */ /g'`
15041
15042 LIBSSTATIC_CONFIG="-lfreetype               \
15043                    $zlib_libsstaticconf     \
15044                    $bzip2_libsstaticconf    \
15045                    $libpng_libsstaticconf   \
15046                    $harfbuzz_libsstaticconf \
15047                    $brotli_libsstaticconf   \
15048                    $ft2_extra_libs"
15049 # remove -L/usr/lib and -L/usr/lib64 since `freetype-config' adds them later
15050 # on if necessary; also beautify
15051 LIBSSTATIC_CONFIG=`echo "$LIBSSTATIC_CONFIG"          \
15052                    | sed -e 's|-L */usr/lib64/* | |g' \
15053                          -e 's|-L */usr/lib/* | |g'   \
15054                          -e 's/^  *//'                \
15055                          -e 's/  *$//'                \
15056                          -e 's/  */ /g'`
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069 # changing LDFLAGS value should only be done after
15070 # lt_cv_prog_compiler_static_works test
15071
15072 ftoption_set()
15073 {
15074   regexp="-e \\\"s|.*#.*def.*$1.*|#define $1|\\\""
15075   FTOPTION_H_SED="$FTOPTION_H_SED $regexp"
15076 }
15077
15078 ftoption_unset()
15079 {
15080   regexp="-e \\\"s|.*#.*def.*$1.*|/* #undef $1 */|\\\""
15081   FTOPTION_H_SED="$FTOPTION_H_SED $regexp"
15082 }
15083
15084 if test "$have_zlib" != no; then
15085   CFLAGS="$CFLAGS $ZLIB_CFLAGS"
15086   LDFLAGS="$LDFLAGS $ZLIB_LIBS"
15087   ftoption_set FT_CONFIG_OPTION_SYSTEM_ZLIB
15088 else
15089   ftoption_unset FT_CONFIG_OPTION_SYSTEM_ZLIB
15090 fi
15091 if test "$have_bzip2" != no; then
15092   CFLAGS="$CFLAGS $BZIP2_CFLAGS"
15093   LDFLAGS="$LDFLAGS $BZIP2_LIBS"
15094   ftoption_set FT_CONFIG_OPTION_USE_BZIP2
15095 else
15096   ftoption_unset FT_CONFIG_OPTION_USE_BZIP2
15097 fi
15098 if test "$have_libpng" != no; then
15099   CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
15100   LDFLAGS="$LDFLAGS $LIBPNG_LIBS"
15101   ftoption_set FT_CONFIG_OPTION_USE_PNG
15102 else
15103   ftoption_unset FT_CONFIG_OPTION_USE_PNG
15104 fi
15105 if test "$have_harfbuzz" != no; then
15106   CFLAGS="$CFLAGS $HARFBUZZ_CFLAGS"
15107   LDFLAGS="$LDFLAGS $HARFBUZZ_LIBS"
15108   ftoption_set FT_CONFIG_OPTION_USE_HARFBUZZ
15109 else
15110   ftoption_unset FT_CONFIG_OPTION_USE_HARFBUZZ
15111 fi
15112 if test "$have_brotli" != no; then
15113   CFLAGS="$CFLAGS $BROTLI_CFLAGS"
15114   LDFLAGS="$LDFLAGS $BROTLI_LIBS"
15115   ftoption_set FT_CONFIG_OPTION_USE_BROTLI
15116 else
15117   ftoption_unset FT_CONFIG_OPTION_USE_BROTLI
15118 fi
15119
15120
15121
15122
15123 # We don't want to use a template file for `ftoption.h', since compilation
15124 # should work without calling a configure script also.  For this reason, we
15125 # copy the `include/freetype/config/ftoption.h' file to the `unix/builds'
15126 # directory (using a dummy `AC_CONFIG_FILES' call) and apply the just
15127 # constructed $FTOPTION_H_SED regexp (using the post-action of
15128 # `AC_CONFIG_FILES'); this is also the version that gets installed later on.
15129 #
15130 ac_config_files="$ac_config_files ftoption.h:${srcdir}/../../include/freetype/config/ftoption.h"
15131
15132
15133 ac_config_headers="$ac_config_headers ftconfig.h"
15134
15135
15136 # create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
15137 # and `builds/unix/unix-cc.mk' that will be used by the build system
15138 #
15139 ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in"
15140
15141
15142 cat >confcache <<\_ACEOF
15143 # This file is a shell script that caches the results of configure
15144 # tests run on this system so they can be shared between configure
15145 # scripts and configure runs, see configure's option --config-cache.
15146 # It is not useful on other systems.  If it contains results you don't
15147 # want to keep, you may remove or edit it.
15148 #
15149 # config.status only pays attention to the cache file if you give it
15150 # the --recheck option to rerun configure.
15151 #
15152 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15153 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15154 # following values.
15155
15156 _ACEOF
15157
15158 # The following way of writing the cache mishandles newlines in values,
15159 # but we know of no workaround that is simple, portable, and efficient.
15160 # So, we kill variables containing newlines.
15161 # Ultrix sh set writes to stderr and can't be redirected directly,
15162 # and sets the high bit in the cache file unless we assign to the vars.
15163 (
15164   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15165     eval ac_val=\$$ac_var
15166     case $ac_val in #(
15167     *${as_nl}*)
15168       case $ac_var in #(
15169       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15170 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15171       esac
15172       case $ac_var in #(
15173       _ | IFS | as_nl) ;; #(
15174       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15175       *) { eval $ac_var=; unset $ac_var;} ;;
15176       esac ;;
15177     esac
15178   done
15179
15180   (set) 2>&1 |
15181     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15182     *${as_nl}ac_space=\ *)
15183       # `set' does not quote correctly, so add quotes: double-quote
15184       # substitution turns \\\\ into \\, and sed turns \\ into \.
15185       sed -n \
15186         "s/'/'\\\\''/g;
15187           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15188       ;; #(
15189     *)
15190       # `set' quotes correctly as required by POSIX, so do not add quotes.
15191       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15192       ;;
15193     esac |
15194     sort
15195 ) |
15196   sed '
15197      /^ac_cv_env_/b end
15198      t clear
15199      :clear
15200      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15201      t end
15202      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15203      :end' >>confcache
15204 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15205   if test -w "$cache_file"; then
15206     if test "x$cache_file" != "x/dev/null"; then
15207       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15208 $as_echo "$as_me: updating cache $cache_file" >&6;}
15209       if test ! -f "$cache_file" || test -h "$cache_file"; then
15210         cat confcache >"$cache_file"
15211       else
15212         case $cache_file in #(
15213         */* | ?:*)
15214           mv -f confcache "$cache_file"$$ &&
15215           mv -f "$cache_file"$$ "$cache_file" ;; #(
15216         *)
15217           mv -f confcache "$cache_file" ;;
15218         esac
15219       fi
15220     fi
15221   else
15222     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15223 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15224   fi
15225 fi
15226 rm -f confcache
15227
15228 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15229 # Let make expand exec_prefix.
15230 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15231
15232 DEFS=-DHAVE_CONFIG_H
15233
15234 ac_libobjs=
15235 ac_ltlibobjs=
15236 U=
15237 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15238   # 1. Remove the extension, and $U if already installed.
15239   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15240   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15241   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15242   #    will be set to the directory where LIBOBJS objects are built.
15243   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15244   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15245 done
15246 LIBOBJS=$ac_libobjs
15247
15248 LTLIBOBJS=$ac_ltlibobjs
15249
15250
15251
15252 : "${CONFIG_STATUS=./config.status}"
15253 ac_write_fail=0
15254 ac_clean_files_save=$ac_clean_files
15255 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15257 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15258 as_write_fail=0
15259 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15260 #! $SHELL
15261 # Generated by $as_me.
15262 # Run this file to recreate the current configuration.
15263 # Compiler output produced by configure, useful for debugging
15264 # configure, is in config.log if it exists.
15265
15266 debug=false
15267 ac_cs_recheck=false
15268 ac_cs_silent=false
15269
15270 SHELL=\${CONFIG_SHELL-$SHELL}
15271 export SHELL
15272 _ASEOF
15273 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15274 ## -------------------- ##
15275 ## M4sh Initialization. ##
15276 ## -------------------- ##
15277
15278 # Be more Bourne compatible
15279 DUALCASE=1; export DUALCASE # for MKS sh
15280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15281   emulate sh
15282   NULLCMD=:
15283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15284   # is contrary to our usage.  Disable this feature.
15285   alias -g '${1+"$@"}'='"$@"'
15286   setopt NO_GLOB_SUBST
15287 else
15288   case `(set -o) 2>/dev/null` in #(
15289   *posix*) :
15290     set -o posix ;; #(
15291   *) :
15292      ;;
15293 esac
15294 fi
15295
15296
15297 as_nl='
15298 '
15299 export as_nl
15300 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15301 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15302 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15303 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15304 # Prefer a ksh shell builtin over an external printf program on Solaris,
15305 # but without wasting forks for bash or zsh.
15306 if test -z "$BASH_VERSION$ZSH_VERSION" \
15307     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15308   as_echo='print -r --'
15309   as_echo_n='print -rn --'
15310 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15311   as_echo='printf %s\n'
15312   as_echo_n='printf %s'
15313 else
15314   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15315     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15316     as_echo_n='/usr/ucb/echo -n'
15317   else
15318     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15319     as_echo_n_body='eval
15320       arg=$1;
15321       case $arg in #(
15322       *"$as_nl"*)
15323         expr "X$arg" : "X\\(.*\\)$as_nl";
15324         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15325       esac;
15326       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15327     '
15328     export as_echo_n_body
15329     as_echo_n='sh -c $as_echo_n_body as_echo'
15330   fi
15331   export as_echo_body
15332   as_echo='sh -c $as_echo_body as_echo'
15333 fi
15334
15335 # The user is always right.
15336 if test "${PATH_SEPARATOR+set}" != set; then
15337   PATH_SEPARATOR=:
15338   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15339     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15340       PATH_SEPARATOR=';'
15341   }
15342 fi
15343
15344
15345 # IFS
15346 # We need space, tab and new line, in precisely that order.  Quoting is
15347 # there to prevent editors from complaining about space-tab.
15348 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15349 # splitting by setting IFS to empty value.)
15350 IFS=" ""        $as_nl"
15351
15352 # Find who we are.  Look in the path if we contain no directory separator.
15353 as_myself=
15354 case $0 in #((
15355   *[\\/]* ) as_myself=$0 ;;
15356   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15357 for as_dir in $PATH
15358 do
15359   IFS=$as_save_IFS
15360   test -z "$as_dir" && as_dir=.
15361     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15362   done
15363 IFS=$as_save_IFS
15364
15365      ;;
15366 esac
15367 # We did not find ourselves, most probably we were run as `sh COMMAND'
15368 # in which case we are not to be found in the path.
15369 if test "x$as_myself" = x; then
15370   as_myself=$0
15371 fi
15372 if test ! -f "$as_myself"; then
15373   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15374   exit 1
15375 fi
15376
15377 # Unset variables that we do not need and which cause bugs (e.g. in
15378 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15379 # suppresses any "Segmentation fault" message there.  '((' could
15380 # trigger a bug in pdksh 5.2.14.
15381 for as_var in BASH_ENV ENV MAIL MAILPATH
15382 do eval test x\${$as_var+set} = xset \
15383   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15384 done
15385 PS1='$ '
15386 PS2='> '
15387 PS4='+ '
15388
15389 # NLS nuisances.
15390 LC_ALL=C
15391 export LC_ALL
15392 LANGUAGE=C
15393 export LANGUAGE
15394
15395 # CDPATH.
15396 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15397
15398
15399 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15400 # ----------------------------------------
15401 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15402 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15403 # script with STATUS, using 1 if that was 0.
15404 as_fn_error ()
15405 {
15406   as_status=$1; test $as_status -eq 0 && as_status=1
15407   if test "$4"; then
15408     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15409     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15410   fi
15411   $as_echo "$as_me: error: $2" >&2
15412   as_fn_exit $as_status
15413 } # as_fn_error
15414
15415
15416 # as_fn_set_status STATUS
15417 # -----------------------
15418 # Set $? to STATUS, without forking.
15419 as_fn_set_status ()
15420 {
15421   return $1
15422 } # as_fn_set_status
15423
15424 # as_fn_exit STATUS
15425 # -----------------
15426 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15427 as_fn_exit ()
15428 {
15429   set +e
15430   as_fn_set_status $1
15431   exit $1
15432 } # as_fn_exit
15433
15434 # as_fn_unset VAR
15435 # ---------------
15436 # Portably unset VAR.
15437 as_fn_unset ()
15438 {
15439   { eval $1=; unset $1;}
15440 }
15441 as_unset=as_fn_unset
15442 # as_fn_append VAR VALUE
15443 # ----------------------
15444 # Append the text in VALUE to the end of the definition contained in VAR. Take
15445 # advantage of any shell optimizations that allow amortized linear growth over
15446 # repeated appends, instead of the typical quadratic growth present in naive
15447 # implementations.
15448 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15449   eval 'as_fn_append ()
15450   {
15451     eval $1+=\$2
15452   }'
15453 else
15454   as_fn_append ()
15455   {
15456     eval $1=\$$1\$2
15457   }
15458 fi # as_fn_append
15459
15460 # as_fn_arith ARG...
15461 # ------------------
15462 # Perform arithmetic evaluation on the ARGs, and store the result in the
15463 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15464 # must be portable across $(()) and expr.
15465 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15466   eval 'as_fn_arith ()
15467   {
15468     as_val=$(( $* ))
15469   }'
15470 else
15471   as_fn_arith ()
15472   {
15473     as_val=`expr "$@" || test $? -eq 1`
15474   }
15475 fi # as_fn_arith
15476
15477
15478 if expr a : '\(a\)' >/dev/null 2>&1 &&
15479    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15480   as_expr=expr
15481 else
15482   as_expr=false
15483 fi
15484
15485 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15486   as_basename=basename
15487 else
15488   as_basename=false
15489 fi
15490
15491 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15492   as_dirname=dirname
15493 else
15494   as_dirname=false
15495 fi
15496
15497 as_me=`$as_basename -- "$0" ||
15498 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15499          X"$0" : 'X\(//\)$' \| \
15500          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15501 $as_echo X/"$0" |
15502     sed '/^.*\/\([^/][^/]*\)\/*$/{
15503             s//\1/
15504             q
15505           }
15506           /^X\/\(\/\/\)$/{
15507             s//\1/
15508             q
15509           }
15510           /^X\/\(\/\).*/{
15511             s//\1/
15512             q
15513           }
15514           s/.*/./; q'`
15515
15516 # Avoid depending upon Character Ranges.
15517 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15518 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15519 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15520 as_cr_digits='0123456789'
15521 as_cr_alnum=$as_cr_Letters$as_cr_digits
15522
15523 ECHO_C= ECHO_N= ECHO_T=
15524 case `echo -n x` in #(((((
15525 -n*)
15526   case `echo 'xy\c'` in
15527   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15528   xy)  ECHO_C='\c';;
15529   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15530        ECHO_T=' ';;
15531   esac;;
15532 *)
15533   ECHO_N='-n';;
15534 esac
15535
15536 rm -f conf$$ conf$$.exe conf$$.file
15537 if test -d conf$$.dir; then
15538   rm -f conf$$.dir/conf$$.file
15539 else
15540   rm -f conf$$.dir
15541   mkdir conf$$.dir 2>/dev/null
15542 fi
15543 if (echo >conf$$.file) 2>/dev/null; then
15544   if ln -s conf$$.file conf$$ 2>/dev/null; then
15545     as_ln_s='ln -s'
15546     # ... but there are two gotchas:
15547     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15548     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15549     # In both cases, we have to default to `cp -pR'.
15550     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15551       as_ln_s='cp -pR'
15552   elif ln conf$$.file conf$$ 2>/dev/null; then
15553     as_ln_s=ln
15554   else
15555     as_ln_s='cp -pR'
15556   fi
15557 else
15558   as_ln_s='cp -pR'
15559 fi
15560 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15561 rmdir conf$$.dir 2>/dev/null
15562
15563
15564 # as_fn_mkdir_p
15565 # -------------
15566 # Create "$as_dir" as a directory, including parents if necessary.
15567 as_fn_mkdir_p ()
15568 {
15569
15570   case $as_dir in #(
15571   -*) as_dir=./$as_dir;;
15572   esac
15573   test -d "$as_dir" || eval $as_mkdir_p || {
15574     as_dirs=
15575     while :; do
15576       case $as_dir in #(
15577       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15578       *) as_qdir=$as_dir;;
15579       esac
15580       as_dirs="'$as_qdir' $as_dirs"
15581       as_dir=`$as_dirname -- "$as_dir" ||
15582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15583          X"$as_dir" : 'X\(//\)[^/]' \| \
15584          X"$as_dir" : 'X\(//\)$' \| \
15585          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15586 $as_echo X"$as_dir" |
15587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15588             s//\1/
15589             q
15590           }
15591           /^X\(\/\/\)[^/].*/{
15592             s//\1/
15593             q
15594           }
15595           /^X\(\/\/\)$/{
15596             s//\1/
15597             q
15598           }
15599           /^X\(\/\).*/{
15600             s//\1/
15601             q
15602           }
15603           s/.*/./; q'`
15604       test -d "$as_dir" && break
15605     done
15606     test -z "$as_dirs" || eval "mkdir $as_dirs"
15607   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15608
15609
15610 } # as_fn_mkdir_p
15611 if mkdir -p . 2>/dev/null; then
15612   as_mkdir_p='mkdir -p "$as_dir"'
15613 else
15614   test -d ./-p && rmdir ./-p
15615   as_mkdir_p=false
15616 fi
15617
15618
15619 # as_fn_executable_p FILE
15620 # -----------------------
15621 # Test if FILE is an executable regular file.
15622 as_fn_executable_p ()
15623 {
15624   test -f "$1" && test -x "$1"
15625 } # as_fn_executable_p
15626 as_test_x='test -x'
15627 as_executable_p=as_fn_executable_p
15628
15629 # Sed expression to map a string onto a valid CPP name.
15630 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15631
15632 # Sed expression to map a string onto a valid variable name.
15633 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15634
15635
15636 exec 6>&1
15637 ## ----------------------------------- ##
15638 ## Main body of $CONFIG_STATUS script. ##
15639 ## ----------------------------------- ##
15640 _ASEOF
15641 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15642
15643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15644 # Save the log message, to keep $0 and so on meaningful, and to
15645 # report actual input values of CONFIG_FILES etc. instead of their
15646 # values after options handling.
15647 ac_log="
15648 This file was extended by FreeType $as_me 2.10.4, which was
15649 generated by GNU Autoconf 2.69.  Invocation command line was
15650
15651   CONFIG_FILES    = $CONFIG_FILES
15652   CONFIG_HEADERS  = $CONFIG_HEADERS
15653   CONFIG_LINKS    = $CONFIG_LINKS
15654   CONFIG_COMMANDS = $CONFIG_COMMANDS
15655   $ $0 $@
15656
15657 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15658 "
15659
15660 _ACEOF
15661
15662 case $ac_config_files in *"
15663 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15664 esac
15665
15666 case $ac_config_headers in *"
15667 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15668 esac
15669
15670
15671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15672 # Files that config.status was made for.
15673 config_files="$ac_config_files"
15674 config_headers="$ac_config_headers"
15675 config_commands="$ac_config_commands"
15676
15677 _ACEOF
15678
15679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15680 ac_cs_usage="\
15681 \`$as_me' instantiates files and other configuration actions
15682 from templates according to the current configuration.  Unless the files
15683 and actions are specified as TAGs, all are instantiated by default.
15684
15685 Usage: $0 [OPTION]... [TAG]...
15686
15687   -h, --help       print this help, then exit
15688   -V, --version    print version number and configuration settings, then exit
15689       --config     print configuration, then exit
15690   -q, --quiet, --silent
15691                    do not print progress messages
15692   -d, --debug      don't remove temporary files
15693       --recheck    update $as_me by reconfiguring in the same conditions
15694       --file=FILE[:TEMPLATE]
15695                    instantiate the configuration file FILE
15696       --header=FILE[:TEMPLATE]
15697                    instantiate the configuration header FILE
15698
15699 Configuration files:
15700 $config_files
15701
15702 Configuration headers:
15703 $config_headers
15704
15705 Configuration commands:
15706 $config_commands
15707
15708 Report bugs to <freetype@nongnu.org>."
15709
15710 _ACEOF
15711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15712 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15713 ac_cs_version="\\
15714 FreeType config.status 2.10.4
15715 configured by $0, generated by GNU Autoconf 2.69,
15716   with options \\"\$ac_cs_config\\"
15717
15718 Copyright (C) 2012 Free Software Foundation, Inc.
15719 This config.status script is free software; the Free Software Foundation
15720 gives unlimited permission to copy, distribute and modify it."
15721
15722 ac_pwd='$ac_pwd'
15723 srcdir='$srcdir'
15724 INSTALL='$INSTALL'
15725 MKDIR_P='$MKDIR_P'
15726 AWK='$AWK'
15727 test -n "\$AWK" || AWK=awk
15728 _ACEOF
15729
15730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15731 # The default lists apply if the user does not specify any file.
15732 ac_need_defaults=:
15733 while test $# != 0
15734 do
15735   case $1 in
15736   --*=?*)
15737     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15738     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15739     ac_shift=:
15740     ;;
15741   --*=)
15742     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15743     ac_optarg=
15744     ac_shift=:
15745     ;;
15746   *)
15747     ac_option=$1
15748     ac_optarg=$2
15749     ac_shift=shift
15750     ;;
15751   esac
15752
15753   case $ac_option in
15754   # Handling of the options.
15755   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15756     ac_cs_recheck=: ;;
15757   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15758     $as_echo "$ac_cs_version"; exit ;;
15759   --config | --confi | --conf | --con | --co | --c )
15760     $as_echo "$ac_cs_config"; exit ;;
15761   --debug | --debu | --deb | --de | --d | -d )
15762     debug=: ;;
15763   --file | --fil | --fi | --f )
15764     $ac_shift
15765     case $ac_optarg in
15766     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15767     '') as_fn_error $? "missing file argument" ;;
15768     esac
15769     as_fn_append CONFIG_FILES " '$ac_optarg'"
15770     ac_need_defaults=false;;
15771   --header | --heade | --head | --hea )
15772     $ac_shift
15773     case $ac_optarg in
15774     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15775     esac
15776     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15777     ac_need_defaults=false;;
15778   --he | --h)
15779     # Conflict between --help and --header
15780     as_fn_error $? "ambiguous option: \`$1'
15781 Try \`$0 --help' for more information.";;
15782   --help | --hel | -h )
15783     $as_echo "$ac_cs_usage"; exit ;;
15784   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15785   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15786     ac_cs_silent=: ;;
15787
15788   # This is an error.
15789   -*) as_fn_error $? "unrecognized option: \`$1'
15790 Try \`$0 --help' for more information." ;;
15791
15792   *) as_fn_append ac_config_targets " $1"
15793      ac_need_defaults=false ;;
15794
15795   esac
15796   shift
15797 done
15798
15799 ac_configure_extra_args=
15800
15801 if $ac_cs_silent; then
15802   exec 6>/dev/null
15803   ac_configure_extra_args="$ac_configure_extra_args --silent"
15804 fi
15805
15806 _ACEOF
15807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15808 if \$ac_cs_recheck; then
15809   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15810   shift
15811   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15812   CONFIG_SHELL='$SHELL'
15813   export CONFIG_SHELL
15814   exec "\$@"
15815 fi
15816
15817 _ACEOF
15818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15819 exec 5>>config.log
15820 {
15821   echo
15822   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15823 ## Running $as_me. ##
15824 _ASBOX
15825   $as_echo "$ac_log"
15826 } >&5
15827
15828 _ACEOF
15829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15830 #
15831 # INIT-COMMANDS
15832 #
15833
15834
15835 # The HP-UX ksh and POSIX shell print the target directory to stdout
15836 # if CDPATH is set.
15837 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15838
15839 sed_quote_subst='$sed_quote_subst'
15840 double_quote_subst='$double_quote_subst'
15841 delay_variable_subst='$delay_variable_subst'
15842 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15843 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15844 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15845 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15846 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15847 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15848 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15849 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15850 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15851 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15852 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15853 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15854 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15855 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15856 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15857 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15858 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15859 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15860 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15861 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15862 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15863 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15864 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15865 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15866 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15867 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15868 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15869 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15870 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15871 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15872 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15873 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15874 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15875 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15876 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15877 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15878 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15879 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15880 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15881 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15882 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15883 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15884 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15885 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15886 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15887 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15888 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15889 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15890 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15891 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15892 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15893 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15894 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15895 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15896 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15897 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15898 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15899 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15900 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15901 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"`'
15902 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15903 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15904 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15905 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15906 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15907 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15908 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15909 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15910 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15911 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15912 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15913 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15914 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15915 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15916 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15917 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15918 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15919 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15920 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15921 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15922 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15923 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15924 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15925 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15926 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15927 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15928 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15929 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15930 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15931 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15932 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15933 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15934 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15935 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15936 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15937 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15938 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15939 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15940 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15941 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15942 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15943 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15944 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15945 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15946 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15947 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15948 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15949 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15950 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15951 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15952 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15953 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15954 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15955 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15956 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15957 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15958 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15959 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15960 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15961 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15962 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15963 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15964 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15965 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15966 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15967 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15968 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15969 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15970 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15971 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15972 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15973 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15974 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15975 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15976 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15977 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15978 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
15979 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
15980 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
15981 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
15982 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
15983 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
15984 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
15985 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
15986 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
15987 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
15988 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
15989 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
15990 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
15991 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
15992 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
15993 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
15994 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
15995 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
15996 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
15997 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
15998 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
15999 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16000 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
16001 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16002 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16003 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16004 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
16005 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
16006 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
16007 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
16008 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
16009 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
16010 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
16011 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
16012 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
16013 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
16014 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16015 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16016 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16017 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16018 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
16019 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
16020
16021 LTCC='$LTCC'
16022 LTCFLAGS='$LTCFLAGS'
16023 compiler='$compiler_DEFAULT'
16024
16025 # A function that is used when there is no print builtin or printf.
16026 func_fallback_echo ()
16027 {
16028   eval 'cat <<_LTECHO_EOF
16029 \$1
16030 _LTECHO_EOF'
16031 }
16032
16033 # Quote evaled strings.
16034 for var in AS \
16035 DLLTOOL \
16036 OBJDUMP \
16037 SHELL \
16038 ECHO \
16039 PATH_SEPARATOR \
16040 SED \
16041 GREP \
16042 EGREP \
16043 FGREP \
16044 LD \
16045 NM \
16046 LN_S \
16047 lt_SP2NL \
16048 lt_NL2SP \
16049 reload_flag \
16050 deplibs_check_method \
16051 file_magic_cmd \
16052 file_magic_glob \
16053 want_nocaseglob \
16054 sharedlib_from_linklib_cmd \
16055 AR \
16056 AR_FLAGS \
16057 archiver_list_spec \
16058 STRIP \
16059 RANLIB \
16060 CC \
16061 CFLAGS \
16062 compiler \
16063 lt_cv_sys_global_symbol_pipe \
16064 lt_cv_sys_global_symbol_to_cdecl \
16065 lt_cv_sys_global_symbol_to_import \
16066 lt_cv_sys_global_symbol_to_c_name_address \
16067 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16068 lt_cv_nm_interface \
16069 nm_file_list_spec \
16070 lt_cv_truncate_bin \
16071 lt_prog_compiler_no_builtin_flag \
16072 lt_prog_compiler_pic \
16073 lt_prog_compiler_wl \
16074 lt_prog_compiler_static \
16075 lt_cv_prog_compiler_c_o \
16076 need_locks \
16077 MANIFEST_TOOL \
16078 DSYMUTIL \
16079 NMEDIT \
16080 LIPO \
16081 OTOOL \
16082 OTOOL64 \
16083 shrext_cmds \
16084 export_dynamic_flag_spec \
16085 whole_archive_flag_spec \
16086 compiler_needs_object \
16087 with_gnu_ld \
16088 allow_undefined_flag \
16089 no_undefined_flag \
16090 hardcode_libdir_flag_spec \
16091 hardcode_libdir_separator \
16092 exclude_expsyms \
16093 include_expsyms \
16094 file_list_spec \
16095 variables_saved_for_relink \
16096 libname_spec \
16097 library_names_spec \
16098 soname_spec \
16099 install_override_mode \
16100 finish_eval \
16101 old_striplib \
16102 striplib \
16103 LD_RC \
16104 reload_flag_RC \
16105 compiler_RC \
16106 lt_prog_compiler_no_builtin_flag_RC \
16107 lt_prog_compiler_pic_RC \
16108 lt_prog_compiler_wl_RC \
16109 lt_prog_compiler_static_RC \
16110 lt_cv_prog_compiler_c_o_RC \
16111 export_dynamic_flag_spec_RC \
16112 whole_archive_flag_spec_RC \
16113 compiler_needs_object_RC \
16114 with_gnu_ld_RC \
16115 allow_undefined_flag_RC \
16116 no_undefined_flag_RC \
16117 hardcode_libdir_flag_spec_RC \
16118 hardcode_libdir_separator_RC \
16119 exclude_expsyms_RC \
16120 include_expsyms_RC \
16121 file_list_spec_RC; do
16122     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16123     *[\\\\\\\`\\"\\\$]*)
16124       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16125       ;;
16126     *)
16127       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16128       ;;
16129     esac
16130 done
16131
16132 # Double-quote double-evaled strings.
16133 for var in reload_cmds \
16134 old_postinstall_cmds \
16135 old_postuninstall_cmds \
16136 old_archive_cmds \
16137 extract_expsyms_cmds \
16138 old_archive_from_new_cmds \
16139 old_archive_from_expsyms_cmds \
16140 archive_cmds \
16141 archive_expsym_cmds \
16142 module_cmds \
16143 module_expsym_cmds \
16144 export_symbols_cmds \
16145 prelink_cmds \
16146 postlink_cmds \
16147 postinstall_cmds \
16148 postuninstall_cmds \
16149 finish_cmds \
16150 sys_lib_search_path_spec \
16151 configure_time_dlsearch_path \
16152 configure_time_lt_sys_library_path \
16153 reload_cmds_RC \
16154 old_archive_cmds_RC \
16155 old_archive_from_new_cmds_RC \
16156 old_archive_from_expsyms_cmds_RC \
16157 archive_cmds_RC \
16158 archive_expsym_cmds_RC \
16159 module_cmds_RC \
16160 module_expsym_cmds_RC \
16161 export_symbols_cmds_RC \
16162 prelink_cmds_RC \
16163 postlink_cmds_RC; do
16164     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16165     *[\\\\\\\`\\"\\\$]*)
16166       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16167       ;;
16168     *)
16169       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16170       ;;
16171     esac
16172 done
16173
16174 ac_aux_dir='$ac_aux_dir'
16175
16176 # See if we are running on zsh, and set the options that allow our
16177 # commands through without removal of \ escapes INIT.
16178 if test -n "\${ZSH_VERSION+set}"; then
16179    setopt NO_GLOB_SUBST
16180 fi
16181
16182
16183     PACKAGE='$PACKAGE'
16184     VERSION='$VERSION'
16185     RM='$RM'
16186     ofile='$ofile'
16187
16188
16189
16190
16191
16192 FTOPTION_H_SED="$FTOPTION_H_SED"
16193
16194 _ACEOF
16195
16196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16197
16198 # Handling of arguments.
16199 for ac_config_target in $ac_config_targets
16200 do
16201   case $ac_config_target in
16202     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16203     "ftoption.h") CONFIG_FILES="$CONFIG_FILES ftoption.h:${srcdir}/../../include/freetype/config/ftoption.h" ;;
16204     "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h" ;;
16205     "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
16206     "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
16207
16208   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16209   esac
16210 done
16211
16212
16213 # If the user did not use the arguments to specify the items to instantiate,
16214 # then the envvar interface is used.  Set only those that are not.
16215 # We use the long form for the default assignment because of an extremely
16216 # bizarre bug on SunOS 4.1.3.
16217 if $ac_need_defaults; then
16218   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16219   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16220   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16221 fi
16222
16223 # Have a temporary directory for convenience.  Make it in the build tree
16224 # simply because there is no reason against having it here, and in addition,
16225 # creating and moving files from /tmp can sometimes cause problems.
16226 # Hook for its removal unless debugging.
16227 # Note that there is a small window in which the directory will not be cleaned:
16228 # after its creation but before its name has been assigned to `$tmp'.
16229 $debug ||
16230 {
16231   tmp= ac_tmp=
16232   trap 'exit_status=$?
16233   : "${ac_tmp:=$tmp}"
16234   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16235 ' 0
16236   trap 'as_fn_exit 1' 1 2 13 15
16237 }
16238 # Create a (secure) tmp directory for tmp files.
16239
16240 {
16241   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16242   test -d "$tmp"
16243 }  ||
16244 {
16245   tmp=./conf$$-$RANDOM
16246   (umask 077 && mkdir "$tmp")
16247 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16248 ac_tmp=$tmp
16249
16250 # Set up the scripts for CONFIG_FILES section.
16251 # No need to generate them if there are no CONFIG_FILES.
16252 # This happens for instance with `./config.status config.h'.
16253 if test -n "$CONFIG_FILES"; then
16254
16255
16256 ac_cr=`echo X | tr X '\015'`
16257 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16258 # But we know of no other shell where ac_cr would be empty at this
16259 # point, so we can use a bashism as a fallback.
16260 if test "x$ac_cr" = x; then
16261   eval ac_cr=\$\'\\r\'
16262 fi
16263 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16264 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16265   ac_cs_awk_cr='\\r'
16266 else
16267   ac_cs_awk_cr=$ac_cr
16268 fi
16269
16270 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16271 _ACEOF
16272
16273
16274 {
16275   echo "cat >conf$$subs.awk <<_ACEOF" &&
16276   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16277   echo "_ACEOF"
16278 } >conf$$subs.sh ||
16279   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16280 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16281 ac_delim='%!_!# '
16282 for ac_last_try in false false false false false :; do
16283   . ./conf$$subs.sh ||
16284     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16285
16286   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16287   if test $ac_delim_n = $ac_delim_num; then
16288     break
16289   elif $ac_last_try; then
16290     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16291   else
16292     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16293   fi
16294 done
16295 rm -f conf$$subs.sh
16296
16297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16298 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16299 _ACEOF
16300 sed -n '
16301 h
16302 s/^/S["/; s/!.*/"]=/
16303 p
16304 g
16305 s/^[^!]*!//
16306 :repl
16307 t repl
16308 s/'"$ac_delim"'$//
16309 t delim
16310 :nl
16311 h
16312 s/\(.\{148\}\)..*/\1/
16313 t more1
16314 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16315 p
16316 n
16317 b repl
16318 :more1
16319 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16320 p
16321 g
16322 s/.\{148\}//
16323 t nl
16324 :delim
16325 h
16326 s/\(.\{148\}\)..*/\1/
16327 t more2
16328 s/["\\]/\\&/g; s/^/"/; s/$/"/
16329 p
16330 b
16331 :more2
16332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16333 p
16334 g
16335 s/.\{148\}//
16336 t delim
16337 ' <conf$$subs.awk | sed '
16338 /^[^""]/{
16339   N
16340   s/\n//
16341 }
16342 ' >>$CONFIG_STATUS || ac_write_fail=1
16343 rm -f conf$$subs.awk
16344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16345 _ACAWK
16346 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16347   for (key in S) S_is_set[key] = 1
16348   FS = "\a"
16349
16350 }
16351 {
16352   line = $ 0
16353   nfields = split(line, field, "@")
16354   substed = 0
16355   len = length(field[1])
16356   for (i = 2; i < nfields; i++) {
16357     key = field[i]
16358     keylen = length(key)
16359     if (S_is_set[key]) {
16360       value = S[key]
16361       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16362       len += length(value) + length(field[++i])
16363       substed = 1
16364     } else
16365       len += 1 + keylen
16366   }
16367
16368   print line
16369 }
16370
16371 _ACAWK
16372 _ACEOF
16373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16374 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16375   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16376 else
16377   cat
16378 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16379   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16380 _ACEOF
16381
16382 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16383 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16384 # trailing colons and then remove the whole line if VPATH becomes empty
16385 # (actually we leave an empty line to preserve line numbers).
16386 if test "x$srcdir" = x.; then
16387   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16388 h
16389 s///
16390 s/^/:/
16391 s/[      ]*$/:/
16392 s/:\$(srcdir):/:/g
16393 s/:\${srcdir}:/:/g
16394 s/:@srcdir@:/:/g
16395 s/^:*//
16396 s/:*$//
16397 x
16398 s/\(=[   ]*\).*/\1/
16399 G
16400 s/\n//
16401 s/^[^=]*=[       ]*$//
16402 }'
16403 fi
16404
16405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16406 fi # test -n "$CONFIG_FILES"
16407
16408 # Set up the scripts for CONFIG_HEADERS section.
16409 # No need to generate them if there are no CONFIG_HEADERS.
16410 # This happens for instance with `./config.status Makefile'.
16411 if test -n "$CONFIG_HEADERS"; then
16412 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16413 BEGIN {
16414 _ACEOF
16415
16416 # Transform confdefs.h into an awk script `defines.awk', embedded as
16417 # here-document in config.status, that substitutes the proper values into
16418 # config.h.in to produce config.h.
16419
16420 # Create a delimiter string that does not exist in confdefs.h, to ease
16421 # handling of long lines.
16422 ac_delim='%!_!# '
16423 for ac_last_try in false false :; do
16424   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16425   if test -z "$ac_tt"; then
16426     break
16427   elif $ac_last_try; then
16428     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16429   else
16430     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16431   fi
16432 done
16433
16434 # For the awk script, D is an array of macro values keyed by name,
16435 # likewise P contains macro parameters if any.  Preserve backslash
16436 # newline sequences.
16437
16438 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16439 sed -n '
16440 s/.\{148\}/&'"$ac_delim"'/g
16441 t rset
16442 :rset
16443 s/^[     ]*#[    ]*define[       ][      ]*/ /
16444 t def
16445 d
16446 :def
16447 s/\\$//
16448 t bsnl
16449 s/["\\]/\\&/g
16450 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16451 D["\1"]=" \3"/p
16452 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16453 d
16454 :bsnl
16455 s/["\\]/\\&/g
16456 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16457 D["\1"]=" \3\\\\\\n"\\/p
16458 t cont
16459 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16460 t cont
16461 d
16462 :cont
16463 n
16464 s/.\{148\}/&'"$ac_delim"'/g
16465 t clear
16466 :clear
16467 s/\\$//
16468 t bsnlc
16469 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16470 d
16471 :bsnlc
16472 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16473 b cont
16474 ' <confdefs.h | sed '
16475 s/'"$ac_delim"'/"\\\
16476 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16477
16478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16479   for (key in D) D_is_set[key] = 1
16480   FS = "\a"
16481 }
16482 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16483   line = \$ 0
16484   split(line, arg, " ")
16485   if (arg[1] == "#") {
16486     defundef = arg[2]
16487     mac1 = arg[3]
16488   } else {
16489     defundef = substr(arg[1], 2)
16490     mac1 = arg[2]
16491   }
16492   split(mac1, mac2, "(") #)
16493   macro = mac2[1]
16494   prefix = substr(line, 1, index(line, defundef) - 1)
16495   if (D_is_set[macro]) {
16496     # Preserve the white space surrounding the "#".
16497     print prefix "define", macro P[macro] D[macro]
16498     next
16499   } else {
16500     # Replace #undef with comments.  This is necessary, for example,
16501     # in the case of _POSIX_SOURCE, which is predefined and required
16502     # on some systems where configure will not decide to define it.
16503     if (defundef == "undef") {
16504       print "/*", prefix defundef, macro, "*/"
16505       next
16506     }
16507   }
16508 }
16509 { print }
16510 _ACAWK
16511 _ACEOF
16512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16513   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16514 fi # test -n "$CONFIG_HEADERS"
16515
16516
16517 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16518 shift
16519 for ac_tag
16520 do
16521   case $ac_tag in
16522   :[FHLC]) ac_mode=$ac_tag; continue;;
16523   esac
16524   case $ac_mode$ac_tag in
16525   :[FHL]*:*);;
16526   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16527   :[FH]-) ac_tag=-:-;;
16528   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16529   esac
16530   ac_save_IFS=$IFS
16531   IFS=:
16532   set x $ac_tag
16533   IFS=$ac_save_IFS
16534   shift
16535   ac_file=$1
16536   shift
16537
16538   case $ac_mode in
16539   :L) ac_source=$1;;
16540   :[FH])
16541     ac_file_inputs=
16542     for ac_f
16543     do
16544       case $ac_f in
16545       -) ac_f="$ac_tmp/stdin";;
16546       *) # Look for the file first in the build tree, then in the source tree
16547          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16548          # because $ac_f cannot contain `:'.
16549          test -f "$ac_f" ||
16550            case $ac_f in
16551            [\\/$]*) false;;
16552            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16553            esac ||
16554            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16555       esac
16556       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16557       as_fn_append ac_file_inputs " '$ac_f'"
16558     done
16559
16560     # Let's still pretend it is `configure' which instantiates (i.e., don't
16561     # use $as_me), people would be surprised to read:
16562     #    /* config.h.  Generated by config.status.  */
16563     configure_input='Generated from '`
16564           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16565         `' by configure.'
16566     if test x"$ac_file" != x-; then
16567       configure_input="$ac_file.  $configure_input"
16568       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16569 $as_echo "$as_me: creating $ac_file" >&6;}
16570     fi
16571     # Neutralize special characters interpreted by sed in replacement strings.
16572     case $configure_input in #(
16573     *\&* | *\|* | *\\* )
16574        ac_sed_conf_input=`$as_echo "$configure_input" |
16575        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16576     *) ac_sed_conf_input=$configure_input;;
16577     esac
16578
16579     case $ac_tag in
16580     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16581       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16582     esac
16583     ;;
16584   esac
16585
16586   ac_dir=`$as_dirname -- "$ac_file" ||
16587 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16588          X"$ac_file" : 'X\(//\)[^/]' \| \
16589          X"$ac_file" : 'X\(//\)$' \| \
16590          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16591 $as_echo X"$ac_file" |
16592     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16593             s//\1/
16594             q
16595           }
16596           /^X\(\/\/\)[^/].*/{
16597             s//\1/
16598             q
16599           }
16600           /^X\(\/\/\)$/{
16601             s//\1/
16602             q
16603           }
16604           /^X\(\/\).*/{
16605             s//\1/
16606             q
16607           }
16608           s/.*/./; q'`
16609   as_dir="$ac_dir"; as_fn_mkdir_p
16610   ac_builddir=.
16611
16612 case "$ac_dir" in
16613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16614 *)
16615   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16616   # A ".." for each directory in $ac_dir_suffix.
16617   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16618   case $ac_top_builddir_sub in
16619   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16620   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16621   esac ;;
16622 esac
16623 ac_abs_top_builddir=$ac_pwd
16624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16625 # for backward compatibility:
16626 ac_top_builddir=$ac_top_build_prefix
16627
16628 case $srcdir in
16629   .)  # We are building in place.
16630     ac_srcdir=.
16631     ac_top_srcdir=$ac_top_builddir_sub
16632     ac_abs_top_srcdir=$ac_pwd ;;
16633   [\\/]* | ?:[\\/]* )  # Absolute name.
16634     ac_srcdir=$srcdir$ac_dir_suffix;
16635     ac_top_srcdir=$srcdir
16636     ac_abs_top_srcdir=$srcdir ;;
16637   *) # Relative name.
16638     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16639     ac_top_srcdir=$ac_top_build_prefix$srcdir
16640     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16641 esac
16642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16643
16644
16645   case $ac_mode in
16646   :F)
16647   #
16648   # CONFIG_FILE
16649   #
16650
16651   case $INSTALL in
16652   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16653   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16654   esac
16655   ac_MKDIR_P=$MKDIR_P
16656   case $MKDIR_P in
16657   [\\/$]* | ?:[\\/]* ) ;;
16658   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16659   esac
16660 _ACEOF
16661
16662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16663 # If the template does not know about datarootdir, expand it.
16664 # FIXME: This hack should be removed a few years after 2.60.
16665 ac_datarootdir_hack=; ac_datarootdir_seen=
16666 ac_sed_dataroot='
16667 /datarootdir/ {
16668   p
16669   q
16670 }
16671 /@datadir@/p
16672 /@docdir@/p
16673 /@infodir@/p
16674 /@localedir@/p
16675 /@mandir@/p'
16676 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16677 *datarootdir*) ac_datarootdir_seen=yes;;
16678 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16679   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16680 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16681 _ACEOF
16682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16683   ac_datarootdir_hack='
16684   s&@datadir@&$datadir&g
16685   s&@docdir@&$docdir&g
16686   s&@infodir@&$infodir&g
16687   s&@localedir@&$localedir&g
16688   s&@mandir@&$mandir&g
16689   s&\\\${datarootdir}&$datarootdir&g' ;;
16690 esac
16691 _ACEOF
16692
16693 # Neutralize VPATH when `$srcdir' = `.'.
16694 # Shell code in configure.ac might set extrasub.
16695 # FIXME: do we really want to maintain this feature?
16696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16697 ac_sed_extra="$ac_vpsub
16698 $extrasub
16699 _ACEOF
16700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16701 :t
16702 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16703 s|@configure_input@|$ac_sed_conf_input|;t t
16704 s&@top_builddir@&$ac_top_builddir_sub&;t t
16705 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16706 s&@srcdir@&$ac_srcdir&;t t
16707 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16708 s&@top_srcdir@&$ac_top_srcdir&;t t
16709 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16710 s&@builddir@&$ac_builddir&;t t
16711 s&@abs_builddir@&$ac_abs_builddir&;t t
16712 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16713 s&@INSTALL@&$ac_INSTALL&;t t
16714 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16715 $ac_datarootdir_hack
16716 "
16717 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16718   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16719
16720 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16721   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16722   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16723       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16724   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16725 which seems to be undefined.  Please make sure it is defined" >&5
16726 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16727 which seems to be undefined.  Please make sure it is defined" >&2;}
16728
16729   rm -f "$ac_tmp/stdin"
16730   case $ac_file in
16731   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16732   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16733   esac \
16734   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16735  ;;
16736   :H)
16737   #
16738   # CONFIG_HEADER
16739   #
16740   if test x"$ac_file" != x-; then
16741     {
16742       $as_echo "/* $configure_input  */" \
16743       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16744     } >"$ac_tmp/config.h" \
16745       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16746     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16747       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16748 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16749     else
16750       rm -f "$ac_file"
16751       mv "$ac_tmp/config.h" "$ac_file" \
16752         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16753     fi
16754   else
16755     $as_echo "/* $configure_input  */" \
16756       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16757       || as_fn_error $? "could not create -" "$LINENO" 5
16758   fi
16759  ;;
16760
16761   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16762 $as_echo "$as_me: executing $ac_file commands" >&6;}
16763  ;;
16764   esac
16765
16766
16767   case $ac_file$ac_mode in
16768     "libtool":C)
16769
16770     # See if we are running on zsh, and set the options that allow our
16771     # commands through without removal of \ escapes.
16772     if test -n "${ZSH_VERSION+set}"; then
16773       setopt NO_GLOB_SUBST
16774     fi
16775
16776     cfgfile=${ofile}T
16777     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16778     $RM "$cfgfile"
16779
16780     cat <<_LT_EOF >> "$cfgfile"
16781 #! $SHELL
16782 # Generated automatically by $as_me ($PACKAGE) $VERSION
16783 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16784
16785 # Provide generalized library-building support services.
16786 # Written by Gordon Matzigkeit, 1996
16787
16788 # Copyright (C) 2014 Free Software Foundation, Inc.
16789 # This is free software; see the source for copying conditions.  There is NO
16790 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16791
16792 # GNU Libtool is free software; you can redistribute it and/or modify
16793 # it under the terms of the GNU General Public License as published by
16794 # the Free Software Foundation; either version 2 of of the License, or
16795 # (at your option) any later version.
16796 #
16797 # As a special exception to the GNU General Public License, if you
16798 # distribute this file as part of a program or library that is built
16799 # using GNU Libtool, you may include this file under the  same
16800 # distribution terms that you use for the rest of that program.
16801 #
16802 # GNU Libtool is distributed in the hope that it will be useful, but
16803 # WITHOUT ANY WARRANTY; without even the implied warranty of
16804 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16805 # GNU General Public License for more details.
16806 #
16807 # You should have received a copy of the GNU General Public License
16808 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16809
16810
16811 # The names of the tagged configurations supported by this script.
16812 available_tags='RC '
16813
16814 # Configured defaults for sys_lib_dlsearch_path munging.
16815 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16816
16817 # ### BEGIN LIBTOOL CONFIG
16818
16819 # Which release of libtool.m4 was used?
16820 macro_version=$macro_version
16821 macro_revision=$macro_revision
16822
16823 # Assembler program.
16824 AS=$lt_AS
16825
16826 # DLL creation program.
16827 DLLTOOL=$lt_DLLTOOL
16828
16829 # Object dumper program.
16830 OBJDUMP=$lt_OBJDUMP
16831
16832 # Whether or not to build shared libraries.
16833 build_libtool_libs=$enable_shared
16834
16835 # Whether or not to build static libraries.
16836 build_old_libs=$enable_static
16837
16838 # What type of objects to build.
16839 pic_mode=$pic_mode
16840
16841 # Whether or not to optimize for fast installation.
16842 fast_install=$enable_fast_install
16843
16844 # Shared archive member basename,for filename based shared library versioning on AIX.
16845 shared_archive_member_spec=$shared_archive_member_spec
16846
16847 # Shell to use when invoking shell scripts.
16848 SHELL=$lt_SHELL
16849
16850 # An echo program that protects backslashes.
16851 ECHO=$lt_ECHO
16852
16853 # The PATH separator for the build system.
16854 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16855
16856 # The host system.
16857 host_alias=$host_alias
16858 host=$host
16859 host_os=$host_os
16860
16861 # The build system.
16862 build_alias=$build_alias
16863 build=$build
16864 build_os=$build_os
16865
16866 # A sed program that does not truncate output.
16867 SED=$lt_SED
16868
16869 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16870 Xsed="\$SED -e 1s/^X//"
16871
16872 # A grep program that handles long lines.
16873 GREP=$lt_GREP
16874
16875 # An ERE matcher.
16876 EGREP=$lt_EGREP
16877
16878 # A literal string matcher.
16879 FGREP=$lt_FGREP
16880
16881 # A BSD- or MS-compatible name lister.
16882 NM=$lt_NM
16883
16884 # Whether we need soft or hard links.
16885 LN_S=$lt_LN_S
16886
16887 # What is the maximum length of a command?
16888 max_cmd_len=$max_cmd_len
16889
16890 # Object file suffix (normally "o").
16891 objext=$ac_objext
16892
16893 # Executable file suffix (normally "").
16894 exeext=$exeext
16895
16896 # whether the shell understands "unset".
16897 lt_unset=$lt_unset
16898
16899 # turn spaces into newlines.
16900 SP2NL=$lt_lt_SP2NL
16901
16902 # turn newlines into spaces.
16903 NL2SP=$lt_lt_NL2SP
16904
16905 # convert \$build file names to \$host format.
16906 to_host_file_cmd=$lt_cv_to_host_file_cmd
16907
16908 # convert \$build files to toolchain format.
16909 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16910
16911 # Method to check whether dependent libraries are shared objects.
16912 deplibs_check_method=$lt_deplibs_check_method
16913
16914 # Command to use when deplibs_check_method = "file_magic".
16915 file_magic_cmd=$lt_file_magic_cmd
16916
16917 # How to find potential files when deplibs_check_method = "file_magic".
16918 file_magic_glob=$lt_file_magic_glob
16919
16920 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16921 want_nocaseglob=$lt_want_nocaseglob
16922
16923 # Command to associate shared and link libraries.
16924 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16925
16926 # The archiver.
16927 AR=$lt_AR
16928
16929 # Flags to create an archive.
16930 AR_FLAGS=$lt_AR_FLAGS
16931
16932 # How to feed a file listing to the archiver.
16933 archiver_list_spec=$lt_archiver_list_spec
16934
16935 # A symbol stripping program.
16936 STRIP=$lt_STRIP
16937
16938 # Commands used to install an old-style archive.
16939 RANLIB=$lt_RANLIB
16940 old_postinstall_cmds=$lt_old_postinstall_cmds
16941 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16942
16943 # Whether to use a lock for old archive extraction.
16944 lock_old_archive_extraction=$lock_old_archive_extraction
16945
16946 # A C compiler.
16947 LTCC=$lt_CC
16948
16949 # LTCC compiler flags.
16950 LTCFLAGS=$lt_CFLAGS
16951
16952 # Take the output of nm and produce a listing of raw symbols and C names.
16953 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16954
16955 # Transform the output of nm in a proper C declaration.
16956 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16957
16958 # Transform the output of nm into a list of symbols to manually relocate.
16959 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16960
16961 # Transform the output of nm in a C name address pair.
16962 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16963
16964 # Transform the output of nm in a C name address pair when lib prefix is needed.
16965 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16966
16967 # The name lister interface.
16968 nm_interface=$lt_lt_cv_nm_interface
16969
16970 # Specify filename containing input files for \$NM.
16971 nm_file_list_spec=$lt_nm_file_list_spec
16972
16973 # The root where to search for dependent libraries,and where our libraries should be installed.
16974 lt_sysroot=$lt_sysroot
16975
16976 # Command to truncate a binary pipe.
16977 lt_truncate_bin=$lt_lt_cv_truncate_bin
16978
16979 # The name of the directory that contains temporary libtool files.
16980 objdir=$objdir
16981
16982 # Used to examine libraries when file_magic_cmd begins with "file".
16983 MAGIC_CMD=$MAGIC_CMD
16984
16985 # Must we lock files when doing compilation?
16986 need_locks=$lt_need_locks
16987
16988 # Manifest tool.
16989 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16990
16991 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16992 DSYMUTIL=$lt_DSYMUTIL
16993
16994 # Tool to change global to local symbols on Mac OS X.
16995 NMEDIT=$lt_NMEDIT
16996
16997 # Tool to manipulate fat objects and archives on Mac OS X.
16998 LIPO=$lt_LIPO
16999
17000 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17001 OTOOL=$lt_OTOOL
17002
17003 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17004 OTOOL64=$lt_OTOOL64
17005
17006 # Old archive suffix (normally "a").
17007 libext=$libext
17008
17009 # Shared library suffix (normally ".so").
17010 shrext_cmds=$lt_shrext_cmds
17011
17012 # The commands to extract the exported symbol list from a shared archive.
17013 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17014
17015 # Variables whose values should be saved in libtool wrapper scripts and
17016 # restored at link time.
17017 variables_saved_for_relink=$lt_variables_saved_for_relink
17018
17019 # Do we need the "lib" prefix for modules?
17020 need_lib_prefix=$need_lib_prefix
17021
17022 # Do we need a version for libraries?
17023 need_version=$need_version
17024
17025 # Library versioning type.
17026 version_type=$version_type
17027
17028 # Shared library runtime path variable.
17029 runpath_var=$runpath_var
17030
17031 # Shared library path variable.
17032 shlibpath_var=$shlibpath_var
17033
17034 # Is shlibpath searched before the hard-coded library search path?
17035 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17036
17037 # Format of library name prefix.
17038 libname_spec=$lt_libname_spec
17039
17040 # List of archive names.  First name is the real one, the rest are links.
17041 # The last name is the one that the linker finds with -lNAME
17042 library_names_spec=$lt_library_names_spec
17043
17044 # The coded name of the library, if different from the real name.
17045 soname_spec=$lt_soname_spec
17046
17047 # Permission mode override for installation of shared libraries.
17048 install_override_mode=$lt_install_override_mode
17049
17050 # Command to use after installation of a shared archive.
17051 postinstall_cmds=$lt_postinstall_cmds
17052
17053 # Command to use after uninstallation of a shared archive.
17054 postuninstall_cmds=$lt_postuninstall_cmds
17055
17056 # Commands used to finish a libtool library installation in a directory.
17057 finish_cmds=$lt_finish_cmds
17058
17059 # As "finish_cmds", except a single script fragment to be evaled but
17060 # not shown.
17061 finish_eval=$lt_finish_eval
17062
17063 # Whether we should hardcode library paths into libraries.
17064 hardcode_into_libs=$hardcode_into_libs
17065
17066 # Compile-time system search path for libraries.
17067 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17068
17069 # Detected run-time system search path for libraries.
17070 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17071
17072 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17073 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17074
17075 # Whether dlopen is supported.
17076 dlopen_support=$enable_dlopen
17077
17078 # Whether dlopen of programs is supported.
17079 dlopen_self=$enable_dlopen_self
17080
17081 # Whether dlopen of statically linked programs is supported.
17082 dlopen_self_static=$enable_dlopen_self_static
17083
17084 # Commands to strip libraries.
17085 old_striplib=$lt_old_striplib
17086 striplib=$lt_striplib
17087
17088
17089 # The linker used to build libraries.
17090 LD=$lt_LD
17091
17092 # How to create reloadable object files.
17093 reload_flag=$lt_reload_flag
17094 reload_cmds=$lt_reload_cmds
17095
17096 # Commands used to build an old-style archive.
17097 old_archive_cmds=$lt_old_archive_cmds
17098
17099 # A language specific compiler.
17100 CC=$lt_compiler
17101
17102 # Is the compiler the GNU compiler?
17103 with_gcc=$GCC
17104
17105 # Compiler flag to turn off builtin functions.
17106 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17107
17108 # Additional compiler flags for building library objects.
17109 pic_flag=$lt_lt_prog_compiler_pic
17110
17111 # How to pass a linker flag through the compiler.
17112 wl=$lt_lt_prog_compiler_wl
17113
17114 # Compiler flag to prevent dynamic linking.
17115 link_static_flag=$lt_lt_prog_compiler_static
17116
17117 # Does compiler simultaneously support -c and -o options?
17118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17119
17120 # Whether or not to add -lc for building shared libraries.
17121 build_libtool_need_lc=$archive_cmds_need_lc
17122
17123 # Whether or not to disallow shared libs when runtime libs are static.
17124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17125
17126 # Compiler flag to allow reflexive dlopens.
17127 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17128
17129 # Compiler flag to generate shared objects directly from archives.
17130 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17131
17132 # Whether the compiler copes with passing no objects directly.
17133 compiler_needs_object=$lt_compiler_needs_object
17134
17135 # Create an old-style archive from a shared archive.
17136 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17137
17138 # Create a temporary old-style archive to link instead of a shared archive.
17139 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17140
17141 # Commands used to build a shared archive.
17142 archive_cmds=$lt_archive_cmds
17143 archive_expsym_cmds=$lt_archive_expsym_cmds
17144
17145 # Commands used to build a loadable module if different from building
17146 # a shared archive.
17147 module_cmds=$lt_module_cmds
17148 module_expsym_cmds=$lt_module_expsym_cmds
17149
17150 # Whether we are building with GNU ld or not.
17151 with_gnu_ld=$lt_with_gnu_ld
17152
17153 # Flag that allows shared libraries with undefined symbols to be built.
17154 allow_undefined_flag=$lt_allow_undefined_flag
17155
17156 # Flag that enforces no undefined symbols.
17157 no_undefined_flag=$lt_no_undefined_flag
17158
17159 # Flag to hardcode \$libdir into a binary during linking.
17160 # This must work even if \$libdir does not exist
17161 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17162
17163 # Whether we need a single "-rpath" flag with a separated argument.
17164 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17165
17166 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17167 # DIR into the resulting binary.
17168 hardcode_direct=$hardcode_direct
17169
17170 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17171 # DIR into the resulting binary and the resulting library dependency is
17172 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17173 # library is relocated.
17174 hardcode_direct_absolute=$hardcode_direct_absolute
17175
17176 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17177 # into the resulting binary.
17178 hardcode_minus_L=$hardcode_minus_L
17179
17180 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17181 # into the resulting binary.
17182 hardcode_shlibpath_var=$hardcode_shlibpath_var
17183
17184 # Set to "yes" if building a shared library automatically hardcodes DIR
17185 # into the library and all subsequent libraries and executables linked
17186 # against it.
17187 hardcode_automatic=$hardcode_automatic
17188
17189 # Set to yes if linker adds runtime paths of dependent libraries
17190 # to runtime path list.
17191 inherit_rpath=$inherit_rpath
17192
17193 # Whether libtool must link a program against all its dependency libraries.
17194 link_all_deplibs=$link_all_deplibs
17195
17196 # Set to "yes" if exported symbols are required.
17197 always_export_symbols=$always_export_symbols
17198
17199 # The commands to list exported symbols.
17200 export_symbols_cmds=$lt_export_symbols_cmds
17201
17202 # Symbols that should not be listed in the preloaded symbols.
17203 exclude_expsyms=$lt_exclude_expsyms
17204
17205 # Symbols that must always be exported.
17206 include_expsyms=$lt_include_expsyms
17207
17208 # Commands necessary for linking programs (against libraries) with templates.
17209 prelink_cmds=$lt_prelink_cmds
17210
17211 # Commands necessary for finishing linking programs.
17212 postlink_cmds=$lt_postlink_cmds
17213
17214 # Specify filename containing input files.
17215 file_list_spec=$lt_file_list_spec
17216
17217 # How to hardcode a shared library path into an executable.
17218 hardcode_action=$hardcode_action
17219
17220 # ### END LIBTOOL CONFIG
17221
17222 _LT_EOF
17223
17224     cat <<'_LT_EOF' >> "$cfgfile"
17225
17226 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17227
17228 # func_munge_path_list VARIABLE PATH
17229 # -----------------------------------
17230 # VARIABLE is name of variable containing _space_ separated list of
17231 # directories to be munged by the contents of PATH, which is string
17232 # having a format:
17233 # "DIR[:DIR]:"
17234 #       string "DIR[ DIR]" will be prepended to VARIABLE
17235 # ":DIR[:DIR]"
17236 #       string "DIR[ DIR]" will be appended to VARIABLE
17237 # "DIRP[:DIRP]::[DIRA:]DIRA"
17238 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17239 #       "DIRA[ DIRA]" will be appended to VARIABLE
17240 # "DIR[:DIR]"
17241 #       VARIABLE will be replaced by "DIR[ DIR]"
17242 func_munge_path_list ()
17243 {
17244     case x$2 in
17245     x)
17246         ;;
17247     *:)
17248         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17249         ;;
17250     x:*)
17251         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17252         ;;
17253     *::*)
17254         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17255         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17256         ;;
17257     *)
17258         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17259         ;;
17260     esac
17261 }
17262
17263
17264 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17265 func_cc_basename ()
17266 {
17267     for cc_temp in $*""; do
17268       case $cc_temp in
17269         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17270         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17271         \-*) ;;
17272         *) break;;
17273       esac
17274     done
17275     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17276 }
17277
17278
17279 # ### END FUNCTIONS SHARED WITH CONFIGURE
17280
17281 _LT_EOF
17282
17283   case $host_os in
17284   aix3*)
17285     cat <<\_LT_EOF >> "$cfgfile"
17286 # AIX sometimes has problems with the GCC collect2 program.  For some
17287 # reason, if we set the COLLECT_NAMES environment variable, the problems
17288 # vanish in a puff of smoke.
17289 if test set != "${COLLECT_NAMES+set}"; then
17290   COLLECT_NAMES=
17291   export COLLECT_NAMES
17292 fi
17293 _LT_EOF
17294     ;;
17295   esac
17296
17297
17298 ltmain=$ac_aux_dir/ltmain.sh
17299
17300
17301   # We use sed instead of cat because bash on DJGPP gets confused if
17302   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17303   # text mode, it properly converts lines to CR/LF.  This bash problem
17304   # is reportedly fixed, but why not run on old versions too?
17305   sed '$q' "$ltmain" >> "$cfgfile" \
17306      || (rm -f "$cfgfile"; exit 1)
17307
17308    mv -f "$cfgfile" "$ofile" ||
17309     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17310   chmod +x "$ofile"
17311
17312
17313     cat <<_LT_EOF >> "$ofile"
17314
17315 # ### BEGIN LIBTOOL TAG CONFIG: RC
17316
17317 # The linker used to build libraries.
17318 LD=$lt_LD_RC
17319
17320 # How to create reloadable object files.
17321 reload_flag=$lt_reload_flag_RC
17322 reload_cmds=$lt_reload_cmds_RC
17323
17324 # Commands used to build an old-style archive.
17325 old_archive_cmds=$lt_old_archive_cmds_RC
17326
17327 # A language specific compiler.
17328 CC=$lt_compiler_RC
17329
17330 # Is the compiler the GNU compiler?
17331 with_gcc=$GCC_RC
17332
17333 # Compiler flag to turn off builtin functions.
17334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17335
17336 # Additional compiler flags for building library objects.
17337 pic_flag=$lt_lt_prog_compiler_pic_RC
17338
17339 # How to pass a linker flag through the compiler.
17340 wl=$lt_lt_prog_compiler_wl_RC
17341
17342 # Compiler flag to prevent dynamic linking.
17343 link_static_flag=$lt_lt_prog_compiler_static_RC
17344
17345 # Does compiler simultaneously support -c and -o options?
17346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17347
17348 # Whether or not to add -lc for building shared libraries.
17349 build_libtool_need_lc=$archive_cmds_need_lc_RC
17350
17351 # Whether or not to disallow shared libs when runtime libs are static.
17352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17353
17354 # Compiler flag to allow reflexive dlopens.
17355 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17356
17357 # Compiler flag to generate shared objects directly from archives.
17358 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17359
17360 # Whether the compiler copes with passing no objects directly.
17361 compiler_needs_object=$lt_compiler_needs_object_RC
17362
17363 # Create an old-style archive from a shared archive.
17364 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17365
17366 # Create a temporary old-style archive to link instead of a shared archive.
17367 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17368
17369 # Commands used to build a shared archive.
17370 archive_cmds=$lt_archive_cmds_RC
17371 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17372
17373 # Commands used to build a loadable module if different from building
17374 # a shared archive.
17375 module_cmds=$lt_module_cmds_RC
17376 module_expsym_cmds=$lt_module_expsym_cmds_RC
17377
17378 # Whether we are building with GNU ld or not.
17379 with_gnu_ld=$lt_with_gnu_ld_RC
17380
17381 # Flag that allows shared libraries with undefined symbols to be built.
17382 allow_undefined_flag=$lt_allow_undefined_flag_RC
17383
17384 # Flag that enforces no undefined symbols.
17385 no_undefined_flag=$lt_no_undefined_flag_RC
17386
17387 # Flag to hardcode \$libdir into a binary during linking.
17388 # This must work even if \$libdir does not exist
17389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17390
17391 # Whether we need a single "-rpath" flag with a separated argument.
17392 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17393
17394 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17395 # DIR into the resulting binary.
17396 hardcode_direct=$hardcode_direct_RC
17397
17398 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17399 # DIR into the resulting binary and the resulting library dependency is
17400 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17401 # library is relocated.
17402 hardcode_direct_absolute=$hardcode_direct_absolute_RC
17403
17404 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17405 # into the resulting binary.
17406 hardcode_minus_L=$hardcode_minus_L_RC
17407
17408 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17409 # into the resulting binary.
17410 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17411
17412 # Set to "yes" if building a shared library automatically hardcodes DIR
17413 # into the library and all subsequent libraries and executables linked
17414 # against it.
17415 hardcode_automatic=$hardcode_automatic_RC
17416
17417 # Set to yes if linker adds runtime paths of dependent libraries
17418 # to runtime path list.
17419 inherit_rpath=$inherit_rpath_RC
17420
17421 # Whether libtool must link a program against all its dependency libraries.
17422 link_all_deplibs=$link_all_deplibs_RC
17423
17424 # Set to "yes" if exported symbols are required.
17425 always_export_symbols=$always_export_symbols_RC
17426
17427 # The commands to list exported symbols.
17428 export_symbols_cmds=$lt_export_symbols_cmds_RC
17429
17430 # Symbols that should not be listed in the preloaded symbols.
17431 exclude_expsyms=$lt_exclude_expsyms_RC
17432
17433 # Symbols that must always be exported.
17434 include_expsyms=$lt_include_expsyms_RC
17435
17436 # Commands necessary for linking programs (against libraries) with templates.
17437 prelink_cmds=$lt_prelink_cmds_RC
17438
17439 # Commands necessary for finishing linking programs.
17440 postlink_cmds=$lt_postlink_cmds_RC
17441
17442 # Specify filename containing input files.
17443 file_list_spec=$lt_file_list_spec_RC
17444
17445 # How to hardcode a shared library path into an executable.
17446 hardcode_action=$hardcode_action_RC
17447
17448 # ### END LIBTOOL TAG CONFIG: RC
17449 _LT_EOF
17450
17451  ;;
17452     "ftoption.h":F) mv ftoption.h ftoption.tmp
17453    eval "sed $FTOPTION_H_SED < ftoption.tmp > ftoption.h"
17454    rm ftoption.tmp ;;
17455
17456   esac
17457 done # for ac_tag
17458
17459
17460 as_fn_exit 0
17461 _ACEOF
17462 ac_clean_files=$ac_clean_files_save
17463
17464 test $ac_write_fail = 0 ||
17465   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17466
17467
17468 # configure is writing to config.log, and then calls config.status.
17469 # config.status does its own redirection, appending to config.log.
17470 # Unfortunately, on DOS this fails, as config.log is still kept open
17471 # by configure, so config.status won't be able to write to it; its
17472 # output is simply discarded.  So we exec the FD to /dev/null,
17473 # effectively closing config.log, so it can be properly (re)opened and
17474 # appended to by config.status.  When coming back to configure, we
17475 # need to make the FD available again.
17476 if test "$no_create" != yes; then
17477   ac_cs_success=:
17478   ac_config_status_args=
17479   test "$silent" = yes &&
17480     ac_config_status_args="$ac_config_status_args --quiet"
17481   exec 5>/dev/null
17482   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17483   exec 5>>config.log
17484   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17485   # would make configure fail if this is the last instruction.
17486   $ac_cs_success || as_fn_exit 1
17487 fi
17488 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17489   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17490 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17491 fi
17492
17493
17494 { $as_echo "$as_me:${as_lineno-$LINENO}:
17495
17496 Library configuration:
17497   external zlib: $have_zlib
17498   bzip2:         $have_bzip2
17499   libpng:        $have_libpng
17500   harfbuzz:      $have_harfbuzz
17501   brotli:        $have_brotli
17502 " >&5
17503 $as_echo "$as_me:
17504
17505 Library configuration:
17506   external zlib: $have_zlib
17507   bzip2:         $have_bzip2
17508   libpng:        $have_libpng
17509   harfbuzz:      $have_harfbuzz
17510   brotli:        $have_brotli
17511 " >&6;}
17512
17513 # Warn if docwriter is not installed
17514
17515 if test $have_docwriter = no; then
17516   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17517   \`make refdoc' will fail since pip package \`docwriter' is not installed.
17518   To install, run \`$PIP install docwriter', or to use a Python
17519   virtual environment, run \`make refdoc-venv' (requires pip package
17520   \`virtualenv'). These operations require Python >= 3.5.
17521   " >&5
17522 $as_echo "$as_me: WARNING:
17523   \`make refdoc' will fail since pip package \`docwriter' is not installed.
17524   To install, run \`$PIP install docwriter', or to use a Python
17525   virtual environment, run \`make refdoc-venv' (requires pip package
17526   \`virtualenv'). These operations require Python >= 3.5.
17527   " >&2;}
17528 fi
17529
17530 # end of configure.raw