Remove unnecessary .gbs.conf file
[platform/upstream/fontconfig.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for fontconfig 2.11.93.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>.
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 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='fontconfig'
593 PACKAGE_TARNAME='fontconfig'
594 PACKAGE_VERSION='2.11.93'
595 PACKAGE_STRING='fontconfig 2.11.93'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig'
597 PACKAGE_URL=''
598
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='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 PKGCONFIG_REQUIRES_PRIVATELY
641 PKGCONFIG_REQUIRES
642 DOCMAN3
643 ENABLE_DOCS_FALSE
644 ENABLE_DOCS_TRUE
645 USEDOCBOOK_FALSE
646 USEDOCBOOK_TRUE
647 HASDOCBOOK
648 HAVE_PTHREAD_FALSE
649 HAVE_PTHREAD_TRUE
650 PTHREAD_CFLAGS
651 PTHREAD_LIBS
652 PTHREAD_CC
653 ax_pthread_config
654 XMLDIR
655 CONFIGDIR
656 BASECONFIGDIR
657 TEMPLATEDIR
658 FC_FONTDATE
659 FC_CACHEDIR
660 fc_cachedir
661 FC_FONTPATH
662 FC_ADD_FONTS
663 FC_DEFAULT_FONTS
664 LIBXML2_LIBS
665 LIBXML2_CFLAGS
666 HAVE_XMLPARSE_H
667 EXPAT_LIBS
668 EXPAT_CFLAGS
669 FREETYPE_LIBS
670 FREETYPE_CFLAGS
671 ICONV_LIBS
672 ICONV_CFLAGS
673 ENABLE_SHARED_FALSE
674 ENABLE_SHARED_TRUE
675 CROSS_COMPILING_FALSE
676 CROSS_COMPILING_TRUE
677 EXEEXT_FOR_BUILD
678 CC_FOR_BUILD
679 WARN_CFLAGS
680 MS_LIB_AVAILABLE_FALSE
681 MS_LIB_AVAILABLE_TRUE
682 ms_librarian
683 OS_WIN32_FALSE
684 OS_WIN32_TRUE
685 LIBT_CURRENT_MINUS_AGE
686 LIBT_VERSION_INFO
687 LIBT_REVISION
688 LIBT_CURRENT
689 OTOOL64
690 OTOOL
691 LIPO
692 NMEDIT
693 DSYMUTIL
694 MANIFEST_TOOL
695 RANLIB
696 ac_ct_AR
697 AR
698 NM
699 ac_ct_DUMPBIN
700 DUMPBIN
701 LD
702 FGREP
703 SED
704 host_os
705 host_vendor
706 host_cpu
707 host
708 build_os
709 build_vendor
710 build_cpu
711 build
712 LIBTOOL
713 OBJDUMP
714 DLLTOOL
715 AS
716 RM
717 pkgpyexecdir
718 pyexecdir
719 pkgpythondir
720 pythondir
721 PYTHON_PLATFORM
722 PYTHON_EXEC_PREFIX
723 PYTHON_PREFIX
724 PYTHON_VERSION
725 PYTHON
726 GPERF
727 GIT
728 pkgconfigdir
729 PKG_CONFIG_LIBDIR
730 PKG_CONFIG_PATH
731 PKG_CONFIG
732 LN_S
733 EGREP
734 GREP
735 CPP
736 am__fastdepCC_FALSE
737 am__fastdepCC_TRUE
738 CCDEPMODE
739 am__nodep
740 AMDEPBACKSLASH
741 AMDEP_FALSE
742 AMDEP_TRUE
743 am__quote
744 am__include
745 DEPDIR
746 OBJEXT
747 EXEEXT
748 ac_ct_CC
749 CPPFLAGS
750 LDFLAGS
751 CFLAGS
752 CC
753 AM_BACKSLASH
754 AM_DEFAULT_VERBOSITY
755 AM_DEFAULT_V
756 AM_V
757 am__untar
758 am__tar
759 AMTAR
760 am__leading_dot
761 SET_MAKE
762 AWK
763 mkdir_p
764 MKDIR_P
765 INSTALL_STRIP_PROGRAM
766 STRIP
767 install_sh
768 MAKEINFO
769 AUTOHEADER
770 AUTOMAKE
771 AUTOCONF
772 ACLOCAL
773 VERSION
774 PACKAGE
775 CYGPATH_W
776 am__isrc
777 INSTALL_DATA
778 INSTALL_SCRIPT
779 INSTALL_PROGRAM
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL'
818 ac_subst_files=''
819 ac_user_opts='
820 enable_option_checking
821 enable_silent_rules
822 enable_dependency_tracking
823 enable_largefile
824 with_pkgconfigdir
825 enable_static
826 enable_shared
827 with_pic
828 enable_fast_install
829 with_gnu_ld
830 with_sysroot
831 enable_libtool_lock
832 with_arch
833 enable_iconv
834 with_libiconv
835 with_libiconv_includes
836 with_libiconv_lib
837 with_expat
838 with_expat_includes
839 with_expat_lib
840 enable_libxml2
841 with_default_fonts
842 with_add_fonts
843 with_cache_dir
844 with_templatedir
845 with_baseconfigdir
846 with_configdir
847 with_xmldir
848 enable_docs
849 '
850       ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 CPP
859 PKG_CONFIG
860 PKG_CONFIG_PATH
861 PKG_CONFIG_LIBDIR
862 PYTHON
863 CC_FOR_BUILD
864 FREETYPE_CFLAGS
865 FREETYPE_LIBS
866 EXPAT_CFLAGS
867 EXPAT_LIBS
868 LIBXML2_CFLAGS
869 LIBXML2_LIBS'
870
871
872 # Initialize some variables set by options.
873 ac_init_help=
874 ac_init_version=false
875 ac_unrecognized_opts=
876 ac_unrecognized_sep=
877 # The variables have the same names as the options, with
878 # dashes changed to underlines.
879 cache_file=/dev/null
880 exec_prefix=NONE
881 no_create=
882 no_recursion=
883 prefix=NONE
884 program_prefix=NONE
885 program_suffix=NONE
886 program_transform_name=s,x,x,
887 silent=
888 site=
889 srcdir=
890 verbose=
891 x_includes=NONE
892 x_libraries=NONE
893
894 # Installation directory options.
895 # These are left unexpanded so users can "make install exec_prefix=/foo"
896 # and all the variables that are supposed to be based on exec_prefix
897 # by default will actually change.
898 # Use braces instead of parens because sh, perl, etc. also accept them.
899 # (The list follows the same order as the GNU Coding Standards.)
900 bindir='${exec_prefix}/bin'
901 sbindir='${exec_prefix}/sbin'
902 libexecdir='${exec_prefix}/libexec'
903 datarootdir='${prefix}/share'
904 datadir='${datarootdir}'
905 sysconfdir='${prefix}/etc'
906 sharedstatedir='${prefix}/com'
907 localstatedir='${prefix}/var'
908 includedir='${prefix}/include'
909 oldincludedir='/usr/include'
910 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
911 infodir='${datarootdir}/info'
912 htmldir='${docdir}'
913 dvidir='${docdir}'
914 pdfdir='${docdir}'
915 psdir='${docdir}'
916 libdir='${exec_prefix}/lib'
917 localedir='${datarootdir}/locale'
918 mandir='${datarootdir}/man'
919
920 ac_prev=
921 ac_dashdash=
922 for ac_option
923 do
924   # If the previous option needs an argument, assign it.
925   if test -n "$ac_prev"; then
926     eval $ac_prev=\$ac_option
927     ac_prev=
928     continue
929   fi
930
931   case $ac_option in
932   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933   *=)   ac_optarg= ;;
934   *)    ac_optarg=yes ;;
935   esac
936
937   # Accept the important Cygnus configure options, so we can diagnose typos.
938
939   case $ac_dashdash$ac_option in
940   --)
941     ac_dashdash=yes ;;
942
943   -bindir | --bindir | --bindi | --bind | --bin | --bi)
944     ac_prev=bindir ;;
945   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946     bindir=$ac_optarg ;;
947
948   -build | --build | --buil | --bui | --bu)
949     ac_prev=build_alias ;;
950   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
951     build_alias=$ac_optarg ;;
952
953   -cache-file | --cache-file | --cache-fil | --cache-fi \
954   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955     ac_prev=cache_file ;;
956   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
958     cache_file=$ac_optarg ;;
959
960   --config-cache | -C)
961     cache_file=config.cache ;;
962
963   -datadir | --datadir | --datadi | --datad)
964     ac_prev=datadir ;;
965   -datadir=* | --datadir=* | --datadi=* | --datad=*)
966     datadir=$ac_optarg ;;
967
968   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969   | --dataroo | --dataro | --datar)
970     ac_prev=datarootdir ;;
971   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973     datarootdir=$ac_optarg ;;
974
975   -disable-* | --disable-*)
976     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977     # Reject names that are not valid shell variable names.
978     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979       as_fn_error $? "invalid feature name: $ac_useropt"
980     ac_useropt_orig=$ac_useropt
981     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982     case $ac_user_opts in
983       *"
984 "enable_$ac_useropt"
985 "*) ;;
986       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987          ac_unrecognized_sep=', ';;
988     esac
989     eval enable_$ac_useropt=no ;;
990
991   -docdir | --docdir | --docdi | --doc | --do)
992     ac_prev=docdir ;;
993   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994     docdir=$ac_optarg ;;
995
996   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997     ac_prev=dvidir ;;
998   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999     dvidir=$ac_optarg ;;
1000
1001   -enable-* | --enable-*)
1002     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1003     # Reject names that are not valid shell variable names.
1004     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005       as_fn_error $? "invalid feature name: $ac_useropt"
1006     ac_useropt_orig=$ac_useropt
1007     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008     case $ac_user_opts in
1009       *"
1010 "enable_$ac_useropt"
1011 "*) ;;
1012       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013          ac_unrecognized_sep=', ';;
1014     esac
1015     eval enable_$ac_useropt=\$ac_optarg ;;
1016
1017   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019   | --exec | --exe | --ex)
1020     ac_prev=exec_prefix ;;
1021   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023   | --exec=* | --exe=* | --ex=*)
1024     exec_prefix=$ac_optarg ;;
1025
1026   -gas | --gas | --ga | --g)
1027     # Obsolete; use --with-gas.
1028     with_gas=yes ;;
1029
1030   -help | --help | --hel | --he | -h)
1031     ac_init_help=long ;;
1032   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033     ac_init_help=recursive ;;
1034   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035     ac_init_help=short ;;
1036
1037   -host | --host | --hos | --ho)
1038     ac_prev=host_alias ;;
1039   -host=* | --host=* | --hos=* | --ho=*)
1040     host_alias=$ac_optarg ;;
1041
1042   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043     ac_prev=htmldir ;;
1044   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045   | --ht=*)
1046     htmldir=$ac_optarg ;;
1047
1048   -includedir | --includedir | --includedi | --included | --include \
1049   | --includ | --inclu | --incl | --inc)
1050     ac_prev=includedir ;;
1051   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052   | --includ=* | --inclu=* | --incl=* | --inc=*)
1053     includedir=$ac_optarg ;;
1054
1055   -infodir | --infodir | --infodi | --infod | --info | --inf)
1056     ac_prev=infodir ;;
1057   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058     infodir=$ac_optarg ;;
1059
1060   -libdir | --libdir | --libdi | --libd)
1061     ac_prev=libdir ;;
1062   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063     libdir=$ac_optarg ;;
1064
1065   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066   | --libexe | --libex | --libe)
1067     ac_prev=libexecdir ;;
1068   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069   | --libexe=* | --libex=* | --libe=*)
1070     libexecdir=$ac_optarg ;;
1071
1072   -localedir | --localedir | --localedi | --localed | --locale)
1073     ac_prev=localedir ;;
1074   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075     localedir=$ac_optarg ;;
1076
1077   -localstatedir | --localstatedir | --localstatedi | --localstated \
1078   | --localstate | --localstat | --localsta | --localst | --locals)
1079     ac_prev=localstatedir ;;
1080   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082     localstatedir=$ac_optarg ;;
1083
1084   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085     ac_prev=mandir ;;
1086   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087     mandir=$ac_optarg ;;
1088
1089   -nfp | --nfp | --nf)
1090     # Obsolete; use --without-fp.
1091     with_fp=no ;;
1092
1093   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094   | --no-cr | --no-c | -n)
1095     no_create=yes ;;
1096
1097   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099     no_recursion=yes ;;
1100
1101   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103   | --oldin | --oldi | --old | --ol | --o)
1104     ac_prev=oldincludedir ;;
1105   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108     oldincludedir=$ac_optarg ;;
1109
1110   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111     ac_prev=prefix ;;
1112   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113     prefix=$ac_optarg ;;
1114
1115   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116   | --program-pre | --program-pr | --program-p)
1117     ac_prev=program_prefix ;;
1118   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120     program_prefix=$ac_optarg ;;
1121
1122   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123   | --program-suf | --program-su | --program-s)
1124     ac_prev=program_suffix ;;
1125   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127     program_suffix=$ac_optarg ;;
1128
1129   -program-transform-name | --program-transform-name \
1130   | --program-transform-nam | --program-transform-na \
1131   | --program-transform-n | --program-transform- \
1132   | --program-transform | --program-transfor \
1133   | --program-transfo | --program-transf \
1134   | --program-trans | --program-tran \
1135   | --progr-tra | --program-tr | --program-t)
1136     ac_prev=program_transform_name ;;
1137   -program-transform-name=* | --program-transform-name=* \
1138   | --program-transform-nam=* | --program-transform-na=* \
1139   | --program-transform-n=* | --program-transform-=* \
1140   | --program-transform=* | --program-transfor=* \
1141   | --program-transfo=* | --program-transf=* \
1142   | --program-trans=* | --program-tran=* \
1143   | --progr-tra=* | --program-tr=* | --program-t=*)
1144     program_transform_name=$ac_optarg ;;
1145
1146   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147     ac_prev=pdfdir ;;
1148   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149     pdfdir=$ac_optarg ;;
1150
1151   -psdir | --psdir | --psdi | --psd | --ps)
1152     ac_prev=psdir ;;
1153   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154     psdir=$ac_optarg ;;
1155
1156   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157   | -silent | --silent | --silen | --sile | --sil)
1158     silent=yes ;;
1159
1160   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161     ac_prev=sbindir ;;
1162   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163   | --sbi=* | --sb=*)
1164     sbindir=$ac_optarg ;;
1165
1166   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168   | --sharedst | --shareds | --shared | --share | --shar \
1169   | --sha | --sh)
1170     ac_prev=sharedstatedir ;;
1171   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174   | --sha=* | --sh=*)
1175     sharedstatedir=$ac_optarg ;;
1176
1177   -site | --site | --sit)
1178     ac_prev=site ;;
1179   -site=* | --site=* | --sit=*)
1180     site=$ac_optarg ;;
1181
1182   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183     ac_prev=srcdir ;;
1184   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185     srcdir=$ac_optarg ;;
1186
1187   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188   | --syscon | --sysco | --sysc | --sys | --sy)
1189     ac_prev=sysconfdir ;;
1190   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192     sysconfdir=$ac_optarg ;;
1193
1194   -target | --target | --targe | --targ | --tar | --ta | --t)
1195     ac_prev=target_alias ;;
1196   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197     target_alias=$ac_optarg ;;
1198
1199   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200     verbose=yes ;;
1201
1202   -version | --version | --versio | --versi | --vers | -V)
1203     ac_init_version=: ;;
1204
1205   -with-* | --with-*)
1206     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207     # Reject names that are not valid shell variable names.
1208     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209       as_fn_error $? "invalid package name: $ac_useropt"
1210     ac_useropt_orig=$ac_useropt
1211     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212     case $ac_user_opts in
1213       *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217          ac_unrecognized_sep=', ';;
1218     esac
1219     eval with_$ac_useropt=\$ac_optarg ;;
1220
1221   -without-* | --without-*)
1222     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223     # Reject names that are not valid shell variable names.
1224     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225       as_fn_error $? "invalid package name: $ac_useropt"
1226     ac_useropt_orig=$ac_useropt
1227     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228     case $ac_user_opts in
1229       *"
1230 "with_$ac_useropt"
1231 "*) ;;
1232       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233          ac_unrecognized_sep=', ';;
1234     esac
1235     eval with_$ac_useropt=no ;;
1236
1237   --x)
1238     # Obsolete; use --with-x.
1239     with_x=yes ;;
1240
1241   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242   | --x-incl | --x-inc | --x-in | --x-i)
1243     ac_prev=x_includes ;;
1244   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246     x_includes=$ac_optarg ;;
1247
1248   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250     ac_prev=x_libraries ;;
1251   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253     x_libraries=$ac_optarg ;;
1254
1255   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1256 Try \`$0 --help' for more information"
1257     ;;
1258
1259   *=*)
1260     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261     # Reject names that are not valid shell variable names.
1262     case $ac_envvar in #(
1263       '' | [0-9]* | *[!_$as_cr_alnum]* )
1264       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1265     esac
1266     eval $ac_envvar=\$ac_optarg
1267     export $ac_envvar ;;
1268
1269   *)
1270     # FIXME: should be removed in autoconf 3.0.
1271     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1275     ;;
1276
1277   esac
1278 done
1279
1280 if test -n "$ac_prev"; then
1281   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282   as_fn_error $? "missing argument to $ac_option"
1283 fi
1284
1285 if test -n "$ac_unrecognized_opts"; then
1286   case $enable_option_checking in
1287     no) ;;
1288     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1289     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290   esac
1291 fi
1292
1293 # Check all directory arguments for consistency.
1294 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295                 datadir sysconfdir sharedstatedir localstatedir includedir \
1296                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297                 libdir localedir mandir
1298 do
1299   eval ac_val=\$$ac_var
1300   # Remove trailing slashes.
1301   case $ac_val in
1302     */ )
1303       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304       eval $ac_var=\$ac_val;;
1305   esac
1306   # Be sure to have absolute directory names.
1307   case $ac_val in
1308     [\\/$]* | ?:[\\/]* )  continue;;
1309     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310   esac
1311   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1312 done
1313
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1320
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323   if test "x$build_alias" = x; then
1324     cross_compiling=maybe
1325   elif test "x$build_alias" != "x$host_alias"; then
1326     cross_compiling=yes
1327   fi
1328 fi
1329
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333 test "$silent" = yes && exec 6>/dev/null
1334
1335
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339   as_fn_error $? "working directory cannot be determined"
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341   as_fn_error $? "pwd does not report name of working directory"
1342
1343
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346   ac_srcdir_defaulted=yes
1347   # Try the directory containing this script, then the parent directory.
1348   ac_confdir=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350          X"$as_myself" : 'X\(//\)[^/]' \| \
1351          X"$as_myself" : 'X\(//\)$' \| \
1352          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355             s//\1/
1356             q
1357           }
1358           /^X\(\/\/\)[^/].*/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\/\)$/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\).*/{
1367             s//\1/
1368             q
1369           }
1370           s/.*/./; q'`
1371   srcdir=$ac_confdir
1372   if test ! -r "$srcdir/$ac_unique_file"; then
1373     srcdir=..
1374   fi
1375 else
1376   ac_srcdir_defaulted=no
1377 fi
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1381 fi
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1385         pwd)`
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388   srcdir=.
1389 fi
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1393 case $srcdir in
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 esac
1396 for ac_var in $ac_precious_vars; do
1397   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398   eval ac_env_${ac_var}_value=\$${ac_var}
1399   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 done
1402
1403 #
1404 # Report the --help message.
1405 #
1406 if test "$ac_init_help" = "long"; then
1407   # Omit some internal or obsolete options to make the list less imposing.
1408   # This message is too long to be a string in the A/UX 3.1 sh.
1409   cat <<_ACEOF
1410 \`configure' configures fontconfig 2.11.93 to adapt to many kinds of systems.
1411
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE.  See below for descriptions of some of the useful variables.
1416
1417 Defaults for the options are specified in brackets.
1418
1419 Configuration:
1420   -h, --help              display this help and exit
1421       --help=short        display options specific to this package
1422       --help=recursive    display the short help of all the included packages
1423   -V, --version           display version information and exit
1424   -q, --quiet, --silent   do not print \`checking ...' messages
1425       --cache-file=FILE   cache test results in FILE [disabled]
1426   -C, --config-cache      alias for \`--cache-file=config.cache'
1427   -n, --no-create         do not create output files
1428       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1429
1430 Installation directories:
1431   --prefix=PREFIX         install architecture-independent files in PREFIX
1432                           [$ac_default_prefix]
1433   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1434                           [PREFIX]
1435
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1440
1441 For better control, use the options below.
1442
1443 Fine tuning of the installation directories:
1444   --bindir=DIR            user executables [EPREFIX/bin]
1445   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1446   --libexecdir=DIR        program executables [EPREFIX/libexec]
1447   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1448   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1449   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1450   --libdir=DIR            object code libraries [EPREFIX/lib]
1451   --includedir=DIR        C header files [PREFIX/include]
1452   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1453   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1454   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1455   --infodir=DIR           info documentation [DATAROOTDIR/info]
1456   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1457   --mandir=DIR            man documentation [DATAROOTDIR/man]
1458   --docdir=DIR            documentation root [DATAROOTDIR/doc/fontconfig]
1459   --htmldir=DIR           html documentation [DOCDIR]
1460   --dvidir=DIR            dvi documentation [DOCDIR]
1461   --pdfdir=DIR            pdf documentation [DOCDIR]
1462   --psdir=DIR             ps documentation [DOCDIR]
1463 _ACEOF
1464
1465   cat <<\_ACEOF
1466
1467 Program names:
1468   --program-prefix=PREFIX            prepend PREFIX to installed program names
1469   --program-suffix=SUFFIX            append SUFFIX to installed program names
1470   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1471
1472 System types:
1473   --build=BUILD     configure for building on BUILD [guessed]
1474   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1476 fi
1477
1478 if test -n "$ac_init_help"; then
1479   case $ac_init_help in
1480      short | recursive ) echo "Configuration of fontconfig 2.11.93:";;
1481    esac
1482   cat <<\_ACEOF
1483
1484 Optional Features:
1485   --disable-option-checking  ignore unrecognized --enable/--with options
1486   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488   --enable-silent-rules   less verbose build output (undo: "make V=1")
1489   --disable-silent-rules  verbose build output (undo: "make V=0")
1490   --enable-dependency-tracking
1491                           do not reject slow dependency extractors
1492   --disable-dependency-tracking
1493                           speeds up one-time build
1494   --disable-largefile     omit support for large files
1495   --enable-static[=PKGS]  build static libraries [default=no]
1496   --enable-shared[=PKGS]  build shared libraries [default=yes]
1497   --enable-fast-install[=PKGS]
1498                           optimize for fast installation [default=yes]
1499   --disable-libtool-lock  avoid locking (might break parallel builds)
1500   --enable-iconv          Use iconv to support non-Unicode SFNT name
1501   --enable-libxml2        Use libxml2 instead of Expat
1502   --disable-docs          Don't build and install documentation
1503
1504 Optional Packages:
1505   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507   --with-pkgconfigdir     pkg-config installation directory
1508                           ['${libdir}/pkgconfig']
1509   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1510                           both]
1511   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1512   --with-sysroot=DIR Search for dependent libraries within DIR
1513                         (or the compiler's sysroot if not specified).
1514   --with-arch=ARCH        Force architecture to ARCH
1515   --with-libiconv=DIR     Use libiconv in DIR
1516   --with-libiconv-includes=DIR
1517                           Use libiconv includes in DIR
1518   --with-libiconv-lib=DIR Use libiconv library in DIR
1519   --with-expat=DIR        Use Expat in DIR
1520   --with-expat-includes=DIR
1521                           Use Expat includes in DIR
1522   --with-expat-lib=DIR
1523   --with-default-fonts=DIR
1524                           Use fonts from DIR when config is busted
1525   --with-add-fonts=DIR1,DIR2,...
1526                           Find additional fonts in DIR1,DIR2,...
1527   --with-cache-dir=DIR    Use DIR to store cache files
1528                           [default=LOCALSTATEDIR/cache/fontconfig]
1529   --with-templatedir=DIR  Use DIR to store the configuration template files
1530                           [default=DATADIR/fontconfig/conf.avail]
1531   --with-baseconfigdir=DIR
1532                           Use DIR to store the base configuration files
1533                           [default=SYSCONFDIR/fonts]
1534   --with-configdir=DIR    Use DIR to store active configuration files
1535                           [default=BASECONFIGDIR/conf.d]
1536   --with-xmldir=DIR       Use DIR to store XML schema files
1537                           [default=DATADIR/xml/fontconfig]
1538
1539 Some influential environment variables:
1540   CC          C compiler command
1541   CFLAGS      C compiler flags
1542   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1543               nonstandard directory <lib dir>
1544   LIBS        libraries to pass to the linker, e.g. -l<library>
1545   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546               you have headers in a nonstandard directory <include dir>
1547   CPP         C preprocessor
1548   PKG_CONFIG  path to pkg-config utility
1549   PKG_CONFIG_PATH
1550               directories to add to pkg-config's search path
1551   PKG_CONFIG_LIBDIR
1552               path overriding pkg-config's built-in search path
1553   PYTHON      the Python interpreter
1554   CC_FOR_BUILD
1555               build system C compiler
1556   FREETYPE_CFLAGS
1557               C compiler flags for FREETYPE, overriding pkg-config
1558   FREETYPE_LIBS
1559               linker flags for FREETYPE, overriding pkg-config
1560   EXPAT_CFLAGS
1561               C compiler flags for EXPAT, overriding pkg-config
1562   EXPAT_LIBS  linker flags for EXPAT, overriding pkg-config
1563   LIBXML2_CFLAGS
1564               C compiler flags for LIBXML2, overriding pkg-config
1565   LIBXML2_LIBS
1566               linker flags for LIBXML2, overriding pkg-config
1567
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1570
1571 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>.
1572 _ACEOF
1573 ac_status=$?
1574 fi
1575
1576 if test "$ac_init_help" = "recursive"; then
1577   # If there are subdirs, report their specific --help.
1578   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579     test -d "$ac_dir" ||
1580       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581       continue
1582     ac_builddir=.
1583
1584 case "$ac_dir" in
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *)
1587   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1588   # A ".." for each directory in $ac_dir_suffix.
1589   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1590   case $ac_top_builddir_sub in
1591   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593   esac ;;
1594 esac
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1599
1600 case $srcdir in
1601   .)  # We are building in place.
1602     ac_srcdir=.
1603     ac_top_srcdir=$ac_top_builddir_sub
1604     ac_abs_top_srcdir=$ac_pwd ;;
1605   [\\/]* | ?:[\\/]* )  # Absolute name.
1606     ac_srcdir=$srcdir$ac_dir_suffix;
1607     ac_top_srcdir=$srcdir
1608     ac_abs_top_srcdir=$srcdir ;;
1609   *) # Relative name.
1610     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611     ac_top_srcdir=$ac_top_build_prefix$srcdir
1612     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 esac
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615
1616     cd "$ac_dir" || { ac_status=$?; continue; }
1617     # Check for guested configure.
1618     if test -f "$ac_srcdir/configure.gnu"; then
1619       echo &&
1620       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621     elif test -f "$ac_srcdir/configure"; then
1622       echo &&
1623       $SHELL "$ac_srcdir/configure" --help=recursive
1624     else
1625       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626     fi || ac_status=$?
1627     cd "$ac_pwd" || { ac_status=$?; break; }
1628   done
1629 fi
1630
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1633   cat <<\_ACEOF
1634 fontconfig configure 2.11.93
1635 generated by GNU Autoconf 2.69
1636
1637 Copyright (C) 2012 Free Software Foundation, Inc.
1638 This configure script is free software; the Free Software Foundation
1639 gives unlimited permission to copy, distribute and modify it.
1640 _ACEOF
1641   exit
1642 fi
1643
1644 ## ------------------------ ##
1645 ## Autoconf initialization. ##
1646 ## ------------------------ ##
1647
1648 # ac_fn_c_try_compile LINENO
1649 # --------------------------
1650 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_compile ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   rm -f conftest.$ac_objext
1655   if { { ac_try="$ac_compile"
1656 case "(($ac_try" in
1657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658   *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662   (eval "$ac_compile") 2>conftest.err
1663   ac_status=$?
1664   if test -s conftest.err; then
1665     grep -v '^ *+' conftest.err >conftest.er1
1666     cat conftest.er1 >&5
1667     mv -f conftest.er1 conftest.err
1668   fi
1669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670   test $ac_status = 0; } && {
1671          test -z "$ac_c_werror_flag" ||
1672          test ! -s conftest.err
1673        } && test -s conftest.$ac_objext; then :
1674   ac_retval=0
1675 else
1676   $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679         ac_retval=1
1680 fi
1681   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682   as_fn_set_status $ac_retval
1683
1684 } # ac_fn_c_try_compile
1685
1686 # ac_fn_c_try_cpp LINENO
1687 # ----------------------
1688 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_cpp ()
1690 {
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   if { { ac_try="$ac_cpp conftest.$ac_ext"
1693 case "(($ac_try" in
1694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695   *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700   ac_status=$?
1701   if test -s conftest.err; then
1702     grep -v '^ *+' conftest.err >conftest.er1
1703     cat conftest.er1 >&5
1704     mv -f conftest.er1 conftest.err
1705   fi
1706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707   test $ac_status = 0; } > conftest.i && {
1708          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709          test ! -s conftest.err
1710        }; then :
1711   ac_retval=0
1712 else
1713   $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716     ac_retval=1
1717 fi
1718   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719   as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_cpp
1722
1723 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1726 # the include files in INCLUDES and setting the cache variable VAR
1727 # accordingly.
1728 ac_fn_c_check_header_mongrel ()
1729 {
1730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731   if eval \${$3+:} false; then :
1732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735   $as_echo_n "(cached) " >&6
1736 fi
1737 eval ac_res=\$$3
1738                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1740 else
1741   # Is the header compilable?
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1743 $as_echo_n "checking $2 usability... " >&6; }
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h.  */
1746 $4
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"; then :
1750   ac_header_compiler=yes
1751 else
1752   ac_header_compiler=no
1753 fi
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1756 $as_echo "$ac_header_compiler" >&6; }
1757
1758 # Is the header present?
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1760 $as_echo_n "checking $2 presence... " >&6; }
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h.  */
1763 #include <$2>
1764 _ACEOF
1765 if ac_fn_c_try_cpp "$LINENO"; then :
1766   ac_header_preproc=yes
1767 else
1768   ac_header_preproc=no
1769 fi
1770 rm -f conftest.err conftest.i conftest.$ac_ext
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1772 $as_echo "$ac_header_preproc" >&6; }
1773
1774 # So?  What about this header?
1775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1776   yes:no: )
1777     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1778 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1779     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781     ;;
1782   no:yes:* )
1783     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1784 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1785     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1786 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1787     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1788 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1789     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1790 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1791     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793 ( $as_echo "## ---------------------------------------------------------------------------- ##
1794 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig ##
1795 ## ---------------------------------------------------------------------------- ##"
1796      ) | sed "s/^/$as_me: WARNING:     /" >&2
1797     ;;
1798 esac
1799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802   $as_echo_n "(cached) " >&6
1803 else
1804   eval "$3=\$ac_header_compiler"
1805 fi
1806 eval ac_res=\$$3
1807                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 fi
1810   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811
1812 } # ac_fn_c_check_header_mongrel
1813
1814 # ac_fn_c_try_run LINENO
1815 # ----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817 # that executables *can* be run.
1818 ac_fn_c_try_run ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   if { { ac_try="$ac_link"
1822 case "(($ac_try" in
1823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824   *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828   (eval "$ac_link") 2>&5
1829   ac_status=$?
1830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832   { { case "(($ac_try" in
1833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834   *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838   (eval "$ac_try") 2>&5
1839   ac_status=$?
1840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841   test $ac_status = 0; }; }; then :
1842   ac_retval=0
1843 else
1844   $as_echo "$as_me: program exited with status $ac_status" >&5
1845        $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848        ac_retval=$ac_status
1849 fi
1850   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852   as_fn_set_status $ac_retval
1853
1854 } # ac_fn_c_try_run
1855
1856 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1857 # -------------------------------------------------------
1858 # Tests whether HEADER exists and can be compiled using the include files in
1859 # INCLUDES, setting the cache variable VAR accordingly.
1860 ac_fn_c_check_header_compile ()
1861 {
1862   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if eval \${$3+:} false; then :
1866   $as_echo_n "(cached) " >&6
1867 else
1868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h.  */
1870 $4
1871 #include <$2>
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874   eval "$3=yes"
1875 else
1876   eval "$3=no"
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 fi
1880 eval ac_res=\$$3
1881                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885 } # ac_fn_c_check_header_compile
1886
1887 # ac_fn_c_try_link LINENO
1888 # -----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded.
1890 ac_fn_c_try_link ()
1891 {
1892   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893   rm -f conftest.$ac_objext conftest$ac_exeext
1894   if { { ac_try="$ac_link"
1895 case "(($ac_try" in
1896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897   *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901   (eval "$ac_link") 2>conftest.err
1902   ac_status=$?
1903   if test -s conftest.err; then
1904     grep -v '^ *+' conftest.err >conftest.er1
1905     cat conftest.er1 >&5
1906     mv -f conftest.er1 conftest.err
1907   fi
1908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909   test $ac_status = 0; } && {
1910          test -z "$ac_c_werror_flag" ||
1911          test ! -s conftest.err
1912        } && test -s conftest$ac_exeext && {
1913          test "$cross_compiling" = yes ||
1914          test -x conftest$ac_exeext
1915        }; then :
1916   ac_retval=0
1917 else
1918   $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921         ac_retval=1
1922 fi
1923   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1924   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1925   # interfere with the next link command; also delete a directory that is
1926   # left behind by Apple's compiler.  We do this before executing the actions.
1927   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929   as_fn_set_status $ac_retval
1930
1931 } # ac_fn_c_try_link
1932
1933 # ac_fn_c_check_func LINENO FUNC VAR
1934 # ----------------------------------
1935 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1936 ac_fn_c_check_func ()
1937 {
1938   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942   $as_echo_n "(cached) " >&6
1943 else
1944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h.  */
1946 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1948 #define $2 innocuous_$2
1949
1950 /* System header to define __stub macros and hopefully few prototypes,
1951     which can conflict with char $2 (); below.
1952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1953     <limits.h> exists even on freestanding compilers.  */
1954
1955 #ifdef __STDC__
1956 # include <limits.h>
1957 #else
1958 # include <assert.h>
1959 #endif
1960
1961 #undef $2
1962
1963 /* Override any GCC internal prototype to avoid an error.
1964    Use char because int might match the return type of a GCC
1965    builtin and then its argument prototype would still apply.  */
1966 #ifdef __cplusplus
1967 extern "C"
1968 #endif
1969 char $2 ();
1970 /* The GNU C library defines this for functions which it implements
1971     to always fail with ENOSYS.  Some functions are actually named
1972     something starting with __ and the normal name is an alias.  */
1973 #if defined __stub_$2 || defined __stub___$2
1974 choke me
1975 #endif
1976
1977 int
1978 main ()
1979 {
1980 return $2 ();
1981   ;
1982   return 0;
1983 }
1984 _ACEOF
1985 if ac_fn_c_try_link "$LINENO"; then :
1986   eval "$3=yes"
1987 else
1988   eval "$3=no"
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext \
1991     conftest$ac_exeext conftest.$ac_ext
1992 fi
1993 eval ac_res=\$$3
1994                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997
1998 } # ac_fn_c_check_func
1999
2000 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2001 # ---------------------------------------------
2002 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2003 # accordingly.
2004 ac_fn_c_check_decl ()
2005 {
2006   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007   as_decl_name=`echo $2|sed 's/ *(.*//'`
2008   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2010 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2011 if eval \${$3+:} false; then :
2012   $as_echo_n "(cached) " >&6
2013 else
2014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h.  */
2016 $4
2017 int
2018 main ()
2019 {
2020 #ifndef $as_decl_name
2021 #ifdef __cplusplus
2022   (void) $as_decl_use;
2023 #else
2024   (void) $as_decl_name;
2025 #endif
2026 #endif
2027
2028   ;
2029   return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033   eval "$3=yes"
2034 else
2035   eval "$3=no"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$3
2040                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043
2044 } # ac_fn_c_check_decl
2045
2046 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2047 # -------------------------------------------
2048 # Tests whether TYPE exists after having included INCLUDES, setting cache
2049 # variable VAR accordingly.
2050 ac_fn_c_check_type ()
2051 {
2052   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if eval \${$3+:} false; then :
2056   $as_echo_n "(cached) " >&6
2057 else
2058   eval "$3=no"
2059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h.  */
2061 $4
2062 int
2063 main ()
2064 {
2065 if (sizeof ($2))
2066          return 0;
2067   ;
2068   return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h.  */
2074 $4
2075 int
2076 main ()
2077 {
2078 if (sizeof (($2)))
2079             return 0;
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085
2086 else
2087   eval "$3=yes"
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 fi
2093 eval ac_res=\$$3
2094                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097
2098 } # ac_fn_c_check_type
2099
2100 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2101 # --------------------------------------------
2102 # Tries to find the compile-time value of EXPR in a program that includes
2103 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2104 # computed
2105 ac_fn_c_compute_int ()
2106 {
2107   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108   if test "$cross_compiling" = yes; then
2109     # Depending upon the size, compute the lo and hi bounds.
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h.  */
2112 $4
2113 int
2114 main ()
2115 {
2116 static int test_array [1 - 2 * !(($2) >= 0)];
2117 test_array [0] = 0;
2118 return test_array [0];
2119
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125   ac_lo=0 ac_mid=0
2126   while :; do
2127     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h.  */
2129 $4
2130 int
2131 main ()
2132 {
2133 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2134 test_array [0] = 0;
2135 return test_array [0];
2136
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142   ac_hi=$ac_mid; break
2143 else
2144   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2145                         if test $ac_lo -le $ac_mid; then
2146                           ac_lo= ac_hi=
2147                           break
2148                         fi
2149                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152   done
2153 else
2154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h.  */
2156 $4
2157 int
2158 main ()
2159 {
2160 static int test_array [1 - 2 * !(($2) < 0)];
2161 test_array [0] = 0;
2162 return test_array [0];
2163
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169   ac_hi=-1 ac_mid=-1
2170   while :; do
2171     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h.  */
2173 $4
2174 int
2175 main ()
2176 {
2177 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2178 test_array [0] = 0;
2179 return test_array [0];
2180
2181   ;
2182   return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"; then :
2186   ac_lo=$ac_mid; break
2187 else
2188   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2189                         if test $ac_mid -le $ac_hi; then
2190                           ac_lo= ac_hi=
2191                           break
2192                         fi
2193                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196   done
2197 else
2198   ac_lo= ac_hi=
2199 fi
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 fi
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 # Binary search between lo and hi bounds.
2204 while test "x$ac_lo" != "x$ac_hi"; do
2205   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h.  */
2208 $4
2209 int
2210 main ()
2211 {
2212 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2213 test_array [0] = 0;
2214 return test_array [0];
2215
2216   ;
2217   return 0;
2218 }
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221   ac_hi=$ac_mid
2222 else
2223   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2224 fi
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 done
2227 case $ac_lo in #((
2228 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2229 '') ac_retval=1 ;;
2230 esac
2231   else
2232     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h.  */
2234 $4
2235 static long int longval () { return $2; }
2236 static unsigned long int ulongval () { return $2; }
2237 #include <stdio.h>
2238 #include <stdlib.h>
2239 int
2240 main ()
2241 {
2242
2243   FILE *f = fopen ("conftest.val", "w");
2244   if (! f)
2245     return 1;
2246   if (($2) < 0)
2247     {
2248       long int i = longval ();
2249       if (i != ($2))
2250         return 1;
2251       fprintf (f, "%ld", i);
2252     }
2253   else
2254     {
2255       unsigned long int i = ulongval ();
2256       if (i != ($2))
2257         return 1;
2258       fprintf (f, "%lu", i);
2259     }
2260   /* Do not output a trailing newline, as this causes \r\n confusion
2261      on some platforms.  */
2262   return ferror (f) || fclose (f) != 0;
2263
2264   ;
2265   return 0;
2266 }
2267 _ACEOF
2268 if ac_fn_c_try_run "$LINENO"; then :
2269   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2270 else
2271   ac_retval=1
2272 fi
2273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2274   conftest.$ac_objext conftest.beam conftest.$ac_ext
2275 rm -f conftest.val
2276
2277   fi
2278   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279   as_fn_set_status $ac_retval
2280
2281 } # ac_fn_c_compute_int
2282
2283 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2284 # ----------------------------------------------------
2285 # Tries to find if the field MEMBER exists in type AGGR, after including
2286 # INCLUDES, setting cache variable VAR accordingly.
2287 ac_fn_c_check_member ()
2288 {
2289   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2291 $as_echo_n "checking for $2.$3... " >&6; }
2292 if eval \${$4+:} false; then :
2293   $as_echo_n "(cached) " >&6
2294 else
2295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h.  */
2297 $5
2298 int
2299 main ()
2300 {
2301 static $2 ac_aggr;
2302 if (ac_aggr.$3)
2303 return 0;
2304   ;
2305   return 0;
2306 }
2307 _ACEOF
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309   eval "$4=yes"
2310 else
2311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h.  */
2313 $5
2314 int
2315 main ()
2316 {
2317 static $2 ac_aggr;
2318 if (sizeof ac_aggr.$3)
2319 return 0;
2320   ;
2321   return 0;
2322 }
2323 _ACEOF
2324 if ac_fn_c_try_compile "$LINENO"; then :
2325   eval "$4=yes"
2326 else
2327   eval "$4=no"
2328 fi
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 eval ac_res=\$$4
2334                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337
2338 } # ac_fn_c_check_member
2339 cat >config.log <<_ACEOF
2340 This file contains any messages produced by compilers while
2341 running configure, to aid debugging if configure makes a mistake.
2342
2343 It was created by fontconfig $as_me 2.11.93, which was
2344 generated by GNU Autoconf 2.69.  Invocation command line was
2345
2346   $ $0 $@
2347
2348 _ACEOF
2349 exec 5>>config.log
2350 {
2351 cat <<_ASUNAME
2352 ## --------- ##
2353 ## Platform. ##
2354 ## --------- ##
2355
2356 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2357 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2358 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2359 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2360 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2361
2362 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2363 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2364
2365 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2366 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2367 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2368 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2369 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2370 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2371 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2372
2373 _ASUNAME
2374
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380     $as_echo "PATH: $as_dir"
2381   done
2382 IFS=$as_save_IFS
2383
2384 } >&5
2385
2386 cat >&5 <<_ACEOF
2387
2388
2389 ## ----------- ##
2390 ## Core tests. ##
2391 ## ----------- ##
2392
2393 _ACEOF
2394
2395
2396 # Keep a trace of the command line.
2397 # Strip out --no-create and --no-recursion so they do not pile up.
2398 # Strip out --silent because we don't want to record it for future runs.
2399 # Also quote any args containing shell meta-characters.
2400 # Make two passes to allow for proper duplicate-argument suppression.
2401 ac_configure_args=
2402 ac_configure_args0=
2403 ac_configure_args1=
2404 ac_must_keep_next=false
2405 for ac_pass in 1 2
2406 do
2407   for ac_arg
2408   do
2409     case $ac_arg in
2410     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2411     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2412     | -silent | --silent | --silen | --sile | --sil)
2413       continue ;;
2414     *\'*)
2415       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2416     esac
2417     case $ac_pass in
2418     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2419     2)
2420       as_fn_append ac_configure_args1 " '$ac_arg'"
2421       if test $ac_must_keep_next = true; then
2422         ac_must_keep_next=false # Got value, back to normal.
2423       else
2424         case $ac_arg in
2425           *=* | --config-cache | -C | -disable-* | --disable-* \
2426           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2427           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2428           | -with-* | --with-* | -without-* | --without-* | --x)
2429             case "$ac_configure_args0 " in
2430               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2431             esac
2432             ;;
2433           -* ) ac_must_keep_next=true ;;
2434         esac
2435       fi
2436       as_fn_append ac_configure_args " '$ac_arg'"
2437       ;;
2438     esac
2439   done
2440 done
2441 { ac_configure_args0=; unset ac_configure_args0;}
2442 { ac_configure_args1=; unset ac_configure_args1;}
2443
2444 # When interrupted or exit'd, cleanup temporary files, and complete
2445 # config.log.  We remove comments because anyway the quotes in there
2446 # would cause problems or look ugly.
2447 # WARNING: Use '\'' to represent an apostrophe within the trap.
2448 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2449 trap 'exit_status=$?
2450   # Save into config.log some information that might help in debugging.
2451   {
2452     echo
2453
2454     $as_echo "## ---------------- ##
2455 ## Cache variables. ##
2456 ## ---------------- ##"
2457     echo
2458     # The following way of writing the cache mishandles newlines in values,
2459 (
2460   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2461     eval ac_val=\$$ac_var
2462     case $ac_val in #(
2463     *${as_nl}*)
2464       case $ac_var in #(
2465       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2467       esac
2468       case $ac_var in #(
2469       _ | IFS | as_nl) ;; #(
2470       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2471       *) { eval $ac_var=; unset $ac_var;} ;;
2472       esac ;;
2473     esac
2474   done
2475   (set) 2>&1 |
2476     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2477     *${as_nl}ac_space=\ *)
2478       sed -n \
2479         "s/'\''/'\''\\\\'\'''\''/g;
2480           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2481       ;; #(
2482     *)
2483       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2484       ;;
2485     esac |
2486     sort
2487 )
2488     echo
2489
2490     $as_echo "## ----------------- ##
2491 ## Output variables. ##
2492 ## ----------------- ##"
2493     echo
2494     for ac_var in $ac_subst_vars
2495     do
2496       eval ac_val=\$$ac_var
2497       case $ac_val in
2498       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2499       esac
2500       $as_echo "$ac_var='\''$ac_val'\''"
2501     done | sort
2502     echo
2503
2504     if test -n "$ac_subst_files"; then
2505       $as_echo "## ------------------- ##
2506 ## File substitutions. ##
2507 ## ------------------- ##"
2508       echo
2509       for ac_var in $ac_subst_files
2510       do
2511         eval ac_val=\$$ac_var
2512         case $ac_val in
2513         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514         esac
2515         $as_echo "$ac_var='\''$ac_val'\''"
2516       done | sort
2517       echo
2518     fi
2519
2520     if test -s confdefs.h; then
2521       $as_echo "## ----------- ##
2522 ## confdefs.h. ##
2523 ## ----------- ##"
2524       echo
2525       cat confdefs.h
2526       echo
2527     fi
2528     test "$ac_signal" != 0 &&
2529       $as_echo "$as_me: caught signal $ac_signal"
2530     $as_echo "$as_me: exit $exit_status"
2531   } >&5
2532   rm -f core *.core core.conftest.* &&
2533     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2534     exit $exit_status
2535 ' 0
2536 for ac_signal in 1 2 13 15; do
2537   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2538 done
2539 ac_signal=0
2540
2541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2542 rm -f -r conftest* confdefs.h
2543
2544 $as_echo "/* confdefs.h */" > confdefs.h
2545
2546 # Predefined preprocessor variables.
2547
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_NAME "$PACKAGE_NAME"
2550 _ACEOF
2551
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2554 _ACEOF
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_STRING "$PACKAGE_STRING"
2562 _ACEOF
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2566 _ACEOF
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_URL "$PACKAGE_URL"
2570 _ACEOF
2571
2572
2573 # Let the site file select an alternate cache file if it wants to.
2574 # Prefer an explicitly selected file to automatically selected ones.
2575 ac_site_file1=NONE
2576 ac_site_file2=NONE
2577 if test -n "$CONFIG_SITE"; then
2578   # We do not want a PATH search for config.site.
2579   case $CONFIG_SITE in #((
2580     -*)  ac_site_file1=./$CONFIG_SITE;;
2581     */*) ac_site_file1=$CONFIG_SITE;;
2582     *)   ac_site_file1=./$CONFIG_SITE;;
2583   esac
2584 elif test "x$prefix" != xNONE; then
2585   ac_site_file1=$prefix/share/config.site
2586   ac_site_file2=$prefix/etc/config.site
2587 else
2588   ac_site_file1=$ac_default_prefix/share/config.site
2589   ac_site_file2=$ac_default_prefix/etc/config.site
2590 fi
2591 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2592 do
2593   test "x$ac_site_file" = xNONE && continue
2594   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2595     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2596 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2597     sed 's/^/| /' "$ac_site_file" >&5
2598     . "$ac_site_file" \
2599       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601 as_fn_error $? "failed to load site script $ac_site_file
2602 See \`config.log' for more details" "$LINENO" 5; }
2603   fi
2604 done
2605
2606 if test -r "$cache_file"; then
2607   # Some versions of bash will fail to source /dev/null (special files
2608   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2609   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2610     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2611 $as_echo "$as_me: loading cache $cache_file" >&6;}
2612     case $cache_file in
2613       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2614       *)                      . "./$cache_file";;
2615     esac
2616   fi
2617 else
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2619 $as_echo "$as_me: creating cache $cache_file" >&6;}
2620   >$cache_file
2621 fi
2622
2623 as_fn_append ac_header_list " stdlib.h"
2624 as_fn_append ac_header_list " unistd.h"
2625 as_fn_append ac_header_list " sys/param.h"
2626 # Check that the precious variables saved in the cache have kept the same
2627 # value.
2628 ac_cache_corrupted=false
2629 for ac_var in $ac_precious_vars; do
2630   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2631   eval ac_new_set=\$ac_env_${ac_var}_set
2632   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2633   eval ac_new_val=\$ac_env_${ac_var}_value
2634   case $ac_old_set,$ac_new_set in
2635     set,)
2636       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2637 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2638       ac_cache_corrupted=: ;;
2639     ,set)
2640       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2641 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2642       ac_cache_corrupted=: ;;
2643     ,);;
2644     *)
2645       if test "x$ac_old_val" != "x$ac_new_val"; then
2646         # differences in whitespace do not lead to failure.
2647         ac_old_val_w=`echo x $ac_old_val`
2648         ac_new_val_w=`echo x $ac_new_val`
2649         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2650           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2651 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2652           ac_cache_corrupted=:
2653         else
2654           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2655 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2656           eval $ac_var=\$ac_old_val
2657         fi
2658         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2659 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2660         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2661 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2662       fi;;
2663   esac
2664   # Pass precious variables to config.status.
2665   if test "$ac_new_set" = set; then
2666     case $ac_new_val in
2667     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2668     *) ac_arg=$ac_var=$ac_new_val ;;
2669     esac
2670     case " $ac_configure_args " in
2671       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2672       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2673     esac
2674   fi
2675 done
2676 if $ac_cache_corrupted; then
2677   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2679   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2680 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2681   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2682 fi
2683 ## -------------------- ##
2684 ## Main body of script. ##
2685 ## -------------------- ##
2686
2687 ac_ext=c
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692
2693
2694 am__api_version='1.14'
2695
2696 ac_aux_dir=
2697 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2698   if test -f "$ac_dir/install-sh"; then
2699     ac_aux_dir=$ac_dir
2700     ac_install_sh="$ac_aux_dir/install-sh -c"
2701     break
2702   elif test -f "$ac_dir/install.sh"; then
2703     ac_aux_dir=$ac_dir
2704     ac_install_sh="$ac_aux_dir/install.sh -c"
2705     break
2706   elif test -f "$ac_dir/shtool"; then
2707     ac_aux_dir=$ac_dir
2708     ac_install_sh="$ac_aux_dir/shtool install -c"
2709     break
2710   fi
2711 done
2712 if test -z "$ac_aux_dir"; then
2713   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2714 fi
2715
2716 # These three variables are undocumented and unsupported,
2717 # and are intended to be withdrawn in a future Autoconf release.
2718 # They can cause serious problems if a builder's source tree is in a directory
2719 # whose full name contains unusual characters.
2720 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2721 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2722 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2723
2724
2725 # Find a good install program.  We prefer a C program (faster),
2726 # so one script is as good as another.  But avoid the broken or
2727 # incompatible versions:
2728 # SysV /etc/install, /usr/sbin/install
2729 # SunOS /usr/etc/install
2730 # IRIX /sbin/install
2731 # AIX /bin/install
2732 # AmigaOS /C/install, which installs bootblocks on floppy discs
2733 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2734 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2735 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2736 # OS/2's system install, which has a completely different semantic
2737 # ./install, which can be erroneously created by make from ./install.sh.
2738 # Reject install programs that cannot install multiple files.
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2740 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2741 if test -z "$INSTALL"; then
2742 if ${ac_cv_path_install+:} false; then :
2743   $as_echo_n "(cached) " >&6
2744 else
2745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748   IFS=$as_save_IFS
2749   test -z "$as_dir" && as_dir=.
2750     # Account for people who put trailing slashes in PATH elements.
2751 case $as_dir/ in #((
2752   ./ | .// | /[cC]/* | \
2753   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2754   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2755   /usr/ucb/* ) ;;
2756   *)
2757     # OSF1 and SCO ODT 3.0 have their own names for install.
2758     # Don't use installbsd from OSF since it installs stuff as root
2759     # by default.
2760     for ac_prog in ginstall scoinst install; do
2761       for ac_exec_ext in '' $ac_executable_extensions; do
2762         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2763           if test $ac_prog = install &&
2764             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2765             # AIX install.  It has an incompatible calling convention.
2766             :
2767           elif test $ac_prog = install &&
2768             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2769             # program-specific install script used by HP pwplus--don't use.
2770             :
2771           else
2772             rm -rf conftest.one conftest.two conftest.dir
2773             echo one > conftest.one
2774             echo two > conftest.two
2775             mkdir conftest.dir
2776             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2777               test -s conftest.one && test -s conftest.two &&
2778               test -s conftest.dir/conftest.one &&
2779               test -s conftest.dir/conftest.two
2780             then
2781               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2782               break 3
2783             fi
2784           fi
2785         fi
2786       done
2787     done
2788     ;;
2789 esac
2790
2791   done
2792 IFS=$as_save_IFS
2793
2794 rm -rf conftest.one conftest.two conftest.dir
2795
2796 fi
2797   if test "${ac_cv_path_install+set}" = set; then
2798     INSTALL=$ac_cv_path_install
2799   else
2800     # As a last resort, use the slow shell script.  Don't cache a
2801     # value for INSTALL within a source directory, because that will
2802     # break other packages using the cache if that directory is
2803     # removed, or if the value is a relative name.
2804     INSTALL=$ac_install_sh
2805   fi
2806 fi
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2808 $as_echo "$INSTALL" >&6; }
2809
2810 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2811 # It thinks the first close brace ends the variable substitution.
2812 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2813
2814 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2815
2816 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2817
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2819 $as_echo_n "checking whether build environment is sane... " >&6; }
2820 # Reject unsafe characters in $srcdir or the absolute working directory
2821 # name.  Accept space and tab only in the latter.
2822 am_lf='
2823 '
2824 case `pwd` in
2825   *[\\\"\#\$\&\'\`$am_lf]*)
2826     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2827 esac
2828 case $srcdir in
2829   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2830     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2831 esac
2832
2833 # Do 'set' in a subshell so we don't clobber the current shell's
2834 # arguments.  Must try -L first in case configure is actually a
2835 # symlink; some systems play weird games with the mod time of symlinks
2836 # (eg FreeBSD returns the mod time of the symlink's containing
2837 # directory).
2838 if (
2839    am_has_slept=no
2840    for am_try in 1 2; do
2841      echo "timestamp, slept: $am_has_slept" > conftest.file
2842      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2843      if test "$*" = "X"; then
2844         # -L didn't work.
2845         set X `ls -t "$srcdir/configure" conftest.file`
2846      fi
2847      if test "$*" != "X $srcdir/configure conftest.file" \
2848         && test "$*" != "X conftest.file $srcdir/configure"; then
2849
2850         # If neither matched, then we have a broken ls.  This can happen
2851         # if, for instance, CONFIG_SHELL is bash and it inherits a
2852         # broken ls alias from the environment.  This has actually
2853         # happened.  Such a system could not be considered "sane".
2854         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2855   alias in your environment" "$LINENO" 5
2856      fi
2857      if test "$2" = conftest.file || test $am_try -eq 2; then
2858        break
2859      fi
2860      # Just in case.
2861      sleep 1
2862      am_has_slept=yes
2863    done
2864    test "$2" = conftest.file
2865    )
2866 then
2867    # Ok.
2868    :
2869 else
2870    as_fn_error $? "newly created file is older than distributed files!
2871 Check your system clock" "$LINENO" 5
2872 fi
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874 $as_echo "yes" >&6; }
2875 # If we didn't sleep, we still need to ensure time stamps of config.status and
2876 # generated files are strictly newer.
2877 am_sleep_pid=
2878 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2879   ( sleep 1 ) &
2880   am_sleep_pid=$!
2881 fi
2882
2883 rm -f conftest.file
2884
2885 test "$program_prefix" != NONE &&
2886   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2887 # Use a double $ so make ignores it.
2888 test "$program_suffix" != NONE &&
2889   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2890 # Double any \ or $.
2891 # By default was `s,x,x', remove it if useless.
2892 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2893 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2894
2895 # expand $ac_aux_dir to an absolute path
2896 am_aux_dir=`cd $ac_aux_dir && pwd`
2897
2898 if test x"${MISSING+set}" != xset; then
2899   case $am_aux_dir in
2900   *\ * | *\     *)
2901     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2902   *)
2903     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2904   esac
2905 fi
2906 # Use eval to expand $SHELL
2907 if eval "$MISSING --is-lightweight"; then
2908   am_missing_run="$MISSING "
2909 else
2910   am_missing_run=
2911   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2912 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2913 fi
2914
2915 if test x"${install_sh}" != xset; then
2916   case $am_aux_dir in
2917   *\ * | *\     *)
2918     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2919   *)
2920     install_sh="\${SHELL} $am_aux_dir/install-sh"
2921   esac
2922 fi
2923
2924 # Installed binaries are usually stripped using 'strip' when the user
2925 # run "make install-strip".  However 'strip' might not be the right
2926 # tool to use in cross-compilation environments, therefore Automake
2927 # will honor the 'STRIP' environment variable to overrule this program.
2928 if test "$cross_compiling" != no; then
2929   if test -n "$ac_tool_prefix"; then
2930   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2931 set dummy ${ac_tool_prefix}strip; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_STRIP+:} false; then :
2935   $as_echo_n "(cached) " >&6
2936 else
2937   if test -n "$STRIP"; then
2938   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943   IFS=$as_save_IFS
2944   test -z "$as_dir" && as_dir=.
2945     for ac_exec_ext in '' $ac_executable_extensions; do
2946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949     break 2
2950   fi
2951 done
2952   done
2953 IFS=$as_save_IFS
2954
2955 fi
2956 fi
2957 STRIP=$ac_cv_prog_STRIP
2958 if test -n "$STRIP"; then
2959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2960 $as_echo "$STRIP" >&6; }
2961 else
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2965
2966
2967 fi
2968 if test -z "$ac_cv_prog_STRIP"; then
2969   ac_ct_STRIP=$STRIP
2970   # Extract the first word of "strip", so it can be a program name with args.
2971 set dummy strip; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2975   $as_echo_n "(cached) " >&6
2976 else
2977   if test -n "$ac_ct_STRIP"; then
2978   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983   IFS=$as_save_IFS
2984   test -z "$as_dir" && as_dir=.
2985     for ac_exec_ext in '' $ac_executable_extensions; do
2986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987     ac_cv_prog_ac_ct_STRIP="strip"
2988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989     break 2
2990   fi
2991 done
2992   done
2993 IFS=$as_save_IFS
2994
2995 fi
2996 fi
2997 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2998 if test -n "$ac_ct_STRIP"; then
2999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3000 $as_echo "$ac_ct_STRIP" >&6; }
3001 else
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3004 fi
3005
3006   if test "x$ac_ct_STRIP" = x; then
3007     STRIP=":"
3008   else
3009     case $cross_compiling:$ac_tool_warned in
3010 yes:)
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3013 ac_tool_warned=yes ;;
3014 esac
3015     STRIP=$ac_ct_STRIP
3016   fi
3017 else
3018   STRIP="$ac_cv_prog_STRIP"
3019 fi
3020
3021 fi
3022 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3023
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3025 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3026 if test -z "$MKDIR_P"; then
3027   if ${ac_cv_path_mkdir+:} false; then :
3028   $as_echo_n "(cached) " >&6
3029 else
3030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3032 do
3033   IFS=$as_save_IFS
3034   test -z "$as_dir" && as_dir=.
3035     for ac_prog in mkdir gmkdir; do
3036          for ac_exec_ext in '' $ac_executable_extensions; do
3037            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3038            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3039              'mkdir (GNU coreutils) '* | \
3040              'mkdir (coreutils) '* | \
3041              'mkdir (fileutils) '4.1*)
3042                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3043                break 3;;
3044            esac
3045          done
3046        done
3047   done
3048 IFS=$as_save_IFS
3049
3050 fi
3051
3052   test -d ./--version && rmdir ./--version
3053   if test "${ac_cv_path_mkdir+set}" = set; then
3054     MKDIR_P="$ac_cv_path_mkdir -p"
3055   else
3056     # As a last resort, use the slow shell script.  Don't cache a
3057     # value for MKDIR_P within a source directory, because that will
3058     # break other packages using the cache if that directory is
3059     # removed, or if the value is a relative name.
3060     MKDIR_P="$ac_install_sh -d"
3061   fi
3062 fi
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3064 $as_echo "$MKDIR_P" >&6; }
3065
3066 for ac_prog in gawk mawk nawk awk
3067 do
3068   # Extract the first word of "$ac_prog", so it can be a program name with args.
3069 set dummy $ac_prog; ac_word=$2
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071 $as_echo_n "checking for $ac_word... " >&6; }
3072 if ${ac_cv_prog_AWK+:} false; then :
3073   $as_echo_n "(cached) " >&6
3074 else
3075   if test -n "$AWK"; then
3076   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3077 else
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081   IFS=$as_save_IFS
3082   test -z "$as_dir" && as_dir=.
3083     for ac_exec_ext in '' $ac_executable_extensions; do
3084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085     ac_cv_prog_AWK="$ac_prog"
3086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087     break 2
3088   fi
3089 done
3090   done
3091 IFS=$as_save_IFS
3092
3093 fi
3094 fi
3095 AWK=$ac_cv_prog_AWK
3096 if test -n "$AWK"; then
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3098 $as_echo "$AWK" >&6; }
3099 else
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 $as_echo "no" >&6; }
3102 fi
3103
3104
3105   test -n "$AWK" && break
3106 done
3107
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3109 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3110 set x ${MAKE-make}
3111 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3112 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3113   $as_echo_n "(cached) " >&6
3114 else
3115   cat >conftest.make <<\_ACEOF
3116 SHELL = /bin/sh
3117 all:
3118         @echo '@@@%%%=$(MAKE)=@@@%%%'
3119 _ACEOF
3120 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3121 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3122   *@@@%%%=?*=@@@%%%*)
3123     eval ac_cv_prog_make_${ac_make}_set=yes;;
3124   *)
3125     eval ac_cv_prog_make_${ac_make}_set=no;;
3126 esac
3127 rm -f conftest.make
3128 fi
3129 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3131 $as_echo "yes" >&6; }
3132   SET_MAKE=
3133 else
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136   SET_MAKE="MAKE=${MAKE-make}"
3137 fi
3138
3139 rm -rf .tst 2>/dev/null
3140 mkdir .tst 2>/dev/null
3141 if test -d .tst; then
3142   am__leading_dot=.
3143 else
3144   am__leading_dot=_
3145 fi
3146 rmdir .tst 2>/dev/null
3147
3148 # Check whether --enable-silent-rules was given.
3149 if test "${enable_silent_rules+set}" = set; then :
3150   enableval=$enable_silent_rules;
3151 fi
3152
3153 case $enable_silent_rules in # (((
3154   yes) AM_DEFAULT_VERBOSITY=0;;
3155    no) AM_DEFAULT_VERBOSITY=1;;
3156     *) AM_DEFAULT_VERBOSITY=1;;
3157 esac
3158 am_make=${MAKE-make}
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3160 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3161 if ${am_cv_make_support_nested_variables+:} false; then :
3162   $as_echo_n "(cached) " >&6
3163 else
3164   if $as_echo 'TRUE=$(BAR$(V))
3165 BAR0=false
3166 BAR1=true
3167 V=1
3168 am__doit:
3169         @$(TRUE)
3170 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3171   am_cv_make_support_nested_variables=yes
3172 else
3173   am_cv_make_support_nested_variables=no
3174 fi
3175 fi
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3177 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3178 if test $am_cv_make_support_nested_variables = yes; then
3179     AM_V='$(V)'
3180   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3181 else
3182   AM_V=$AM_DEFAULT_VERBOSITY
3183   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3184 fi
3185 AM_BACKSLASH='\'
3186
3187 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3188   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3189   # is not polluted with repeated "-I."
3190   am__isrc=' -I$(srcdir)'
3191   # test to see if srcdir already configured
3192   if test -f $srcdir/config.status; then
3193     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3194   fi
3195 fi
3196
3197 # test whether we have cygpath
3198 if test -z "$CYGPATH_W"; then
3199   if (cygpath --version) >/dev/null 2>/dev/null; then
3200     CYGPATH_W='cygpath -w'
3201   else
3202     CYGPATH_W=echo
3203   fi
3204 fi
3205
3206
3207 # Define the identity of the package.
3208  PACKAGE='fontconfig'
3209  VERSION='2.11.93'
3210
3211
3212 cat >>confdefs.h <<_ACEOF
3213 #define PACKAGE "$PACKAGE"
3214 _ACEOF
3215
3216
3217 cat >>confdefs.h <<_ACEOF
3218 #define VERSION "$VERSION"
3219 _ACEOF
3220
3221 # Some tools Automake needs.
3222
3223 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3224
3225
3226 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3227
3228
3229 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3230
3231
3232 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3233
3234
3235 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3236
3237 # For better backward compatibility.  To be removed once Automake 1.9.x
3238 # dies out for good.  For more background, see:
3239 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3240 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3241 mkdir_p='$(MKDIR_P)'
3242
3243 # We need awk for the "check" target.  The system "awk" is bad on
3244 # some platforms.
3245 # Always define AMTAR for backward compatibility.  Yes, it's still used
3246 # in the wild :-(  We should find a proper way to deprecate it ...
3247 AMTAR='$${TAR-tar}'
3248
3249
3250 # We'll loop over all known methods to create a tar archive until one works.
3251 _am_tools='gnutar  pax cpio none'
3252
3253 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3254
3255
3256
3257
3258
3259
3260 # POSIX will say in a future version that running "rm -f" with no argument
3261 # is OK; and we want to be able to make that assumption in our Makefile
3262 # recipes.  So use an aggressive probe to check that the usage we want is
3263 # actually supported "in the wild" to an acceptable degree.
3264 # See automake bug#10828.
3265 # To make any issue more visible, cause the running configure to be aborted
3266 # by default if the 'rm' program in use doesn't match our expectations; the
3267 # user can still override this though.
3268 if rm -f && rm -fr && rm -rf; then : OK; else
3269   cat >&2 <<'END'
3270 Oops!
3271
3272 Your 'rm' program seems unable to run without file operands specified
3273 on the command line, even when the '-f' option is present.  This is contrary
3274 to the behaviour of most rm programs out there, and not conforming with
3275 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3276
3277 Please tell bug-automake@gnu.org about your system, including the value
3278 of your $PATH and any error possibly output before this message.  This
3279 can help us improve future automake versions.
3280
3281 END
3282   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3283     echo 'Configuration will proceed anyway, since you have set the' >&2
3284     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3285     echo >&2
3286   else
3287     cat >&2 <<'END'
3288 Aborting the configuration process, to ensure you take notice of the issue.
3289
3290 You can download and install GNU coreutils to get an 'rm' implementation
3291 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3292
3293 If you want to complete the configuration process using your problematic
3294 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3295 to "yes", and re-run configure.
3296
3297 END
3298     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3299   fi
3300 fi
3301 # Check whether --enable-silent-rules was given.
3302 if test "${enable_silent_rules+set}" = set; then :
3303   enableval=$enable_silent_rules;
3304 fi
3305
3306 case $enable_silent_rules in # (((
3307   yes) AM_DEFAULT_VERBOSITY=0;;
3308    no) AM_DEFAULT_VERBOSITY=1;;
3309     *) AM_DEFAULT_VERBOSITY=0;;
3310 esac
3311 am_make=${MAKE-make}
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3313 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3314 if ${am_cv_make_support_nested_variables+:} false; then :
3315   $as_echo_n "(cached) " >&6
3316 else
3317   if $as_echo 'TRUE=$(BAR$(V))
3318 BAR0=false
3319 BAR1=true
3320 V=1
3321 am__doit:
3322         @$(TRUE)
3323 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3324   am_cv_make_support_nested_variables=yes
3325 else
3326   am_cv_make_support_nested_variables=no
3327 fi
3328 fi
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3330 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3331 if test $am_cv_make_support_nested_variables = yes; then
3332     AM_V='$(V)'
3333   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3334 else
3335   AM_V=$AM_DEFAULT_VERBOSITY
3336   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3337 fi
3338 AM_BACKSLASH='\'
3339
3340
3341
3342 ac_config_headers="$ac_config_headers config.h"
3343
3344
3345
3346 ac_ext=c
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 if test -n "$ac_tool_prefix"; then
3352   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_CC+:} false; then :
3357   $as_echo_n "(cached) " >&6
3358 else
3359   if test -n "$CC"; then
3360   ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365   IFS=$as_save_IFS
3366   test -z "$as_dir" && as_dir=.
3367     for ac_exec_ext in '' $ac_executable_extensions; do
3368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371     break 2
3372   fi
3373 done
3374   done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382 $as_echo "$CC" >&6; }
3383 else
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 fi
3387
3388
3389 fi
3390 if test -z "$ac_cv_prog_CC"; then
3391   ac_ct_CC=$CC
3392   # Extract the first word of "gcc", so it can be a program name with args.
3393 set dummy gcc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   if test -n "$ac_ct_CC"; then
3400   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405   IFS=$as_save_IFS
3406   test -z "$as_dir" && as_dir=.
3407     for ac_exec_ext in '' $ac_executable_extensions; do
3408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409     ac_cv_prog_ac_ct_CC="gcc"
3410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411     break 2
3412   fi
3413 done
3414   done
3415 IFS=$as_save_IFS
3416
3417 fi
3418 fi
3419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420 if test -n "$ac_ct_CC"; then
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422 $as_echo "$ac_ct_CC" >&6; }
3423 else
3424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3426 fi
3427
3428   if test "x$ac_ct_CC" = x; then
3429     CC=""
3430   else
3431     case $cross_compiling:$ac_tool_warned in
3432 yes:)
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435 ac_tool_warned=yes ;;
3436 esac
3437     CC=$ac_ct_CC
3438   fi
3439 else
3440   CC="$ac_cv_prog_CC"
3441 fi
3442
3443 if test -z "$CC"; then
3444           if test -n "$ac_tool_prefix"; then
3445     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3446 set dummy ${ac_tool_prefix}cc; ac_word=$2
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 $as_echo_n "checking for $ac_word... " >&6; }
3449 if ${ac_cv_prog_CC+:} false; then :
3450   $as_echo_n "(cached) " >&6
3451 else
3452   if test -n "$CC"; then
3453   ac_cv_prog_CC="$CC" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460     for ac_exec_ext in '' $ac_executable_extensions; do
3461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462     ac_cv_prog_CC="${ac_tool_prefix}cc"
3463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464     break 2
3465   fi
3466 done
3467   done
3468 IFS=$as_save_IFS
3469
3470 fi
3471 fi
3472 CC=$ac_cv_prog_CC
3473 if test -n "$CC"; then
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3475 $as_echo "$CC" >&6; }
3476 else
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3479 fi
3480
3481
3482   fi
3483 fi
3484 if test -z "$CC"; then
3485   # Extract the first word of "cc", so it can be a program name with args.
3486 set dummy cc; ac_word=$2
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 $as_echo_n "checking for $ac_word... " >&6; }
3489 if ${ac_cv_prog_CC+:} false; then :
3490   $as_echo_n "(cached) " >&6
3491 else
3492   if test -n "$CC"; then
3493   ac_cv_prog_CC="$CC" # Let the user override the test.
3494 else
3495   ac_prog_rejected=no
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3498 do
3499   IFS=$as_save_IFS
3500   test -z "$as_dir" && as_dir=.
3501     for ac_exec_ext in '' $ac_executable_extensions; do
3502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3504        ac_prog_rejected=yes
3505        continue
3506      fi
3507     ac_cv_prog_CC="cc"
3508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509     break 2
3510   fi
3511 done
3512   done
3513 IFS=$as_save_IFS
3514
3515 if test $ac_prog_rejected = yes; then
3516   # We found a bogon in the path, so make sure we never use it.
3517   set dummy $ac_cv_prog_CC
3518   shift
3519   if test $# != 0; then
3520     # We chose a different compiler from the bogus one.
3521     # However, it has the same basename, so the bogon will be chosen
3522     # first if we set CC to just the basename; use the full file name.
3523     shift
3524     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3525   fi
3526 fi
3527 fi
3528 fi
3529 CC=$ac_cv_prog_CC
3530 if test -n "$CC"; then
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532 $as_echo "$CC" >&6; }
3533 else
3534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3536 fi
3537
3538
3539 fi
3540 if test -z "$CC"; then
3541   if test -n "$ac_tool_prefix"; then
3542   for ac_prog in cl.exe
3543   do
3544     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if ${ac_cv_prog_CC+:} false; then :
3549   $as_echo_n "(cached) " >&6
3550 else
3551   if test -n "$CC"; then
3552   ac_cv_prog_CC="$CC" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557   IFS=$as_save_IFS
3558   test -z "$as_dir" && as_dir=.
3559     for ac_exec_ext in '' $ac_executable_extensions; do
3560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563     break 2
3564   fi
3565 done
3566   done
3567 IFS=$as_save_IFS
3568
3569 fi
3570 fi
3571 CC=$ac_cv_prog_CC
3572 if test -n "$CC"; then
3573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3574 $as_echo "$CC" >&6; }
3575 else
3576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3578 fi
3579
3580
3581     test -n "$CC" && break
3582   done
3583 fi
3584 if test -z "$CC"; then
3585   ac_ct_CC=$CC
3586   for ac_prog in cl.exe
3587 do
3588   # Extract the first word of "$ac_prog", so it can be a program name with args.
3589 set dummy $ac_prog; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3593   $as_echo_n "(cached) " >&6
3594 else
3595   if test -n "$ac_ct_CC"; then
3596   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603     for ac_exec_ext in '' $ac_executable_extensions; do
3604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605     ac_cv_prog_ac_ct_CC="$ac_prog"
3606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607     break 2
3608   fi
3609 done
3610   done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3616 if test -n "$ac_ct_CC"; then
3617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3618 $as_echo "$ac_ct_CC" >&6; }
3619 else
3620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 fi
3623
3624
3625   test -n "$ac_ct_CC" && break
3626 done
3627
3628   if test "x$ac_ct_CC" = x; then
3629     CC=""
3630   else
3631     case $cross_compiling:$ac_tool_warned in
3632 yes:)
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3635 ac_tool_warned=yes ;;
3636 esac
3637     CC=$ac_ct_CC
3638   fi
3639 fi
3640
3641 fi
3642
3643
3644 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646 as_fn_error $? "no acceptable C compiler found in \$PATH
3647 See \`config.log' for more details" "$LINENO" 5; }
3648
3649 # Provide some information about the compiler.
3650 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3651 set X $ac_compile
3652 ac_compiler=$2
3653 for ac_option in --version -v -V -qversion; do
3654   { { ac_try="$ac_compiler $ac_option >&5"
3655 case "(($ac_try" in
3656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657   *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3662   ac_status=$?
3663   if test -s conftest.err; then
3664     sed '10a\
3665 ... rest of stderr output deleted ...
3666          10q' conftest.err >conftest.er1
3667     cat conftest.er1 >&5
3668   fi
3669   rm -f conftest.er1 conftest.err
3670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671   test $ac_status = 0; }
3672 done
3673
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h.  */
3676
3677 int
3678 main ()
3679 {
3680
3681   ;
3682   return 0;
3683 }
3684 _ACEOF
3685 ac_clean_files_save=$ac_clean_files
3686 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3687 # Try to create an executable without -o first, disregard a.out.
3688 # It will help us diagnose broken compilers, and finding out an intuition
3689 # of exeext.
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3691 $as_echo_n "checking whether the C compiler works... " >&6; }
3692 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3693
3694 # The possible output files:
3695 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3696
3697 ac_rmfiles=
3698 for ac_file in $ac_files
3699 do
3700   case $ac_file in
3701     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3702     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3703   esac
3704 done
3705 rm -f $ac_rmfiles
3706
3707 if { { ac_try="$ac_link_default"
3708 case "(($ac_try" in
3709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710   *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714   (eval "$ac_link_default") 2>&5
3715   ac_status=$?
3716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717   test $ac_status = 0; }; then :
3718   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3719 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3720 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3721 # so that the user can short-circuit this test for compilers unknown to
3722 # Autoconf.
3723 for ac_file in $ac_files ''
3724 do
3725   test -f "$ac_file" || continue
3726   case $ac_file in
3727     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3728         ;;
3729     [ab].out )
3730         # We found the default executable, but exeext='' is most
3731         # certainly right.
3732         break;;
3733     *.* )
3734         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3735         then :; else
3736            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3737         fi
3738         # We set ac_cv_exeext here because the later test for it is not
3739         # safe: cross compilers may not add the suffix if given an `-o'
3740         # argument, so we may need to know it at that point already.
3741         # Even if this section looks crufty: it has the advantage of
3742         # actually working.
3743         break;;
3744     * )
3745         break;;
3746   esac
3747 done
3748 test "$ac_cv_exeext" = no && ac_cv_exeext=
3749
3750 else
3751   ac_file=''
3752 fi
3753 if test -z "$ac_file"; then :
3754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756 $as_echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3758
3759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 as_fn_error 77 "C compiler cannot create executables
3762 See \`config.log' for more details" "$LINENO" 5; }
3763 else
3764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3765 $as_echo "yes" >&6; }
3766 fi
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3768 $as_echo_n "checking for C compiler default output file name... " >&6; }
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3770 $as_echo "$ac_file" >&6; }
3771 ac_exeext=$ac_cv_exeext
3772
3773 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3774 ac_clean_files=$ac_clean_files_save
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3776 $as_echo_n "checking for suffix of executables... " >&6; }
3777 if { { ac_try="$ac_link"
3778 case "(($ac_try" in
3779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780   *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784   (eval "$ac_link") 2>&5
3785   ac_status=$?
3786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787   test $ac_status = 0; }; then :
3788   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3789 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3790 # work properly (i.e., refer to `conftest.exe'), while it won't with
3791 # `rm'.
3792 for ac_file in conftest.exe conftest conftest.*; do
3793   test -f "$ac_file" || continue
3794   case $ac_file in
3795     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3796     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3797           break;;
3798     * ) break;;
3799   esac
3800 done
3801 else
3802   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3804 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3805 See \`config.log' for more details" "$LINENO" 5; }
3806 fi
3807 rm -f conftest conftest$ac_cv_exeext
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3809 $as_echo "$ac_cv_exeext" >&6; }
3810
3811 rm -f conftest.$ac_ext
3812 EXEEXT=$ac_cv_exeext
3813 ac_exeext=$EXEEXT
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h.  */
3816 #include <stdio.h>
3817 int
3818 main ()
3819 {
3820 FILE *f = fopen ("conftest.out", "w");
3821  return ferror (f) || fclose (f) != 0;
3822
3823   ;
3824   return 0;
3825 }
3826 _ACEOF
3827 ac_clean_files="$ac_clean_files conftest.out"
3828 # Check that the compiler produces executables we can run.  If not, either
3829 # the compiler is broken, or we cross compile.
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3831 $as_echo_n "checking whether we are cross compiling... " >&6; }
3832 if test "$cross_compiling" != yes; then
3833   { { ac_try="$ac_link"
3834 case "(($ac_try" in
3835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836   *) ac_try_echo=$ac_try;;
3837 esac
3838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839 $as_echo "$ac_try_echo"; } >&5
3840   (eval "$ac_link") 2>&5
3841   ac_status=$?
3842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843   test $ac_status = 0; }
3844   if { ac_try='./conftest$ac_cv_exeext'
3845   { { case "(($ac_try" in
3846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847   *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851   (eval "$ac_try") 2>&5
3852   ac_status=$?
3853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854   test $ac_status = 0; }; }; then
3855     cross_compiling=no
3856   else
3857     if test "$cross_compiling" = maybe; then
3858         cross_compiling=yes
3859     else
3860         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "cannot run C compiled programs.
3863 If you meant to cross compile, use \`--host'.
3864 See \`config.log' for more details" "$LINENO" 5; }
3865     fi
3866   fi
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3869 $as_echo "$cross_compiling" >&6; }
3870
3871 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3872 ac_clean_files=$ac_clean_files_save
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3874 $as_echo_n "checking for suffix of object files... " >&6; }
3875 if ${ac_cv_objext+:} false; then :
3876   $as_echo_n "(cached) " >&6
3877 else
3878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h.  */
3880
3881 int
3882 main ()
3883 {
3884
3885   ;
3886   return 0;
3887 }
3888 _ACEOF
3889 rm -f conftest.o conftest.obj
3890 if { { ac_try="$ac_compile"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897   (eval "$ac_compile") 2>&5
3898   ac_status=$?
3899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900   test $ac_status = 0; }; then :
3901   for ac_file in conftest.o conftest.obj conftest.*; do
3902   test -f "$ac_file" || continue;
3903   case $ac_file in
3904     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3905     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3906        break;;
3907   esac
3908 done
3909 else
3910   $as_echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 as_fn_error $? "cannot compute suffix of object files: cannot compile
3916 See \`config.log' for more details" "$LINENO" 5; }
3917 fi
3918 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3919 fi
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3921 $as_echo "$ac_cv_objext" >&6; }
3922 OBJEXT=$ac_cv_objext
3923 ac_objext=$OBJEXT
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3925 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3926 if ${ac_cv_c_compiler_gnu+:} false; then :
3927   $as_echo_n "(cached) " >&6
3928 else
3929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h.  */
3931
3932 int
3933 main ()
3934 {
3935 #ifndef __GNUC__
3936        choke me
3937 #endif
3938
3939   ;
3940   return 0;
3941 }
3942 _ACEOF
3943 if ac_fn_c_try_compile "$LINENO"; then :
3944   ac_compiler_gnu=yes
3945 else
3946   ac_compiler_gnu=no
3947 fi
3948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3950
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3953 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3954 if test $ac_compiler_gnu = yes; then
3955   GCC=yes
3956 else
3957   GCC=
3958 fi
3959 ac_test_CFLAGS=${CFLAGS+set}
3960 ac_save_CFLAGS=$CFLAGS
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3962 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3963 if ${ac_cv_prog_cc_g+:} false; then :
3964   $as_echo_n "(cached) " >&6
3965 else
3966   ac_save_c_werror_flag=$ac_c_werror_flag
3967    ac_c_werror_flag=yes
3968    ac_cv_prog_cc_g=no
3969    CFLAGS="-g"
3970    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h.  */
3972
3973 int
3974 main ()
3975 {
3976
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 if ac_fn_c_try_compile "$LINENO"; then :
3982   ac_cv_prog_cc_g=yes
3983 else
3984   CFLAGS=""
3985       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h.  */
3987
3988 int
3989 main ()
3990 {
3991
3992   ;
3993   return 0;
3994 }
3995 _ACEOF
3996 if ac_fn_c_try_compile "$LINENO"; then :
3997
3998 else
3999   ac_c_werror_flag=$ac_save_c_werror_flag
4000          CFLAGS="-g"
4001          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h.  */
4003
4004 int
4005 main ()
4006 {
4007
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 if ac_fn_c_try_compile "$LINENO"; then :
4013   ac_cv_prog_cc_g=yes
4014 fi
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 fi
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 fi
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020    ac_c_werror_flag=$ac_save_c_werror_flag
4021 fi
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4023 $as_echo "$ac_cv_prog_cc_g" >&6; }
4024 if test "$ac_test_CFLAGS" = set; then
4025   CFLAGS=$ac_save_CFLAGS
4026 elif test $ac_cv_prog_cc_g = yes; then
4027   if test "$GCC" = yes; then
4028     CFLAGS="-g -O2"
4029   else
4030     CFLAGS="-g"
4031   fi
4032 else
4033   if test "$GCC" = yes; then
4034     CFLAGS="-O2"
4035   else
4036     CFLAGS=
4037   fi
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4040 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4041 if ${ac_cv_prog_cc_c89+:} false; then :
4042   $as_echo_n "(cached) " >&6
4043 else
4044   ac_cv_prog_cc_c89=no
4045 ac_save_CC=$CC
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h.  */
4048 #include <stdarg.h>
4049 #include <stdio.h>
4050 struct stat;
4051 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4052 struct buf { int x; };
4053 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4054 static char *e (p, i)
4055      char **p;
4056      int i;
4057 {
4058   return p[i];
4059 }
4060 static char *f (char * (*g) (char **, int), char **p, ...)
4061 {
4062   char *s;
4063   va_list v;
4064   va_start (v,p);
4065   s = g (p, va_arg (v,int));
4066   va_end (v);
4067   return s;
4068 }
4069
4070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4071    function prototypes and stuff, but not '\xHH' hex character constants.
4072    These don't provoke an error unfortunately, instead are silently treated
4073    as 'x'.  The following induces an error, until -std is added to get
4074    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4075    array size at least.  It's necessary to write '\x00'==0 to get something
4076    that's true only with -std.  */
4077 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4078
4079 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4080    inside strings and character constants.  */
4081 #define FOO(x) 'x'
4082 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4083
4084 int test (int i, double x);
4085 struct s1 {int (*f) (int a);};
4086 struct s2 {int (*f) (double a);};
4087 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4088 int argc;
4089 char **argv;
4090 int
4091 main ()
4092 {
4093 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4094   ;
4095   return 0;
4096 }
4097 _ACEOF
4098 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4099         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4100 do
4101   CC="$ac_save_CC $ac_arg"
4102   if ac_fn_c_try_compile "$LINENO"; then :
4103   ac_cv_prog_cc_c89=$ac_arg
4104 fi
4105 rm -f core conftest.err conftest.$ac_objext
4106   test "x$ac_cv_prog_cc_c89" != "xno" && break
4107 done
4108 rm -f conftest.$ac_ext
4109 CC=$ac_save_CC
4110
4111 fi
4112 # AC_CACHE_VAL
4113 case "x$ac_cv_prog_cc_c89" in
4114   x)
4115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4116 $as_echo "none needed" >&6; } ;;
4117   xno)
4118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4119 $as_echo "unsupported" >&6; } ;;
4120   *)
4121     CC="$CC $ac_cv_prog_cc_c89"
4122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4123 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4124 esac
4125 if test "x$ac_cv_prog_cc_c89" != xno; then :
4126
4127 fi
4128
4129 ac_ext=c
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134
4135 ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4141 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4142 if ${am_cv_prog_cc_c_o+:} false; then :
4143   $as_echo_n "(cached) " >&6
4144 else
4145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h.  */
4147
4148 int
4149 main ()
4150 {
4151
4152   ;
4153   return 0;
4154 }
4155 _ACEOF
4156   # Make sure it works both with $CC and with simple cc.
4157   # Following AC_PROG_CC_C_O, we do the test twice because some
4158   # compilers refuse to overwrite an existing .o file with -o,
4159   # though they will create one.
4160   am_cv_prog_cc_c_o=yes
4161   for am_i in 1 2; do
4162     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4163    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4164    ac_status=$?
4165    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166    (exit $ac_status); } \
4167          && test -f conftest2.$ac_objext; then
4168       : OK
4169     else
4170       am_cv_prog_cc_c_o=no
4171       break
4172     fi
4173   done
4174   rm -f core conftest*
4175   unset am_i
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4178 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4179 if test "$am_cv_prog_cc_c_o" != yes; then
4180    # Losing compiler, so override with the script.
4181    # FIXME: It is wrong to rewrite CC.
4182    # But if we don't then we get into trouble of one sort or another.
4183    # A longer-term fix would be to have automake use am__CC in this case,
4184    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4185    CC="$am_aux_dir/compile $CC"
4186 fi
4187 ac_ext=c
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192
4193 DEPDIR="${am__leading_dot}deps"
4194
4195 ac_config_commands="$ac_config_commands depfiles"
4196
4197
4198 am_make=${MAKE-make}
4199 cat > confinc << 'END'
4200 am__doit:
4201         @echo this is the am__doit target
4202 .PHONY: am__doit
4203 END
4204 # If we don't find an include directive, just comment out the code.
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4206 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4207 am__include="#"
4208 am__quote=
4209 _am_result=none
4210 # First try GNU make style include.
4211 echo "include confinc" > confmf
4212 # Ignore all kinds of additional output from 'make'.
4213 case `$am_make -s -f confmf 2> /dev/null` in #(
4214 *the\ am__doit\ target*)
4215   am__include=include
4216   am__quote=
4217   _am_result=GNU
4218   ;;
4219 esac
4220 # Now try BSD make style include.
4221 if test "$am__include" = "#"; then
4222    echo '.include "confinc"' > confmf
4223    case `$am_make -s -f confmf 2> /dev/null` in #(
4224    *the\ am__doit\ target*)
4225      am__include=.include
4226      am__quote="\""
4227      _am_result=BSD
4228      ;;
4229    esac
4230 fi
4231
4232
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4234 $as_echo "$_am_result" >&6; }
4235 rm -f confinc confmf
4236
4237 # Check whether --enable-dependency-tracking was given.
4238 if test "${enable_dependency_tracking+set}" = set; then :
4239   enableval=$enable_dependency_tracking;
4240 fi
4241
4242 if test "x$enable_dependency_tracking" != xno; then
4243   am_depcomp="$ac_aux_dir/depcomp"
4244   AMDEPBACKSLASH='\'
4245   am__nodep='_no'
4246 fi
4247  if test "x$enable_dependency_tracking" != xno; then
4248   AMDEP_TRUE=
4249   AMDEP_FALSE='#'
4250 else
4251   AMDEP_TRUE='#'
4252   AMDEP_FALSE=
4253 fi
4254
4255
4256
4257 depcc="$CC"   am_compiler_list=
4258
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4260 $as_echo_n "checking dependency style of $depcc... " >&6; }
4261 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4262   $as_echo_n "(cached) " >&6
4263 else
4264   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4265   # We make a subdir and do the tests there.  Otherwise we can end up
4266   # making bogus files that we don't know about and never remove.  For
4267   # instance it was reported that on HP-UX the gcc test will end up
4268   # making a dummy file named 'D' -- because '-MD' means "put the output
4269   # in D".
4270   rm -rf conftest.dir
4271   mkdir conftest.dir
4272   # Copy depcomp to subdir because otherwise we won't find it if we're
4273   # using a relative directory.
4274   cp "$am_depcomp" conftest.dir
4275   cd conftest.dir
4276   # We will build objects and dependencies in a subdirectory because
4277   # it helps to detect inapplicable dependency modes.  For instance
4278   # both Tru64's cc and ICC support -MD to output dependencies as a
4279   # side effect of compilation, but ICC will put the dependencies in
4280   # the current directory while Tru64 will put them in the object
4281   # directory.
4282   mkdir sub
4283
4284   am_cv_CC_dependencies_compiler_type=none
4285   if test "$am_compiler_list" = ""; then
4286      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4287   fi
4288   am__universal=false
4289   case " $depcc " in #(
4290      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4291      esac
4292
4293   for depmode in $am_compiler_list; do
4294     # Setup a source with many dependencies, because some compilers
4295     # like to wrap large dependency lists on column 80 (with \), and
4296     # we should not choose a depcomp mode which is confused by this.
4297     #
4298     # We need to recreate these files for each test, as the compiler may
4299     # overwrite some of them when testing with obscure command lines.
4300     # This happens at least with the AIX C compiler.
4301     : > sub/conftest.c
4302     for i in 1 2 3 4 5 6; do
4303       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4304       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4305       # Solaris 10 /bin/sh.
4306       echo '/* dummy */' > sub/conftst$i.h
4307     done
4308     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4309
4310     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4311     # mode.  It turns out that the SunPro C++ compiler does not properly
4312     # handle '-M -o', and we need to detect this.  Also, some Intel
4313     # versions had trouble with output in subdirs.
4314     am__obj=sub/conftest.${OBJEXT-o}
4315     am__minus_obj="-o $am__obj"
4316     case $depmode in
4317     gcc)
4318       # This depmode causes a compiler race in universal mode.
4319       test "$am__universal" = false || continue
4320       ;;
4321     nosideeffect)
4322       # After this tag, mechanisms are not by side-effect, so they'll
4323       # only be used when explicitly requested.
4324       if test "x$enable_dependency_tracking" = xyes; then
4325         continue
4326       else
4327         break
4328       fi
4329       ;;
4330     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4331       # This compiler won't grok '-c -o', but also, the minuso test has
4332       # not run yet.  These depmodes are late enough in the game, and
4333       # so weak that their functioning should not be impacted.
4334       am__obj=conftest.${OBJEXT-o}
4335       am__minus_obj=
4336       ;;
4337     none) break ;;
4338     esac
4339     if depmode=$depmode \
4340        source=sub/conftest.c object=$am__obj \
4341        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4342        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4343          >/dev/null 2>conftest.err &&
4344        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4345        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4346        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4347        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4348       # icc doesn't choke on unknown options, it will just issue warnings
4349       # or remarks (even with -Werror).  So we grep stderr for any message
4350       # that says an option was ignored or not supported.
4351       # When given -MP, icc 7.0 and 7.1 complain thusly:
4352       #   icc: Command line warning: ignoring option '-M'; no argument required
4353       # The diagnosis changed in icc 8.0:
4354       #   icc: Command line remark: option '-MP' not supported
4355       if (grep 'ignoring option' conftest.err ||
4356           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4357         am_cv_CC_dependencies_compiler_type=$depmode
4358         break
4359       fi
4360     fi
4361   done
4362
4363   cd ..
4364   rm -rf conftest.dir
4365 else
4366   am_cv_CC_dependencies_compiler_type=none
4367 fi
4368
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4371 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4372 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4373
4374  if
4375   test "x$enable_dependency_tracking" != xno \
4376   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4377   am__fastdepCC_TRUE=
4378   am__fastdepCC_FALSE='#'
4379 else
4380   am__fastdepCC_TRUE='#'
4381   am__fastdepCC_FALSE=
4382 fi
4383
4384
4385
4386 ac_ext=c
4387 ac_cpp='$CPP $CPPFLAGS'
4388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4392 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4393 # On Suns, sometimes $CPP names a directory.
4394 if test -n "$CPP" && test -d "$CPP"; then
4395   CPP=
4396 fi
4397 if test -z "$CPP"; then
4398   if ${ac_cv_prog_CPP+:} false; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401       # Double quotes because CPP needs to be expanded
4402     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4403     do
4404       ac_preproc_ok=false
4405 for ac_c_preproc_warn_flag in '' yes
4406 do
4407   # Use a header file that comes with gcc, so configuring glibc
4408   # with a fresh cross-compiler works.
4409   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4410   # <limits.h> exists even on freestanding compilers.
4411   # On the NeXT, cc -E runs the code through the compiler's parser,
4412   # not just through cpp. "Syntax error" is here to catch this case.
4413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h.  */
4415 #ifdef __STDC__
4416 # include <limits.h>
4417 #else
4418 # include <assert.h>
4419 #endif
4420                      Syntax error
4421 _ACEOF
4422 if ac_fn_c_try_cpp "$LINENO"; then :
4423
4424 else
4425   # Broken: fails on valid input.
4426 continue
4427 fi
4428 rm -f conftest.err conftest.i conftest.$ac_ext
4429
4430   # OK, works on sane cases.  Now check whether nonexistent headers
4431   # can be detected and how.
4432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h.  */
4434 #include <ac_nonexistent.h>
4435 _ACEOF
4436 if ac_fn_c_try_cpp "$LINENO"; then :
4437   # Broken: success on invalid input.
4438 continue
4439 else
4440   # Passes both tests.
4441 ac_preproc_ok=:
4442 break
4443 fi
4444 rm -f conftest.err conftest.i conftest.$ac_ext
4445
4446 done
4447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4448 rm -f conftest.i conftest.err conftest.$ac_ext
4449 if $ac_preproc_ok; then :
4450   break
4451 fi
4452
4453     done
4454     ac_cv_prog_CPP=$CPP
4455
4456 fi
4457   CPP=$ac_cv_prog_CPP
4458 else
4459   ac_cv_prog_CPP=$CPP
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4462 $as_echo "$CPP" >&6; }
4463 ac_preproc_ok=false
4464 for ac_c_preproc_warn_flag in '' yes
4465 do
4466   # Use a header file that comes with gcc, so configuring glibc
4467   # with a fresh cross-compiler works.
4468   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4469   # <limits.h> exists even on freestanding compilers.
4470   # On the NeXT, cc -E runs the code through the compiler's parser,
4471   # not just through cpp. "Syntax error" is here to catch this case.
4472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h.  */
4474 #ifdef __STDC__
4475 # include <limits.h>
4476 #else
4477 # include <assert.h>
4478 #endif
4479                      Syntax error
4480 _ACEOF
4481 if ac_fn_c_try_cpp "$LINENO"; then :
4482
4483 else
4484   # Broken: fails on valid input.
4485 continue
4486 fi
4487 rm -f conftest.err conftest.i conftest.$ac_ext
4488
4489   # OK, works on sane cases.  Now check whether nonexistent headers
4490   # can be detected and how.
4491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h.  */
4493 #include <ac_nonexistent.h>
4494 _ACEOF
4495 if ac_fn_c_try_cpp "$LINENO"; then :
4496   # Broken: success on invalid input.
4497 continue
4498 else
4499   # Passes both tests.
4500 ac_preproc_ok=:
4501 break
4502 fi
4503 rm -f conftest.err conftest.i conftest.$ac_ext
4504
4505 done
4506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4507 rm -f conftest.i conftest.err conftest.$ac_ext
4508 if $ac_preproc_ok; then :
4509
4510 else
4511   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4513 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4514 See \`config.log' for more details" "$LINENO" 5; }
4515 fi
4516
4517 ac_ext=c
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522
4523
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4525 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4526 if ${ac_cv_path_GREP+:} false; then :
4527   $as_echo_n "(cached) " >&6
4528 else
4529   if test -z "$GREP"; then
4530   ac_path_GREP_found=false
4531   # Loop through the user's path and test for each of PROGNAME-LIST
4532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4534 do
4535   IFS=$as_save_IFS
4536   test -z "$as_dir" && as_dir=.
4537     for ac_prog in grep ggrep; do
4538     for ac_exec_ext in '' $ac_executable_extensions; do
4539       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4540       as_fn_executable_p "$ac_path_GREP" || continue
4541 # Check for GNU ac_path_GREP and select it if it is found.
4542   # Check for GNU $ac_path_GREP
4543 case `"$ac_path_GREP" --version 2>&1` in
4544 *GNU*)
4545   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4546 *)
4547   ac_count=0
4548   $as_echo_n 0123456789 >"conftest.in"
4549   while :
4550   do
4551     cat "conftest.in" "conftest.in" >"conftest.tmp"
4552     mv "conftest.tmp" "conftest.in"
4553     cp "conftest.in" "conftest.nl"
4554     $as_echo 'GREP' >> "conftest.nl"
4555     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4556     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4557     as_fn_arith $ac_count + 1 && ac_count=$as_val
4558     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4559       # Best one so far, save it but keep looking for a better one
4560       ac_cv_path_GREP="$ac_path_GREP"
4561       ac_path_GREP_max=$ac_count
4562     fi
4563     # 10*(2^10) chars as input seems more than enough
4564     test $ac_count -gt 10 && break
4565   done
4566   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4567 esac
4568
4569       $ac_path_GREP_found && break 3
4570     done
4571   done
4572   done
4573 IFS=$as_save_IFS
4574   if test -z "$ac_cv_path_GREP"; then
4575     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4576   fi
4577 else
4578   ac_cv_path_GREP=$GREP
4579 fi
4580
4581 fi
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4583 $as_echo "$ac_cv_path_GREP" >&6; }
4584  GREP="$ac_cv_path_GREP"
4585
4586
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4588 $as_echo_n "checking for egrep... " >&6; }
4589 if ${ac_cv_path_EGREP+:} false; then :
4590   $as_echo_n "(cached) " >&6
4591 else
4592   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4593    then ac_cv_path_EGREP="$GREP -E"
4594    else
4595      if test -z "$EGREP"; then
4596   ac_path_EGREP_found=false
4597   # Loop through the user's path and test for each of PROGNAME-LIST
4598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603     for ac_prog in egrep; do
4604     for ac_exec_ext in '' $ac_executable_extensions; do
4605       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4606       as_fn_executable_p "$ac_path_EGREP" || continue
4607 # Check for GNU ac_path_EGREP and select it if it is found.
4608   # Check for GNU $ac_path_EGREP
4609 case `"$ac_path_EGREP" --version 2>&1` in
4610 *GNU*)
4611   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4612 *)
4613   ac_count=0
4614   $as_echo_n 0123456789 >"conftest.in"
4615   while :
4616   do
4617     cat "conftest.in" "conftest.in" >"conftest.tmp"
4618     mv "conftest.tmp" "conftest.in"
4619     cp "conftest.in" "conftest.nl"
4620     $as_echo 'EGREP' >> "conftest.nl"
4621     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4622     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4623     as_fn_arith $ac_count + 1 && ac_count=$as_val
4624     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4625       # Best one so far, save it but keep looking for a better one
4626       ac_cv_path_EGREP="$ac_path_EGREP"
4627       ac_path_EGREP_max=$ac_count
4628     fi
4629     # 10*(2^10) chars as input seems more than enough
4630     test $ac_count -gt 10 && break
4631   done
4632   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4633 esac
4634
4635       $ac_path_EGREP_found && break 3
4636     done
4637   done
4638   done
4639 IFS=$as_save_IFS
4640   if test -z "$ac_cv_path_EGREP"; then
4641     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4642   fi
4643 else
4644   ac_cv_path_EGREP=$EGREP
4645 fi
4646
4647    fi
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4650 $as_echo "$ac_cv_path_EGREP" >&6; }
4651  EGREP="$ac_cv_path_EGREP"
4652
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4655 $as_echo_n "checking for ANSI C header files... " >&6; }
4656 if ${ac_cv_header_stdc+:} false; then :
4657   $as_echo_n "(cached) " >&6
4658 else
4659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h.  */
4661 #include <stdlib.h>
4662 #include <stdarg.h>
4663 #include <string.h>
4664 #include <float.h>
4665
4666 int
4667 main ()
4668 {
4669
4670   ;
4671   return 0;
4672 }
4673 _ACEOF
4674 if ac_fn_c_try_compile "$LINENO"; then :
4675   ac_cv_header_stdc=yes
4676 else
4677   ac_cv_header_stdc=no
4678 fi
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680
4681 if test $ac_cv_header_stdc = yes; then
4682   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h.  */
4685 #include <string.h>
4686
4687 _ACEOF
4688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4689   $EGREP "memchr" >/dev/null 2>&1; then :
4690
4691 else
4692   ac_cv_header_stdc=no
4693 fi
4694 rm -f conftest*
4695
4696 fi
4697
4698 if test $ac_cv_header_stdc = yes; then
4699   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h.  */
4702 #include <stdlib.h>
4703
4704 _ACEOF
4705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4706   $EGREP "free" >/dev/null 2>&1; then :
4707
4708 else
4709   ac_cv_header_stdc=no
4710 fi
4711 rm -f conftest*
4712
4713 fi
4714
4715 if test $ac_cv_header_stdc = yes; then
4716   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4717   if test "$cross_compiling" = yes; then :
4718   :
4719 else
4720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h.  */
4722 #include <ctype.h>
4723 #include <stdlib.h>
4724 #if ((' ' & 0x0FF) == 0x020)
4725 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4726 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4727 #else
4728 # define ISLOWER(c) \
4729                    (('a' <= (c) && (c) <= 'i') \
4730                      || ('j' <= (c) && (c) <= 'r') \
4731                      || ('s' <= (c) && (c) <= 'z'))
4732 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4733 #endif
4734
4735 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4736 int
4737 main ()
4738 {
4739   int i;
4740   for (i = 0; i < 256; i++)
4741     if (XOR (islower (i), ISLOWER (i))
4742         || toupper (i) != TOUPPER (i))
4743       return 2;
4744   return 0;
4745 }
4746 _ACEOF
4747 if ac_fn_c_try_run "$LINENO"; then :
4748
4749 else
4750   ac_cv_header_stdc=no
4751 fi
4752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4753   conftest.$ac_objext conftest.beam conftest.$ac_ext
4754 fi
4755
4756 fi
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4759 $as_echo "$ac_cv_header_stdc" >&6; }
4760 if test $ac_cv_header_stdc = yes; then
4761
4762 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4763
4764 fi
4765
4766 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4767 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4768                   inttypes.h stdint.h unistd.h
4769 do :
4770   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4771 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4772 "
4773 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4774   cat >>confdefs.h <<_ACEOF
4775 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4776 _ACEOF
4777
4778 fi
4779
4780 done
4781
4782
4783
4784   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4785 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4786   MINIX=yes
4787 else
4788   MINIX=
4789 fi
4790
4791
4792   if test "$MINIX" = yes; then
4793
4794 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4795
4796
4797 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4798
4799
4800 $as_echo "#define _MINIX 1" >>confdefs.h
4801
4802   fi
4803
4804
4805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4806 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4807 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4808   $as_echo_n "(cached) " >&6
4809 else
4810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h.  */
4812
4813 #         define __EXTENSIONS__ 1
4814           $ac_includes_default
4815 int
4816 main ()
4817 {
4818
4819   ;
4820   return 0;
4821 }
4822 _ACEOF
4823 if ac_fn_c_try_compile "$LINENO"; then :
4824   ac_cv_safe_to_define___extensions__=yes
4825 else
4826   ac_cv_safe_to_define___extensions__=no
4827 fi
4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4831 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4832   test $ac_cv_safe_to_define___extensions__ = yes &&
4833     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4834
4835   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4836
4837   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4838
4839   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4840
4841   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4842
4843
4844 # Check whether --enable-largefile was given.
4845 if test "${enable_largefile+set}" = set; then :
4846   enableval=$enable_largefile;
4847 fi
4848
4849 if test "$enable_largefile" != no; then
4850
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4852 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4853 if ${ac_cv_sys_largefile_CC+:} false; then :
4854   $as_echo_n "(cached) " >&6
4855 else
4856   ac_cv_sys_largefile_CC=no
4857      if test "$GCC" != yes; then
4858        ac_save_CC=$CC
4859        while :; do
4860          # IRIX 6.2 and later do not support large files by default,
4861          # so use the C compiler's -n32 option if that helps.
4862          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h.  */
4864 #include <sys/types.h>
4865  /* Check that off_t can represent 2**63 - 1 correctly.
4866     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4867     since some C++ compilers masquerading as C compilers
4868     incorrectly reject 9223372036854775807.  */
4869 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4870   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4871                        && LARGE_OFF_T % 2147483647 == 1)
4872                       ? 1 : -1];
4873 int
4874 main ()
4875 {
4876
4877   ;
4878   return 0;
4879 }
4880 _ACEOF
4881          if ac_fn_c_try_compile "$LINENO"; then :
4882   break
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext
4885          CC="$CC -n32"
4886          if ac_fn_c_try_compile "$LINENO"; then :
4887   ac_cv_sys_largefile_CC=' -n32'; break
4888 fi
4889 rm -f core conftest.err conftest.$ac_objext
4890          break
4891        done
4892        CC=$ac_save_CC
4893        rm -f conftest.$ac_ext
4894     fi
4895 fi
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4897 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4898   if test "$ac_cv_sys_largefile_CC" != no; then
4899     CC=$CC$ac_cv_sys_largefile_CC
4900   fi
4901
4902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4903 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4904 if ${ac_cv_sys_file_offset_bits+:} false; then :
4905   $as_echo_n "(cached) " >&6
4906 else
4907   while :; do
4908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h.  */
4910 #include <sys/types.h>
4911  /* Check that off_t can represent 2**63 - 1 correctly.
4912     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4913     since some C++ compilers masquerading as C compilers
4914     incorrectly reject 9223372036854775807.  */
4915 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4916   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4917                        && LARGE_OFF_T % 2147483647 == 1)
4918                       ? 1 : -1];
4919 int
4920 main ()
4921 {
4922
4923   ;
4924   return 0;
4925 }
4926 _ACEOF
4927 if ac_fn_c_try_compile "$LINENO"; then :
4928   ac_cv_sys_file_offset_bits=no; break
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h.  */
4933 #define _FILE_OFFSET_BITS 64
4934 #include <sys/types.h>
4935  /* Check that off_t can represent 2**63 - 1 correctly.
4936     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4937     since some C++ compilers masquerading as C compilers
4938     incorrectly reject 9223372036854775807.  */
4939 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4940   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4941                        && LARGE_OFF_T % 2147483647 == 1)
4942                       ? 1 : -1];
4943 int
4944 main ()
4945 {
4946
4947   ;
4948   return 0;
4949 }
4950 _ACEOF
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952   ac_cv_sys_file_offset_bits=64; break
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955   ac_cv_sys_file_offset_bits=unknown
4956   break
4957 done
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4960 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4961 case $ac_cv_sys_file_offset_bits in #(
4962   no | unknown) ;;
4963   *)
4964 cat >>confdefs.h <<_ACEOF
4965 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4966 _ACEOF
4967 ;;
4968 esac
4969 rm -rf conftest*
4970   if test $ac_cv_sys_file_offset_bits = unknown; then
4971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4972 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4973 if ${ac_cv_sys_large_files+:} false; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976   while :; do
4977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h.  */
4979 #include <sys/types.h>
4980  /* Check that off_t can represent 2**63 - 1 correctly.
4981     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4982     since some C++ compilers masquerading as C compilers
4983     incorrectly reject 9223372036854775807.  */
4984 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4985   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4986                        && LARGE_OFF_T % 2147483647 == 1)
4987                       ? 1 : -1];
4988 int
4989 main ()
4990 {
4991
4992   ;
4993   return 0;
4994 }
4995 _ACEOF
4996 if ac_fn_c_try_compile "$LINENO"; then :
4997   ac_cv_sys_large_files=no; break
4998 fi
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h.  */
5002 #define _LARGE_FILES 1
5003 #include <sys/types.h>
5004  /* Check that off_t can represent 2**63 - 1 correctly.
5005     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5006     since some C++ compilers masquerading as C compilers
5007     incorrectly reject 9223372036854775807.  */
5008 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5009   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5010                        && LARGE_OFF_T % 2147483647 == 1)
5011                       ? 1 : -1];
5012 int
5013 main ()
5014 {
5015
5016   ;
5017   return 0;
5018 }
5019 _ACEOF
5020 if ac_fn_c_try_compile "$LINENO"; then :
5021   ac_cv_sys_large_files=1; break
5022 fi
5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024   ac_cv_sys_large_files=unknown
5025   break
5026 done
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5029 $as_echo "$ac_cv_sys_large_files" >&6; }
5030 case $ac_cv_sys_large_files in #(
5031   no | unknown) ;;
5032   *)
5033 cat >>confdefs.h <<_ACEOF
5034 #define _LARGE_FILES $ac_cv_sys_large_files
5035 _ACEOF
5036 ;;
5037 esac
5038 rm -rf conftest*
5039   fi
5040
5041
5042 fi
5043
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5046 $as_echo_n "checking whether ln -s works... " >&6; }
5047 LN_S=$as_ln_s
5048 if test "$LN_S" = "ln -s"; then
5049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5050 $as_echo "yes" >&6; }
5051 else
5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5053 $as_echo "no, using $LN_S" >&6; }
5054 fi
5055
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5057 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5058 set x ${MAKE-make}
5059 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5060 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5061   $as_echo_n "(cached) " >&6
5062 else
5063   cat >conftest.make <<\_ACEOF
5064 SHELL = /bin/sh
5065 all:
5066         @echo '@@@%%%=$(MAKE)=@@@%%%'
5067 _ACEOF
5068 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5069 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5070   *@@@%%%=?*=@@@%%%*)
5071     eval ac_cv_prog_make_${ac_make}_set=yes;;
5072   *)
5073     eval ac_cv_prog_make_${ac_make}_set=no;;
5074 esac
5075 rm -f conftest.make
5076 fi
5077 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5079 $as_echo "yes" >&6; }
5080   SET_MAKE=
5081 else
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5084   SET_MAKE="MAKE=${MAKE-make}"
5085 fi
5086
5087
5088
5089
5090
5091
5092
5093
5094 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5095         if test -n "$ac_tool_prefix"; then
5096   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5097 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5101   $as_echo_n "(cached) " >&6
5102 else
5103   case $PKG_CONFIG in
5104   [\\/]* | ?:[\\/]*)
5105   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5106   ;;
5107   *)
5108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113     for ac_exec_ext in '' $ac_executable_extensions; do
5114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120   done
5121 IFS=$as_save_IFS
5122
5123   ;;
5124 esac
5125 fi
5126 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5127 if test -n "$PKG_CONFIG"; then
5128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5129 $as_echo "$PKG_CONFIG" >&6; }
5130 else
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5133 fi
5134
5135
5136 fi
5137 if test -z "$ac_cv_path_PKG_CONFIG"; then
5138   ac_pt_PKG_CONFIG=$PKG_CONFIG
5139   # Extract the first word of "pkg-config", so it can be a program name with args.
5140 set dummy pkg-config; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5144   $as_echo_n "(cached) " >&6
5145 else
5146   case $ac_pt_PKG_CONFIG in
5147   [\\/]* | ?:[\\/]*)
5148   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5149   ;;
5150   *)
5151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156     for ac_exec_ext in '' $ac_executable_extensions; do
5157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163   done
5164 IFS=$as_save_IFS
5165
5166   ;;
5167 esac
5168 fi
5169 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5170 if test -n "$ac_pt_PKG_CONFIG"; then
5171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5172 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5173 else
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5176 fi
5177
5178   if test "x$ac_pt_PKG_CONFIG" = x; then
5179     PKG_CONFIG=""
5180   else
5181     case $cross_compiling:$ac_tool_warned in
5182 yes:)
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5185 ac_tool_warned=yes ;;
5186 esac
5187     PKG_CONFIG=$ac_pt_PKG_CONFIG
5188   fi
5189 else
5190   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5191 fi
5192
5193 fi
5194 if test -n "$PKG_CONFIG"; then
5195         _pkg_min_version=0.9.0
5196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5197 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5198         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5199                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5200 $as_echo "yes" >&6; }
5201         else
5202                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204                 PKG_CONFIG=""
5205         fi
5206 fi
5207
5208
5209
5210 # Check whether --with-pkgconfigdir was given.
5211 if test "${with_pkgconfigdir+set}" = set; then :
5212   withval=$with_pkgconfigdir;
5213 else
5214   with_pkgconfigdir='${libdir}/pkgconfig'
5215 fi
5216
5217 pkgconfigdir=$with_pkgconfigdir
5218
5219
5220
5221
5222
5223
5224 GIT=${GIT-"${am_missing_run}git"}
5225
5226
5227 GPERF=${GPERF-"${am_missing_run}gperf"}
5228
5229
5230
5231
5232
5233
5234
5235         # Find any Python interpreter.
5236     if test -z "$PYTHON"; then
5237       for ac_prog in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
5238 do
5239   # Extract the first word of "$ac_prog", so it can be a program name with args.
5240 set dummy $ac_prog; ac_word=$2
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242 $as_echo_n "checking for $ac_word... " >&6; }
5243 if ${ac_cv_path_PYTHON+:} false; then :
5244   $as_echo_n "(cached) " >&6
5245 else
5246   case $PYTHON in
5247   [\\/]* | ?:[\\/]*)
5248   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5249   ;;
5250   *)
5251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254   IFS=$as_save_IFS
5255   test -z "$as_dir" && as_dir=.
5256     for ac_exec_ext in '' $ac_executable_extensions; do
5257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260     break 2
5261   fi
5262 done
5263   done
5264 IFS=$as_save_IFS
5265
5266   ;;
5267 esac
5268 fi
5269 PYTHON=$ac_cv_path_PYTHON
5270 if test -n "$PYTHON"; then
5271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5272 $as_echo "$PYTHON" >&6; }
5273 else
5274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 $as_echo "no" >&6; }
5276 fi
5277
5278
5279   test -n "$PYTHON" && break
5280 done
5281 test -n "$PYTHON" || PYTHON=":"
5282
5283     fi
5284     am_display_PYTHON=python
5285
5286
5287   if test "$PYTHON" = :; then
5288       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5289   else
5290
5291
5292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5293 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5294 if ${am_cv_python_version+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5300 $as_echo "$am_cv_python_version" >&6; }
5301   PYTHON_VERSION=$am_cv_python_version
5302
5303
5304
5305   PYTHON_PREFIX='${prefix}'
5306
5307   PYTHON_EXEC_PREFIX='${exec_prefix}'
5308
5309
5310
5311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5312 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5313 if ${am_cv_python_platform+:} false; then :
5314   $as_echo_n "(cached) " >&6
5315 else
5316   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5317 fi
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5319 $as_echo "$am_cv_python_platform" >&6; }
5320   PYTHON_PLATFORM=$am_cv_python_platform
5321
5322
5323   # Just factor out some code duplication.
5324   am_python_setup_sysconfig="\
5325 import sys
5326 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5327 # with python 3.x.  See automake bug#10227.
5328 try:
5329     import sysconfig
5330 except ImportError:
5331     can_use_sysconfig = 0
5332 else:
5333     can_use_sysconfig = 1
5334 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5335 # <https://github.com/pypa/virtualenv/issues/118>
5336 try:
5337     from platform import python_implementation
5338     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5339         can_use_sysconfig = 0
5340 except ImportError:
5341     pass"
5342
5343
5344             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5345 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5346 if ${am_cv_python_pythondir+:} false; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349   if test "x$prefix" = xNONE
5350      then
5351        am_py_prefix=$ac_default_prefix
5352      else
5353        am_py_prefix=$prefix
5354      fi
5355      am_cv_python_pythondir=`$PYTHON -c "
5356 $am_python_setup_sysconfig
5357 if can_use_sysconfig:
5358     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5359 else:
5360     from distutils import sysconfig
5361     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5362 sys.stdout.write(sitedir)"`
5363      case $am_cv_python_pythondir in
5364      $am_py_prefix*)
5365        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5366        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5367        ;;
5368      *)
5369        case $am_py_prefix in
5370          /usr|/System*) ;;
5371          *)
5372           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5373           ;;
5374        esac
5375        ;;
5376      esac
5377
5378 fi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5380 $as_echo "$am_cv_python_pythondir" >&6; }
5381   pythondir=$am_cv_python_pythondir
5382
5383
5384
5385   pkgpythondir=\${pythondir}/$PACKAGE
5386
5387
5388         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5389 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5390 if ${am_cv_python_pyexecdir+:} false; then :
5391   $as_echo_n "(cached) " >&6
5392 else
5393   if test "x$exec_prefix" = xNONE
5394      then
5395        am_py_exec_prefix=$am_py_prefix
5396      else
5397        am_py_exec_prefix=$exec_prefix
5398      fi
5399      am_cv_python_pyexecdir=`$PYTHON -c "
5400 $am_python_setup_sysconfig
5401 if can_use_sysconfig:
5402     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5403 else:
5404     from distutils import sysconfig
5405     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5406 sys.stdout.write(sitedir)"`
5407      case $am_cv_python_pyexecdir in
5408      $am_py_exec_prefix*)
5409        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5410        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5411        ;;
5412      *)
5413        case $am_py_exec_prefix in
5414          /usr|/System*) ;;
5415          *)
5416            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5417            ;;
5418        esac
5419        ;;
5420      esac
5421
5422 fi
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5424 $as_echo "$am_cv_python_pyexecdir" >&6; }
5425   pyexecdir=$am_cv_python_pyexecdir
5426
5427
5428
5429   pkgpyexecdir=\${pyexecdir}/$PACKAGE
5430
5431
5432
5433   fi
5434
5435
5436
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
5438 $as_echo_n "checking for RM macro... " >&6; }
5439 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
5440 if test "x$_predefined_rm" = "x"; then
5441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
5442 $as_echo "no predefined RM" >&6; }
5443         # Extract the first word of "rm", so it can be a program name with args.
5444 set dummy rm; 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_RM+:} false; then :
5448   $as_echo_n "(cached) " >&6
5449 else
5450   if test -n "$RM"; then
5451   ac_cv_prog_RM="$RM" # 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_RM="rm -f"
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 RM=$ac_cv_prog_RM
5471 if test -n "$RM"; then
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5473 $as_echo "$RM" >&6; }
5474 else
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5477 fi
5478
5479
5480 else
5481         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
5482 $as_echo "$_predefined_rm" >&6; }
5483 fi
5484
5485
5486 case `pwd` in
5487   *\ * | *\     *)
5488     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5489 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5490 esac
5491
5492
5493
5494 macro_version='2.4.2'
5495 macro_revision='1.3337'
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509 ltmain="$ac_aux_dir/ltmain.sh"
5510
5511 # Make sure we can run config.sub.
5512 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5513   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5514
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5516 $as_echo_n "checking build system type... " >&6; }
5517 if ${ac_cv_build+:} false; then :
5518   $as_echo_n "(cached) " >&6
5519 else
5520   ac_build_alias=$build_alias
5521 test "x$ac_build_alias" = x &&
5522   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5523 test "x$ac_build_alias" = x &&
5524   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5525 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5526   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5527
5528 fi
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5530 $as_echo "$ac_cv_build" >&6; }
5531 case $ac_cv_build in
5532 *-*-*) ;;
5533 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5534 esac
5535 build=$ac_cv_build
5536 ac_save_IFS=$IFS; IFS='-'
5537 set x $ac_cv_build
5538 shift
5539 build_cpu=$1
5540 build_vendor=$2
5541 shift; shift
5542 # Remember, the first character of IFS is used to create $*,
5543 # except with old shells:
5544 build_os=$*
5545 IFS=$ac_save_IFS
5546 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5547
5548
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5550 $as_echo_n "checking host system type... " >&6; }
5551 if ${ac_cv_host+:} false; then :
5552   $as_echo_n "(cached) " >&6
5553 else
5554   if test "x$host_alias" = x; then
5555   ac_cv_host=$ac_cv_build
5556 else
5557   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5558     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5559 fi
5560
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5563 $as_echo "$ac_cv_host" >&6; }
5564 case $ac_cv_host in
5565 *-*-*) ;;
5566 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5567 esac
5568 host=$ac_cv_host
5569 ac_save_IFS=$IFS; IFS='-'
5570 set x $ac_cv_host
5571 shift
5572 host_cpu=$1
5573 host_vendor=$2
5574 shift; shift
5575 # Remember, the first character of IFS is used to create $*,
5576 # except with old shells:
5577 host_os=$*
5578 IFS=$ac_save_IFS
5579 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5580
5581
5582 # Backslashify metacharacters that are still active within
5583 # double-quoted strings.
5584 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5585
5586 # Same as above, but do not quote variable references.
5587 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5588
5589 # Sed substitution to delay expansion of an escaped shell variable in a
5590 # double_quote_subst'ed string.
5591 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5592
5593 # Sed substitution to delay expansion of an escaped single quote.
5594 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5595
5596 # Sed substitution to avoid accidental globbing in evaled expressions
5597 no_glob_subst='s/\*/\\\*/g'
5598
5599 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5600 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5601 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5604 $as_echo_n "checking how to print strings... " >&6; }
5605 # Test print first, because it will be a builtin if present.
5606 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5607    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5608   ECHO='print -r --'
5609 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5610   ECHO='printf %s\n'
5611 else
5612   # Use this function as a fallback that always works.
5613   func_fallback_echo ()
5614   {
5615     eval 'cat <<_LTECHO_EOF
5616 $1
5617 _LTECHO_EOF'
5618   }
5619   ECHO='func_fallback_echo'
5620 fi
5621
5622 # func_echo_all arg...
5623 # Invoke $ECHO with all args, space-separated.
5624 func_echo_all ()
5625 {
5626     $ECHO ""
5627 }
5628
5629 case "$ECHO" in
5630   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5631 $as_echo "printf" >&6; } ;;
5632   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5633 $as_echo "print -r" >&6; } ;;
5634   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5635 $as_echo "cat" >&6; } ;;
5636 esac
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5652 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5653 if ${ac_cv_path_SED+:} false; then :
5654   $as_echo_n "(cached) " >&6
5655 else
5656             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5657      for ac_i in 1 2 3 4 5 6 7; do
5658        ac_script="$ac_script$as_nl$ac_script"
5659      done
5660      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5661      { ac_script=; unset ac_script;}
5662      if test -z "$SED"; then
5663   ac_path_SED_found=false
5664   # Loop through the user's path and test for each of PROGNAME-LIST
5665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH
5667 do
5668   IFS=$as_save_IFS
5669   test -z "$as_dir" && as_dir=.
5670     for ac_prog in sed gsed; do
5671     for ac_exec_ext in '' $ac_executable_extensions; do
5672       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5673       as_fn_executable_p "$ac_path_SED" || continue
5674 # Check for GNU ac_path_SED and select it if it is found.
5675   # Check for GNU $ac_path_SED
5676 case `"$ac_path_SED" --version 2>&1` in
5677 *GNU*)
5678   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5679 *)
5680   ac_count=0
5681   $as_echo_n 0123456789 >"conftest.in"
5682   while :
5683   do
5684     cat "conftest.in" "conftest.in" >"conftest.tmp"
5685     mv "conftest.tmp" "conftest.in"
5686     cp "conftest.in" "conftest.nl"
5687     $as_echo '' >> "conftest.nl"
5688     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5689     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5690     as_fn_arith $ac_count + 1 && ac_count=$as_val
5691     if test $ac_count -gt ${ac_path_SED_max-0}; then
5692       # Best one so far, save it but keep looking for a better one
5693       ac_cv_path_SED="$ac_path_SED"
5694       ac_path_SED_max=$ac_count
5695     fi
5696     # 10*(2^10) chars as input seems more than enough
5697     test $ac_count -gt 10 && break
5698   done
5699   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5700 esac
5701
5702       $ac_path_SED_found && break 3
5703     done
5704   done
5705   done
5706 IFS=$as_save_IFS
5707   if test -z "$ac_cv_path_SED"; then
5708     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5709   fi
5710 else
5711   ac_cv_path_SED=$SED
5712 fi
5713
5714 fi
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5716 $as_echo "$ac_cv_path_SED" >&6; }
5717  SED="$ac_cv_path_SED"
5718   rm -f conftest.sed
5719
5720 test -z "$SED" && SED=sed
5721 Xsed="$SED -e 1s/^X//"
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5734 $as_echo_n "checking for fgrep... " >&6; }
5735 if ${ac_cv_path_FGREP+:} false; then :
5736   $as_echo_n "(cached) " >&6
5737 else
5738   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5739    then ac_cv_path_FGREP="$GREP -F"
5740    else
5741      if test -z "$FGREP"; then
5742   ac_path_FGREP_found=false
5743   # Loop through the user's path and test for each of PROGNAME-LIST
5744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5746 do
5747   IFS=$as_save_IFS
5748   test -z "$as_dir" && as_dir=.
5749     for ac_prog in fgrep; do
5750     for ac_exec_ext in '' $ac_executable_extensions; do
5751       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5752       as_fn_executable_p "$ac_path_FGREP" || continue
5753 # Check for GNU ac_path_FGREP and select it if it is found.
5754   # Check for GNU $ac_path_FGREP
5755 case `"$ac_path_FGREP" --version 2>&1` in
5756 *GNU*)
5757   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5758 *)
5759   ac_count=0
5760   $as_echo_n 0123456789 >"conftest.in"
5761   while :
5762   do
5763     cat "conftest.in" "conftest.in" >"conftest.tmp"
5764     mv "conftest.tmp" "conftest.in"
5765     cp "conftest.in" "conftest.nl"
5766     $as_echo 'FGREP' >> "conftest.nl"
5767     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5768     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5769     as_fn_arith $ac_count + 1 && ac_count=$as_val
5770     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5771       # Best one so far, save it but keep looking for a better one
5772       ac_cv_path_FGREP="$ac_path_FGREP"
5773       ac_path_FGREP_max=$ac_count
5774     fi
5775     # 10*(2^10) chars as input seems more than enough
5776     test $ac_count -gt 10 && break
5777   done
5778   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5779 esac
5780
5781       $ac_path_FGREP_found && break 3
5782     done
5783   done
5784   done
5785 IFS=$as_save_IFS
5786   if test -z "$ac_cv_path_FGREP"; then
5787     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5788   fi
5789 else
5790   ac_cv_path_FGREP=$FGREP
5791 fi
5792
5793    fi
5794 fi
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5796 $as_echo "$ac_cv_path_FGREP" >&6; }
5797  FGREP="$ac_cv_path_FGREP"
5798
5799
5800 test -z "$GREP" && GREP=grep
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820 # Check whether --with-gnu-ld was given.
5821 if test "${with_gnu_ld+set}" = set; then :
5822   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5823 else
5824   with_gnu_ld=no
5825 fi
5826
5827 ac_prog=ld
5828 if test "$GCC" = yes; then
5829   # Check if gcc -print-prog-name=ld gives a path.
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5831 $as_echo_n "checking for ld used by $CC... " >&6; }
5832   case $host in
5833   *-*-mingw*)
5834     # gcc leaves a trailing carriage return which upsets mingw
5835     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5836   *)
5837     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5838   esac
5839   case $ac_prog in
5840     # Accept absolute paths.
5841     [\\/]* | ?:[\\/]*)
5842       re_direlt='/[^/][^/]*/\.\./'
5843       # Canonicalize the pathname of ld
5844       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5845       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5846         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5847       done
5848       test -z "$LD" && LD="$ac_prog"
5849       ;;
5850   "")
5851     # If it fails, then pretend we aren't using GCC.
5852     ac_prog=ld
5853     ;;
5854   *)
5855     # If it is relative, then search for the first ld in PATH.
5856     with_gnu_ld=unknown
5857     ;;
5858   esac
5859 elif test "$with_gnu_ld" = yes; then
5860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5861 $as_echo_n "checking for GNU ld... " >&6; }
5862 else
5863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5864 $as_echo_n "checking for non-GNU ld... " >&6; }
5865 fi
5866 if ${lt_cv_path_LD+:} false; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   if test -z "$LD"; then
5870   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5871   for ac_dir in $PATH; do
5872     IFS="$lt_save_ifs"
5873     test -z "$ac_dir" && ac_dir=.
5874     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5875       lt_cv_path_LD="$ac_dir/$ac_prog"
5876       # Check to see if the program is GNU ld.  I'd rather use --version,
5877       # but apparently some variants of GNU ld only accept -v.
5878       # Break only if it was the GNU/non-GNU ld that we prefer.
5879       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5880       *GNU* | *'with BFD'*)
5881         test "$with_gnu_ld" != no && break
5882         ;;
5883       *)
5884         test "$with_gnu_ld" != yes && break
5885         ;;
5886       esac
5887     fi
5888   done
5889   IFS="$lt_save_ifs"
5890 else
5891   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5892 fi
5893 fi
5894
5895 LD="$lt_cv_path_LD"
5896 if test -n "$LD"; then
5897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5898 $as_echo "$LD" >&6; }
5899 else
5900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5902 fi
5903 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5905 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5906 if ${lt_cv_prog_gnu_ld+:} false; then :
5907   $as_echo_n "(cached) " >&6
5908 else
5909   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5910 case `$LD -v 2>&1 </dev/null` in
5911 *GNU* | *'with BFD'*)
5912   lt_cv_prog_gnu_ld=yes
5913   ;;
5914 *)
5915   lt_cv_prog_gnu_ld=no
5916   ;;
5917 esac
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5920 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5921 with_gnu_ld=$lt_cv_prog_gnu_ld
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5932 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5933 if ${lt_cv_path_NM+:} false; then :
5934   $as_echo_n "(cached) " >&6
5935 else
5936   if test -n "$NM"; then
5937   # Let the user override the test.
5938   lt_cv_path_NM="$NM"
5939 else
5940   lt_nm_to_check="${ac_tool_prefix}nm"
5941   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5942     lt_nm_to_check="$lt_nm_to_check nm"
5943   fi
5944   for lt_tmp_nm in $lt_nm_to_check; do
5945     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5946     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5947       IFS="$lt_save_ifs"
5948       test -z "$ac_dir" && ac_dir=.
5949       tmp_nm="$ac_dir/$lt_tmp_nm"
5950       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5951         # Check to see if the nm accepts a BSD-compat flag.
5952         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5953         #   nm: unknown option "B" ignored
5954         # Tru64's nm complains that /dev/null is an invalid object file
5955         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5956         */dev/null* | *'Invalid file or object type'*)
5957           lt_cv_path_NM="$tmp_nm -B"
5958           break
5959           ;;
5960         *)
5961           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5962           */dev/null*)
5963             lt_cv_path_NM="$tmp_nm -p"
5964             break
5965             ;;
5966           *)
5967             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5968             continue # so that we can try to find one that supports BSD flags
5969             ;;
5970           esac
5971           ;;
5972         esac
5973       fi
5974     done
5975     IFS="$lt_save_ifs"
5976   done
5977   : ${lt_cv_path_NM=no}
5978 fi
5979 fi
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5981 $as_echo "$lt_cv_path_NM" >&6; }
5982 if test "$lt_cv_path_NM" != "no"; then
5983   NM="$lt_cv_path_NM"
5984 else
5985   # Didn't find any BSD compatible name lister, look for dumpbin.
5986   if test -n "$DUMPBIN"; then :
5987     # Let the user override the test.
5988   else
5989     if test -n "$ac_tool_prefix"; then
5990   for ac_prog in dumpbin "link -dump"
5991   do
5992     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if ${ac_cv_prog_DUMPBIN+:} false; then :
5997   $as_echo_n "(cached) " >&6
5998 else
5999   if test -n "$DUMPBIN"; then
6000   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005   IFS=$as_save_IFS
6006   test -z "$as_dir" && as_dir=.
6007     for ac_exec_ext in '' $ac_executable_extensions; do
6008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011     break 2
6012   fi
6013 done
6014   done
6015 IFS=$as_save_IFS
6016
6017 fi
6018 fi
6019 DUMPBIN=$ac_cv_prog_DUMPBIN
6020 if test -n "$DUMPBIN"; then
6021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6022 $as_echo "$DUMPBIN" >&6; }
6023 else
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6026 fi
6027
6028
6029     test -n "$DUMPBIN" && break
6030   done
6031 fi
6032 if test -z "$DUMPBIN"; then
6033   ac_ct_DUMPBIN=$DUMPBIN
6034   for ac_prog in dumpbin "link -dump"
6035 do
6036   # Extract the first word of "$ac_prog", so it can be a program name with args.
6037 set dummy $ac_prog; ac_word=$2
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6041   $as_echo_n "(cached) " >&6
6042 else
6043   if test -n "$ac_ct_DUMPBIN"; then
6044   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049   IFS=$as_save_IFS
6050   test -z "$as_dir" && as_dir=.
6051     for ac_exec_ext in '' $ac_executable_extensions; do
6052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055     break 2
6056   fi
6057 done
6058   done
6059 IFS=$as_save_IFS
6060
6061 fi
6062 fi
6063 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6064 if test -n "$ac_ct_DUMPBIN"; then
6065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6066 $as_echo "$ac_ct_DUMPBIN" >&6; }
6067 else
6068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6070 fi
6071
6072
6073   test -n "$ac_ct_DUMPBIN" && break
6074 done
6075
6076   if test "x$ac_ct_DUMPBIN" = x; then
6077     DUMPBIN=":"
6078   else
6079     case $cross_compiling:$ac_tool_warned in
6080 yes:)
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083 ac_tool_warned=yes ;;
6084 esac
6085     DUMPBIN=$ac_ct_DUMPBIN
6086   fi
6087 fi
6088
6089     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6090     *COFF*)
6091       DUMPBIN="$DUMPBIN -symbols"
6092       ;;
6093     *)
6094       DUMPBIN=:
6095       ;;
6096     esac
6097   fi
6098
6099   if test "$DUMPBIN" != ":"; then
6100     NM="$DUMPBIN"
6101   fi
6102 fi
6103 test -z "$NM" && NM=nm
6104
6105
6106
6107
6108
6109
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6111 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6112 if ${lt_cv_nm_interface+:} false; then :
6113   $as_echo_n "(cached) " >&6
6114 else
6115   lt_cv_nm_interface="BSD nm"
6116   echo "int some_variable = 0;" > conftest.$ac_ext
6117   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6118   (eval "$ac_compile" 2>conftest.err)
6119   cat conftest.err >&5
6120   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6121   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6122   cat conftest.err >&5
6123   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6124   cat conftest.out >&5
6125   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6126     lt_cv_nm_interface="MS dumpbin"
6127   fi
6128   rm -f conftest*
6129 fi
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6131 $as_echo "$lt_cv_nm_interface" >&6; }
6132
6133 # find the maximum length of command line arguments
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6135 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6136 if ${lt_cv_sys_max_cmd_len+:} false; then :
6137   $as_echo_n "(cached) " >&6
6138 else
6139     i=0
6140   teststring="ABCD"
6141
6142   case $build_os in
6143   msdosdjgpp*)
6144     # On DJGPP, this test can blow up pretty badly due to problems in libc
6145     # (any single argument exceeding 2000 bytes causes a buffer overrun
6146     # during glob expansion).  Even if it were fixed, the result of this
6147     # check would be larger than it should be.
6148     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6149     ;;
6150
6151   gnu*)
6152     # Under GNU Hurd, this test is not required because there is
6153     # no limit to the length of command line arguments.
6154     # Libtool will interpret -1 as no limit whatsoever
6155     lt_cv_sys_max_cmd_len=-1;
6156     ;;
6157
6158   cygwin* | mingw* | cegcc*)
6159     # On Win9x/ME, this test blows up -- it succeeds, but takes
6160     # about 5 minutes as the teststring grows exponentially.
6161     # Worse, since 9x/ME are not pre-emptively multitasking,
6162     # you end up with a "frozen" computer, even though with patience
6163     # the test eventually succeeds (with a max line length of 256k).
6164     # Instead, let's just punt: use the minimum linelength reported by
6165     # all of the supported platforms: 8192 (on NT/2K/XP).
6166     lt_cv_sys_max_cmd_len=8192;
6167     ;;
6168
6169   mint*)
6170     # On MiNT this can take a long time and run out of memory.
6171     lt_cv_sys_max_cmd_len=8192;
6172     ;;
6173
6174   amigaos*)
6175     # On AmigaOS with pdksh, this test takes hours, literally.
6176     # So we just punt and use a minimum line length of 8192.
6177     lt_cv_sys_max_cmd_len=8192;
6178     ;;
6179
6180   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6181     # This has been around since 386BSD, at least.  Likely further.
6182     if test -x /sbin/sysctl; then
6183       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6184     elif test -x /usr/sbin/sysctl; then
6185       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6186     else
6187       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6188     fi
6189     # And add a safety zone
6190     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6191     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6192     ;;
6193
6194   interix*)
6195     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6196     lt_cv_sys_max_cmd_len=196608
6197     ;;
6198
6199   os2*)
6200     # The test takes a long time on OS/2.
6201     lt_cv_sys_max_cmd_len=8192
6202     ;;
6203
6204   osf*)
6205     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6206     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6207     # nice to cause kernel panics so lets avoid the loop below.
6208     # First set a reasonable default.
6209     lt_cv_sys_max_cmd_len=16384
6210     #
6211     if test -x /sbin/sysconfig; then
6212       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6213         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6214       esac
6215     fi
6216     ;;
6217   sco3.2v5*)
6218     lt_cv_sys_max_cmd_len=102400
6219     ;;
6220   sysv5* | sco5v6* | sysv4.2uw2*)
6221     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6222     if test -n "$kargmax"; then
6223       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6224     else
6225       lt_cv_sys_max_cmd_len=32768
6226     fi
6227     ;;
6228   *)
6229     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6230     if test -n "$lt_cv_sys_max_cmd_len"; then
6231       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6232       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6233     else
6234       # Make teststring a little bigger before we do anything with it.
6235       # a 1K string should be a reasonable start.
6236       for i in 1 2 3 4 5 6 7 8 ; do
6237         teststring=$teststring$teststring
6238       done
6239       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6240       # If test is not a shell built-in, we'll probably end up computing a
6241       # maximum length that is only half of the actual maximum length, but
6242       # we can't tell.
6243       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6244                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6245               test $i != 17 # 1/2 MB should be enough
6246       do
6247         i=`expr $i + 1`
6248         teststring=$teststring$teststring
6249       done
6250       # Only check the string length outside the loop.
6251       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6252       teststring=
6253       # Add a significant safety factor because C++ compilers can tack on
6254       # massive amounts of additional arguments before passing them to the
6255       # linker.  It appears as though 1/2 is a usable value.
6256       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6257     fi
6258     ;;
6259   esac
6260
6261 fi
6262
6263 if test -n $lt_cv_sys_max_cmd_len ; then
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6265 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6266 else
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6268 $as_echo "none" >&6; }
6269 fi
6270 max_cmd_len=$lt_cv_sys_max_cmd_len
6271
6272
6273
6274
6275
6276
6277 : ${CP="cp -f"}
6278 : ${MV="mv -f"}
6279 : ${RM="rm -f"}
6280
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6282 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6283 # Try some XSI features
6284 xsi_shell=no
6285 ( _lt_dummy="a/b/c"
6286   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6287       = c,a/b,b/c, \
6288     && eval 'test $(( 1 + 1 )) -eq 2 \
6289     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6290   && xsi_shell=yes
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6292 $as_echo "$xsi_shell" >&6; }
6293
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6296 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6297 lt_shell_append=no
6298 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6299     >/dev/null 2>&1 \
6300   && lt_shell_append=yes
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6302 $as_echo "$lt_shell_append" >&6; }
6303
6304
6305 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6306   lt_unset=unset
6307 else
6308   lt_unset=false
6309 fi
6310
6311
6312
6313
6314
6315 # test EBCDIC or ASCII
6316 case `echo X|tr X '\101'` in
6317  A) # ASCII based system
6318     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6319   lt_SP2NL='tr \040 \012'
6320   lt_NL2SP='tr \015\012 \040\040'
6321   ;;
6322  *) # EBCDIC based system
6323   lt_SP2NL='tr \100 \n'
6324   lt_NL2SP='tr \r\n \100\100'
6325   ;;
6326 esac
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6337 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6338 if ${lt_cv_to_host_file_cmd+:} false; then :
6339   $as_echo_n "(cached) " >&6
6340 else
6341   case $host in
6342   *-*-mingw* )
6343     case $build in
6344       *-*-mingw* ) # actually msys
6345         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6346         ;;
6347       *-*-cygwin* )
6348         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6349         ;;
6350       * ) # otherwise, assume *nix
6351         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6352         ;;
6353     esac
6354     ;;
6355   *-*-cygwin* )
6356     case $build in
6357       *-*-mingw* ) # actually msys
6358         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6359         ;;
6360       *-*-cygwin* )
6361         lt_cv_to_host_file_cmd=func_convert_file_noop
6362         ;;
6363       * ) # otherwise, assume *nix
6364         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6365         ;;
6366     esac
6367     ;;
6368   * ) # unhandled hosts (and "normal" native builds)
6369     lt_cv_to_host_file_cmd=func_convert_file_noop
6370     ;;
6371 esac
6372
6373 fi
6374
6375 to_host_file_cmd=$lt_cv_to_host_file_cmd
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6377 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6378
6379
6380
6381
6382
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6384 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6385 if ${lt_cv_to_tool_file_cmd+:} false; then :
6386   $as_echo_n "(cached) " >&6
6387 else
6388   #assume ordinary cross tools, or native build.
6389 lt_cv_to_tool_file_cmd=func_convert_file_noop
6390 case $host in
6391   *-*-mingw* )
6392     case $build in
6393       *-*-mingw* ) # actually msys
6394         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6395         ;;
6396     esac
6397     ;;
6398 esac
6399
6400 fi
6401
6402 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6404 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6405
6406
6407
6408
6409
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6411 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6412 if ${lt_cv_ld_reload_flag+:} false; then :
6413   $as_echo_n "(cached) " >&6
6414 else
6415   lt_cv_ld_reload_flag='-r'
6416 fi
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6418 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6419 reload_flag=$lt_cv_ld_reload_flag
6420 case $reload_flag in
6421 "" | " "*) ;;
6422 *) reload_flag=" $reload_flag" ;;
6423 esac
6424 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6425 case $host_os in
6426   cygwin* | mingw* | pw32* | cegcc*)
6427     if test "$GCC" != yes; then
6428       reload_cmds=false
6429     fi
6430     ;;
6431   darwin*)
6432     if test "$GCC" = yes; then
6433       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6434     else
6435       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6436     fi
6437     ;;
6438 esac
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448 if test -n "$ac_tool_prefix"; then
6449   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if ${ac_cv_prog_OBJDUMP+:} false; then :
6454   $as_echo_n "(cached) " >&6
6455 else
6456   if test -n "$OBJDUMP"; then
6457   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462   IFS=$as_save_IFS
6463   test -z "$as_dir" && as_dir=.
6464     for ac_exec_ext in '' $ac_executable_extensions; do
6465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6466     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468     break 2
6469   fi
6470 done
6471   done
6472 IFS=$as_save_IFS
6473
6474 fi
6475 fi
6476 OBJDUMP=$ac_cv_prog_OBJDUMP
6477 if test -n "$OBJDUMP"; then
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6479 $as_echo "$OBJDUMP" >&6; }
6480 else
6481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484
6485
6486 fi
6487 if test -z "$ac_cv_prog_OBJDUMP"; then
6488   ac_ct_OBJDUMP=$OBJDUMP
6489   # Extract the first word of "objdump", so it can be a program name with args.
6490 set dummy objdump; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6494   $as_echo_n "(cached) " >&6
6495 else
6496   if test -n "$ac_ct_OBJDUMP"; then
6497   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502   IFS=$as_save_IFS
6503   test -z "$as_dir" && as_dir=.
6504     for ac_exec_ext in '' $ac_executable_extensions; do
6505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6506     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508     break 2
6509   fi
6510 done
6511   done
6512 IFS=$as_save_IFS
6513
6514 fi
6515 fi
6516 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6517 if test -n "$ac_ct_OBJDUMP"; then
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6519 $as_echo "$ac_ct_OBJDUMP" >&6; }
6520 else
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6523 fi
6524
6525   if test "x$ac_ct_OBJDUMP" = x; then
6526     OBJDUMP="false"
6527   else
6528     case $cross_compiling:$ac_tool_warned in
6529 yes:)
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6533 esac
6534     OBJDUMP=$ac_ct_OBJDUMP
6535   fi
6536 else
6537   OBJDUMP="$ac_cv_prog_OBJDUMP"
6538 fi
6539
6540 test -z "$OBJDUMP" && OBJDUMP=objdump
6541
6542
6543
6544
6545
6546
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6548 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6549 if ${lt_cv_deplibs_check_method+:} false; then :
6550   $as_echo_n "(cached) " >&6
6551 else
6552   lt_cv_file_magic_cmd='$MAGIC_CMD'
6553 lt_cv_file_magic_test_file=
6554 lt_cv_deplibs_check_method='unknown'
6555 # Need to set the preceding variable on all platforms that support
6556 # interlibrary dependencies.
6557 # 'none' -- dependencies not supported.
6558 # `unknown' -- same as none, but documents that we really don't know.
6559 # 'pass_all' -- all dependencies passed with no checks.
6560 # 'test_compile' -- check by making test program.
6561 # 'file_magic [[regex]]' -- check by looking for files in library path
6562 # which responds to the $file_magic_cmd with a given extended regex.
6563 # If you have `file' or equivalent on your system and you're not sure
6564 # whether `pass_all' will *always* work, you probably want this one.
6565
6566 case $host_os in
6567 aix[4-9]*)
6568   lt_cv_deplibs_check_method=pass_all
6569   ;;
6570
6571 beos*)
6572   lt_cv_deplibs_check_method=pass_all
6573   ;;
6574
6575 bsdi[45]*)
6576   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6577   lt_cv_file_magic_cmd='/usr/bin/file -L'
6578   lt_cv_file_magic_test_file=/shlib/libc.so
6579   ;;
6580
6581 cygwin*)
6582   # func_win32_libid is a shell function defined in ltmain.sh
6583   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6584   lt_cv_file_magic_cmd='func_win32_libid'
6585   ;;
6586
6587 mingw* | pw32*)
6588   # Base MSYS/MinGW do not provide the 'file' command needed by
6589   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6590   # unless we find 'file', for example because we are cross-compiling.
6591   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6592   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6593     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6594     lt_cv_file_magic_cmd='func_win32_libid'
6595   else
6596     # Keep this pattern in sync with the one in func_win32_libid.
6597     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6598     lt_cv_file_magic_cmd='$OBJDUMP -f'
6599   fi
6600   ;;
6601
6602 cegcc*)
6603   # use the weaker test based on 'objdump'. See mingw*.
6604   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6605   lt_cv_file_magic_cmd='$OBJDUMP -f'
6606   ;;
6607
6608 darwin* | rhapsody*)
6609   lt_cv_deplibs_check_method=pass_all
6610   ;;
6611
6612 freebsd* | dragonfly*)
6613   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6614     case $host_cpu in
6615     i*86 )
6616       # Not sure whether the presence of OpenBSD here was a mistake.
6617       # Let's accept both of them until this is cleared up.
6618       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6619       lt_cv_file_magic_cmd=/usr/bin/file
6620       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6621       ;;
6622     esac
6623   else
6624     lt_cv_deplibs_check_method=pass_all
6625   fi
6626   ;;
6627
6628 gnu*)
6629   lt_cv_deplibs_check_method=pass_all
6630   ;;
6631
6632 haiku*)
6633   lt_cv_deplibs_check_method=pass_all
6634   ;;
6635
6636 hpux10.20* | hpux11*)
6637   lt_cv_file_magic_cmd=/usr/bin/file
6638   case $host_cpu in
6639   ia64*)
6640     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6641     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6642     ;;
6643   hppa*64*)
6644     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]'
6645     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6646     ;;
6647   *)
6648     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6649     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6650     ;;
6651   esac
6652   ;;
6653
6654 interix[3-9]*)
6655   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6656   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6657   ;;
6658
6659 irix5* | irix6* | nonstopux*)
6660   case $LD in
6661   *-32|*"-32 ") libmagic=32-bit;;
6662   *-n32|*"-n32 ") libmagic=N32;;
6663   *-64|*"-64 ") libmagic=64-bit;;
6664   *) libmagic=never-match;;
6665   esac
6666   lt_cv_deplibs_check_method=pass_all
6667   ;;
6668
6669 # This must be glibc/ELF.
6670 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6671   lt_cv_deplibs_check_method=pass_all
6672   ;;
6673
6674 netbsd*)
6675   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6676     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6677   else
6678     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6679   fi
6680   ;;
6681
6682 newos6*)
6683   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6684   lt_cv_file_magic_cmd=/usr/bin/file
6685   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6686   ;;
6687
6688 *nto* | *qnx*)
6689   lt_cv_deplibs_check_method=pass_all
6690   ;;
6691
6692 openbsd*)
6693   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6694     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6695   else
6696     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6697   fi
6698   ;;
6699
6700 osf3* | osf4* | osf5*)
6701   lt_cv_deplibs_check_method=pass_all
6702   ;;
6703
6704 rdos*)
6705   lt_cv_deplibs_check_method=pass_all
6706   ;;
6707
6708 solaris*)
6709   lt_cv_deplibs_check_method=pass_all
6710   ;;
6711
6712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6713   lt_cv_deplibs_check_method=pass_all
6714   ;;
6715
6716 sysv4 | sysv4.3*)
6717   case $host_vendor in
6718   motorola)
6719     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]'
6720     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6721     ;;
6722   ncr)
6723     lt_cv_deplibs_check_method=pass_all
6724     ;;
6725   sequent)
6726     lt_cv_file_magic_cmd='/bin/file'
6727     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6728     ;;
6729   sni)
6730     lt_cv_file_magic_cmd='/bin/file'
6731     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6732     lt_cv_file_magic_test_file=/lib/libc.so
6733     ;;
6734   siemens)
6735     lt_cv_deplibs_check_method=pass_all
6736     ;;
6737   pc)
6738     lt_cv_deplibs_check_method=pass_all
6739     ;;
6740   esac
6741   ;;
6742
6743 tpf*)
6744   lt_cv_deplibs_check_method=pass_all
6745   ;;
6746 esac
6747
6748 fi
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6750 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6751
6752 file_magic_glob=
6753 want_nocaseglob=no
6754 if test "$build" = "$host"; then
6755   case $host_os in
6756   mingw* | pw32*)
6757     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6758       want_nocaseglob=yes
6759     else
6760       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6761     fi
6762     ;;
6763   esac
6764 fi
6765
6766 file_magic_cmd=$lt_cv_file_magic_cmd
6767 deplibs_check_method=$lt_cv_deplibs_check_method
6768 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791 if test -n "$ac_tool_prefix"; then
6792   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6793 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if ${ac_cv_prog_DLLTOOL+:} false; then :
6797   $as_echo_n "(cached) " >&6
6798 else
6799   if test -n "$DLLTOOL"; then
6800   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805   IFS=$as_save_IFS
6806   test -z "$as_dir" && as_dir=.
6807     for ac_exec_ext in '' $ac_executable_extensions; do
6808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811     break 2
6812   fi
6813 done
6814   done
6815 IFS=$as_save_IFS
6816
6817 fi
6818 fi
6819 DLLTOOL=$ac_cv_prog_DLLTOOL
6820 if test -n "$DLLTOOL"; then
6821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6822 $as_echo "$DLLTOOL" >&6; }
6823 else
6824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6826 fi
6827
6828
6829 fi
6830 if test -z "$ac_cv_prog_DLLTOOL"; then
6831   ac_ct_DLLTOOL=$DLLTOOL
6832   # Extract the first word of "dlltool", so it can be a program name with args.
6833 set dummy dlltool; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6837   $as_echo_n "(cached) " >&6
6838 else
6839   if test -n "$ac_ct_DLLTOOL"; then
6840   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845   IFS=$as_save_IFS
6846   test -z "$as_dir" && as_dir=.
6847     for ac_exec_ext in '' $ac_executable_extensions; do
6848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851     break 2
6852   fi
6853 done
6854   done
6855 IFS=$as_save_IFS
6856
6857 fi
6858 fi
6859 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6860 if test -n "$ac_ct_DLLTOOL"; then
6861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6862 $as_echo "$ac_ct_DLLTOOL" >&6; }
6863 else
6864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867
6868   if test "x$ac_ct_DLLTOOL" = x; then
6869     DLLTOOL="false"
6870   else
6871     case $cross_compiling:$ac_tool_warned in
6872 yes:)
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875 ac_tool_warned=yes ;;
6876 esac
6877     DLLTOOL=$ac_ct_DLLTOOL
6878   fi
6879 else
6880   DLLTOOL="$ac_cv_prog_DLLTOOL"
6881 fi
6882
6883 test -z "$DLLTOOL" && DLLTOOL=dlltool
6884
6885
6886
6887
6888
6889
6890
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6892 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6893 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6894   $as_echo_n "(cached) " >&6
6895 else
6896   lt_cv_sharedlib_from_linklib_cmd='unknown'
6897
6898 case $host_os in
6899 cygwin* | mingw* | pw32* | cegcc*)
6900   # two different shell functions defined in ltmain.sh
6901   # decide which to use based on capabilities of $DLLTOOL
6902   case `$DLLTOOL --help 2>&1` in
6903   *--identify-strict*)
6904     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6905     ;;
6906   *)
6907     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6908     ;;
6909   esac
6910   ;;
6911 *)
6912   # fallback: assume linklib IS sharedlib
6913   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6914   ;;
6915 esac
6916
6917 fi
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6919 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6920 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6921 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6922
6923
6924
6925
6926
6927
6928
6929 if test -n "$ac_tool_prefix"; then
6930   for ac_prog in ar
6931   do
6932     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_AR+:} false; then :
6937   $as_echo_n "(cached) " >&6
6938 else
6939   if test -n "$AR"; then
6940   ac_cv_prog_AR="$AR" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945   IFS=$as_save_IFS
6946   test -z "$as_dir" && as_dir=.
6947     for ac_exec_ext in '' $ac_executable_extensions; do
6948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951     break 2
6952   fi
6953 done
6954   done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 AR=$ac_cv_prog_AR
6960 if test -n "$AR"; then
6961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6962 $as_echo "$AR" >&6; }
6963 else
6964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968
6969     test -n "$AR" && break
6970   done
6971 fi
6972 if test -z "$AR"; then
6973   ac_ct_AR=$AR
6974   for ac_prog in ar
6975 do
6976   # Extract the first word of "$ac_prog", so it can be a program name with args.
6977 set dummy $ac_prog; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6981   $as_echo_n "(cached) " >&6
6982 else
6983   if test -n "$ac_ct_AR"; then
6984   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989   IFS=$as_save_IFS
6990   test -z "$as_dir" && as_dir=.
6991     for ac_exec_ext in '' $ac_executable_extensions; do
6992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993     ac_cv_prog_ac_ct_AR="$ac_prog"
6994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995     break 2
6996   fi
6997 done
6998   done
6999 IFS=$as_save_IFS
7000
7001 fi
7002 fi
7003 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7004 if test -n "$ac_ct_AR"; then
7005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7006 $as_echo "$ac_ct_AR" >&6; }
7007 else
7008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7010 fi
7011
7012
7013   test -n "$ac_ct_AR" && break
7014 done
7015
7016   if test "x$ac_ct_AR" = x; then
7017     AR="false"
7018   else
7019     case $cross_compiling:$ac_tool_warned in
7020 yes:)
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7023 ac_tool_warned=yes ;;
7024 esac
7025     AR=$ac_ct_AR
7026   fi
7027 fi
7028
7029 : ${AR=ar}
7030 : ${AR_FLAGS=cru}
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7043 $as_echo_n "checking for archiver @FILE support... " >&6; }
7044 if ${lt_cv_ar_at_file+:} false; then :
7045   $as_echo_n "(cached) " >&6
7046 else
7047   lt_cv_ar_at_file=no
7048    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h.  */
7050
7051 int
7052 main ()
7053 {
7054
7055   ;
7056   return 0;
7057 }
7058 _ACEOF
7059 if ac_fn_c_try_compile "$LINENO"; then :
7060   echo conftest.$ac_objext > conftest.lst
7061       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7062       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7063   (eval $lt_ar_try) 2>&5
7064   ac_status=$?
7065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7066   test $ac_status = 0; }
7067       if test "$ac_status" -eq 0; then
7068         # Ensure the archiver fails upon bogus file names.
7069         rm -f conftest.$ac_objext libconftest.a
7070         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7071   (eval $lt_ar_try) 2>&5
7072   ac_status=$?
7073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7074   test $ac_status = 0; }
7075         if test "$ac_status" -ne 0; then
7076           lt_cv_ar_at_file=@
7077         fi
7078       fi
7079       rm -f conftest.* libconftest.a
7080
7081 fi
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083
7084 fi
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7086 $as_echo "$lt_cv_ar_at_file" >&6; }
7087
7088 if test "x$lt_cv_ar_at_file" = xno; then
7089   archiver_list_spec=
7090 else
7091   archiver_list_spec=$lt_cv_ar_at_file
7092 fi
7093
7094
7095
7096
7097
7098
7099
7100 if test -n "$ac_tool_prefix"; then
7101   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7102 set dummy ${ac_tool_prefix}strip; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if ${ac_cv_prog_STRIP+:} false; then :
7106   $as_echo_n "(cached) " >&6
7107 else
7108   if test -n "$STRIP"; then
7109   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114   IFS=$as_save_IFS
7115   test -z "$as_dir" && as_dir=.
7116     for ac_exec_ext in '' $ac_executable_extensions; do
7117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7118     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120     break 2
7121   fi
7122 done
7123   done
7124 IFS=$as_save_IFS
7125
7126 fi
7127 fi
7128 STRIP=$ac_cv_prog_STRIP
7129 if test -n "$STRIP"; then
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7131 $as_echo "$STRIP" >&6; }
7132 else
7133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7135 fi
7136
7137
7138 fi
7139 if test -z "$ac_cv_prog_STRIP"; then
7140   ac_ct_STRIP=$STRIP
7141   # Extract the first word of "strip", so it can be a program name with args.
7142 set dummy strip; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7146   $as_echo_n "(cached) " >&6
7147 else
7148   if test -n "$ac_ct_STRIP"; then
7149   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154   IFS=$as_save_IFS
7155   test -z "$as_dir" && as_dir=.
7156     for ac_exec_ext in '' $ac_executable_extensions; do
7157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158     ac_cv_prog_ac_ct_STRIP="strip"
7159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160     break 2
7161   fi
7162 done
7163   done
7164 IFS=$as_save_IFS
7165
7166 fi
7167 fi
7168 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7169 if test -n "$ac_ct_STRIP"; then
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7171 $as_echo "$ac_ct_STRIP" >&6; }
7172 else
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7175 fi
7176
7177   if test "x$ac_ct_STRIP" = x; then
7178     STRIP=":"
7179   else
7180     case $cross_compiling:$ac_tool_warned in
7181 yes:)
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7184 ac_tool_warned=yes ;;
7185 esac
7186     STRIP=$ac_ct_STRIP
7187   fi
7188 else
7189   STRIP="$ac_cv_prog_STRIP"
7190 fi
7191
7192 test -z "$STRIP" && STRIP=:
7193
7194
7195
7196
7197
7198
7199 if test -n "$ac_tool_prefix"; then
7200   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7201 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if ${ac_cv_prog_RANLIB+:} false; then :
7205   $as_echo_n "(cached) " >&6
7206 else
7207   if test -n "$RANLIB"; then
7208   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213   IFS=$as_save_IFS
7214   test -z "$as_dir" && as_dir=.
7215     for ac_exec_ext in '' $ac_executable_extensions; do
7216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219     break 2
7220   fi
7221 done
7222   done
7223 IFS=$as_save_IFS
7224
7225 fi
7226 fi
7227 RANLIB=$ac_cv_prog_RANLIB
7228 if test -n "$RANLIB"; then
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7230 $as_echo "$RANLIB" >&6; }
7231 else
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7234 fi
7235
7236
7237 fi
7238 if test -z "$ac_cv_prog_RANLIB"; then
7239   ac_ct_RANLIB=$RANLIB
7240   # Extract the first word of "ranlib", so it can be a program name with args.
7241 set dummy ranlib; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7245   $as_echo_n "(cached) " >&6
7246 else
7247   if test -n "$ac_ct_RANLIB"; then
7248   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255     for ac_exec_ext in '' $ac_executable_extensions; do
7256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7257     ac_cv_prog_ac_ct_RANLIB="ranlib"
7258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262   done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7268 if test -n "$ac_ct_RANLIB"; then
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7270 $as_echo "$ac_ct_RANLIB" >&6; }
7271 else
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 fi
7275
7276   if test "x$ac_ct_RANLIB" = x; then
7277     RANLIB=":"
7278   else
7279     case $cross_compiling:$ac_tool_warned in
7280 yes:)
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7284 esac
7285     RANLIB=$ac_ct_RANLIB
7286   fi
7287 else
7288   RANLIB="$ac_cv_prog_RANLIB"
7289 fi
7290
7291 test -z "$RANLIB" && RANLIB=:
7292
7293
7294
7295
7296
7297
7298 # Determine commands to create old-style static archives.
7299 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7300 old_postinstall_cmds='chmod 644 $oldlib'
7301 old_postuninstall_cmds=
7302
7303 if test -n "$RANLIB"; then
7304   case $host_os in
7305   openbsd*)
7306     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7307     ;;
7308   *)
7309     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7310     ;;
7311   esac
7312   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7313 fi
7314
7315 case $host_os in
7316   darwin*)
7317     lock_old_archive_extraction=yes ;;
7318   *)
7319     lock_old_archive_extraction=no ;;
7320 esac
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360 # If no C compiler was specified, use CC.
7361 LTCC=${LTCC-"$CC"}
7362
7363 # If no C compiler flags were specified, use CFLAGS.
7364 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7365
7366 # Allow CC to be a program name with arguments.
7367 compiler=$CC
7368
7369
7370 # Check for command to grab the raw symbol name followed by C symbol from nm.
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7372 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7373 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7374   $as_echo_n "(cached) " >&6
7375 else
7376
7377 # These are sane defaults that work on at least a few old systems.
7378 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7379
7380 # Character class describing NM global symbol codes.
7381 symcode='[BCDEGRST]'
7382
7383 # Regexp to match symbols that can be accessed directly from C.
7384 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7385
7386 # Define system-specific variables.
7387 case $host_os in
7388 aix*)
7389   symcode='[BCDT]'
7390   ;;
7391 cygwin* | mingw* | pw32* | cegcc*)
7392   symcode='[ABCDGISTW]'
7393   ;;
7394 hpux*)
7395   if test "$host_cpu" = ia64; then
7396     symcode='[ABCDEGRST]'
7397   fi
7398   ;;
7399 irix* | nonstopux*)
7400   symcode='[BCDEGRST]'
7401   ;;
7402 osf*)
7403   symcode='[BCDEGQRST]'
7404   ;;
7405 solaris*)
7406   symcode='[BDRT]'
7407   ;;
7408 sco3.2v5*)
7409   symcode='[DT]'
7410   ;;
7411 sysv4.2uw2*)
7412   symcode='[DT]'
7413   ;;
7414 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7415   symcode='[ABDT]'
7416   ;;
7417 sysv4)
7418   symcode='[DFNSTU]'
7419   ;;
7420 esac
7421
7422 # If we're using GNU nm, then use its standard symbol codes.
7423 case `$NM -V 2>&1` in
7424 *GNU* | *'with BFD'*)
7425   symcode='[ABCDGIRSTW]' ;;
7426 esac
7427
7428 # Transform an extracted symbol line into a proper C declaration.
7429 # Some systems (esp. on ia64) link data and code symbols differently,
7430 # so use this general approach.
7431 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7432
7433 # Transform an extracted symbol line into symbol name and symbol address
7434 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7435 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7436
7437 # Handle CRLF in mingw tool chain
7438 opt_cr=
7439 case $build_os in
7440 mingw*)
7441   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7442   ;;
7443 esac
7444
7445 # Try without a prefix underscore, then with it.
7446 for ac_symprfx in "" "_"; do
7447
7448   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7449   symxfrm="\\1 $ac_symprfx\\2 \\2"
7450
7451   # Write the raw and C identifiers.
7452   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7453     # Fake it for dumpbin and say T for any non-static function
7454     # and D for any global variable.
7455     # Also find C++ and __fastcall symbols from MSVC++,
7456     # which start with @ or ?.
7457     lt_cv_sys_global_symbol_pipe="$AWK '"\
7458 "     {last_section=section; section=\$ 3};"\
7459 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7460 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7461 "     \$ 0!~/External *\|/{next};"\
7462 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7463 "     {if(hide[section]) next};"\
7464 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7465 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7466 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7467 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7468 "     ' prfx=^$ac_symprfx"
7469   else
7470     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7471   fi
7472   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7473
7474   # Check to see that the pipe works correctly.
7475   pipe_works=no
7476
7477   rm -f conftest*
7478   cat > conftest.$ac_ext <<_LT_EOF
7479 #ifdef __cplusplus
7480 extern "C" {
7481 #endif
7482 char nm_test_var;
7483 void nm_test_func(void);
7484 void nm_test_func(void){}
7485 #ifdef __cplusplus
7486 }
7487 #endif
7488 int main(){nm_test_var='a';nm_test_func();return(0);}
7489 _LT_EOF
7490
7491   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7492   (eval $ac_compile) 2>&5
7493   ac_status=$?
7494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7495   test $ac_status = 0; }; then
7496     # Now try to grab the symbols.
7497     nlist=conftest.nm
7498     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7499   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7500   ac_status=$?
7501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7502   test $ac_status = 0; } && test -s "$nlist"; then
7503       # Try sorting and uniquifying the output.
7504       if sort "$nlist" | uniq > "$nlist"T; then
7505         mv -f "$nlist"T "$nlist"
7506       else
7507         rm -f "$nlist"T
7508       fi
7509
7510       # Make sure that we snagged all the symbols we need.
7511       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7512         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7513           cat <<_LT_EOF > conftest.$ac_ext
7514 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7515 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7516 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7517    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7518 # define LT_DLSYM_CONST
7519 #elif defined(__osf__)
7520 /* This system does not cope well with relocations in const data.  */
7521 # define LT_DLSYM_CONST
7522 #else
7523 # define LT_DLSYM_CONST const
7524 #endif
7525
7526 #ifdef __cplusplus
7527 extern "C" {
7528 #endif
7529
7530 _LT_EOF
7531           # Now generate the symbol file.
7532           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7533
7534           cat <<_LT_EOF >> conftest.$ac_ext
7535
7536 /* The mapping between symbol names and symbols.  */
7537 LT_DLSYM_CONST struct {
7538   const char *name;
7539   void       *address;
7540 }
7541 lt__PROGRAM__LTX_preloaded_symbols[] =
7542 {
7543   { "@PROGRAM@", (void *) 0 },
7544 _LT_EOF
7545           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7546           cat <<\_LT_EOF >> conftest.$ac_ext
7547   {0, (void *) 0}
7548 };
7549
7550 /* This works around a problem in FreeBSD linker */
7551 #ifdef FREEBSD_WORKAROUND
7552 static const void *lt_preloaded_setup() {
7553   return lt__PROGRAM__LTX_preloaded_symbols;
7554 }
7555 #endif
7556
7557 #ifdef __cplusplus
7558 }
7559 #endif
7560 _LT_EOF
7561           # Now try linking the two files.
7562           mv conftest.$ac_objext conftstm.$ac_objext
7563           lt_globsym_save_LIBS=$LIBS
7564           lt_globsym_save_CFLAGS=$CFLAGS
7565           LIBS="conftstm.$ac_objext"
7566           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7567           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7568   (eval $ac_link) 2>&5
7569   ac_status=$?
7570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7572             pipe_works=yes
7573           fi
7574           LIBS=$lt_globsym_save_LIBS
7575           CFLAGS=$lt_globsym_save_CFLAGS
7576         else
7577           echo "cannot find nm_test_func in $nlist" >&5
7578         fi
7579       else
7580         echo "cannot find nm_test_var in $nlist" >&5
7581       fi
7582     else
7583       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7584     fi
7585   else
7586     echo "$progname: failed program was:" >&5
7587     cat conftest.$ac_ext >&5
7588   fi
7589   rm -rf conftest* conftst*
7590
7591   # Do not use the global_symbol_pipe unless it works.
7592   if test "$pipe_works" = yes; then
7593     break
7594   else
7595     lt_cv_sys_global_symbol_pipe=
7596   fi
7597 done
7598
7599 fi
7600
7601 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7602   lt_cv_sys_global_symbol_to_cdecl=
7603 fi
7604 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7606 $as_echo "failed" >&6; }
7607 else
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7609 $as_echo "ok" >&6; }
7610 fi
7611
7612 # Response file support.
7613 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7614   nm_file_list_spec='@'
7615 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7616   nm_file_list_spec='@'
7617 fi
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7646 $as_echo_n "checking for sysroot... " >&6; }
7647
7648 # Check whether --with-sysroot was given.
7649 if test "${with_sysroot+set}" = set; then :
7650   withval=$with_sysroot;
7651 else
7652   with_sysroot=no
7653 fi
7654
7655
7656 lt_sysroot=
7657 case ${with_sysroot} in #(
7658  yes)
7659    if test "$GCC" = yes; then
7660      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7661    fi
7662    ;; #(
7663  /*)
7664    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7665    ;; #(
7666  no|'')
7667    ;; #(
7668  *)
7669    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7670 $as_echo "${with_sysroot}" >&6; }
7671    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7672    ;;
7673 esac
7674
7675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7676 $as_echo "${lt_sysroot:-no}" >&6; }
7677
7678
7679
7680
7681
7682 # Check whether --enable-libtool-lock was given.
7683 if test "${enable_libtool_lock+set}" = set; then :
7684   enableval=$enable_libtool_lock;
7685 fi
7686
7687 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7688
7689 # Some flags need to be propagated to the compiler or linker for good
7690 # libtool support.
7691 case $host in
7692 ia64-*-hpux*)
7693   # Find out which ABI we are using.
7694   echo 'int i;' > conftest.$ac_ext
7695   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7696   (eval $ac_compile) 2>&5
7697   ac_status=$?
7698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7699   test $ac_status = 0; }; then
7700     case `/usr/bin/file conftest.$ac_objext` in
7701       *ELF-32*)
7702         HPUX_IA64_MODE="32"
7703         ;;
7704       *ELF-64*)
7705         HPUX_IA64_MODE="64"
7706         ;;
7707     esac
7708   fi
7709   rm -rf conftest*
7710   ;;
7711 *-*-irix6*)
7712   # Find out which ABI we are using.
7713   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7714   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7715   (eval $ac_compile) 2>&5
7716   ac_status=$?
7717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7718   test $ac_status = 0; }; then
7719     if test "$lt_cv_prog_gnu_ld" = yes; then
7720       case `/usr/bin/file conftest.$ac_objext` in
7721         *32-bit*)
7722           LD="${LD-ld} -melf32bsmip"
7723           ;;
7724         *N32*)
7725           LD="${LD-ld} -melf32bmipn32"
7726           ;;
7727         *64-bit*)
7728           LD="${LD-ld} -melf64bmip"
7729         ;;
7730       esac
7731     else
7732       case `/usr/bin/file conftest.$ac_objext` in
7733         *32-bit*)
7734           LD="${LD-ld} -32"
7735           ;;
7736         *N32*)
7737           LD="${LD-ld} -n32"
7738           ;;
7739         *64-bit*)
7740           LD="${LD-ld} -64"
7741           ;;
7742       esac
7743     fi
7744   fi
7745   rm -rf conftest*
7746   ;;
7747
7748 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7749 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7750   # Find out which ABI we are using.
7751   echo 'int i;' > conftest.$ac_ext
7752   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7753   (eval $ac_compile) 2>&5
7754   ac_status=$?
7755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7756   test $ac_status = 0; }; then
7757     case `/usr/bin/file conftest.o` in
7758       *32-bit*)
7759         case $host in
7760           x86_64-*kfreebsd*-gnu)
7761             LD="${LD-ld} -m elf_i386_fbsd"
7762             ;;
7763           x86_64-*linux*)
7764             LD="${LD-ld} -m elf_i386"
7765             ;;
7766           powerpc64le-*linux*)
7767             LD="${LD-ld} -m elf32lppclinux"
7768             ;;
7769           powerpc64-*linux*)
7770             LD="${LD-ld} -m elf32ppclinux"
7771             ;;
7772           s390x-*linux*)
7773             LD="${LD-ld} -m elf_s390"
7774             ;;
7775           sparc64-*linux*)
7776             LD="${LD-ld} -m elf32_sparc"
7777             ;;
7778         esac
7779         ;;
7780       *64-bit*)
7781         case $host in
7782           x86_64-*kfreebsd*-gnu)
7783             LD="${LD-ld} -m elf_x86_64_fbsd"
7784             ;;
7785           x86_64-*linux*)
7786             LD="${LD-ld} -m elf_x86_64"
7787             ;;
7788           powerpcle-*linux*)
7789             LD="${LD-ld} -m elf64lppc"
7790             ;;
7791           powerpc-*linux*)
7792             LD="${LD-ld} -m elf64ppc"
7793             ;;
7794           s390*-*linux*|s390*-*tpf*)
7795             LD="${LD-ld} -m elf64_s390"
7796             ;;
7797           sparc*-*linux*)
7798             LD="${LD-ld} -m elf64_sparc"
7799             ;;
7800         esac
7801         ;;
7802     esac
7803   fi
7804   rm -rf conftest*
7805   ;;
7806
7807 *-*-sco3.2v5*)
7808   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7809   SAVE_CFLAGS="$CFLAGS"
7810   CFLAGS="$CFLAGS -belf"
7811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7812 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7813 if ${lt_cv_cc_needs_belf+:} false; then :
7814   $as_echo_n "(cached) " >&6
7815 else
7816   ac_ext=c
7817 ac_cpp='$CPP $CPPFLAGS'
7818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821
7822      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h.  */
7824
7825 int
7826 main ()
7827 {
7828
7829   ;
7830   return 0;
7831 }
7832 _ACEOF
7833 if ac_fn_c_try_link "$LINENO"; then :
7834   lt_cv_cc_needs_belf=yes
7835 else
7836   lt_cv_cc_needs_belf=no
7837 fi
7838 rm -f core conftest.err conftest.$ac_objext \
7839     conftest$ac_exeext conftest.$ac_ext
7840      ac_ext=c
7841 ac_cpp='$CPP $CPPFLAGS'
7842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845
7846 fi
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7848 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7849   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7850     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7851     CFLAGS="$SAVE_CFLAGS"
7852   fi
7853   ;;
7854 *-*solaris*)
7855   # Find out which ABI we are using.
7856   echo 'int i;' > conftest.$ac_ext
7857   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7858   (eval $ac_compile) 2>&5
7859   ac_status=$?
7860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861   test $ac_status = 0; }; then
7862     case `/usr/bin/file conftest.o` in
7863     *64-bit*)
7864       case $lt_cv_prog_gnu_ld in
7865       yes*)
7866         case $host in
7867         i?86-*-solaris*)
7868           LD="${LD-ld} -m elf_x86_64"
7869           ;;
7870         sparc*-*-solaris*)
7871           LD="${LD-ld} -m elf64_sparc"
7872           ;;
7873         esac
7874         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7875         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7876           LD="${LD-ld}_sol2"
7877         fi
7878         ;;
7879       *)
7880         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7881           LD="${LD-ld} -64"
7882         fi
7883         ;;
7884       esac
7885       ;;
7886     esac
7887   fi
7888   rm -rf conftest*
7889   ;;
7890 esac
7891
7892 need_locks="$enable_libtool_lock"
7893
7894 if test -n "$ac_tool_prefix"; then
7895   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7896 set dummy ${ac_tool_prefix}mt; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7900   $as_echo_n "(cached) " >&6
7901 else
7902   if test -n "$MANIFEST_TOOL"; then
7903   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7904 else
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908   IFS=$as_save_IFS
7909   test -z "$as_dir" && as_dir=.
7910     for ac_exec_ext in '' $ac_executable_extensions; do
7911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914     break 2
7915   fi
7916 done
7917   done
7918 IFS=$as_save_IFS
7919
7920 fi
7921 fi
7922 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7923 if test -n "$MANIFEST_TOOL"; then
7924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7925 $as_echo "$MANIFEST_TOOL" >&6; }
7926 else
7927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7929 fi
7930
7931
7932 fi
7933 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7934   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7935   # Extract the first word of "mt", so it can be a program name with args.
7936 set dummy mt; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7940   $as_echo_n "(cached) " >&6
7941 else
7942   if test -n "$ac_ct_MANIFEST_TOOL"; then
7943   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7947 do
7948   IFS=$as_save_IFS
7949   test -z "$as_dir" && as_dir=.
7950     for ac_exec_ext in '' $ac_executable_extensions; do
7951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954     break 2
7955   fi
7956 done
7957   done
7958 IFS=$as_save_IFS
7959
7960 fi
7961 fi
7962 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7963 if test -n "$ac_ct_MANIFEST_TOOL"; then
7964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7965 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7966 else
7967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7969 fi
7970
7971   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7972     MANIFEST_TOOL=":"
7973   else
7974     case $cross_compiling:$ac_tool_warned in
7975 yes:)
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7978 ac_tool_warned=yes ;;
7979 esac
7980     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7981   fi
7982 else
7983   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7984 fi
7985
7986 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7988 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7989 if ${lt_cv_path_mainfest_tool+:} false; then :
7990   $as_echo_n "(cached) " >&6
7991 else
7992   lt_cv_path_mainfest_tool=no
7993   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7994   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7995   cat conftest.err >&5
7996   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7997     lt_cv_path_mainfest_tool=yes
7998   fi
7999   rm -f conftest*
8000 fi
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8002 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8003 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8004   MANIFEST_TOOL=:
8005 fi
8006
8007
8008
8009
8010
8011
8012   case $host_os in
8013     rhapsody* | darwin*)
8014     if test -n "$ac_tool_prefix"; then
8015   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8016 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8020   $as_echo_n "(cached) " >&6
8021 else
8022   if test -n "$DSYMUTIL"; then
8023   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028   IFS=$as_save_IFS
8029   test -z "$as_dir" && as_dir=.
8030     for ac_exec_ext in '' $ac_executable_extensions; do
8031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034     break 2
8035   fi
8036 done
8037   done
8038 IFS=$as_save_IFS
8039
8040 fi
8041 fi
8042 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8043 if test -n "$DSYMUTIL"; then
8044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8045 $as_echo "$DSYMUTIL" >&6; }
8046 else
8047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8049 fi
8050
8051
8052 fi
8053 if test -z "$ac_cv_prog_DSYMUTIL"; then
8054   ac_ct_DSYMUTIL=$DSYMUTIL
8055   # Extract the first word of "dsymutil", so it can be a program name with args.
8056 set dummy dsymutil; ac_word=$2
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058 $as_echo_n "checking for $ac_word... " >&6; }
8059 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8060   $as_echo_n "(cached) " >&6
8061 else
8062   if test -n "$ac_ct_DSYMUTIL"; then
8063   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8064 else
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH
8067 do
8068   IFS=$as_save_IFS
8069   test -z "$as_dir" && as_dir=.
8070     for ac_exec_ext in '' $ac_executable_extensions; do
8071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074     break 2
8075   fi
8076 done
8077   done
8078 IFS=$as_save_IFS
8079
8080 fi
8081 fi
8082 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8083 if test -n "$ac_ct_DSYMUTIL"; then
8084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8085 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8086 else
8087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8089 fi
8090
8091   if test "x$ac_ct_DSYMUTIL" = x; then
8092     DSYMUTIL=":"
8093   else
8094     case $cross_compiling:$ac_tool_warned in
8095 yes:)
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8098 ac_tool_warned=yes ;;
8099 esac
8100     DSYMUTIL=$ac_ct_DSYMUTIL
8101   fi
8102 else
8103   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8104 fi
8105
8106     if test -n "$ac_tool_prefix"; then
8107   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8108 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_prog_NMEDIT+:} false; then :
8112   $as_echo_n "(cached) " >&6
8113 else
8114   if test -n "$NMEDIT"; then
8115   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8119 do
8120   IFS=$as_save_IFS
8121   test -z "$as_dir" && as_dir=.
8122     for ac_exec_ext in '' $ac_executable_extensions; do
8123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126     break 2
8127   fi
8128 done
8129   done
8130 IFS=$as_save_IFS
8131
8132 fi
8133 fi
8134 NMEDIT=$ac_cv_prog_NMEDIT
8135 if test -n "$NMEDIT"; then
8136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8137 $as_echo "$NMEDIT" >&6; }
8138 else
8139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8141 fi
8142
8143
8144 fi
8145 if test -z "$ac_cv_prog_NMEDIT"; then
8146   ac_ct_NMEDIT=$NMEDIT
8147   # Extract the first word of "nmedit", so it can be a program name with args.
8148 set dummy nmedit; ac_word=$2
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150 $as_echo_n "checking for $ac_word... " >&6; }
8151 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8152   $as_echo_n "(cached) " >&6
8153 else
8154   if test -n "$ac_ct_NMEDIT"; then
8155   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8156 else
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 for as_dir in $PATH
8159 do
8160   IFS=$as_save_IFS
8161   test -z "$as_dir" && as_dir=.
8162     for ac_exec_ext in '' $ac_executable_extensions; do
8163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8164     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8166     break 2
8167   fi
8168 done
8169   done
8170 IFS=$as_save_IFS
8171
8172 fi
8173 fi
8174 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8175 if test -n "$ac_ct_NMEDIT"; then
8176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8177 $as_echo "$ac_ct_NMEDIT" >&6; }
8178 else
8179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8181 fi
8182
8183   if test "x$ac_ct_NMEDIT" = x; then
8184     NMEDIT=":"
8185   else
8186     case $cross_compiling:$ac_tool_warned in
8187 yes:)
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8190 ac_tool_warned=yes ;;
8191 esac
8192     NMEDIT=$ac_ct_NMEDIT
8193   fi
8194 else
8195   NMEDIT="$ac_cv_prog_NMEDIT"
8196 fi
8197
8198     if test -n "$ac_tool_prefix"; then
8199   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8200 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if ${ac_cv_prog_LIPO+:} false; then :
8204   $as_echo_n "(cached) " >&6
8205 else
8206   if test -n "$LIPO"; then
8207   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8211 do
8212   IFS=$as_save_IFS
8213   test -z "$as_dir" && as_dir=.
8214     for ac_exec_ext in '' $ac_executable_extensions; do
8215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8216     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218     break 2
8219   fi
8220 done
8221   done
8222 IFS=$as_save_IFS
8223
8224 fi
8225 fi
8226 LIPO=$ac_cv_prog_LIPO
8227 if test -n "$LIPO"; then
8228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8229 $as_echo "$LIPO" >&6; }
8230 else
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 fi
8234
8235
8236 fi
8237 if test -z "$ac_cv_prog_LIPO"; then
8238   ac_ct_LIPO=$LIPO
8239   # Extract the first word of "lipo", so it can be a program name with args.
8240 set dummy lipo; ac_word=$2
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242 $as_echo_n "checking for $ac_word... " >&6; }
8243 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8244   $as_echo_n "(cached) " >&6
8245 else
8246   if test -n "$ac_ct_LIPO"; then
8247   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8248 else
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 for as_dir in $PATH
8251 do
8252   IFS=$as_save_IFS
8253   test -z "$as_dir" && as_dir=.
8254     for ac_exec_ext in '' $ac_executable_extensions; do
8255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8256     ac_cv_prog_ac_ct_LIPO="lipo"
8257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8258     break 2
8259   fi
8260 done
8261   done
8262 IFS=$as_save_IFS
8263
8264 fi
8265 fi
8266 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8267 if test -n "$ac_ct_LIPO"; then
8268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8269 $as_echo "$ac_ct_LIPO" >&6; }
8270 else
8271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8273 fi
8274
8275   if test "x$ac_ct_LIPO" = x; then
8276     LIPO=":"
8277   else
8278     case $cross_compiling:$ac_tool_warned in
8279 yes:)
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8282 ac_tool_warned=yes ;;
8283 esac
8284     LIPO=$ac_ct_LIPO
8285   fi
8286 else
8287   LIPO="$ac_cv_prog_LIPO"
8288 fi
8289
8290     if test -n "$ac_tool_prefix"; then
8291   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8292 set dummy ${ac_tool_prefix}otool; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if ${ac_cv_prog_OTOOL+:} false; then :
8296   $as_echo_n "(cached) " >&6
8297 else
8298   if test -n "$OTOOL"; then
8299   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8303 do
8304   IFS=$as_save_IFS
8305   test -z "$as_dir" && as_dir=.
8306     for ac_exec_ext in '' $ac_executable_extensions; do
8307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8308     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310     break 2
8311   fi
8312 done
8313   done
8314 IFS=$as_save_IFS
8315
8316 fi
8317 fi
8318 OTOOL=$ac_cv_prog_OTOOL
8319 if test -n "$OTOOL"; then
8320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8321 $as_echo "$OTOOL" >&6; }
8322 else
8323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8325 fi
8326
8327
8328 fi
8329 if test -z "$ac_cv_prog_OTOOL"; then
8330   ac_ct_OTOOL=$OTOOL
8331   # Extract the first word of "otool", so it can be a program name with args.
8332 set dummy otool; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8336   $as_echo_n "(cached) " >&6
8337 else
8338   if test -n "$ac_ct_OTOOL"; then
8339   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8343 do
8344   IFS=$as_save_IFS
8345   test -z "$as_dir" && as_dir=.
8346     for ac_exec_ext in '' $ac_executable_extensions; do
8347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8348     ac_cv_prog_ac_ct_OTOOL="otool"
8349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350     break 2
8351   fi
8352 done
8353   done
8354 IFS=$as_save_IFS
8355
8356 fi
8357 fi
8358 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8359 if test -n "$ac_ct_OTOOL"; then
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8361 $as_echo "$ac_ct_OTOOL" >&6; }
8362 else
8363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8365 fi
8366
8367   if test "x$ac_ct_OTOOL" = x; then
8368     OTOOL=":"
8369   else
8370     case $cross_compiling:$ac_tool_warned in
8371 yes:)
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8374 ac_tool_warned=yes ;;
8375 esac
8376     OTOOL=$ac_ct_OTOOL
8377   fi
8378 else
8379   OTOOL="$ac_cv_prog_OTOOL"
8380 fi
8381
8382     if test -n "$ac_tool_prefix"; then
8383   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8384 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386 $as_echo_n "checking for $ac_word... " >&6; }
8387 if ${ac_cv_prog_OTOOL64+:} false; then :
8388   $as_echo_n "(cached) " >&6
8389 else
8390   if test -n "$OTOOL64"; then
8391   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8392 else
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 for as_dir in $PATH
8395 do
8396   IFS=$as_save_IFS
8397   test -z "$as_dir" && as_dir=.
8398     for ac_exec_ext in '' $ac_executable_extensions; do
8399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8400     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402     break 2
8403   fi
8404 done
8405   done
8406 IFS=$as_save_IFS
8407
8408 fi
8409 fi
8410 OTOOL64=$ac_cv_prog_OTOOL64
8411 if test -n "$OTOOL64"; then
8412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8413 $as_echo "$OTOOL64" >&6; }
8414 else
8415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8417 fi
8418
8419
8420 fi
8421 if test -z "$ac_cv_prog_OTOOL64"; then
8422   ac_ct_OTOOL64=$OTOOL64
8423   # Extract the first word of "otool64", so it can be a program name with args.
8424 set dummy otool64; ac_word=$2
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 $as_echo_n "checking for $ac_word... " >&6; }
8427 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8428   $as_echo_n "(cached) " >&6
8429 else
8430   if test -n "$ac_ct_OTOOL64"; then
8431   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8432 else
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 for as_dir in $PATH
8435 do
8436   IFS=$as_save_IFS
8437   test -z "$as_dir" && as_dir=.
8438     for ac_exec_ext in '' $ac_executable_extensions; do
8439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8440     ac_cv_prog_ac_ct_OTOOL64="otool64"
8441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442     break 2
8443   fi
8444 done
8445   done
8446 IFS=$as_save_IFS
8447
8448 fi
8449 fi
8450 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8451 if test -n "$ac_ct_OTOOL64"; then
8452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8453 $as_echo "$ac_ct_OTOOL64" >&6; }
8454 else
8455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 $as_echo "no" >&6; }
8457 fi
8458
8459   if test "x$ac_ct_OTOOL64" = x; then
8460     OTOOL64=":"
8461   else
8462     case $cross_compiling:$ac_tool_warned in
8463 yes:)
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8466 ac_tool_warned=yes ;;
8467 esac
8468     OTOOL64=$ac_ct_OTOOL64
8469   fi
8470 else
8471   OTOOL64="$ac_cv_prog_OTOOL64"
8472 fi
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8501 $as_echo_n "checking for -single_module linker flag... " >&6; }
8502 if ${lt_cv_apple_cc_single_mod+:} false; then :
8503   $as_echo_n "(cached) " >&6
8504 else
8505   lt_cv_apple_cc_single_mod=no
8506       if test -z "${LT_MULTI_MODULE}"; then
8507         # By default we will add the -single_module flag. You can override
8508         # by either setting the environment variable LT_MULTI_MODULE
8509         # non-empty at configure time, or by adding -multi_module to the
8510         # link flags.
8511         rm -rf libconftest.dylib*
8512         echo "int foo(void){return 1;}" > conftest.c
8513         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8514 -dynamiclib -Wl,-single_module conftest.c" >&5
8515         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8516           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8517         _lt_result=$?
8518         # If there is a non-empty error log, and "single_module"
8519         # appears in it, assume the flag caused a linker warning
8520         if test -s conftest.err && $GREP single_module conftest.err; then
8521           cat conftest.err >&5
8522         # Otherwise, if the output was created with a 0 exit code from
8523         # the compiler, it worked.
8524         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8525           lt_cv_apple_cc_single_mod=yes
8526         else
8527           cat conftest.err >&5
8528         fi
8529         rm -rf libconftest.dylib*
8530         rm -f conftest.*
8531       fi
8532 fi
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8534 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8535
8536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8537 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8538 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8539   $as_echo_n "(cached) " >&6
8540 else
8541   lt_cv_ld_exported_symbols_list=no
8542       save_LDFLAGS=$LDFLAGS
8543       echo "_main" > conftest.sym
8544       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8545       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h.  */
8547
8548 int
8549 main ()
8550 {
8551
8552   ;
8553   return 0;
8554 }
8555 _ACEOF
8556 if ac_fn_c_try_link "$LINENO"; then :
8557   lt_cv_ld_exported_symbols_list=yes
8558 else
8559   lt_cv_ld_exported_symbols_list=no
8560 fi
8561 rm -f core conftest.err conftest.$ac_objext \
8562     conftest$ac_exeext conftest.$ac_ext
8563         LDFLAGS="$save_LDFLAGS"
8564
8565 fi
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8567 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8568
8569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8570 $as_echo_n "checking for -force_load linker flag... " >&6; }
8571 if ${lt_cv_ld_force_load+:} false; then :
8572   $as_echo_n "(cached) " >&6
8573 else
8574   lt_cv_ld_force_load=no
8575       cat > conftest.c << _LT_EOF
8576 int forced_loaded() { return 2;}
8577 _LT_EOF
8578       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8579       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8580       echo "$AR cru libconftest.a conftest.o" >&5
8581       $AR cru libconftest.a conftest.o 2>&5
8582       echo "$RANLIB libconftest.a" >&5
8583       $RANLIB libconftest.a 2>&5
8584       cat > conftest.c << _LT_EOF
8585 int main() { return 0;}
8586 _LT_EOF
8587       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8588       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8589       _lt_result=$?
8590       if test -s conftest.err && $GREP force_load conftest.err; then
8591         cat conftest.err >&5
8592       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8593         lt_cv_ld_force_load=yes
8594       else
8595         cat conftest.err >&5
8596       fi
8597         rm -f conftest.err libconftest.a conftest conftest.c
8598         rm -rf conftest.dSYM
8599
8600 fi
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8602 $as_echo "$lt_cv_ld_force_load" >&6; }
8603     case $host_os in
8604     rhapsody* | darwin1.[012])
8605       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8606     darwin1.*)
8607       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8608     darwin*) # darwin 5.x on
8609       # if running on 10.5 or later, the deployment target defaults
8610       # to the OS version, if on x86, and 10.4, the deployment
8611       # target defaults to 10.4. Don't you love it?
8612       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8613         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8614           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8615         10.[012]*)
8616           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8617         10.*)
8618           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8619       esac
8620     ;;
8621   esac
8622     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8623       _lt_dar_single_mod='$single_module'
8624     fi
8625     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8626       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8627     else
8628       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8629     fi
8630     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8631       _lt_dsymutil='~$DSYMUTIL $lib || :'
8632     else
8633       _lt_dsymutil=
8634     fi
8635     ;;
8636   esac
8637
8638 for ac_header in dlfcn.h
8639 do :
8640   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8641 "
8642 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8643   cat >>confdefs.h <<_ACEOF
8644 #define HAVE_DLFCN_H 1
8645 _ACEOF
8646
8647 fi
8648
8649 done
8650
8651
8652
8653
8654
8655 # Set options
8656 # Check whether --enable-static was given.
8657 if test "${enable_static+set}" = set; then :
8658   enableval=$enable_static; p=${PACKAGE-default}
8659     case $enableval in
8660     yes) enable_static=yes ;;
8661     no) enable_static=no ;;
8662     *)
8663      enable_static=no
8664       # Look at the argument we got.  We use all the common list separators.
8665       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8666       for pkg in $enableval; do
8667         IFS="$lt_save_ifs"
8668         if test "X$pkg" = "X$p"; then
8669           enable_static=yes
8670         fi
8671       done
8672       IFS="$lt_save_ifs"
8673       ;;
8674     esac
8675 else
8676   enable_static=no
8677 fi
8678
8679
8680
8681
8682
8683
8684
8685 enable_win32_dll=yes
8686
8687 case $host in
8688 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8689   if test -n "$ac_tool_prefix"; then
8690   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8691 set dummy ${ac_tool_prefix}as; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if ${ac_cv_prog_AS+:} false; then :
8695   $as_echo_n "(cached) " >&6
8696 else
8697   if test -n "$AS"; then
8698   ac_cv_prog_AS="$AS" # Let the user override the test.
8699 else
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8702 do
8703   IFS=$as_save_IFS
8704   test -z "$as_dir" && as_dir=.
8705     for ac_exec_ext in '' $ac_executable_extensions; do
8706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707     ac_cv_prog_AS="${ac_tool_prefix}as"
8708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709     break 2
8710   fi
8711 done
8712   done
8713 IFS=$as_save_IFS
8714
8715 fi
8716 fi
8717 AS=$ac_cv_prog_AS
8718 if test -n "$AS"; then
8719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8720 $as_echo "$AS" >&6; }
8721 else
8722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8724 fi
8725
8726
8727 fi
8728 if test -z "$ac_cv_prog_AS"; then
8729   ac_ct_AS=$AS
8730   # Extract the first word of "as", so it can be a program name with args.
8731 set dummy as; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8735   $as_echo_n "(cached) " >&6
8736 else
8737   if test -n "$ac_ct_AS"; then
8738   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8742 do
8743   IFS=$as_save_IFS
8744   test -z "$as_dir" && as_dir=.
8745     for ac_exec_ext in '' $ac_executable_extensions; do
8746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8747     ac_cv_prog_ac_ct_AS="as"
8748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749     break 2
8750   fi
8751 done
8752   done
8753 IFS=$as_save_IFS
8754
8755 fi
8756 fi
8757 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8758 if test -n "$ac_ct_AS"; then
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8760 $as_echo "$ac_ct_AS" >&6; }
8761 else
8762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8764 fi
8765
8766   if test "x$ac_ct_AS" = x; then
8767     AS="false"
8768   else
8769     case $cross_compiling:$ac_tool_warned in
8770 yes:)
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8773 ac_tool_warned=yes ;;
8774 esac
8775     AS=$ac_ct_AS
8776   fi
8777 else
8778   AS="$ac_cv_prog_AS"
8779 fi
8780
8781   if test -n "$ac_tool_prefix"; then
8782   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8783 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 $as_echo_n "checking for $ac_word... " >&6; }
8786 if ${ac_cv_prog_DLLTOOL+:} false; then :
8787   $as_echo_n "(cached) " >&6
8788 else
8789   if test -n "$DLLTOOL"; then
8790   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8791 else
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8794 do
8795   IFS=$as_save_IFS
8796   test -z "$as_dir" && as_dir=.
8797     for ac_exec_ext in '' $ac_executable_extensions; do
8798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801     break 2
8802   fi
8803 done
8804   done
8805 IFS=$as_save_IFS
8806
8807 fi
8808 fi
8809 DLLTOOL=$ac_cv_prog_DLLTOOL
8810 if test -n "$DLLTOOL"; then
8811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8812 $as_echo "$DLLTOOL" >&6; }
8813 else
8814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8816 fi
8817
8818
8819 fi
8820 if test -z "$ac_cv_prog_DLLTOOL"; then
8821   ac_ct_DLLTOOL=$DLLTOOL
8822   # Extract the first word of "dlltool", so it can be a program name with args.
8823 set dummy dlltool; ac_word=$2
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825 $as_echo_n "checking for $ac_word... " >&6; }
8826 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8827   $as_echo_n "(cached) " >&6
8828 else
8829   if test -n "$ac_ct_DLLTOOL"; then
8830   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8831 else
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $PATH
8834 do
8835   IFS=$as_save_IFS
8836   test -z "$as_dir" && as_dir=.
8837     for ac_exec_ext in '' $ac_executable_extensions; do
8838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8839     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841     break 2
8842   fi
8843 done
8844   done
8845 IFS=$as_save_IFS
8846
8847 fi
8848 fi
8849 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8850 if test -n "$ac_ct_DLLTOOL"; then
8851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8852 $as_echo "$ac_ct_DLLTOOL" >&6; }
8853 else
8854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8856 fi
8857
8858   if test "x$ac_ct_DLLTOOL" = x; then
8859     DLLTOOL="false"
8860   else
8861     case $cross_compiling:$ac_tool_warned in
8862 yes:)
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8865 ac_tool_warned=yes ;;
8866 esac
8867     DLLTOOL=$ac_ct_DLLTOOL
8868   fi
8869 else
8870   DLLTOOL="$ac_cv_prog_DLLTOOL"
8871 fi
8872
8873   if test -n "$ac_tool_prefix"; then
8874   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8875 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if ${ac_cv_prog_OBJDUMP+:} false; then :
8879   $as_echo_n "(cached) " >&6
8880 else
8881   if test -n "$OBJDUMP"; then
8882   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8883 else
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 for as_dir in $PATH
8886 do
8887   IFS=$as_save_IFS
8888   test -z "$as_dir" && as_dir=.
8889     for ac_exec_ext in '' $ac_executable_extensions; do
8890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8891     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893     break 2
8894   fi
8895 done
8896   done
8897 IFS=$as_save_IFS
8898
8899 fi
8900 fi
8901 OBJDUMP=$ac_cv_prog_OBJDUMP
8902 if test -n "$OBJDUMP"; then
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8904 $as_echo "$OBJDUMP" >&6; }
8905 else
8906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8908 fi
8909
8910
8911 fi
8912 if test -z "$ac_cv_prog_OBJDUMP"; then
8913   ac_ct_OBJDUMP=$OBJDUMP
8914   # Extract the first word of "objdump", so it can be a program name with args.
8915 set dummy objdump; ac_word=$2
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8917 $as_echo_n "checking for $ac_word... " >&6; }
8918 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8919   $as_echo_n "(cached) " >&6
8920 else
8921   if test -n "$ac_ct_OBJDUMP"; then
8922   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8923 else
8924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925 for as_dir in $PATH
8926 do
8927   IFS=$as_save_IFS
8928   test -z "$as_dir" && as_dir=.
8929     for ac_exec_ext in '' $ac_executable_extensions; do
8930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933     break 2
8934   fi
8935 done
8936   done
8937 IFS=$as_save_IFS
8938
8939 fi
8940 fi
8941 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8942 if test -n "$ac_ct_OBJDUMP"; then
8943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8944 $as_echo "$ac_ct_OBJDUMP" >&6; }
8945 else
8946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8948 fi
8949
8950   if test "x$ac_ct_OBJDUMP" = x; then
8951     OBJDUMP="false"
8952   else
8953     case $cross_compiling:$ac_tool_warned in
8954 yes:)
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8957 ac_tool_warned=yes ;;
8958 esac
8959     OBJDUMP=$ac_ct_OBJDUMP
8960   fi
8961 else
8962   OBJDUMP="$ac_cv_prog_OBJDUMP"
8963 fi
8964
8965   ;;
8966 esac
8967
8968 test -z "$AS" && AS=as
8969
8970
8971
8972
8973
8974 test -z "$DLLTOOL" && DLLTOOL=dlltool
8975
8976
8977
8978
8979
8980 test -z "$OBJDUMP" && OBJDUMP=objdump
8981
8982
8983
8984
8985
8986
8987
8988         enable_dlopen=no
8989
8990
8991
8992             # Check whether --enable-shared was given.
8993 if test "${enable_shared+set}" = set; then :
8994   enableval=$enable_shared; p=${PACKAGE-default}
8995     case $enableval in
8996     yes) enable_shared=yes ;;
8997     no) enable_shared=no ;;
8998     *)
8999       enable_shared=no
9000       # Look at the argument we got.  We use all the common list separators.
9001       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9002       for pkg in $enableval; do
9003         IFS="$lt_save_ifs"
9004         if test "X$pkg" = "X$p"; then
9005           enable_shared=yes
9006         fi
9007       done
9008       IFS="$lt_save_ifs"
9009       ;;
9010     esac
9011 else
9012   enable_shared=yes
9013 fi
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025 # Check whether --with-pic was given.
9026 if test "${with_pic+set}" = set; then :
9027   withval=$with_pic; lt_p=${PACKAGE-default}
9028     case $withval in
9029     yes|no) pic_mode=$withval ;;
9030     *)
9031       pic_mode=default
9032       # Look at the argument we got.  We use all the common list separators.
9033       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9034       for lt_pkg in $withval; do
9035         IFS="$lt_save_ifs"
9036         if test "X$lt_pkg" = "X$lt_p"; then
9037           pic_mode=yes
9038         fi
9039       done
9040       IFS="$lt_save_ifs"
9041       ;;
9042     esac
9043 else
9044   pic_mode=default
9045 fi
9046
9047
9048 test -z "$pic_mode" && pic_mode=default
9049
9050
9051
9052
9053
9054
9055
9056   # Check whether --enable-fast-install was given.
9057 if test "${enable_fast_install+set}" = set; then :
9058   enableval=$enable_fast_install; p=${PACKAGE-default}
9059     case $enableval in
9060     yes) enable_fast_install=yes ;;
9061     no) enable_fast_install=no ;;
9062     *)
9063       enable_fast_install=no
9064       # Look at the argument we got.  We use all the common list separators.
9065       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9066       for pkg in $enableval; do
9067         IFS="$lt_save_ifs"
9068         if test "X$pkg" = "X$p"; then
9069           enable_fast_install=yes
9070         fi
9071       done
9072       IFS="$lt_save_ifs"
9073       ;;
9074     esac
9075 else
9076   enable_fast_install=yes
9077 fi
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089 # This can be used to rebuild libtool when needed
9090 LIBTOOL_DEPS="$ltmain"
9091
9092 # Always use our own libtool.
9093 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124 test -z "$LN_S" && LN_S="ln -s"
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139 if test -n "${ZSH_VERSION+set}" ; then
9140    setopt NO_GLOB_SUBST
9141 fi
9142
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9144 $as_echo_n "checking for objdir... " >&6; }
9145 if ${lt_cv_objdir+:} false; then :
9146   $as_echo_n "(cached) " >&6
9147 else
9148   rm -f .libs 2>/dev/null
9149 mkdir .libs 2>/dev/null
9150 if test -d .libs; then
9151   lt_cv_objdir=.libs
9152 else
9153   # MS-DOS does not allow filenames that begin with a dot.
9154   lt_cv_objdir=_libs
9155 fi
9156 rmdir .libs 2>/dev/null
9157 fi
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9159 $as_echo "$lt_cv_objdir" >&6; }
9160 objdir=$lt_cv_objdir
9161
9162
9163
9164
9165
9166 cat >>confdefs.h <<_ACEOF
9167 #define LT_OBJDIR "$lt_cv_objdir/"
9168 _ACEOF
9169
9170
9171
9172
9173 case $host_os in
9174 aix3*)
9175   # AIX sometimes has problems with the GCC collect2 program.  For some
9176   # reason, if we set the COLLECT_NAMES environment variable, the problems
9177   # vanish in a puff of smoke.
9178   if test "X${COLLECT_NAMES+set}" != Xset; then
9179     COLLECT_NAMES=
9180     export COLLECT_NAMES
9181   fi
9182   ;;
9183 esac
9184
9185 # Global variables:
9186 ofile=libtool
9187 can_build_shared=yes
9188
9189 # All known linkers require a `.a' archive for static linking (except MSVC,
9190 # which needs '.lib').
9191 libext=a
9192
9193 with_gnu_ld="$lt_cv_prog_gnu_ld"
9194
9195 old_CC="$CC"
9196 old_CFLAGS="$CFLAGS"
9197
9198 # Set sane defaults for various variables
9199 test -z "$CC" && CC=cc
9200 test -z "$LTCC" && LTCC=$CC
9201 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9202 test -z "$LD" && LD=ld
9203 test -z "$ac_objext" && ac_objext=o
9204
9205 for cc_temp in $compiler""; do
9206   case $cc_temp in
9207     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9208     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9209     \-*) ;;
9210     *) break;;
9211   esac
9212 done
9213 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9214
9215
9216 # Only perform the check for file, if the check method requires it
9217 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9218 case $deplibs_check_method in
9219 file_magic*)
9220   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9222 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9223 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9224   $as_echo_n "(cached) " >&6
9225 else
9226   case $MAGIC_CMD in
9227 [\\/*] |  ?:[\\/]*)
9228   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9229   ;;
9230 *)
9231   lt_save_MAGIC_CMD="$MAGIC_CMD"
9232   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9233   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9234   for ac_dir in $ac_dummy; do
9235     IFS="$lt_save_ifs"
9236     test -z "$ac_dir" && ac_dir=.
9237     if test -f $ac_dir/${ac_tool_prefix}file; then
9238       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9239       if test -n "$file_magic_test_file"; then
9240         case $deplibs_check_method in
9241         "file_magic "*)
9242           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9243           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9244           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9245             $EGREP "$file_magic_regex" > /dev/null; then
9246             :
9247           else
9248             cat <<_LT_EOF 1>&2
9249
9250 *** Warning: the command libtool uses to detect shared libraries,
9251 *** $file_magic_cmd, produces output that libtool cannot recognize.
9252 *** The result is that libtool may fail to recognize shared libraries
9253 *** as such.  This will affect the creation of libtool libraries that
9254 *** depend on shared libraries, but programs linked with such libtool
9255 *** libraries will work regardless of this problem.  Nevertheless, you
9256 *** may want to report the problem to your system manager and/or to
9257 *** bug-libtool@gnu.org
9258
9259 _LT_EOF
9260           fi ;;
9261         esac
9262       fi
9263       break
9264     fi
9265   done
9266   IFS="$lt_save_ifs"
9267   MAGIC_CMD="$lt_save_MAGIC_CMD"
9268   ;;
9269 esac
9270 fi
9271
9272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9273 if test -n "$MAGIC_CMD"; then
9274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9275 $as_echo "$MAGIC_CMD" >&6; }
9276 else
9277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278 $as_echo "no" >&6; }
9279 fi
9280
9281
9282
9283
9284
9285 if test -z "$lt_cv_path_MAGIC_CMD"; then
9286   if test -n "$ac_tool_prefix"; then
9287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9288 $as_echo_n "checking for file... " >&6; }
9289 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9290   $as_echo_n "(cached) " >&6
9291 else
9292   case $MAGIC_CMD in
9293 [\\/*] |  ?:[\\/]*)
9294   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9295   ;;
9296 *)
9297   lt_save_MAGIC_CMD="$MAGIC_CMD"
9298   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9299   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9300   for ac_dir in $ac_dummy; do
9301     IFS="$lt_save_ifs"
9302     test -z "$ac_dir" && ac_dir=.
9303     if test -f $ac_dir/file; then
9304       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9305       if test -n "$file_magic_test_file"; then
9306         case $deplibs_check_method in
9307         "file_magic "*)
9308           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9309           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9310           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9311             $EGREP "$file_magic_regex" > /dev/null; then
9312             :
9313           else
9314             cat <<_LT_EOF 1>&2
9315
9316 *** Warning: the command libtool uses to detect shared libraries,
9317 *** $file_magic_cmd, produces output that libtool cannot recognize.
9318 *** The result is that libtool may fail to recognize shared libraries
9319 *** as such.  This will affect the creation of libtool libraries that
9320 *** depend on shared libraries, but programs linked with such libtool
9321 *** libraries will work regardless of this problem.  Nevertheless, you
9322 *** may want to report the problem to your system manager and/or to
9323 *** bug-libtool@gnu.org
9324
9325 _LT_EOF
9326           fi ;;
9327         esac
9328       fi
9329       break
9330     fi
9331   done
9332   IFS="$lt_save_ifs"
9333   MAGIC_CMD="$lt_save_MAGIC_CMD"
9334   ;;
9335 esac
9336 fi
9337
9338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9339 if test -n "$MAGIC_CMD"; then
9340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9341 $as_echo "$MAGIC_CMD" >&6; }
9342 else
9343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9344 $as_echo "no" >&6; }
9345 fi
9346
9347
9348   else
9349     MAGIC_CMD=:
9350   fi
9351 fi
9352
9353   fi
9354   ;;
9355 esac
9356
9357 # Use C for the default configuration in the libtool script
9358
9359 lt_save_CC="$CC"
9360 ac_ext=c
9361 ac_cpp='$CPP $CPPFLAGS'
9362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9365
9366
9367 # Source file extension for C test sources.
9368 ac_ext=c
9369
9370 # Object file extension for compiled C test sources.
9371 objext=o
9372 objext=$objext
9373
9374 # Code to be used in simple compile tests
9375 lt_simple_compile_test_code="int some_variable = 0;"
9376
9377 # Code to be used in simple link tests
9378 lt_simple_link_test_code='int main(){return(0);}'
9379
9380
9381
9382
9383
9384
9385
9386 # If no C compiler was specified, use CC.
9387 LTCC=${LTCC-"$CC"}
9388
9389 # If no C compiler flags were specified, use CFLAGS.
9390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9391
9392 # Allow CC to be a program name with arguments.
9393 compiler=$CC
9394
9395 # Save the default compiler, since it gets overwritten when the other
9396 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9397 compiler_DEFAULT=$CC
9398
9399 # save warnings/boilerplate of simple test code
9400 ac_outfile=conftest.$ac_objext
9401 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9402 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9403 _lt_compiler_boilerplate=`cat conftest.err`
9404 $RM conftest*
9405
9406 ac_outfile=conftest.$ac_objext
9407 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9408 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9409 _lt_linker_boilerplate=`cat conftest.err`
9410 $RM -r conftest*
9411
9412
9413 ## CAVEAT EMPTOR:
9414 ## There is no encapsulation within the following macros, do not change
9415 ## the running order or otherwise move them around unless you know exactly
9416 ## what you are doing...
9417 if test -n "$compiler"; then
9418
9419 lt_prog_compiler_no_builtin_flag=
9420
9421 if test "$GCC" = yes; then
9422   case $cc_basename in
9423   nvcc*)
9424     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9425   *)
9426     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9427   esac
9428
9429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9430 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9431 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9432   $as_echo_n "(cached) " >&6
9433 else
9434   lt_cv_prog_compiler_rtti_exceptions=no
9435    ac_outfile=conftest.$ac_objext
9436    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9437    lt_compiler_flag="-fno-rtti -fno-exceptions"
9438    # Insert the option either (1) after the last *FLAGS variable, or
9439    # (2) before a word containing "conftest.", or (3) at the end.
9440    # Note that $ac_compile itself does not contain backslashes and begins
9441    # with a dollar sign (not a hyphen), so the echo should work correctly.
9442    # The option is referenced via a variable to avoid confusing sed.
9443    lt_compile=`echo "$ac_compile" | $SED \
9444    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9445    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9446    -e 's:$: $lt_compiler_flag:'`
9447    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9448    (eval "$lt_compile" 2>conftest.err)
9449    ac_status=$?
9450    cat conftest.err >&5
9451    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452    if (exit $ac_status) && test -s "$ac_outfile"; then
9453      # The compiler can only warn and ignore the option if not recognized
9454      # So say no if there are warnings other than the usual output.
9455      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9456      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9457      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9458        lt_cv_prog_compiler_rtti_exceptions=yes
9459      fi
9460    fi
9461    $RM conftest*
9462
9463 fi
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9465 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9466
9467 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9468     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9469 else
9470     :
9471 fi
9472
9473 fi
9474
9475
9476
9477
9478
9479
9480   lt_prog_compiler_wl=
9481 lt_prog_compiler_pic=
9482 lt_prog_compiler_static=
9483
9484
9485   if test "$GCC" = yes; then
9486     lt_prog_compiler_wl='-Wl,'
9487     lt_prog_compiler_static='-static'
9488
9489     case $host_os in
9490       aix*)
9491       # All AIX code is PIC.
9492       if test "$host_cpu" = ia64; then
9493         # AIX 5 now supports IA64 processor
9494         lt_prog_compiler_static='-Bstatic'
9495       fi
9496       ;;
9497
9498     amigaos*)
9499       case $host_cpu in
9500       powerpc)
9501             # see comment about AmigaOS4 .so support
9502             lt_prog_compiler_pic='-fPIC'
9503         ;;
9504       m68k)
9505             # FIXME: we need at least 68020 code to build shared libraries, but
9506             # adding the `-m68020' flag to GCC prevents building anything better,
9507             # like `-m68040'.
9508             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9509         ;;
9510       esac
9511       ;;
9512
9513     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9514       # PIC is the default for these OSes.
9515       ;;
9516
9517     mingw* | cygwin* | pw32* | os2* | cegcc*)
9518       # This hack is so that the source file can tell whether it is being
9519       # built for inclusion in a dll (and should export symbols for example).
9520       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9521       # (--disable-auto-import) libraries
9522       lt_prog_compiler_pic='-DDLL_EXPORT'
9523       ;;
9524
9525     darwin* | rhapsody*)
9526       # PIC is the default on this platform
9527       # Common symbols not allowed in MH_DYLIB files
9528       lt_prog_compiler_pic='-fno-common'
9529       ;;
9530
9531     haiku*)
9532       # PIC is the default for Haiku.
9533       # The "-static" flag exists, but is broken.
9534       lt_prog_compiler_static=
9535       ;;
9536
9537     hpux*)
9538       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9539       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9540       # sets the default TLS model and affects inlining.
9541       case $host_cpu in
9542       hppa*64*)
9543         # +Z the default
9544         ;;
9545       *)
9546         lt_prog_compiler_pic='-fPIC'
9547         ;;
9548       esac
9549       ;;
9550
9551     interix[3-9]*)
9552       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9553       # Instead, we relocate shared libraries at runtime.
9554       ;;
9555
9556     msdosdjgpp*)
9557       # Just because we use GCC doesn't mean we suddenly get shared libraries
9558       # on systems that don't support them.
9559       lt_prog_compiler_can_build_shared=no
9560       enable_shared=no
9561       ;;
9562
9563     *nto* | *qnx*)
9564       # QNX uses GNU C++, but need to define -shared option too, otherwise
9565       # it will coredump.
9566       lt_prog_compiler_pic='-fPIC -shared'
9567       ;;
9568
9569     sysv4*MP*)
9570       if test -d /usr/nec; then
9571         lt_prog_compiler_pic=-Kconform_pic
9572       fi
9573       ;;
9574
9575     *)
9576       lt_prog_compiler_pic='-fPIC'
9577       ;;
9578     esac
9579
9580     case $cc_basename in
9581     nvcc*) # Cuda Compiler Driver 2.2
9582       lt_prog_compiler_wl='-Xlinker '
9583       if test -n "$lt_prog_compiler_pic"; then
9584         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9585       fi
9586       ;;
9587     esac
9588   else
9589     # PORTME Check for flag to pass linker flags through the system compiler.
9590     case $host_os in
9591     aix*)
9592       lt_prog_compiler_wl='-Wl,'
9593       if test "$host_cpu" = ia64; then
9594         # AIX 5 now supports IA64 processor
9595         lt_prog_compiler_static='-Bstatic'
9596       else
9597         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9598       fi
9599       ;;
9600
9601     mingw* | cygwin* | pw32* | os2* | cegcc*)
9602       # This hack is so that the source file can tell whether it is being
9603       # built for inclusion in a dll (and should export symbols for example).
9604       lt_prog_compiler_pic='-DDLL_EXPORT'
9605       ;;
9606
9607     hpux9* | hpux10* | hpux11*)
9608       lt_prog_compiler_wl='-Wl,'
9609       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9610       # not for PA HP-UX.
9611       case $host_cpu in
9612       hppa*64*|ia64*)
9613         # +Z the default
9614         ;;
9615       *)
9616         lt_prog_compiler_pic='+Z'
9617         ;;
9618       esac
9619       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9620       lt_prog_compiler_static='${wl}-a ${wl}archive'
9621       ;;
9622
9623     irix5* | irix6* | nonstopux*)
9624       lt_prog_compiler_wl='-Wl,'
9625       # PIC (with -KPIC) is the default.
9626       lt_prog_compiler_static='-non_shared'
9627       ;;
9628
9629     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9630       case $cc_basename in
9631       # old Intel for x86_64 which still supported -KPIC.
9632       ecc*)
9633         lt_prog_compiler_wl='-Wl,'
9634         lt_prog_compiler_pic='-KPIC'
9635         lt_prog_compiler_static='-static'
9636         ;;
9637       # icc used to be incompatible with GCC.
9638       # ICC 10 doesn't accept -KPIC any more.
9639       icc* | ifort*)
9640         lt_prog_compiler_wl='-Wl,'
9641         lt_prog_compiler_pic='-fPIC'
9642         lt_prog_compiler_static='-static'
9643         ;;
9644       # Lahey Fortran 8.1.
9645       lf95*)
9646         lt_prog_compiler_wl='-Wl,'
9647         lt_prog_compiler_pic='--shared'
9648         lt_prog_compiler_static='--static'
9649         ;;
9650       nagfor*)
9651         # NAG Fortran compiler
9652         lt_prog_compiler_wl='-Wl,-Wl,,'
9653         lt_prog_compiler_pic='-PIC'
9654         lt_prog_compiler_static='-Bstatic'
9655         ;;
9656       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9657         # Portland Group compilers (*not* the Pentium gcc compiler,
9658         # which looks to be a dead project)
9659         lt_prog_compiler_wl='-Wl,'
9660         lt_prog_compiler_pic='-fpic'
9661         lt_prog_compiler_static='-Bstatic'
9662         ;;
9663       ccc*)
9664         lt_prog_compiler_wl='-Wl,'
9665         # All Alpha code is PIC.
9666         lt_prog_compiler_static='-non_shared'
9667         ;;
9668       xl* | bgxl* | bgf* | mpixl*)
9669         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9670         lt_prog_compiler_wl='-Wl,'
9671         lt_prog_compiler_pic='-qpic'
9672         lt_prog_compiler_static='-qstaticlink'
9673         ;;
9674       *)
9675         case `$CC -V 2>&1 | sed 5q` in
9676         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9677           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9678           lt_prog_compiler_pic='-KPIC'
9679           lt_prog_compiler_static='-Bstatic'
9680           lt_prog_compiler_wl=''
9681           ;;
9682         *Sun\ F* | *Sun*Fortran*)
9683           lt_prog_compiler_pic='-KPIC'
9684           lt_prog_compiler_static='-Bstatic'
9685           lt_prog_compiler_wl='-Qoption ld '
9686           ;;
9687         *Sun\ C*)
9688           # Sun C 5.9
9689           lt_prog_compiler_pic='-KPIC'
9690           lt_prog_compiler_static='-Bstatic'
9691           lt_prog_compiler_wl='-Wl,'
9692           ;;
9693         *Intel*\ [CF]*Compiler*)
9694           lt_prog_compiler_wl='-Wl,'
9695           lt_prog_compiler_pic='-fPIC'
9696           lt_prog_compiler_static='-static'
9697           ;;
9698         *Portland\ Group*)
9699           lt_prog_compiler_wl='-Wl,'
9700           lt_prog_compiler_pic='-fpic'
9701           lt_prog_compiler_static='-Bstatic'
9702           ;;
9703         esac
9704         ;;
9705       esac
9706       ;;
9707
9708     newsos6)
9709       lt_prog_compiler_pic='-KPIC'
9710       lt_prog_compiler_static='-Bstatic'
9711       ;;
9712
9713     *nto* | *qnx*)
9714       # QNX uses GNU C++, but need to define -shared option too, otherwise
9715       # it will coredump.
9716       lt_prog_compiler_pic='-fPIC -shared'
9717       ;;
9718
9719     osf3* | osf4* | osf5*)
9720       lt_prog_compiler_wl='-Wl,'
9721       # All OSF/1 code is PIC.
9722       lt_prog_compiler_static='-non_shared'
9723       ;;
9724
9725     rdos*)
9726       lt_prog_compiler_static='-non_shared'
9727       ;;
9728
9729     solaris*)
9730       lt_prog_compiler_pic='-KPIC'
9731       lt_prog_compiler_static='-Bstatic'
9732       case $cc_basename in
9733       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9734         lt_prog_compiler_wl='-Qoption ld ';;
9735       *)
9736         lt_prog_compiler_wl='-Wl,';;
9737       esac
9738       ;;
9739
9740     sunos4*)
9741       lt_prog_compiler_wl='-Qoption ld '
9742       lt_prog_compiler_pic='-PIC'
9743       lt_prog_compiler_static='-Bstatic'
9744       ;;
9745
9746     sysv4 | sysv4.2uw2* | sysv4.3*)
9747       lt_prog_compiler_wl='-Wl,'
9748       lt_prog_compiler_pic='-KPIC'
9749       lt_prog_compiler_static='-Bstatic'
9750       ;;
9751
9752     sysv4*MP*)
9753       if test -d /usr/nec ;then
9754         lt_prog_compiler_pic='-Kconform_pic'
9755         lt_prog_compiler_static='-Bstatic'
9756       fi
9757       ;;
9758
9759     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9760       lt_prog_compiler_wl='-Wl,'
9761       lt_prog_compiler_pic='-KPIC'
9762       lt_prog_compiler_static='-Bstatic'
9763       ;;
9764
9765     unicos*)
9766       lt_prog_compiler_wl='-Wl,'
9767       lt_prog_compiler_can_build_shared=no
9768       ;;
9769
9770     uts4*)
9771       lt_prog_compiler_pic='-pic'
9772       lt_prog_compiler_static='-Bstatic'
9773       ;;
9774
9775     *)
9776       lt_prog_compiler_can_build_shared=no
9777       ;;
9778     esac
9779   fi
9780
9781 case $host_os in
9782   # For platforms which do not support PIC, -DPIC is meaningless:
9783   *djgpp*)
9784     lt_prog_compiler_pic=
9785     ;;
9786   *)
9787     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9788     ;;
9789 esac
9790
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9792 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9793 if ${lt_cv_prog_compiler_pic+:} false; then :
9794   $as_echo_n "(cached) " >&6
9795 else
9796   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9797 fi
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9799 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9800 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9801
9802 #
9803 # Check to make sure the PIC flag actually works.
9804 #
9805 if test -n "$lt_prog_compiler_pic"; then
9806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9807 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9808 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9809   $as_echo_n "(cached) " >&6
9810 else
9811   lt_cv_prog_compiler_pic_works=no
9812    ac_outfile=conftest.$ac_objext
9813    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9814    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9815    # Insert the option either (1) after the last *FLAGS variable, or
9816    # (2) before a word containing "conftest.", or (3) at the end.
9817    # Note that $ac_compile itself does not contain backslashes and begins
9818    # with a dollar sign (not a hyphen), so the echo should work correctly.
9819    # The option is referenced via a variable to avoid confusing sed.
9820    lt_compile=`echo "$ac_compile" | $SED \
9821    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9823    -e 's:$: $lt_compiler_flag:'`
9824    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9825    (eval "$lt_compile" 2>conftest.err)
9826    ac_status=$?
9827    cat conftest.err >&5
9828    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829    if (exit $ac_status) && test -s "$ac_outfile"; then
9830      # The compiler can only warn and ignore the option if not recognized
9831      # So say no if there are warnings other than the usual output.
9832      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9833      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9834      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9835        lt_cv_prog_compiler_pic_works=yes
9836      fi
9837    fi
9838    $RM conftest*
9839
9840 fi
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9842 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9843
9844 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9845     case $lt_prog_compiler_pic in
9846      "" | " "*) ;;
9847      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9848      esac
9849 else
9850     lt_prog_compiler_pic=
9851      lt_prog_compiler_can_build_shared=no
9852 fi
9853
9854 fi
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866 #
9867 # Check to make sure the static flag actually works.
9868 #
9869 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9871 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9872 if ${lt_cv_prog_compiler_static_works+:} false; then :
9873   $as_echo_n "(cached) " >&6
9874 else
9875   lt_cv_prog_compiler_static_works=no
9876    save_LDFLAGS="$LDFLAGS"
9877    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9878    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9879    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9880      # The linker can only warn and ignore the option if not recognized
9881      # So say no if there are warnings
9882      if test -s conftest.err; then
9883        # Append any errors to the config.log.
9884        cat conftest.err 1>&5
9885        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9886        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9887        if diff conftest.exp conftest.er2 >/dev/null; then
9888          lt_cv_prog_compiler_static_works=yes
9889        fi
9890      else
9891        lt_cv_prog_compiler_static_works=yes
9892      fi
9893    fi
9894    $RM -r conftest*
9895    LDFLAGS="$save_LDFLAGS"
9896
9897 fi
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9899 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9900
9901 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9902     :
9903 else
9904     lt_prog_compiler_static=
9905 fi
9906
9907
9908
9909
9910
9911
9912
9913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9914 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9915 if ${lt_cv_prog_compiler_c_o+:} false; then :
9916   $as_echo_n "(cached) " >&6
9917 else
9918   lt_cv_prog_compiler_c_o=no
9919    $RM -r conftest 2>/dev/null
9920    mkdir conftest
9921    cd conftest
9922    mkdir out
9923    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9924
9925    lt_compiler_flag="-o out/conftest2.$ac_objext"
9926    # Insert the option either (1) after the last *FLAGS variable, or
9927    # (2) before a word containing "conftest.", or (3) at the end.
9928    # Note that $ac_compile itself does not contain backslashes and begins
9929    # with a dollar sign (not a hyphen), so the echo should work correctly.
9930    lt_compile=`echo "$ac_compile" | $SED \
9931    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9932    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9933    -e 's:$: $lt_compiler_flag:'`
9934    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9935    (eval "$lt_compile" 2>out/conftest.err)
9936    ac_status=$?
9937    cat out/conftest.err >&5
9938    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9940    then
9941      # The compiler can only warn and ignore the option if not recognized
9942      # So say no if there are warnings
9943      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9944      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9945      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9946        lt_cv_prog_compiler_c_o=yes
9947      fi
9948    fi
9949    chmod u+w . 2>&5
9950    $RM conftest*
9951    # SGI C++ compiler will create directory out/ii_files/ for
9952    # template instantiation
9953    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9954    $RM out/* && rmdir out
9955    cd ..
9956    $RM -r conftest
9957    $RM conftest*
9958
9959 fi
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9961 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9962
9963
9964
9965
9966
9967
9968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9969 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9970 if ${lt_cv_prog_compiler_c_o+:} false; then :
9971   $as_echo_n "(cached) " >&6
9972 else
9973   lt_cv_prog_compiler_c_o=no
9974    $RM -r conftest 2>/dev/null
9975    mkdir conftest
9976    cd conftest
9977    mkdir out
9978    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9979
9980    lt_compiler_flag="-o out/conftest2.$ac_objext"
9981    # Insert the option either (1) after the last *FLAGS variable, or
9982    # (2) before a word containing "conftest.", or (3) at the end.
9983    # Note that $ac_compile itself does not contain backslashes and begins
9984    # with a dollar sign (not a hyphen), so the echo should work correctly.
9985    lt_compile=`echo "$ac_compile" | $SED \
9986    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9987    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9988    -e 's:$: $lt_compiler_flag:'`
9989    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9990    (eval "$lt_compile" 2>out/conftest.err)
9991    ac_status=$?
9992    cat out/conftest.err >&5
9993    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9995    then
9996      # The compiler can only warn and ignore the option if not recognized
9997      # So say no if there are warnings
9998      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9999      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10000      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10001        lt_cv_prog_compiler_c_o=yes
10002      fi
10003    fi
10004    chmod u+w . 2>&5
10005    $RM conftest*
10006    # SGI C++ compiler will create directory out/ii_files/ for
10007    # template instantiation
10008    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10009    $RM out/* && rmdir out
10010    cd ..
10011    $RM -r conftest
10012    $RM conftest*
10013
10014 fi
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10016 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10017
10018
10019
10020
10021 hard_links="nottested"
10022 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10023   # do not overwrite the value of need_locks provided by the user
10024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10025 $as_echo_n "checking if we can lock with hard links... " >&6; }
10026   hard_links=yes
10027   $RM conftest*
10028   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10029   touch conftest.a
10030   ln conftest.a conftest.b 2>&5 || hard_links=no
10031   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10033 $as_echo "$hard_links" >&6; }
10034   if test "$hard_links" = no; then
10035     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10036 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10037     need_locks=warn
10038   fi
10039 else
10040   need_locks=no
10041 fi
10042
10043
10044
10045
10046
10047
10048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10049 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10050
10051   runpath_var=
10052   allow_undefined_flag=
10053   always_export_symbols=no
10054   archive_cmds=
10055   archive_expsym_cmds=
10056   compiler_needs_object=no
10057   enable_shared_with_static_runtimes=no
10058   export_dynamic_flag_spec=
10059   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10060   hardcode_automatic=no
10061   hardcode_direct=no
10062   hardcode_direct_absolute=no
10063   hardcode_libdir_flag_spec=
10064   hardcode_libdir_separator=
10065   hardcode_minus_L=no
10066   hardcode_shlibpath_var=unsupported
10067   inherit_rpath=no
10068   link_all_deplibs=unknown
10069   module_cmds=
10070   module_expsym_cmds=
10071   old_archive_from_new_cmds=
10072   old_archive_from_expsyms_cmds=
10073   thread_safe_flag_spec=
10074   whole_archive_flag_spec=
10075   # include_expsyms should be a list of space-separated symbols to be *always*
10076   # included in the symbol list
10077   include_expsyms=
10078   # exclude_expsyms can be an extended regexp of symbols to exclude
10079   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10080   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10081   # as well as any symbol that contains `d'.
10082   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10083   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10084   # platforms (ab)use it in PIC code, but their linkers get confused if
10085   # the symbol is explicitly referenced.  Since portable code cannot
10086   # rely on this symbol name, it's probably fine to never include it in
10087   # preloaded symbol tables.
10088   # Exclude shared library initialization/finalization symbols.
10089   extract_expsyms_cmds=
10090
10091   case $host_os in
10092   cygwin* | mingw* | pw32* | cegcc*)
10093     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10094     # When not using gcc, we currently assume that we are using
10095     # Microsoft Visual C++.
10096     if test "$GCC" != yes; then
10097       with_gnu_ld=no
10098     fi
10099     ;;
10100   interix*)
10101     # we just hope/assume this is gcc and not c89 (= MSVC++)
10102     with_gnu_ld=yes
10103     ;;
10104   openbsd*)
10105     with_gnu_ld=no
10106     ;;
10107   esac
10108
10109   ld_shlibs=yes
10110
10111   # On some targets, GNU ld is compatible enough with the native linker
10112   # that we're better off using the native interface for both.
10113   lt_use_gnu_ld_interface=no
10114   if test "$with_gnu_ld" = yes; then
10115     case $host_os in
10116       aix*)
10117         # The AIX port of GNU ld has always aspired to compatibility
10118         # with the native linker.  However, as the warning in the GNU ld
10119         # block says, versions before 2.19.5* couldn't really create working
10120         # shared libraries, regardless of the interface used.
10121         case `$LD -v 2>&1` in
10122           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10123           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10124           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10125           *)
10126             lt_use_gnu_ld_interface=yes
10127             ;;
10128         esac
10129         ;;
10130       *)
10131         lt_use_gnu_ld_interface=yes
10132         ;;
10133     esac
10134   fi
10135
10136   if test "$lt_use_gnu_ld_interface" = yes; then
10137     # If archive_cmds runs LD, not CC, wlarc should be empty
10138     wlarc='${wl}'
10139
10140     # Set some defaults for GNU ld with shared library support. These
10141     # are reset later if shared libraries are not supported. Putting them
10142     # here allows them to be overridden if necessary.
10143     runpath_var=LD_RUN_PATH
10144     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10145     export_dynamic_flag_spec='${wl}--export-dynamic'
10146     # ancient GNU ld didn't support --whole-archive et. al.
10147     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10148       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10149     else
10150       whole_archive_flag_spec=
10151     fi
10152     supports_anon_versioning=no
10153     case `$LD -v 2>&1` in
10154       *GNU\ gold*) supports_anon_versioning=yes ;;
10155       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10156       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10157       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10158       *\ 2.11.*) ;; # other 2.11 versions
10159       *) supports_anon_versioning=yes ;;
10160     esac
10161
10162     # See if GNU ld supports shared libraries.
10163     case $host_os in
10164     aix[3-9]*)
10165       # On AIX/PPC, the GNU linker is very broken
10166       if test "$host_cpu" != ia64; then
10167         ld_shlibs=no
10168         cat <<_LT_EOF 1>&2
10169
10170 *** Warning: the GNU linker, at least up to release 2.19, is reported
10171 *** to be unable to reliably create shared libraries on AIX.
10172 *** Therefore, libtool is disabling shared libraries support.  If you
10173 *** really care for shared libraries, you may want to install binutils
10174 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10175 *** You will then need to restart the configuration process.
10176
10177 _LT_EOF
10178       fi
10179       ;;
10180
10181     amigaos*)
10182       case $host_cpu in
10183       powerpc)
10184             # see comment about AmigaOS4 .so support
10185             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10186             archive_expsym_cmds=''
10187         ;;
10188       m68k)
10189             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)'
10190             hardcode_libdir_flag_spec='-L$libdir'
10191             hardcode_minus_L=yes
10192         ;;
10193       esac
10194       ;;
10195
10196     beos*)
10197       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10198         allow_undefined_flag=unsupported
10199         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10200         # support --undefined.  This deserves some investigation.  FIXME
10201         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10202       else
10203         ld_shlibs=no
10204       fi
10205       ;;
10206
10207     cygwin* | mingw* | pw32* | cegcc*)
10208       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10209       # as there is no search path for DLLs.
10210       hardcode_libdir_flag_spec='-L$libdir'
10211       export_dynamic_flag_spec='${wl}--export-all-symbols'
10212       allow_undefined_flag=unsupported
10213       always_export_symbols=no
10214       enable_shared_with_static_runtimes=yes
10215       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'
10216       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10217
10218       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10219         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10220         # If the export-symbols file already is a .def file (1st line
10221         # is EXPORTS), use it as is; otherwise, prepend...
10222         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10223           cp $export_symbols $output_objdir/$soname.def;
10224         else
10225           echo EXPORTS > $output_objdir/$soname.def;
10226           cat $export_symbols >> $output_objdir/$soname.def;
10227         fi~
10228         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10229       else
10230         ld_shlibs=no
10231       fi
10232       ;;
10233
10234     haiku*)
10235       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10236       link_all_deplibs=yes
10237       ;;
10238
10239     interix[3-9]*)
10240       hardcode_direct=no
10241       hardcode_shlibpath_var=no
10242       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10243       export_dynamic_flag_spec='${wl}-E'
10244       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10245       # Instead, shared libraries are loaded at an image base (0x10000000 by
10246       # default) and relocated if they conflict, which is a slow very memory
10247       # consuming and fragmenting process.  To avoid this, we pick a random,
10248       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10249       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10250       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10251       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'
10252       ;;
10253
10254     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10255       tmp_diet=no
10256       if test "$host_os" = linux-dietlibc; then
10257         case $cc_basename in
10258           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10259         esac
10260       fi
10261       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10262          && test "$tmp_diet" = no
10263       then
10264         tmp_addflag=' $pic_flag'
10265         tmp_sharedflag='-shared'
10266         case $cc_basename,$host_cpu in
10267         pgcc*)                          # Portland Group C compiler
10268           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'
10269           tmp_addflag=' $pic_flag'
10270           ;;
10271         pgf77* | pgf90* | pgf95* | pgfortran*)
10272                                         # Portland Group f77 and f90 compilers
10273           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'
10274           tmp_addflag=' $pic_flag -Mnomain' ;;
10275         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10276           tmp_addflag=' -i_dynamic' ;;
10277         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10278           tmp_addflag=' -i_dynamic -nofor_main' ;;
10279         ifc* | ifort*)                  # Intel Fortran compiler
10280           tmp_addflag=' -nofor_main' ;;
10281         lf95*)                          # Lahey Fortran 8.1
10282           whole_archive_flag_spec=
10283           tmp_sharedflag='--shared' ;;
10284         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10285           tmp_sharedflag='-qmkshrobj'
10286           tmp_addflag= ;;
10287         nvcc*)  # Cuda Compiler Driver 2.2
10288           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'
10289           compiler_needs_object=yes
10290           ;;
10291         esac
10292         case `$CC -V 2>&1 | sed 5q` in
10293         *Sun\ C*)                       # Sun C 5.9
10294           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'
10295           compiler_needs_object=yes
10296           tmp_sharedflag='-G' ;;
10297         *Sun\ F*)                       # Sun Fortran 8.3
10298           tmp_sharedflag='-G' ;;
10299         esac
10300         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10301
10302         if test "x$supports_anon_versioning" = xyes; then
10303           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10304             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10305             echo "local: *; };" >> $output_objdir/$libname.ver~
10306             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10307         fi
10308
10309         case $cc_basename in
10310         xlf* | bgf* | bgxlf* | mpixlf*)
10311           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10312           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10313           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10314           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10315           if test "x$supports_anon_versioning" = xyes; then
10316             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10317               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10318               echo "local: *; };" >> $output_objdir/$libname.ver~
10319               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10320           fi
10321           ;;
10322         esac
10323       else
10324         ld_shlibs=no
10325       fi
10326       ;;
10327
10328     netbsd*)
10329       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10330         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10331         wlarc=
10332       else
10333         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10334         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10335       fi
10336       ;;
10337
10338     solaris*)
10339       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10340         ld_shlibs=no
10341         cat <<_LT_EOF 1>&2
10342
10343 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10344 *** create shared libraries on Solaris systems.  Therefore, libtool
10345 *** is disabling shared libraries support.  We urge you to upgrade GNU
10346 *** binutils to release 2.9.1 or newer.  Another option is to modify
10347 *** your PATH or compiler configuration so that the native linker is
10348 *** used, and then restart.
10349
10350 _LT_EOF
10351       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10352         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10353         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10354       else
10355         ld_shlibs=no
10356       fi
10357       ;;
10358
10359     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10360       case `$LD -v 2>&1` in
10361         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10362         ld_shlibs=no
10363         cat <<_LT_EOF 1>&2
10364
10365 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10366 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10367 *** is disabling shared libraries support.  We urge you to upgrade GNU
10368 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10369 *** your PATH or compiler configuration so that the native linker is
10370 *** used, and then restart.
10371
10372 _LT_EOF
10373         ;;
10374         *)
10375           # For security reasons, it is highly recommended that you always
10376           # use absolute paths for naming shared libraries, and exclude the
10377           # DT_RUNPATH tag from executables and libraries.  But doing so
10378           # requires that you compile everything twice, which is a pain.
10379           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10380             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10381             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10382             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10383           else
10384             ld_shlibs=no
10385           fi
10386         ;;
10387       esac
10388       ;;
10389
10390     sunos4*)
10391       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10392       wlarc=
10393       hardcode_direct=yes
10394       hardcode_shlibpath_var=no
10395       ;;
10396
10397     *)
10398       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10399         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10400         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10401       else
10402         ld_shlibs=no
10403       fi
10404       ;;
10405     esac
10406
10407     if test "$ld_shlibs" = no; then
10408       runpath_var=
10409       hardcode_libdir_flag_spec=
10410       export_dynamic_flag_spec=
10411       whole_archive_flag_spec=
10412     fi
10413   else
10414     # PORTME fill in a description of your system's linker (not GNU ld)
10415     case $host_os in
10416     aix3*)
10417       allow_undefined_flag=unsupported
10418       always_export_symbols=yes
10419       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'
10420       # Note: this linker hardcodes the directories in LIBPATH if there
10421       # are no directories specified by -L.
10422       hardcode_minus_L=yes
10423       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10424         # Neither direct hardcoding nor static linking is supported with a
10425         # broken collect2.
10426         hardcode_direct=unsupported
10427       fi
10428       ;;
10429
10430     aix[4-9]*)
10431       if test "$host_cpu" = ia64; then
10432         # On IA64, the linker does run time linking by default, so we don't
10433         # have to do anything special.
10434         aix_use_runtimelinking=no
10435         exp_sym_flag='-Bexport'
10436         no_entry_flag=""
10437       else
10438         # If we're using GNU nm, then we don't want the "-C" option.
10439         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10440         # Also, AIX nm treats weak defined symbols like other global
10441         # defined symbols, whereas GNU nm marks them as "W".
10442         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10443           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10444         else
10445           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10446         fi
10447         aix_use_runtimelinking=no
10448
10449         # Test if we are trying to use run time linking or normal
10450         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10451         # need to do runtime linking.
10452         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10453           for ld_flag in $LDFLAGS; do
10454           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10455             aix_use_runtimelinking=yes
10456             break
10457           fi
10458           done
10459           ;;
10460         esac
10461
10462         exp_sym_flag='-bexport'
10463         no_entry_flag='-bnoentry'
10464       fi
10465
10466       # When large executables or shared objects are built, AIX ld can
10467       # have problems creating the table of contents.  If linking a library
10468       # or program results in "error TOC overflow" add -mminimal-toc to
10469       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10470       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10471
10472       archive_cmds=''
10473       hardcode_direct=yes
10474       hardcode_direct_absolute=yes
10475       hardcode_libdir_separator=':'
10476       link_all_deplibs=yes
10477       file_list_spec='${wl}-f,'
10478
10479       if test "$GCC" = yes; then
10480         case $host_os in aix4.[012]|aix4.[012].*)
10481         # We only want to do this on AIX 4.2 and lower, the check
10482         # below for broken collect2 doesn't work under 4.3+
10483           collect2name=`${CC} -print-prog-name=collect2`
10484           if test -f "$collect2name" &&
10485            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10486           then
10487           # We have reworked collect2
10488           :
10489           else
10490           # We have old collect2
10491           hardcode_direct=unsupported
10492           # It fails to find uninstalled libraries when the uninstalled
10493           # path is not listed in the libpath.  Setting hardcode_minus_L
10494           # to unsupported forces relinking
10495           hardcode_minus_L=yes
10496           hardcode_libdir_flag_spec='-L$libdir'
10497           hardcode_libdir_separator=
10498           fi
10499           ;;
10500         esac
10501         shared_flag='-shared'
10502         if test "$aix_use_runtimelinking" = yes; then
10503           shared_flag="$shared_flag "'${wl}-G'
10504         fi
10505       else
10506         # not using gcc
10507         if test "$host_cpu" = ia64; then
10508         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10509         # chokes on -Wl,-G. The following line is correct:
10510           shared_flag='-G'
10511         else
10512           if test "$aix_use_runtimelinking" = yes; then
10513             shared_flag='${wl}-G'
10514           else
10515             shared_flag='${wl}-bM:SRE'
10516           fi
10517         fi
10518       fi
10519
10520       export_dynamic_flag_spec='${wl}-bexpall'
10521       # It seems that -bexpall does not export symbols beginning with
10522       # underscore (_), so it is better to generate a list of symbols to export.
10523       always_export_symbols=yes
10524       if test "$aix_use_runtimelinking" = yes; then
10525         # Warning - without using the other runtime loading flags (-brtl),
10526         # -berok will link without error, but may produce a broken library.
10527         allow_undefined_flag='-berok'
10528         # Determine the default libpath from the value encoded in an
10529         # empty executable.
10530         if test "${lt_cv_aix_libpath+set}" = set; then
10531   aix_libpath=$lt_cv_aix_libpath
10532 else
10533   if ${lt_cv_aix_libpath_+:} false; then :
10534   $as_echo_n "(cached) " >&6
10535 else
10536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h.  */
10538
10539 int
10540 main ()
10541 {
10542
10543   ;
10544   return 0;
10545 }
10546 _ACEOF
10547 if ac_fn_c_try_link "$LINENO"; then :
10548
10549   lt_aix_libpath_sed='
10550       /Import File Strings/,/^$/ {
10551           /^0/ {
10552               s/^0  *\([^ ]*\) *$/\1/
10553               p
10554           }
10555       }'
10556   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10557   # Check for a 64-bit object if we didn't find anything.
10558   if test -z "$lt_cv_aix_libpath_"; then
10559     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10560   fi
10561 fi
10562 rm -f core conftest.err conftest.$ac_objext \
10563     conftest$ac_exeext conftest.$ac_ext
10564   if test -z "$lt_cv_aix_libpath_"; then
10565     lt_cv_aix_libpath_="/usr/lib:/lib"
10566   fi
10567
10568 fi
10569
10570   aix_libpath=$lt_cv_aix_libpath_
10571 fi
10572
10573         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10574         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10575       else
10576         if test "$host_cpu" = ia64; then
10577           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10578           allow_undefined_flag="-z nodefs"
10579           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"
10580         else
10581          # Determine the default libpath from the value encoded in an
10582          # empty executable.
10583          if test "${lt_cv_aix_libpath+set}" = set; then
10584   aix_libpath=$lt_cv_aix_libpath
10585 else
10586   if ${lt_cv_aix_libpath_+:} false; then :
10587   $as_echo_n "(cached) " >&6
10588 else
10589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h.  */
10591
10592 int
10593 main ()
10594 {
10595
10596   ;
10597   return 0;
10598 }
10599 _ACEOF
10600 if ac_fn_c_try_link "$LINENO"; then :
10601
10602   lt_aix_libpath_sed='
10603       /Import File Strings/,/^$/ {
10604           /^0/ {
10605               s/^0  *\([^ ]*\) *$/\1/
10606               p
10607           }
10608       }'
10609   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10610   # Check for a 64-bit object if we didn't find anything.
10611   if test -z "$lt_cv_aix_libpath_"; then
10612     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10613   fi
10614 fi
10615 rm -f core conftest.err conftest.$ac_objext \
10616     conftest$ac_exeext conftest.$ac_ext
10617   if test -z "$lt_cv_aix_libpath_"; then
10618     lt_cv_aix_libpath_="/usr/lib:/lib"
10619   fi
10620
10621 fi
10622
10623   aix_libpath=$lt_cv_aix_libpath_
10624 fi
10625
10626          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10627           # Warning - without using the other run time loading flags,
10628           # -berok will link without error, but may produce a broken library.
10629           no_undefined_flag=' ${wl}-bernotok'
10630           allow_undefined_flag=' ${wl}-berok'
10631           if test "$with_gnu_ld" = yes; then
10632             # We only use this code for GNU lds that support --whole-archive.
10633             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10634           else
10635             # Exported symbols can be pulled into shared objects from archives
10636             whole_archive_flag_spec='$convenience'
10637           fi
10638           archive_cmds_need_lc=yes
10639           # This is similar to how AIX traditionally builds its shared libraries.
10640           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10641         fi
10642       fi
10643       ;;
10644
10645     amigaos*)
10646       case $host_cpu in
10647       powerpc)
10648             # see comment about AmigaOS4 .so support
10649             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10650             archive_expsym_cmds=''
10651         ;;
10652       m68k)
10653             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)'
10654             hardcode_libdir_flag_spec='-L$libdir'
10655             hardcode_minus_L=yes
10656         ;;
10657       esac
10658       ;;
10659
10660     bsdi[45]*)
10661       export_dynamic_flag_spec=-rdynamic
10662       ;;
10663
10664     cygwin* | mingw* | pw32* | cegcc*)
10665       # When not using gcc, we currently assume that we are using
10666       # Microsoft Visual C++.
10667       # hardcode_libdir_flag_spec is actually meaningless, as there is
10668       # no search path for DLLs.
10669       case $cc_basename in
10670       cl*)
10671         # Native MSVC
10672         hardcode_libdir_flag_spec=' '
10673         allow_undefined_flag=unsupported
10674         always_export_symbols=yes
10675         file_list_spec='@'
10676         # Tell ltmain to make .lib files, not .a files.
10677         libext=lib
10678         # Tell ltmain to make .dll files, not .so files.
10679         shrext_cmds=".dll"
10680         # FIXME: Setting linknames here is a bad hack.
10681         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10682         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10683             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10684           else
10685             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10686           fi~
10687           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10688           linknames='
10689         # The linker will not automatically build a static lib if we build a DLL.
10690         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10691         enable_shared_with_static_runtimes=yes
10692         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10693         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10694         # Don't use ranlib
10695         old_postinstall_cmds='chmod 644 $oldlib'
10696         postlink_cmds='lt_outputfile="@OUTPUT@"~
10697           lt_tool_outputfile="@TOOL_OUTPUT@"~
10698           case $lt_outputfile in
10699             *.exe|*.EXE) ;;
10700             *)
10701               lt_outputfile="$lt_outputfile.exe"
10702               lt_tool_outputfile="$lt_tool_outputfile.exe"
10703               ;;
10704           esac~
10705           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10706             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10707             $RM "$lt_outputfile.manifest";
10708           fi'
10709         ;;
10710       *)
10711         # Assume MSVC wrapper
10712         hardcode_libdir_flag_spec=' '
10713         allow_undefined_flag=unsupported
10714         # Tell ltmain to make .lib files, not .a files.
10715         libext=lib
10716         # Tell ltmain to make .dll files, not .so files.
10717         shrext_cmds=".dll"
10718         # FIXME: Setting linknames here is a bad hack.
10719         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10720         # The linker will automatically build a .lib file if we build a DLL.
10721         old_archive_from_new_cmds='true'
10722         # FIXME: Should let the user specify the lib program.
10723         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10724         enable_shared_with_static_runtimes=yes
10725         ;;
10726       esac
10727       ;;
10728
10729     darwin* | rhapsody*)
10730
10731
10732   archive_cmds_need_lc=no
10733   hardcode_direct=no
10734   hardcode_automatic=yes
10735   hardcode_shlibpath_var=unsupported
10736   if test "$lt_cv_ld_force_load" = "yes"; then
10737     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\"`'
10738
10739   else
10740     whole_archive_flag_spec=''
10741   fi
10742   link_all_deplibs=yes
10743   allow_undefined_flag="$_lt_dar_allow_undefined"
10744   case $cc_basename in
10745      ifort*) _lt_dar_can_shared=yes ;;
10746      *) _lt_dar_can_shared=$GCC ;;
10747   esac
10748   if test "$_lt_dar_can_shared" = "yes"; then
10749     output_verbose_link_cmd=func_echo_all
10750     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10751     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10752     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}"
10753     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}"
10754
10755   else
10756   ld_shlibs=no
10757   fi
10758
10759       ;;
10760
10761     dgux*)
10762       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10763       hardcode_libdir_flag_spec='-L$libdir'
10764       hardcode_shlibpath_var=no
10765       ;;
10766
10767     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10768     # support.  Future versions do this automatically, but an explicit c++rt0.o
10769     # does not break anything, and helps significantly (at the cost of a little
10770     # extra space).
10771     freebsd2.2*)
10772       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10773       hardcode_libdir_flag_spec='-R$libdir'
10774       hardcode_direct=yes
10775       hardcode_shlibpath_var=no
10776       ;;
10777
10778     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10779     freebsd2.*)
10780       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10781       hardcode_direct=yes
10782       hardcode_minus_L=yes
10783       hardcode_shlibpath_var=no
10784       ;;
10785
10786     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10787     freebsd* | dragonfly*)
10788       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10789       hardcode_libdir_flag_spec='-R$libdir'
10790       hardcode_direct=yes
10791       hardcode_shlibpath_var=no
10792       ;;
10793
10794     hpux9*)
10795       if test "$GCC" = yes; then
10796         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10797       else
10798         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10799       fi
10800       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10801       hardcode_libdir_separator=:
10802       hardcode_direct=yes
10803
10804       # hardcode_minus_L: Not really in the search PATH,
10805       # but as the default location of the library.
10806       hardcode_minus_L=yes
10807       export_dynamic_flag_spec='${wl}-E'
10808       ;;
10809
10810     hpux10*)
10811       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10812         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10813       else
10814         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10815       fi
10816       if test "$with_gnu_ld" = no; then
10817         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10818         hardcode_libdir_separator=:
10819         hardcode_direct=yes
10820         hardcode_direct_absolute=yes
10821         export_dynamic_flag_spec='${wl}-E'
10822         # hardcode_minus_L: Not really in the search PATH,
10823         # but as the default location of the library.
10824         hardcode_minus_L=yes
10825       fi
10826       ;;
10827
10828     hpux11*)
10829       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10830         case $host_cpu in
10831         hppa*64*)
10832           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10833           ;;
10834         ia64*)
10835           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10836           ;;
10837         *)
10838           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10839           ;;
10840         esac
10841       else
10842         case $host_cpu in
10843         hppa*64*)
10844           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10845           ;;
10846         ia64*)
10847           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10848           ;;
10849         *)
10850
10851           # Older versions of the 11.00 compiler do not understand -b yet
10852           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10853           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10854 $as_echo_n "checking if $CC understands -b... " >&6; }
10855 if ${lt_cv_prog_compiler__b+:} false; then :
10856   $as_echo_n "(cached) " >&6
10857 else
10858   lt_cv_prog_compiler__b=no
10859    save_LDFLAGS="$LDFLAGS"
10860    LDFLAGS="$LDFLAGS -b"
10861    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10862    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10863      # The linker can only warn and ignore the option if not recognized
10864      # So say no if there are warnings
10865      if test -s conftest.err; then
10866        # Append any errors to the config.log.
10867        cat conftest.err 1>&5
10868        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10869        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10870        if diff conftest.exp conftest.er2 >/dev/null; then
10871          lt_cv_prog_compiler__b=yes
10872        fi
10873      else
10874        lt_cv_prog_compiler__b=yes
10875      fi
10876    fi
10877    $RM -r conftest*
10878    LDFLAGS="$save_LDFLAGS"
10879
10880 fi
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10882 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10883
10884 if test x"$lt_cv_prog_compiler__b" = xyes; then
10885     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10886 else
10887     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10888 fi
10889
10890           ;;
10891         esac
10892       fi
10893       if test "$with_gnu_ld" = no; then
10894         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10895         hardcode_libdir_separator=:
10896
10897         case $host_cpu in
10898         hppa*64*|ia64*)
10899           hardcode_direct=no
10900           hardcode_shlibpath_var=no
10901           ;;
10902         *)
10903           hardcode_direct=yes
10904           hardcode_direct_absolute=yes
10905           export_dynamic_flag_spec='${wl}-E'
10906
10907           # hardcode_minus_L: Not really in the search PATH,
10908           # but as the default location of the library.
10909           hardcode_minus_L=yes
10910           ;;
10911         esac
10912       fi
10913       ;;
10914
10915     irix5* | irix6* | nonstopux*)
10916       if test "$GCC" = yes; then
10917         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'
10918         # Try to use the -exported_symbol ld option, if it does not
10919         # work, assume that -exports_file does not work either and
10920         # implicitly export all symbols.
10921         # This should be the same for all languages, so no per-tag cache variable.
10922         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10923 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10924 if ${lt_cv_irix_exported_symbol+:} false; then :
10925   $as_echo_n "(cached) " >&6
10926 else
10927   save_LDFLAGS="$LDFLAGS"
10928            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10929            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h.  */
10931 int foo (void) { return 0; }
10932 _ACEOF
10933 if ac_fn_c_try_link "$LINENO"; then :
10934   lt_cv_irix_exported_symbol=yes
10935 else
10936   lt_cv_irix_exported_symbol=no
10937 fi
10938 rm -f core conftest.err conftest.$ac_objext \
10939     conftest$ac_exeext conftest.$ac_ext
10940            LDFLAGS="$save_LDFLAGS"
10941 fi
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10943 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10944         if test "$lt_cv_irix_exported_symbol" = yes; then
10945           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'
10946         fi
10947       else
10948         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'
10949         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'
10950       fi
10951       archive_cmds_need_lc='no'
10952       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10953       hardcode_libdir_separator=:
10954       inherit_rpath=yes
10955       link_all_deplibs=yes
10956       ;;
10957
10958     netbsd*)
10959       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10960         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10961       else
10962         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10963       fi
10964       hardcode_libdir_flag_spec='-R$libdir'
10965       hardcode_direct=yes
10966       hardcode_shlibpath_var=no
10967       ;;
10968
10969     newsos6)
10970       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10971       hardcode_direct=yes
10972       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10973       hardcode_libdir_separator=:
10974       hardcode_shlibpath_var=no
10975       ;;
10976
10977     *nto* | *qnx*)
10978       ;;
10979
10980     openbsd*)
10981       if test -f /usr/libexec/ld.so; then
10982         hardcode_direct=yes
10983         hardcode_shlibpath_var=no
10984         hardcode_direct_absolute=yes
10985         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10986           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10987           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10988           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10989           export_dynamic_flag_spec='${wl}-E'
10990         else
10991           case $host_os in
10992            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10993              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10994              hardcode_libdir_flag_spec='-R$libdir'
10995              ;;
10996            *)
10997              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10998              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10999              ;;
11000           esac
11001         fi
11002       else
11003         ld_shlibs=no
11004       fi
11005       ;;
11006
11007     os2*)
11008       hardcode_libdir_flag_spec='-L$libdir'
11009       hardcode_minus_L=yes
11010       allow_undefined_flag=unsupported
11011       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11012       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11013       ;;
11014
11015     osf3*)
11016       if test "$GCC" = yes; then
11017         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11018         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'
11019       else
11020         allow_undefined_flag=' -expect_unresolved \*'
11021         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'
11022       fi
11023       archive_cmds_need_lc='no'
11024       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11025       hardcode_libdir_separator=:
11026       ;;
11027
11028     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11029       if test "$GCC" = yes; then
11030         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11031         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'
11032         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11033       else
11034         allow_undefined_flag=' -expect_unresolved \*'
11035         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'
11036         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~
11037         $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'
11038
11039         # Both c and cxx compiler support -rpath directly
11040         hardcode_libdir_flag_spec='-rpath $libdir'
11041       fi
11042       archive_cmds_need_lc='no'
11043       hardcode_libdir_separator=:
11044       ;;
11045
11046     solaris*)
11047       no_undefined_flag=' -z defs'
11048       if test "$GCC" = yes; then
11049         wlarc='${wl}'
11050         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11051         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11052           $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'
11053       else
11054         case `$CC -V 2>&1` in
11055         *"Compilers 5.0"*)
11056           wlarc=''
11057           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11058           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11059           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11060           ;;
11061         *)
11062           wlarc='${wl}'
11063           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11064           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11065           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11066           ;;
11067         esac
11068       fi
11069       hardcode_libdir_flag_spec='-R$libdir'
11070       hardcode_shlibpath_var=no
11071       case $host_os in
11072       solaris2.[0-5] | solaris2.[0-5].*) ;;
11073       *)
11074         # The compiler driver will combine and reorder linker options,
11075         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11076         # but is careful enough not to reorder.
11077         # Supported since Solaris 2.6 (maybe 2.5.1?)
11078         if test "$GCC" = yes; then
11079           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11080         else
11081           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11082         fi
11083         ;;
11084       esac
11085       link_all_deplibs=yes
11086       ;;
11087
11088     sunos4*)
11089       if test "x$host_vendor" = xsequent; then
11090         # Use $CC to link under sequent, because it throws in some extra .o
11091         # files that make .init and .fini sections work.
11092         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11093       else
11094         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11095       fi
11096       hardcode_libdir_flag_spec='-L$libdir'
11097       hardcode_direct=yes
11098       hardcode_minus_L=yes
11099       hardcode_shlibpath_var=no
11100       ;;
11101
11102     sysv4)
11103       case $host_vendor in
11104         sni)
11105           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11106           hardcode_direct=yes # is this really true???
11107         ;;
11108         siemens)
11109           ## LD is ld it makes a PLAMLIB
11110           ## CC just makes a GrossModule.
11111           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11112           reload_cmds='$CC -r -o $output$reload_objs'
11113           hardcode_direct=no
11114         ;;
11115         motorola)
11116           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11117           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11118         ;;
11119       esac
11120       runpath_var='LD_RUN_PATH'
11121       hardcode_shlibpath_var=no
11122       ;;
11123
11124     sysv4.3*)
11125       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11126       hardcode_shlibpath_var=no
11127       export_dynamic_flag_spec='-Bexport'
11128       ;;
11129
11130     sysv4*MP*)
11131       if test -d /usr/nec; then
11132         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11133         hardcode_shlibpath_var=no
11134         runpath_var=LD_RUN_PATH
11135         hardcode_runpath_var=yes
11136         ld_shlibs=yes
11137       fi
11138       ;;
11139
11140     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11141       no_undefined_flag='${wl}-z,text'
11142       archive_cmds_need_lc=no
11143       hardcode_shlibpath_var=no
11144       runpath_var='LD_RUN_PATH'
11145
11146       if test "$GCC" = yes; then
11147         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11148         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11149       else
11150         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11151         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11152       fi
11153       ;;
11154
11155     sysv5* | sco3.2v5* | sco5v6*)
11156       # Note: We can NOT use -z defs as we might desire, because we do not
11157       # link with -lc, and that would cause any symbols used from libc to
11158       # always be unresolved, which means just about no library would
11159       # ever link correctly.  If we're not using GNU ld we use -z text
11160       # though, which does catch some bad symbols but isn't as heavy-handed
11161       # as -z defs.
11162       no_undefined_flag='${wl}-z,text'
11163       allow_undefined_flag='${wl}-z,nodefs'
11164       archive_cmds_need_lc=no
11165       hardcode_shlibpath_var=no
11166       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11167       hardcode_libdir_separator=':'
11168       link_all_deplibs=yes
11169       export_dynamic_flag_spec='${wl}-Bexport'
11170       runpath_var='LD_RUN_PATH'
11171
11172       if test "$GCC" = yes; then
11173         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11174         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11175       else
11176         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11177         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11178       fi
11179       ;;
11180
11181     uts4*)
11182       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11183       hardcode_libdir_flag_spec='-L$libdir'
11184       hardcode_shlibpath_var=no
11185       ;;
11186
11187     *)
11188       ld_shlibs=no
11189       ;;
11190     esac
11191
11192     if test x$host_vendor = xsni; then
11193       case $host in
11194       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11195         export_dynamic_flag_spec='${wl}-Blargedynsym'
11196         ;;
11197       esac
11198     fi
11199   fi
11200
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11202 $as_echo "$ld_shlibs" >&6; }
11203 test "$ld_shlibs" = no && can_build_shared=no
11204
11205 with_gnu_ld=$with_gnu_ld
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221 #
11222 # Do we need to explicitly link libc?
11223 #
11224 case "x$archive_cmds_need_lc" in
11225 x|xyes)
11226   # Assume -lc should be added
11227   archive_cmds_need_lc=yes
11228
11229   if test "$enable_shared" = yes && test "$GCC" = yes; then
11230     case $archive_cmds in
11231     *'~'*)
11232       # FIXME: we may have to deal with multi-command sequences.
11233       ;;
11234     '$CC '*)
11235       # Test whether the compiler implicitly links with -lc since on some
11236       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11237       # to ld, don't add -lc before -lgcc.
11238       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11239 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11240 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11241   $as_echo_n "(cached) " >&6
11242 else
11243   $RM conftest*
11244         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11245
11246         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11247   (eval $ac_compile) 2>&5
11248   ac_status=$?
11249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11250   test $ac_status = 0; } 2>conftest.err; then
11251           soname=conftest
11252           lib=conftest
11253           libobjs=conftest.$ac_objext
11254           deplibs=
11255           wl=$lt_prog_compiler_wl
11256           pic_flag=$lt_prog_compiler_pic
11257           compiler_flags=-v
11258           linker_flags=-v
11259           verstring=
11260           output_objdir=.
11261           libname=conftest
11262           lt_save_allow_undefined_flag=$allow_undefined_flag
11263           allow_undefined_flag=
11264           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11265   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11266   ac_status=$?
11267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11268   test $ac_status = 0; }
11269           then
11270             lt_cv_archive_cmds_need_lc=no
11271           else
11272             lt_cv_archive_cmds_need_lc=yes
11273           fi
11274           allow_undefined_flag=$lt_save_allow_undefined_flag
11275         else
11276           cat conftest.err 1>&5
11277         fi
11278         $RM conftest*
11279
11280 fi
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11282 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11283       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11284       ;;
11285     esac
11286   fi
11287   ;;
11288 esac
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11442 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11443
11444 if test "$GCC" = yes; then
11445   case $host_os in
11446     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11447     *) lt_awk_arg="/^libraries:/" ;;
11448   esac
11449   case $host_os in
11450     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11451     *) lt_sed_strip_eq="s,=/,/,g" ;;
11452   esac
11453   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11454   case $lt_search_path_spec in
11455   *\;*)
11456     # if the path contains ";" then we assume it to be the separator
11457     # otherwise default to the standard path separator (i.e. ":") - it is
11458     # assumed that no part of a normal pathname contains ";" but that should
11459     # okay in the real world where ";" in dirpaths is itself problematic.
11460     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11461     ;;
11462   *)
11463     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11464     ;;
11465   esac
11466   # Ok, now we have the path, separated by spaces, we can step through it
11467   # and add multilib dir if necessary.
11468   lt_tmp_lt_search_path_spec=
11469   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11470   for lt_sys_path in $lt_search_path_spec; do
11471     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11472       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11473     else
11474       test -d "$lt_sys_path" && \
11475         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11476     fi
11477   done
11478   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11479 BEGIN {RS=" "; FS="/|\n";} {
11480   lt_foo="";
11481   lt_count=0;
11482   for (lt_i = NF; lt_i > 0; lt_i--) {
11483     if ($lt_i != "" && $lt_i != ".") {
11484       if ($lt_i == "..") {
11485         lt_count++;
11486       } else {
11487         if (lt_count == 0) {
11488           lt_foo="/" $lt_i lt_foo;
11489         } else {
11490           lt_count--;
11491         }
11492       }
11493     }
11494   }
11495   if (lt_foo != "") { lt_freq[lt_foo]++; }
11496   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11497 }'`
11498   # AWK program above erroneously prepends '/' to C:/dos/paths
11499   # for these hosts.
11500   case $host_os in
11501     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11502       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11503   esac
11504   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11505 else
11506   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11507 fi
11508 library_names_spec=
11509 libname_spec='lib$name'
11510 soname_spec=
11511 shrext_cmds=".so"
11512 postinstall_cmds=
11513 postuninstall_cmds=
11514 finish_cmds=
11515 finish_eval=
11516 shlibpath_var=
11517 shlibpath_overrides_runpath=unknown
11518 version_type=none
11519 dynamic_linker="$host_os ld.so"
11520 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11521 need_lib_prefix=unknown
11522 hardcode_into_libs=no
11523
11524 # when you set need_version to no, make sure it does not cause -set_version
11525 # flags to be left without arguments
11526 need_version=unknown
11527
11528 case $host_os in
11529 aix3*)
11530   version_type=linux # correct to gnu/linux during the next big refactor
11531   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11532   shlibpath_var=LIBPATH
11533
11534   # AIX 3 has no versioning support, so we append a major version to the name.
11535   soname_spec='${libname}${release}${shared_ext}$major'
11536   ;;
11537
11538 aix[4-9]*)
11539   version_type=linux # correct to gnu/linux during the next big refactor
11540   need_lib_prefix=no
11541   need_version=no
11542   hardcode_into_libs=yes
11543   if test "$host_cpu" = ia64; then
11544     # AIX 5 supports IA64
11545     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11546     shlibpath_var=LD_LIBRARY_PATH
11547   else
11548     # With GCC up to 2.95.x, collect2 would create an import file
11549     # for dependence libraries.  The import file would start with
11550     # the line `#! .'.  This would cause the generated library to
11551     # depend on `.', always an invalid library.  This was fixed in
11552     # development snapshots of GCC prior to 3.0.
11553     case $host_os in
11554       aix4 | aix4.[01] | aix4.[01].*)
11555       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11556            echo ' yes '
11557            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11558         :
11559       else
11560         can_build_shared=no
11561       fi
11562       ;;
11563     esac
11564     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11565     # soname into executable. Probably we can add versioning support to
11566     # collect2, so additional links can be useful in future.
11567     if test "$aix_use_runtimelinking" = yes; then
11568       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11569       # instead of lib<name>.a to let people know that these are not
11570       # typical AIX shared libraries.
11571       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572     else
11573       # We preserve .a as extension for shared libraries through AIX4.2
11574       # and later when we are not doing run time linking.
11575       library_names_spec='${libname}${release}.a $libname.a'
11576       soname_spec='${libname}${release}${shared_ext}$major'
11577     fi
11578     shlibpath_var=LIBPATH
11579   fi
11580   ;;
11581
11582 amigaos*)
11583   case $host_cpu in
11584   powerpc)
11585     # Since July 2007 AmigaOS4 officially supports .so libraries.
11586     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588     ;;
11589   m68k)
11590     library_names_spec='$libname.ixlibrary $libname.a'
11591     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11592     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11593     ;;
11594   esac
11595   ;;
11596
11597 beos*)
11598   library_names_spec='${libname}${shared_ext}'
11599   dynamic_linker="$host_os ld.so"
11600   shlibpath_var=LIBRARY_PATH
11601   ;;
11602
11603 bsdi[45]*)
11604   version_type=linux # correct to gnu/linux during the next big refactor
11605   need_version=no
11606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11607   soname_spec='${libname}${release}${shared_ext}$major'
11608   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11609   shlibpath_var=LD_LIBRARY_PATH
11610   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11611   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11612   # the default ld.so.conf also contains /usr/contrib/lib and
11613   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11614   # libtool to hard-code these into programs
11615   ;;
11616
11617 cygwin* | mingw* | pw32* | cegcc*)
11618   version_type=windows
11619   shrext_cmds=".dll"
11620   need_version=no
11621   need_lib_prefix=no
11622
11623   case $GCC,$cc_basename in
11624   yes,*)
11625     # gcc
11626     library_names_spec='$libname.dll.a'
11627     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11628     postinstall_cmds='base_file=`basename \${file}`~
11629       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11630       dldir=$destdir/`dirname \$dlpath`~
11631       test -d \$dldir || mkdir -p \$dldir~
11632       $install_prog $dir/$dlname \$dldir/$dlname~
11633       chmod a+x \$dldir/$dlname~
11634       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11635         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11636       fi'
11637     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11638       dlpath=$dir/\$dldll~
11639        $RM \$dlpath'
11640     shlibpath_overrides_runpath=yes
11641
11642     case $host_os in
11643     cygwin*)
11644       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11645       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11646
11647       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11648       ;;
11649     mingw* | cegcc*)
11650       # MinGW DLLs use traditional 'lib' prefix
11651       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11652       ;;
11653     pw32*)
11654       # pw32 DLLs use 'pw' prefix rather than 'lib'
11655       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11656       ;;
11657     esac
11658     dynamic_linker='Win32 ld.exe'
11659     ;;
11660
11661   *,cl*)
11662     # Native MSVC
11663     libname_spec='$name'
11664     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11665     library_names_spec='${libname}.dll.lib'
11666
11667     case $build_os in
11668     mingw*)
11669       sys_lib_search_path_spec=
11670       lt_save_ifs=$IFS
11671       IFS=';'
11672       for lt_path in $LIB
11673       do
11674         IFS=$lt_save_ifs
11675         # Let DOS variable expansion print the short 8.3 style file name.
11676         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11677         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11678       done
11679       IFS=$lt_save_ifs
11680       # Convert to MSYS style.
11681       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11682       ;;
11683     cygwin*)
11684       # Convert to unix form, then to dos form, then back to unix form
11685       # but this time dos style (no spaces!) so that the unix form looks
11686       # like /cygdrive/c/PROGRA~1:/cygdr...
11687       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11688       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11689       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11690       ;;
11691     *)
11692       sys_lib_search_path_spec="$LIB"
11693       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11694         # It is most probably a Windows format PATH.
11695         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11696       else
11697         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11698       fi
11699       # FIXME: find the short name or the path components, as spaces are
11700       # common. (e.g. "Program Files" -> "PROGRA~1")
11701       ;;
11702     esac
11703
11704     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11705     postinstall_cmds='base_file=`basename \${file}`~
11706       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11707       dldir=$destdir/`dirname \$dlpath`~
11708       test -d \$dldir || mkdir -p \$dldir~
11709       $install_prog $dir/$dlname \$dldir/$dlname'
11710     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11711       dlpath=$dir/\$dldll~
11712        $RM \$dlpath'
11713     shlibpath_overrides_runpath=yes
11714     dynamic_linker='Win32 link.exe'
11715     ;;
11716
11717   *)
11718     # Assume MSVC wrapper
11719     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11720     dynamic_linker='Win32 ld.exe'
11721     ;;
11722   esac
11723   # FIXME: first we should search . and the directory the executable is in
11724   shlibpath_var=PATH
11725   ;;
11726
11727 darwin* | rhapsody*)
11728   dynamic_linker="$host_os dyld"
11729   version_type=darwin
11730   need_lib_prefix=no
11731   need_version=no
11732   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11733   soname_spec='${libname}${release}${major}$shared_ext'
11734   shlibpath_overrides_runpath=yes
11735   shlibpath_var=DYLD_LIBRARY_PATH
11736   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11737
11738   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11739   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11740   ;;
11741
11742 dgux*)
11743   version_type=linux # correct to gnu/linux during the next big refactor
11744   need_lib_prefix=no
11745   need_version=no
11746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11747   soname_spec='${libname}${release}${shared_ext}$major'
11748   shlibpath_var=LD_LIBRARY_PATH
11749   ;;
11750
11751 freebsd* | dragonfly*)
11752   # DragonFly does not have aout.  When/if they implement a new
11753   # versioning mechanism, adjust this.
11754   if test -x /usr/bin/objformat; then
11755     objformat=`/usr/bin/objformat`
11756   else
11757     case $host_os in
11758     freebsd[23].*) objformat=aout ;;
11759     *) objformat=elf ;;
11760     esac
11761   fi
11762   version_type=freebsd-$objformat
11763   case $version_type in
11764     freebsd-elf*)
11765       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11766       need_version=no
11767       need_lib_prefix=no
11768       ;;
11769     freebsd-*)
11770       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11771       need_version=yes
11772       ;;
11773   esac
11774   shlibpath_var=LD_LIBRARY_PATH
11775   case $host_os in
11776   freebsd2.*)
11777     shlibpath_overrides_runpath=yes
11778     ;;
11779   freebsd3.[01]* | freebsdelf3.[01]*)
11780     shlibpath_overrides_runpath=yes
11781     hardcode_into_libs=yes
11782     ;;
11783   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11784   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11785     shlibpath_overrides_runpath=no
11786     hardcode_into_libs=yes
11787     ;;
11788   *) # from 4.6 on, and DragonFly
11789     shlibpath_overrides_runpath=yes
11790     hardcode_into_libs=yes
11791     ;;
11792   esac
11793   ;;
11794
11795 gnu*)
11796   version_type=linux # correct to gnu/linux during the next big refactor
11797   need_lib_prefix=no
11798   need_version=no
11799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11800   soname_spec='${libname}${release}${shared_ext}$major'
11801   shlibpath_var=LD_LIBRARY_PATH
11802   shlibpath_overrides_runpath=no
11803   hardcode_into_libs=yes
11804   ;;
11805
11806 haiku*)
11807   version_type=linux # correct to gnu/linux during the next big refactor
11808   need_lib_prefix=no
11809   need_version=no
11810   dynamic_linker="$host_os runtime_loader"
11811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11812   soname_spec='${libname}${release}${shared_ext}$major'
11813   shlibpath_var=LIBRARY_PATH
11814   shlibpath_overrides_runpath=yes
11815   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11816   hardcode_into_libs=yes
11817   ;;
11818
11819 hpux9* | hpux10* | hpux11*)
11820   # Give a soname corresponding to the major version so that dld.sl refuses to
11821   # link against other versions.
11822   version_type=sunos
11823   need_lib_prefix=no
11824   need_version=no
11825   case $host_cpu in
11826   ia64*)
11827     shrext_cmds='.so'
11828     hardcode_into_libs=yes
11829     dynamic_linker="$host_os dld.so"
11830     shlibpath_var=LD_LIBRARY_PATH
11831     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11833     soname_spec='${libname}${release}${shared_ext}$major'
11834     if test "X$HPUX_IA64_MODE" = X32; then
11835       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11836     else
11837       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11838     fi
11839     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11840     ;;
11841   hppa*64*)
11842     shrext_cmds='.sl'
11843     hardcode_into_libs=yes
11844     dynamic_linker="$host_os dld.sl"
11845     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11846     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11847     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848     soname_spec='${libname}${release}${shared_ext}$major'
11849     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11850     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11851     ;;
11852   *)
11853     shrext_cmds='.sl'
11854     dynamic_linker="$host_os dld.sl"
11855     shlibpath_var=SHLIB_PATH
11856     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11857     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858     soname_spec='${libname}${release}${shared_ext}$major'
11859     ;;
11860   esac
11861   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11862   postinstall_cmds='chmod 555 $lib'
11863   # or fails outright, so override atomically:
11864   install_override_mode=555
11865   ;;
11866
11867 interix[3-9]*)
11868   version_type=linux # correct to gnu/linux during the next big refactor
11869   need_lib_prefix=no
11870   need_version=no
11871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11872   soname_spec='${libname}${release}${shared_ext}$major'
11873   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11874   shlibpath_var=LD_LIBRARY_PATH
11875   shlibpath_overrides_runpath=no
11876   hardcode_into_libs=yes
11877   ;;
11878
11879 irix5* | irix6* | nonstopux*)
11880   case $host_os in
11881     nonstopux*) version_type=nonstopux ;;
11882     *)
11883         if test "$lt_cv_prog_gnu_ld" = yes; then
11884                 version_type=linux # correct to gnu/linux during the next big refactor
11885         else
11886                 version_type=irix
11887         fi ;;
11888   esac
11889   need_lib_prefix=no
11890   need_version=no
11891   soname_spec='${libname}${release}${shared_ext}$major'
11892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11893   case $host_os in
11894   irix5* | nonstopux*)
11895     libsuff= shlibsuff=
11896     ;;
11897   *)
11898     case $LD in # libtool.m4 will add one of these switches to LD
11899     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11900       libsuff= shlibsuff= libmagic=32-bit;;
11901     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11902       libsuff=32 shlibsuff=N32 libmagic=N32;;
11903     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11904       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11905     *) libsuff= shlibsuff= libmagic=never-match;;
11906     esac
11907     ;;
11908   esac
11909   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11910   shlibpath_overrides_runpath=no
11911   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11912   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11913   hardcode_into_libs=yes
11914   ;;
11915
11916 # No shared lib support for Linux oldld, aout, or coff.
11917 linux*oldld* | linux*aout* | linux*coff*)
11918   dynamic_linker=no
11919   ;;
11920
11921 # This must be glibc/ELF.
11922 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11923   version_type=linux # correct to gnu/linux during the next big refactor
11924   need_lib_prefix=no
11925   need_version=no
11926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927   soname_spec='${libname}${release}${shared_ext}$major'
11928   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11929   shlibpath_var=LD_LIBRARY_PATH
11930   shlibpath_overrides_runpath=no
11931
11932   # Some binutils ld are patched to set DT_RUNPATH
11933   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11934   $as_echo_n "(cached) " >&6
11935 else
11936   lt_cv_shlibpath_overrides_runpath=no
11937     save_LDFLAGS=$LDFLAGS
11938     save_libdir=$libdir
11939     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11940          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11941     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942 /* end confdefs.h.  */
11943
11944 int
11945 main ()
11946 {
11947
11948   ;
11949   return 0;
11950 }
11951 _ACEOF
11952 if ac_fn_c_try_link "$LINENO"; then :
11953   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11954   lt_cv_shlibpath_overrides_runpath=yes
11955 fi
11956 fi
11957 rm -f core conftest.err conftest.$ac_objext \
11958     conftest$ac_exeext conftest.$ac_ext
11959     LDFLAGS=$save_LDFLAGS
11960     libdir=$save_libdir
11961
11962 fi
11963
11964   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11965
11966   # This implies no fast_install, which is unacceptable.
11967   # Some rework will be needed to allow for fast_install
11968   # before this can be enabled.
11969   hardcode_into_libs=yes
11970
11971   # Add ABI-specific directories to the system library path.
11972   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11973
11974   # Append ld.so.conf contents to the search path
11975   if test -f /etc/ld.so.conf; then
11976     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' ' '`
11977     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11978
11979   fi
11980
11981   # We used to test for /lib/ld.so.1 and disable shared libraries on
11982   # powerpc, because MkLinux only supported shared libraries with the
11983   # GNU dynamic linker.  Since this was broken with cross compilers,
11984   # most powerpc-linux boxes support dynamic linking these days and
11985   # people can always --disable-shared, the test was removed, and we
11986   # assume the GNU/Linux dynamic linker is in use.
11987   dynamic_linker='GNU/Linux ld.so'
11988   ;;
11989
11990 netbsd*)
11991   version_type=sunos
11992   need_lib_prefix=no
11993   need_version=no
11994   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11995     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11996     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11997     dynamic_linker='NetBSD (a.out) ld.so'
11998   else
11999     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12000     soname_spec='${libname}${release}${shared_ext}$major'
12001     dynamic_linker='NetBSD ld.elf_so'
12002   fi
12003   shlibpath_var=LD_LIBRARY_PATH
12004   shlibpath_overrides_runpath=yes
12005   hardcode_into_libs=yes
12006   ;;
12007
12008 newsos6)
12009   version_type=linux # correct to gnu/linux during the next big refactor
12010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12011   shlibpath_var=LD_LIBRARY_PATH
12012   shlibpath_overrides_runpath=yes
12013   ;;
12014
12015 *nto* | *qnx*)
12016   version_type=qnx
12017   need_lib_prefix=no
12018   need_version=no
12019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12020   soname_spec='${libname}${release}${shared_ext}$major'
12021   shlibpath_var=LD_LIBRARY_PATH
12022   shlibpath_overrides_runpath=no
12023   hardcode_into_libs=yes
12024   dynamic_linker='ldqnx.so'
12025   ;;
12026
12027 openbsd*)
12028   version_type=sunos
12029   sys_lib_dlsearch_path_spec="/usr/lib"
12030   need_lib_prefix=no
12031   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12032   case $host_os in
12033     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12034     *)                          need_version=no  ;;
12035   esac
12036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12037   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12038   shlibpath_var=LD_LIBRARY_PATH
12039   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12040     case $host_os in
12041       openbsd2.[89] | openbsd2.[89].*)
12042         shlibpath_overrides_runpath=no
12043         ;;
12044       *)
12045         shlibpath_overrides_runpath=yes
12046         ;;
12047       esac
12048   else
12049     shlibpath_overrides_runpath=yes
12050   fi
12051   ;;
12052
12053 os2*)
12054   libname_spec='$name'
12055   shrext_cmds=".dll"
12056   need_lib_prefix=no
12057   library_names_spec='$libname${shared_ext} $libname.a'
12058   dynamic_linker='OS/2 ld.exe'
12059   shlibpath_var=LIBPATH
12060   ;;
12061
12062 osf3* | osf4* | osf5*)
12063   version_type=osf
12064   need_lib_prefix=no
12065   need_version=no
12066   soname_spec='${libname}${release}${shared_ext}$major'
12067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12068   shlibpath_var=LD_LIBRARY_PATH
12069   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12070   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12071   ;;
12072
12073 rdos*)
12074   dynamic_linker=no
12075   ;;
12076
12077 solaris*)
12078   version_type=linux # correct to gnu/linux during the next big refactor
12079   need_lib_prefix=no
12080   need_version=no
12081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12082   soname_spec='${libname}${release}${shared_ext}$major'
12083   shlibpath_var=LD_LIBRARY_PATH
12084   shlibpath_overrides_runpath=yes
12085   hardcode_into_libs=yes
12086   # ldd complains unless libraries are executable
12087   postinstall_cmds='chmod +x $lib'
12088   ;;
12089
12090 sunos4*)
12091   version_type=sunos
12092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12093   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12094   shlibpath_var=LD_LIBRARY_PATH
12095   shlibpath_overrides_runpath=yes
12096   if test "$with_gnu_ld" = yes; then
12097     need_lib_prefix=no
12098   fi
12099   need_version=yes
12100   ;;
12101
12102 sysv4 | sysv4.3*)
12103   version_type=linux # correct to gnu/linux during the next big refactor
12104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12105   soname_spec='${libname}${release}${shared_ext}$major'
12106   shlibpath_var=LD_LIBRARY_PATH
12107   case $host_vendor in
12108     sni)
12109       shlibpath_overrides_runpath=no
12110       need_lib_prefix=no
12111       runpath_var=LD_RUN_PATH
12112       ;;
12113     siemens)
12114       need_lib_prefix=no
12115       ;;
12116     motorola)
12117       need_lib_prefix=no
12118       need_version=no
12119       shlibpath_overrides_runpath=no
12120       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12121       ;;
12122   esac
12123   ;;
12124
12125 sysv4*MP*)
12126   if test -d /usr/nec ;then
12127     version_type=linux # correct to gnu/linux during the next big refactor
12128     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12129     soname_spec='$libname${shared_ext}.$major'
12130     shlibpath_var=LD_LIBRARY_PATH
12131   fi
12132   ;;
12133
12134 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12135   version_type=freebsd-elf
12136   need_lib_prefix=no
12137   need_version=no
12138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12139   soname_spec='${libname}${release}${shared_ext}$major'
12140   shlibpath_var=LD_LIBRARY_PATH
12141   shlibpath_overrides_runpath=yes
12142   hardcode_into_libs=yes
12143   if test "$with_gnu_ld" = yes; then
12144     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12145   else
12146     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12147     case $host_os in
12148       sco3.2v5*)
12149         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12150         ;;
12151     esac
12152   fi
12153   sys_lib_dlsearch_path_spec='/usr/lib'
12154   ;;
12155
12156 tpf*)
12157   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12158   version_type=linux # correct to gnu/linux during the next big refactor
12159   need_lib_prefix=no
12160   need_version=no
12161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12162   shlibpath_var=LD_LIBRARY_PATH
12163   shlibpath_overrides_runpath=no
12164   hardcode_into_libs=yes
12165   ;;
12166
12167 uts4*)
12168   version_type=linux # correct to gnu/linux during the next big refactor
12169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12170   soname_spec='${libname}${release}${shared_ext}$major'
12171   shlibpath_var=LD_LIBRARY_PATH
12172   ;;
12173
12174 *)
12175   dynamic_linker=no
12176   ;;
12177 esac
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12179 $as_echo "$dynamic_linker" >&6; }
12180 test "$dynamic_linker" = no && can_build_shared=no
12181
12182 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12183 if test "$GCC" = yes; then
12184   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12185 fi
12186
12187 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12188   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12189 fi
12190 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12191   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12192 fi
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12286 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12287 hardcode_action=
12288 if test -n "$hardcode_libdir_flag_spec" ||
12289    test -n "$runpath_var" ||
12290    test "X$hardcode_automatic" = "Xyes" ; then
12291
12292   # We can hardcode non-existent directories.
12293   if test "$hardcode_direct" != no &&
12294      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12295      # have to relink, otherwise we might link with an installed library
12296      # when we should be linking with a yet-to-be-installed one
12297      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12298      test "$hardcode_minus_L" != no; then
12299     # Linking always hardcodes the temporary library directory.
12300     hardcode_action=relink
12301   else
12302     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12303     hardcode_action=immediate
12304   fi
12305 else
12306   # We cannot hardcode anything, or else we can only hardcode existing
12307   # directories.
12308   hardcode_action=unsupported
12309 fi
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12311 $as_echo "$hardcode_action" >&6; }
12312
12313 if test "$hardcode_action" = relink ||
12314    test "$inherit_rpath" = yes; then
12315   # Fast installation is not supported
12316   enable_fast_install=no
12317 elif test "$shlibpath_overrides_runpath" = yes ||
12318      test "$enable_shared" = no; then
12319   # Fast installation is not necessary
12320   enable_fast_install=needless
12321 fi
12322
12323
12324
12325
12326
12327
12328   if test "x$enable_dlopen" != xyes; then
12329   enable_dlopen=unknown
12330   enable_dlopen_self=unknown
12331   enable_dlopen_self_static=unknown
12332 else
12333   lt_cv_dlopen=no
12334   lt_cv_dlopen_libs=
12335
12336   case $host_os in
12337   beos*)
12338     lt_cv_dlopen="load_add_on"
12339     lt_cv_dlopen_libs=
12340     lt_cv_dlopen_self=yes
12341     ;;
12342
12343   mingw* | pw32* | cegcc*)
12344     lt_cv_dlopen="LoadLibrary"
12345     lt_cv_dlopen_libs=
12346     ;;
12347
12348   cygwin*)
12349     lt_cv_dlopen="dlopen"
12350     lt_cv_dlopen_libs=
12351     ;;
12352
12353   darwin*)
12354   # if libdl is installed we need to link against it
12355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12356 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12357 if ${ac_cv_lib_dl_dlopen+:} false; then :
12358   $as_echo_n "(cached) " >&6
12359 else
12360   ac_check_lib_save_LIBS=$LIBS
12361 LIBS="-ldl  $LIBS"
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h.  */
12364
12365 /* Override any GCC internal prototype to avoid an error.
12366    Use char because int might match the return type of a GCC
12367    builtin and then its argument prototype would still apply.  */
12368 #ifdef __cplusplus
12369 extern "C"
12370 #endif
12371 char dlopen ();
12372 int
12373 main ()
12374 {
12375 return dlopen ();
12376   ;
12377   return 0;
12378 }
12379 _ACEOF
12380 if ac_fn_c_try_link "$LINENO"; then :
12381   ac_cv_lib_dl_dlopen=yes
12382 else
12383   ac_cv_lib_dl_dlopen=no
12384 fi
12385 rm -f core conftest.err conftest.$ac_objext \
12386     conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12388 fi
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12390 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12391 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12392   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12393 else
12394
12395     lt_cv_dlopen="dyld"
12396     lt_cv_dlopen_libs=
12397     lt_cv_dlopen_self=yes
12398
12399 fi
12400
12401     ;;
12402
12403   *)
12404     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12405 if test "x$ac_cv_func_shl_load" = xyes; then :
12406   lt_cv_dlopen="shl_load"
12407 else
12408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12409 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12410 if ${ac_cv_lib_dld_shl_load+:} false; then :
12411   $as_echo_n "(cached) " >&6
12412 else
12413   ac_check_lib_save_LIBS=$LIBS
12414 LIBS="-ldld  $LIBS"
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h.  */
12417
12418 /* Override any GCC internal prototype to avoid an error.
12419    Use char because int might match the return type of a GCC
12420    builtin and then its argument prototype would still apply.  */
12421 #ifdef __cplusplus
12422 extern "C"
12423 #endif
12424 char shl_load ();
12425 int
12426 main ()
12427 {
12428 return shl_load ();
12429   ;
12430   return 0;
12431 }
12432 _ACEOF
12433 if ac_fn_c_try_link "$LINENO"; then :
12434   ac_cv_lib_dld_shl_load=yes
12435 else
12436   ac_cv_lib_dld_shl_load=no
12437 fi
12438 rm -f core conftest.err conftest.$ac_objext \
12439     conftest$ac_exeext conftest.$ac_ext
12440 LIBS=$ac_check_lib_save_LIBS
12441 fi
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12443 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12444 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12445   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12446 else
12447   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12448 if test "x$ac_cv_func_dlopen" = xyes; then :
12449   lt_cv_dlopen="dlopen"
12450 else
12451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12452 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12453 if ${ac_cv_lib_dl_dlopen+:} false; then :
12454   $as_echo_n "(cached) " >&6
12455 else
12456   ac_check_lib_save_LIBS=$LIBS
12457 LIBS="-ldl  $LIBS"
12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459 /* end confdefs.h.  */
12460
12461 /* Override any GCC internal prototype to avoid an error.
12462    Use char because int might match the return type of a GCC
12463    builtin and then its argument prototype would still apply.  */
12464 #ifdef __cplusplus
12465 extern "C"
12466 #endif
12467 char dlopen ();
12468 int
12469 main ()
12470 {
12471 return dlopen ();
12472   ;
12473   return 0;
12474 }
12475 _ACEOF
12476 if ac_fn_c_try_link "$LINENO"; then :
12477   ac_cv_lib_dl_dlopen=yes
12478 else
12479   ac_cv_lib_dl_dlopen=no
12480 fi
12481 rm -f core conftest.err conftest.$ac_objext \
12482     conftest$ac_exeext conftest.$ac_ext
12483 LIBS=$ac_check_lib_save_LIBS
12484 fi
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12486 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12487 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12488   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12489 else
12490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12491 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12492 if ${ac_cv_lib_svld_dlopen+:} false; then :
12493   $as_echo_n "(cached) " >&6
12494 else
12495   ac_check_lib_save_LIBS=$LIBS
12496 LIBS="-lsvld  $LIBS"
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h.  */
12499
12500 /* Override any GCC internal prototype to avoid an error.
12501    Use char because int might match the return type of a GCC
12502    builtin and then its argument prototype would still apply.  */
12503 #ifdef __cplusplus
12504 extern "C"
12505 #endif
12506 char dlopen ();
12507 int
12508 main ()
12509 {
12510 return dlopen ();
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 if ac_fn_c_try_link "$LINENO"; then :
12516   ac_cv_lib_svld_dlopen=yes
12517 else
12518   ac_cv_lib_svld_dlopen=no
12519 fi
12520 rm -f core conftest.err conftest.$ac_objext \
12521     conftest$ac_exeext conftest.$ac_ext
12522 LIBS=$ac_check_lib_save_LIBS
12523 fi
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12525 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12526 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12527   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12528 else
12529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12530 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12531 if ${ac_cv_lib_dld_dld_link+:} false; then :
12532   $as_echo_n "(cached) " >&6
12533 else
12534   ac_check_lib_save_LIBS=$LIBS
12535 LIBS="-ldld  $LIBS"
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h.  */
12538
12539 /* Override any GCC internal prototype to avoid an error.
12540    Use char because int might match the return type of a GCC
12541    builtin and then its argument prototype would still apply.  */
12542 #ifdef __cplusplus
12543 extern "C"
12544 #endif
12545 char dld_link ();
12546 int
12547 main ()
12548 {
12549 return dld_link ();
12550   ;
12551   return 0;
12552 }
12553 _ACEOF
12554 if ac_fn_c_try_link "$LINENO"; then :
12555   ac_cv_lib_dld_dld_link=yes
12556 else
12557   ac_cv_lib_dld_dld_link=no
12558 fi
12559 rm -f core conftest.err conftest.$ac_objext \
12560     conftest$ac_exeext conftest.$ac_ext
12561 LIBS=$ac_check_lib_save_LIBS
12562 fi
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12564 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12565 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12566   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12567 fi
12568
12569
12570 fi
12571
12572
12573 fi
12574
12575
12576 fi
12577
12578
12579 fi
12580
12581
12582 fi
12583
12584     ;;
12585   esac
12586
12587   if test "x$lt_cv_dlopen" != xno; then
12588     enable_dlopen=yes
12589   else
12590     enable_dlopen=no
12591   fi
12592
12593   case $lt_cv_dlopen in
12594   dlopen)
12595     save_CPPFLAGS="$CPPFLAGS"
12596     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12597
12598     save_LDFLAGS="$LDFLAGS"
12599     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12600
12601     save_LIBS="$LIBS"
12602     LIBS="$lt_cv_dlopen_libs $LIBS"
12603
12604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12605 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12606 if ${lt_cv_dlopen_self+:} false; then :
12607   $as_echo_n "(cached) " >&6
12608 else
12609           if test "$cross_compiling" = yes; then :
12610   lt_cv_dlopen_self=cross
12611 else
12612   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12613   lt_status=$lt_dlunknown
12614   cat > conftest.$ac_ext <<_LT_EOF
12615 #line $LINENO "configure"
12616 #include "confdefs.h"
12617
12618 #if HAVE_DLFCN_H
12619 #include <dlfcn.h>
12620 #endif
12621
12622 #include <stdio.h>
12623
12624 #ifdef RTLD_GLOBAL
12625 #  define LT_DLGLOBAL           RTLD_GLOBAL
12626 #else
12627 #  ifdef DL_GLOBAL
12628 #    define LT_DLGLOBAL         DL_GLOBAL
12629 #  else
12630 #    define LT_DLGLOBAL         0
12631 #  endif
12632 #endif
12633
12634 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12635    find out it does not work in some platform. */
12636 #ifndef LT_DLLAZY_OR_NOW
12637 #  ifdef RTLD_LAZY
12638 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12639 #  else
12640 #    ifdef DL_LAZY
12641 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12642 #    else
12643 #      ifdef RTLD_NOW
12644 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12645 #      else
12646 #        ifdef DL_NOW
12647 #          define LT_DLLAZY_OR_NOW      DL_NOW
12648 #        else
12649 #          define LT_DLLAZY_OR_NOW      0
12650 #        endif
12651 #      endif
12652 #    endif
12653 #  endif
12654 #endif
12655
12656 /* When -fvisbility=hidden is used, assume the code has been annotated
12657    correspondingly for the symbols needed.  */
12658 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12659 int fnord () __attribute__((visibility("default")));
12660 #endif
12661
12662 int fnord () { return 42; }
12663 int main ()
12664 {
12665   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12666   int status = $lt_dlunknown;
12667
12668   if (self)
12669     {
12670       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12671       else
12672         {
12673           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12674           else puts (dlerror ());
12675         }
12676       /* dlclose (self); */
12677     }
12678   else
12679     puts (dlerror ());
12680
12681   return status;
12682 }
12683 _LT_EOF
12684   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12685   (eval $ac_link) 2>&5
12686   ac_status=$?
12687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12688   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12689     (./conftest; exit; ) >&5 2>/dev/null
12690     lt_status=$?
12691     case x$lt_status in
12692       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12693       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12694       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12695     esac
12696   else :
12697     # compilation failed
12698     lt_cv_dlopen_self=no
12699   fi
12700 fi
12701 rm -fr conftest*
12702
12703
12704 fi
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12706 $as_echo "$lt_cv_dlopen_self" >&6; }
12707
12708     if test "x$lt_cv_dlopen_self" = xyes; then
12709       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12710       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12711 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12712 if ${lt_cv_dlopen_self_static+:} false; then :
12713   $as_echo_n "(cached) " >&6
12714 else
12715           if test "$cross_compiling" = yes; then :
12716   lt_cv_dlopen_self_static=cross
12717 else
12718   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12719   lt_status=$lt_dlunknown
12720   cat > conftest.$ac_ext <<_LT_EOF
12721 #line $LINENO "configure"
12722 #include "confdefs.h"
12723
12724 #if HAVE_DLFCN_H
12725 #include <dlfcn.h>
12726 #endif
12727
12728 #include <stdio.h>
12729
12730 #ifdef RTLD_GLOBAL
12731 #  define LT_DLGLOBAL           RTLD_GLOBAL
12732 #else
12733 #  ifdef DL_GLOBAL
12734 #    define LT_DLGLOBAL         DL_GLOBAL
12735 #  else
12736 #    define LT_DLGLOBAL         0
12737 #  endif
12738 #endif
12739
12740 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12741    find out it does not work in some platform. */
12742 #ifndef LT_DLLAZY_OR_NOW
12743 #  ifdef RTLD_LAZY
12744 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12745 #  else
12746 #    ifdef DL_LAZY
12747 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12748 #    else
12749 #      ifdef RTLD_NOW
12750 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12751 #      else
12752 #        ifdef DL_NOW
12753 #          define LT_DLLAZY_OR_NOW      DL_NOW
12754 #        else
12755 #          define LT_DLLAZY_OR_NOW      0
12756 #        endif
12757 #      endif
12758 #    endif
12759 #  endif
12760 #endif
12761
12762 /* When -fvisbility=hidden is used, assume the code has been annotated
12763    correspondingly for the symbols needed.  */
12764 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12765 int fnord () __attribute__((visibility("default")));
12766 #endif
12767
12768 int fnord () { return 42; }
12769 int main ()
12770 {
12771   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12772   int status = $lt_dlunknown;
12773
12774   if (self)
12775     {
12776       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12777       else
12778         {
12779           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12780           else puts (dlerror ());
12781         }
12782       /* dlclose (self); */
12783     }
12784   else
12785     puts (dlerror ());
12786
12787   return status;
12788 }
12789 _LT_EOF
12790   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12791   (eval $ac_link) 2>&5
12792   ac_status=$?
12793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12794   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12795     (./conftest; exit; ) >&5 2>/dev/null
12796     lt_status=$?
12797     case x$lt_status in
12798       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12799       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12800       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12801     esac
12802   else :
12803     # compilation failed
12804     lt_cv_dlopen_self_static=no
12805   fi
12806 fi
12807 rm -fr conftest*
12808
12809
12810 fi
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12812 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12813     fi
12814
12815     CPPFLAGS="$save_CPPFLAGS"
12816     LDFLAGS="$save_LDFLAGS"
12817     LIBS="$save_LIBS"
12818     ;;
12819   esac
12820
12821   case $lt_cv_dlopen_self in
12822   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12823   *) enable_dlopen_self=unknown ;;
12824   esac
12825
12826   case $lt_cv_dlopen_self_static in
12827   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12828   *) enable_dlopen_self_static=unknown ;;
12829   esac
12830 fi
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848 striplib=
12849 old_striplib=
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12851 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12852 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12853   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12854   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12856 $as_echo "yes" >&6; }
12857 else
12858 # FIXME - insert some real tests, host_os isn't really good enough
12859   case $host_os in
12860   darwin*)
12861     if test -n "$STRIP" ; then
12862       striplib="$STRIP -x"
12863       old_striplib="$STRIP -S"
12864       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12865 $as_echo "yes" >&6; }
12866     else
12867       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868 $as_echo "no" >&6; }
12869     fi
12870     ;;
12871   *)
12872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12874     ;;
12875   esac
12876 fi
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889   # Report which library types will actually be built
12890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12891 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12893 $as_echo "$can_build_shared" >&6; }
12894
12895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12896 $as_echo_n "checking whether to build shared libraries... " >&6; }
12897   test "$can_build_shared" = "no" && enable_shared=no
12898
12899   # On AIX, shared libraries and static libraries use the same namespace, and
12900   # are all built from PIC.
12901   case $host_os in
12902   aix3*)
12903     test "$enable_shared" = yes && enable_static=no
12904     if test -n "$RANLIB"; then
12905       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12906       postinstall_cmds='$RANLIB $lib'
12907     fi
12908     ;;
12909
12910   aix[4-9]*)
12911     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12912       test "$enable_shared" = yes && enable_static=no
12913     fi
12914     ;;
12915   esac
12916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12917 $as_echo "$enable_shared" >&6; }
12918
12919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12920 $as_echo_n "checking whether to build static libraries... " >&6; }
12921   # Make sure either enable_shared or enable_static is yes.
12922   test "$enable_shared" = yes || enable_static=yes
12923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12924 $as_echo "$enable_static" >&6; }
12925
12926
12927
12928
12929 fi
12930 ac_ext=c
12931 ac_cpp='$CPP $CPPFLAGS'
12932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12935
12936 CC="$lt_save_CC"
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952         ac_config_commands="$ac_config_commands libtool"
12953
12954
12955
12956
12957 # Only expand once:
12958
12959
12960
12961
12962 LIBT_CURRENT=10
12963 LIBT_REVISION=0
12964
12965
12966 LIBT_AGE=9
12967
12968 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
12969
12970
12971 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
12972
12973
12974 PKGCONFIG_REQUIRES=
12975 PKGCONFIG_REQUIRES_PRIVATELY=
12976
12977
12978 case "$host" in
12979   *-*-mingw*)
12980     os_win32=yes
12981     ;;
12982   *)
12983     os_win32=no
12984 esac
12985  if test "$os_win32" = "yes"; then
12986   OS_WIN32_TRUE=
12987   OS_WIN32_FALSE='#'
12988 else
12989   OS_WIN32_TRUE='#'
12990   OS_WIN32_FALSE=
12991 fi
12992
12993
12994 if test "$os_win32" = "yes"; then
12995   # Extract the first word of "lib.exe", so it can be a program name with args.
12996 set dummy lib.exe; ac_word=$2
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if ${ac_cv_prog_ms_librarian+:} false; then :
13000   $as_echo_n "(cached) " >&6
13001 else
13002   if test -n "$ms_librarian"; then
13003   ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
13004 else
13005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13007 do
13008   IFS=$as_save_IFS
13009   test -z "$as_dir" && as_dir=.
13010     for ac_exec_ext in '' $ac_executable_extensions; do
13011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13012     ac_cv_prog_ms_librarian="yes"
13013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014     break 2
13015   fi
13016 done
13017   done
13018 IFS=$as_save_IFS
13019
13020   test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
13021 fi
13022 fi
13023 ms_librarian=$ac_cv_prog_ms_librarian
13024 if test -n "$ms_librarian"; then
13025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
13026 $as_echo "$ms_librarian" >&6; }
13027 else
13028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029 $as_echo "no" >&6; }
13030 fi
13031
13032
13033 fi
13034  if test x$ms_librarian = xyes; then
13035   MS_LIB_AVAILABLE_TRUE=
13036   MS_LIB_AVAILABLE_FALSE='#'
13037 else
13038   MS_LIB_AVAILABLE_TRUE='#'
13039   MS_LIB_AVAILABLE_FALSE=
13040 fi
13041
13042
13043 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
13044 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
13045   SUNCC="yes"
13046 else
13047   SUNCC="no"
13048 fi
13049
13050 WARN_CFLAGS=""
13051 WARNING_CPP_DIRECTIVE="no"
13052 if test "x$GCC" = "xyes"; then
13053         WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
13054         -Wmissing-prototypes -Wmissing-declarations \
13055         -Wnested-externs -fno-strict-aliasing"
13056         WARNING_CPP_DIRECTIVE="yes"
13057 elif test "x$SUNCC" = "xyes"; then
13058         WARN_CFLAGS="-v -fd"
13059         WARNING_CPP_DIRECTIVE="yes"
13060 fi
13061 if test "x$WARNING_CPP_DIRECTIVE" = "xyes"; then
13062
13063 cat >>confdefs.h <<_ACEOF
13064 #define HAVE_WARNING_CPP_DIRECTIVE 1
13065 _ACEOF
13066
13067 fi
13068
13069
13070
13071
13072 # Put a plausible default for CC_FOR_BUILD in Makefile.
13073 if test -z "$CC_FOR_BUILD"; then
13074   if test "x$cross_compiling" = "xno"; then
13075     CC_FOR_BUILD='$(CC)'
13076   else
13077     CC_FOR_BUILD=gcc
13078   fi
13079 fi
13080
13081 # Also set EXEEXT_FOR_BUILD.
13082 if test "x$cross_compiling" = "xno"; then
13083   EXEEXT_FOR_BUILD='$(EXEEXT)'
13084 else
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13086 $as_echo_n "checking for build system executable suffix... " >&6; }
13087 if ${bfd_cv_build_exeext+:} false; then :
13088   $as_echo_n "(cached) " >&6
13089 else
13090   rm -f conftest*
13091      echo 'int main () { return 0; }' > conftest.c
13092      bfd_cv_build_exeext=
13093      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13094      for file in conftest.*; do
13095        case $file in
13096        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13097        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13098        esac
13099      done
13100      rm -f conftest*
13101      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13102 fi
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13104 $as_echo "$bfd_cv_build_exeext" >&6; }
13105   EXEEXT_FOR_BUILD=""
13106   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13107 fi
13108
13109
13110  if test $cross_compiling = yes; then
13111   CROSS_COMPILING_TRUE=
13112   CROSS_COMPILING_FALSE='#'
13113 else
13114   CROSS_COMPILING_TRUE='#'
13115   CROSS_COMPILING_FALSE=
13116 fi
13117
13118  if test "$enable_shared" = "yes"; then
13119   ENABLE_SHARED_TRUE=
13120   ENABLE_SHARED_FALSE='#'
13121 else
13122   ENABLE_SHARED_TRUE='#'
13123   ENABLE_SHARED_FALSE=
13124 fi
13125
13126
13127
13128
13129 # Check whether --with-arch was given.
13130 if test "${with_arch+set}" = set; then :
13131   withval=$with_arch; arch="$withval"
13132 else
13133   arch=auto
13134 fi
13135
13136
13137 if test "x$arch" != xauto; then
13138
13139 cat >>confdefs.h <<_ACEOF
13140 #define FC_ARCHITECTURE "$arch"
13141 _ACEOF
13142
13143 fi
13144
13145
13146
13147 # Checks for header files.
13148 ac_header_dirent=no
13149 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13150   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13152 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13153 if eval \${$as_ac_Header+:} false; then :
13154   $as_echo_n "(cached) " >&6
13155 else
13156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h.  */
13158 #include <sys/types.h>
13159 #include <$ac_hdr>
13160
13161 int
13162 main ()
13163 {
13164 if ((DIR *) 0)
13165 return 0;
13166   ;
13167   return 0;
13168 }
13169 _ACEOF
13170 if ac_fn_c_try_compile "$LINENO"; then :
13171   eval "$as_ac_Header=yes"
13172 else
13173   eval "$as_ac_Header=no"
13174 fi
13175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13176 fi
13177 eval ac_res=\$$as_ac_Header
13178                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13179 $as_echo "$ac_res" >&6; }
13180 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13181   cat >>confdefs.h <<_ACEOF
13182 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13183 _ACEOF
13184
13185 ac_header_dirent=$ac_hdr; break
13186 fi
13187
13188 done
13189 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13190 if test $ac_header_dirent = dirent.h; then
13191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13192 $as_echo_n "checking for library containing opendir... " >&6; }
13193 if ${ac_cv_search_opendir+:} false; then :
13194   $as_echo_n "(cached) " >&6
13195 else
13196   ac_func_search_save_LIBS=$LIBS
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h.  */
13199
13200 /* Override any GCC internal prototype to avoid an error.
13201    Use char because int might match the return type of a GCC
13202    builtin and then its argument prototype would still apply.  */
13203 #ifdef __cplusplus
13204 extern "C"
13205 #endif
13206 char opendir ();
13207 int
13208 main ()
13209 {
13210 return opendir ();
13211   ;
13212   return 0;
13213 }
13214 _ACEOF
13215 for ac_lib in '' dir; do
13216   if test -z "$ac_lib"; then
13217     ac_res="none required"
13218   else
13219     ac_res=-l$ac_lib
13220     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13221   fi
13222   if ac_fn_c_try_link "$LINENO"; then :
13223   ac_cv_search_opendir=$ac_res
13224 fi
13225 rm -f core conftest.err conftest.$ac_objext \
13226     conftest$ac_exeext
13227   if ${ac_cv_search_opendir+:} false; then :
13228   break
13229 fi
13230 done
13231 if ${ac_cv_search_opendir+:} false; then :
13232
13233 else
13234   ac_cv_search_opendir=no
13235 fi
13236 rm conftest.$ac_ext
13237 LIBS=$ac_func_search_save_LIBS
13238 fi
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13240 $as_echo "$ac_cv_search_opendir" >&6; }
13241 ac_res=$ac_cv_search_opendir
13242 if test "$ac_res" != no; then :
13243   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13244
13245 fi
13246
13247 else
13248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13249 $as_echo_n "checking for library containing opendir... " >&6; }
13250 if ${ac_cv_search_opendir+:} false; then :
13251   $as_echo_n "(cached) " >&6
13252 else
13253   ac_func_search_save_LIBS=$LIBS
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h.  */
13256
13257 /* Override any GCC internal prototype to avoid an error.
13258    Use char because int might match the return type of a GCC
13259    builtin and then its argument prototype would still apply.  */
13260 #ifdef __cplusplus
13261 extern "C"
13262 #endif
13263 char opendir ();
13264 int
13265 main ()
13266 {
13267 return opendir ();
13268   ;
13269   return 0;
13270 }
13271 _ACEOF
13272 for ac_lib in '' x; do
13273   if test -z "$ac_lib"; then
13274     ac_res="none required"
13275   else
13276     ac_res=-l$ac_lib
13277     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13278   fi
13279   if ac_fn_c_try_link "$LINENO"; then :
13280   ac_cv_search_opendir=$ac_res
13281 fi
13282 rm -f core conftest.err conftest.$ac_objext \
13283     conftest$ac_exeext
13284   if ${ac_cv_search_opendir+:} false; then :
13285   break
13286 fi
13287 done
13288 if ${ac_cv_search_opendir+:} false; then :
13289
13290 else
13291   ac_cv_search_opendir=no
13292 fi
13293 rm conftest.$ac_ext
13294 LIBS=$ac_func_search_save_LIBS
13295 fi
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13297 $as_echo "$ac_cv_search_opendir" >&6; }
13298 ac_res=$ac_cv_search_opendir
13299 if test "$ac_res" != no; then :
13300   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13301
13302 fi
13303
13304 fi
13305
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13307 $as_echo_n "checking for ANSI C header files... " >&6; }
13308 if ${ac_cv_header_stdc+:} false; then :
13309   $as_echo_n "(cached) " >&6
13310 else
13311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h.  */
13313 #include <stdlib.h>
13314 #include <stdarg.h>
13315 #include <string.h>
13316 #include <float.h>
13317
13318 int
13319 main ()
13320 {
13321
13322   ;
13323   return 0;
13324 }
13325 _ACEOF
13326 if ac_fn_c_try_compile "$LINENO"; then :
13327   ac_cv_header_stdc=yes
13328 else
13329   ac_cv_header_stdc=no
13330 fi
13331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332
13333 if test $ac_cv_header_stdc = yes; then
13334   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h.  */
13337 #include <string.h>
13338
13339 _ACEOF
13340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13341   $EGREP "memchr" >/dev/null 2>&1; then :
13342
13343 else
13344   ac_cv_header_stdc=no
13345 fi
13346 rm -f conftest*
13347
13348 fi
13349
13350 if test $ac_cv_header_stdc = yes; then
13351   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h.  */
13354 #include <stdlib.h>
13355
13356 _ACEOF
13357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13358   $EGREP "free" >/dev/null 2>&1; then :
13359
13360 else
13361   ac_cv_header_stdc=no
13362 fi
13363 rm -f conftest*
13364
13365 fi
13366
13367 if test $ac_cv_header_stdc = yes; then
13368   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13369   if test "$cross_compiling" = yes; then :
13370   :
13371 else
13372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h.  */
13374 #include <ctype.h>
13375 #include <stdlib.h>
13376 #if ((' ' & 0x0FF) == 0x020)
13377 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13378 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13379 #else
13380 # define ISLOWER(c) \
13381                    (('a' <= (c) && (c) <= 'i') \
13382                      || ('j' <= (c) && (c) <= 'r') \
13383                      || ('s' <= (c) && (c) <= 'z'))
13384 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13385 #endif
13386
13387 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13388 int
13389 main ()
13390 {
13391   int i;
13392   for (i = 0; i < 256; i++)
13393     if (XOR (islower (i), ISLOWER (i))
13394         || toupper (i) != TOUPPER (i))
13395       return 2;
13396   return 0;
13397 }
13398 _ACEOF
13399 if ac_fn_c_try_run "$LINENO"; then :
13400
13401 else
13402   ac_cv_header_stdc=no
13403 fi
13404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13405   conftest.$ac_objext conftest.beam conftest.$ac_ext
13406 fi
13407
13408 fi
13409 fi
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13411 $as_echo "$ac_cv_header_stdc" >&6; }
13412 if test $ac_cv_header_stdc = yes; then
13413
13414 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13415
13416 fi
13417
13418 for ac_header in fcntl.h stdlib.h string.h unistd.h sys/statvfs.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h
13419 do :
13420   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13421 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13423   cat >>confdefs.h <<_ACEOF
13424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13425 _ACEOF
13426
13427 fi
13428
13429 done
13430
13431 # ------ AX CREATE STDINT H -------------------------------------
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
13433 $as_echo_n "checking for stdint types... " >&6; }
13434 ac_stdint_h=`echo src/fcstdint.h`
13435 # try to shortcircuit - if the default include path of the compiler
13436 # can find a "stdint.h" header then we assume that all compilers can.
13437 if ${ac_cv_header_stdint_t+:} false; then :
13438   $as_echo_n "(cached) " >&6
13439 else
13440
13441 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
13442 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
13443 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h.  */
13446 #include <stdint.h>
13447 int
13448 main ()
13449 {
13450 int_least32_t v = 0;
13451   ;
13452   return 0;
13453 }
13454 _ACEOF
13455 if ac_fn_c_try_compile "$LINENO"; then :
13456   ac_cv_stdint_result="(assuming C99 compatible system)"
13457  ac_cv_header_stdint_t="stdint.h";
13458 else
13459   ac_cv_header_stdint_t=""
13460 fi
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
13463 CFLAGS="-std=c99"
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h.  */
13466 #include <stdint.h>
13467 int
13468 main ()
13469 {
13470 int_least32_t v = 0;
13471   ;
13472   return 0;
13473 }
13474 _ACEOF
13475 if ac_fn_c_try_compile "$LINENO"; then :
13476   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
13477 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
13478 fi
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480 fi
13481 CXXFLAGS="$old_CXXFLAGS"
13482 CPPFLAGS="$old_CPPFLAGS"
13483 CFLAGS="$old_CFLAGS"
13484 fi
13485
13486
13487 v="... $ac_cv_header_stdint_h"
13488 if test "$ac_stdint_h" = "stdint.h" ; then
13489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
13490 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
13491 elif test "$ac_stdint_h" = "inttypes.h" ; then
13492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
13493 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
13494 elif test "_$ac_cv_header_stdint_t" = "_" ; then
13495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
13496 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
13497 else
13498  ac_cv_header_stdint="$ac_cv_header_stdint_t"
13499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
13500 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
13501 fi
13502
13503 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
13504
13505
13506 inttype_headers=`echo  | sed -e 's/,/ /g'`
13507
13508 ac_cv_stdint_result="(no helpful system typedefs seen)"
13509
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
13511 $as_echo_n "checking for stdint uintptr_t... " >&6; }
13512 if ${ac_cv_header_stdint_x+:} false; then :
13513   $as_echo_n "(cached) " >&6
13514 else
13515
13516  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
13517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13518 $as_echo "(..)" >&6; }
13519   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
13520   do
13521    unset ac_cv_type_uintptr_t
13522    unset ac_cv_type_uint64_t
13523    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
13524 "
13525 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13526   ac_cv_header_stdint_x=$i
13527 else
13528   continue
13529 fi
13530
13531    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
13532 "
13533 if test "x$ac_cv_type_uint64_t" = xyes; then :
13534   and64="/uint64_t"
13535 else
13536   and64=""
13537 fi
13538
13539    ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
13540  break
13541   done
13542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
13543 $as_echo_n "checking for stdint uintptr_t... " >&6; }
13544
13545 fi
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
13547 $as_echo "$ac_cv_header_stdint_x" >&6; }
13548
13549
13550 if test "_$ac_cv_header_stdint_x" = "_" ; then
13551
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
13553 $as_echo_n "checking for stdint uint32_t... " >&6; }
13554 if ${ac_cv_header_stdint_o+:} false; then :
13555   $as_echo_n "(cached) " >&6
13556 else
13557
13558  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
13559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13560 $as_echo "(..)" >&6; }
13561   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
13562   do
13563    unset ac_cv_type_uint32_t
13564    unset ac_cv_type_uint64_t
13565    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
13566 "
13567 if test "x$ac_cv_type_uint32_t" = xyes; then :
13568   ac_cv_header_stdint_o=$i
13569 else
13570   continue
13571 fi
13572
13573    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
13574 "
13575 if test "x$ac_cv_type_uint64_t" = xyes; then :
13576   and64="/uint64_t"
13577 else
13578   and64=""
13579 fi
13580
13581    ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
13582  break
13583    break;
13584   done
13585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
13586 $as_echo_n "checking for stdint uint32_t... " >&6; }
13587
13588 fi
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
13590 $as_echo "$ac_cv_header_stdint_o" >&6; }
13591
13592 fi
13593
13594 if test "_$ac_cv_header_stdint_x" = "_" ; then
13595 if test "_$ac_cv_header_stdint_o" = "_" ; then
13596
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
13598 $as_echo_n "checking for stdint u_int32_t... " >&6; }
13599 if ${ac_cv_header_stdint_u+:} false; then :
13600   $as_echo_n "(cached) " >&6
13601 else
13602
13603  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
13604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13605 $as_echo "(..)" >&6; }
13606   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
13607    unset ac_cv_type_u_int32_t
13608    unset ac_cv_type_u_int64_t
13609    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
13610 "
13611 if test "x$ac_cv_type_u_int32_t" = xyes; then :
13612   ac_cv_header_stdint_u=$i
13613 else
13614   continue
13615 fi
13616
13617    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
13618 "
13619 if test "x$ac_cv_type_u_int64_t" = xyes; then :
13620   and64="/u_int64_t"
13621 else
13622   and64=""
13623 fi
13624
13625    ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
13626  break
13627    break;
13628   done
13629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
13630 $as_echo_n "checking for stdint u_int32_t... " >&6; }
13631
13632 fi
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
13634 $as_echo "$ac_cv_header_stdint_u" >&6; }
13635
13636 fi fi
13637
13638 if test "_$ac_cv_header_stdint_x" = "_" ; then
13639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
13640 $as_echo_n "checking for stdint datatype model... " >&6; }
13641    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13642 $as_echo "(..)" >&6; }
13643
13644    # The cast to long int works around a bug in the HP C Compiler
13645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13647 # This bug is HP SR number 8606223364.
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13649 $as_echo_n "checking size of char... " >&6; }
13650 if ${ac_cv_sizeof_char+:} false; then :
13651   $as_echo_n "(cached) " >&6
13652 else
13653   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
13654
13655 else
13656   if test "$ac_cv_type_char" = yes; then
13657      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13659 as_fn_error 77 "cannot compute sizeof (char)
13660 See \`config.log' for more details" "$LINENO" 5; }
13661    else
13662      ac_cv_sizeof_char=0
13663    fi
13664 fi
13665
13666 fi
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13668 $as_echo "$ac_cv_sizeof_char" >&6; }
13669
13670
13671
13672 cat >>confdefs.h <<_ACEOF
13673 #define SIZEOF_CHAR $ac_cv_sizeof_char
13674 _ACEOF
13675
13676
13677    # The cast to long int works around a bug in the HP C Compiler
13678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13680 # This bug is HP SR number 8606223364.
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13682 $as_echo_n "checking size of short... " >&6; }
13683 if ${ac_cv_sizeof_short+:} false; then :
13684   $as_echo_n "(cached) " >&6
13685 else
13686   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13687
13688 else
13689   if test "$ac_cv_type_short" = yes; then
13690      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13692 as_fn_error 77 "cannot compute sizeof (short)
13693 See \`config.log' for more details" "$LINENO" 5; }
13694    else
13695      ac_cv_sizeof_short=0
13696    fi
13697 fi
13698
13699 fi
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13701 $as_echo "$ac_cv_sizeof_short" >&6; }
13702
13703
13704
13705 cat >>confdefs.h <<_ACEOF
13706 #define SIZEOF_SHORT $ac_cv_sizeof_short
13707 _ACEOF
13708
13709
13710    # The cast to long int works around a bug in the HP C Compiler
13711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13713 # This bug is HP SR number 8606223364.
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13715 $as_echo_n "checking size of int... " >&6; }
13716 if ${ac_cv_sizeof_int+:} false; then :
13717   $as_echo_n "(cached) " >&6
13718 else
13719   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13720
13721 else
13722   if test "$ac_cv_type_int" = yes; then
13723      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13725 as_fn_error 77 "cannot compute sizeof (int)
13726 See \`config.log' for more details" "$LINENO" 5; }
13727    else
13728      ac_cv_sizeof_int=0
13729    fi
13730 fi
13731
13732 fi
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13734 $as_echo "$ac_cv_sizeof_int" >&6; }
13735
13736
13737
13738 cat >>confdefs.h <<_ACEOF
13739 #define SIZEOF_INT $ac_cv_sizeof_int
13740 _ACEOF
13741
13742
13743    # The cast to long int works around a bug in the HP C Compiler
13744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13746 # This bug is HP SR number 8606223364.
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13748 $as_echo_n "checking size of long... " >&6; }
13749 if ${ac_cv_sizeof_long+:} false; then :
13750   $as_echo_n "(cached) " >&6
13751 else
13752   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13753
13754 else
13755   if test "$ac_cv_type_long" = yes; then
13756      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13758 as_fn_error 77 "cannot compute sizeof (long)
13759 See \`config.log' for more details" "$LINENO" 5; }
13760    else
13761      ac_cv_sizeof_long=0
13762    fi
13763 fi
13764
13765 fi
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13767 $as_echo "$ac_cv_sizeof_long" >&6; }
13768
13769
13770
13771 cat >>confdefs.h <<_ACEOF
13772 #define SIZEOF_LONG $ac_cv_sizeof_long
13773 _ACEOF
13774
13775
13776    # The cast to long int works around a bug in the HP C Compiler
13777 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13778 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13779 # This bug is HP SR number 8606223364.
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
13781 $as_echo_n "checking size of void*... " >&6; }
13782 if ${ac_cv_sizeof_voidp+:} false; then :
13783   $as_echo_n "(cached) " >&6
13784 else
13785   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
13786
13787 else
13788   if test "$ac_cv_type_voidp" = yes; then
13789      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13791 as_fn_error 77 "cannot compute sizeof (void*)
13792 See \`config.log' for more details" "$LINENO" 5; }
13793    else
13794      ac_cv_sizeof_voidp=0
13795    fi
13796 fi
13797
13798 fi
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
13800 $as_echo "$ac_cv_sizeof_voidp" >&6; }
13801
13802
13803
13804 cat >>confdefs.h <<_ACEOF
13805 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
13806 _ACEOF
13807
13808
13809    ac_cv_char_data_model=""
13810    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
13811    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
13812    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
13813    ac_cv_long_data_model=""
13814    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
13815    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
13816    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
13817    { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
13818 $as_echo_n "checking data model... " >&6; }
13819    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
13820     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
13821     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
13822     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
13823     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
13824     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
13825     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
13826     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
13827     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
13828     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
13829     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
13830     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
13831     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
13832     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
13833     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
13834     222/*|333/*|444/*|666/*|888/*) :
13835                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
13836      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
13837    esac
13838    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
13839 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
13840
13841 fi
13842
13843 if test "_$ac_cv_header_stdint_x" != "_" ; then
13844    ac_cv_header_stdint="$ac_cv_header_stdint_x"
13845 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
13846    ac_cv_header_stdint="$ac_cv_header_stdint_o"
13847 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
13848    ac_cv_header_stdint="$ac_cv_header_stdint_u"
13849 else
13850    ac_cv_header_stdint="stddef.h"
13851 fi
13852
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
13854 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
13856 $as_echo "($ac_cv_header_stdint)" >&6; }
13857 unset ac_cv_type_int_least32_t
13858 unset ac_cv_type_int_fast32_t
13859 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
13860 "
13861 if test "x$ac_cv_type_int_least32_t" = xyes; then :
13862
13863 fi
13864
13865 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
13866 "
13867 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
13868
13869 fi
13870
13871 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
13872 "
13873 if test "x$ac_cv_type_intmax_t" = xyes; then :
13874
13875 fi
13876
13877
13878 fi # shortcircut to system "stdint.h"
13879 # ------------------ PREPARE VARIABLES ------------------------------
13880 if test "$GCC" = "yes" ; then
13881 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
13882 else
13883 ac_cv_stdint_message="using $CC"
13884 fi
13885
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
13887 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
13888
13889 # ----------------- DONE inttypes.h checks START header -------------
13890 ac_config_commands="$ac_config_commands $ac_stdint_h"
13891
13892
13893
13894 # Checks for typedefs, structures, and compiler characteristics.
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13896 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13897 if ${ac_cv_c_const+:} false; then :
13898   $as_echo_n "(cached) " >&6
13899 else
13900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h.  */
13902
13903 int
13904 main ()
13905 {
13906
13907 #ifndef __cplusplus
13908   /* Ultrix mips cc rejects this sort of thing.  */
13909   typedef int charset[2];
13910   const charset cs = { 0, 0 };
13911   /* SunOS 4.1.1 cc rejects this.  */
13912   char const *const *pcpcc;
13913   char **ppc;
13914   /* NEC SVR4.0.2 mips cc rejects this.  */
13915   struct point {int x, y;};
13916   static struct point const zero = {0,0};
13917   /* AIX XL C 1.02.0.0 rejects this.
13918      It does not let you subtract one const X* pointer from another in
13919      an arm of an if-expression whose if-part is not a constant
13920      expression */
13921   const char *g = "string";
13922   pcpcc = &g + (g ? g-g : 0);
13923   /* HPUX 7.0 cc rejects these. */
13924   ++pcpcc;
13925   ppc = (char**) pcpcc;
13926   pcpcc = (char const *const *) ppc;
13927   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13928     char tx;
13929     char *t = &tx;
13930     char const *s = 0 ? (char *) 0 : (char const *) 0;
13931
13932     *t++ = 0;
13933     if (s) return 0;
13934   }
13935   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13936     int x[] = {25, 17};
13937     const int *foo = &x[0];
13938     ++foo;
13939   }
13940   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13941     typedef const int *iptr;
13942     iptr p = 0;
13943     ++p;
13944   }
13945   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13946        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13947     struct s { int j; const int *ap[3]; } bx;
13948     struct s *b = &bx; b->j = 5;
13949   }
13950   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13951     const int foo = 10;
13952     if (!foo) return 0;
13953   }
13954   return !cs[0] && !zero.x;
13955 #endif
13956
13957   ;
13958   return 0;
13959 }
13960 _ACEOF
13961 if ac_fn_c_try_compile "$LINENO"; then :
13962   ac_cv_c_const=yes
13963 else
13964   ac_cv_c_const=no
13965 fi
13966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13967 fi
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13969 $as_echo "$ac_cv_c_const" >&6; }
13970 if test $ac_cv_c_const = no; then
13971
13972 $as_echo "#define const /**/" >>confdefs.h
13973
13974 fi
13975
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13977 $as_echo_n "checking for inline... " >&6; }
13978 if ${ac_cv_c_inline+:} false; then :
13979   $as_echo_n "(cached) " >&6
13980 else
13981   ac_cv_c_inline=no
13982 for ac_kw in inline __inline__ __inline; do
13983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h.  */
13985 #ifndef __cplusplus
13986 typedef int foo_t;
13987 static $ac_kw foo_t static_foo () {return 0; }
13988 $ac_kw foo_t foo () {return 0; }
13989 #endif
13990
13991 _ACEOF
13992 if ac_fn_c_try_compile "$LINENO"; then :
13993   ac_cv_c_inline=$ac_kw
13994 fi
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13996   test "$ac_cv_c_inline" != no && break
13997 done
13998
13999 fi
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14001 $as_echo "$ac_cv_c_inline" >&6; }
14002
14003 case $ac_cv_c_inline in
14004   inline | yes) ;;
14005   *)
14006     case $ac_cv_c_inline in
14007       no) ac_val=;;
14008       *) ac_val=$ac_cv_c_inline;;
14009     esac
14010     cat >>confdefs.h <<_ACEOF
14011 #ifndef __cplusplus
14012 #define inline $ac_val
14013 #endif
14014 _ACEOF
14015     ;;
14016 esac
14017
14018
14019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
14020 $as_echo_n "checking for flexible array members... " >&6; }
14021 if ${ac_cv_c_flexmember+:} false; then :
14022   $as_echo_n "(cached) " >&6
14023 else
14024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h.  */
14026 #include <stdlib.h>
14027             #include <stdio.h>
14028             #include <stddef.h>
14029             struct s { int n; double d[]; };
14030 int
14031 main ()
14032 {
14033 int m = getchar ();
14034             struct s *p = malloc (offsetof (struct s, d)
14035                                   + m * sizeof (double));
14036             p->d[0] = 0.0;
14037             return p->d != (double *) NULL;
14038   ;
14039   return 0;
14040 }
14041 _ACEOF
14042 if ac_fn_c_try_compile "$LINENO"; then :
14043   ac_cv_c_flexmember=yes
14044 else
14045   ac_cv_c_flexmember=no
14046 fi
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048 fi
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
14050 $as_echo "$ac_cv_c_flexmember" >&6; }
14051   if test $ac_cv_c_flexmember = yes; then
14052
14053 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
14054
14055   else
14056     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
14057
14058   fi
14059
14060 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14061 if test "x$ac_cv_type_pid_t" = xyes; then :
14062
14063 else
14064
14065 cat >>confdefs.h <<_ACEOF
14066 #define pid_t int
14067 _ACEOF
14068
14069 fi
14070
14071
14072 # Checks for library functions.
14073 for ac_func in vprintf
14074 do :
14075   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14076 if test "x$ac_cv_func_vprintf" = xyes; then :
14077   cat >>confdefs.h <<_ACEOF
14078 #define HAVE_VPRINTF 1
14079 _ACEOF
14080
14081 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14082 if test "x$ac_cv_func__doprnt" = xyes; then :
14083
14084 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14085
14086 fi
14087
14088 fi
14089 done
14090
14091
14092
14093
14094
14095   for ac_header in $ac_header_list
14096 do :
14097   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14098 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14099 "
14100 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14101   cat >>confdefs.h <<_ACEOF
14102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14103 _ACEOF
14104
14105 fi
14106
14107 done
14108
14109
14110
14111
14112
14113
14114
14115
14116 for ac_func in getpagesize
14117 do :
14118   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14119 if test "x$ac_cv_func_getpagesize" = xyes; then :
14120   cat >>confdefs.h <<_ACEOF
14121 #define HAVE_GETPAGESIZE 1
14122 _ACEOF
14123
14124 fi
14125 done
14126
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14128 $as_echo_n "checking for working mmap... " >&6; }
14129 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14130   $as_echo_n "(cached) " >&6
14131 else
14132   if test "$cross_compiling" = yes; then :
14133   ac_cv_func_mmap_fixed_mapped=no
14134 else
14135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h.  */
14137 $ac_includes_default
14138 /* malloc might have been renamed as rpl_malloc. */
14139 #undef malloc
14140
14141 /* Thanks to Mike Haertel and Jim Avera for this test.
14142    Here is a matrix of mmap possibilities:
14143         mmap private not fixed
14144         mmap private fixed at somewhere currently unmapped
14145         mmap private fixed at somewhere already mapped
14146         mmap shared not fixed
14147         mmap shared fixed at somewhere currently unmapped
14148         mmap shared fixed at somewhere already mapped
14149    For private mappings, we should verify that changes cannot be read()
14150    back from the file, nor mmap's back from the file at a different
14151    address.  (There have been systems where private was not correctly
14152    implemented like the infamous i386 svr4.0, and systems where the
14153    VM page cache was not coherent with the file system buffer cache
14154    like early versions of FreeBSD and possibly contemporary NetBSD.)
14155    For shared mappings, we should conversely verify that changes get
14156    propagated back to all the places they're supposed to be.
14157
14158    Grep wants private fixed already mapped.
14159    The main things grep needs to know about mmap are:
14160    * does it exist and is it safe to write into the mmap'd area
14161    * how to use it (BSD variants)  */
14162
14163 #include <fcntl.h>
14164 #include <sys/mman.h>
14165
14166 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14167 char *malloc ();
14168 #endif
14169
14170 /* This mess was copied from the GNU getpagesize.h.  */
14171 #ifndef HAVE_GETPAGESIZE
14172 # ifdef _SC_PAGESIZE
14173 #  define getpagesize() sysconf(_SC_PAGESIZE)
14174 # else /* no _SC_PAGESIZE */
14175 #  ifdef HAVE_SYS_PARAM_H
14176 #   include <sys/param.h>
14177 #   ifdef EXEC_PAGESIZE
14178 #    define getpagesize() EXEC_PAGESIZE
14179 #   else /* no EXEC_PAGESIZE */
14180 #    ifdef NBPG
14181 #     define getpagesize() NBPG * CLSIZE
14182 #     ifndef CLSIZE
14183 #      define CLSIZE 1
14184 #     endif /* no CLSIZE */
14185 #    else /* no NBPG */
14186 #     ifdef NBPC
14187 #      define getpagesize() NBPC
14188 #     else /* no NBPC */
14189 #      ifdef PAGESIZE
14190 #       define getpagesize() PAGESIZE
14191 #      endif /* PAGESIZE */
14192 #     endif /* no NBPC */
14193 #    endif /* no NBPG */
14194 #   endif /* no EXEC_PAGESIZE */
14195 #  else /* no HAVE_SYS_PARAM_H */
14196 #   define getpagesize() 8192   /* punt totally */
14197 #  endif /* no HAVE_SYS_PARAM_H */
14198 # endif /* no _SC_PAGESIZE */
14199
14200 #endif /* no HAVE_GETPAGESIZE */
14201
14202 int
14203 main ()
14204 {
14205   char *data, *data2, *data3;
14206   const char *cdata2;
14207   int i, pagesize;
14208   int fd, fd2;
14209
14210   pagesize = getpagesize ();
14211
14212   /* First, make a file with some known garbage in it. */
14213   data = (char *) malloc (pagesize);
14214   if (!data)
14215     return 1;
14216   for (i = 0; i < pagesize; ++i)
14217     *(data + i) = rand ();
14218   umask (0);
14219   fd = creat ("conftest.mmap", 0600);
14220   if (fd < 0)
14221     return 2;
14222   if (write (fd, data, pagesize) != pagesize)
14223     return 3;
14224   close (fd);
14225
14226   /* Next, check that the tail of a page is zero-filled.  File must have
14227      non-zero length, otherwise we risk SIGBUS for entire page.  */
14228   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14229   if (fd2 < 0)
14230     return 4;
14231   cdata2 = "";
14232   if (write (fd2, cdata2, 1) != 1)
14233     return 5;
14234   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14235   if (data2 == MAP_FAILED)
14236     return 6;
14237   for (i = 0; i < pagesize; ++i)
14238     if (*(data2 + i))
14239       return 7;
14240   close (fd2);
14241   if (munmap (data2, pagesize))
14242     return 8;
14243
14244   /* Next, try to mmap the file at a fixed address which already has
14245      something else allocated at it.  If we can, also make sure that
14246      we see the same garbage.  */
14247   fd = open ("conftest.mmap", O_RDWR);
14248   if (fd < 0)
14249     return 9;
14250   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14251                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14252     return 10;
14253   for (i = 0; i < pagesize; ++i)
14254     if (*(data + i) != *(data2 + i))
14255       return 11;
14256
14257   /* Finally, make sure that changes to the mapped area do not
14258      percolate back to the file as seen by read().  (This is a bug on
14259      some variants of i386 svr4.0.)  */
14260   for (i = 0; i < pagesize; ++i)
14261     *(data2 + i) = *(data2 + i) + 1;
14262   data3 = (char *) malloc (pagesize);
14263   if (!data3)
14264     return 12;
14265   if (read (fd, data3, pagesize) != pagesize)
14266     return 13;
14267   for (i = 0; i < pagesize; ++i)
14268     if (*(data + i) != *(data3 + i))
14269       return 14;
14270   close (fd);
14271   return 0;
14272 }
14273 _ACEOF
14274 if ac_fn_c_try_run "$LINENO"; then :
14275   ac_cv_func_mmap_fixed_mapped=yes
14276 else
14277   ac_cv_func_mmap_fixed_mapped=no
14278 fi
14279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14280   conftest.$ac_objext conftest.beam conftest.$ac_ext
14281 fi
14282
14283 fi
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14285 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14286 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14287
14288 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14289
14290 fi
14291 rm -f conftest.mmap conftest.txt
14292
14293 for ac_func in link mkstemp mkostemp _mktemp_s mkdtemp getopt getopt_long getprogname getexecname rand random lrand48 random_r rand_r readlink fstatvfs fstatfs lstat
14294 do :
14295   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14297 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14298   cat >>confdefs.h <<_ACEOF
14299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14300 _ACEOF
14301
14302 fi
14303 done
14304
14305
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise in fcntl.h" >&5
14307 $as_echo_n "checking for posix_fadvise in fcntl.h... " >&6; }
14308 if ${ac_cv_func_posix_fadvise+:} false; then :
14309   $as_echo_n "(cached) " >&6
14310 else
14311   symbol="[^a-zA-Z_0-9]posix_fadvise[^a-zA-Z_0-9]"
14312 ac_found=no
14313 for ac_header in fcntl.h ; do
14314   ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' `
14315   if test $ac_found != "yes" ; then
14316       if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14317             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h.  */
14319 #include <$ac_header>
14320
14321 _ACEOF
14322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14323   $EGREP "$symbol" >/dev/null 2>&1; then :
14324   ac_found="$ac_header"
14325 fi
14326 rm -f conftest*
14327
14328       fi
14329   fi
14330 done
14331 if test "$ac_found" != "no" ; then
14332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_found" >&5
14333 $as_echo "$ac_found" >&6; }
14334   fc_func_posix_fadvise=1
14335 else
14336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337 $as_echo "no" >&6; }
14338   fc_func_posix_fadvise=0
14339 fi
14340
14341 fi
14342
14343
14344 cat >>confdefs.h <<_ACEOF
14345 #define HAVE_POSIX_FADVISE $fc_func_posix_fadvise
14346 _ACEOF
14347
14348
14349 #
14350 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
14351         ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
14352 "
14353 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
14354
14355 cat >>confdefs.h <<_ACEOF
14356 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
14357 _ACEOF
14358
14359
14360 fi
14361 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
14362 "
14363 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
14364
14365 cat >>confdefs.h <<_ACEOF
14366 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
14367 _ACEOF
14368
14369
14370 fi
14371
14372 fi
14373 if test "x$ac_cv_func_fstatfs" = "xyes"; then
14374         ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
14375 #ifdef HAVE_SYS_VFS_H
14376 #include <sys/vfs.h>
14377 #endif
14378 #ifdef HAVE_SYS_STATFS_H
14379 #include <sys/statfs.h>
14380 #endif
14381 #ifdef HAVE_SYS_PARAM_H
14382 #include <sys/param.h>
14383 #endif
14384 #ifdef HAVE_SYS_MOUNT_H
14385 #include <sys/mount.h>
14386 #endif
14387 "
14388 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
14389
14390 cat >>confdefs.h <<_ACEOF
14391 #define HAVE_STRUCT_STATFS_F_FLAGS 1
14392 _ACEOF
14393
14394
14395 fi
14396 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
14397 #ifdef HAVE_SYS_VFS_H
14398 #include <sys/vfs.h>
14399 #endif
14400 #ifdef HAVE_SYS_STATFS_H
14401 #include <sys/statfs.h>
14402 #endif
14403 #ifdef HAVE_SYS_PARAM_H
14404 #include <sys/param.h>
14405 #endif
14406 #ifdef HAVE_SYS_MOUNT_H
14407 #include <sys/mount.h>
14408 #endif
14409 "
14410 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
14411
14412 cat >>confdefs.h <<_ACEOF
14413 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
14414 _ACEOF
14415
14416
14417 fi
14418
14419 fi
14420 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
14421 "
14422 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
14423
14424 cat >>confdefs.h <<_ACEOF
14425 #define HAVE_STRUCT_DIRENT_D_TYPE 1
14426 _ACEOF
14427
14428
14429 fi
14430
14431
14432 #
14433 # Checks for iconv
14434 #
14435 # Check whether --enable-iconv was given.
14436 if test "${enable_iconv+set}" = set; then :
14437   enableval=$enable_iconv;
14438 else
14439   enable_iconv=no
14440 fi
14441
14442
14443 # Check whether --with-libiconv was given.
14444 if test "${with_libiconv+set}" = set; then :
14445   withval=$with_libiconv; if test "x$withval" = "xyes"; then
14446                 libiconv_prefix=$prefix
14447          else
14448                 libiconv_prefix=$withval
14449          fi
14450 else
14451   libiconv_prefix=auto
14452 fi
14453
14454
14455 # Check whether --with-libiconv-includes was given.
14456 if test "${with_libiconv_includes+set}" = set; then :
14457   withval=$with_libiconv_includes; libiconv_includes=$withval
14458 else
14459   libiconv_includes=auto
14460 fi
14461
14462
14463 # Check whether --with-libiconv-lib was given.
14464 if test "${with_libiconv_lib+set}" = set; then :
14465   withval=$with_libiconv_lib; libiconv_lib=$withval
14466 else
14467   libiconv_lib=auto
14468 fi
14469
14470
14471 # if no libiconv,libiconv-includes,libiconv-lib are specified,
14472 # libc's iconv has a priority.
14473 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
14474         libiconv_cflags="-I${libiconv_includes}"
14475 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
14476         libiconv_cflags="-I${libiconv_prefix}/include"
14477 else
14478         libiconv_cflags=""
14479 fi
14480 libiconv_libs=""
14481 if test "x$libiconv_cflags" != "x"; then
14482         if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
14483                 libiconv_libs="-L${libiconv_lib} -liconv"
14484         elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
14485                 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
14486         else
14487                 libiconv_libs="-liconv"
14488         fi
14489 fi
14490
14491 use_iconv=0
14492 if test "x$enable_iconv" != "xno"; then
14493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
14494 $as_echo_n "checking for a usable iconv... " >&6; }
14495         if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
14496                 iconvsaved_CFLAGS="$CFLAGS"
14497                 iconvsaved_LIBS="$LIBS"
14498                 CFLAGS="$CFLAGS $libiconv_cflags"
14499                 LIBS="$LIBS $libiconv_libs"
14500
14501                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h.  */
14503 #include <iconv.h>
14504 int
14505 main ()
14506 {
14507 iconv_open ("from", "to");
14508   ;
14509   return 0;
14510 }
14511 _ACEOF
14512 if ac_fn_c_try_link "$LINENO"; then :
14513   iconv_type="libiconv"
14514                          use_iconv=1
14515                          ICONV_CFLAGS="$libiconv_cflags"
14516                          ICONV_LIBS="$libiconv_libs"
14517
14518 else
14519   use_iconv=0
14520 fi
14521 rm -f core conftest.err conftest.$ac_objext \
14522     conftest$ac_exeext conftest.$ac_ext
14523
14524                 CFLAGS="$iconvsaved_CFLAGS"
14525                 LIBS="$iconvsaved_LIBS"
14526         fi
14527         if test "x$use_iconv" = "x0"; then
14528                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h.  */
14530 #include <iconv.h>
14531 int
14532 main ()
14533 {
14534 iconv_open ("from", "to");
14535   ;
14536   return 0;
14537 }
14538 _ACEOF
14539 if ac_fn_c_try_link "$LINENO"; then :
14540   iconv_type="libc"
14541                          use_iconv=1
14542 else
14543   iconv_type="not found"
14544                          use_iconv=0
14545 fi
14546 rm -f core conftest.err conftest.$ac_objext \
14547     conftest$ac_exeext conftest.$ac_ext
14548         fi
14549
14550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
14551 $as_echo "$iconv_type" >&6; }
14552
14553
14554 fi
14555
14556 cat >>confdefs.h <<_ACEOF
14557 #define USE_ICONV $use_iconv
14558 _ACEOF
14559
14560 #
14561 # Checks for FreeType
14562 #
14563
14564 pkg_failed=no
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
14566 $as_echo_n "checking for FREETYPE... " >&6; }
14567
14568 if test -n "$FREETYPE_CFLAGS"; then
14569     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
14570  elif test -n "$PKG_CONFIG"; then
14571     if test -n "$PKG_CONFIG" && \
14572     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
14573   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
14574   ac_status=$?
14575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14576   test $ac_status = 0; }; then
14577   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
14578                       test "x$?" != "x0" && pkg_failed=yes
14579 else
14580   pkg_failed=yes
14581 fi
14582  else
14583     pkg_failed=untried
14584 fi
14585 if test -n "$FREETYPE_LIBS"; then
14586     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
14587  elif test -n "$PKG_CONFIG"; then
14588     if test -n "$PKG_CONFIG" && \
14589     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
14590   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
14591   ac_status=$?
14592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14593   test $ac_status = 0; }; then
14594   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
14595                       test "x$?" != "x0" && pkg_failed=yes
14596 else
14597   pkg_failed=yes
14598 fi
14599  else
14600     pkg_failed=untried
14601 fi
14602
14603
14604
14605 if test $pkg_failed = yes; then
14606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14607 $as_echo "no" >&6; }
14608
14609 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14610         _pkg_short_errors_supported=yes
14611 else
14612         _pkg_short_errors_supported=no
14613 fi
14614         if test $_pkg_short_errors_supported = yes; then
14615                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
14616         else
14617                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
14618         fi
14619         # Put the nasty error message in config.log where it belongs
14620         echo "$FREETYPE_PKG_ERRORS" >&5
14621
14622         as_fn_error $? "Package requirements (freetype2) were not met:
14623
14624 $FREETYPE_PKG_ERRORS
14625
14626 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14627 installed software in a non-standard prefix.
14628
14629 Alternatively, you may set the environment variables FREETYPE_CFLAGS
14630 and FREETYPE_LIBS to avoid the need to call pkg-config.
14631 See the pkg-config man page for more details." "$LINENO" 5
14632 elif test $pkg_failed = untried; then
14633         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634 $as_echo "no" >&6; }
14635         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14637 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14638 is in your PATH or set the PKG_CONFIG environment variable to the full
14639 path to pkg-config.
14640
14641 Alternatively, you may set the environment variables FREETYPE_CFLAGS
14642 and FREETYPE_LIBS to avoid the need to call pkg-config.
14643 See the pkg-config man page for more details.
14644
14645 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14646 See \`config.log' for more details" "$LINENO" 5; }
14647 else
14648         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
14649         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
14650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14651 $as_echo "yes" >&6; }
14652
14653 fi
14654 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2"
14655
14656
14657
14658
14659 fontconfig_save_libs="$LIBS"
14660 fontconfig_save_cflags="$CFLAGS"
14661 LIBS="$LIBS $FREETYPE_LIBS"
14662 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
14663 for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Select_Size
14664 do :
14665   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14666 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14667 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14668   cat >>confdefs.h <<_ACEOF
14669 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14670 _ACEOF
14671
14672 fi
14673 done
14674
14675 ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h>
14676 #include FT_FREETYPE_H
14677 "
14678 if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = xyes; then :
14679   HAVE_FT_BITMAP_SIZE_Y_PPEM=1
14680 else
14681   HAVE_FT_BITMAP_SIZE_Y_PPEM=0
14682 fi
14683
14684
14685 cat >>confdefs.h <<_ACEOF
14686 #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
14687 _ACEOF
14688
14689 ac_fn_c_check_member "$LINENO" "TT_OS2" "usLowerOpticalPointSize" "ac_cv_member_TT_OS2_usLowerOpticalPointSize" "
14690 #include <ft2build.h>
14691 #include FT_FREETYPE_H
14692 #include FT_TRUETYPE_TABLES_H
14693 "
14694 if test "x$ac_cv_member_TT_OS2_usLowerOpticalPointSize" = xyes; then :
14695
14696 cat >>confdefs.h <<_ACEOF
14697 #define HAVE_TT_OS2_USLOWEROPTICALPOINTSIZE 1
14698 _ACEOF
14699
14700
14701 fi
14702 ac_fn_c_check_member "$LINENO" "TT_OS2" "usUpperOpticalPointSize" "ac_cv_member_TT_OS2_usUpperOpticalPointSize" "
14703 #include <ft2build.h>
14704 #include FT_FREETYPE_H
14705 #include FT_TRUETYPE_TABLES_H
14706 "
14707 if test "x$ac_cv_member_TT_OS2_usUpperOpticalPointSize" = xyes; then :
14708
14709 cat >>confdefs.h <<_ACEOF
14710 #define HAVE_TT_OS2_USUPPEROPTICALPOINTSIZE 1
14711 _ACEOF
14712
14713
14714 fi
14715
14716 CFLAGS="$fontconfig_save_cflags"
14717 LIBS="$fontconfig_save_libs"
14718
14719 #
14720 # Check expat configuration
14721 #
14722
14723 # Check whether --with-expat was given.
14724 if test "${with_expat+set}" = set; then :
14725   withval=$with_expat; expat_prefix=$withval
14726 else
14727   expat_prefix=auto
14728 fi
14729
14730
14731 # Check whether --with-expat-includes was given.
14732 if test "${with_expat_includes+set}" = set; then :
14733   withval=$with_expat_includes; expat_includes=$withval
14734 else
14735   expat_includes=auto
14736 fi
14737
14738
14739 # Check whether --with-expat-lib was given.
14740 if test "${with_expat_lib+set}" = set; then :
14741   withval=$with_expat_lib; expat_lib=$withval
14742 else
14743   expat_lib=auto
14744 fi
14745
14746
14747 if test "$enable_libxml2" != "yes"; then
14748         use_pkgconfig_for_expat=yes
14749         if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
14750
14751 pkg_failed=no
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
14753 $as_echo_n "checking for EXPAT... " >&6; }
14754
14755 if test -n "$EXPAT_CFLAGS"; then
14756     pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
14757  elif test -n "$PKG_CONFIG"; then
14758     if test -n "$PKG_CONFIG" && \
14759     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
14760   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
14761   ac_status=$?
14762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14763   test $ac_status = 0; }; then
14764   pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
14765                       test "x$?" != "x0" && pkg_failed=yes
14766 else
14767   pkg_failed=yes
14768 fi
14769  else
14770     pkg_failed=untried
14771 fi
14772 if test -n "$EXPAT_LIBS"; then
14773     pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
14774  elif test -n "$PKG_CONFIG"; then
14775     if test -n "$PKG_CONFIG" && \
14776     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
14777   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
14778   ac_status=$?
14779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14780   test $ac_status = 0; }; then
14781   pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
14782                       test "x$?" != "x0" && pkg_failed=yes
14783 else
14784   pkg_failed=yes
14785 fi
14786  else
14787     pkg_failed=untried
14788 fi
14789
14790
14791
14792 if test $pkg_failed = yes; then
14793         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14794 $as_echo "no" >&6; }
14795
14796 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14797         _pkg_short_errors_supported=yes
14798 else
14799         _pkg_short_errors_supported=no
14800 fi
14801         if test $_pkg_short_errors_supported = yes; then
14802                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
14803         else
14804                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
14805         fi
14806         # Put the nasty error message in config.log where it belongs
14807         echo "$EXPAT_PKG_ERRORS" >&5
14808
14809         use_pkgconfig_for_expat=no
14810 elif test $pkg_failed = untried; then
14811         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14812 $as_echo "no" >&6; }
14813         use_pkgconfig_for_expat=no
14814 else
14815         EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
14816         EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
14817         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14818 $as_echo "yes" >&6; }
14819
14820 fi
14821         else
14822                 use_pkgconfig_for_expat=no
14823         fi
14824         if test "x$use_pkgconfig_for_expat" = "xno"; then
14825                 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
14826                         EXPAT_CFLAGS="-I${expat_includes}"
14827                 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
14828                         EXPAT_CFLAGS="-I${expat_prefix}/include"
14829                 else
14830                         EXPAT_CFLAGS=""
14831                 fi
14832                 if test "$expat_lib" != "auto"; then
14833                         EXPAT_LIBS="-L${expat_lib} -lexpat"
14834                 elif test "$expat_prefix" != "auto"; then
14835                         EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
14836                 else
14837                         EXPAT_LIBS="-lexpat"
14838                 fi
14839         else
14840                 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
14841         fi
14842
14843         expatsaved_CPPFLAGS="$CPPFLAGS"
14844         expatsaved_LIBS="$LIBS"
14845         CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
14846         LIBS="$LIBS $EXPAT_LIBS"
14847
14848         ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
14849 if test "x$ac_cv_header_expat_h" = xyes; then :
14850
14851 fi
14852
14853
14854         if test "$ac_cv_header_expat_h" = "no"; then
14855                 ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
14856 if test "x$ac_cv_header_xmlparse_h" = xyes; then :
14857
14858 fi
14859
14860
14861                 if test "$ac_cv_header_xmlparse_h" = "yes"; then
14862                         HAVE_XMLPARSE_H=1
14863
14864
14865 cat >>confdefs.h <<_ACEOF
14866 #define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
14867 _ACEOF
14868
14869                 else
14870                         as_fn_error $? "
14871 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
14872                 fi
14873         fi
14874         for ac_func in XML_SetDoctypeDeclHandler
14875 do :
14876   ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
14877 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then :
14878   cat >>confdefs.h <<_ACEOF
14879 #define HAVE_XML_SETDOCTYPEDECLHANDLER 1
14880 _ACEOF
14881
14882 fi
14883 done
14884
14885         if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
14886                 as_fn_error $? "
14887 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
14888         fi
14889         CPPFLAGS="$expatsaved_CPPFLAGS"
14890         LIBS="$expatsaved_LIBS"
14891
14892
14893
14894 fi
14895
14896 #
14897 # Check libxml2 configuration
14898 #
14899 # Check whether --enable-libxml2 was given.
14900 if test "${enable_libxml2+set}" = set; then :
14901   enableval=$enable_libxml2;
14902 fi
14903
14904
14905 if test "$enable_libxml2" = "yes"; then
14906
14907 pkg_failed=no
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
14909 $as_echo_n "checking for LIBXML2... " >&6; }
14910
14911 if test -n "$LIBXML2_CFLAGS"; then
14912     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
14913  elif test -n "$PKG_CONFIG"; then
14914     if test -n "$PKG_CONFIG" && \
14915     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
14916   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
14917   ac_status=$?
14918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14919   test $ac_status = 0; }; then
14920   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
14921                       test "x$?" != "x0" && pkg_failed=yes
14922 else
14923   pkg_failed=yes
14924 fi
14925  else
14926     pkg_failed=untried
14927 fi
14928 if test -n "$LIBXML2_LIBS"; then
14929     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
14930  elif test -n "$PKG_CONFIG"; then
14931     if test -n "$PKG_CONFIG" && \
14932     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
14933   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
14934   ac_status=$?
14935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14936   test $ac_status = 0; }; then
14937   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
14938                       test "x$?" != "x0" && pkg_failed=yes
14939 else
14940   pkg_failed=yes
14941 fi
14942  else
14943     pkg_failed=untried
14944 fi
14945
14946
14947
14948 if test $pkg_failed = yes; then
14949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14950 $as_echo "no" >&6; }
14951
14952 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14953         _pkg_short_errors_supported=yes
14954 else
14955         _pkg_short_errors_supported=no
14956 fi
14957         if test $_pkg_short_errors_supported = yes; then
14958                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
14959         else
14960                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
14961         fi
14962         # Put the nasty error message in config.log where it belongs
14963         echo "$LIBXML2_PKG_ERRORS" >&5
14964
14965         as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
14966
14967 $LIBXML2_PKG_ERRORS
14968
14969 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14970 installed software in a non-standard prefix.
14971
14972 Alternatively, you may set the environment variables LIBXML2_CFLAGS
14973 and LIBXML2_LIBS to avoid the need to call pkg-config.
14974 See the pkg-config man page for more details." "$LINENO" 5
14975 elif test $pkg_failed = untried; then
14976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14977 $as_echo "no" >&6; }
14978         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14980 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14981 is in your PATH or set the PKG_CONFIG environment variable to the full
14982 path to pkg-config.
14983
14984 Alternatively, you may set the environment variables LIBXML2_CFLAGS
14985 and LIBXML2_LIBS to avoid the need to call pkg-config.
14986 See the pkg-config man page for more details.
14987
14988 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14989 See \`config.log' for more details" "$LINENO" 5; }
14990 else
14991         LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
14992         LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
14993         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14994 $as_echo "yes" >&6; }
14995
14996 fi
14997     PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0"
14998
14999 cat >>confdefs.h <<_ACEOF
15000 #define ENABLE_LIBXML2 1
15001 _ACEOF
15002
15003
15004
15005
15006
15007     fc_saved_CFLAGS="$CFLAGS"
15008     CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
15009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
15010 $as_echo_n "checking SAX1 support in libxml2... " >&6; }
15011     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012 /* end confdefs.h.  */
15013
15014         #include <libxml/xmlversion.h>
15015         #if !defined(LIBXML_SAX1_ENABLED)
15016         #  include "error: No SAX1 support in libxml2"
15017         #endif
15018
15019 _ACEOF
15020 if ac_fn_c_try_compile "$LINENO"; then :
15021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15022 $as_echo "found" >&6; }
15023 else
15024   as_fn_error $? "
15025 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
15026 fi
15027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028     CFLAGS="$fc_saved_CFLAGS"
15029 fi
15030
15031 #
15032 # Set default font directory
15033 #
15034
15035
15036 # Check whether --with-default-fonts was given.
15037 if test "${with_default_fonts+set}" = set; then :
15038   withval=$with_default_fonts; default_fonts="$withval"
15039 else
15040   default_fonts=yes
15041 fi
15042
15043
15044 case "$default_fonts" in
15045 yes)
15046         if test "$os_win32" = "yes"; then
15047                 FC_DEFAULT_FONTS="WINDOWSFONTDIR"
15048
15049 cat >>confdefs.h <<_ACEOF
15050 #define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
15051 _ACEOF
15052
15053         else
15054                 FC_DEFAULT_FONTS="/usr/share/fonts"
15055
15056 cat >>confdefs.h <<_ACEOF
15057 #define FC_DEFAULT_FONTS "/usr/share/fonts"
15058 _ACEOF
15059
15060         fi
15061         ;;
15062 *)
15063         FC_DEFAULT_FONTS="$default_fonts"
15064
15065 cat >>confdefs.h <<_ACEOF
15066 #define FC_DEFAULT_FONTS "$default_fonts"
15067 _ACEOF
15068
15069         ;;
15070 esac
15071
15072
15073
15074 #
15075 # Add more fonts if available.  By default, add only the directories
15076 # with outline fonts; those with bitmaps can be added as desired in
15077 # local.conf or ~/.fonts.conf
15078 #
15079
15080 # Check whether --with-add-fonts was given.
15081 if test "${with_add_fonts+set}" = set; then :
15082   withval=$with_add_fonts; add_fonts="$withval"
15083 else
15084   add_fonts=yes
15085 fi
15086
15087
15088 case "$add_fonts" in
15089 yes)
15090         FC_ADD_FONTS=""
15091         for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
15092                 case x"$FC_ADD_FONTS" in
15093                 x)
15094                         sub="$dir/fonts"
15095                         if test -d "$sub"; then
15096                                 case x$FC_ADD_FONTS in
15097                                 x)
15098                                         FC_ADD_FONTS="$sub"
15099                                         ;;
15100                                 *)
15101                                         FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
15102                                         ;;
15103                                 esac
15104                         fi
15105                         ;;
15106                 esac
15107         done
15108
15109 cat >>confdefs.h <<_ACEOF
15110 #define FC_ADD_FONTS "$add_fonts"
15111 _ACEOF
15112
15113         ;;
15114 no)
15115         FC_ADD_FONTS=""
15116         ;;
15117 *)
15118         FC_ADD_FONTS="$add_fonts"
15119
15120 cat >>confdefs.h <<_ACEOF
15121 #define FC_ADD_FONTS "$add_fonts"
15122 _ACEOF
15123
15124         ;;
15125 esac
15126
15127
15128
15129 FC_FONTPATH=""
15130
15131 case "$FC_ADD_FONTS" in
15132 "")
15133         ;;
15134 *)
15135         FC_FONTPATH=`echo $FC_ADD_FONTS |
15136                         sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
15137         ;;
15138 esac
15139
15140
15141
15142 #
15143 # Set default cache directory path
15144 #
15145
15146 # Check whether --with-cache-dir was given.
15147 if test "${with_cache_dir+set}" = set; then :
15148   withval=$with_cache_dir; fc_cachedir="$withval"
15149 else
15150   fc_cachedir=yes
15151 fi
15152
15153
15154 case $fc_cachedir in
15155 no|yes)
15156         if test "$os_win32" = "yes"; then
15157                 fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE"
15158         else
15159                 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
15160         fi
15161         ;;
15162 *)
15163         ;;
15164 esac
15165
15166 FC_CACHEDIR=${fc_cachedir}
15167
15168
15169 FC_FONTDATE=`LC_ALL=C date`
15170
15171
15172
15173 #
15174 # Set configuration paths
15175 #
15176
15177
15178 # Check whether --with-templatedir was given.
15179 if test "${with_templatedir+set}" = set; then :
15180   withval=$with_templatedir; templatedir="$withval"
15181 else
15182   templatedir=yes
15183 fi
15184
15185
15186 # Check whether --with-baseconfigdir was given.
15187 if test "${with_baseconfigdir+set}" = set; then :
15188   withval=$with_baseconfigdir; baseconfigdir="$withval"
15189 else
15190   baseconfigdir=yes
15191 fi
15192
15193
15194 # Check whether --with-configdir was given.
15195 if test "${with_configdir+set}" = set; then :
15196   withval=$with_configdir; configdir="$withval"
15197 else
15198   configdir=yes
15199 fi
15200
15201
15202 # Check whether --with-xmldir was given.
15203 if test "${with_xmldir+set}" = set; then :
15204   withval=$with_xmldir; xmldir="$withval"
15205 else
15206   xmldir=yes
15207 fi
15208
15209
15210 case "$templatedir" in
15211 no|yes)
15212         templatedir='${datadir}'/fontconfig/conf.avail
15213         ;;
15214 *)
15215         ;;
15216 esac
15217 case "$baseconfigdir" in
15218 no|yes)
15219         baseconfigdir='${sysconfdir}'/fonts
15220         ;;
15221 *)
15222         ;;
15223 esac
15224 case "$configdir" in
15225 no|yes)
15226         configdir='${BASECONFIGDIR}'/conf.d
15227         ;;
15228 *)
15229         ;;
15230 esac
15231 case "$xmldir" in
15232 no|yes)
15233         xmldir='${datadir}'/xml/fontconfig
15234         ;;
15235 *)
15236         ;;
15237 esac
15238
15239 TEMPLATEDIR=${templatedir}
15240 BASECONFIGDIR=${baseconfigdir}
15241 CONFIGDIR=${configdir}
15242 XMLDIR=${xmldir}
15243
15244
15245
15246
15247
15248
15249
15250 #
15251 # Thread-safety primitives
15252 #
15253
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
15255 $as_echo_n "checking for Intel atomic primitives... " >&6; }
15256 if ${fc_cv_have_intel_atomic_primitives+:} false; then :
15257   $as_echo_n "(cached) " >&6
15258 else
15259
15260         fc_cv_have_intel_atomic_primitives=false
15261         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h.  */
15263
15264                 void memory_barrier (void) { __sync_synchronize (); }
15265                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
15266                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
15267                 void mutex_unlock (int *m) { __sync_lock_release (m); }
15268
15269 int
15270 main ()
15271 {
15272
15273   ;
15274   return 0;
15275 }
15276 _ACEOF
15277 if ac_fn_c_try_link "$LINENO"; then :
15278   fc_cv_have_intel_atomic_primitives=true
15279
15280 fi
15281 rm -f core conftest.err conftest.$ac_objext \
15282     conftest$ac_exeext conftest.$ac_ext
15283
15284 fi
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
15286 $as_echo "$fc_cv_have_intel_atomic_primitives" >&6; }
15287 if $fc_cv_have_intel_atomic_primitives; then
15288
15289 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
15290
15291 fi
15292
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
15294 $as_echo_n "checking for Solaris atomic operations... " >&6; }
15295 if ${fc_cv_have_solaris_atomic_ops+:} false; then :
15296   $as_echo_n "(cached) " >&6
15297 else
15298
15299         fc_cv_have_solaris_atomic_ops=false
15300         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301 /* end confdefs.h.  */
15302
15303                 #include <atomic.h>
15304                 /* This requires Solaris Studio 12.2 or newer: */
15305                 #include <mbarrier.h>
15306                 void memory_barrier (void) { __machine_rw_barrier (); }
15307                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
15308                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
15309
15310 int
15311 main ()
15312 {
15313
15314   ;
15315   return 0;
15316 }
15317 _ACEOF
15318 if ac_fn_c_try_link "$LINENO"; then :
15319   fc_cv_have_solaris_atomic_ops=true
15320
15321 fi
15322 rm -f core conftest.err conftest.$ac_objext \
15323     conftest$ac_exeext conftest.$ac_ext
15324
15325 fi
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
15327 $as_echo "$fc_cv_have_solaris_atomic_ops" >&6; }
15328 if $fc_cv_have_solaris_atomic_ops; then
15329
15330 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
15331
15332 fi
15333
15334 if test "$os_win32" = no && ! $have_pthread; then
15335         for ac_header in sched.h
15336 do :
15337   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15338 if test "x$ac_cv_header_sched_h" = xyes; then :
15339   cat >>confdefs.h <<_ACEOF
15340 #define HAVE_SCHED_H 1
15341 _ACEOF
15342
15343 fi
15344
15345 done
15346
15347         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
15348 $as_echo_n "checking for library containing sched_yield... " >&6; }
15349 if ${ac_cv_search_sched_yield+:} false; then :
15350   $as_echo_n "(cached) " >&6
15351 else
15352   ac_func_search_save_LIBS=$LIBS
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h.  */
15355
15356 /* Override any GCC internal prototype to avoid an error.
15357    Use char because int might match the return type of a GCC
15358    builtin and then its argument prototype would still apply.  */
15359 #ifdef __cplusplus
15360 extern "C"
15361 #endif
15362 char sched_yield ();
15363 int
15364 main ()
15365 {
15366 return sched_yield ();
15367   ;
15368   return 0;
15369 }
15370 _ACEOF
15371 for ac_lib in '' rt; do
15372   if test -z "$ac_lib"; then
15373     ac_res="none required"
15374   else
15375     ac_res=-l$ac_lib
15376     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15377   fi
15378   if ac_fn_c_try_link "$LINENO"; then :
15379   ac_cv_search_sched_yield=$ac_res
15380 fi
15381 rm -f core conftest.err conftest.$ac_objext \
15382     conftest$ac_exeext
15383   if ${ac_cv_search_sched_yield+:} false; then :
15384   break
15385 fi
15386 done
15387 if ${ac_cv_search_sched_yield+:} false; then :
15388
15389 else
15390   ac_cv_search_sched_yield=no
15391 fi
15392 rm conftest.$ac_ext
15393 LIBS=$ac_func_search_save_LIBS
15394 fi
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
15396 $as_echo "$ac_cv_search_sched_yield" >&6; }
15397 ac_res=$ac_cv_search_sched_yield
15398 if test "$ac_res" != no; then :
15399   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15400
15401 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
15402
15403 fi
15404
15405 fi
15406
15407 have_pthread=false
15408 if test "$os_win32" = no; then
15409
15410
15411 ac_ext=c
15412 ac_cpp='$CPP $CPPFLAGS'
15413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15416
15417 ax_pthread_ok=no
15418
15419 # We used to check for pthread.h first, but this fails if pthread.h
15420 # requires special compiler flags (e.g. on True64 or Sequent).
15421 # It gets checked for in the link test anyway.
15422
15423 # First of all, check if the user has set any of the PTHREAD_LIBS,
15424 # etcetera environment variables, and if threads linking works using
15425 # them:
15426 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15427         save_CFLAGS="$CFLAGS"
15428         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15429         save_LIBS="$LIBS"
15430         LIBS="$PTHREAD_LIBS $LIBS"
15431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15432 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15433         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h.  */
15435
15436 /* Override any GCC internal prototype to avoid an error.
15437    Use char because int might match the return type of a GCC
15438    builtin and then its argument prototype would still apply.  */
15439 #ifdef __cplusplus
15440 extern "C"
15441 #endif
15442 char pthread_join ();
15443 int
15444 main ()
15445 {
15446 return pthread_join ();
15447   ;
15448   return 0;
15449 }
15450 _ACEOF
15451 if ac_fn_c_try_link "$LINENO"; then :
15452   ax_pthread_ok=yes
15453 fi
15454 rm -f core conftest.err conftest.$ac_objext \
15455     conftest$ac_exeext conftest.$ac_ext
15456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15457 $as_echo "$ax_pthread_ok" >&6; }
15458         if test x"$ax_pthread_ok" = xno; then
15459                 PTHREAD_LIBS=""
15460                 PTHREAD_CFLAGS=""
15461         fi
15462         LIBS="$save_LIBS"
15463         CFLAGS="$save_CFLAGS"
15464 fi
15465
15466 # We must check for the threads library under a number of different
15467 # names; the ordering is very important because some systems
15468 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15469 # libraries is broken (non-POSIX).
15470
15471 # Create a list of thread flags to try.  Items starting with a "-" are
15472 # C compiler flags, and other items are library names, except for "none"
15473 # which indicates that we try without any flags at all, and "pthread-config"
15474 # which is a program returning the flags for the Pth emulation library.
15475
15476 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15477
15478 # The ordering *is* (sometimes) important.  Some notes on the
15479 # individual items follow:
15480
15481 # pthreads: AIX (must check this before -lpthread)
15482 # none: in case threads are in libc; should be tried before -Kthread and
15483 #       other compiler flags to prevent continual compiler warnings
15484 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15485 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15486 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15487 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15488 # -pthreads: Solaris/gcc
15489 # -mthreads: Mingw32/gcc, Lynx/gcc
15490 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15491 #      doesn't hurt to check since this sometimes defines pthreads too;
15492 #      also defines -D_REENTRANT)
15493 #      ... -mt is also the pthreads flag for HP/aCC
15494 # pthread: Linux, etcetera
15495 # --thread-safe: KAI C++
15496 # pthread-config: use pthread-config program (for GNU Pth library)
15497
15498 case ${host_os} in
15499         solaris*)
15500
15501         # On Solaris (at least, for some versions), libc contains stubbed
15502         # (non-functional) versions of the pthreads routines, so link-based
15503         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15504         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15505         # a function called by this macro, so we could check for that, but
15506         # who knows whether they'll stub that too in a future libc.)  So,
15507         # we'll just look for -pthreads and -lpthread first:
15508
15509         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
15510         ;;
15511
15512         darwin*)
15513         ax_pthread_flags="-pthread $ax_pthread_flags"
15514         ;;
15515         netbsd*)
15516         # use libc stubs, don't link against libpthread, to allow
15517         # dynamic loading
15518         ax_pthread_flags=""
15519         ;;
15520 esac
15521
15522 # Clang doesn't consider unrecognized options an error unless we specify
15523 # -Werror. We throw in some extra Clang-specific options to ensure that
15524 # this doesn't happen for GCC, which also accepts -Werror.
15525
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
15527 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
15528 save_CFLAGS="$CFLAGS"
15529 ax_pthread_extra_flags="-Werror"
15530 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h.  */
15533 int foo(void);
15534 int
15535 main ()
15536 {
15537 foo()
15538   ;
15539   return 0;
15540 }
15541 _ACEOF
15542 if ac_fn_c_try_compile "$LINENO"; then :
15543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15544 $as_echo "yes" >&6; }
15545 else
15546   ax_pthread_extra_flags=
15547                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15548 $as_echo "no" >&6; }
15549 fi
15550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551 CFLAGS="$save_CFLAGS"
15552
15553 if test x"$ax_pthread_ok" = xno; then
15554 for flag in $ax_pthread_flags; do
15555
15556         case $flag in
15557                 none)
15558                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15559 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15560                 ;;
15561
15562                 -*)
15563                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15564 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15565                 PTHREAD_CFLAGS="$flag"
15566                 ;;
15567
15568                 pthread-config)
15569                 # Extract the first word of "pthread-config", so it can be a program name with args.
15570 set dummy pthread-config; ac_word=$2
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15572 $as_echo_n "checking for $ac_word... " >&6; }
15573 if ${ac_cv_prog_ax_pthread_config+:} false; then :
15574   $as_echo_n "(cached) " >&6
15575 else
15576   if test -n "$ax_pthread_config"; then
15577   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15578 else
15579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15580 for as_dir in $PATH
15581 do
15582   IFS=$as_save_IFS
15583   test -z "$as_dir" && as_dir=.
15584     for ac_exec_ext in '' $ac_executable_extensions; do
15585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15586     ac_cv_prog_ax_pthread_config="yes"
15587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15588     break 2
15589   fi
15590 done
15591   done
15592 IFS=$as_save_IFS
15593
15594   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15595 fi
15596 fi
15597 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15598 if test -n "$ax_pthread_config"; then
15599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15600 $as_echo "$ax_pthread_config" >&6; }
15601 else
15602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15603 $as_echo "no" >&6; }
15604 fi
15605
15606
15607                 if test x"$ax_pthread_config" = xno; then continue; fi
15608                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15609                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15610                 ;;
15611
15612                 *)
15613                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15614 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15615                 PTHREAD_LIBS="-l$flag"
15616                 ;;
15617         esac
15618
15619         save_LIBS="$LIBS"
15620         save_CFLAGS="$CFLAGS"
15621         LIBS="$PTHREAD_LIBS $LIBS"
15622         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
15623
15624         # Check for various functions.  We must include pthread.h,
15625         # since some functions may be macros.  (On the Sequent, we
15626         # need a special flag -Kthread to make this header compile.)
15627         # We check for pthread_join because it is in -lpthread on IRIX
15628         # while pthread_create is in libc.  We check for pthread_attr_init
15629         # due to DEC craziness with -lpthreads.  We check for
15630         # pthread_cleanup_push because it is one of the few pthread
15631         # functions on Solaris that doesn't have a non-functional libc stub.
15632         # We try pthread_create on general principles.
15633         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h.  */
15635 #include <pthread.h>
15636                         static void routine(void *a) { a = 0; }
15637                         static void *start_routine(void *a) { return a; }
15638 int
15639 main ()
15640 {
15641 pthread_t th; pthread_attr_t attr;
15642                         pthread_create(&th, 0, start_routine, 0);
15643                         pthread_join(th, 0);
15644                         pthread_attr_init(&attr);
15645                         pthread_cleanup_push(routine, 0);
15646                         pthread_cleanup_pop(0) /* ; */
15647   ;
15648   return 0;
15649 }
15650 _ACEOF
15651 if ac_fn_c_try_link "$LINENO"; then :
15652   ax_pthread_ok=yes
15653 fi
15654 rm -f core conftest.err conftest.$ac_objext \
15655     conftest$ac_exeext conftest.$ac_ext
15656
15657         LIBS="$save_LIBS"
15658         CFLAGS="$save_CFLAGS"
15659
15660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15661 $as_echo "$ax_pthread_ok" >&6; }
15662         if test "x$ax_pthread_ok" = xyes; then
15663                 break;
15664         fi
15665
15666         PTHREAD_LIBS=""
15667         PTHREAD_CFLAGS=""
15668 done
15669 fi
15670
15671 # Various other checks:
15672 if test "x$ax_pthread_ok" = xyes; then
15673         save_LIBS="$LIBS"
15674         LIBS="$PTHREAD_LIBS $LIBS"
15675         save_CFLAGS="$CFLAGS"
15676         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15677
15678         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15680 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15681         attr_name=unknown
15682         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15683             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684 /* end confdefs.h.  */
15685 #include <pthread.h>
15686 int
15687 main ()
15688 {
15689 int attr = $attr; return attr /* ; */
15690   ;
15691   return 0;
15692 }
15693 _ACEOF
15694 if ac_fn_c_try_link "$LINENO"; then :
15695   attr_name=$attr; break
15696 fi
15697 rm -f core conftest.err conftest.$ac_objext \
15698     conftest$ac_exeext conftest.$ac_ext
15699         done
15700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15701 $as_echo "$attr_name" >&6; }
15702         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15703
15704 cat >>confdefs.h <<_ACEOF
15705 #define PTHREAD_CREATE_JOINABLE $attr_name
15706 _ACEOF
15707
15708         fi
15709
15710         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15711 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15712         flag=no
15713         case ${host_os} in
15714             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
15715             osf* | hpux*) flag="-D_REENTRANT";;
15716             solaris*)
15717             if test "$GCC" = "yes"; then
15718                 flag="-D_REENTRANT"
15719             else
15720                 # TODO: What about Clang on Solaris?
15721                 flag="-mt -D_REENTRANT"
15722             fi
15723             ;;
15724         esac
15725         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
15726 $as_echo "$flag" >&6; }
15727         if test "x$flag" != xno; then
15728             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15729         fi
15730
15731         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15732 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15733 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15734   $as_echo_n "(cached) " >&6
15735 else
15736
15737                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15738 /* end confdefs.h.  */
15739 #include <pthread.h>
15740 int
15741 main ()
15742 {
15743 int i = PTHREAD_PRIO_INHERIT;
15744   ;
15745   return 0;
15746 }
15747 _ACEOF
15748 if ac_fn_c_try_link "$LINENO"; then :
15749   ax_cv_PTHREAD_PRIO_INHERIT=yes
15750 else
15751   ax_cv_PTHREAD_PRIO_INHERIT=no
15752 fi
15753 rm -f core conftest.err conftest.$ac_objext \
15754     conftest$ac_exeext conftest.$ac_ext
15755
15756 fi
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15758 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15759         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
15760
15761 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15762
15763 fi
15764
15765         LIBS="$save_LIBS"
15766         CFLAGS="$save_CFLAGS"
15767
15768         # More AIX lossage: compile with *_r variant
15769         if test "x$GCC" != xyes; then
15770             case $host_os in
15771                 aix*)
15772                 case "x/$CC" in #(
15773   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15774     #handle absolute path differently from PATH based program lookup
15775                    case "x$CC" in #(
15776   x/*) :
15777     if as_fn_executable_p ${CC}_r; then :
15778   PTHREAD_CC="${CC}_r"
15779 fi ;; #(
15780   *) :
15781     for ac_prog in ${CC}_r
15782 do
15783   # Extract the first word of "$ac_prog", so it can be a program name with args.
15784 set dummy $ac_prog; ac_word=$2
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15786 $as_echo_n "checking for $ac_word... " >&6; }
15787 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15788   $as_echo_n "(cached) " >&6
15789 else
15790   if test -n "$PTHREAD_CC"; then
15791   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15792 else
15793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15794 for as_dir in $PATH
15795 do
15796   IFS=$as_save_IFS
15797   test -z "$as_dir" && as_dir=.
15798     for ac_exec_ext in '' $ac_executable_extensions; do
15799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15800     ac_cv_prog_PTHREAD_CC="$ac_prog"
15801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15802     break 2
15803   fi
15804 done
15805   done
15806 IFS=$as_save_IFS
15807
15808 fi
15809 fi
15810 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15811 if test -n "$PTHREAD_CC"; then
15812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15813 $as_echo "$PTHREAD_CC" >&6; }
15814 else
15815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816 $as_echo "no" >&6; }
15817 fi
15818
15819
15820   test -n "$PTHREAD_CC" && break
15821 done
15822 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15823  ;;
15824 esac ;; #(
15825   *) :
15826      ;;
15827 esac
15828                 ;;
15829             esac
15830         fi
15831 fi
15832
15833 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15834
15835
15836
15837
15838
15839 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15840 if test x"$ax_pthread_ok" = xyes; then
15841         have_pthread=true
15842         :
15843 else
15844         ax_pthread_ok=no
15845
15846 fi
15847 ac_ext=c
15848 ac_cpp='$CPP $CPPFLAGS'
15849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15852
15853
15854 fi
15855 if $have_pthread; then
15856         LIBS="$PTHREAD_LIBS $LIBS"
15857         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15858         CC="$PTHREAD_CC"
15859
15860 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15861
15862 fi
15863  if $have_pthread; then
15864   HAVE_PTHREAD_TRUE=
15865   HAVE_PTHREAD_FALSE='#'
15866 else
15867   HAVE_PTHREAD_TRUE='#'
15868   HAVE_PTHREAD_FALSE=
15869 fi
15870
15871
15872
15873
15874 #
15875 # Let people not build/install docs if they don't have docbook
15876 #
15877
15878 # Extract the first word of "docbook2html", so it can be a program name with args.
15879 set dummy docbook2html; ac_word=$2
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15881 $as_echo_n "checking for $ac_word... " >&6; }
15882 if ${ac_cv_prog_HASDOCBOOK+:} false; then :
15883   $as_echo_n "(cached) " >&6
15884 else
15885   if test -n "$HASDOCBOOK"; then
15886   ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
15887 else
15888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15889 for as_dir in $PATH
15890 do
15891   IFS=$as_save_IFS
15892   test -z "$as_dir" && as_dir=.
15893     for ac_exec_ext in '' $ac_executable_extensions; do
15894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15895     ac_cv_prog_HASDOCBOOK="yes"
15896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15897     break 2
15898   fi
15899 done
15900   done
15901 IFS=$as_save_IFS
15902
15903   test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
15904 fi
15905 fi
15906 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
15907 if test -n "$HASDOCBOOK"; then
15908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
15909 $as_echo "$HASDOCBOOK" >&6; }
15910 else
15911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15912 $as_echo "no" >&6; }
15913 fi
15914
15915
15916
15917  if test "x$HASDOCBOOK" = xyes; then
15918   USEDOCBOOK_TRUE=
15919   USEDOCBOOK_FALSE='#'
15920 else
15921   USEDOCBOOK_TRUE='#'
15922   USEDOCBOOK_FALSE=
15923 fi
15924
15925
15926 default_docs="yes"
15927 #
15928 # Check if docs exist or can be created
15929 #
15930 if test x$HASDOCBOOK = xno; then
15931         if test -f $srcdir/doc/fonts-conf.5; then
15932                 :
15933         else
15934                 default_docs="no"
15935         fi
15936 fi
15937
15938 # Check whether --enable-docs was given.
15939 if test "${enable_docs+set}" = set; then :
15940   enableval=$enable_docs;
15941 else
15942   enable_docs=$default_docs
15943 fi
15944
15945
15946  if test "x$enable_docs" = xyes; then
15947   ENABLE_DOCS_TRUE=
15948   ENABLE_DOCS_FALSE='#'
15949 else
15950   ENABLE_DOCS_TRUE='#'
15951   ENABLE_DOCS_FALSE=
15952 fi
15953
15954
15955 if test "x$enable_docs" = xyes; then
15956         tmp=funcs.$$
15957         cat $srcdir/doc/*.fncs | awk '
15958         /^@TITLE@/      { if (!done) { printf ("%s\n", $2); done = 1; } }
15959         /^@FUNC@/       { if (!done) { printf ("%s\n", $2); done = 1; } }
15960         /^@@/           { done = 0; }' > $tmp
15961         DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
15962         echo DOCMAN3 $DOCMAN3
15963         rm -f $tmp
15964 else
15965         DOCMAN3=""
15966 fi
15967
15968
15969
15970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15971 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15972 if ${ac_cv_c_bigendian+:} false; then :
15973   $as_echo_n "(cached) " >&6
15974 else
15975   ac_cv_c_bigendian=unknown
15976     # See if we're dealing with a universal compiler.
15977     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h.  */
15979 #ifndef __APPLE_CC__
15980                not a universal capable compiler
15981              #endif
15982              typedef int dummy;
15983
15984 _ACEOF
15985 if ac_fn_c_try_compile "$LINENO"; then :
15986
15987         # Check for potential -arch flags.  It is not universal unless
15988         # there are at least two -arch flags with different values.
15989         ac_arch=
15990         ac_prev=
15991         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15992          if test -n "$ac_prev"; then
15993            case $ac_word in
15994              i?86 | x86_64 | ppc | ppc64)
15995                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15996                  ac_arch=$ac_word
15997                else
15998                  ac_cv_c_bigendian=universal
15999                  break
16000                fi
16001                ;;
16002            esac
16003            ac_prev=
16004          elif test "x$ac_word" = "x-arch"; then
16005            ac_prev=arch
16006          fi
16007        done
16008 fi
16009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16010     if test $ac_cv_c_bigendian = unknown; then
16011       # See if sys/param.h defines the BYTE_ORDER macro.
16012       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h.  */
16014 #include <sys/types.h>
16015              #include <sys/param.h>
16016
16017 int
16018 main ()
16019 {
16020 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16021                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16022                      && LITTLE_ENDIAN)
16023               bogus endian macros
16024              #endif
16025
16026   ;
16027   return 0;
16028 }
16029 _ACEOF
16030 if ac_fn_c_try_compile "$LINENO"; then :
16031   # It does; now see whether it defined to BIG_ENDIAN or not.
16032          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16033 /* end confdefs.h.  */
16034 #include <sys/types.h>
16035                 #include <sys/param.h>
16036
16037 int
16038 main ()
16039 {
16040 #if BYTE_ORDER != BIG_ENDIAN
16041                  not big endian
16042                 #endif
16043
16044   ;
16045   return 0;
16046 }
16047 _ACEOF
16048 if ac_fn_c_try_compile "$LINENO"; then :
16049   ac_cv_c_bigendian=yes
16050 else
16051   ac_cv_c_bigendian=no
16052 fi
16053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054 fi
16055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16056     fi
16057     if test $ac_cv_c_bigendian = unknown; then
16058       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16059       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060 /* end confdefs.h.  */
16061 #include <limits.h>
16062
16063 int
16064 main ()
16065 {
16066 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16067               bogus endian macros
16068              #endif
16069
16070   ;
16071   return 0;
16072 }
16073 _ACEOF
16074 if ac_fn_c_try_compile "$LINENO"; then :
16075   # It does; now see whether it defined to _BIG_ENDIAN or not.
16076          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077 /* end confdefs.h.  */
16078 #include <limits.h>
16079
16080 int
16081 main ()
16082 {
16083 #ifndef _BIG_ENDIAN
16084                  not big endian
16085                 #endif
16086
16087   ;
16088   return 0;
16089 }
16090 _ACEOF
16091 if ac_fn_c_try_compile "$LINENO"; then :
16092   ac_cv_c_bigendian=yes
16093 else
16094   ac_cv_c_bigendian=no
16095 fi
16096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16097 fi
16098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16099     fi
16100     if test $ac_cv_c_bigendian = unknown; then
16101       # Compile a test program.
16102       if test "$cross_compiling" = yes; then :
16103   # Try to guess by grepping values from an object file.
16104          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16105 /* end confdefs.h.  */
16106 short int ascii_mm[] =
16107                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16108                 short int ascii_ii[] =
16109                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16110                 int use_ascii (int i) {
16111                   return ascii_mm[i] + ascii_ii[i];
16112                 }
16113                 short int ebcdic_ii[] =
16114                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16115                 short int ebcdic_mm[] =
16116                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16117                 int use_ebcdic (int i) {
16118                   return ebcdic_mm[i] + ebcdic_ii[i];
16119                 }
16120                 extern int foo;
16121
16122 int
16123 main ()
16124 {
16125 return use_ascii (foo) == use_ebcdic (foo);
16126   ;
16127   return 0;
16128 }
16129 _ACEOF
16130 if ac_fn_c_try_compile "$LINENO"; then :
16131   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16132               ac_cv_c_bigendian=yes
16133             fi
16134             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16135               if test "$ac_cv_c_bigendian" = unknown; then
16136                 ac_cv_c_bigendian=no
16137               else
16138                 # finding both strings is unlikely to happen, but who knows?
16139                 ac_cv_c_bigendian=unknown
16140               fi
16141             fi
16142 fi
16143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144 else
16145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146 /* end confdefs.h.  */
16147 $ac_includes_default
16148 int
16149 main ()
16150 {
16151
16152              /* Are we little or big endian?  From Harbison&Steele.  */
16153              union
16154              {
16155                long int l;
16156                char c[sizeof (long int)];
16157              } u;
16158              u.l = 1;
16159              return u.c[sizeof (long int) - 1] == 1;
16160
16161   ;
16162   return 0;
16163 }
16164 _ACEOF
16165 if ac_fn_c_try_run "$LINENO"; then :
16166   ac_cv_c_bigendian=no
16167 else
16168   ac_cv_c_bigendian=yes
16169 fi
16170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16171   conftest.$ac_objext conftest.beam conftest.$ac_ext
16172 fi
16173
16174     fi
16175 fi
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16177 $as_echo "$ac_cv_c_bigendian" >&6; }
16178  case $ac_cv_c_bigendian in #(
16179    yes)
16180      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16181 ;; #(
16182    no)
16183       ;; #(
16184    universal)
16185
16186 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16187
16188      ;; #(
16189    *)
16190      as_fn_error $? "unknown endianness
16191  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16192  esac
16193
16194 # The cast to long int works around a bug in the HP C Compiler
16195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16197 # This bug is HP SR number 8606223364.
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16199 $as_echo_n "checking size of void *... " >&6; }
16200 if ${ac_cv_sizeof_void_p+:} false; then :
16201   $as_echo_n "(cached) " >&6
16202 else
16203   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
16204
16205 else
16206   if test "$ac_cv_type_void_p" = yes; then
16207      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16209 as_fn_error 77 "cannot compute sizeof (void *)
16210 See \`config.log' for more details" "$LINENO" 5; }
16211    else
16212      ac_cv_sizeof_void_p=0
16213    fi
16214 fi
16215
16216 fi
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16218 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16219
16220
16221
16222 cat >>confdefs.h <<_ACEOF
16223 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16224 _ACEOF
16225
16226
16227 # The cast to long int works around a bug in the HP C Compiler,
16228 # see AC_CHECK_SIZEOF for more information.
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
16230 $as_echo_n "checking alignment of double... " >&6; }
16231 if ${ac_cv_alignof_double+:} false; then :
16232   $as_echo_n "(cached) " >&6
16233 else
16234   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double"        "$ac_includes_default
16235 #ifndef offsetof
16236 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16237 #endif
16238 typedef struct { char x; double y; } ac__type_alignof_;"; then :
16239
16240 else
16241   if test "$ac_cv_type_double" = yes; then
16242      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16244 as_fn_error 77 "cannot compute alignment of double
16245 See \`config.log' for more details" "$LINENO" 5; }
16246    else
16247      ac_cv_alignof_double=0
16248    fi
16249 fi
16250
16251 fi
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
16253 $as_echo "$ac_cv_alignof_double" >&6; }
16254
16255
16256
16257 cat >>confdefs.h <<_ACEOF
16258 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
16259 _ACEOF
16260
16261
16262 # The cast to long int works around a bug in the HP C Compiler,
16263 # see AC_CHECK_SIZEOF for more information.
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
16265 $as_echo_n "checking alignment of void *... " >&6; }
16266 if ${ac_cv_alignof_void_p+:} false; then :
16267   $as_echo_n "(cached) " >&6
16268 else
16269   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p"        "$ac_includes_default
16270 #ifndef offsetof
16271 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16272 #endif
16273 typedef struct { char x; void * y; } ac__type_alignof_;"; then :
16274
16275 else
16276   if test "$ac_cv_type_void_p" = yes; then
16277      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16279 as_fn_error 77 "cannot compute alignment of void *
16280 See \`config.log' for more details" "$LINENO" 5; }
16281    else
16282      ac_cv_alignof_void_p=0
16283    fi
16284 fi
16285
16286 fi
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5
16288 $as_echo "$ac_cv_alignof_void_p" >&6; }
16289
16290
16291
16292 cat >>confdefs.h <<_ACEOF
16293 #define ALIGNOF_VOID_P $ac_cv_alignof_void_p
16294 _ACEOF
16295
16296
16297
16298
16299
16300
16301
16302
16303 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-glyphname/Makefile fc-blanks/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml test/Makefile fontconfig.spec fontconfig.pc fontconfig-zip"
16304
16305 cat >confcache <<\_ACEOF
16306 # This file is a shell script that caches the results of configure
16307 # tests run on this system so they can be shared between configure
16308 # scripts and configure runs, see configure's option --config-cache.
16309 # It is not useful on other systems.  If it contains results you don't
16310 # want to keep, you may remove or edit it.
16311 #
16312 # config.status only pays attention to the cache file if you give it
16313 # the --recheck option to rerun configure.
16314 #
16315 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16316 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16317 # following values.
16318
16319 _ACEOF
16320
16321 # The following way of writing the cache mishandles newlines in values,
16322 # but we know of no workaround that is simple, portable, and efficient.
16323 # So, we kill variables containing newlines.
16324 # Ultrix sh set writes to stderr and can't be redirected directly,
16325 # and sets the high bit in the cache file unless we assign to the vars.
16326 (
16327   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16328     eval ac_val=\$$ac_var
16329     case $ac_val in #(
16330     *${as_nl}*)
16331       case $ac_var in #(
16332       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16333 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16334       esac
16335       case $ac_var in #(
16336       _ | IFS | as_nl) ;; #(
16337       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16338       *) { eval $ac_var=; unset $ac_var;} ;;
16339       esac ;;
16340     esac
16341   done
16342
16343   (set) 2>&1 |
16344     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16345     *${as_nl}ac_space=\ *)
16346       # `set' does not quote correctly, so add quotes: double-quote
16347       # substitution turns \\\\ into \\, and sed turns \\ into \.
16348       sed -n \
16349         "s/'/'\\\\''/g;
16350           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16351       ;; #(
16352     *)
16353       # `set' quotes correctly as required by POSIX, so do not add quotes.
16354       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16355       ;;
16356     esac |
16357     sort
16358 ) |
16359   sed '
16360      /^ac_cv_env_/b end
16361      t clear
16362      :clear
16363      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16364      t end
16365      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16366      :end' >>confcache
16367 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16368   if test -w "$cache_file"; then
16369     if test "x$cache_file" != "x/dev/null"; then
16370       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16371 $as_echo "$as_me: updating cache $cache_file" >&6;}
16372       if test ! -f "$cache_file" || test -h "$cache_file"; then
16373         cat confcache >"$cache_file"
16374       else
16375         case $cache_file in #(
16376         */* | ?:*)
16377           mv -f confcache "$cache_file"$$ &&
16378           mv -f "$cache_file"$$ "$cache_file" ;; #(
16379         *)
16380           mv -f confcache "$cache_file" ;;
16381         esac
16382       fi
16383     fi
16384   else
16385     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16386 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16387   fi
16388 fi
16389 rm -f confcache
16390
16391 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16392 # Let make expand exec_prefix.
16393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16394
16395 DEFS=-DHAVE_CONFIG_H
16396
16397 ac_libobjs=
16398 ac_ltlibobjs=
16399 U=
16400 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16401   # 1. Remove the extension, and $U if already installed.
16402   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16403   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16404   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16405   #    will be set to the directory where LIBOBJS objects are built.
16406   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16407   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16408 done
16409 LIBOBJS=$ac_libobjs
16410
16411 LTLIBOBJS=$ac_ltlibobjs
16412
16413
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16415 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16416    if test -n "$am_sleep_pid"; then
16417      # Hide warnings about reused PIDs.
16418      wait $am_sleep_pid 2>/dev/null
16419    fi
16420    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16421 $as_echo "done" >&6; }
16422  if test -n "$EXEEXT"; then
16423   am__EXEEXT_TRUE=
16424   am__EXEEXT_FALSE='#'
16425 else
16426   am__EXEEXT_TRUE='#'
16427   am__EXEEXT_FALSE=
16428 fi
16429
16430 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16431   as_fn_error $? "conditional \"AMDEP\" was never defined.
16432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16433 fi
16434 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16435   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16437 fi
16438 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16439   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16441 fi
16442 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
16443   as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
16444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16445 fi
16446 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16447   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16449 fi
16450 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
16451   as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
16452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16453 fi
16454 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
16455   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
16456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16457 fi
16458 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
16459   as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
16460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16461 fi
16462 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
16463   as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
16464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16465 fi
16466
16467
16468 : "${CONFIG_STATUS=./config.status}"
16469 ac_write_fail=0
16470 ac_clean_files_save=$ac_clean_files
16471 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16473 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16474 as_write_fail=0
16475 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16476 #! $SHELL
16477 # Generated by $as_me.
16478 # Run this file to recreate the current configuration.
16479 # Compiler output produced by configure, useful for debugging
16480 # configure, is in config.log if it exists.
16481
16482 debug=false
16483 ac_cs_recheck=false
16484 ac_cs_silent=false
16485
16486 SHELL=\${CONFIG_SHELL-$SHELL}
16487 export SHELL
16488 _ASEOF
16489 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16490 ## -------------------- ##
16491 ## M4sh Initialization. ##
16492 ## -------------------- ##
16493
16494 # Be more Bourne compatible
16495 DUALCASE=1; export DUALCASE # for MKS sh
16496 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16497   emulate sh
16498   NULLCMD=:
16499   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16500   # is contrary to our usage.  Disable this feature.
16501   alias -g '${1+"$@"}'='"$@"'
16502   setopt NO_GLOB_SUBST
16503 else
16504   case `(set -o) 2>/dev/null` in #(
16505   *posix*) :
16506     set -o posix ;; #(
16507   *) :
16508      ;;
16509 esac
16510 fi
16511
16512
16513 as_nl='
16514 '
16515 export as_nl
16516 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16517 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16518 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16519 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16520 # Prefer a ksh shell builtin over an external printf program on Solaris,
16521 # but without wasting forks for bash or zsh.
16522 if test -z "$BASH_VERSION$ZSH_VERSION" \
16523     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16524   as_echo='print -r --'
16525   as_echo_n='print -rn --'
16526 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16527   as_echo='printf %s\n'
16528   as_echo_n='printf %s'
16529 else
16530   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16531     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16532     as_echo_n='/usr/ucb/echo -n'
16533   else
16534     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16535     as_echo_n_body='eval
16536       arg=$1;
16537       case $arg in #(
16538       *"$as_nl"*)
16539         expr "X$arg" : "X\\(.*\\)$as_nl";
16540         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16541       esac;
16542       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16543     '
16544     export as_echo_n_body
16545     as_echo_n='sh -c $as_echo_n_body as_echo'
16546   fi
16547   export as_echo_body
16548   as_echo='sh -c $as_echo_body as_echo'
16549 fi
16550
16551 # The user is always right.
16552 if test "${PATH_SEPARATOR+set}" != set; then
16553   PATH_SEPARATOR=:
16554   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16555     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16556       PATH_SEPARATOR=';'
16557   }
16558 fi
16559
16560
16561 # IFS
16562 # We need space, tab and new line, in precisely that order.  Quoting is
16563 # there to prevent editors from complaining about space-tab.
16564 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16565 # splitting by setting IFS to empty value.)
16566 IFS=" ""        $as_nl"
16567
16568 # Find who we are.  Look in the path if we contain no directory separator.
16569 as_myself=
16570 case $0 in #((
16571   *[\\/]* ) as_myself=$0 ;;
16572   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16573 for as_dir in $PATH
16574 do
16575   IFS=$as_save_IFS
16576   test -z "$as_dir" && as_dir=.
16577     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16578   done
16579 IFS=$as_save_IFS
16580
16581      ;;
16582 esac
16583 # We did not find ourselves, most probably we were run as `sh COMMAND'
16584 # in which case we are not to be found in the path.
16585 if test "x$as_myself" = x; then
16586   as_myself=$0
16587 fi
16588 if test ! -f "$as_myself"; then
16589   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16590   exit 1
16591 fi
16592
16593 # Unset variables that we do not need and which cause bugs (e.g. in
16594 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16595 # suppresses any "Segmentation fault" message there.  '((' could
16596 # trigger a bug in pdksh 5.2.14.
16597 for as_var in BASH_ENV ENV MAIL MAILPATH
16598 do eval test x\${$as_var+set} = xset \
16599   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16600 done
16601 PS1='$ '
16602 PS2='> '
16603 PS4='+ '
16604
16605 # NLS nuisances.
16606 LC_ALL=C
16607 export LC_ALL
16608 LANGUAGE=C
16609 export LANGUAGE
16610
16611 # CDPATH.
16612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16613
16614
16615 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16616 # ----------------------------------------
16617 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16618 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16619 # script with STATUS, using 1 if that was 0.
16620 as_fn_error ()
16621 {
16622   as_status=$1; test $as_status -eq 0 && as_status=1
16623   if test "$4"; then
16624     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16625     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16626   fi
16627   $as_echo "$as_me: error: $2" >&2
16628   as_fn_exit $as_status
16629 } # as_fn_error
16630
16631
16632 # as_fn_set_status STATUS
16633 # -----------------------
16634 # Set $? to STATUS, without forking.
16635 as_fn_set_status ()
16636 {
16637   return $1
16638 } # as_fn_set_status
16639
16640 # as_fn_exit STATUS
16641 # -----------------
16642 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16643 as_fn_exit ()
16644 {
16645   set +e
16646   as_fn_set_status $1
16647   exit $1
16648 } # as_fn_exit
16649
16650 # as_fn_unset VAR
16651 # ---------------
16652 # Portably unset VAR.
16653 as_fn_unset ()
16654 {
16655   { eval $1=; unset $1;}
16656 }
16657 as_unset=as_fn_unset
16658 # as_fn_append VAR VALUE
16659 # ----------------------
16660 # Append the text in VALUE to the end of the definition contained in VAR. Take
16661 # advantage of any shell optimizations that allow amortized linear growth over
16662 # repeated appends, instead of the typical quadratic growth present in naive
16663 # implementations.
16664 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16665   eval 'as_fn_append ()
16666   {
16667     eval $1+=\$2
16668   }'
16669 else
16670   as_fn_append ()
16671   {
16672     eval $1=\$$1\$2
16673   }
16674 fi # as_fn_append
16675
16676 # as_fn_arith ARG...
16677 # ------------------
16678 # Perform arithmetic evaluation on the ARGs, and store the result in the
16679 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16680 # must be portable across $(()) and expr.
16681 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16682   eval 'as_fn_arith ()
16683   {
16684     as_val=$(( $* ))
16685   }'
16686 else
16687   as_fn_arith ()
16688   {
16689     as_val=`expr "$@" || test $? -eq 1`
16690   }
16691 fi # as_fn_arith
16692
16693
16694 if expr a : '\(a\)' >/dev/null 2>&1 &&
16695    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16696   as_expr=expr
16697 else
16698   as_expr=false
16699 fi
16700
16701 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16702   as_basename=basename
16703 else
16704   as_basename=false
16705 fi
16706
16707 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16708   as_dirname=dirname
16709 else
16710   as_dirname=false
16711 fi
16712
16713 as_me=`$as_basename -- "$0" ||
16714 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16715          X"$0" : 'X\(//\)$' \| \
16716          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16717 $as_echo X/"$0" |
16718     sed '/^.*\/\([^/][^/]*\)\/*$/{
16719             s//\1/
16720             q
16721           }
16722           /^X\/\(\/\/\)$/{
16723             s//\1/
16724             q
16725           }
16726           /^X\/\(\/\).*/{
16727             s//\1/
16728             q
16729           }
16730           s/.*/./; q'`
16731
16732 # Avoid depending upon Character Ranges.
16733 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16734 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16735 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16736 as_cr_digits='0123456789'
16737 as_cr_alnum=$as_cr_Letters$as_cr_digits
16738
16739 ECHO_C= ECHO_N= ECHO_T=
16740 case `echo -n x` in #(((((
16741 -n*)
16742   case `echo 'xy\c'` in
16743   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16744   xy)  ECHO_C='\c';;
16745   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16746        ECHO_T=' ';;
16747   esac;;
16748 *)
16749   ECHO_N='-n';;
16750 esac
16751
16752 rm -f conf$$ conf$$.exe conf$$.file
16753 if test -d conf$$.dir; then
16754   rm -f conf$$.dir/conf$$.file
16755 else
16756   rm -f conf$$.dir
16757   mkdir conf$$.dir 2>/dev/null
16758 fi
16759 if (echo >conf$$.file) 2>/dev/null; then
16760   if ln -s conf$$.file conf$$ 2>/dev/null; then
16761     as_ln_s='ln -s'
16762     # ... but there are two gotchas:
16763     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16764     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16765     # In both cases, we have to default to `cp -pR'.
16766     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16767       as_ln_s='cp -pR'
16768   elif ln conf$$.file conf$$ 2>/dev/null; then
16769     as_ln_s=ln
16770   else
16771     as_ln_s='cp -pR'
16772   fi
16773 else
16774   as_ln_s='cp -pR'
16775 fi
16776 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16777 rmdir conf$$.dir 2>/dev/null
16778
16779
16780 # as_fn_mkdir_p
16781 # -------------
16782 # Create "$as_dir" as a directory, including parents if necessary.
16783 as_fn_mkdir_p ()
16784 {
16785
16786   case $as_dir in #(
16787   -*) as_dir=./$as_dir;;
16788   esac
16789   test -d "$as_dir" || eval $as_mkdir_p || {
16790     as_dirs=
16791     while :; do
16792       case $as_dir in #(
16793       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16794       *) as_qdir=$as_dir;;
16795       esac
16796       as_dirs="'$as_qdir' $as_dirs"
16797       as_dir=`$as_dirname -- "$as_dir" ||
16798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16799          X"$as_dir" : 'X\(//\)[^/]' \| \
16800          X"$as_dir" : 'X\(//\)$' \| \
16801          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16802 $as_echo X"$as_dir" |
16803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16804             s//\1/
16805             q
16806           }
16807           /^X\(\/\/\)[^/].*/{
16808             s//\1/
16809             q
16810           }
16811           /^X\(\/\/\)$/{
16812             s//\1/
16813             q
16814           }
16815           /^X\(\/\).*/{
16816             s//\1/
16817             q
16818           }
16819           s/.*/./; q'`
16820       test -d "$as_dir" && break
16821     done
16822     test -z "$as_dirs" || eval "mkdir $as_dirs"
16823   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16824
16825
16826 } # as_fn_mkdir_p
16827 if mkdir -p . 2>/dev/null; then
16828   as_mkdir_p='mkdir -p "$as_dir"'
16829 else
16830   test -d ./-p && rmdir ./-p
16831   as_mkdir_p=false
16832 fi
16833
16834
16835 # as_fn_executable_p FILE
16836 # -----------------------
16837 # Test if FILE is an executable regular file.
16838 as_fn_executable_p ()
16839 {
16840   test -f "$1" && test -x "$1"
16841 } # as_fn_executable_p
16842 as_test_x='test -x'
16843 as_executable_p=as_fn_executable_p
16844
16845 # Sed expression to map a string onto a valid CPP name.
16846 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16847
16848 # Sed expression to map a string onto a valid variable name.
16849 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16850
16851
16852 exec 6>&1
16853 ## ----------------------------------- ##
16854 ## Main body of $CONFIG_STATUS script. ##
16855 ## ----------------------------------- ##
16856 _ASEOF
16857 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16858
16859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16860 # Save the log message, to keep $0 and so on meaningful, and to
16861 # report actual input values of CONFIG_FILES etc. instead of their
16862 # values after options handling.
16863 ac_log="
16864 This file was extended by fontconfig $as_me 2.11.93, which was
16865 generated by GNU Autoconf 2.69.  Invocation command line was
16866
16867   CONFIG_FILES    = $CONFIG_FILES
16868   CONFIG_HEADERS  = $CONFIG_HEADERS
16869   CONFIG_LINKS    = $CONFIG_LINKS
16870   CONFIG_COMMANDS = $CONFIG_COMMANDS
16871   $ $0 $@
16872
16873 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16874 "
16875
16876 _ACEOF
16877
16878 case $ac_config_files in *"
16879 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16880 esac
16881
16882 case $ac_config_headers in *"
16883 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16884 esac
16885
16886
16887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16888 # Files that config.status was made for.
16889 config_files="$ac_config_files"
16890 config_headers="$ac_config_headers"
16891 config_commands="$ac_config_commands"
16892
16893 _ACEOF
16894
16895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16896 ac_cs_usage="\
16897 \`$as_me' instantiates files and other configuration actions
16898 from templates according to the current configuration.  Unless the files
16899 and actions are specified as TAGs, all are instantiated by default.
16900
16901 Usage: $0 [OPTION]... [TAG]...
16902
16903   -h, --help       print this help, then exit
16904   -V, --version    print version number and configuration settings, then exit
16905       --config     print configuration, then exit
16906   -q, --quiet, --silent
16907                    do not print progress messages
16908   -d, --debug      don't remove temporary files
16909       --recheck    update $as_me by reconfiguring in the same conditions
16910       --file=FILE[:TEMPLATE]
16911                    instantiate the configuration file FILE
16912       --header=FILE[:TEMPLATE]
16913                    instantiate the configuration header FILE
16914
16915 Configuration files:
16916 $config_files
16917
16918 Configuration headers:
16919 $config_headers
16920
16921 Configuration commands:
16922 $config_commands
16923
16924 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>."
16925
16926 _ACEOF
16927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16928 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16929 ac_cs_version="\\
16930 fontconfig config.status 2.11.93
16931 configured by $0, generated by GNU Autoconf 2.69,
16932   with options \\"\$ac_cs_config\\"
16933
16934 Copyright (C) 2012 Free Software Foundation, Inc.
16935 This config.status script is free software; the Free Software Foundation
16936 gives unlimited permission to copy, distribute and modify it."
16937
16938 ac_pwd='$ac_pwd'
16939 srcdir='$srcdir'
16940 INSTALL='$INSTALL'
16941 MKDIR_P='$MKDIR_P'
16942 AWK='$AWK'
16943 test -n "\$AWK" || AWK=awk
16944 _ACEOF
16945
16946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16947 # The default lists apply if the user does not specify any file.
16948 ac_need_defaults=:
16949 while test $# != 0
16950 do
16951   case $1 in
16952   --*=?*)
16953     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16954     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16955     ac_shift=:
16956     ;;
16957   --*=)
16958     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16959     ac_optarg=
16960     ac_shift=:
16961     ;;
16962   *)
16963     ac_option=$1
16964     ac_optarg=$2
16965     ac_shift=shift
16966     ;;
16967   esac
16968
16969   case $ac_option in
16970   # Handling of the options.
16971   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16972     ac_cs_recheck=: ;;
16973   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16974     $as_echo "$ac_cs_version"; exit ;;
16975   --config | --confi | --conf | --con | --co | --c )
16976     $as_echo "$ac_cs_config"; exit ;;
16977   --debug | --debu | --deb | --de | --d | -d )
16978     debug=: ;;
16979   --file | --fil | --fi | --f )
16980     $ac_shift
16981     case $ac_optarg in
16982     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16983     '') as_fn_error $? "missing file argument" ;;
16984     esac
16985     as_fn_append CONFIG_FILES " '$ac_optarg'"
16986     ac_need_defaults=false;;
16987   --header | --heade | --head | --hea )
16988     $ac_shift
16989     case $ac_optarg in
16990     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16991     esac
16992     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16993     ac_need_defaults=false;;
16994   --he | --h)
16995     # Conflict between --help and --header
16996     as_fn_error $? "ambiguous option: \`$1'
16997 Try \`$0 --help' for more information.";;
16998   --help | --hel | -h )
16999     $as_echo "$ac_cs_usage"; exit ;;
17000   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17001   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17002     ac_cs_silent=: ;;
17003
17004   # This is an error.
17005   -*) as_fn_error $? "unrecognized option: \`$1'
17006 Try \`$0 --help' for more information." ;;
17007
17008   *) as_fn_append ac_config_targets " $1"
17009      ac_need_defaults=false ;;
17010
17011   esac
17012   shift
17013 done
17014
17015 ac_configure_extra_args=
17016
17017 if $ac_cs_silent; then
17018   exec 6>/dev/null
17019   ac_configure_extra_args="$ac_configure_extra_args --silent"
17020 fi
17021
17022 _ACEOF
17023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17024 if \$ac_cs_recheck; then
17025   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17026   shift
17027   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17028   CONFIG_SHELL='$SHELL'
17029   export CONFIG_SHELL
17030   exec "\$@"
17031 fi
17032
17033 _ACEOF
17034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17035 exec 5>>config.log
17036 {
17037   echo
17038   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17039 ## Running $as_me. ##
17040 _ASBOX
17041   $as_echo "$ac_log"
17042 } >&5
17043
17044 _ACEOF
17045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17046 #
17047 # INIT-COMMANDS
17048 #
17049 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17050
17051
17052 # The HP-UX ksh and POSIX shell print the target directory to stdout
17053 # if CDPATH is set.
17054 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17055
17056 sed_quote_subst='$sed_quote_subst'
17057 double_quote_subst='$double_quote_subst'
17058 delay_variable_subst='$delay_variable_subst'
17059 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17060 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17061 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17062 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17063 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17064 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17065 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17066 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17067 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17068 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17069 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17070 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17071 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17072 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17073 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17074 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17075 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17076 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17077 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17078 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17079 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17080 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17081 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17082 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17083 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17084 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17085 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17086 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17087 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17088 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17089 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17090 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17091 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17092 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17093 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17094 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17095 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17096 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17097 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17098 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17099 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17100 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17101 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17102 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17103 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17104 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17105 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17106 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17107 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17108 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17109 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17110 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17111 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17112 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17113 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17114 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17115 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17116 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"`'
17117 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17118 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17119 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17120 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17121 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17122 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17123 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17124 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17125 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17126 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17127 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17128 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17129 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17130 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17131 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17132 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17133 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17134 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17135 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17136 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17137 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17138 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17139 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17140 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17141 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17142 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17143 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17144 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17145 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17146 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17147 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17148 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17149 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17150 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17151 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17152 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17153 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17154 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17155 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17156 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17157 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17158 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17159 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17160 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17161 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17162 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17163 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17164 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17165 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17166 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17167 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17168 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17169 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17170 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17171 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17172 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17173 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17174 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17175 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17176 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17177 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17178 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17179 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17180 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17181 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17182 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17183 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17184 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17185 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17186 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17187 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17188 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17189 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17190
17191 LTCC='$LTCC'
17192 LTCFLAGS='$LTCFLAGS'
17193 compiler='$compiler_DEFAULT'
17194
17195 # A function that is used when there is no print builtin or printf.
17196 func_fallback_echo ()
17197 {
17198   eval 'cat <<_LTECHO_EOF
17199 \$1
17200 _LTECHO_EOF'
17201 }
17202
17203 # Quote evaled strings.
17204 for var in AS \
17205 DLLTOOL \
17206 OBJDUMP \
17207 SHELL \
17208 ECHO \
17209 PATH_SEPARATOR \
17210 SED \
17211 GREP \
17212 EGREP \
17213 FGREP \
17214 LD \
17215 NM \
17216 LN_S \
17217 lt_SP2NL \
17218 lt_NL2SP \
17219 reload_flag \
17220 deplibs_check_method \
17221 file_magic_cmd \
17222 file_magic_glob \
17223 want_nocaseglob \
17224 sharedlib_from_linklib_cmd \
17225 AR \
17226 AR_FLAGS \
17227 archiver_list_spec \
17228 STRIP \
17229 RANLIB \
17230 CC \
17231 CFLAGS \
17232 compiler \
17233 lt_cv_sys_global_symbol_pipe \
17234 lt_cv_sys_global_symbol_to_cdecl \
17235 lt_cv_sys_global_symbol_to_c_name_address \
17236 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17237 nm_file_list_spec \
17238 lt_prog_compiler_no_builtin_flag \
17239 lt_prog_compiler_pic \
17240 lt_prog_compiler_wl \
17241 lt_prog_compiler_static \
17242 lt_cv_prog_compiler_c_o \
17243 need_locks \
17244 MANIFEST_TOOL \
17245 DSYMUTIL \
17246 NMEDIT \
17247 LIPO \
17248 OTOOL \
17249 OTOOL64 \
17250 shrext_cmds \
17251 export_dynamic_flag_spec \
17252 whole_archive_flag_spec \
17253 compiler_needs_object \
17254 with_gnu_ld \
17255 allow_undefined_flag \
17256 no_undefined_flag \
17257 hardcode_libdir_flag_spec \
17258 hardcode_libdir_separator \
17259 exclude_expsyms \
17260 include_expsyms \
17261 file_list_spec \
17262 variables_saved_for_relink \
17263 libname_spec \
17264 library_names_spec \
17265 soname_spec \
17266 install_override_mode \
17267 finish_eval \
17268 old_striplib \
17269 striplib; do
17270     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17271     *[\\\\\\\`\\"\\\$]*)
17272       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17273       ;;
17274     *)
17275       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17276       ;;
17277     esac
17278 done
17279
17280 # Double-quote double-evaled strings.
17281 for var in reload_cmds \
17282 old_postinstall_cmds \
17283 old_postuninstall_cmds \
17284 old_archive_cmds \
17285 extract_expsyms_cmds \
17286 old_archive_from_new_cmds \
17287 old_archive_from_expsyms_cmds \
17288 archive_cmds \
17289 archive_expsym_cmds \
17290 module_cmds \
17291 module_expsym_cmds \
17292 export_symbols_cmds \
17293 prelink_cmds \
17294 postlink_cmds \
17295 postinstall_cmds \
17296 postuninstall_cmds \
17297 finish_cmds \
17298 sys_lib_search_path_spec \
17299 sys_lib_dlsearch_path_spec; do
17300     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17301     *[\\\\\\\`\\"\\\$]*)
17302       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17303       ;;
17304     *)
17305       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17306       ;;
17307     esac
17308 done
17309
17310 ac_aux_dir='$ac_aux_dir'
17311 xsi_shell='$xsi_shell'
17312 lt_shell_append='$lt_shell_append'
17313
17314 # See if we are running on zsh, and set the options which allow our
17315 # commands through without removal of \ escapes INIT.
17316 if test -n "\${ZSH_VERSION+set}" ; then
17317    setopt NO_GLOB_SUBST
17318 fi
17319
17320
17321     PACKAGE='$PACKAGE'
17322     VERSION='$VERSION'
17323     TIMESTAMP='$TIMESTAMP'
17324     RM='$RM'
17325     ofile='$ofile'
17326
17327
17328
17329 # variables for create stdint.h replacement
17330 PACKAGE="$PACKAGE"
17331 VERSION="$VERSION"
17332 ac_stdint_h="$ac_stdint_h"
17333 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
17334 ac_cv_stdint_message="$ac_cv_stdint_message"
17335 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
17336 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
17337 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
17338 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
17339 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17340 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17341 ac_cv_char_data_model="$ac_cv_char_data_model"
17342 ac_cv_long_data_model="$ac_cv_long_data_model"
17343 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17344 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17345 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
17346
17347
17348 _ACEOF
17349
17350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17351
17352 # Handling of arguments.
17353 for ac_config_target in $ac_config_targets
17354 do
17355   case $ac_config_target in
17356     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17357     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17358     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17359     "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
17360     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17361     "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
17362     "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
17363     "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;;
17364     "fc-blanks/Makefile") CONFIG_FILES="$CONFIG_FILES fc-blanks/Makefile" ;;
17365     "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
17366     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17367     "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
17368     "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
17369     "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
17370     "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
17371     "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
17372     "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
17373     "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
17374     "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
17375     "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
17376     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17377     "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
17378     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
17379     "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
17380     "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
17381     "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
17382
17383   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17384   esac
17385 done
17386
17387
17388 # If the user did not use the arguments to specify the items to instantiate,
17389 # then the envvar interface is used.  Set only those that are not.
17390 # We use the long form for the default assignment because of an extremely
17391 # bizarre bug on SunOS 4.1.3.
17392 if $ac_need_defaults; then
17393   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17394   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17395   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17396 fi
17397
17398 # Have a temporary directory for convenience.  Make it in the build tree
17399 # simply because there is no reason against having it here, and in addition,
17400 # creating and moving files from /tmp can sometimes cause problems.
17401 # Hook for its removal unless debugging.
17402 # Note that there is a small window in which the directory will not be cleaned:
17403 # after its creation but before its name has been assigned to `$tmp'.
17404 $debug ||
17405 {
17406   tmp= ac_tmp=
17407   trap 'exit_status=$?
17408   : "${ac_tmp:=$tmp}"
17409   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17410 ' 0
17411   trap 'as_fn_exit 1' 1 2 13 15
17412 }
17413 # Create a (secure) tmp directory for tmp files.
17414
17415 {
17416   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17417   test -d "$tmp"
17418 }  ||
17419 {
17420   tmp=./conf$$-$RANDOM
17421   (umask 077 && mkdir "$tmp")
17422 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17423 ac_tmp=$tmp
17424
17425 # Set up the scripts for CONFIG_FILES section.
17426 # No need to generate them if there are no CONFIG_FILES.
17427 # This happens for instance with `./config.status config.h'.
17428 if test -n "$CONFIG_FILES"; then
17429
17430
17431 ac_cr=`echo X | tr X '\015'`
17432 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17433 # But we know of no other shell where ac_cr would be empty at this
17434 # point, so we can use a bashism as a fallback.
17435 if test "x$ac_cr" = x; then
17436   eval ac_cr=\$\'\\r\'
17437 fi
17438 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17439 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17440   ac_cs_awk_cr='\\r'
17441 else
17442   ac_cs_awk_cr=$ac_cr
17443 fi
17444
17445 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17446 _ACEOF
17447
17448
17449 {
17450   echo "cat >conf$$subs.awk <<_ACEOF" &&
17451   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17452   echo "_ACEOF"
17453 } >conf$$subs.sh ||
17454   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17455 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17456 ac_delim='%!_!# '
17457 for ac_last_try in false false false false false :; do
17458   . ./conf$$subs.sh ||
17459     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17460
17461   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17462   if test $ac_delim_n = $ac_delim_num; then
17463     break
17464   elif $ac_last_try; then
17465     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17466   else
17467     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17468   fi
17469 done
17470 rm -f conf$$subs.sh
17471
17472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17473 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17474 _ACEOF
17475 sed -n '
17476 h
17477 s/^/S["/; s/!.*/"]=/
17478 p
17479 g
17480 s/^[^!]*!//
17481 :repl
17482 t repl
17483 s/'"$ac_delim"'$//
17484 t delim
17485 :nl
17486 h
17487 s/\(.\{148\}\)..*/\1/
17488 t more1
17489 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17490 p
17491 n
17492 b repl
17493 :more1
17494 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17495 p
17496 g
17497 s/.\{148\}//
17498 t nl
17499 :delim
17500 h
17501 s/\(.\{148\}\)..*/\1/
17502 t more2
17503 s/["\\]/\\&/g; s/^/"/; s/$/"/
17504 p
17505 b
17506 :more2
17507 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17508 p
17509 g
17510 s/.\{148\}//
17511 t delim
17512 ' <conf$$subs.awk | sed '
17513 /^[^""]/{
17514   N
17515   s/\n//
17516 }
17517 ' >>$CONFIG_STATUS || ac_write_fail=1
17518 rm -f conf$$subs.awk
17519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17520 _ACAWK
17521 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17522   for (key in S) S_is_set[key] = 1
17523   FS = "\a"
17524
17525 }
17526 {
17527   line = $ 0
17528   nfields = split(line, field, "@")
17529   substed = 0
17530   len = length(field[1])
17531   for (i = 2; i < nfields; i++) {
17532     key = field[i]
17533     keylen = length(key)
17534     if (S_is_set[key]) {
17535       value = S[key]
17536       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17537       len += length(value) + length(field[++i])
17538       substed = 1
17539     } else
17540       len += 1 + keylen
17541   }
17542
17543   print line
17544 }
17545
17546 _ACAWK
17547 _ACEOF
17548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17549 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17550   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17551 else
17552   cat
17553 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17554   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17555 _ACEOF
17556
17557 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17558 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17559 # trailing colons and then remove the whole line if VPATH becomes empty
17560 # (actually we leave an empty line to preserve line numbers).
17561 if test "x$srcdir" = x.; then
17562   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17563 h
17564 s///
17565 s/^/:/
17566 s/[      ]*$/:/
17567 s/:\$(srcdir):/:/g
17568 s/:\${srcdir}:/:/g
17569 s/:@srcdir@:/:/g
17570 s/^:*//
17571 s/:*$//
17572 x
17573 s/\(=[   ]*\).*/\1/
17574 G
17575 s/\n//
17576 s/^[^=]*=[       ]*$//
17577 }'
17578 fi
17579
17580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17581 fi # test -n "$CONFIG_FILES"
17582
17583 # Set up the scripts for CONFIG_HEADERS section.
17584 # No need to generate them if there are no CONFIG_HEADERS.
17585 # This happens for instance with `./config.status Makefile'.
17586 if test -n "$CONFIG_HEADERS"; then
17587 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17588 BEGIN {
17589 _ACEOF
17590
17591 # Transform confdefs.h into an awk script `defines.awk', embedded as
17592 # here-document in config.status, that substitutes the proper values into
17593 # config.h.in to produce config.h.
17594
17595 # Create a delimiter string that does not exist in confdefs.h, to ease
17596 # handling of long lines.
17597 ac_delim='%!_!# '
17598 for ac_last_try in false false :; do
17599   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17600   if test -z "$ac_tt"; then
17601     break
17602   elif $ac_last_try; then
17603     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17604   else
17605     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17606   fi
17607 done
17608
17609 # For the awk script, D is an array of macro values keyed by name,
17610 # likewise P contains macro parameters if any.  Preserve backslash
17611 # newline sequences.
17612
17613 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17614 sed -n '
17615 s/.\{148\}/&'"$ac_delim"'/g
17616 t rset
17617 :rset
17618 s/^[     ]*#[    ]*define[       ][      ]*/ /
17619 t def
17620 d
17621 :def
17622 s/\\$//
17623 t bsnl
17624 s/["\\]/\\&/g
17625 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17626 D["\1"]=" \3"/p
17627 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17628 d
17629 :bsnl
17630 s/["\\]/\\&/g
17631 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17632 D["\1"]=" \3\\\\\\n"\\/p
17633 t cont
17634 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17635 t cont
17636 d
17637 :cont
17638 n
17639 s/.\{148\}/&'"$ac_delim"'/g
17640 t clear
17641 :clear
17642 s/\\$//
17643 t bsnlc
17644 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17645 d
17646 :bsnlc
17647 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17648 b cont
17649 ' <confdefs.h | sed '
17650 s/'"$ac_delim"'/"\\\
17651 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17652
17653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17654   for (key in D) D_is_set[key] = 1
17655   FS = "\a"
17656 }
17657 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17658   line = \$ 0
17659   split(line, arg, " ")
17660   if (arg[1] == "#") {
17661     defundef = arg[2]
17662     mac1 = arg[3]
17663   } else {
17664     defundef = substr(arg[1], 2)
17665     mac1 = arg[2]
17666   }
17667   split(mac1, mac2, "(") #)
17668   macro = mac2[1]
17669   prefix = substr(line, 1, index(line, defundef) - 1)
17670   if (D_is_set[macro]) {
17671     # Preserve the white space surrounding the "#".
17672     print prefix "define", macro P[macro] D[macro]
17673     next
17674   } else {
17675     # Replace #undef with comments.  This is necessary, for example,
17676     # in the case of _POSIX_SOURCE, which is predefined and required
17677     # on some systems where configure will not decide to define it.
17678     if (defundef == "undef") {
17679       print "/*", prefix defundef, macro, "*/"
17680       next
17681     }
17682   }
17683 }
17684 { print }
17685 _ACAWK
17686 _ACEOF
17687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17688   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17689 fi # test -n "$CONFIG_HEADERS"
17690
17691
17692 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17693 shift
17694 for ac_tag
17695 do
17696   case $ac_tag in
17697   :[FHLC]) ac_mode=$ac_tag; continue;;
17698   esac
17699   case $ac_mode$ac_tag in
17700   :[FHL]*:*);;
17701   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17702   :[FH]-) ac_tag=-:-;;
17703   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17704   esac
17705   ac_save_IFS=$IFS
17706   IFS=:
17707   set x $ac_tag
17708   IFS=$ac_save_IFS
17709   shift
17710   ac_file=$1
17711   shift
17712
17713   case $ac_mode in
17714   :L) ac_source=$1;;
17715   :[FH])
17716     ac_file_inputs=
17717     for ac_f
17718     do
17719       case $ac_f in
17720       -) ac_f="$ac_tmp/stdin";;
17721       *) # Look for the file first in the build tree, then in the source tree
17722          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17723          # because $ac_f cannot contain `:'.
17724          test -f "$ac_f" ||
17725            case $ac_f in
17726            [\\/$]*) false;;
17727            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17728            esac ||
17729            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17730       esac
17731       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17732       as_fn_append ac_file_inputs " '$ac_f'"
17733     done
17734
17735     # Let's still pretend it is `configure' which instantiates (i.e., don't
17736     # use $as_me), people would be surprised to read:
17737     #    /* config.h.  Generated by config.status.  */
17738     configure_input='Generated from '`
17739           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17740         `' by configure.'
17741     if test x"$ac_file" != x-; then
17742       configure_input="$ac_file.  $configure_input"
17743       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17744 $as_echo "$as_me: creating $ac_file" >&6;}
17745     fi
17746     # Neutralize special characters interpreted by sed in replacement strings.
17747     case $configure_input in #(
17748     *\&* | *\|* | *\\* )
17749        ac_sed_conf_input=`$as_echo "$configure_input" |
17750        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17751     *) ac_sed_conf_input=$configure_input;;
17752     esac
17753
17754     case $ac_tag in
17755     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17756       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17757     esac
17758     ;;
17759   esac
17760
17761   ac_dir=`$as_dirname -- "$ac_file" ||
17762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17763          X"$ac_file" : 'X\(//\)[^/]' \| \
17764          X"$ac_file" : 'X\(//\)$' \| \
17765          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17766 $as_echo X"$ac_file" |
17767     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17768             s//\1/
17769             q
17770           }
17771           /^X\(\/\/\)[^/].*/{
17772             s//\1/
17773             q
17774           }
17775           /^X\(\/\/\)$/{
17776             s//\1/
17777             q
17778           }
17779           /^X\(\/\).*/{
17780             s//\1/
17781             q
17782           }
17783           s/.*/./; q'`
17784   as_dir="$ac_dir"; as_fn_mkdir_p
17785   ac_builddir=.
17786
17787 case "$ac_dir" in
17788 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17789 *)
17790   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17791   # A ".." for each directory in $ac_dir_suffix.
17792   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17793   case $ac_top_builddir_sub in
17794   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17795   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17796   esac ;;
17797 esac
17798 ac_abs_top_builddir=$ac_pwd
17799 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17800 # for backward compatibility:
17801 ac_top_builddir=$ac_top_build_prefix
17802
17803 case $srcdir in
17804   .)  # We are building in place.
17805     ac_srcdir=.
17806     ac_top_srcdir=$ac_top_builddir_sub
17807     ac_abs_top_srcdir=$ac_pwd ;;
17808   [\\/]* | ?:[\\/]* )  # Absolute name.
17809     ac_srcdir=$srcdir$ac_dir_suffix;
17810     ac_top_srcdir=$srcdir
17811     ac_abs_top_srcdir=$srcdir ;;
17812   *) # Relative name.
17813     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17814     ac_top_srcdir=$ac_top_build_prefix$srcdir
17815     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17816 esac
17817 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17818
17819
17820   case $ac_mode in
17821   :F)
17822   #
17823   # CONFIG_FILE
17824   #
17825
17826   case $INSTALL in
17827   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17828   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17829   esac
17830   ac_MKDIR_P=$MKDIR_P
17831   case $MKDIR_P in
17832   [\\/$]* | ?:[\\/]* ) ;;
17833   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17834   esac
17835 _ACEOF
17836
17837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17838 # If the template does not know about datarootdir, expand it.
17839 # FIXME: This hack should be removed a few years after 2.60.
17840 ac_datarootdir_hack=; ac_datarootdir_seen=
17841 ac_sed_dataroot='
17842 /datarootdir/ {
17843   p
17844   q
17845 }
17846 /@datadir@/p
17847 /@docdir@/p
17848 /@infodir@/p
17849 /@localedir@/p
17850 /@mandir@/p'
17851 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17852 *datarootdir*) ac_datarootdir_seen=yes;;
17853 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17854   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17855 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17856 _ACEOF
17857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17858   ac_datarootdir_hack='
17859   s&@datadir@&$datadir&g
17860   s&@docdir@&$docdir&g
17861   s&@infodir@&$infodir&g
17862   s&@localedir@&$localedir&g
17863   s&@mandir@&$mandir&g
17864   s&\\\${datarootdir}&$datarootdir&g' ;;
17865 esac
17866 _ACEOF
17867
17868 # Neutralize VPATH when `$srcdir' = `.'.
17869 # Shell code in configure.ac might set extrasub.
17870 # FIXME: do we really want to maintain this feature?
17871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17872 ac_sed_extra="$ac_vpsub
17873 $extrasub
17874 _ACEOF
17875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17876 :t
17877 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17878 s|@configure_input@|$ac_sed_conf_input|;t t
17879 s&@top_builddir@&$ac_top_builddir_sub&;t t
17880 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17881 s&@srcdir@&$ac_srcdir&;t t
17882 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17883 s&@top_srcdir@&$ac_top_srcdir&;t t
17884 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17885 s&@builddir@&$ac_builddir&;t t
17886 s&@abs_builddir@&$ac_abs_builddir&;t t
17887 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17888 s&@INSTALL@&$ac_INSTALL&;t t
17889 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17890 $ac_datarootdir_hack
17891 "
17892 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17893   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17894
17895 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17896   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17897   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17898       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17899   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17900 which seems to be undefined.  Please make sure it is defined" >&5
17901 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17902 which seems to be undefined.  Please make sure it is defined" >&2;}
17903
17904   rm -f "$ac_tmp/stdin"
17905   case $ac_file in
17906   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17907   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17908   esac \
17909   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17910  ;;
17911   :H)
17912   #
17913   # CONFIG_HEADER
17914   #
17915   if test x"$ac_file" != x-; then
17916     {
17917       $as_echo "/* $configure_input  */" \
17918       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17919     } >"$ac_tmp/config.h" \
17920       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17921     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17922       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17923 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17924     else
17925       rm -f "$ac_file"
17926       mv "$ac_tmp/config.h" "$ac_file" \
17927         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17928     fi
17929   else
17930     $as_echo "/* $configure_input  */" \
17931       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17932       || as_fn_error $? "could not create -" "$LINENO" 5
17933   fi
17934 # Compute "$ac_file"'s index in $config_headers.
17935 _am_arg="$ac_file"
17936 _am_stamp_count=1
17937 for _am_header in $config_headers :; do
17938   case $_am_header in
17939     $_am_arg | $_am_arg:* )
17940       break ;;
17941     * )
17942       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17943   esac
17944 done
17945 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17946 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17947          X"$_am_arg" : 'X\(//\)[^/]' \| \
17948          X"$_am_arg" : 'X\(//\)$' \| \
17949          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17950 $as_echo X"$_am_arg" |
17951     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17952             s//\1/
17953             q
17954           }
17955           /^X\(\/\/\)[^/].*/{
17956             s//\1/
17957             q
17958           }
17959           /^X\(\/\/\)$/{
17960             s//\1/
17961             q
17962           }
17963           /^X\(\/\).*/{
17964             s//\1/
17965             q
17966           }
17967           s/.*/./; q'`/stamp-h$_am_stamp_count
17968  ;;
17969
17970   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17971 $as_echo "$as_me: executing $ac_file commands" >&6;}
17972  ;;
17973   esac
17974
17975
17976   case $ac_file$ac_mode in
17977     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17978   # Older Autoconf quotes --file arguments for eval, but not when files
17979   # are listed without --file.  Let's play safe and only enable the eval
17980   # if we detect the quoting.
17981   case $CONFIG_FILES in
17982   *\'*) eval set x "$CONFIG_FILES" ;;
17983   *)   set x $CONFIG_FILES ;;
17984   esac
17985   shift
17986   for mf
17987   do
17988     # Strip MF so we end up with the name of the file.
17989     mf=`echo "$mf" | sed -e 's/:.*$//'`
17990     # Check whether this is an Automake generated Makefile or not.
17991     # We used to match only the files named 'Makefile.in', but
17992     # some people rename them; so instead we look at the file content.
17993     # Grep'ing the first line is not enough: some people post-process
17994     # each Makefile.in and add a new line on top of each file to say so.
17995     # Grep'ing the whole file is not good either: AIX grep has a line
17996     # limit of 2048, but all sed's we know have understand at least 4000.
17997     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17998       dirpart=`$as_dirname -- "$mf" ||
17999 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18000          X"$mf" : 'X\(//\)[^/]' \| \
18001          X"$mf" : 'X\(//\)$' \| \
18002          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18003 $as_echo X"$mf" |
18004     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18005             s//\1/
18006             q
18007           }
18008           /^X\(\/\/\)[^/].*/{
18009             s//\1/
18010             q
18011           }
18012           /^X\(\/\/\)$/{
18013             s//\1/
18014             q
18015           }
18016           /^X\(\/\).*/{
18017             s//\1/
18018             q
18019           }
18020           s/.*/./; q'`
18021     else
18022       continue
18023     fi
18024     # Extract the definition of DEPDIR, am__include, and am__quote
18025     # from the Makefile without running 'make'.
18026     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18027     test -z "$DEPDIR" && continue
18028     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18029     test -z "$am__include" && continue
18030     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18031     # Find all dependency output files, they are included files with
18032     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18033     # simplest approach to changing $(DEPDIR) to its actual value in the
18034     # expansion.
18035     for file in `sed -n "
18036       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18037          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18038       # Make sure the directory exists.
18039       test -f "$dirpart/$file" && continue
18040       fdir=`$as_dirname -- "$file" ||
18041 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18042          X"$file" : 'X\(//\)[^/]' \| \
18043          X"$file" : 'X\(//\)$' \| \
18044          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18045 $as_echo X"$file" |
18046     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18047             s//\1/
18048             q
18049           }
18050           /^X\(\/\/\)[^/].*/{
18051             s//\1/
18052             q
18053           }
18054           /^X\(\/\/\)$/{
18055             s//\1/
18056             q
18057           }
18058           /^X\(\/\).*/{
18059             s//\1/
18060             q
18061           }
18062           s/.*/./; q'`
18063       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18064       # echo "creating $dirpart/$file"
18065       echo '# dummy' > "$dirpart/$file"
18066     done
18067   done
18068 }
18069  ;;
18070     "libtool":C)
18071
18072     # See if we are running on zsh, and set the options which allow our
18073     # commands through without removal of \ escapes.
18074     if test -n "${ZSH_VERSION+set}" ; then
18075       setopt NO_GLOB_SUBST
18076     fi
18077
18078     cfgfile="${ofile}T"
18079     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18080     $RM "$cfgfile"
18081
18082     cat <<_LT_EOF >> "$cfgfile"
18083 #! $SHELL
18084
18085 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18086 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18087 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18088 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18089 #
18090 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18091 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18092 #                 Foundation, Inc.
18093 #   Written by Gordon Matzigkeit, 1996
18094 #
18095 #   This file is part of GNU Libtool.
18096 #
18097 # GNU Libtool is free software; you can redistribute it and/or
18098 # modify it under the terms of the GNU General Public License as
18099 # published by the Free Software Foundation; either version 2 of
18100 # the License, or (at your option) any later version.
18101 #
18102 # As a special exception to the GNU General Public License,
18103 # if you distribute this file as part of a program or library that
18104 # is built using GNU Libtool, you may include this file under the
18105 # same distribution terms that you use for the rest of that program.
18106 #
18107 # GNU Libtool is distributed in the hope that it will be useful,
18108 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18109 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18110 # GNU General Public License for more details.
18111 #
18112 # You should have received a copy of the GNU General Public License
18113 # along with GNU Libtool; see the file COPYING.  If not, a copy
18114 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18115 # obtained by writing to the Free Software Foundation, Inc.,
18116 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18117
18118
18119 # The names of the tagged configurations supported by this script.
18120 available_tags=""
18121
18122 # ### BEGIN LIBTOOL CONFIG
18123
18124 # Which release of libtool.m4 was used?
18125 macro_version=$macro_version
18126 macro_revision=$macro_revision
18127
18128 # Whether or not to build static libraries.
18129 build_old_libs=$enable_static
18130
18131 # Assembler program.
18132 AS=$lt_AS
18133
18134 # DLL creation program.
18135 DLLTOOL=$lt_DLLTOOL
18136
18137 # Object dumper program.
18138 OBJDUMP=$lt_OBJDUMP
18139
18140 # Whether or not to build shared libraries.
18141 build_libtool_libs=$enable_shared
18142
18143 # What type of objects to build.
18144 pic_mode=$pic_mode
18145
18146 # Whether or not to optimize for fast installation.
18147 fast_install=$enable_fast_install
18148
18149 # Shell to use when invoking shell scripts.
18150 SHELL=$lt_SHELL
18151
18152 # An echo program that protects backslashes.
18153 ECHO=$lt_ECHO
18154
18155 # The PATH separator for the build system.
18156 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18157
18158 # The host system.
18159 host_alias=$host_alias
18160 host=$host
18161 host_os=$host_os
18162
18163 # The build system.
18164 build_alias=$build_alias
18165 build=$build
18166 build_os=$build_os
18167
18168 # A sed program that does not truncate output.
18169 SED=$lt_SED
18170
18171 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18172 Xsed="\$SED -e 1s/^X//"
18173
18174 # A grep program that handles long lines.
18175 GREP=$lt_GREP
18176
18177 # An ERE matcher.
18178 EGREP=$lt_EGREP
18179
18180 # A literal string matcher.
18181 FGREP=$lt_FGREP
18182
18183 # A BSD- or MS-compatible name lister.
18184 NM=$lt_NM
18185
18186 # Whether we need soft or hard links.
18187 LN_S=$lt_LN_S
18188
18189 # What is the maximum length of a command?
18190 max_cmd_len=$max_cmd_len
18191
18192 # Object file suffix (normally "o").
18193 objext=$ac_objext
18194
18195 # Executable file suffix (normally "").
18196 exeext=$exeext
18197
18198 # whether the shell understands "unset".
18199 lt_unset=$lt_unset
18200
18201 # turn spaces into newlines.
18202 SP2NL=$lt_lt_SP2NL
18203
18204 # turn newlines into spaces.
18205 NL2SP=$lt_lt_NL2SP
18206
18207 # convert \$build file names to \$host format.
18208 to_host_file_cmd=$lt_cv_to_host_file_cmd
18209
18210 # convert \$build files to toolchain format.
18211 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18212
18213 # Method to check whether dependent libraries are shared objects.
18214 deplibs_check_method=$lt_deplibs_check_method
18215
18216 # Command to use when deplibs_check_method = "file_magic".
18217 file_magic_cmd=$lt_file_magic_cmd
18218
18219 # How to find potential files when deplibs_check_method = "file_magic".
18220 file_magic_glob=$lt_file_magic_glob
18221
18222 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18223 want_nocaseglob=$lt_want_nocaseglob
18224
18225 # Command to associate shared and link libraries.
18226 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18227
18228 # The archiver.
18229 AR=$lt_AR
18230
18231 # Flags to create an archive.
18232 AR_FLAGS=$lt_AR_FLAGS
18233
18234 # How to feed a file listing to the archiver.
18235 archiver_list_spec=$lt_archiver_list_spec
18236
18237 # A symbol stripping program.
18238 STRIP=$lt_STRIP
18239
18240 # Commands used to install an old-style archive.
18241 RANLIB=$lt_RANLIB
18242 old_postinstall_cmds=$lt_old_postinstall_cmds
18243 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18244
18245 # Whether to use a lock for old archive extraction.
18246 lock_old_archive_extraction=$lock_old_archive_extraction
18247
18248 # A C compiler.
18249 LTCC=$lt_CC
18250
18251 # LTCC compiler flags.
18252 LTCFLAGS=$lt_CFLAGS
18253
18254 # Take the output of nm and produce a listing of raw symbols and C names.
18255 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18256
18257 # Transform the output of nm in a proper C declaration.
18258 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18259
18260 # Transform the output of nm in a C name address pair.
18261 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18262
18263 # Transform the output of nm in a C name address pair when lib prefix is needed.
18264 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18265
18266 # Specify filename containing input files for \$NM.
18267 nm_file_list_spec=$lt_nm_file_list_spec
18268
18269 # The root where to search for dependent libraries,and in which our libraries should be installed.
18270 lt_sysroot=$lt_sysroot
18271
18272 # The name of the directory that contains temporary libtool files.
18273 objdir=$objdir
18274
18275 # Used to examine libraries when file_magic_cmd begins with "file".
18276 MAGIC_CMD=$MAGIC_CMD
18277
18278 # Must we lock files when doing compilation?
18279 need_locks=$lt_need_locks
18280
18281 # Manifest tool.
18282 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18283
18284 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18285 DSYMUTIL=$lt_DSYMUTIL
18286
18287 # Tool to change global to local symbols on Mac OS X.
18288 NMEDIT=$lt_NMEDIT
18289
18290 # Tool to manipulate fat objects and archives on Mac OS X.
18291 LIPO=$lt_LIPO
18292
18293 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18294 OTOOL=$lt_OTOOL
18295
18296 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18297 OTOOL64=$lt_OTOOL64
18298
18299 # Old archive suffix (normally "a").
18300 libext=$libext
18301
18302 # Shared library suffix (normally ".so").
18303 shrext_cmds=$lt_shrext_cmds
18304
18305 # The commands to extract the exported symbol list from a shared archive.
18306 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18307
18308 # Variables whose values should be saved in libtool wrapper scripts and
18309 # restored at link time.
18310 variables_saved_for_relink=$lt_variables_saved_for_relink
18311
18312 # Do we need the "lib" prefix for modules?
18313 need_lib_prefix=$need_lib_prefix
18314
18315 # Do we need a version for libraries?
18316 need_version=$need_version
18317
18318 # Library versioning type.
18319 version_type=$version_type
18320
18321 # Shared library runtime path variable.
18322 runpath_var=$runpath_var
18323
18324 # Shared library path variable.
18325 shlibpath_var=$shlibpath_var
18326
18327 # Is shlibpath searched before the hard-coded library search path?
18328 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18329
18330 # Format of library name prefix.
18331 libname_spec=$lt_libname_spec
18332
18333 # List of archive names.  First name is the real one, the rest are links.
18334 # The last name is the one that the linker finds with -lNAME
18335 library_names_spec=$lt_library_names_spec
18336
18337 # The coded name of the library, if different from the real name.
18338 soname_spec=$lt_soname_spec
18339
18340 # Permission mode override for installation of shared libraries.
18341 install_override_mode=$lt_install_override_mode
18342
18343 # Command to use after installation of a shared archive.
18344 postinstall_cmds=$lt_postinstall_cmds
18345
18346 # Command to use after uninstallation of a shared archive.
18347 postuninstall_cmds=$lt_postuninstall_cmds
18348
18349 # Commands used to finish a libtool library installation in a directory.
18350 finish_cmds=$lt_finish_cmds
18351
18352 # As "finish_cmds", except a single script fragment to be evaled but
18353 # not shown.
18354 finish_eval=$lt_finish_eval
18355
18356 # Whether we should hardcode library paths into libraries.
18357 hardcode_into_libs=$hardcode_into_libs
18358
18359 # Compile-time system search path for libraries.
18360 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18361
18362 # Run-time system search path for libraries.
18363 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18364
18365 # Whether dlopen is supported.
18366 dlopen_support=$enable_dlopen
18367
18368 # Whether dlopen of programs is supported.
18369 dlopen_self=$enable_dlopen_self
18370
18371 # Whether dlopen of statically linked programs is supported.
18372 dlopen_self_static=$enable_dlopen_self_static
18373
18374 # Commands to strip libraries.
18375 old_striplib=$lt_old_striplib
18376 striplib=$lt_striplib
18377
18378
18379 # The linker used to build libraries.
18380 LD=$lt_LD
18381
18382 # How to create reloadable object files.
18383 reload_flag=$lt_reload_flag
18384 reload_cmds=$lt_reload_cmds
18385
18386 # Commands used to build an old-style archive.
18387 old_archive_cmds=$lt_old_archive_cmds
18388
18389 # A language specific compiler.
18390 CC=$lt_compiler
18391
18392 # Is the compiler the GNU compiler?
18393 with_gcc=$GCC
18394
18395 # Compiler flag to turn off builtin functions.
18396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18397
18398 # Additional compiler flags for building library objects.
18399 pic_flag=$lt_lt_prog_compiler_pic
18400
18401 # How to pass a linker flag through the compiler.
18402 wl=$lt_lt_prog_compiler_wl
18403
18404 # Compiler flag to prevent dynamic linking.
18405 link_static_flag=$lt_lt_prog_compiler_static
18406
18407 # Does compiler simultaneously support -c and -o options?
18408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18409
18410 # Whether or not to add -lc for building shared libraries.
18411 build_libtool_need_lc=$archive_cmds_need_lc
18412
18413 # Whether or not to disallow shared libs when runtime libs are static.
18414 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18415
18416 # Compiler flag to allow reflexive dlopens.
18417 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18418
18419 # Compiler flag to generate shared objects directly from archives.
18420 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18421
18422 # Whether the compiler copes with passing no objects directly.
18423 compiler_needs_object=$lt_compiler_needs_object
18424
18425 # Create an old-style archive from a shared archive.
18426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18427
18428 # Create a temporary old-style archive to link instead of a shared archive.
18429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18430
18431 # Commands used to build a shared archive.
18432 archive_cmds=$lt_archive_cmds
18433 archive_expsym_cmds=$lt_archive_expsym_cmds
18434
18435 # Commands used to build a loadable module if different from building
18436 # a shared archive.
18437 module_cmds=$lt_module_cmds
18438 module_expsym_cmds=$lt_module_expsym_cmds
18439
18440 # Whether we are building with GNU ld or not.
18441 with_gnu_ld=$lt_with_gnu_ld
18442
18443 # Flag that allows shared libraries with undefined symbols to be built.
18444 allow_undefined_flag=$lt_allow_undefined_flag
18445
18446 # Flag that enforces no undefined symbols.
18447 no_undefined_flag=$lt_no_undefined_flag
18448
18449 # Flag to hardcode \$libdir into a binary during linking.
18450 # This must work even if \$libdir does not exist
18451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18452
18453 # Whether we need a single "-rpath" flag with a separated argument.
18454 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18455
18456 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18457 # DIR into the resulting binary.
18458 hardcode_direct=$hardcode_direct
18459
18460 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18461 # DIR into the resulting binary and the resulting library dependency is
18462 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18463 # library is relocated.
18464 hardcode_direct_absolute=$hardcode_direct_absolute
18465
18466 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18467 # into the resulting binary.
18468 hardcode_minus_L=$hardcode_minus_L
18469
18470 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18471 # into the resulting binary.
18472 hardcode_shlibpath_var=$hardcode_shlibpath_var
18473
18474 # Set to "yes" if building a shared library automatically hardcodes DIR
18475 # into the library and all subsequent libraries and executables linked
18476 # against it.
18477 hardcode_automatic=$hardcode_automatic
18478
18479 # Set to yes if linker adds runtime paths of dependent libraries
18480 # to runtime path list.
18481 inherit_rpath=$inherit_rpath
18482
18483 # Whether libtool must link a program against all its dependency libraries.
18484 link_all_deplibs=$link_all_deplibs
18485
18486 # Set to "yes" if exported symbols are required.
18487 always_export_symbols=$always_export_symbols
18488
18489 # The commands to list exported symbols.
18490 export_symbols_cmds=$lt_export_symbols_cmds
18491
18492 # Symbols that should not be listed in the preloaded symbols.
18493 exclude_expsyms=$lt_exclude_expsyms
18494
18495 # Symbols that must always be exported.
18496 include_expsyms=$lt_include_expsyms
18497
18498 # Commands necessary for linking programs (against libraries) with templates.
18499 prelink_cmds=$lt_prelink_cmds
18500
18501 # Commands necessary for finishing linking programs.
18502 postlink_cmds=$lt_postlink_cmds
18503
18504 # Specify filename containing input files.
18505 file_list_spec=$lt_file_list_spec
18506
18507 # How to hardcode a shared library path into an executable.
18508 hardcode_action=$hardcode_action
18509
18510 # ### END LIBTOOL CONFIG
18511
18512 _LT_EOF
18513
18514   case $host_os in
18515   aix3*)
18516     cat <<\_LT_EOF >> "$cfgfile"
18517 # AIX sometimes has problems with the GCC collect2 program.  For some
18518 # reason, if we set the COLLECT_NAMES environment variable, the problems
18519 # vanish in a puff of smoke.
18520 if test "X${COLLECT_NAMES+set}" != Xset; then
18521   COLLECT_NAMES=
18522   export COLLECT_NAMES
18523 fi
18524 _LT_EOF
18525     ;;
18526   esac
18527
18528
18529 ltmain="$ac_aux_dir/ltmain.sh"
18530
18531
18532   # We use sed instead of cat because bash on DJGPP gets confused if
18533   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18534   # text mode, it properly converts lines to CR/LF.  This bash problem
18535   # is reportedly fixed, but why not run on old versions too?
18536   sed '$q' "$ltmain" >> "$cfgfile" \
18537      || (rm -f "$cfgfile"; exit 1)
18538
18539   if test x"$xsi_shell" = xyes; then
18540   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18541 func_dirname ()\
18542 {\
18543 \    case ${1} in\
18544 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18545 \      *  ) func_dirname_result="${3}" ;;\
18546 \    esac\
18547 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18548   && mv -f "$cfgfile.tmp" "$cfgfile" \
18549     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18550 test 0 -eq $? || _lt_function_replace_fail=:
18551
18552
18553   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18554 func_basename ()\
18555 {\
18556 \    func_basename_result="${1##*/}"\
18557 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18558   && mv -f "$cfgfile.tmp" "$cfgfile" \
18559     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18560 test 0 -eq $? || _lt_function_replace_fail=:
18561
18562
18563   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18564 func_dirname_and_basename ()\
18565 {\
18566 \    case ${1} in\
18567 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18568 \      *  ) func_dirname_result="${3}" ;;\
18569 \    esac\
18570 \    func_basename_result="${1##*/}"\
18571 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18572   && mv -f "$cfgfile.tmp" "$cfgfile" \
18573     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18574 test 0 -eq $? || _lt_function_replace_fail=:
18575
18576
18577   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18578 func_stripname ()\
18579 {\
18580 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18581 \    # positional parameters, so assign one to ordinary parameter first.\
18582 \    func_stripname_result=${3}\
18583 \    func_stripname_result=${func_stripname_result#"${1}"}\
18584 \    func_stripname_result=${func_stripname_result%"${2}"}\
18585 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18586   && mv -f "$cfgfile.tmp" "$cfgfile" \
18587     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18588 test 0 -eq $? || _lt_function_replace_fail=:
18589
18590
18591   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18592 func_split_long_opt ()\
18593 {\
18594 \    func_split_long_opt_name=${1%%=*}\
18595 \    func_split_long_opt_arg=${1#*=}\
18596 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18597   && mv -f "$cfgfile.tmp" "$cfgfile" \
18598     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18599 test 0 -eq $? || _lt_function_replace_fail=:
18600
18601
18602   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18603 func_split_short_opt ()\
18604 {\
18605 \    func_split_short_opt_arg=${1#??}\
18606 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18607 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18608   && mv -f "$cfgfile.tmp" "$cfgfile" \
18609     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18610 test 0 -eq $? || _lt_function_replace_fail=:
18611
18612
18613   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18614 func_lo2o ()\
18615 {\
18616 \    case ${1} in\
18617 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18618 \      *)    func_lo2o_result=${1} ;;\
18619 \    esac\
18620 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18621   && mv -f "$cfgfile.tmp" "$cfgfile" \
18622     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18623 test 0 -eq $? || _lt_function_replace_fail=:
18624
18625
18626   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18627 func_xform ()\
18628 {\
18629     func_xform_result=${1%.*}.lo\
18630 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18631   && mv -f "$cfgfile.tmp" "$cfgfile" \
18632     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18633 test 0 -eq $? || _lt_function_replace_fail=:
18634
18635
18636   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18637 func_arith ()\
18638 {\
18639     func_arith_result=$(( $* ))\
18640 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18641   && mv -f "$cfgfile.tmp" "$cfgfile" \
18642     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18643 test 0 -eq $? || _lt_function_replace_fail=:
18644
18645
18646   sed -e '/^func_len ()$/,/^} # func_len /c\
18647 func_len ()\
18648 {\
18649     func_len_result=${#1}\
18650 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18651   && mv -f "$cfgfile.tmp" "$cfgfile" \
18652     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18653 test 0 -eq $? || _lt_function_replace_fail=:
18654
18655 fi
18656
18657 if test x"$lt_shell_append" = xyes; then
18658   sed -e '/^func_append ()$/,/^} # func_append /c\
18659 func_append ()\
18660 {\
18661     eval "${1}+=\\${2}"\
18662 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18663   && mv -f "$cfgfile.tmp" "$cfgfile" \
18664     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18665 test 0 -eq $? || _lt_function_replace_fail=:
18666
18667
18668   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18669 func_append_quoted ()\
18670 {\
18671 \    func_quote_for_eval "${2}"\
18672 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18673 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18674   && mv -f "$cfgfile.tmp" "$cfgfile" \
18675     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18676 test 0 -eq $? || _lt_function_replace_fail=:
18677
18678
18679   # Save a `func_append' function call where possible by direct use of '+='
18680   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18681     && mv -f "$cfgfile.tmp" "$cfgfile" \
18682       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18683   test 0 -eq $? || _lt_function_replace_fail=:
18684 else
18685   # Save a `func_append' function call even when '+=' is not available
18686   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18687     && mv -f "$cfgfile.tmp" "$cfgfile" \
18688       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18689   test 0 -eq $? || _lt_function_replace_fail=:
18690 fi
18691
18692 if test x"$_lt_function_replace_fail" = x":"; then
18693   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18694 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18695 fi
18696
18697
18698    mv -f "$cfgfile" "$ofile" ||
18699     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18700   chmod +x "$ofile"
18701
18702  ;;
18703     "$ac_stdint_h":C)
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
18705 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
18706 ac_stdint=$tmp/_stdint.h
18707
18708 echo "#ifndef" $_ac_stdint_h >$ac_stdint
18709 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
18710 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
18711 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
18712 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
18713 if test "_$ac_cv_header_stdint_t" != "_" ; then
18714 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
18715 echo "#include <stdint.h>" >>$ac_stdint
18716 echo "#endif" >>$ac_stdint
18717 echo "#endif" >>$ac_stdint
18718 else
18719
18720 cat >>$ac_stdint <<STDINT_EOF
18721
18722 /* ................... shortcircuit part ........................... */
18723
18724 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
18725 #include <stdint.h>
18726 #else
18727 #include <stddef.h>
18728
18729 /* .................... configured part ............................ */
18730
18731 STDINT_EOF
18732
18733 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
18734 if test "_$ac_cv_header_stdint_x" != "_" ; then
18735   ac_header="$ac_cv_header_stdint_x"
18736   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
18737 else
18738   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
18739 fi
18740
18741 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
18742 if  test "_$ac_cv_header_stdint_o" != "_" ; then
18743   ac_header="$ac_cv_header_stdint_o"
18744   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
18745 else
18746   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
18747 fi
18748
18749 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
18750 if  test "_$ac_cv_header_stdint_u" != "_" ; then
18751   ac_header="$ac_cv_header_stdint_u"
18752   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
18753 else
18754   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
18755 fi
18756
18757 echo "" >>$ac_stdint
18758
18759 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
18760   echo "#include <$ac_header>" >>$ac_stdint
18761   echo "" >>$ac_stdint
18762 fi fi
18763
18764 echo "/* which 64bit typedef has been found */" >>$ac_stdint
18765 if test "$ac_cv_type_uint64_t" = "yes" ; then
18766 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
18767 else
18768 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
18769 fi
18770 if test "$ac_cv_type_u_int64_t" = "yes" ; then
18771 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
18772 else
18773 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
18774 fi
18775 echo "" >>$ac_stdint
18776
18777 echo "/* which type model has been detected */" >>$ac_stdint
18778 if test "_$ac_cv_char_data_model" != "_" ; then
18779 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
18780 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
18781 else
18782 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
18783 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
18784 fi
18785 echo "" >>$ac_stdint
18786
18787 echo "/* whether int_least types were detected */" >>$ac_stdint
18788 if test "$ac_cv_type_int_least32_t" = "yes"; then
18789 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
18790 else
18791 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
18792 fi
18793 echo "/* whether int_fast types were detected */" >>$ac_stdint
18794 if test "$ac_cv_type_int_fast32_t" = "yes"; then
18795 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
18796 else
18797 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
18798 fi
18799 echo "/* whether intmax_t type was detected */" >>$ac_stdint
18800 if test "$ac_cv_type_intmax_t" = "yes"; then
18801 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
18802 else
18803 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
18804 fi
18805 echo "" >>$ac_stdint
18806
18807   cat >>$ac_stdint <<STDINT_EOF
18808 /* .................... detections part ............................ */
18809
18810 /* whether we need to define bitspecific types from compiler base types */
18811 #ifndef _STDINT_HEADER_INTPTR
18812 #ifndef _STDINT_HEADER_UINT32
18813 #ifndef _STDINT_HEADER_U_INT32
18814 #define _STDINT_NEED_INT_MODEL_T
18815 #else
18816 #define _STDINT_HAVE_U_INT_TYPES
18817 #endif
18818 #endif
18819 #endif
18820
18821 #ifdef _STDINT_HAVE_U_INT_TYPES
18822 #undef _STDINT_NEED_INT_MODEL_T
18823 #endif
18824
18825 #ifdef  _STDINT_CHAR_MODEL
18826 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
18827 #ifndef _STDINT_BYTE_MODEL
18828 #define _STDINT_BYTE_MODEL 12
18829 #endif
18830 #endif
18831 #endif
18832
18833 #ifndef _STDINT_HAVE_INT_LEAST32_T
18834 #define _STDINT_NEED_INT_LEAST_T
18835 #endif
18836
18837 #ifndef _STDINT_HAVE_INT_FAST32_T
18838 #define _STDINT_NEED_INT_FAST_T
18839 #endif
18840
18841 #ifndef _STDINT_HEADER_INTPTR
18842 #define _STDINT_NEED_INTPTR_T
18843 #ifndef _STDINT_HAVE_INTMAX_T
18844 #define _STDINT_NEED_INTMAX_T
18845 #endif
18846 #endif
18847
18848
18849 /* .................... definition part ............................ */
18850
18851 /* some system headers have good uint64_t */
18852 #ifndef _HAVE_UINT64_T
18853 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
18854 #define _HAVE_UINT64_T
18855 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
18856 #define _HAVE_UINT64_T
18857 typedef u_int64_t uint64_t;
18858 #endif
18859 #endif
18860
18861 #ifndef _HAVE_UINT64_T
18862 /* .. here are some common heuristics using compiler runtime specifics */
18863 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
18864 #define _HAVE_UINT64_T
18865 #define _HAVE_LONGLONG_UINT64_T
18866 typedef long long int64_t;
18867 typedef unsigned long long uint64_t;
18868
18869 #elif !defined __STRICT_ANSI__
18870 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18871 #define _HAVE_UINT64_T
18872 typedef __int64 int64_t;
18873 typedef unsigned __int64 uint64_t;
18874
18875 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
18876 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
18877 #if !defined _NO_LONGLONG
18878 #define _HAVE_UINT64_T
18879 #define _HAVE_LONGLONG_UINT64_T
18880 typedef long long int64_t;
18881 typedef unsigned long long uint64_t;
18882 #endif
18883
18884 #elif defined __alpha || (defined __mips && defined _ABIN32)
18885 #if !defined _NO_LONGLONG
18886 typedef long int64_t;
18887 typedef unsigned long uint64_t;
18888 #endif
18889   /* compiler/cpu type to define int64_t */
18890 #endif
18891 #endif
18892 #endif
18893
18894 #if defined _STDINT_HAVE_U_INT_TYPES
18895 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
18896 typedef u_int8_t uint8_t;
18897 typedef u_int16_t uint16_t;
18898 typedef u_int32_t uint32_t;
18899
18900 /* glibc compatibility */
18901 #ifndef __int8_t_defined
18902 #define __int8_t_defined
18903 #endif
18904 #endif
18905
18906 #ifdef _STDINT_NEED_INT_MODEL_T
18907 /* we must guess all the basic types. Apart from byte-adressable system, */
18908 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
18909 /* (btw, those nibble-addressable systems are way off, or so we assume) */
18910
18911
18912 #if defined _STDINT_BYTE_MODEL
18913 #if _STDINT_LONG_MODEL+0 == 242
18914 /* 2:4:2 =  IP16 = a normal 16-bit system                */
18915 typedef unsigned char   uint8_t;
18916 typedef unsigned short  uint16_t;
18917 typedef unsigned long   uint32_t;
18918 #ifndef __int8_t_defined
18919 #define __int8_t_defined
18920 typedef          char    int8_t;
18921 typedef          short   int16_t;
18922 typedef          long    int32_t;
18923 #endif
18924 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
18925 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
18926 /* 4:4:4 = ILP32 = a normal 32-bit system                */
18927 typedef unsigned char   uint8_t;
18928 typedef unsigned short  uint16_t;
18929 typedef unsigned int    uint32_t;
18930 #ifndef __int8_t_defined
18931 #define __int8_t_defined
18932 typedef          char    int8_t;
18933 typedef          short   int16_t;
18934 typedef          int     int32_t;
18935 #endif
18936 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
18937 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
18938 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
18939 typedef unsigned char   uint8_t;
18940 typedef unsigned short  uint16_t;
18941 typedef unsigned int    uint32_t;
18942 #ifndef __int8_t_defined
18943 #define __int8_t_defined
18944 typedef          char    int8_t;
18945 typedef          short   int16_t;
18946 typedef          int     int32_t;
18947 #endif
18948 /* this system has a "long" of 64bit */
18949 #ifndef _HAVE_UINT64_T
18950 #define _HAVE_UINT64_T
18951 typedef unsigned long   uint64_t;
18952 typedef          long    int64_t;
18953 #endif
18954 #elif _STDINT_LONG_MODEL+0 == 448
18955 /*      LLP64   a 64-bit system derived from a 32-bit system */
18956 typedef unsigned char   uint8_t;
18957 typedef unsigned short  uint16_t;
18958 typedef unsigned int    uint32_t;
18959 #ifndef __int8_t_defined
18960 #define __int8_t_defined
18961 typedef          char    int8_t;
18962 typedef          short   int16_t;
18963 typedef          int     int32_t;
18964 #endif
18965 /* assuming the system has a "long long" */
18966 #ifndef _HAVE_UINT64_T
18967 #define _HAVE_UINT64_T
18968 #define _HAVE_LONGLONG_UINT64_T
18969 typedef unsigned long long uint64_t;
18970 typedef          long long  int64_t;
18971 #endif
18972 #else
18973 #define _STDINT_NO_INT32_T
18974 #endif
18975 #else
18976 #define _STDINT_NO_INT8_T
18977 #define _STDINT_NO_INT32_T
18978 #endif
18979 #endif
18980
18981 /*
18982  * quote from SunOS-5.8 sys/inttypes.h:
18983  * Use at your own risk.  As of February 1996, the committee is squarely
18984  * behind the fixed sized types; the "least" and "fast" types are still being
18985  * discussed.  The probability that the "fast" types may be removed before
18986  * the standard is finalized is high enough that they are not currently
18987  * implemented.
18988  */
18989
18990 #if defined _STDINT_NEED_INT_LEAST_T
18991 typedef  int8_t    int_least8_t;
18992 typedef  int16_t   int_least16_t;
18993 typedef  int32_t   int_least32_t;
18994 #ifdef _HAVE_UINT64_T
18995 typedef  int64_t   int_least64_t;
18996 #endif
18997
18998 typedef uint8_t   uint_least8_t;
18999 typedef uint16_t  uint_least16_t;
19000 typedef uint32_t  uint_least32_t;
19001 #ifdef _HAVE_UINT64_T
19002 typedef uint64_t  uint_least64_t;
19003 #endif
19004   /* least types */
19005 #endif
19006
19007 #if defined _STDINT_NEED_INT_FAST_T
19008 typedef  int8_t    int_fast8_t;
19009 typedef  int       int_fast16_t;
19010 typedef  int32_t   int_fast32_t;
19011 #ifdef _HAVE_UINT64_T
19012 typedef  int64_t   int_fast64_t;
19013 #endif
19014
19015 typedef uint8_t   uint_fast8_t;
19016 typedef unsigned  uint_fast16_t;
19017 typedef uint32_t  uint_fast32_t;
19018 #ifdef _HAVE_UINT64_T
19019 typedef uint64_t  uint_fast64_t;
19020 #endif
19021   /* fast types */
19022 #endif
19023
19024 #ifdef _STDINT_NEED_INTMAX_T
19025 #ifdef _HAVE_UINT64_T
19026 typedef  int64_t       intmax_t;
19027 typedef uint64_t      uintmax_t;
19028 #else
19029 typedef          long  intmax_t;
19030 typedef unsigned long uintmax_t;
19031 #endif
19032 #endif
19033
19034 #ifdef _STDINT_NEED_INTPTR_T
19035 #ifndef __intptr_t_defined
19036 #define __intptr_t_defined
19037 /* we encourage using "long" to store pointer values, never use "int" ! */
19038 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
19039 typedef  unsigned int   uintptr_t;
19040 typedef           int    intptr_t;
19041 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
19042 typedef  unsigned long  uintptr_t;
19043 typedef           long   intptr_t;
19044 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
19045 typedef        uint64_t uintptr_t;
19046 typedef         int64_t  intptr_t;
19047 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
19048 typedef  unsigned long  uintptr_t;
19049 typedef           long   intptr_t;
19050 #endif
19051 #endif
19052 #endif
19053
19054 /* The ISO C99 standard specifies that in C++ implementations these
19055    should only be defined if explicitly requested.  */
19056 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
19057 #ifndef UINT32_C
19058
19059 /* Signed.  */
19060 # define INT8_C(c)      c
19061 # define INT16_C(c)     c
19062 # define INT32_C(c)     c
19063 # ifdef _HAVE_LONGLONG_UINT64_T
19064 #  define INT64_C(c)    c ## L
19065 # else
19066 #  define INT64_C(c)    c ## LL
19067 # endif
19068
19069 /* Unsigned.  */
19070 # define UINT8_C(c)     c ## U
19071 # define UINT16_C(c)    c ## U
19072 # define UINT32_C(c)    c ## U
19073 # ifdef _HAVE_LONGLONG_UINT64_T
19074 #  define UINT64_C(c)   c ## UL
19075 # else
19076 #  define UINT64_C(c)   c ## ULL
19077 # endif
19078
19079 /* Maximal type.  */
19080 # ifdef _HAVE_LONGLONG_UINT64_T
19081 #  define INTMAX_C(c)   c ## L
19082 #  define UINTMAX_C(c)  c ## UL
19083 # else
19084 #  define INTMAX_C(c)   c ## LL
19085 #  define UINTMAX_C(c)  c ## ULL
19086 # endif
19087
19088   /* literalnumbers */
19089 #endif
19090 #endif
19091
19092 /* These limits are merily those of a two complement byte-oriented system */
19093
19094 /* Minimum of signed integral types.  */
19095 # define INT8_MIN               (-128)
19096 # define INT16_MIN              (-32767-1)
19097 # define INT32_MIN              (-2147483647-1)
19098 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
19099 /* Maximum of signed integral types.  */
19100 # define INT8_MAX               (127)
19101 # define INT16_MAX              (32767)
19102 # define INT32_MAX              (2147483647)
19103 # define INT64_MAX              (__INT64_C(9223372036854775807))
19104
19105 /* Maximum of unsigned integral types.  */
19106 # define UINT8_MAX              (255)
19107 # define UINT16_MAX             (65535)
19108 # define UINT32_MAX             (4294967295U)
19109 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
19110
19111 /* Minimum of signed integral types having a minimum size.  */
19112 # define INT_LEAST8_MIN         INT8_MIN
19113 # define INT_LEAST16_MIN        INT16_MIN
19114 # define INT_LEAST32_MIN        INT32_MIN
19115 # define INT_LEAST64_MIN        INT64_MIN
19116 /* Maximum of signed integral types having a minimum size.  */
19117 # define INT_LEAST8_MAX         INT8_MAX
19118 # define INT_LEAST16_MAX        INT16_MAX
19119 # define INT_LEAST32_MAX        INT32_MAX
19120 # define INT_LEAST64_MAX        INT64_MAX
19121
19122 /* Maximum of unsigned integral types having a minimum size.  */
19123 # define UINT_LEAST8_MAX        UINT8_MAX
19124 # define UINT_LEAST16_MAX       UINT16_MAX
19125 # define UINT_LEAST32_MAX       UINT32_MAX
19126 # define UINT_LEAST64_MAX       UINT64_MAX
19127
19128   /* shortcircuit*/
19129 #endif
19130   /* once */
19131 #endif
19132 #endif
19133 STDINT_EOF
19134 fi
19135     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
19136       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
19137 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
19138     else
19139       ac_dir=`$as_dirname -- "$ac_stdint_h" ||
19140 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19141          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
19142          X"$ac_stdint_h" : 'X\(//\)$' \| \
19143          X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
19144 $as_echo X"$ac_stdint_h" |
19145     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19146             s//\1/
19147             q
19148           }
19149           /^X\(\/\/\)[^/].*/{
19150             s//\1/
19151             q
19152           }
19153           /^X\(\/\/\)$/{
19154             s//\1/
19155             q
19156           }
19157           /^X\(\/\).*/{
19158             s//\1/
19159             q
19160           }
19161           s/.*/./; q'`
19162       as_dir="$ac_dir"; as_fn_mkdir_p
19163       rm -f $ac_stdint_h
19164       mv $ac_stdint $ac_stdint_h
19165     fi
19166  ;;
19167
19168   esac
19169 done # for ac_tag
19170
19171
19172 as_fn_exit 0
19173 _ACEOF
19174 ac_clean_files=$ac_clean_files_save
19175
19176 test $ac_write_fail = 0 ||
19177   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19178
19179
19180 # configure is writing to config.log, and then calls config.status.
19181 # config.status does its own redirection, appending to config.log.
19182 # Unfortunately, on DOS this fails, as config.log is still kept open
19183 # by configure, so config.status won't be able to write to it; its
19184 # output is simply discarded.  So we exec the FD to /dev/null,
19185 # effectively closing config.log, so it can be properly (re)opened and
19186 # appended to by config.status.  When coming back to configure, we
19187 # need to make the FD available again.
19188 if test "$no_create" != yes; then
19189   ac_cs_success=:
19190   ac_config_status_args=
19191   test "$silent" = yes &&
19192     ac_config_status_args="$ac_config_status_args --quiet"
19193   exec 5>/dev/null
19194   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19195   exec 5>>config.log
19196   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19197   # would make configure fail if this is the last instruction.
19198   $ac_cs_success || as_fn_exit 1
19199 fi
19200 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19201   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19202 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19203 fi
19204