cc5da944b7faafc34bc8dcb51c8367c9f56b63a5
[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.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="fonts.dtd"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_header_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 DOCMAN3
638 ENABLE_DOCS_FALSE
639 ENABLE_DOCS_TRUE
640 USEDOCBOOK_FALSE
641 USEDOCBOOK_TRUE
642 HASDOCBOOK
643 HAVE_PTHREAD_FALSE
644 HAVE_PTHREAD_TRUE
645 PTHREAD_CFLAGS
646 PTHREAD_LIBS
647 PTHREAD_CC
648 ax_pthread_config
649 XMLDIR
650 xmldir
651 CONFIGDIR
652 configdir
653 BASECONFIGDIR
654 baseconfigdir
655 TEMPLATEDIR
656 templatedir
657 FC_FONTDATE
658 FC_CACHEDIR
659 fc_cachedir
660 FC_FONTPATH
661 FC_ADD_FONTS
662 FC_DEFAULT_FONTS
663 LIBXML2_LIBS
664 LIBXML2_CFLAGS
665 HAVE_XMLPARSE_H
666 EXPAT_LIBS
667 EXPAT_CFLAGS
668 FREETYPE_LIBS
669 FREETYPE_CFLAGS
670 ICONV_LIBS
671 ICONV_CFLAGS
672 ENABLE_SHARED_FALSE
673 ENABLE_SHARED_TRUE
674 CROSS_COMPILING_FALSE
675 CROSS_COMPILING_TRUE
676 EXEEXT_FOR_BUILD
677 CC_FOR_BUILD
678 WARN_CFLAGS
679 MS_LIB_AVAILABLE_FALSE
680 MS_LIB_AVAILABLE_TRUE
681 ms_librarian
682 OS_WIN32_FALSE
683 OS_WIN32_TRUE
684 RM
685 PKG_CONFIG_LIBDIR
686 PKG_CONFIG_PATH
687 PKG_CONFIG
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
693 MANIFEST_TOOL
694 RANLIB
695 ac_ct_AR
696 AR
697 NM
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 SED
703 LIBTOOL
704 OBJDUMP
705 DLLTOOL
706 AS
707 host_os
708 host_vendor
709 host_cpu
710 host
711 build_os
712 build_vendor
713 build_cpu
714 build
715 LN_S
716 EGREP
717 GREP
718 CPP
719 am__fastdepCC_FALSE
720 am__fastdepCC_TRUE
721 CCDEPMODE
722 am__nodep
723 AMDEPBACKSLASH
724 AMDEP_FALSE
725 AMDEP_TRUE
726 am__quote
727 am__include
728 DEPDIR
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 LIBT_CURRENT_MINUS_AGE
737 LIBT_VERSION_INFO
738 LIBT_REVISION
739 LIBT_CURRENT
740 AM_BACKSLASH
741 AM_DEFAULT_VERBOSITY
742 AM_DEFAULT_V
743 AM_V
744 am__untar
745 am__tar
746 AMTAR
747 am__leading_dot
748 SET_MAKE
749 AWK
750 mkdir_p
751 MKDIR_P
752 INSTALL_STRIP_PROGRAM
753 STRIP
754 install_sh
755 MAKEINFO
756 AUTOHEADER
757 AUTOMAKE
758 AUTOCONF
759 ACLOCAL
760 VERSION
761 PACKAGE
762 CYGPATH_W
763 am__isrc
764 INSTALL_DATA
765 INSTALL_SCRIPT
766 INSTALL_PROGRAM
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 enable_silent_rules
809 enable_dependency_tracking
810 enable_largefile
811 enable_shared
812 enable_static
813 with_pic
814 enable_fast_install
815 with_gnu_ld
816 with_sysroot
817 enable_libtool_lock
818 with_arch
819 enable_iconv
820 with_libiconv
821 with_libiconv_includes
822 with_libiconv_lib
823 with_expat
824 with_expat_includes
825 with_expat_lib
826 enable_libxml2
827 with_default_fonts
828 with_add_fonts
829 with_cache_dir
830 with_templatedir
831 with_baseconfigdir
832 with_configdir
833 with_xmldir
834 enable_docs
835 '
836       ac_precious_vars='build_alias
837 host_alias
838 target_alias
839 CC
840 CFLAGS
841 LDFLAGS
842 LIBS
843 CPPFLAGS
844 CPP
845 PKG_CONFIG
846 PKG_CONFIG_PATH
847 PKG_CONFIG_LIBDIR
848 CC_FOR_BUILD
849 FREETYPE_CFLAGS
850 FREETYPE_LIBS
851 EXPAT_CFLAGS
852 EXPAT_LIBS
853 LIBXML2_CFLAGS
854 LIBXML2_LIBS'
855
856
857 # Initialize some variables set by options.
858 ac_init_help=
859 ac_init_version=false
860 ac_unrecognized_opts=
861 ac_unrecognized_sep=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
864 cache_file=/dev/null
865 exec_prefix=NONE
866 no_create=
867 no_recursion=
868 prefix=NONE
869 program_prefix=NONE
870 program_suffix=NONE
871 program_transform_name=s,x,x,
872 silent=
873 site=
874 srcdir=
875 verbose=
876 x_includes=NONE
877 x_libraries=NONE
878
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
904
905 ac_prev=
906 ac_dashdash=
907 for ac_option
908 do
909   # If the previous option needs an argument, assign it.
910   if test -n "$ac_prev"; then
911     eval $ac_prev=\$ac_option
912     ac_prev=
913     continue
914   fi
915
916   case $ac_option in
917   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918   *=)   ac_optarg= ;;
919   *)    ac_optarg=yes ;;
920   esac
921
922   # Accept the important Cygnus configure options, so we can diagnose typos.
923
924   case $ac_dashdash$ac_option in
925   --)
926     ac_dashdash=yes ;;
927
928   -bindir | --bindir | --bindi | --bind | --bin | --bi)
929     ac_prev=bindir ;;
930   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931     bindir=$ac_optarg ;;
932
933   -build | --build | --buil | --bui | --bu)
934     ac_prev=build_alias ;;
935   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
936     build_alias=$ac_optarg ;;
937
938   -cache-file | --cache-file | --cache-fil | --cache-fi \
939   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
940     ac_prev=cache_file ;;
941   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
942   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
943     cache_file=$ac_optarg ;;
944
945   --config-cache | -C)
946     cache_file=config.cache ;;
947
948   -datadir | --datadir | --datadi | --datad)
949     ac_prev=datadir ;;
950   -datadir=* | --datadir=* | --datadi=* | --datad=*)
951     datadir=$ac_optarg ;;
952
953   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
954   | --dataroo | --dataro | --datar)
955     ac_prev=datarootdir ;;
956   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
957   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
958     datarootdir=$ac_optarg ;;
959
960   -disable-* | --disable-*)
961     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
962     # Reject names that are not valid shell variable names.
963     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964       as_fn_error $? "invalid feature name: $ac_useropt"
965     ac_useropt_orig=$ac_useropt
966     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967     case $ac_user_opts in
968       *"
969 "enable_$ac_useropt"
970 "*) ;;
971       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
972          ac_unrecognized_sep=', ';;
973     esac
974     eval enable_$ac_useropt=no ;;
975
976   -docdir | --docdir | --docdi | --doc | --do)
977     ac_prev=docdir ;;
978   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
979     docdir=$ac_optarg ;;
980
981   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982     ac_prev=dvidir ;;
983   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
984     dvidir=$ac_optarg ;;
985
986   -enable-* | --enable-*)
987     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
988     # Reject names that are not valid shell variable names.
989     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990       as_fn_error $? "invalid feature name: $ac_useropt"
991     ac_useropt_orig=$ac_useropt
992     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993     case $ac_user_opts in
994       *"
995 "enable_$ac_useropt"
996 "*) ;;
997       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998          ac_unrecognized_sep=', ';;
999     esac
1000     eval enable_$ac_useropt=\$ac_optarg ;;
1001
1002   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004   | --exec | --exe | --ex)
1005     ac_prev=exec_prefix ;;
1006   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008   | --exec=* | --exe=* | --ex=*)
1009     exec_prefix=$ac_optarg ;;
1010
1011   -gas | --gas | --ga | --g)
1012     # Obsolete; use --with-gas.
1013     with_gas=yes ;;
1014
1015   -help | --help | --hel | --he | -h)
1016     ac_init_help=long ;;
1017   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018     ac_init_help=recursive ;;
1019   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020     ac_init_help=short ;;
1021
1022   -host | --host | --hos | --ho)
1023     ac_prev=host_alias ;;
1024   -host=* | --host=* | --hos=* | --ho=*)
1025     host_alias=$ac_optarg ;;
1026
1027   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028     ac_prev=htmldir ;;
1029   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030   | --ht=*)
1031     htmldir=$ac_optarg ;;
1032
1033   -includedir | --includedir | --includedi | --included | --include \
1034   | --includ | --inclu | --incl | --inc)
1035     ac_prev=includedir ;;
1036   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037   | --includ=* | --inclu=* | --incl=* | --inc=*)
1038     includedir=$ac_optarg ;;
1039
1040   -infodir | --infodir | --infodi | --infod | --info | --inf)
1041     ac_prev=infodir ;;
1042   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043     infodir=$ac_optarg ;;
1044
1045   -libdir | --libdir | --libdi | --libd)
1046     ac_prev=libdir ;;
1047   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048     libdir=$ac_optarg ;;
1049
1050   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051   | --libexe | --libex | --libe)
1052     ac_prev=libexecdir ;;
1053   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054   | --libexe=* | --libex=* | --libe=*)
1055     libexecdir=$ac_optarg ;;
1056
1057   -localedir | --localedir | --localedi | --localed | --locale)
1058     ac_prev=localedir ;;
1059   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060     localedir=$ac_optarg ;;
1061
1062   -localstatedir | --localstatedir | --localstatedi | --localstated \
1063   | --localstate | --localstat | --localsta | --localst | --locals)
1064     ac_prev=localstatedir ;;
1065   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067     localstatedir=$ac_optarg ;;
1068
1069   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070     ac_prev=mandir ;;
1071   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072     mandir=$ac_optarg ;;
1073
1074   -nfp | --nfp | --nf)
1075     # Obsolete; use --without-fp.
1076     with_fp=no ;;
1077
1078   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079   | --no-cr | --no-c | -n)
1080     no_create=yes ;;
1081
1082   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084     no_recursion=yes ;;
1085
1086   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088   | --oldin | --oldi | --old | --ol | --o)
1089     ac_prev=oldincludedir ;;
1090   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093     oldincludedir=$ac_optarg ;;
1094
1095   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096     ac_prev=prefix ;;
1097   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098     prefix=$ac_optarg ;;
1099
1100   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101   | --program-pre | --program-pr | --program-p)
1102     ac_prev=program_prefix ;;
1103   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105     program_prefix=$ac_optarg ;;
1106
1107   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108   | --program-suf | --program-su | --program-s)
1109     ac_prev=program_suffix ;;
1110   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112     program_suffix=$ac_optarg ;;
1113
1114   -program-transform-name | --program-transform-name \
1115   | --program-transform-nam | --program-transform-na \
1116   | --program-transform-n | --program-transform- \
1117   | --program-transform | --program-transfor \
1118   | --program-transfo | --program-transf \
1119   | --program-trans | --program-tran \
1120   | --progr-tra | --program-tr | --program-t)
1121     ac_prev=program_transform_name ;;
1122   -program-transform-name=* | --program-transform-name=* \
1123   | --program-transform-nam=* | --program-transform-na=* \
1124   | --program-transform-n=* | --program-transform-=* \
1125   | --program-transform=* | --program-transfor=* \
1126   | --program-transfo=* | --program-transf=* \
1127   | --program-trans=* | --program-tran=* \
1128   | --progr-tra=* | --program-tr=* | --program-t=*)
1129     program_transform_name=$ac_optarg ;;
1130
1131   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132     ac_prev=pdfdir ;;
1133   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134     pdfdir=$ac_optarg ;;
1135
1136   -psdir | --psdir | --psdi | --psd | --ps)
1137     ac_prev=psdir ;;
1138   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139     psdir=$ac_optarg ;;
1140
1141   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142   | -silent | --silent | --silen | --sile | --sil)
1143     silent=yes ;;
1144
1145   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146     ac_prev=sbindir ;;
1147   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148   | --sbi=* | --sb=*)
1149     sbindir=$ac_optarg ;;
1150
1151   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153   | --sharedst | --shareds | --shared | --share | --shar \
1154   | --sha | --sh)
1155     ac_prev=sharedstatedir ;;
1156   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159   | --sha=* | --sh=*)
1160     sharedstatedir=$ac_optarg ;;
1161
1162   -site | --site | --sit)
1163     ac_prev=site ;;
1164   -site=* | --site=* | --sit=*)
1165     site=$ac_optarg ;;
1166
1167   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168     ac_prev=srcdir ;;
1169   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170     srcdir=$ac_optarg ;;
1171
1172   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173   | --syscon | --sysco | --sysc | --sys | --sy)
1174     ac_prev=sysconfdir ;;
1175   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177     sysconfdir=$ac_optarg ;;
1178
1179   -target | --target | --targe | --targ | --tar | --ta | --t)
1180     ac_prev=target_alias ;;
1181   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182     target_alias=$ac_optarg ;;
1183
1184   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185     verbose=yes ;;
1186
1187   -version | --version | --versio | --versi | --vers | -V)
1188     ac_init_version=: ;;
1189
1190   -with-* | --with-*)
1191     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194       as_fn_error $? "invalid package name: $ac_useropt"
1195     ac_useropt_orig=$ac_useropt
1196     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197     case $ac_user_opts in
1198       *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202          ac_unrecognized_sep=', ';;
1203     esac
1204     eval with_$ac_useropt=\$ac_optarg ;;
1205
1206   -without-* | --without-*)
1207     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208     # Reject names that are not valid shell variable names.
1209     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210       as_fn_error $? "invalid package name: $ac_useropt"
1211     ac_useropt_orig=$ac_useropt
1212     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213     case $ac_user_opts in
1214       *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218          ac_unrecognized_sep=', ';;
1219     esac
1220     eval with_$ac_useropt=no ;;
1221
1222   --x)
1223     # Obsolete; use --with-x.
1224     with_x=yes ;;
1225
1226   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227   | --x-incl | --x-inc | --x-in | --x-i)
1228     ac_prev=x_includes ;;
1229   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231     x_includes=$ac_optarg ;;
1232
1233   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235     ac_prev=x_libraries ;;
1236   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238     x_libraries=$ac_optarg ;;
1239
1240   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1241 Try \`$0 --help' for more information"
1242     ;;
1243
1244   *=*)
1245     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246     # Reject names that are not valid shell variable names.
1247     case $ac_envvar in #(
1248       '' | [0-9]* | *[!_$as_cr_alnum]* )
1249       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1250     esac
1251     eval $ac_envvar=\$ac_optarg
1252     export $ac_envvar ;;
1253
1254   *)
1255     # FIXME: should be removed in autoconf 3.0.
1256     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1260     ;;
1261
1262   esac
1263 done
1264
1265 if test -n "$ac_prev"; then
1266   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267   as_fn_error $? "missing argument to $ac_option"
1268 fi
1269
1270 if test -n "$ac_unrecognized_opts"; then
1271   case $enable_option_checking in
1272     no) ;;
1273     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1274     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275   esac
1276 fi
1277
1278 # Check all directory arguments for consistency.
1279 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280                 datadir sysconfdir sharedstatedir localstatedir includedir \
1281                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282                 libdir localedir mandir
1283 do
1284   eval ac_val=\$$ac_var
1285   # Remove trailing slashes.
1286   case $ac_val in
1287     */ )
1288       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289       eval $ac_var=\$ac_val;;
1290   esac
1291   # Be sure to have absolute directory names.
1292   case $ac_val in
1293     [\\/$]* | ?:[\\/]* )  continue;;
1294     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295   esac
1296   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1297 done
1298
1299 # There might be people who depend on the old broken behavior: `$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1302 build=$build_alias
1303 host=$host_alias
1304 target=$target_alias
1305
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x; then
1308   if test "x$build_alias" = x; then
1309     cross_compiling=maybe
1310   elif test "x$build_alias" != "x$host_alias"; then
1311     cross_compiling=yes
1312   fi
1313 fi
1314
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318 test "$silent" = yes && exec 6>/dev/null
1319
1320
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324   as_fn_error $? "working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326   as_fn_error $? "pwd does not report name of working directory"
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331   ac_srcdir_defaulted=yes
1332   # Try the directory containing this script, then the parent directory.
1333   ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335          X"$as_myself" : 'X\(//\)[^/]' \| \
1336          X"$as_myself" : 'X\(//\)$' \| \
1337          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)[^/].*/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\/\)$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\).*/{
1352             s//\1/
1353             q
1354           }
1355           s/.*/./; q'`
1356   srcdir=$ac_confdir
1357   if test ! -r "$srcdir/$ac_unique_file"; then
1358     srcdir=..
1359   fi
1360 else
1361   ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366 fi
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370         pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373   srcdir=.
1374 fi
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383   eval ac_env_${ac_var}_value=\$${ac_var}
1384   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1387
1388 #
1389 # Report the --help message.
1390 #
1391 if test "$ac_init_help" = "long"; then
1392   # Omit some internal or obsolete options to make the list less imposing.
1393   # This message is too long to be a string in the A/UX 3.1 sh.
1394   cat <<_ACEOF
1395 \`configure' configures this package to adapt to many kinds of systems.
1396
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402 Defaults for the options are specified in brackets.
1403
1404 Configuration:
1405   -h, --help              display this help and exit
1406       --help=short        display options specific to this package
1407       --help=recursive    display the short help of all the included packages
1408   -V, --version           display version information and exit
1409   -q, --quiet, --silent   do not print \`checking ...' messages
1410       --cache-file=FILE   cache test results in FILE [disabled]
1411   -C, --config-cache      alias for \`--cache-file=config.cache'
1412   -n, --no-create         do not create output files
1413       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1414
1415 Installation directories:
1416   --prefix=PREFIX         install architecture-independent files in PREFIX
1417                           [$ac_default_prefix]
1418   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419                           [PREFIX]
1420
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1425
1426 For better control, use the options below.
1427
1428 Fine tuning of the installation directories:
1429   --bindir=DIR            user executables [EPREFIX/bin]
1430   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1431   --libexecdir=DIR        program executables [EPREFIX/libexec]
1432   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1433   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1434   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1435   --libdir=DIR            object code libraries [EPREFIX/lib]
1436   --includedir=DIR        C header files [PREFIX/include]
1437   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1438   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1439   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1440   --infodir=DIR           info documentation [DATAROOTDIR/info]
1441   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1442   --mandir=DIR            man documentation [DATAROOTDIR/man]
1443   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1444   --htmldir=DIR           html documentation [DOCDIR]
1445   --dvidir=DIR            dvi documentation [DOCDIR]
1446   --pdfdir=DIR            pdf documentation [DOCDIR]
1447   --psdir=DIR             ps documentation [DOCDIR]
1448 _ACEOF
1449
1450   cat <<\_ACEOF
1451
1452 Program names:
1453   --program-prefix=PREFIX            prepend PREFIX to installed program names
1454   --program-suffix=SUFFIX            append SUFFIX to installed program names
1455   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1456
1457 System types:
1458   --build=BUILD     configure for building on BUILD [guessed]
1459   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1460 _ACEOF
1461 fi
1462
1463 if test -n "$ac_init_help"; then
1464
1465   cat <<\_ACEOF
1466
1467 Optional Features:
1468   --disable-option-checking  ignore unrecognized --enable/--with options
1469   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1470   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1471   --enable-silent-rules   less verbose build output (undo: "make V=1")
1472   --disable-silent-rules  verbose build output (undo: "make V=0")
1473   --enable-dependency-tracking
1474                           do not reject slow dependency extractors
1475   --disable-dependency-tracking
1476                           speeds up one-time build
1477   --disable-largefile     omit support for large files
1478   --enable-shared[=PKGS]  build shared libraries [default=yes]
1479   --enable-static[=PKGS]  build static libraries [default=yes]
1480   --enable-fast-install[=PKGS]
1481                           optimize for fast installation [default=yes]
1482   --disable-libtool-lock  avoid locking (might break parallel builds)
1483   --enable-iconv          Use iconv to support non-Unicode SFNT name
1484   --enable-libxml2        Use libxml2 instead of Expat
1485   --disable-docs          Don't build and install documentation
1486
1487 Optional Packages:
1488   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1489   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1490   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1491                           both]
1492   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1493   --with-sysroot=DIR Search for dependent libraries within DIR
1494                         (or the compiler's sysroot if not specified).
1495   --with-arch=ARCH        Force architecture to ARCH
1496   --with-libiconv=DIR     Use libiconv in DIR
1497   --with-libiconv-includes=DIR
1498                           Use libiconv includes in DIR
1499   --with-libiconv-lib=DIR Use libiconv library in DIR
1500   --with-expat=DIR        Use Expat in DIR
1501   --with-expat-includes=DIR
1502                           Use Expat includes in DIR
1503   --with-expat-lib=DIR
1504   --with-default-fonts=DIR
1505                           Use fonts from DIR when config is busted
1506   --with-add-fonts=DIR1,DIR2,...
1507                           Find additional fonts in DIR1,DIR2,...
1508   --with-cache-dir=DIR    Use DIR to store cache files
1509                           [default=LOCALSTATEDIR/cache/fontconfig]
1510   --with-templatedir=DIR  Use DIR to store the configuration template files
1511                           [default=DATADIR/fontconfig/conf.avail]
1512   --with-baseconfigdir=DIR
1513                           Use DIR to store the base configuration files
1514                           [default=SYSCONFDIR/fonts]
1515   --with-configdir=DIR    Use DIR to store active configuration files
1516                           [default=BASECONFIGDIR/conf.d]
1517   --with-xmldir=DIR       Use DIR to store XML schema files
1518                           [default=DATADIR/xml/fontconfig]
1519
1520 Some influential environment variables:
1521   CC          C compiler command
1522   CFLAGS      C compiler flags
1523   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1524               nonstandard directory <lib dir>
1525   LIBS        libraries to pass to the linker, e.g. -l<library>
1526   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1527               you have headers in a nonstandard directory <include dir>
1528   CPP         C preprocessor
1529   PKG_CONFIG  path to pkg-config utility
1530   PKG_CONFIG_PATH
1531               directories to add to pkg-config's search path
1532   PKG_CONFIG_LIBDIR
1533               path overriding pkg-config's built-in search path
1534   CC_FOR_BUILD
1535               build system C compiler
1536   FREETYPE_CFLAGS
1537               C compiler flags for FREETYPE, overriding pkg-config
1538   FREETYPE_LIBS
1539               linker flags for FREETYPE, overriding pkg-config
1540   EXPAT_CFLAGS
1541               C compiler flags for EXPAT, overriding pkg-config
1542   EXPAT_LIBS  linker flags for EXPAT, overriding pkg-config
1543   LIBXML2_CFLAGS
1544               C compiler flags for LIBXML2, overriding pkg-config
1545   LIBXML2_LIBS
1546               linker flags for LIBXML2, overriding pkg-config
1547
1548 Use these variables to override the choices made by `configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1550
1551 Report bugs to the package provider.
1552 _ACEOF
1553 ac_status=$?
1554 fi
1555
1556 if test "$ac_init_help" = "recursive"; then
1557   # If there are subdirs, report their specific --help.
1558   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1559     test -d "$ac_dir" ||
1560       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1561       continue
1562     ac_builddir=.
1563
1564 case "$ac_dir" in
1565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 *)
1567   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1568   # A ".." for each directory in $ac_dir_suffix.
1569   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1570   case $ac_top_builddir_sub in
1571   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573   esac ;;
1574 esac
1575 ac_abs_top_builddir=$ac_pwd
1576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1577 # for backward compatibility:
1578 ac_top_builddir=$ac_top_build_prefix
1579
1580 case $srcdir in
1581   .)  # We are building in place.
1582     ac_srcdir=.
1583     ac_top_srcdir=$ac_top_builddir_sub
1584     ac_abs_top_srcdir=$ac_pwd ;;
1585   [\\/]* | ?:[\\/]* )  # Absolute name.
1586     ac_srcdir=$srcdir$ac_dir_suffix;
1587     ac_top_srcdir=$srcdir
1588     ac_abs_top_srcdir=$srcdir ;;
1589   *) # Relative name.
1590     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1591     ac_top_srcdir=$ac_top_build_prefix$srcdir
1592     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1593 esac
1594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595
1596     cd "$ac_dir" || { ac_status=$?; continue; }
1597     # Check for guested configure.
1598     if test -f "$ac_srcdir/configure.gnu"; then
1599       echo &&
1600       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601     elif test -f "$ac_srcdir/configure"; then
1602       echo &&
1603       $SHELL "$ac_srcdir/configure" --help=recursive
1604     else
1605       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606     fi || ac_status=$?
1607     cd "$ac_pwd" || { ac_status=$?; break; }
1608   done
1609 fi
1610
1611 test -n "$ac_init_help" && exit $ac_status
1612 if $ac_init_version; then
1613   cat <<\_ACEOF
1614 configure
1615 generated by GNU Autoconf 2.69
1616
1617 Copyright (C) 2012 Free Software Foundation, Inc.
1618 This configure script is free software; the Free Software Foundation
1619 gives unlimited permission to copy, distribute and modify it.
1620 _ACEOF
1621   exit
1622 fi
1623
1624 ## ------------------------ ##
1625 ## Autoconf initialization. ##
1626 ## ------------------------ ##
1627
1628 # ac_fn_c_try_compile LINENO
1629 # --------------------------
1630 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_compile ()
1632 {
1633   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634   rm -f conftest.$ac_objext
1635   if { { ac_try="$ac_compile"
1636 case "(($ac_try" in
1637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638   *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642   (eval "$ac_compile") 2>conftest.err
1643   ac_status=$?
1644   if test -s conftest.err; then
1645     grep -v '^ *+' conftest.err >conftest.er1
1646     cat conftest.er1 >&5
1647     mv -f conftest.er1 conftest.err
1648   fi
1649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650   test $ac_status = 0; } && {
1651          test -z "$ac_c_werror_flag" ||
1652          test ! -s conftest.err
1653        } && test -s conftest.$ac_objext; then :
1654   ac_retval=0
1655 else
1656   $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659         ac_retval=1
1660 fi
1661   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662   as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_compile
1665
1666 # ac_fn_c_try_cpp LINENO
1667 # ----------------------
1668 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669 ac_fn_c_try_cpp ()
1670 {
1671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672   if { { ac_try="$ac_cpp conftest.$ac_ext"
1673 case "(($ac_try" in
1674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675   *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680   ac_status=$?
1681   if test -s conftest.err; then
1682     grep -v '^ *+' conftest.err >conftest.er1
1683     cat conftest.er1 >&5
1684     mv -f conftest.er1 conftest.err
1685   fi
1686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687   test $ac_status = 0; } > conftest.i && {
1688          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689          test ! -s conftest.err
1690        }; then :
1691   ac_retval=0
1692 else
1693   $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696     ac_retval=1
1697 fi
1698   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699   as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_cpp
1702
1703 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1706 # the include files in INCLUDES and setting the cache variable VAR
1707 # accordingly.
1708 ac_fn_c_check_header_mongrel ()
1709 {
1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711   if eval \${$3+:} false; then :
1712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715   $as_echo_n "(cached) " >&6
1716 fi
1717 eval ac_res=\$$3
1718                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 else
1721   # Is the header compilable?
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1723 $as_echo_n "checking $2 usability... " >&6; }
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h.  */
1726 $4
1727 #include <$2>
1728 _ACEOF
1729 if ac_fn_c_try_compile "$LINENO"; then :
1730   ac_header_compiler=yes
1731 else
1732   ac_header_compiler=no
1733 fi
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1736 $as_echo "$ac_header_compiler" >&6; }
1737
1738 # Is the header present?
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1740 $as_echo_n "checking $2 presence... " >&6; }
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h.  */
1743 #include <$2>
1744 _ACEOF
1745 if ac_fn_c_try_cpp "$LINENO"; then :
1746   ac_header_preproc=yes
1747 else
1748   ac_header_preproc=no
1749 fi
1750 rm -f conftest.err conftest.i conftest.$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1752 $as_echo "$ac_header_preproc" >&6; }
1753
1754 # So?  What about this header?
1755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1756   yes:no: )
1757     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1758 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1759     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1760 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1761     ;;
1762   no:yes:* )
1763     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1764 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1765     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1766 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1767     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1768 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1769     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1770 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1771     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1772 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1773     ;;
1774 esac
1775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778   $as_echo_n "(cached) " >&6
1779 else
1780   eval "$3=\$ac_header_compiler"
1781 fi
1782 eval ac_res=\$$3
1783                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 fi
1786   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
1788 } # ac_fn_c_check_header_mongrel
1789
1790 # ac_fn_c_try_run LINENO
1791 # ----------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1793 # that executables *can* be run.
1794 ac_fn_c_try_run ()
1795 {
1796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797   if { { ac_try="$ac_link"
1798 case "(($ac_try" in
1799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800   *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804   (eval "$ac_link") 2>&5
1805   ac_status=$?
1806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1808   { { case "(($ac_try" in
1809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810   *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814   (eval "$ac_try") 2>&5
1815   ac_status=$?
1816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817   test $ac_status = 0; }; }; then :
1818   ac_retval=0
1819 else
1820   $as_echo "$as_me: program exited with status $ac_status" >&5
1821        $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824        ac_retval=$ac_status
1825 fi
1826   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828   as_fn_set_status $ac_retval
1829
1830 } # ac_fn_c_try_run
1831
1832 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists and can be compiled using the include files in
1835 # INCLUDES, setting the cache variable VAR accordingly.
1836 ac_fn_c_check_header_compile ()
1837 {
1838   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842   $as_echo_n "(cached) " >&6
1843 else
1844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h.  */
1846 $4
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850   eval "$3=yes"
1851 else
1852   eval "$3=no"
1853 fi
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 fi
1856 eval ac_res=\$$3
1857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861 } # ac_fn_c_check_header_compile
1862
1863 # ac_fn_c_try_link LINENO
1864 # -----------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_link ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   rm -f conftest.$ac_objext conftest$ac_exeext
1870   if { { ac_try="$ac_link"
1871 case "(($ac_try" in
1872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873   *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877   (eval "$ac_link") 2>conftest.err
1878   ac_status=$?
1879   if test -s conftest.err; then
1880     grep -v '^ *+' conftest.err >conftest.er1
1881     cat conftest.er1 >&5
1882     mv -f conftest.er1 conftest.err
1883   fi
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && {
1886          test -z "$ac_c_werror_flag" ||
1887          test ! -s conftest.err
1888        } && test -s conftest$ac_exeext && {
1889          test "$cross_compiling" = yes ||
1890          test -x conftest$ac_exeext
1891        }; then :
1892   ac_retval=0
1893 else
1894   $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1896
1897         ac_retval=1
1898 fi
1899   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901   # interfere with the next link command; also delete a directory that is
1902   # left behind by Apple's compiler.  We do this before executing the actions.
1903   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905   as_fn_set_status $ac_retval
1906
1907 } # ac_fn_c_try_link
1908
1909 # ac_fn_c_check_func LINENO FUNC VAR
1910 # ----------------------------------
1911 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1912 ac_fn_c_check_func ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918   $as_echo_n "(cached) " >&6
1919 else
1920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h.  */
1922 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1924 #define $2 innocuous_$2
1925
1926 /* System header to define __stub macros and hopefully few prototypes,
1927     which can conflict with char $2 (); below.
1928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1929     <limits.h> exists even on freestanding compilers.  */
1930
1931 #ifdef __STDC__
1932 # include <limits.h>
1933 #else
1934 # include <assert.h>
1935 #endif
1936
1937 #undef $2
1938
1939 /* Override any GCC internal prototype to avoid an error.
1940    Use char because int might match the return type of a GCC
1941    builtin and then its argument prototype would still apply.  */
1942 #ifdef __cplusplus
1943 extern "C"
1944 #endif
1945 char $2 ();
1946 /* The GNU C library defines this for functions which it implements
1947     to always fail with ENOSYS.  Some functions are actually named
1948     something starting with __ and the normal name is an alias.  */
1949 #if defined __stub_$2 || defined __stub___$2
1950 choke me
1951 #endif
1952
1953 int
1954 main ()
1955 {
1956 return $2 ();
1957   ;
1958   return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_link "$LINENO"; then :
1962   eval "$3=yes"
1963 else
1964   eval "$3=no"
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext \
1967     conftest$ac_exeext conftest.$ac_ext
1968 fi
1969 eval ac_res=\$$3
1970                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974 } # ac_fn_c_check_func
1975
1976 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1977 # -------------------------------------------
1978 # Tests whether TYPE exists after having included INCLUDES, setting cache
1979 # variable VAR accordingly.
1980 ac_fn_c_check_type ()
1981 {
1982   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986   $as_echo_n "(cached) " >&6
1987 else
1988   eval "$3=no"
1989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h.  */
1991 $4
1992 int
1993 main ()
1994 {
1995 if (sizeof ($2))
1996          return 0;
1997   ;
1998   return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h.  */
2004 $4
2005 int
2006 main ()
2007 {
2008 if (sizeof (($2)))
2009             return 0;
2010   ;
2011   return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015
2016 else
2017   eval "$3=yes"
2018 fi
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 fi
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 fi
2023 eval ac_res=\$$3
2024                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027
2028 } # ac_fn_c_check_type
2029
2030 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2031 # --------------------------------------------
2032 # Tries to find the compile-time value of EXPR in a program that includes
2033 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2034 # computed
2035 ac_fn_c_compute_int ()
2036 {
2037   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038   if test "$cross_compiling" = yes; then
2039     # Depending upon the size, compute the lo and hi bounds.
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h.  */
2042 $4
2043 int
2044 main ()
2045 {
2046 static int test_array [1 - 2 * !(($2) >= 0)];
2047 test_array [0] = 0;
2048 return test_array [0];
2049
2050   ;
2051   return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055   ac_lo=0 ac_mid=0
2056   while :; do
2057     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h.  */
2059 $4
2060 int
2061 main ()
2062 {
2063 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2064 test_array [0] = 0;
2065 return test_array [0];
2066
2067   ;
2068   return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072   ac_hi=$ac_mid; break
2073 else
2074   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2075                         if test $ac_lo -le $ac_mid; then
2076                           ac_lo= ac_hi=
2077                           break
2078                         fi
2079                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2080 fi
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082   done
2083 else
2084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h.  */
2086 $4
2087 int
2088 main ()
2089 {
2090 static int test_array [1 - 2 * !(($2) < 0)];
2091 test_array [0] = 0;
2092 return test_array [0];
2093
2094   ;
2095   return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099   ac_hi=-1 ac_mid=-1
2100   while :; do
2101     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h.  */
2103 $4
2104 int
2105 main ()
2106 {
2107 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2108 test_array [0] = 0;
2109 return test_array [0];
2110
2111   ;
2112   return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116   ac_lo=$ac_mid; break
2117 else
2118   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2119                         if test $ac_mid -le $ac_hi; then
2120                           ac_lo= ac_hi=
2121                           break
2122                         fi
2123                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126   done
2127 else
2128   ac_lo= ac_hi=
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 fi
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 # Binary search between lo and hi bounds.
2134 while test "x$ac_lo" != "x$ac_hi"; do
2135   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h.  */
2138 $4
2139 int
2140 main ()
2141 {
2142 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2143 test_array [0] = 0;
2144 return test_array [0];
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151   ac_hi=$ac_mid
2152 else
2153   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2154 fi
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 done
2157 case $ac_lo in #((
2158 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2159 '') ac_retval=1 ;;
2160 esac
2161   else
2162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h.  */
2164 $4
2165 static long int longval () { return $2; }
2166 static unsigned long int ulongval () { return $2; }
2167 #include <stdio.h>
2168 #include <stdlib.h>
2169 int
2170 main ()
2171 {
2172
2173   FILE *f = fopen ("conftest.val", "w");
2174   if (! f)
2175     return 1;
2176   if (($2) < 0)
2177     {
2178       long int i = longval ();
2179       if (i != ($2))
2180         return 1;
2181       fprintf (f, "%ld", i);
2182     }
2183   else
2184     {
2185       unsigned long int i = ulongval ();
2186       if (i != ($2))
2187         return 1;
2188       fprintf (f, "%lu", i);
2189     }
2190   /* Do not output a trailing newline, as this causes \r\n confusion
2191      on some platforms.  */
2192   return ferror (f) || fclose (f) != 0;
2193
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_run "$LINENO"; then :
2199   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2200 else
2201   ac_retval=1
2202 fi
2203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2204   conftest.$ac_objext conftest.beam conftest.$ac_ext
2205 rm -f conftest.val
2206
2207   fi
2208   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209   as_fn_set_status $ac_retval
2210
2211 } # ac_fn_c_compute_int
2212
2213 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2214 # ----------------------------------------------------
2215 # Tries to find if the field MEMBER exists in type AGGR, after including
2216 # INCLUDES, setting cache variable VAR accordingly.
2217 ac_fn_c_check_member ()
2218 {
2219   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2221 $as_echo_n "checking for $2.$3... " >&6; }
2222 if eval \${$4+:} false; then :
2223   $as_echo_n "(cached) " >&6
2224 else
2225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h.  */
2227 $5
2228 int
2229 main ()
2230 {
2231 static $2 ac_aggr;
2232 if (ac_aggr.$3)
2233 return 0;
2234   ;
2235   return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239   eval "$4=yes"
2240 else
2241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h.  */
2243 $5
2244 int
2245 main ()
2246 {
2247 static $2 ac_aggr;
2248 if (sizeof ac_aggr.$3)
2249 return 0;
2250   ;
2251   return 0;
2252 }
2253 _ACEOF
2254 if ac_fn_c_try_compile "$LINENO"; then :
2255   eval "$4=yes"
2256 else
2257   eval "$4=no"
2258 fi
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 fi
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 fi
2263 eval ac_res=\$$4
2264                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2266   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267
2268 } # ac_fn_c_check_member
2269 cat >config.log <<_ACEOF
2270 This file contains any messages produced by compilers while
2271 running configure, to aid debugging if configure makes a mistake.
2272
2273 It was created by $as_me, which was
2274 generated by GNU Autoconf 2.69.  Invocation command line was
2275
2276   $ $0 $@
2277
2278 _ACEOF
2279 exec 5>>config.log
2280 {
2281 cat <<_ASUNAME
2282 ## --------- ##
2283 ## Platform. ##
2284 ## --------- ##
2285
2286 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2287 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2288 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2289 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2290 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2291
2292 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2293 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2294
2295 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2296 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2297 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2298 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2299 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2300 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2301 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2302
2303 _ASUNAME
2304
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2307 do
2308   IFS=$as_save_IFS
2309   test -z "$as_dir" && as_dir=.
2310     $as_echo "PATH: $as_dir"
2311   done
2312 IFS=$as_save_IFS
2313
2314 } >&5
2315
2316 cat >&5 <<_ACEOF
2317
2318
2319 ## ----------- ##
2320 ## Core tests. ##
2321 ## ----------- ##
2322
2323 _ACEOF
2324
2325
2326 # Keep a trace of the command line.
2327 # Strip out --no-create and --no-recursion so they do not pile up.
2328 # Strip out --silent because we don't want to record it for future runs.
2329 # Also quote any args containing shell meta-characters.
2330 # Make two passes to allow for proper duplicate-argument suppression.
2331 ac_configure_args=
2332 ac_configure_args0=
2333 ac_configure_args1=
2334 ac_must_keep_next=false
2335 for ac_pass in 1 2
2336 do
2337   for ac_arg
2338   do
2339     case $ac_arg in
2340     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2341     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2342     | -silent | --silent | --silen | --sile | --sil)
2343       continue ;;
2344     *\'*)
2345       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2346     esac
2347     case $ac_pass in
2348     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2349     2)
2350       as_fn_append ac_configure_args1 " '$ac_arg'"
2351       if test $ac_must_keep_next = true; then
2352         ac_must_keep_next=false # Got value, back to normal.
2353       else
2354         case $ac_arg in
2355           *=* | --config-cache | -C | -disable-* | --disable-* \
2356           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2357           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2358           | -with-* | --with-* | -without-* | --without-* | --x)
2359             case "$ac_configure_args0 " in
2360               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2361             esac
2362             ;;
2363           -* ) ac_must_keep_next=true ;;
2364         esac
2365       fi
2366       as_fn_append ac_configure_args " '$ac_arg'"
2367       ;;
2368     esac
2369   done
2370 done
2371 { ac_configure_args0=; unset ac_configure_args0;}
2372 { ac_configure_args1=; unset ac_configure_args1;}
2373
2374 # When interrupted or exit'd, cleanup temporary files, and complete
2375 # config.log.  We remove comments because anyway the quotes in there
2376 # would cause problems or look ugly.
2377 # WARNING: Use '\'' to represent an apostrophe within the trap.
2378 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2379 trap 'exit_status=$?
2380   # Save into config.log some information that might help in debugging.
2381   {
2382     echo
2383
2384     $as_echo "## ---------------- ##
2385 ## Cache variables. ##
2386 ## ---------------- ##"
2387     echo
2388     # The following way of writing the cache mishandles newlines in values,
2389 (
2390   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2391     eval ac_val=\$$ac_var
2392     case $ac_val in #(
2393     *${as_nl}*)
2394       case $ac_var in #(
2395       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2397       esac
2398       case $ac_var in #(
2399       _ | IFS | as_nl) ;; #(
2400       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2401       *) { eval $ac_var=; unset $ac_var;} ;;
2402       esac ;;
2403     esac
2404   done
2405   (set) 2>&1 |
2406     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2407     *${as_nl}ac_space=\ *)
2408       sed -n \
2409         "s/'\''/'\''\\\\'\'''\''/g;
2410           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2411       ;; #(
2412     *)
2413       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2414       ;;
2415     esac |
2416     sort
2417 )
2418     echo
2419
2420     $as_echo "## ----------------- ##
2421 ## Output variables. ##
2422 ## ----------------- ##"
2423     echo
2424     for ac_var in $ac_subst_vars
2425     do
2426       eval ac_val=\$$ac_var
2427       case $ac_val in
2428       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2429       esac
2430       $as_echo "$ac_var='\''$ac_val'\''"
2431     done | sort
2432     echo
2433
2434     if test -n "$ac_subst_files"; then
2435       $as_echo "## ------------------- ##
2436 ## File substitutions. ##
2437 ## ------------------- ##"
2438       echo
2439       for ac_var in $ac_subst_files
2440       do
2441         eval ac_val=\$$ac_var
2442         case $ac_val in
2443         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2444         esac
2445         $as_echo "$ac_var='\''$ac_val'\''"
2446       done | sort
2447       echo
2448     fi
2449
2450     if test -s confdefs.h; then
2451       $as_echo "## ----------- ##
2452 ## confdefs.h. ##
2453 ## ----------- ##"
2454       echo
2455       cat confdefs.h
2456       echo
2457     fi
2458     test "$ac_signal" != 0 &&
2459       $as_echo "$as_me: caught signal $ac_signal"
2460     $as_echo "$as_me: exit $exit_status"
2461   } >&5
2462   rm -f core *.core core.conftest.* &&
2463     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2464     exit $exit_status
2465 ' 0
2466 for ac_signal in 1 2 13 15; do
2467   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2468 done
2469 ac_signal=0
2470
2471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2472 rm -f -r conftest* confdefs.h
2473
2474 $as_echo "/* confdefs.h */" > confdefs.h
2475
2476 # Predefined preprocessor variables.
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_NAME "$PACKAGE_NAME"
2480 _ACEOF
2481
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2484 _ACEOF
2485
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2488 _ACEOF
2489
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_STRING "$PACKAGE_STRING"
2492 _ACEOF
2493
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2496 _ACEOF
2497
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_URL "$PACKAGE_URL"
2500 _ACEOF
2501
2502
2503 # Let the site file select an alternate cache file if it wants to.
2504 # Prefer an explicitly selected file to automatically selected ones.
2505 ac_site_file1=NONE
2506 ac_site_file2=NONE
2507 if test -n "$CONFIG_SITE"; then
2508   # We do not want a PATH search for config.site.
2509   case $CONFIG_SITE in #((
2510     -*)  ac_site_file1=./$CONFIG_SITE;;
2511     */*) ac_site_file1=$CONFIG_SITE;;
2512     *)   ac_site_file1=./$CONFIG_SITE;;
2513   esac
2514 elif test "x$prefix" != xNONE; then
2515   ac_site_file1=$prefix/share/config.site
2516   ac_site_file2=$prefix/etc/config.site
2517 else
2518   ac_site_file1=$ac_default_prefix/share/config.site
2519   ac_site_file2=$ac_default_prefix/etc/config.site
2520 fi
2521 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2522 do
2523   test "x$ac_site_file" = xNONE && continue
2524   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2525     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2526 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2527     sed 's/^/| /' "$ac_site_file" >&5
2528     . "$ac_site_file" \
2529       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531 as_fn_error $? "failed to load site script $ac_site_file
2532 See \`config.log' for more details" "$LINENO" 5; }
2533   fi
2534 done
2535
2536 if test -r "$cache_file"; then
2537   # Some versions of bash will fail to source /dev/null (special files
2538   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2539   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2540     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2541 $as_echo "$as_me: loading cache $cache_file" >&6;}
2542     case $cache_file in
2543       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2544       *)                      . "./$cache_file";;
2545     esac
2546   fi
2547 else
2548   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2549 $as_echo "$as_me: creating cache $cache_file" >&6;}
2550   >$cache_file
2551 fi
2552
2553 as_fn_append ac_header_list " stdlib.h"
2554 as_fn_append ac_header_list " unistd.h"
2555 as_fn_append ac_header_list " sys/param.h"
2556 # Check that the precious variables saved in the cache have kept the same
2557 # value.
2558 ac_cache_corrupted=false
2559 for ac_var in $ac_precious_vars; do
2560   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2561   eval ac_new_set=\$ac_env_${ac_var}_set
2562   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2563   eval ac_new_val=\$ac_env_${ac_var}_value
2564   case $ac_old_set,$ac_new_set in
2565     set,)
2566       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2567 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2568       ac_cache_corrupted=: ;;
2569     ,set)
2570       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2571 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2572       ac_cache_corrupted=: ;;
2573     ,);;
2574     *)
2575       if test "x$ac_old_val" != "x$ac_new_val"; then
2576         # differences in whitespace do not lead to failure.
2577         ac_old_val_w=`echo x $ac_old_val`
2578         ac_new_val_w=`echo x $ac_new_val`
2579         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2580           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2581 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2582           ac_cache_corrupted=:
2583         else
2584           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2585 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2586           eval $ac_var=\$ac_old_val
2587         fi
2588         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2589 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2590         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2591 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2592       fi;;
2593   esac
2594   # Pass precious variables to config.status.
2595   if test "$ac_new_set" = set; then
2596     case $ac_new_val in
2597     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2598     *) ac_arg=$ac_var=$ac_new_val ;;
2599     esac
2600     case " $ac_configure_args " in
2601       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2602       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2603     esac
2604   fi
2605 done
2606 if $ac_cache_corrupted; then
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2610 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2611   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2612 fi
2613 ## -------------------- ##
2614 ## Main body of script. ##
2615 ## -------------------- ##
2616
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622
2623
2624
2625
2626 am__api_version='1.12'
2627
2628 ac_aux_dir=
2629 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2630   if test -f "$ac_dir/install-sh"; then
2631     ac_aux_dir=$ac_dir
2632     ac_install_sh="$ac_aux_dir/install-sh -c"
2633     break
2634   elif test -f "$ac_dir/install.sh"; then
2635     ac_aux_dir=$ac_dir
2636     ac_install_sh="$ac_aux_dir/install.sh -c"
2637     break
2638   elif test -f "$ac_dir/shtool"; then
2639     ac_aux_dir=$ac_dir
2640     ac_install_sh="$ac_aux_dir/shtool install -c"
2641     break
2642   fi
2643 done
2644 if test -z "$ac_aux_dir"; then
2645   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2646 fi
2647
2648 # These three variables are undocumented and unsupported,
2649 # and are intended to be withdrawn in a future Autoconf release.
2650 # They can cause serious problems if a builder's source tree is in a directory
2651 # whose full name contains unusual characters.
2652 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2653 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2654 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2655
2656
2657 # Find a good install program.  We prefer a C program (faster),
2658 # so one script is as good as another.  But avoid the broken or
2659 # incompatible versions:
2660 # SysV /etc/install, /usr/sbin/install
2661 # SunOS /usr/etc/install
2662 # IRIX /sbin/install
2663 # AIX /bin/install
2664 # AmigaOS /C/install, which installs bootblocks on floppy discs
2665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2668 # OS/2's system install, which has a completely different semantic
2669 # ./install, which can be erroneously created by make from ./install.sh.
2670 # Reject install programs that cannot install multiple files.
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2672 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2673 if test -z "$INSTALL"; then
2674 if ${ac_cv_path_install+:} false; then :
2675   $as_echo_n "(cached) " >&6
2676 else
2677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680   IFS=$as_save_IFS
2681   test -z "$as_dir" && as_dir=.
2682     # Account for people who put trailing slashes in PATH elements.
2683 case $as_dir/ in #((
2684   ./ | .// | /[cC]/* | \
2685   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2686   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2687   /usr/ucb/* ) ;;
2688   *)
2689     # OSF1 and SCO ODT 3.0 have their own names for install.
2690     # Don't use installbsd from OSF since it installs stuff as root
2691     # by default.
2692     for ac_prog in ginstall scoinst install; do
2693       for ac_exec_ext in '' $ac_executable_extensions; do
2694         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2695           if test $ac_prog = install &&
2696             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2697             # AIX install.  It has an incompatible calling convention.
2698             :
2699           elif test $ac_prog = install &&
2700             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2701             # program-specific install script used by HP pwplus--don't use.
2702             :
2703           else
2704             rm -rf conftest.one conftest.two conftest.dir
2705             echo one > conftest.one
2706             echo two > conftest.two
2707             mkdir conftest.dir
2708             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2709               test -s conftest.one && test -s conftest.two &&
2710               test -s conftest.dir/conftest.one &&
2711               test -s conftest.dir/conftest.two
2712             then
2713               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2714               break 3
2715             fi
2716           fi
2717         fi
2718       done
2719     done
2720     ;;
2721 esac
2722
2723   done
2724 IFS=$as_save_IFS
2725
2726 rm -rf conftest.one conftest.two conftest.dir
2727
2728 fi
2729   if test "${ac_cv_path_install+set}" = set; then
2730     INSTALL=$ac_cv_path_install
2731   else
2732     # As a last resort, use the slow shell script.  Don't cache a
2733     # value for INSTALL within a source directory, because that will
2734     # break other packages using the cache if that directory is
2735     # removed, or if the value is a relative name.
2736     INSTALL=$ac_install_sh
2737   fi
2738 fi
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2740 $as_echo "$INSTALL" >&6; }
2741
2742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2743 # It thinks the first close brace ends the variable substitution.
2744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2745
2746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2747
2748 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2749
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2751 $as_echo_n "checking whether build environment is sane... " >&6; }
2752 # Reject unsafe characters in $srcdir or the absolute working directory
2753 # name.  Accept space and tab only in the latter.
2754 am_lf='
2755 '
2756 case `pwd` in
2757   *[\\\"\#\$\&\'\`$am_lf]*)
2758     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2759 esac
2760 case $srcdir in
2761   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2762     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2763 esac
2764
2765 # Do 'set' in a subshell so we don't clobber the current shell's
2766 # arguments.  Must try -L first in case configure is actually a
2767 # symlink; some systems play weird games with the mod time of symlinks
2768 # (eg FreeBSD returns the mod time of the symlink's containing
2769 # directory).
2770 if (
2771    am_has_slept=no
2772    for am_try in 1 2; do
2773      echo "timestamp, slept: $am_has_slept" > conftest.file
2774      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2775      if test "$*" = "X"; then
2776         # -L didn't work.
2777         set X `ls -t "$srcdir/configure" conftest.file`
2778      fi
2779      if test "$*" != "X $srcdir/configure conftest.file" \
2780         && test "$*" != "X conftest.file $srcdir/configure"; then
2781
2782         # If neither matched, then we have a broken ls.  This can happen
2783         # if, for instance, CONFIG_SHELL is bash and it inherits a
2784         # broken ls alias from the environment.  This has actually
2785         # happened.  Such a system could not be considered "sane".
2786         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2787   alias in your environment" "$LINENO" 5
2788      fi
2789      if test "$2" = conftest.file || test $am_try -eq 2; then
2790        break
2791      fi
2792      # Just in case.
2793      sleep 1
2794      am_has_slept=yes
2795    done
2796    test "$2" = conftest.file
2797    )
2798 then
2799    # Ok.
2800    :
2801 else
2802    as_fn_error $? "newly created file is older than distributed files!
2803 Check your system clock" "$LINENO" 5
2804 fi
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2806 $as_echo "yes" >&6; }
2807 # If we didn't sleep, we still need to ensure time stamps of config.status and
2808 # generated files are strictly newer.
2809 am_sleep_pid=
2810 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2811   ( sleep 1 ) &
2812   am_sleep_pid=$!
2813 fi
2814
2815 rm -f conftest.file
2816
2817 test "$program_prefix" != NONE &&
2818   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2819 # Use a double $ so make ignores it.
2820 test "$program_suffix" != NONE &&
2821   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2822 # Double any \ or $.
2823 # By default was `s,x,x', remove it if useless.
2824 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2825 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2826
2827 # expand $ac_aux_dir to an absolute path
2828 am_aux_dir=`cd $ac_aux_dir && pwd`
2829
2830 if test x"${MISSING+set}" != xset; then
2831   case $am_aux_dir in
2832   *\ * | *\     *)
2833     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2834   *)
2835     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2836   esac
2837 fi
2838 # Use eval to expand $SHELL
2839 if eval "$MISSING --run true"; then
2840   am_missing_run="$MISSING --run "
2841 else
2842   am_missing_run=
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2844 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2845 fi
2846
2847 if test x"${install_sh}" != xset; then
2848   case $am_aux_dir in
2849   *\ * | *\     *)
2850     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2851   *)
2852     install_sh="\${SHELL} $am_aux_dir/install-sh"
2853   esac
2854 fi
2855
2856 # Installed binaries are usually stripped using 'strip' when the user
2857 # run "make install-strip".  However 'strip' might not be the right
2858 # tool to use in cross-compilation environments, therefore Automake
2859 # will honor the 'STRIP' environment variable to overrule this program.
2860 if test "$cross_compiling" != no; then
2861   if test -n "$ac_tool_prefix"; then
2862   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}strip; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_STRIP+:} false; then :
2867   $as_echo_n "(cached) " >&6
2868 else
2869   if test -n "$STRIP"; then
2870   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875   IFS=$as_save_IFS
2876   test -z "$as_dir" && as_dir=.
2877     for ac_exec_ext in '' $ac_executable_extensions; do
2878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881     break 2
2882   fi
2883 done
2884   done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 STRIP=$ac_cv_prog_STRIP
2890 if test -n "$STRIP"; then
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2892 $as_echo "$STRIP" >&6; }
2893 else
2894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898
2899 fi
2900 if test -z "$ac_cv_prog_STRIP"; then
2901   ac_ct_STRIP=$STRIP
2902   # Extract the first word of "strip", so it can be a program name with args.
2903 set dummy strip; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2907   $as_echo_n "(cached) " >&6
2908 else
2909   if test -n "$ac_ct_STRIP"; then
2910   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915   IFS=$as_save_IFS
2916   test -z "$as_dir" && as_dir=.
2917     for ac_exec_ext in '' $ac_executable_extensions; do
2918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919     ac_cv_prog_ac_ct_STRIP="strip"
2920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921     break 2
2922   fi
2923 done
2924   done
2925 IFS=$as_save_IFS
2926
2927 fi
2928 fi
2929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2930 if test -n "$ac_ct_STRIP"; then
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2932 $as_echo "$ac_ct_STRIP" >&6; }
2933 else
2934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 fi
2937
2938   if test "x$ac_ct_STRIP" = x; then
2939     STRIP=":"
2940   else
2941     case $cross_compiling:$ac_tool_warned in
2942 yes:)
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned=yes ;;
2946 esac
2947     STRIP=$ac_ct_STRIP
2948   fi
2949 else
2950   STRIP="$ac_cv_prog_STRIP"
2951 fi
2952
2953 fi
2954 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2955
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2957 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2958 if test -z "$MKDIR_P"; then
2959   if ${ac_cv_path_mkdir+:} false; then :
2960   $as_echo_n "(cached) " >&6
2961 else
2962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2964 do
2965   IFS=$as_save_IFS
2966   test -z "$as_dir" && as_dir=.
2967     for ac_prog in mkdir gmkdir; do
2968          for ac_exec_ext in '' $ac_executable_extensions; do
2969            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2970            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2971              'mkdir (GNU coreutils) '* | \
2972              'mkdir (coreutils) '* | \
2973              'mkdir (fileutils) '4.1*)
2974                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2975                break 3;;
2976            esac
2977          done
2978        done
2979   done
2980 IFS=$as_save_IFS
2981
2982 fi
2983
2984   test -d ./--version && rmdir ./--version
2985   if test "${ac_cv_path_mkdir+set}" = set; then
2986     MKDIR_P="$ac_cv_path_mkdir -p"
2987   else
2988     # As a last resort, use the slow shell script.  Don't cache a
2989     # value for MKDIR_P within a source directory, because that will
2990     # break other packages using the cache if that directory is
2991     # removed, or if the value is a relative name.
2992     MKDIR_P="$ac_install_sh -d"
2993   fi
2994 fi
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2996 $as_echo "$MKDIR_P" >&6; }
2997
2998 for ac_prog in gawk mawk nawk awk
2999 do
3000   # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_AWK+:} false; then :
3005   $as_echo_n "(cached) " >&6
3006 else
3007   if test -n "$AWK"; then
3008   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013   IFS=$as_save_IFS
3014   test -z "$as_dir" && as_dir=.
3015     for ac_exec_ext in '' $ac_executable_extensions; do
3016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017     ac_cv_prog_AWK="$ac_prog"
3018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019     break 2
3020   fi
3021 done
3022   done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 AWK=$ac_cv_prog_AWK
3028 if test -n "$AWK"; then
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3030 $as_echo "$AWK" >&6; }
3031 else
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036
3037   test -n "$AWK" && break
3038 done
3039
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3041 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3042 set x ${MAKE-make}
3043 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3044 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3045   $as_echo_n "(cached) " >&6
3046 else
3047   cat >conftest.make <<\_ACEOF
3048 SHELL = /bin/sh
3049 all:
3050         @echo '@@@%%%=$(MAKE)=@@@%%%'
3051 _ACEOF
3052 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3053 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3054   *@@@%%%=?*=@@@%%%*)
3055     eval ac_cv_prog_make_${ac_make}_set=yes;;
3056   *)
3057     eval ac_cv_prog_make_${ac_make}_set=no;;
3058 esac
3059 rm -f conftest.make
3060 fi
3061 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063 $as_echo "yes" >&6; }
3064   SET_MAKE=
3065 else
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068   SET_MAKE="MAKE=${MAKE-make}"
3069 fi
3070
3071 rm -rf .tst 2>/dev/null
3072 mkdir .tst 2>/dev/null
3073 if test -d .tst; then
3074   am__leading_dot=.
3075 else
3076   am__leading_dot=_
3077 fi
3078 rmdir .tst 2>/dev/null
3079
3080 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3081   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3082   # is not polluted with repeated "-I."
3083   am__isrc=' -I$(srcdir)'
3084   # test to see if srcdir already configured
3085   if test -f $srcdir/config.status; then
3086     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3087   fi
3088 fi
3089
3090 # test whether we have cygpath
3091 if test -z "$CYGPATH_W"; then
3092   if (cygpath --version) >/dev/null 2>/dev/null; then
3093     CYGPATH_W='cygpath -w'
3094   else
3095     CYGPATH_W=echo
3096   fi
3097 fi
3098
3099
3100 # Define the identity of the package.
3101
3102  PACKAGE=fontconfig
3103  VERSION=2.10.91
3104
3105
3106 cat >>confdefs.h <<_ACEOF
3107 #define PACKAGE "$PACKAGE"
3108 _ACEOF
3109
3110
3111 cat >>confdefs.h <<_ACEOF
3112 #define VERSION "$VERSION"
3113 _ACEOF
3114
3115 # Some tools Automake needs.
3116
3117 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3118
3119
3120 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3121
3122
3123 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3124
3125
3126 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3127
3128
3129 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3130
3131 # For better backward compatibility.  To be removed once Automake 1.9.x
3132 # dies out for good.  For more background, see:
3133 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3134 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3135 mkdir_p='$(MKDIR_P)'
3136
3137 # We need awk for the "check" target.  The system "awk" is bad on
3138 # some platforms.
3139 # Always define AMTAR for backward compatibility.  Yes, it's still used
3140 # in the wild :-(  We should find a proper way to deprecate it ...
3141 AMTAR='$${TAR-tar}'
3142
3143 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3144
3145
3146
3147
3148
3149 # Check whether --enable-silent-rules was given.
3150 if test "${enable_silent_rules+set}" = set; then :
3151   enableval=$enable_silent_rules;
3152 fi
3153
3154 case $enable_silent_rules in # (((
3155   yes) AM_DEFAULT_VERBOSITY=0;;
3156    no) AM_DEFAULT_VERBOSITY=1;;
3157     *) AM_DEFAULT_VERBOSITY=0;;
3158 esac
3159 am_make=${MAKE-make}
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3161 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3162 if ${am_cv_make_support_nested_variables+:} false; then :
3163   $as_echo_n "(cached) " >&6
3164 else
3165   if $as_echo 'TRUE=$(BAR$(V))
3166 BAR0=false
3167 BAR1=true
3168 V=1
3169 am__doit:
3170         @$(TRUE)
3171 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3172   am_cv_make_support_nested_variables=yes
3173 else
3174   am_cv_make_support_nested_variables=no
3175 fi
3176 fi
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3178 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3179 if test $am_cv_make_support_nested_variables = yes; then
3180     AM_V='$(V)'
3181   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3182 else
3183   AM_V=$AM_DEFAULT_VERBOSITY
3184   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3185 fi
3186 AM_BACKSLASH='\'
3187
3188
3189
3190 LIBT_CURRENT=7
3191 LIBT_REVISION=2
3192
3193
3194 LIBT_AGE=6
3195
3196 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
3197
3198
3199 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
3200
3201
3202
3203 ac_config_headers="$ac_config_headers config.h"
3204
3205
3206
3207 ac_ext=c
3208 ac_cpp='$CPP $CPPFLAGS'
3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212 if test -n "$ac_tool_prefix"; then
3213   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3214 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_CC+:} false; then :
3218   $as_echo_n "(cached) " >&6
3219 else
3220   if test -n "$CC"; then
3221   ac_cv_prog_CC="$CC" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228     for ac_exec_ext in '' $ac_executable_extensions; do
3229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232     break 2
3233   fi
3234 done
3235   done
3236 IFS=$as_save_IFS
3237
3238 fi
3239 fi
3240 CC=$ac_cv_prog_CC
3241 if test -n "$CC"; then
3242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 $as_echo "$CC" >&6; }
3244 else
3245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 fi
3248
3249
3250 fi
3251 if test -z "$ac_cv_prog_CC"; then
3252   ac_ct_CC=$CC
3253   # Extract the first word of "gcc", so it can be a program name with args.
3254 set dummy gcc; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3258   $as_echo_n "(cached) " >&6
3259 else
3260   if test -n "$ac_ct_CC"; then
3261   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266   IFS=$as_save_IFS
3267   test -z "$as_dir" && as_dir=.
3268     for ac_exec_ext in '' $ac_executable_extensions; do
3269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270     ac_cv_prog_ac_ct_CC="gcc"
3271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272     break 2
3273   fi
3274 done
3275   done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3281 if test -n "$ac_ct_CC"; then
3282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3283 $as_echo "$ac_ct_CC" >&6; }
3284 else
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289   if test "x$ac_ct_CC" = x; then
3290     CC=""
3291   else
3292     case $cross_compiling:$ac_tool_warned in
3293 yes:)
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3296 ac_tool_warned=yes ;;
3297 esac
3298     CC=$ac_ct_CC
3299   fi
3300 else
3301   CC="$ac_cv_prog_CC"
3302 fi
3303
3304 if test -z "$CC"; then
3305           if test -n "$ac_tool_prefix"; then
3306     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3307 set dummy ${ac_tool_prefix}cc; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_CC+:} false; then :
3311   $as_echo_n "(cached) " >&6
3312 else
3313   if test -n "$CC"; then
3314   ac_cv_prog_CC="$CC" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321     for ac_exec_ext in '' $ac_executable_extensions; do
3322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323     ac_cv_prog_CC="${ac_tool_prefix}cc"
3324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328   done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 CC=$ac_cv_prog_CC
3334 if test -n "$CC"; then
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336 $as_echo "$CC" >&6; }
3337 else
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 fi
3341
3342
3343   fi
3344 fi
3345 if test -z "$CC"; then
3346   # Extract the first word of "cc", so it can be a program name with args.
3347 set dummy cc; ac_word=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if ${ac_cv_prog_CC+:} false; then :
3351   $as_echo_n "(cached) " >&6
3352 else
3353   if test -n "$CC"; then
3354   ac_cv_prog_CC="$CC" # Let the user override the test.
3355 else
3356   ac_prog_rejected=no
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360   IFS=$as_save_IFS
3361   test -z "$as_dir" && as_dir=.
3362     for ac_exec_ext in '' $ac_executable_extensions; do
3363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3365        ac_prog_rejected=yes
3366        continue
3367      fi
3368     ac_cv_prog_CC="cc"
3369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373   done
3374 IFS=$as_save_IFS
3375
3376 if test $ac_prog_rejected = yes; then
3377   # We found a bogon in the path, so make sure we never use it.
3378   set dummy $ac_cv_prog_CC
3379   shift
3380   if test $# != 0; then
3381     # We chose a different compiler from the bogus one.
3382     # However, it has the same basename, so the bogon will be chosen
3383     # first if we set CC to just the basename; use the full file name.
3384     shift
3385     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3386   fi
3387 fi
3388 fi
3389 fi
3390 CC=$ac_cv_prog_CC
3391 if test -n "$CC"; then
3392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 $as_echo "$CC" >&6; }
3394 else
3395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3397 fi
3398
3399
3400 fi
3401 if test -z "$CC"; then
3402   if test -n "$ac_tool_prefix"; then
3403   for ac_prog in cl.exe
3404   do
3405     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 $as_echo_n "checking for $ac_word... " >&6; }
3409 if ${ac_cv_prog_CC+:} false; then :
3410   $as_echo_n "(cached) " >&6
3411 else
3412   if test -n "$CC"; then
3413   ac_cv_prog_CC="$CC" # Let the user override the test.
3414 else
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3417 do
3418   IFS=$as_save_IFS
3419   test -z "$as_dir" && as_dir=.
3420     for ac_exec_ext in '' $ac_executable_extensions; do
3421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424     break 2
3425   fi
3426 done
3427   done
3428 IFS=$as_save_IFS
3429
3430 fi
3431 fi
3432 CC=$ac_cv_prog_CC
3433 if test -n "$CC"; then
3434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3435 $as_echo "$CC" >&6; }
3436 else
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 $as_echo "no" >&6; }
3439 fi
3440
3441
3442     test -n "$CC" && break
3443   done
3444 fi
3445 if test -z "$CC"; then
3446   ac_ct_CC=$CC
3447   for ac_prog in cl.exe
3448 do
3449   # Extract the first word of "$ac_prog", so it can be a program name with args.
3450 set dummy $ac_prog; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3454   $as_echo_n "(cached) " >&6
3455 else
3456   if test -n "$ac_ct_CC"; then
3457   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462   IFS=$as_save_IFS
3463   test -z "$as_dir" && as_dir=.
3464     for ac_exec_ext in '' $ac_executable_extensions; do
3465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466     ac_cv_prog_ac_ct_CC="$ac_prog"
3467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468     break 2
3469   fi
3470 done
3471   done
3472 IFS=$as_save_IFS
3473
3474 fi
3475 fi
3476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3477 if test -n "$ac_ct_CC"; then
3478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3479 $as_echo "$ac_ct_CC" >&6; }
3480 else
3481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3483 fi
3484
3485
3486   test -n "$ac_ct_CC" && break
3487 done
3488
3489   if test "x$ac_ct_CC" = x; then
3490     CC=""
3491   else
3492     case $cross_compiling:$ac_tool_warned in
3493 yes:)
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496 ac_tool_warned=yes ;;
3497 esac
3498     CC=$ac_ct_CC
3499   fi
3500 fi
3501
3502 fi
3503
3504
3505 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3507 as_fn_error $? "no acceptable C compiler found in \$PATH
3508 See \`config.log' for more details" "$LINENO" 5; }
3509
3510 # Provide some information about the compiler.
3511 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3512 set X $ac_compile
3513 ac_compiler=$2
3514 for ac_option in --version -v -V -qversion; do
3515   { { ac_try="$ac_compiler $ac_option >&5"
3516 case "(($ac_try" in
3517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518   *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3523   ac_status=$?
3524   if test -s conftest.err; then
3525     sed '10a\
3526 ... rest of stderr output deleted ...
3527          10q' conftest.err >conftest.er1
3528     cat conftest.er1 >&5
3529   fi
3530   rm -f conftest.er1 conftest.err
3531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532   test $ac_status = 0; }
3533 done
3534
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h.  */
3537
3538 int
3539 main ()
3540 {
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 ac_clean_files_save=$ac_clean_files
3547 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3548 # Try to create an executable without -o first, disregard a.out.
3549 # It will help us diagnose broken compilers, and finding out an intuition
3550 # of exeext.
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3552 $as_echo_n "checking whether the C compiler works... " >&6; }
3553 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3554
3555 # The possible output files:
3556 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3557
3558 ac_rmfiles=
3559 for ac_file in $ac_files
3560 do
3561   case $ac_file in
3562     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3563     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3564   esac
3565 done
3566 rm -f $ac_rmfiles
3567
3568 if { { ac_try="$ac_link_default"
3569 case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575   (eval "$ac_link_default") 2>&5
3576   ac_status=$?
3577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578   test $ac_status = 0; }; then :
3579   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3580 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3581 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3582 # so that the user can short-circuit this test for compilers unknown to
3583 # Autoconf.
3584 for ac_file in $ac_files ''
3585 do
3586   test -f "$ac_file" || continue
3587   case $ac_file in
3588     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3589         ;;
3590     [ab].out )
3591         # We found the default executable, but exeext='' is most
3592         # certainly right.
3593         break;;
3594     *.* )
3595         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3596         then :; else
3597            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3598         fi
3599         # We set ac_cv_exeext here because the later test for it is not
3600         # safe: cross compilers may not add the suffix if given an `-o'
3601         # argument, so we may need to know it at that point already.
3602         # Even if this section looks crufty: it has the advantage of
3603         # actually working.
3604         break;;
3605     * )
3606         break;;
3607   esac
3608 done
3609 test "$ac_cv_exeext" = no && ac_cv_exeext=
3610
3611 else
3612   ac_file=''
3613 fi
3614 if test -z "$ac_file"; then :
3615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 $as_echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 as_fn_error 77 "C compiler cannot create executables
3623 See \`config.log' for more details" "$LINENO" 5; }
3624 else
3625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626 $as_echo "yes" >&6; }
3627 fi
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3629 $as_echo_n "checking for C compiler default output file name... " >&6; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3631 $as_echo "$ac_file" >&6; }
3632 ac_exeext=$ac_cv_exeext
3633
3634 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3635 ac_clean_files=$ac_clean_files_save
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3637 $as_echo_n "checking for suffix of executables... " >&6; }
3638 if { { ac_try="$ac_link"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645   (eval "$ac_link") 2>&5
3646   ac_status=$?
3647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648   test $ac_status = 0; }; then :
3649   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3650 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3651 # work properly (i.e., refer to `conftest.exe'), while it won't with
3652 # `rm'.
3653 for ac_file in conftest.exe conftest conftest.*; do
3654   test -f "$ac_file" || continue
3655   case $ac_file in
3656     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3657     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3658           break;;
3659     * ) break;;
3660   esac
3661 done
3662 else
3663   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3666 See \`config.log' for more details" "$LINENO" 5; }
3667 fi
3668 rm -f conftest conftest$ac_cv_exeext
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3670 $as_echo "$ac_cv_exeext" >&6; }
3671
3672 rm -f conftest.$ac_ext
3673 EXEEXT=$ac_cv_exeext
3674 ac_exeext=$EXEEXT
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h.  */
3677 #include <stdio.h>
3678 int
3679 main ()
3680 {
3681 FILE *f = fopen ("conftest.out", "w");
3682  return ferror (f) || fclose (f) != 0;
3683
3684   ;
3685   return 0;
3686 }
3687 _ACEOF
3688 ac_clean_files="$ac_clean_files conftest.out"
3689 # Check that the compiler produces executables we can run.  If not, either
3690 # the compiler is broken, or we cross compile.
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3692 $as_echo_n "checking whether we are cross compiling... " >&6; }
3693 if test "$cross_compiling" != yes; then
3694   { { ac_try="$ac_link"
3695 case "(($ac_try" in
3696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697   *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701   (eval "$ac_link") 2>&5
3702   ac_status=$?
3703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704   test $ac_status = 0; }
3705   if { ac_try='./conftest$ac_cv_exeext'
3706   { { case "(($ac_try" in
3707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708   *) ac_try_echo=$ac_try;;
3709 esac
3710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711 $as_echo "$ac_try_echo"; } >&5
3712   (eval "$ac_try") 2>&5
3713   ac_status=$?
3714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715   test $ac_status = 0; }; }; then
3716     cross_compiling=no
3717   else
3718     if test "$cross_compiling" = maybe; then
3719         cross_compiling=yes
3720     else
3721         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $? "cannot run C compiled programs.
3724 If you meant to cross compile, use \`--host'.
3725 See \`config.log' for more details" "$LINENO" 5; }
3726     fi
3727   fi
3728 fi
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3730 $as_echo "$cross_compiling" >&6; }
3731
3732 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3733 ac_clean_files=$ac_clean_files_save
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3735 $as_echo_n "checking for suffix of object files... " >&6; }
3736 if ${ac_cv_objext+:} false; then :
3737   $as_echo_n "(cached) " >&6
3738 else
3739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h.  */
3741
3742 int
3743 main ()
3744 {
3745
3746   ;
3747   return 0;
3748 }
3749 _ACEOF
3750 rm -f conftest.o conftest.obj
3751 if { { ac_try="$ac_compile"
3752 case "(($ac_try" in
3753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754   *) ac_try_echo=$ac_try;;
3755 esac
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758   (eval "$ac_compile") 2>&5
3759   ac_status=$?
3760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761   test $ac_status = 0; }; then :
3762   for ac_file in conftest.o conftest.obj conftest.*; do
3763   test -f "$ac_file" || continue;
3764   case $ac_file in
3765     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3766     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3767        break;;
3768   esac
3769 done
3770 else
3771   $as_echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3773
3774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776 as_fn_error $? "cannot compute suffix of object files: cannot compile
3777 See \`config.log' for more details" "$LINENO" 5; }
3778 fi
3779 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3782 $as_echo "$ac_cv_objext" >&6; }
3783 OBJEXT=$ac_cv_objext
3784 ac_objext=$OBJEXT
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3786 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3787 if ${ac_cv_c_compiler_gnu+:} false; then :
3788   $as_echo_n "(cached) " >&6
3789 else
3790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h.  */
3792
3793 int
3794 main ()
3795 {
3796 #ifndef __GNUC__
3797        choke me
3798 #endif
3799
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805   ac_compiler_gnu=yes
3806 else
3807   ac_compiler_gnu=no
3808 fi
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3811
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3814 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3815 if test $ac_compiler_gnu = yes; then
3816   GCC=yes
3817 else
3818   GCC=
3819 fi
3820 ac_test_CFLAGS=${CFLAGS+set}
3821 ac_save_CFLAGS=$CFLAGS
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3823 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3824 if ${ac_cv_prog_cc_g+:} false; then :
3825   $as_echo_n "(cached) " >&6
3826 else
3827   ac_save_c_werror_flag=$ac_c_werror_flag
3828    ac_c_werror_flag=yes
3829    ac_cv_prog_cc_g=no
3830    CFLAGS="-g"
3831    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h.  */
3833
3834 int
3835 main ()
3836 {
3837
3838   ;
3839   return 0;
3840 }
3841 _ACEOF
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843   ac_cv_prog_cc_g=yes
3844 else
3845   CFLAGS=""
3846       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h.  */
3848
3849 int
3850 main ()
3851 {
3852
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 if ac_fn_c_try_compile "$LINENO"; then :
3858
3859 else
3860   ac_c_werror_flag=$ac_save_c_werror_flag
3861          CFLAGS="-g"
3862          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h.  */
3864
3865 int
3866 main ()
3867 {
3868
3869   ;
3870   return 0;
3871 }
3872 _ACEOF
3873 if ac_fn_c_try_compile "$LINENO"; then :
3874   ac_cv_prog_cc_g=yes
3875 fi
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 fi
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 fi
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881    ac_c_werror_flag=$ac_save_c_werror_flag
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3884 $as_echo "$ac_cv_prog_cc_g" >&6; }
3885 if test "$ac_test_CFLAGS" = set; then
3886   CFLAGS=$ac_save_CFLAGS
3887 elif test $ac_cv_prog_cc_g = yes; then
3888   if test "$GCC" = yes; then
3889     CFLAGS="-g -O2"
3890   else
3891     CFLAGS="-g"
3892   fi
3893 else
3894   if test "$GCC" = yes; then
3895     CFLAGS="-O2"
3896   else
3897     CFLAGS=
3898   fi
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3901 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3902 if ${ac_cv_prog_cc_c89+:} false; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   ac_cv_prog_cc_c89=no
3906 ac_save_CC=$CC
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h.  */
3909 #include <stdarg.h>
3910 #include <stdio.h>
3911 struct stat;
3912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3913 struct buf { int x; };
3914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3915 static char *e (p, i)
3916      char **p;
3917      int i;
3918 {
3919   return p[i];
3920 }
3921 static char *f (char * (*g) (char **, int), char **p, ...)
3922 {
3923   char *s;
3924   va_list v;
3925   va_start (v,p);
3926   s = g (p, va_arg (v,int));
3927   va_end (v);
3928   return s;
3929 }
3930
3931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3932    function prototypes and stuff, but not '\xHH' hex character constants.
3933    These don't provoke an error unfortunately, instead are silently treated
3934    as 'x'.  The following induces an error, until -std is added to get
3935    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3936    array size at least.  It's necessary to write '\x00'==0 to get something
3937    that's true only with -std.  */
3938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3939
3940 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3941    inside strings and character constants.  */
3942 #define FOO(x) 'x'
3943 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3944
3945 int test (int i, double x);
3946 struct s1 {int (*f) (int a);};
3947 struct s2 {int (*f) (double a);};
3948 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3949 int argc;
3950 char **argv;
3951 int
3952 main ()
3953 {
3954 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3960         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3961 do
3962   CC="$ac_save_CC $ac_arg"
3963   if ac_fn_c_try_compile "$LINENO"; then :
3964   ac_cv_prog_cc_c89=$ac_arg
3965 fi
3966 rm -f core conftest.err conftest.$ac_objext
3967   test "x$ac_cv_prog_cc_c89" != "xno" && break
3968 done
3969 rm -f conftest.$ac_ext
3970 CC=$ac_save_CC
3971
3972 fi
3973 # AC_CACHE_VAL
3974 case "x$ac_cv_prog_cc_c89" in
3975   x)
3976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3977 $as_echo "none needed" >&6; } ;;
3978   xno)
3979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3980 $as_echo "unsupported" >&6; } ;;
3981   *)
3982     CC="$CC $ac_cv_prog_cc_c89"
3983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3984 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3985 esac
3986 if test "x$ac_cv_prog_cc_c89" != xno; then :
3987
3988 fi
3989
3990 ac_ext=c
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 DEPDIR="${am__leading_dot}deps"
3996
3997 ac_config_commands="$ac_config_commands depfiles"
3998
3999
4000 am_make=${MAKE-make}
4001 cat > confinc << 'END'
4002 am__doit:
4003         @echo this is the am__doit target
4004 .PHONY: am__doit
4005 END
4006 # If we don't find an include directive, just comment out the code.
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4008 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4009 am__include="#"
4010 am__quote=
4011 _am_result=none
4012 # First try GNU make style include.
4013 echo "include confinc" > confmf
4014 # Ignore all kinds of additional output from 'make'.
4015 case `$am_make -s -f confmf 2> /dev/null` in #(
4016 *the\ am__doit\ target*)
4017   am__include=include
4018   am__quote=
4019   _am_result=GNU
4020   ;;
4021 esac
4022 # Now try BSD make style include.
4023 if test "$am__include" = "#"; then
4024    echo '.include "confinc"' > confmf
4025    case `$am_make -s -f confmf 2> /dev/null` in #(
4026    *the\ am__doit\ target*)
4027      am__include=.include
4028      am__quote="\""
4029      _am_result=BSD
4030      ;;
4031    esac
4032 fi
4033
4034
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4036 $as_echo "$_am_result" >&6; }
4037 rm -f confinc confmf
4038
4039 # Check whether --enable-dependency-tracking was given.
4040 if test "${enable_dependency_tracking+set}" = set; then :
4041   enableval=$enable_dependency_tracking;
4042 fi
4043
4044 if test "x$enable_dependency_tracking" != xno; then
4045   am_depcomp="$ac_aux_dir/depcomp"
4046   AMDEPBACKSLASH='\'
4047   am__nodep='_no'
4048 fi
4049  if test "x$enable_dependency_tracking" != xno; then
4050   AMDEP_TRUE=
4051   AMDEP_FALSE='#'
4052 else
4053   AMDEP_TRUE='#'
4054   AMDEP_FALSE=
4055 fi
4056
4057
4058
4059 depcc="$CC"   am_compiler_list=
4060
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4062 $as_echo_n "checking dependency style of $depcc... " >&6; }
4063 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4064   $as_echo_n "(cached) " >&6
4065 else
4066   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4067   # We make a subdir and do the tests there.  Otherwise we can end up
4068   # making bogus files that we don't know about and never remove.  For
4069   # instance it was reported that on HP-UX the gcc test will end up
4070   # making a dummy file named 'D' -- because '-MD' means "put the output
4071   # in D".
4072   rm -rf conftest.dir
4073   mkdir conftest.dir
4074   # Copy depcomp to subdir because otherwise we won't find it if we're
4075   # using a relative directory.
4076   cp "$am_depcomp" conftest.dir
4077   cd conftest.dir
4078   # We will build objects and dependencies in a subdirectory because
4079   # it helps to detect inapplicable dependency modes.  For instance
4080   # both Tru64's cc and ICC support -MD to output dependencies as a
4081   # side effect of compilation, but ICC will put the dependencies in
4082   # the current directory while Tru64 will put them in the object
4083   # directory.
4084   mkdir sub
4085
4086   am_cv_CC_dependencies_compiler_type=none
4087   if test "$am_compiler_list" = ""; then
4088      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4089   fi
4090   am__universal=false
4091   case " $depcc " in #(
4092      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4093      esac
4094
4095   for depmode in $am_compiler_list; do
4096     # Setup a source with many dependencies, because some compilers
4097     # like to wrap large dependency lists on column 80 (with \), and
4098     # we should not choose a depcomp mode which is confused by this.
4099     #
4100     # We need to recreate these files for each test, as the compiler may
4101     # overwrite some of them when testing with obscure command lines.
4102     # This happens at least with the AIX C compiler.
4103     : > sub/conftest.c
4104     for i in 1 2 3 4 5 6; do
4105       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4106       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4107       # Solaris 10 /bin/sh.
4108       echo '/* dummy */' > sub/conftst$i.h
4109     done
4110     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4111
4112     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4113     # mode.  It turns out that the SunPro C++ compiler does not properly
4114     # handle '-M -o', and we need to detect this.  Also, some Intel
4115     # versions had trouble with output in subdirs.
4116     am__obj=sub/conftest.${OBJEXT-o}
4117     am__minus_obj="-o $am__obj"
4118     case $depmode in
4119     gcc)
4120       # This depmode causes a compiler race in universal mode.
4121       test "$am__universal" = false || continue
4122       ;;
4123     nosideeffect)
4124       # After this tag, mechanisms are not by side-effect, so they'll
4125       # only be used when explicitly requested.
4126       if test "x$enable_dependency_tracking" = xyes; then
4127         continue
4128       else
4129         break
4130       fi
4131       ;;
4132     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4133       # This compiler won't grok '-c -o', but also, the minuso test has
4134       # not run yet.  These depmodes are late enough in the game, and
4135       # so weak that their functioning should not be impacted.
4136       am__obj=conftest.${OBJEXT-o}
4137       am__minus_obj=
4138       ;;
4139     none) break ;;
4140     esac
4141     if depmode=$depmode \
4142        source=sub/conftest.c object=$am__obj \
4143        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4144        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4145          >/dev/null 2>conftest.err &&
4146        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4147        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4148        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4149        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4150       # icc doesn't choke on unknown options, it will just issue warnings
4151       # or remarks (even with -Werror).  So we grep stderr for any message
4152       # that says an option was ignored or not supported.
4153       # When given -MP, icc 7.0 and 7.1 complain thusly:
4154       #   icc: Command line warning: ignoring option '-M'; no argument required
4155       # The diagnosis changed in icc 8.0:
4156       #   icc: Command line remark: option '-MP' not supported
4157       if (grep 'ignoring option' conftest.err ||
4158           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4159         am_cv_CC_dependencies_compiler_type=$depmode
4160         break
4161       fi
4162     fi
4163   done
4164
4165   cd ..
4166   rm -rf conftest.dir
4167 else
4168   am_cv_CC_dependencies_compiler_type=none
4169 fi
4170
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4173 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4174 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4175
4176  if
4177   test "x$enable_dependency_tracking" != xno \
4178   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4179   am__fastdepCC_TRUE=
4180   am__fastdepCC_FALSE='#'
4181 else
4182   am__fastdepCC_TRUE='#'
4183   am__fastdepCC_FALSE=
4184 fi
4185
4186
4187
4188 ac_ext=c
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4194 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4195 # On Suns, sometimes $CPP names a directory.
4196 if test -n "$CPP" && test -d "$CPP"; then
4197   CPP=
4198 fi
4199 if test -z "$CPP"; then
4200   if ${ac_cv_prog_CPP+:} false; then :
4201   $as_echo_n "(cached) " >&6
4202 else
4203       # Double quotes because CPP needs to be expanded
4204     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4205     do
4206       ac_preproc_ok=false
4207 for ac_c_preproc_warn_flag in '' yes
4208 do
4209   # Use a header file that comes with gcc, so configuring glibc
4210   # with a fresh cross-compiler works.
4211   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4212   # <limits.h> exists even on freestanding compilers.
4213   # On the NeXT, cc -E runs the code through the compiler's parser,
4214   # not just through cpp. "Syntax error" is here to catch this case.
4215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h.  */
4217 #ifdef __STDC__
4218 # include <limits.h>
4219 #else
4220 # include <assert.h>
4221 #endif
4222                      Syntax error
4223 _ACEOF
4224 if ac_fn_c_try_cpp "$LINENO"; then :
4225
4226 else
4227   # Broken: fails on valid input.
4228 continue
4229 fi
4230 rm -f conftest.err conftest.i conftest.$ac_ext
4231
4232   # OK, works on sane cases.  Now check whether nonexistent headers
4233   # can be detected and how.
4234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h.  */
4236 #include <ac_nonexistent.h>
4237 _ACEOF
4238 if ac_fn_c_try_cpp "$LINENO"; then :
4239   # Broken: success on invalid input.
4240 continue
4241 else
4242   # Passes both tests.
4243 ac_preproc_ok=:
4244 break
4245 fi
4246 rm -f conftest.err conftest.i conftest.$ac_ext
4247
4248 done
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.i conftest.err conftest.$ac_ext
4251 if $ac_preproc_ok; then :
4252   break
4253 fi
4254
4255     done
4256     ac_cv_prog_CPP=$CPP
4257
4258 fi
4259   CPP=$ac_cv_prog_CPP
4260 else
4261   ac_cv_prog_CPP=$CPP
4262 fi
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4264 $as_echo "$CPP" >&6; }
4265 ac_preproc_ok=false
4266 for ac_c_preproc_warn_flag in '' yes
4267 do
4268   # Use a header file that comes with gcc, so configuring glibc
4269   # with a fresh cross-compiler works.
4270   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4271   # <limits.h> exists even on freestanding compilers.
4272   # On the NeXT, cc -E runs the code through the compiler's parser,
4273   # not just through cpp. "Syntax error" is here to catch this case.
4274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h.  */
4276 #ifdef __STDC__
4277 # include <limits.h>
4278 #else
4279 # include <assert.h>
4280 #endif
4281                      Syntax error
4282 _ACEOF
4283 if ac_fn_c_try_cpp "$LINENO"; then :
4284
4285 else
4286   # Broken: fails on valid input.
4287 continue
4288 fi
4289 rm -f conftest.err conftest.i conftest.$ac_ext
4290
4291   # OK, works on sane cases.  Now check whether nonexistent headers
4292   # can be detected and how.
4293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h.  */
4295 #include <ac_nonexistent.h>
4296 _ACEOF
4297 if ac_fn_c_try_cpp "$LINENO"; then :
4298   # Broken: success on invalid input.
4299 continue
4300 else
4301   # Passes both tests.
4302 ac_preproc_ok=:
4303 break
4304 fi
4305 rm -f conftest.err conftest.i conftest.$ac_ext
4306
4307 done
4308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4309 rm -f conftest.i conftest.err conftest.$ac_ext
4310 if $ac_preproc_ok; then :
4311
4312 else
4313   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4316 See \`config.log' for more details" "$LINENO" 5; }
4317 fi
4318
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4327 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4328 if ${ac_cv_path_GREP+:} false; then :
4329   $as_echo_n "(cached) " >&6
4330 else
4331   if test -z "$GREP"; then
4332   ac_path_GREP_found=false
4333   # Loop through the user's path and test for each of PROGNAME-LIST
4334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4336 do
4337   IFS=$as_save_IFS
4338   test -z "$as_dir" && as_dir=.
4339     for ac_prog in grep ggrep; do
4340     for ac_exec_ext in '' $ac_executable_extensions; do
4341       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4342       as_fn_executable_p "$ac_path_GREP" || continue
4343 # Check for GNU ac_path_GREP and select it if it is found.
4344   # Check for GNU $ac_path_GREP
4345 case `"$ac_path_GREP" --version 2>&1` in
4346 *GNU*)
4347   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4348 *)
4349   ac_count=0
4350   $as_echo_n 0123456789 >"conftest.in"
4351   while :
4352   do
4353     cat "conftest.in" "conftest.in" >"conftest.tmp"
4354     mv "conftest.tmp" "conftest.in"
4355     cp "conftest.in" "conftest.nl"
4356     $as_echo 'GREP' >> "conftest.nl"
4357     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359     as_fn_arith $ac_count + 1 && ac_count=$as_val
4360     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4361       # Best one so far, save it but keep looking for a better one
4362       ac_cv_path_GREP="$ac_path_GREP"
4363       ac_path_GREP_max=$ac_count
4364     fi
4365     # 10*(2^10) chars as input seems more than enough
4366     test $ac_count -gt 10 && break
4367   done
4368   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4369 esac
4370
4371       $ac_path_GREP_found && break 3
4372     done
4373   done
4374   done
4375 IFS=$as_save_IFS
4376   if test -z "$ac_cv_path_GREP"; then
4377     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4378   fi
4379 else
4380   ac_cv_path_GREP=$GREP
4381 fi
4382
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4385 $as_echo "$ac_cv_path_GREP" >&6; }
4386  GREP="$ac_cv_path_GREP"
4387
4388
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4390 $as_echo_n "checking for egrep... " >&6; }
4391 if ${ac_cv_path_EGREP+:} false; then :
4392   $as_echo_n "(cached) " >&6
4393 else
4394   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4395    then ac_cv_path_EGREP="$GREP -E"
4396    else
4397      if test -z "$EGREP"; then
4398   ac_path_EGREP_found=false
4399   # Loop through the user's path and test for each of PROGNAME-LIST
4400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4402 do
4403   IFS=$as_save_IFS
4404   test -z "$as_dir" && as_dir=.
4405     for ac_prog in egrep; do
4406     for ac_exec_ext in '' $ac_executable_extensions; do
4407       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4408       as_fn_executable_p "$ac_path_EGREP" || continue
4409 # Check for GNU ac_path_EGREP and select it if it is found.
4410   # Check for GNU $ac_path_EGREP
4411 case `"$ac_path_EGREP" --version 2>&1` in
4412 *GNU*)
4413   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4414 *)
4415   ac_count=0
4416   $as_echo_n 0123456789 >"conftest.in"
4417   while :
4418   do
4419     cat "conftest.in" "conftest.in" >"conftest.tmp"
4420     mv "conftest.tmp" "conftest.in"
4421     cp "conftest.in" "conftest.nl"
4422     $as_echo 'EGREP' >> "conftest.nl"
4423     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425     as_fn_arith $ac_count + 1 && ac_count=$as_val
4426     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4427       # Best one so far, save it but keep looking for a better one
4428       ac_cv_path_EGREP="$ac_path_EGREP"
4429       ac_path_EGREP_max=$ac_count
4430     fi
4431     # 10*(2^10) chars as input seems more than enough
4432     test $ac_count -gt 10 && break
4433   done
4434   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4435 esac
4436
4437       $ac_path_EGREP_found && break 3
4438     done
4439   done
4440   done
4441 IFS=$as_save_IFS
4442   if test -z "$ac_cv_path_EGREP"; then
4443     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4444   fi
4445 else
4446   ac_cv_path_EGREP=$EGREP
4447 fi
4448
4449    fi
4450 fi
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4452 $as_echo "$ac_cv_path_EGREP" >&6; }
4453  EGREP="$ac_cv_path_EGREP"
4454
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4457 $as_echo_n "checking for ANSI C header files... " >&6; }
4458 if ${ac_cv_header_stdc+:} false; then :
4459   $as_echo_n "(cached) " >&6
4460 else
4461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h.  */
4463 #include <stdlib.h>
4464 #include <stdarg.h>
4465 #include <string.h>
4466 #include <float.h>
4467
4468 int
4469 main ()
4470 {
4471
4472   ;
4473   return 0;
4474 }
4475 _ACEOF
4476 if ac_fn_c_try_compile "$LINENO"; then :
4477   ac_cv_header_stdc=yes
4478 else
4479   ac_cv_header_stdc=no
4480 fi
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482
4483 if test $ac_cv_header_stdc = yes; then
4484   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h.  */
4487 #include <string.h>
4488
4489 _ACEOF
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491   $EGREP "memchr" >/dev/null 2>&1; then :
4492
4493 else
4494   ac_cv_header_stdc=no
4495 fi
4496 rm -f conftest*
4497
4498 fi
4499
4500 if test $ac_cv_header_stdc = yes; then
4501   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h.  */
4504 #include <stdlib.h>
4505
4506 _ACEOF
4507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4508   $EGREP "free" >/dev/null 2>&1; then :
4509
4510 else
4511   ac_cv_header_stdc=no
4512 fi
4513 rm -f conftest*
4514
4515 fi
4516
4517 if test $ac_cv_header_stdc = yes; then
4518   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4519   if test "$cross_compiling" = yes; then :
4520   :
4521 else
4522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h.  */
4524 #include <ctype.h>
4525 #include <stdlib.h>
4526 #if ((' ' & 0x0FF) == 0x020)
4527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4529 #else
4530 # define ISLOWER(c) \
4531                    (('a' <= (c) && (c) <= 'i') \
4532                      || ('j' <= (c) && (c) <= 'r') \
4533                      || ('s' <= (c) && (c) <= 'z'))
4534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4535 #endif
4536
4537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4538 int
4539 main ()
4540 {
4541   int i;
4542   for (i = 0; i < 256; i++)
4543     if (XOR (islower (i), ISLOWER (i))
4544         || toupper (i) != TOUPPER (i))
4545       return 2;
4546   return 0;
4547 }
4548 _ACEOF
4549 if ac_fn_c_try_run "$LINENO"; then :
4550
4551 else
4552   ac_cv_header_stdc=no
4553 fi
4554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4555   conftest.$ac_objext conftest.beam conftest.$ac_ext
4556 fi
4557
4558 fi
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4561 $as_echo "$ac_cv_header_stdc" >&6; }
4562 if test $ac_cv_header_stdc = yes; then
4563
4564 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4565
4566 fi
4567
4568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570                   inttypes.h stdint.h unistd.h
4571 do :
4572   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4574 "
4575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4576   cat >>confdefs.h <<_ACEOF
4577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578 _ACEOF
4579
4580 fi
4581
4582 done
4583
4584
4585
4586   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4587 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4588   MINIX=yes
4589 else
4590   MINIX=
4591 fi
4592
4593
4594   if test "$MINIX" = yes; then
4595
4596 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4597
4598
4599 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4600
4601
4602 $as_echo "#define _MINIX 1" >>confdefs.h
4603
4604   fi
4605
4606
4607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4608 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4609 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4610   $as_echo_n "(cached) " >&6
4611 else
4612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h.  */
4614
4615 #         define __EXTENSIONS__ 1
4616           $ac_includes_default
4617 int
4618 main ()
4619 {
4620
4621   ;
4622   return 0;
4623 }
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626   ac_cv_safe_to_define___extensions__=yes
4627 else
4628   ac_cv_safe_to_define___extensions__=no
4629 fi
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 fi
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4633 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4634   test $ac_cv_safe_to_define___extensions__ = yes &&
4635     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4636
4637   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4638
4639   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4640
4641   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4642
4643   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4644
4645
4646 # Check whether --enable-largefile was given.
4647 if test "${enable_largefile+set}" = set; then :
4648   enableval=$enable_largefile;
4649 fi
4650
4651 if test "$enable_largefile" != no; then
4652
4653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4654 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4655 if ${ac_cv_sys_largefile_CC+:} false; then :
4656   $as_echo_n "(cached) " >&6
4657 else
4658   ac_cv_sys_largefile_CC=no
4659      if test "$GCC" != yes; then
4660        ac_save_CC=$CC
4661        while :; do
4662          # IRIX 6.2 and later do not support large files by default,
4663          # so use the C compiler's -n32 option if that helps.
4664          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h.  */
4666 #include <sys/types.h>
4667  /* Check that off_t can represent 2**63 - 1 correctly.
4668     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4669     since some C++ compilers masquerading as C compilers
4670     incorrectly reject 9223372036854775807.  */
4671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4672   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4673                        && LARGE_OFF_T % 2147483647 == 1)
4674                       ? 1 : -1];
4675 int
4676 main ()
4677 {
4678
4679   ;
4680   return 0;
4681 }
4682 _ACEOF
4683          if ac_fn_c_try_compile "$LINENO"; then :
4684   break
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext
4687          CC="$CC -n32"
4688          if ac_fn_c_try_compile "$LINENO"; then :
4689   ac_cv_sys_largefile_CC=' -n32'; break
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext
4692          break
4693        done
4694        CC=$ac_save_CC
4695        rm -f conftest.$ac_ext
4696     fi
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4699 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4700   if test "$ac_cv_sys_largefile_CC" != no; then
4701     CC=$CC$ac_cv_sys_largefile_CC
4702   fi
4703
4704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4705 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4706 if ${ac_cv_sys_file_offset_bits+:} false; then :
4707   $as_echo_n "(cached) " >&6
4708 else
4709   while :; do
4710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h.  */
4712 #include <sys/types.h>
4713  /* Check that off_t can represent 2**63 - 1 correctly.
4714     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4715     since some C++ compilers masquerading as C compilers
4716     incorrectly reject 9223372036854775807.  */
4717 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4718   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4719                        && LARGE_OFF_T % 2147483647 == 1)
4720                       ? 1 : -1];
4721 int
4722 main ()
4723 {
4724
4725   ;
4726   return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730   ac_cv_sys_file_offset_bits=no; break
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h.  */
4735 #define _FILE_OFFSET_BITS 64
4736 #include <sys/types.h>
4737  /* Check that off_t can represent 2**63 - 1 correctly.
4738     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4739     since some C++ compilers masquerading as C compilers
4740     incorrectly reject 9223372036854775807.  */
4741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4742   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4743                        && LARGE_OFF_T % 2147483647 == 1)
4744                       ? 1 : -1];
4745 int
4746 main ()
4747 {
4748
4749   ;
4750   return 0;
4751 }
4752 _ACEOF
4753 if ac_fn_c_try_compile "$LINENO"; then :
4754   ac_cv_sys_file_offset_bits=64; break
4755 fi
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757   ac_cv_sys_file_offset_bits=unknown
4758   break
4759 done
4760 fi
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4762 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4763 case $ac_cv_sys_file_offset_bits in #(
4764   no | unknown) ;;
4765   *)
4766 cat >>confdefs.h <<_ACEOF
4767 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4768 _ACEOF
4769 ;;
4770 esac
4771 rm -rf conftest*
4772   if test $ac_cv_sys_file_offset_bits = unknown; then
4773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4774 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4775 if ${ac_cv_sys_large_files+:} false; then :
4776   $as_echo_n "(cached) " >&6
4777 else
4778   while :; do
4779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h.  */
4781 #include <sys/types.h>
4782  /* Check that off_t can represent 2**63 - 1 correctly.
4783     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4784     since some C++ compilers masquerading as C compilers
4785     incorrectly reject 9223372036854775807.  */
4786 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4787   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4788                        && LARGE_OFF_T % 2147483647 == 1)
4789                       ? 1 : -1];
4790 int
4791 main ()
4792 {
4793
4794   ;
4795   return 0;
4796 }
4797 _ACEOF
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799   ac_cv_sys_large_files=no; break
4800 fi
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h.  */
4804 #define _LARGE_FILES 1
4805 #include <sys/types.h>
4806  /* Check that off_t can represent 2**63 - 1 correctly.
4807     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4808     since some C++ compilers masquerading as C compilers
4809     incorrectly reject 9223372036854775807.  */
4810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4811   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4812                        && LARGE_OFF_T % 2147483647 == 1)
4813                       ? 1 : -1];
4814 int
4815 main ()
4816 {
4817
4818   ;
4819   return 0;
4820 }
4821 _ACEOF
4822 if ac_fn_c_try_compile "$LINENO"; then :
4823   ac_cv_sys_large_files=1; break
4824 fi
4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826   ac_cv_sys_large_files=unknown
4827   break
4828 done
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4831 $as_echo "$ac_cv_sys_large_files" >&6; }
4832 case $ac_cv_sys_large_files in #(
4833   no | unknown) ;;
4834   *)
4835 cat >>confdefs.h <<_ACEOF
4836 #define _LARGE_FILES $ac_cv_sys_large_files
4837 _ACEOF
4838 ;;
4839 esac
4840 rm -rf conftest*
4841   fi
4842
4843
4844 fi
4845
4846
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4848 $as_echo_n "checking whether ln -s works... " >&6; }
4849 LN_S=$as_ln_s
4850 if test "$LN_S" = "ln -s"; then
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4852 $as_echo "yes" >&6; }
4853 else
4854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4855 $as_echo "no, using $LN_S" >&6; }
4856 fi
4857
4858 # Make sure we can run config.sub.
4859 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4860   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4863 $as_echo_n "checking build system type... " >&6; }
4864 if ${ac_cv_build+:} false; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867   ac_build_alias=$build_alias
4868 test "x$ac_build_alias" = x &&
4869   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4870 test "x$ac_build_alias" = x &&
4871   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4872 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4873   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4874
4875 fi
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4877 $as_echo "$ac_cv_build" >&6; }
4878 case $ac_cv_build in
4879 *-*-*) ;;
4880 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4881 esac
4882 build=$ac_cv_build
4883 ac_save_IFS=$IFS; IFS='-'
4884 set x $ac_cv_build
4885 shift
4886 build_cpu=$1
4887 build_vendor=$2
4888 shift; shift
4889 # Remember, the first character of IFS is used to create $*,
4890 # except with old shells:
4891 build_os=$*
4892 IFS=$ac_save_IFS
4893 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4894
4895
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4897 $as_echo_n "checking host system type... " >&6; }
4898 if ${ac_cv_host+:} false; then :
4899   $as_echo_n "(cached) " >&6
4900 else
4901   if test "x$host_alias" = x; then
4902   ac_cv_host=$ac_cv_build
4903 else
4904   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4905     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4906 fi
4907
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4910 $as_echo "$ac_cv_host" >&6; }
4911 case $ac_cv_host in
4912 *-*-*) ;;
4913 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4914 esac
4915 host=$ac_cv_host
4916 ac_save_IFS=$IFS; IFS='-'
4917 set x $ac_cv_host
4918 shift
4919 host_cpu=$1
4920 host_vendor=$2
4921 shift; shift
4922 # Remember, the first character of IFS is used to create $*,
4923 # except with old shells:
4924 host_os=$*
4925 IFS=$ac_save_IFS
4926 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4927
4928
4929 enable_win32_dll=yes
4930
4931 case $host in
4932 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4933   if test -n "$ac_tool_prefix"; then
4934   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4935 set dummy ${ac_tool_prefix}as; ac_word=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if ${ac_cv_prog_AS+:} false; then :
4939   $as_echo_n "(cached) " >&6
4940 else
4941   if test -n "$AS"; then
4942   ac_cv_prog_AS="$AS" # Let the user override the test.
4943 else
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947   IFS=$as_save_IFS
4948   test -z "$as_dir" && as_dir=.
4949     for ac_exec_ext in '' $ac_executable_extensions; do
4950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951     ac_cv_prog_AS="${ac_tool_prefix}as"
4952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953     break 2
4954   fi
4955 done
4956   done
4957 IFS=$as_save_IFS
4958
4959 fi
4960 fi
4961 AS=$ac_cv_prog_AS
4962 if test -n "$AS"; then
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4964 $as_echo "$AS" >&6; }
4965 else
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 fi
4969
4970
4971 fi
4972 if test -z "$ac_cv_prog_AS"; then
4973   ac_ct_AS=$AS
4974   # Extract the first word of "as", so it can be a program name with args.
4975 set dummy as; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4979   $as_echo_n "(cached) " >&6
4980 else
4981   if test -n "$ac_ct_AS"; then
4982   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989     for ac_exec_ext in '' $ac_executable_extensions; do
4990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991     ac_cv_prog_ac_ct_AS="as"
4992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993     break 2
4994   fi
4995 done
4996   done
4997 IFS=$as_save_IFS
4998
4999 fi
5000 fi
5001 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5002 if test -n "$ac_ct_AS"; then
5003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5004 $as_echo "$ac_ct_AS" >&6; }
5005 else
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5008 fi
5009
5010   if test "x$ac_ct_AS" = x; then
5011     AS="false"
5012   else
5013     case $cross_compiling:$ac_tool_warned in
5014 yes:)
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5017 ac_tool_warned=yes ;;
5018 esac
5019     AS=$ac_ct_AS
5020   fi
5021 else
5022   AS="$ac_cv_prog_AS"
5023 fi
5024
5025   if test -n "$ac_tool_prefix"; then
5026   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5027 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_prog_DLLTOOL+:} false; then :
5031   $as_echo_n "(cached) " >&6
5032 else
5033   if test -n "$DLLTOOL"; then
5034   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5035 else
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039   IFS=$as_save_IFS
5040   test -z "$as_dir" && as_dir=.
5041     for ac_exec_ext in '' $ac_executable_extensions; do
5042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5043     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045     break 2
5046   fi
5047 done
5048   done
5049 IFS=$as_save_IFS
5050
5051 fi
5052 fi
5053 DLLTOOL=$ac_cv_prog_DLLTOOL
5054 if test -n "$DLLTOOL"; then
5055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5056 $as_echo "$DLLTOOL" >&6; }
5057 else
5058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5060 fi
5061
5062
5063 fi
5064 if test -z "$ac_cv_prog_DLLTOOL"; then
5065   ac_ct_DLLTOOL=$DLLTOOL
5066   # Extract the first word of "dlltool", so it can be a program name with args.
5067 set dummy dlltool; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5071   $as_echo_n "(cached) " >&6
5072 else
5073   if test -n "$ac_ct_DLLTOOL"; then
5074   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079   IFS=$as_save_IFS
5080   test -z "$as_dir" && as_dir=.
5081     for ac_exec_ext in '' $ac_executable_extensions; do
5082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085     break 2
5086   fi
5087 done
5088   done
5089 IFS=$as_save_IFS
5090
5091 fi
5092 fi
5093 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5094 if test -n "$ac_ct_DLLTOOL"; then
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5096 $as_echo "$ac_ct_DLLTOOL" >&6; }
5097 else
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5100 fi
5101
5102   if test "x$ac_ct_DLLTOOL" = x; then
5103     DLLTOOL="false"
5104   else
5105     case $cross_compiling:$ac_tool_warned in
5106 yes:)
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5109 ac_tool_warned=yes ;;
5110 esac
5111     DLLTOOL=$ac_ct_DLLTOOL
5112   fi
5113 else
5114   DLLTOOL="$ac_cv_prog_DLLTOOL"
5115 fi
5116
5117   if test -n "$ac_tool_prefix"; then
5118   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5119 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if ${ac_cv_prog_OBJDUMP+:} false; then :
5123   $as_echo_n "(cached) " >&6
5124 else
5125   if test -n "$OBJDUMP"; then
5126   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5130 do
5131   IFS=$as_save_IFS
5132   test -z "$as_dir" && as_dir=.
5133     for ac_exec_ext in '' $ac_executable_extensions; do
5134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137     break 2
5138   fi
5139 done
5140   done
5141 IFS=$as_save_IFS
5142
5143 fi
5144 fi
5145 OBJDUMP=$ac_cv_prog_OBJDUMP
5146 if test -n "$OBJDUMP"; then
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5148 $as_echo "$OBJDUMP" >&6; }
5149 else
5150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5152 fi
5153
5154
5155 fi
5156 if test -z "$ac_cv_prog_OBJDUMP"; then
5157   ac_ct_OBJDUMP=$OBJDUMP
5158   # Extract the first word of "objdump", so it can be a program name with args.
5159 set dummy objdump; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5163   $as_echo_n "(cached) " >&6
5164 else
5165   if test -n "$ac_ct_OBJDUMP"; then
5166   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173     for ac_exec_ext in '' $ac_executable_extensions; do
5174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177     break 2
5178   fi
5179 done
5180   done
5181 IFS=$as_save_IFS
5182
5183 fi
5184 fi
5185 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5186 if test -n "$ac_ct_OBJDUMP"; then
5187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5188 $as_echo "$ac_ct_OBJDUMP" >&6; }
5189 else
5190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5192 fi
5193
5194   if test "x$ac_ct_OBJDUMP" = x; then
5195     OBJDUMP="false"
5196   else
5197     case $cross_compiling:$ac_tool_warned in
5198 yes:)
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201 ac_tool_warned=yes ;;
5202 esac
5203     OBJDUMP=$ac_ct_OBJDUMP
5204   fi
5205 else
5206   OBJDUMP="$ac_cv_prog_OBJDUMP"
5207 fi
5208
5209   ;;
5210 esac
5211
5212 test -z "$AS" && AS=as
5213
5214
5215
5216
5217
5218 test -z "$DLLTOOL" && DLLTOOL=dlltool
5219
5220
5221
5222
5223
5224 test -z "$OBJDUMP" && OBJDUMP=objdump
5225
5226
5227
5228
5229
5230
5231
5232 case `pwd` in
5233   *\ * | *\     *)
5234     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5235 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5236 esac
5237
5238
5239
5240 macro_version='2.4.2'
5241 macro_revision='1.3337'
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255 ltmain="$ac_aux_dir/ltmain.sh"
5256
5257 # Backslashify metacharacters that are still active within
5258 # double-quoted strings.
5259 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5260
5261 # Same as above, but do not quote variable references.
5262 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5263
5264 # Sed substitution to delay expansion of an escaped shell variable in a
5265 # double_quote_subst'ed string.
5266 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5267
5268 # Sed substitution to delay expansion of an escaped single quote.
5269 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5270
5271 # Sed substitution to avoid accidental globbing in evaled expressions
5272 no_glob_subst='s/\*/\\\*/g'
5273
5274 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5275 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5276 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5277
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5279 $as_echo_n "checking how to print strings... " >&6; }
5280 # Test print first, because it will be a builtin if present.
5281 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5282    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5283   ECHO='print -r --'
5284 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5285   ECHO='printf %s\n'
5286 else
5287   # Use this function as a fallback that always works.
5288   func_fallback_echo ()
5289   {
5290     eval 'cat <<_LTECHO_EOF
5291 $1
5292 _LTECHO_EOF'
5293   }
5294   ECHO='func_fallback_echo'
5295 fi
5296
5297 # func_echo_all arg...
5298 # Invoke $ECHO with all args, space-separated.
5299 func_echo_all ()
5300 {
5301     $ECHO ""
5302 }
5303
5304 case "$ECHO" in
5305   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5306 $as_echo "printf" >&6; } ;;
5307   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5308 $as_echo "print -r" >&6; } ;;
5309   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5310 $as_echo "cat" >&6; } ;;
5311 esac
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5327 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5328 if ${ac_cv_path_SED+:} false; then :
5329   $as_echo_n "(cached) " >&6
5330 else
5331             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5332      for ac_i in 1 2 3 4 5 6 7; do
5333        ac_script="$ac_script$as_nl$ac_script"
5334      done
5335      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5336      { ac_script=; unset ac_script;}
5337      if test -z "$SED"; then
5338   ac_path_SED_found=false
5339   # Loop through the user's path and test for each of PROGNAME-LIST
5340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343   IFS=$as_save_IFS
5344   test -z "$as_dir" && as_dir=.
5345     for ac_prog in sed gsed; do
5346     for ac_exec_ext in '' $ac_executable_extensions; do
5347       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5348       as_fn_executable_p "$ac_path_SED" || continue
5349 # Check for GNU ac_path_SED and select it if it is found.
5350   # Check for GNU $ac_path_SED
5351 case `"$ac_path_SED" --version 2>&1` in
5352 *GNU*)
5353   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5354 *)
5355   ac_count=0
5356   $as_echo_n 0123456789 >"conftest.in"
5357   while :
5358   do
5359     cat "conftest.in" "conftest.in" >"conftest.tmp"
5360     mv "conftest.tmp" "conftest.in"
5361     cp "conftest.in" "conftest.nl"
5362     $as_echo '' >> "conftest.nl"
5363     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5364     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5365     as_fn_arith $ac_count + 1 && ac_count=$as_val
5366     if test $ac_count -gt ${ac_path_SED_max-0}; then
5367       # Best one so far, save it but keep looking for a better one
5368       ac_cv_path_SED="$ac_path_SED"
5369       ac_path_SED_max=$ac_count
5370     fi
5371     # 10*(2^10) chars as input seems more than enough
5372     test $ac_count -gt 10 && break
5373   done
5374   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5375 esac
5376
5377       $ac_path_SED_found && break 3
5378     done
5379   done
5380   done
5381 IFS=$as_save_IFS
5382   if test -z "$ac_cv_path_SED"; then
5383     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5384   fi
5385 else
5386   ac_cv_path_SED=$SED
5387 fi
5388
5389 fi
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5391 $as_echo "$ac_cv_path_SED" >&6; }
5392  SED="$ac_cv_path_SED"
5393   rm -f conftest.sed
5394
5395 test -z "$SED" && SED=sed
5396 Xsed="$SED -e 1s/^X//"
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5409 $as_echo_n "checking for fgrep... " >&6; }
5410 if ${ac_cv_path_FGREP+:} false; then :
5411   $as_echo_n "(cached) " >&6
5412 else
5413   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5414    then ac_cv_path_FGREP="$GREP -F"
5415    else
5416      if test -z "$FGREP"; then
5417   ac_path_FGREP_found=false
5418   # Loop through the user's path and test for each of PROGNAME-LIST
5419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5421 do
5422   IFS=$as_save_IFS
5423   test -z "$as_dir" && as_dir=.
5424     for ac_prog in fgrep; do
5425     for ac_exec_ext in '' $ac_executable_extensions; do
5426       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5427       as_fn_executable_p "$ac_path_FGREP" || continue
5428 # Check for GNU ac_path_FGREP and select it if it is found.
5429   # Check for GNU $ac_path_FGREP
5430 case `"$ac_path_FGREP" --version 2>&1` in
5431 *GNU*)
5432   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5433 *)
5434   ac_count=0
5435   $as_echo_n 0123456789 >"conftest.in"
5436   while :
5437   do
5438     cat "conftest.in" "conftest.in" >"conftest.tmp"
5439     mv "conftest.tmp" "conftest.in"
5440     cp "conftest.in" "conftest.nl"
5441     $as_echo 'FGREP' >> "conftest.nl"
5442     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5443     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5444     as_fn_arith $ac_count + 1 && ac_count=$as_val
5445     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5446       # Best one so far, save it but keep looking for a better one
5447       ac_cv_path_FGREP="$ac_path_FGREP"
5448       ac_path_FGREP_max=$ac_count
5449     fi
5450     # 10*(2^10) chars as input seems more than enough
5451     test $ac_count -gt 10 && break
5452   done
5453   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5454 esac
5455
5456       $ac_path_FGREP_found && break 3
5457     done
5458   done
5459   done
5460 IFS=$as_save_IFS
5461   if test -z "$ac_cv_path_FGREP"; then
5462     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5463   fi
5464 else
5465   ac_cv_path_FGREP=$FGREP
5466 fi
5467
5468    fi
5469 fi
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5471 $as_echo "$ac_cv_path_FGREP" >&6; }
5472  FGREP="$ac_cv_path_FGREP"
5473
5474
5475 test -z "$GREP" && GREP=grep
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495 # Check whether --with-gnu-ld was given.
5496 if test "${with_gnu_ld+set}" = set; then :
5497   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5498 else
5499   with_gnu_ld=no
5500 fi
5501
5502 ac_prog=ld
5503 if test "$GCC" = yes; then
5504   # Check if gcc -print-prog-name=ld gives a path.
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5506 $as_echo_n "checking for ld used by $CC... " >&6; }
5507   case $host in
5508   *-*-mingw*)
5509     # gcc leaves a trailing carriage return which upsets mingw
5510     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5511   *)
5512     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5513   esac
5514   case $ac_prog in
5515     # Accept absolute paths.
5516     [\\/]* | ?:[\\/]*)
5517       re_direlt='/[^/][^/]*/\.\./'
5518       # Canonicalize the pathname of ld
5519       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5520       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5521         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5522       done
5523       test -z "$LD" && LD="$ac_prog"
5524       ;;
5525   "")
5526     # If it fails, then pretend we aren't using GCC.
5527     ac_prog=ld
5528     ;;
5529   *)
5530     # If it is relative, then search for the first ld in PATH.
5531     with_gnu_ld=unknown
5532     ;;
5533   esac
5534 elif test "$with_gnu_ld" = yes; then
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5536 $as_echo_n "checking for GNU ld... " >&6; }
5537 else
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5539 $as_echo_n "checking for non-GNU ld... " >&6; }
5540 fi
5541 if ${lt_cv_path_LD+:} false; then :
5542   $as_echo_n "(cached) " >&6
5543 else
5544   if test -z "$LD"; then
5545   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5546   for ac_dir in $PATH; do
5547     IFS="$lt_save_ifs"
5548     test -z "$ac_dir" && ac_dir=.
5549     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5550       lt_cv_path_LD="$ac_dir/$ac_prog"
5551       # Check to see if the program is GNU ld.  I'd rather use --version,
5552       # but apparently some variants of GNU ld only accept -v.
5553       # Break only if it was the GNU/non-GNU ld that we prefer.
5554       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5555       *GNU* | *'with BFD'*)
5556         test "$with_gnu_ld" != no && break
5557         ;;
5558       *)
5559         test "$with_gnu_ld" != yes && break
5560         ;;
5561       esac
5562     fi
5563   done
5564   IFS="$lt_save_ifs"
5565 else
5566   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5567 fi
5568 fi
5569
5570 LD="$lt_cv_path_LD"
5571 if test -n "$LD"; then
5572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5573 $as_echo "$LD" >&6; }
5574 else
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5577 fi
5578 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5580 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5581 if ${lt_cv_prog_gnu_ld+:} false; then :
5582   $as_echo_n "(cached) " >&6
5583 else
5584   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5585 case `$LD -v 2>&1 </dev/null` in
5586 *GNU* | *'with BFD'*)
5587   lt_cv_prog_gnu_ld=yes
5588   ;;
5589 *)
5590   lt_cv_prog_gnu_ld=no
5591   ;;
5592 esac
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5595 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5596 with_gnu_ld=$lt_cv_prog_gnu_ld
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5607 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5608 if ${lt_cv_path_NM+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   if test -n "$NM"; then
5612   # Let the user override the test.
5613   lt_cv_path_NM="$NM"
5614 else
5615   lt_nm_to_check="${ac_tool_prefix}nm"
5616   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5617     lt_nm_to_check="$lt_nm_to_check nm"
5618   fi
5619   for lt_tmp_nm in $lt_nm_to_check; do
5620     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5621     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5622       IFS="$lt_save_ifs"
5623       test -z "$ac_dir" && ac_dir=.
5624       tmp_nm="$ac_dir/$lt_tmp_nm"
5625       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5626         # Check to see if the nm accepts a BSD-compat flag.
5627         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5628         #   nm: unknown option "B" ignored
5629         # Tru64's nm complains that /dev/null is an invalid object file
5630         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5631         */dev/null* | *'Invalid file or object type'*)
5632           lt_cv_path_NM="$tmp_nm -B"
5633           break
5634           ;;
5635         *)
5636           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5637           */dev/null*)
5638             lt_cv_path_NM="$tmp_nm -p"
5639             break
5640             ;;
5641           *)
5642             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5643             continue # so that we can try to find one that supports BSD flags
5644             ;;
5645           esac
5646           ;;
5647         esac
5648       fi
5649     done
5650     IFS="$lt_save_ifs"
5651   done
5652   : ${lt_cv_path_NM=no}
5653 fi
5654 fi
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5656 $as_echo "$lt_cv_path_NM" >&6; }
5657 if test "$lt_cv_path_NM" != "no"; then
5658   NM="$lt_cv_path_NM"
5659 else
5660   # Didn't find any BSD compatible name lister, look for dumpbin.
5661   if test -n "$DUMPBIN"; then :
5662     # Let the user override the test.
5663   else
5664     if test -n "$ac_tool_prefix"; then
5665   for ac_prog in dumpbin "link -dump"
5666   do
5667     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if ${ac_cv_prog_DUMPBIN+:} false; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   if test -n "$DUMPBIN"; then
5675   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5676 else
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
5680   IFS=$as_save_IFS
5681   test -z "$as_dir" && as_dir=.
5682     for ac_exec_ext in '' $ac_executable_extensions; do
5683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5684     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686     break 2
5687   fi
5688 done
5689   done
5690 IFS=$as_save_IFS
5691
5692 fi
5693 fi
5694 DUMPBIN=$ac_cv_prog_DUMPBIN
5695 if test -n "$DUMPBIN"; then
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5697 $as_echo "$DUMPBIN" >&6; }
5698 else
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 fi
5702
5703
5704     test -n "$DUMPBIN" && break
5705   done
5706 fi
5707 if test -z "$DUMPBIN"; then
5708   ac_ct_DUMPBIN=$DUMPBIN
5709   for ac_prog in dumpbin "link -dump"
5710 do
5711   # Extract the first word of "$ac_prog", so it can be a program name with args.
5712 set dummy $ac_prog; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   if test -n "$ac_ct_DUMPBIN"; then
5719   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5720 else
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5723 do
5724   IFS=$as_save_IFS
5725   test -z "$as_dir" && as_dir=.
5726     for ac_exec_ext in '' $ac_executable_extensions; do
5727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5728     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730     break 2
5731   fi
5732 done
5733   done
5734 IFS=$as_save_IFS
5735
5736 fi
5737 fi
5738 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5739 if test -n "$ac_ct_DUMPBIN"; then
5740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5741 $as_echo "$ac_ct_DUMPBIN" >&6; }
5742 else
5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5745 fi
5746
5747
5748   test -n "$ac_ct_DUMPBIN" && break
5749 done
5750
5751   if test "x$ac_ct_DUMPBIN" = x; then
5752     DUMPBIN=":"
5753   else
5754     case $cross_compiling:$ac_tool_warned in
5755 yes:)
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758 ac_tool_warned=yes ;;
5759 esac
5760     DUMPBIN=$ac_ct_DUMPBIN
5761   fi
5762 fi
5763
5764     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5765     *COFF*)
5766       DUMPBIN="$DUMPBIN -symbols"
5767       ;;
5768     *)
5769       DUMPBIN=:
5770       ;;
5771     esac
5772   fi
5773
5774   if test "$DUMPBIN" != ":"; then
5775     NM="$DUMPBIN"
5776   fi
5777 fi
5778 test -z "$NM" && NM=nm
5779
5780
5781
5782
5783
5784
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5786 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5787 if ${lt_cv_nm_interface+:} false; then :
5788   $as_echo_n "(cached) " >&6
5789 else
5790   lt_cv_nm_interface="BSD nm"
5791   echo "int some_variable = 0;" > conftest.$ac_ext
5792   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5793   (eval "$ac_compile" 2>conftest.err)
5794   cat conftest.err >&5
5795   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5796   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5797   cat conftest.err >&5
5798   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5799   cat conftest.out >&5
5800   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5801     lt_cv_nm_interface="MS dumpbin"
5802   fi
5803   rm -f conftest*
5804 fi
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5806 $as_echo "$lt_cv_nm_interface" >&6; }
5807
5808 # find the maximum length of command line arguments
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5810 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5811 if ${lt_cv_sys_max_cmd_len+:} false; then :
5812   $as_echo_n "(cached) " >&6
5813 else
5814     i=0
5815   teststring="ABCD"
5816
5817   case $build_os in
5818   msdosdjgpp*)
5819     # On DJGPP, this test can blow up pretty badly due to problems in libc
5820     # (any single argument exceeding 2000 bytes causes a buffer overrun
5821     # during glob expansion).  Even if it were fixed, the result of this
5822     # check would be larger than it should be.
5823     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5824     ;;
5825
5826   gnu*)
5827     # Under GNU Hurd, this test is not required because there is
5828     # no limit to the length of command line arguments.
5829     # Libtool will interpret -1 as no limit whatsoever
5830     lt_cv_sys_max_cmd_len=-1;
5831     ;;
5832
5833   cygwin* | mingw* | cegcc*)
5834     # On Win9x/ME, this test blows up -- it succeeds, but takes
5835     # about 5 minutes as the teststring grows exponentially.
5836     # Worse, since 9x/ME are not pre-emptively multitasking,
5837     # you end up with a "frozen" computer, even though with patience
5838     # the test eventually succeeds (with a max line length of 256k).
5839     # Instead, let's just punt: use the minimum linelength reported by
5840     # all of the supported platforms: 8192 (on NT/2K/XP).
5841     lt_cv_sys_max_cmd_len=8192;
5842     ;;
5843
5844   mint*)
5845     # On MiNT this can take a long time and run out of memory.
5846     lt_cv_sys_max_cmd_len=8192;
5847     ;;
5848
5849   amigaos*)
5850     # On AmigaOS with pdksh, this test takes hours, literally.
5851     # So we just punt and use a minimum line length of 8192.
5852     lt_cv_sys_max_cmd_len=8192;
5853     ;;
5854
5855   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5856     # This has been around since 386BSD, at least.  Likely further.
5857     if test -x /sbin/sysctl; then
5858       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5859     elif test -x /usr/sbin/sysctl; then
5860       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5861     else
5862       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5863     fi
5864     # And add a safety zone
5865     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5866     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5867     ;;
5868
5869   interix*)
5870     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5871     lt_cv_sys_max_cmd_len=196608
5872     ;;
5873
5874   os2*)
5875     # The test takes a long time on OS/2.
5876     lt_cv_sys_max_cmd_len=8192
5877     ;;
5878
5879   osf*)
5880     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5881     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5882     # nice to cause kernel panics so lets avoid the loop below.
5883     # First set a reasonable default.
5884     lt_cv_sys_max_cmd_len=16384
5885     #
5886     if test -x /sbin/sysconfig; then
5887       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5888         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5889       esac
5890     fi
5891     ;;
5892   sco3.2v5*)
5893     lt_cv_sys_max_cmd_len=102400
5894     ;;
5895   sysv5* | sco5v6* | sysv4.2uw2*)
5896     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5897     if test -n "$kargmax"; then
5898       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5899     else
5900       lt_cv_sys_max_cmd_len=32768
5901     fi
5902     ;;
5903   *)
5904     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5905     if test -n "$lt_cv_sys_max_cmd_len"; then
5906       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5907       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5908     else
5909       # Make teststring a little bigger before we do anything with it.
5910       # a 1K string should be a reasonable start.
5911       for i in 1 2 3 4 5 6 7 8 ; do
5912         teststring=$teststring$teststring
5913       done
5914       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5915       # If test is not a shell built-in, we'll probably end up computing a
5916       # maximum length that is only half of the actual maximum length, but
5917       # we can't tell.
5918       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5919                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5920               test $i != 17 # 1/2 MB should be enough
5921       do
5922         i=`expr $i + 1`
5923         teststring=$teststring$teststring
5924       done
5925       # Only check the string length outside the loop.
5926       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5927       teststring=
5928       # Add a significant safety factor because C++ compilers can tack on
5929       # massive amounts of additional arguments before passing them to the
5930       # linker.  It appears as though 1/2 is a usable value.
5931       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5932     fi
5933     ;;
5934   esac
5935
5936 fi
5937
5938 if test -n $lt_cv_sys_max_cmd_len ; then
5939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5940 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5941 else
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5943 $as_echo "none" >&6; }
5944 fi
5945 max_cmd_len=$lt_cv_sys_max_cmd_len
5946
5947
5948
5949
5950
5951
5952 : ${CP="cp -f"}
5953 : ${MV="mv -f"}
5954 : ${RM="rm -f"}
5955
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5957 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5958 # Try some XSI features
5959 xsi_shell=no
5960 ( _lt_dummy="a/b/c"
5961   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5962       = c,a/b,b/c, \
5963     && eval 'test $(( 1 + 1 )) -eq 2 \
5964     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5965   && xsi_shell=yes
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5967 $as_echo "$xsi_shell" >&6; }
5968
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5971 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5972 lt_shell_append=no
5973 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5974     >/dev/null 2>&1 \
5975   && lt_shell_append=yes
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5977 $as_echo "$lt_shell_append" >&6; }
5978
5979
5980 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5981   lt_unset=unset
5982 else
5983   lt_unset=false
5984 fi
5985
5986
5987
5988
5989
5990 # test EBCDIC or ASCII
5991 case `echo X|tr X '\101'` in
5992  A) # ASCII based system
5993     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5994   lt_SP2NL='tr \040 \012'
5995   lt_NL2SP='tr \015\012 \040\040'
5996   ;;
5997  *) # EBCDIC based system
5998   lt_SP2NL='tr \100 \n'
5999   lt_NL2SP='tr \r\n \100\100'
6000   ;;
6001 esac
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6012 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6013 if ${lt_cv_to_host_file_cmd+:} false; then :
6014   $as_echo_n "(cached) " >&6
6015 else
6016   case $host in
6017   *-*-mingw* )
6018     case $build in
6019       *-*-mingw* ) # actually msys
6020         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6021         ;;
6022       *-*-cygwin* )
6023         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6024         ;;
6025       * ) # otherwise, assume *nix
6026         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6027         ;;
6028     esac
6029     ;;
6030   *-*-cygwin* )
6031     case $build in
6032       *-*-mingw* ) # actually msys
6033         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6034         ;;
6035       *-*-cygwin* )
6036         lt_cv_to_host_file_cmd=func_convert_file_noop
6037         ;;
6038       * ) # otherwise, assume *nix
6039         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6040         ;;
6041     esac
6042     ;;
6043   * ) # unhandled hosts (and "normal" native builds)
6044     lt_cv_to_host_file_cmd=func_convert_file_noop
6045     ;;
6046 esac
6047
6048 fi
6049
6050 to_host_file_cmd=$lt_cv_to_host_file_cmd
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6052 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6053
6054
6055
6056
6057
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6059 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6060 if ${lt_cv_to_tool_file_cmd+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   #assume ordinary cross tools, or native build.
6064 lt_cv_to_tool_file_cmd=func_convert_file_noop
6065 case $host in
6066   *-*-mingw* )
6067     case $build in
6068       *-*-mingw* ) # actually msys
6069         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6070         ;;
6071     esac
6072     ;;
6073 esac
6074
6075 fi
6076
6077 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6079 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6080
6081
6082
6083
6084
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6086 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6087 if ${lt_cv_ld_reload_flag+:} false; then :
6088   $as_echo_n "(cached) " >&6
6089 else
6090   lt_cv_ld_reload_flag='-r'
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6093 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6094 reload_flag=$lt_cv_ld_reload_flag
6095 case $reload_flag in
6096 "" | " "*) ;;
6097 *) reload_flag=" $reload_flag" ;;
6098 esac
6099 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6100 case $host_os in
6101   cygwin* | mingw* | pw32* | cegcc*)
6102     if test "$GCC" != yes; then
6103       reload_cmds=false
6104     fi
6105     ;;
6106   darwin*)
6107     if test "$GCC" = yes; then
6108       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6109     else
6110       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6111     fi
6112     ;;
6113 esac
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123 if test -n "$ac_tool_prefix"; then
6124   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6125 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if ${ac_cv_prog_OBJDUMP+:} false; then :
6129   $as_echo_n "(cached) " >&6
6130 else
6131   if test -n "$OBJDUMP"; then
6132   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137   IFS=$as_save_IFS
6138   test -z "$as_dir" && as_dir=.
6139     for ac_exec_ext in '' $ac_executable_extensions; do
6140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143     break 2
6144   fi
6145 done
6146   done
6147 IFS=$as_save_IFS
6148
6149 fi
6150 fi
6151 OBJDUMP=$ac_cv_prog_OBJDUMP
6152 if test -n "$OBJDUMP"; then
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6154 $as_echo "$OBJDUMP" >&6; }
6155 else
6156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6158 fi
6159
6160
6161 fi
6162 if test -z "$ac_cv_prog_OBJDUMP"; then
6163   ac_ct_OBJDUMP=$OBJDUMP
6164   # Extract the first word of "objdump", so it can be a program name with args.
6165 set dummy objdump; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6169   $as_echo_n "(cached) " >&6
6170 else
6171   if test -n "$ac_ct_OBJDUMP"; then
6172   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177   IFS=$as_save_IFS
6178   test -z "$as_dir" && as_dir=.
6179     for ac_exec_ext in '' $ac_executable_extensions; do
6180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183     break 2
6184   fi
6185 done
6186   done
6187 IFS=$as_save_IFS
6188
6189 fi
6190 fi
6191 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6192 if test -n "$ac_ct_OBJDUMP"; then
6193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6194 $as_echo "$ac_ct_OBJDUMP" >&6; }
6195 else
6196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6198 fi
6199
6200   if test "x$ac_ct_OBJDUMP" = x; then
6201     OBJDUMP="false"
6202   else
6203     case $cross_compiling:$ac_tool_warned in
6204 yes:)
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6208 esac
6209     OBJDUMP=$ac_ct_OBJDUMP
6210   fi
6211 else
6212   OBJDUMP="$ac_cv_prog_OBJDUMP"
6213 fi
6214
6215 test -z "$OBJDUMP" && OBJDUMP=objdump
6216
6217
6218
6219
6220
6221
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6223 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6224 if ${lt_cv_deplibs_check_method+:} false; then :
6225   $as_echo_n "(cached) " >&6
6226 else
6227   lt_cv_file_magic_cmd='$MAGIC_CMD'
6228 lt_cv_file_magic_test_file=
6229 lt_cv_deplibs_check_method='unknown'
6230 # Need to set the preceding variable on all platforms that support
6231 # interlibrary dependencies.
6232 # 'none' -- dependencies not supported.
6233 # `unknown' -- same as none, but documents that we really don't know.
6234 # 'pass_all' -- all dependencies passed with no checks.
6235 # 'test_compile' -- check by making test program.
6236 # 'file_magic [[regex]]' -- check by looking for files in library path
6237 # which responds to the $file_magic_cmd with a given extended regex.
6238 # If you have `file' or equivalent on your system and you're not sure
6239 # whether `pass_all' will *always* work, you probably want this one.
6240
6241 case $host_os in
6242 aix[4-9]*)
6243   lt_cv_deplibs_check_method=pass_all
6244   ;;
6245
6246 beos*)
6247   lt_cv_deplibs_check_method=pass_all
6248   ;;
6249
6250 bsdi[45]*)
6251   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6252   lt_cv_file_magic_cmd='/usr/bin/file -L'
6253   lt_cv_file_magic_test_file=/shlib/libc.so
6254   ;;
6255
6256 cygwin*)
6257   # func_win32_libid is a shell function defined in ltmain.sh
6258   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6259   lt_cv_file_magic_cmd='func_win32_libid'
6260   ;;
6261
6262 mingw* | pw32*)
6263   # Base MSYS/MinGW do not provide the 'file' command needed by
6264   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6265   # unless we find 'file', for example because we are cross-compiling.
6266   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6267   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6268     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6269     lt_cv_file_magic_cmd='func_win32_libid'
6270   else
6271     # Keep this pattern in sync with the one in func_win32_libid.
6272     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6273     lt_cv_file_magic_cmd='$OBJDUMP -f'
6274   fi
6275   ;;
6276
6277 cegcc*)
6278   # use the weaker test based on 'objdump'. See mingw*.
6279   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6280   lt_cv_file_magic_cmd='$OBJDUMP -f'
6281   ;;
6282
6283 darwin* | rhapsody*)
6284   lt_cv_deplibs_check_method=pass_all
6285   ;;
6286
6287 freebsd* | dragonfly*)
6288   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6289     case $host_cpu in
6290     i*86 )
6291       # Not sure whether the presence of OpenBSD here was a mistake.
6292       # Let's accept both of them until this is cleared up.
6293       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6294       lt_cv_file_magic_cmd=/usr/bin/file
6295       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6296       ;;
6297     esac
6298   else
6299     lt_cv_deplibs_check_method=pass_all
6300   fi
6301   ;;
6302
6303 gnu*)
6304   lt_cv_deplibs_check_method=pass_all
6305   ;;
6306
6307 haiku*)
6308   lt_cv_deplibs_check_method=pass_all
6309   ;;
6310
6311 hpux10.20* | hpux11*)
6312   lt_cv_file_magic_cmd=/usr/bin/file
6313   case $host_cpu in
6314   ia64*)
6315     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6316     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6317     ;;
6318   hppa*64*)
6319     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]'
6320     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6321     ;;
6322   *)
6323     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6324     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6325     ;;
6326   esac
6327   ;;
6328
6329 interix[3-9]*)
6330   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6331   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6332   ;;
6333
6334 irix5* | irix6* | nonstopux*)
6335   case $LD in
6336   *-32|*"-32 ") libmagic=32-bit;;
6337   *-n32|*"-n32 ") libmagic=N32;;
6338   *-64|*"-64 ") libmagic=64-bit;;
6339   *) libmagic=never-match;;
6340   esac
6341   lt_cv_deplibs_check_method=pass_all
6342   ;;
6343
6344 # This must be glibc/ELF.
6345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6346   lt_cv_deplibs_check_method=pass_all
6347   ;;
6348
6349 netbsd*)
6350   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6351     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6352   else
6353     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6354   fi
6355   ;;
6356
6357 newos6*)
6358   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6359   lt_cv_file_magic_cmd=/usr/bin/file
6360   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6361   ;;
6362
6363 *nto* | *qnx*)
6364   lt_cv_deplibs_check_method=pass_all
6365   ;;
6366
6367 openbsd*)
6368   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6369     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6370   else
6371     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6372   fi
6373   ;;
6374
6375 osf3* | osf4* | osf5*)
6376   lt_cv_deplibs_check_method=pass_all
6377   ;;
6378
6379 rdos*)
6380   lt_cv_deplibs_check_method=pass_all
6381   ;;
6382
6383 solaris*)
6384   lt_cv_deplibs_check_method=pass_all
6385   ;;
6386
6387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6388   lt_cv_deplibs_check_method=pass_all
6389   ;;
6390
6391 sysv4 | sysv4.3*)
6392   case $host_vendor in
6393   motorola)
6394     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]'
6395     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6396     ;;
6397   ncr)
6398     lt_cv_deplibs_check_method=pass_all
6399     ;;
6400   sequent)
6401     lt_cv_file_magic_cmd='/bin/file'
6402     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6403     ;;
6404   sni)
6405     lt_cv_file_magic_cmd='/bin/file'
6406     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6407     lt_cv_file_magic_test_file=/lib/libc.so
6408     ;;
6409   siemens)
6410     lt_cv_deplibs_check_method=pass_all
6411     ;;
6412   pc)
6413     lt_cv_deplibs_check_method=pass_all
6414     ;;
6415   esac
6416   ;;
6417
6418 tpf*)
6419   lt_cv_deplibs_check_method=pass_all
6420   ;;
6421 esac
6422
6423 fi
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6425 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6426
6427 file_magic_glob=
6428 want_nocaseglob=no
6429 if test "$build" = "$host"; then
6430   case $host_os in
6431   mingw* | pw32*)
6432     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6433       want_nocaseglob=yes
6434     else
6435       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6436     fi
6437     ;;
6438   esac
6439 fi
6440
6441 file_magic_cmd=$lt_cv_file_magic_cmd
6442 deplibs_check_method=$lt_cv_deplibs_check_method
6443 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466 if test -n "$ac_tool_prefix"; then
6467   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_DLLTOOL+:} false; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   if test -n "$DLLTOOL"; then
6475   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6479 do
6480   IFS=$as_save_IFS
6481   test -z "$as_dir" && as_dir=.
6482     for ac_exec_ext in '' $ac_executable_extensions; do
6483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486     break 2
6487   fi
6488 done
6489   done
6490 IFS=$as_save_IFS
6491
6492 fi
6493 fi
6494 DLLTOOL=$ac_cv_prog_DLLTOOL
6495 if test -n "$DLLTOOL"; then
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6497 $as_echo "$DLLTOOL" >&6; }
6498 else
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501 fi
6502
6503
6504 fi
6505 if test -z "$ac_cv_prog_DLLTOOL"; then
6506   ac_ct_DLLTOOL=$DLLTOOL
6507   # Extract the first word of "dlltool", so it can be a program name with args.
6508 set dummy dlltool; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6512   $as_echo_n "(cached) " >&6
6513 else
6514   if test -n "$ac_ct_DLLTOOL"; then
6515   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520   IFS=$as_save_IFS
6521   test -z "$as_dir" && as_dir=.
6522     for ac_exec_ext in '' $ac_executable_extensions; do
6523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526     break 2
6527   fi
6528 done
6529   done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6535 if test -n "$ac_ct_DLLTOOL"; then
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6537 $as_echo "$ac_ct_DLLTOOL" >&6; }
6538 else
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542
6543   if test "x$ac_ct_DLLTOOL" = x; then
6544     DLLTOOL="false"
6545   else
6546     case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6551 esac
6552     DLLTOOL=$ac_ct_DLLTOOL
6553   fi
6554 else
6555   DLLTOOL="$ac_cv_prog_DLLTOOL"
6556 fi
6557
6558 test -z "$DLLTOOL" && DLLTOOL=dlltool
6559
6560
6561
6562
6563
6564
6565
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6567 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6568 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   lt_cv_sharedlib_from_linklib_cmd='unknown'
6572
6573 case $host_os in
6574 cygwin* | mingw* | pw32* | cegcc*)
6575   # two different shell functions defined in ltmain.sh
6576   # decide which to use based on capabilities of $DLLTOOL
6577   case `$DLLTOOL --help 2>&1` in
6578   *--identify-strict*)
6579     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6580     ;;
6581   *)
6582     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6583     ;;
6584   esac
6585   ;;
6586 *)
6587   # fallback: assume linklib IS sharedlib
6588   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6589   ;;
6590 esac
6591
6592 fi
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6594 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6595 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6596 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6597
6598
6599
6600
6601
6602
6603
6604 if test -n "$ac_tool_prefix"; then
6605   for ac_prog in ar
6606   do
6607     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_prog_AR+:} false; then :
6612   $as_echo_n "(cached) " >&6
6613 else
6614   if test -n "$AR"; then
6615   ac_cv_prog_AR="$AR" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622     for ac_exec_ext in '' $ac_executable_extensions; do
6623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626     break 2
6627   fi
6628 done
6629   done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
6634 AR=$ac_cv_prog_AR
6635 if test -n "$AR"; then
6636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6637 $as_echo "$AR" >&6; }
6638 else
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6641 fi
6642
6643
6644     test -n "$AR" && break
6645   done
6646 fi
6647 if test -z "$AR"; then
6648   ac_ct_AR=$AR
6649   for ac_prog in ar
6650 do
6651   # Extract the first word of "$ac_prog", so it can be a program name with args.
6652 set dummy $ac_prog; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6656   $as_echo_n "(cached) " >&6
6657 else
6658   if test -n "$ac_ct_AR"; then
6659   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6660 else
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664   IFS=$as_save_IFS
6665   test -z "$as_dir" && as_dir=.
6666     for ac_exec_ext in '' $ac_executable_extensions; do
6667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668     ac_cv_prog_ac_ct_AR="$ac_prog"
6669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670     break 2
6671   fi
6672 done
6673   done
6674 IFS=$as_save_IFS
6675
6676 fi
6677 fi
6678 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6679 if test -n "$ac_ct_AR"; then
6680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6681 $as_echo "$ac_ct_AR" >&6; }
6682 else
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6685 fi
6686
6687
6688   test -n "$ac_ct_AR" && break
6689 done
6690
6691   if test "x$ac_ct_AR" = x; then
6692     AR="false"
6693   else
6694     case $cross_compiling:$ac_tool_warned in
6695 yes:)
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6698 ac_tool_warned=yes ;;
6699 esac
6700     AR=$ac_ct_AR
6701   fi
6702 fi
6703
6704 : ${AR=ar}
6705 : ${AR_FLAGS=cru}
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6718 $as_echo_n "checking for archiver @FILE support... " >&6; }
6719 if ${lt_cv_ar_at_file+:} false; then :
6720   $as_echo_n "(cached) " >&6
6721 else
6722   lt_cv_ar_at_file=no
6723    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h.  */
6725
6726 int
6727 main ()
6728 {
6729
6730   ;
6731   return 0;
6732 }
6733 _ACEOF
6734 if ac_fn_c_try_compile "$LINENO"; then :
6735   echo conftest.$ac_objext > conftest.lst
6736       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6737       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6738   (eval $lt_ar_try) 2>&5
6739   ac_status=$?
6740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741   test $ac_status = 0; }
6742       if test "$ac_status" -eq 0; then
6743         # Ensure the archiver fails upon bogus file names.
6744         rm -f conftest.$ac_objext libconftest.a
6745         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6746   (eval $lt_ar_try) 2>&5
6747   ac_status=$?
6748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749   test $ac_status = 0; }
6750         if test "$ac_status" -ne 0; then
6751           lt_cv_ar_at_file=@
6752         fi
6753       fi
6754       rm -f conftest.* libconftest.a
6755
6756 fi
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758
6759 fi
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6761 $as_echo "$lt_cv_ar_at_file" >&6; }
6762
6763 if test "x$lt_cv_ar_at_file" = xno; then
6764   archiver_list_spec=
6765 else
6766   archiver_list_spec=$lt_cv_ar_at_file
6767 fi
6768
6769
6770
6771
6772
6773
6774
6775 if test -n "$ac_tool_prefix"; then
6776   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6777 set dummy ${ac_tool_prefix}strip; ac_word=$2
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779 $as_echo_n "checking for $ac_word... " >&6; }
6780 if ${ac_cv_prog_STRIP+:} false; then :
6781   $as_echo_n "(cached) " >&6
6782 else
6783   if test -n "$STRIP"; then
6784   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789   IFS=$as_save_IFS
6790   test -z "$as_dir" && as_dir=.
6791     for ac_exec_ext in '' $ac_executable_extensions; do
6792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6793     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795     break 2
6796   fi
6797 done
6798   done
6799 IFS=$as_save_IFS
6800
6801 fi
6802 fi
6803 STRIP=$ac_cv_prog_STRIP
6804 if test -n "$STRIP"; then
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6806 $as_echo "$STRIP" >&6; }
6807 else
6808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809 $as_echo "no" >&6; }
6810 fi
6811
6812
6813 fi
6814 if test -z "$ac_cv_prog_STRIP"; then
6815   ac_ct_STRIP=$STRIP
6816   # Extract the first word of "strip", so it can be a program name with args.
6817 set dummy strip; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6821   $as_echo_n "(cached) " >&6
6822 else
6823   if test -n "$ac_ct_STRIP"; then
6824   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829   IFS=$as_save_IFS
6830   test -z "$as_dir" && as_dir=.
6831     for ac_exec_ext in '' $ac_executable_extensions; do
6832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833     ac_cv_prog_ac_ct_STRIP="strip"
6834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835     break 2
6836   fi
6837 done
6838   done
6839 IFS=$as_save_IFS
6840
6841 fi
6842 fi
6843 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6844 if test -n "$ac_ct_STRIP"; then
6845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6846 $as_echo "$ac_ct_STRIP" >&6; }
6847 else
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6850 fi
6851
6852   if test "x$ac_ct_STRIP" = x; then
6853     STRIP=":"
6854   else
6855     case $cross_compiling:$ac_tool_warned in
6856 yes:)
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6859 ac_tool_warned=yes ;;
6860 esac
6861     STRIP=$ac_ct_STRIP
6862   fi
6863 else
6864   STRIP="$ac_cv_prog_STRIP"
6865 fi
6866
6867 test -z "$STRIP" && STRIP=:
6868
6869
6870
6871
6872
6873
6874 if test -n "$ac_tool_prefix"; then
6875   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6876 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if ${ac_cv_prog_RANLIB+:} false; then :
6880   $as_echo_n "(cached) " >&6
6881 else
6882   if test -n "$RANLIB"; then
6883   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888   IFS=$as_save_IFS
6889   test -z "$as_dir" && as_dir=.
6890     for ac_exec_ext in '' $ac_executable_extensions; do
6891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6892     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894     break 2
6895   fi
6896 done
6897   done
6898 IFS=$as_save_IFS
6899
6900 fi
6901 fi
6902 RANLIB=$ac_cv_prog_RANLIB
6903 if test -n "$RANLIB"; then
6904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6905 $as_echo "$RANLIB" >&6; }
6906 else
6907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6909 fi
6910
6911
6912 fi
6913 if test -z "$ac_cv_prog_RANLIB"; then
6914   ac_ct_RANLIB=$RANLIB
6915   # Extract the first word of "ranlib", so it can be a program name with args.
6916 set dummy ranlib; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   if test -n "$ac_ct_RANLIB"; then
6923   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928   IFS=$as_save_IFS
6929   test -z "$as_dir" && as_dir=.
6930     for ac_exec_ext in '' $ac_executable_extensions; do
6931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6932     ac_cv_prog_ac_ct_RANLIB="ranlib"
6933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934     break 2
6935   fi
6936 done
6937   done
6938 IFS=$as_save_IFS
6939
6940 fi
6941 fi
6942 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6943 if test -n "$ac_ct_RANLIB"; then
6944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6945 $as_echo "$ac_ct_RANLIB" >&6; }
6946 else
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6950
6951   if test "x$ac_ct_RANLIB" = x; then
6952     RANLIB=":"
6953   else
6954     case $cross_compiling:$ac_tool_warned in
6955 yes:)
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6958 ac_tool_warned=yes ;;
6959 esac
6960     RANLIB=$ac_ct_RANLIB
6961   fi
6962 else
6963   RANLIB="$ac_cv_prog_RANLIB"
6964 fi
6965
6966 test -z "$RANLIB" && RANLIB=:
6967
6968
6969
6970
6971
6972
6973 # Determine commands to create old-style static archives.
6974 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6975 old_postinstall_cmds='chmod 644 $oldlib'
6976 old_postuninstall_cmds=
6977
6978 if test -n "$RANLIB"; then
6979   case $host_os in
6980   openbsd*)
6981     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6982     ;;
6983   *)
6984     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6985     ;;
6986   esac
6987   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6988 fi
6989
6990 case $host_os in
6991   darwin*)
6992     lock_old_archive_extraction=yes ;;
6993   *)
6994     lock_old_archive_extraction=no ;;
6995 esac
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035 # If no C compiler was specified, use CC.
7036 LTCC=${LTCC-"$CC"}
7037
7038 # If no C compiler flags were specified, use CFLAGS.
7039 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7040
7041 # Allow CC to be a program name with arguments.
7042 compiler=$CC
7043
7044
7045 # Check for command to grab the raw symbol name followed by C symbol from nm.
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7047 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7048 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7049   $as_echo_n "(cached) " >&6
7050 else
7051
7052 # These are sane defaults that work on at least a few old systems.
7053 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7054
7055 # Character class describing NM global symbol codes.
7056 symcode='[BCDEGRST]'
7057
7058 # Regexp to match symbols that can be accessed directly from C.
7059 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7060
7061 # Define system-specific variables.
7062 case $host_os in
7063 aix*)
7064   symcode='[BCDT]'
7065   ;;
7066 cygwin* | mingw* | pw32* | cegcc*)
7067   symcode='[ABCDGISTW]'
7068   ;;
7069 hpux*)
7070   if test "$host_cpu" = ia64; then
7071     symcode='[ABCDEGRST]'
7072   fi
7073   ;;
7074 irix* | nonstopux*)
7075   symcode='[BCDEGRST]'
7076   ;;
7077 osf*)
7078   symcode='[BCDEGQRST]'
7079   ;;
7080 solaris*)
7081   symcode='[BDRT]'
7082   ;;
7083 sco3.2v5*)
7084   symcode='[DT]'
7085   ;;
7086 sysv4.2uw2*)
7087   symcode='[DT]'
7088   ;;
7089 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7090   symcode='[ABDT]'
7091   ;;
7092 sysv4)
7093   symcode='[DFNSTU]'
7094   ;;
7095 esac
7096
7097 # If we're using GNU nm, then use its standard symbol codes.
7098 case `$NM -V 2>&1` in
7099 *GNU* | *'with BFD'*)
7100   symcode='[ABCDGIRSTW]' ;;
7101 esac
7102
7103 # Transform an extracted symbol line into a proper C declaration.
7104 # Some systems (esp. on ia64) link data and code symbols differently,
7105 # so use this general approach.
7106 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7107
7108 # Transform an extracted symbol line into symbol name and symbol address
7109 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7110 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'"
7111
7112 # Handle CRLF in mingw tool chain
7113 opt_cr=
7114 case $build_os in
7115 mingw*)
7116   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7117   ;;
7118 esac
7119
7120 # Try without a prefix underscore, then with it.
7121 for ac_symprfx in "" "_"; do
7122
7123   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7124   symxfrm="\\1 $ac_symprfx\\2 \\2"
7125
7126   # Write the raw and C identifiers.
7127   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7128     # Fake it for dumpbin and say T for any non-static function
7129     # and D for any global variable.
7130     # Also find C++ and __fastcall symbols from MSVC++,
7131     # which start with @ or ?.
7132     lt_cv_sys_global_symbol_pipe="$AWK '"\
7133 "     {last_section=section; section=\$ 3};"\
7134 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7135 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7136 "     \$ 0!~/External *\|/{next};"\
7137 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7138 "     {if(hide[section]) next};"\
7139 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7140 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7141 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7142 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7143 "     ' prfx=^$ac_symprfx"
7144   else
7145     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7146   fi
7147   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7148
7149   # Check to see that the pipe works correctly.
7150   pipe_works=no
7151
7152   rm -f conftest*
7153   cat > conftest.$ac_ext <<_LT_EOF
7154 #ifdef __cplusplus
7155 extern "C" {
7156 #endif
7157 char nm_test_var;
7158 void nm_test_func(void);
7159 void nm_test_func(void){}
7160 #ifdef __cplusplus
7161 }
7162 #endif
7163 int main(){nm_test_var='a';nm_test_func();return(0);}
7164 _LT_EOF
7165
7166   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7167   (eval $ac_compile) 2>&5
7168   ac_status=$?
7169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7170   test $ac_status = 0; }; then
7171     # Now try to grab the symbols.
7172     nlist=conftest.nm
7173     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7174   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7175   ac_status=$?
7176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7177   test $ac_status = 0; } && test -s "$nlist"; then
7178       # Try sorting and uniquifying the output.
7179       if sort "$nlist" | uniq > "$nlist"T; then
7180         mv -f "$nlist"T "$nlist"
7181       else
7182         rm -f "$nlist"T
7183       fi
7184
7185       # Make sure that we snagged all the symbols we need.
7186       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7187         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7188           cat <<_LT_EOF > conftest.$ac_ext
7189 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7190 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7191 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7192    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7193 # define LT_DLSYM_CONST
7194 #elif defined(__osf__)
7195 /* This system does not cope well with relocations in const data.  */
7196 # define LT_DLSYM_CONST
7197 #else
7198 # define LT_DLSYM_CONST const
7199 #endif
7200
7201 #ifdef __cplusplus
7202 extern "C" {
7203 #endif
7204
7205 _LT_EOF
7206           # Now generate the symbol file.
7207           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7208
7209           cat <<_LT_EOF >> conftest.$ac_ext
7210
7211 /* The mapping between symbol names and symbols.  */
7212 LT_DLSYM_CONST struct {
7213   const char *name;
7214   void       *address;
7215 }
7216 lt__PROGRAM__LTX_preloaded_symbols[] =
7217 {
7218   { "@PROGRAM@", (void *) 0 },
7219 _LT_EOF
7220           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7221           cat <<\_LT_EOF >> conftest.$ac_ext
7222   {0, (void *) 0}
7223 };
7224
7225 /* This works around a problem in FreeBSD linker */
7226 #ifdef FREEBSD_WORKAROUND
7227 static const void *lt_preloaded_setup() {
7228   return lt__PROGRAM__LTX_preloaded_symbols;
7229 }
7230 #endif
7231
7232 #ifdef __cplusplus
7233 }
7234 #endif
7235 _LT_EOF
7236           # Now try linking the two files.
7237           mv conftest.$ac_objext conftstm.$ac_objext
7238           lt_globsym_save_LIBS=$LIBS
7239           lt_globsym_save_CFLAGS=$CFLAGS
7240           LIBS="conftstm.$ac_objext"
7241           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7242           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7243   (eval $ac_link) 2>&5
7244   ac_status=$?
7245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7246   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7247             pipe_works=yes
7248           fi
7249           LIBS=$lt_globsym_save_LIBS
7250           CFLAGS=$lt_globsym_save_CFLAGS
7251         else
7252           echo "cannot find nm_test_func in $nlist" >&5
7253         fi
7254       else
7255         echo "cannot find nm_test_var in $nlist" >&5
7256       fi
7257     else
7258       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7259     fi
7260   else
7261     echo "$progname: failed program was:" >&5
7262     cat conftest.$ac_ext >&5
7263   fi
7264   rm -rf conftest* conftst*
7265
7266   # Do not use the global_symbol_pipe unless it works.
7267   if test "$pipe_works" = yes; then
7268     break
7269   else
7270     lt_cv_sys_global_symbol_pipe=
7271   fi
7272 done
7273
7274 fi
7275
7276 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7277   lt_cv_sys_global_symbol_to_cdecl=
7278 fi
7279 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7281 $as_echo "failed" >&6; }
7282 else
7283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7284 $as_echo "ok" >&6; }
7285 fi
7286
7287 # Response file support.
7288 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7289   nm_file_list_spec='@'
7290 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7291   nm_file_list_spec='@'
7292 fi
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7321 $as_echo_n "checking for sysroot... " >&6; }
7322
7323 # Check whether --with-sysroot was given.
7324 if test "${with_sysroot+set}" = set; then :
7325   withval=$with_sysroot;
7326 else
7327   with_sysroot=no
7328 fi
7329
7330
7331 lt_sysroot=
7332 case ${with_sysroot} in #(
7333  yes)
7334    if test "$GCC" = yes; then
7335      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7336    fi
7337    ;; #(
7338  /*)
7339    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7340    ;; #(
7341  no|'')
7342    ;; #(
7343  *)
7344    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7345 $as_echo "${with_sysroot}" >&6; }
7346    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7347    ;;
7348 esac
7349
7350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7351 $as_echo "${lt_sysroot:-no}" >&6; }
7352
7353
7354
7355
7356
7357 # Check whether --enable-libtool-lock was given.
7358 if test "${enable_libtool_lock+set}" = set; then :
7359   enableval=$enable_libtool_lock;
7360 fi
7361
7362 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7363
7364 # Some flags need to be propagated to the compiler or linker for good
7365 # libtool support.
7366 case $host in
7367 ia64-*-hpux*)
7368   # Find out which ABI we are using.
7369   echo 'int i;' > conftest.$ac_ext
7370   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7371   (eval $ac_compile) 2>&5
7372   ac_status=$?
7373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7374   test $ac_status = 0; }; then
7375     case `/usr/bin/file conftest.$ac_objext` in
7376       *ELF-32*)
7377         HPUX_IA64_MODE="32"
7378         ;;
7379       *ELF-64*)
7380         HPUX_IA64_MODE="64"
7381         ;;
7382     esac
7383   fi
7384   rm -rf conftest*
7385   ;;
7386 *-*-irix6*)
7387   # Find out which ABI we are using.
7388   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7389   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7390   (eval $ac_compile) 2>&5
7391   ac_status=$?
7392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393   test $ac_status = 0; }; then
7394     if test "$lt_cv_prog_gnu_ld" = yes; then
7395       case `/usr/bin/file conftest.$ac_objext` in
7396         *32-bit*)
7397           LD="${LD-ld} -melf32bsmip"
7398           ;;
7399         *N32*)
7400           LD="${LD-ld} -melf32bmipn32"
7401           ;;
7402         *64-bit*)
7403           LD="${LD-ld} -melf64bmip"
7404         ;;
7405       esac
7406     else
7407       case `/usr/bin/file conftest.$ac_objext` in
7408         *32-bit*)
7409           LD="${LD-ld} -32"
7410           ;;
7411         *N32*)
7412           LD="${LD-ld} -n32"
7413           ;;
7414         *64-bit*)
7415           LD="${LD-ld} -64"
7416           ;;
7417       esac
7418     fi
7419   fi
7420   rm -rf conftest*
7421   ;;
7422
7423 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7424 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7425   # Find out which ABI we are using.
7426   echo 'int i;' > conftest.$ac_ext
7427   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428   (eval $ac_compile) 2>&5
7429   ac_status=$?
7430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431   test $ac_status = 0; }; then
7432     case `/usr/bin/file conftest.o` in
7433       *32-bit*)
7434         case $host in
7435           x86_64-*kfreebsd*-gnu)
7436             LD="${LD-ld} -m elf_i386_fbsd"
7437             ;;
7438           x86_64-*linux*)
7439             LD="${LD-ld} -m elf_i386"
7440             ;;
7441           ppc64-*linux*|powerpc64-*linux*)
7442             LD="${LD-ld} -m elf32ppclinux"
7443             ;;
7444           s390x-*linux*)
7445             LD="${LD-ld} -m elf_s390"
7446             ;;
7447           sparc64-*linux*)
7448             LD="${LD-ld} -m elf32_sparc"
7449             ;;
7450         esac
7451         ;;
7452       *64-bit*)
7453         case $host in
7454           x86_64-*kfreebsd*-gnu)
7455             LD="${LD-ld} -m elf_x86_64_fbsd"
7456             ;;
7457           x86_64-*linux*)
7458             LD="${LD-ld} -m elf_x86_64"
7459             ;;
7460           ppc*-*linux*|powerpc*-*linux*)
7461             LD="${LD-ld} -m elf64ppc"
7462             ;;
7463           s390*-*linux*|s390*-*tpf*)
7464             LD="${LD-ld} -m elf64_s390"
7465             ;;
7466           sparc*-*linux*)
7467             LD="${LD-ld} -m elf64_sparc"
7468             ;;
7469         esac
7470         ;;
7471     esac
7472   fi
7473   rm -rf conftest*
7474   ;;
7475
7476 *-*-sco3.2v5*)
7477   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7478   SAVE_CFLAGS="$CFLAGS"
7479   CFLAGS="$CFLAGS -belf"
7480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7481 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7482 if ${lt_cv_cc_needs_belf+:} false; then :
7483   $as_echo_n "(cached) " >&6
7484 else
7485   ac_ext=c
7486 ac_cpp='$CPP $CPPFLAGS'
7487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7490
7491      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h.  */
7493
7494 int
7495 main ()
7496 {
7497
7498   ;
7499   return 0;
7500 }
7501 _ACEOF
7502 if ac_fn_c_try_link "$LINENO"; then :
7503   lt_cv_cc_needs_belf=yes
7504 else
7505   lt_cv_cc_needs_belf=no
7506 fi
7507 rm -f core conftest.err conftest.$ac_objext \
7508     conftest$ac_exeext conftest.$ac_ext
7509      ac_ext=c
7510 ac_cpp='$CPP $CPPFLAGS'
7511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7514
7515 fi
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7517 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7518   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7519     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7520     CFLAGS="$SAVE_CFLAGS"
7521   fi
7522   ;;
7523 *-*solaris*)
7524   # Find out which ABI we are using.
7525   echo 'int i;' > conftest.$ac_ext
7526   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7527   (eval $ac_compile) 2>&5
7528   ac_status=$?
7529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530   test $ac_status = 0; }; then
7531     case `/usr/bin/file conftest.o` in
7532     *64-bit*)
7533       case $lt_cv_prog_gnu_ld in
7534       yes*)
7535         case $host in
7536         i?86-*-solaris*)
7537           LD="${LD-ld} -m elf_x86_64"
7538           ;;
7539         sparc*-*-solaris*)
7540           LD="${LD-ld} -m elf64_sparc"
7541           ;;
7542         esac
7543         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7544         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7545           LD="${LD-ld}_sol2"
7546         fi
7547         ;;
7548       *)
7549         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7550           LD="${LD-ld} -64"
7551         fi
7552         ;;
7553       esac
7554       ;;
7555     esac
7556   fi
7557   rm -rf conftest*
7558   ;;
7559 esac
7560
7561 need_locks="$enable_libtool_lock"
7562
7563 if test -n "$ac_tool_prefix"; then
7564   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7565 set dummy ${ac_tool_prefix}mt; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7569   $as_echo_n "(cached) " >&6
7570 else
7571   if test -n "$MANIFEST_TOOL"; then
7572   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7573 else
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577   IFS=$as_save_IFS
7578   test -z "$as_dir" && as_dir=.
7579     for ac_exec_ext in '' $ac_executable_extensions; do
7580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7581     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583     break 2
7584   fi
7585 done
7586   done
7587 IFS=$as_save_IFS
7588
7589 fi
7590 fi
7591 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7592 if test -n "$MANIFEST_TOOL"; then
7593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7594 $as_echo "$MANIFEST_TOOL" >&6; }
7595 else
7596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7598 fi
7599
7600
7601 fi
7602 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7603   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7604   # Extract the first word of "mt", so it can be a program name with args.
7605 set dummy mt; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7609   $as_echo_n "(cached) " >&6
7610 else
7611   if test -n "$ac_ct_MANIFEST_TOOL"; then
7612   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617   IFS=$as_save_IFS
7618   test -z "$as_dir" && as_dir=.
7619     for ac_exec_ext in '' $ac_executable_extensions; do
7620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7621     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623     break 2
7624   fi
7625 done
7626   done
7627 IFS=$as_save_IFS
7628
7629 fi
7630 fi
7631 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7632 if test -n "$ac_ct_MANIFEST_TOOL"; then
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7634 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7635 else
7636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639
7640   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7641     MANIFEST_TOOL=":"
7642   else
7643     case $cross_compiling:$ac_tool_warned in
7644 yes:)
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7647 ac_tool_warned=yes ;;
7648 esac
7649     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7650   fi
7651 else
7652   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7653 fi
7654
7655 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7657 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7658 if ${lt_cv_path_mainfest_tool+:} false; then :
7659   $as_echo_n "(cached) " >&6
7660 else
7661   lt_cv_path_mainfest_tool=no
7662   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7663   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7664   cat conftest.err >&5
7665   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7666     lt_cv_path_mainfest_tool=yes
7667   fi
7668   rm -f conftest*
7669 fi
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7671 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7672 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7673   MANIFEST_TOOL=:
7674 fi
7675
7676
7677
7678
7679
7680
7681   case $host_os in
7682     rhapsody* | darwin*)
7683     if test -n "$ac_tool_prefix"; then
7684   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7685 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7689   $as_echo_n "(cached) " >&6
7690 else
7691   if test -n "$DSYMUTIL"; then
7692   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7693 else
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7696 do
7697   IFS=$as_save_IFS
7698   test -z "$as_dir" && as_dir=.
7699     for ac_exec_ext in '' $ac_executable_extensions; do
7700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703     break 2
7704   fi
7705 done
7706   done
7707 IFS=$as_save_IFS
7708
7709 fi
7710 fi
7711 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7712 if test -n "$DSYMUTIL"; then
7713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7714 $as_echo "$DSYMUTIL" >&6; }
7715 else
7716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7718 fi
7719
7720
7721 fi
7722 if test -z "$ac_cv_prog_DSYMUTIL"; then
7723   ac_ct_DSYMUTIL=$DSYMUTIL
7724   # Extract the first word of "dsymutil", so it can be a program name with args.
7725 set dummy dsymutil; ac_word=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7729   $as_echo_n "(cached) " >&6
7730 else
7731   if test -n "$ac_ct_DSYMUTIL"; then
7732   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7733 else
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7736 do
7737   IFS=$as_save_IFS
7738   test -z "$as_dir" && as_dir=.
7739     for ac_exec_ext in '' $ac_executable_extensions; do
7740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7741     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743     break 2
7744   fi
7745 done
7746   done
7747 IFS=$as_save_IFS
7748
7749 fi
7750 fi
7751 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7752 if test -n "$ac_ct_DSYMUTIL"; then
7753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7754 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7755 else
7756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7758 fi
7759
7760   if test "x$ac_ct_DSYMUTIL" = x; then
7761     DSYMUTIL=":"
7762   else
7763     case $cross_compiling:$ac_tool_warned in
7764 yes:)
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7767 ac_tool_warned=yes ;;
7768 esac
7769     DSYMUTIL=$ac_ct_DSYMUTIL
7770   fi
7771 else
7772   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7773 fi
7774
7775     if test -n "$ac_tool_prefix"; then
7776   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7777 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779 $as_echo_n "checking for $ac_word... " >&6; }
7780 if ${ac_cv_prog_NMEDIT+:} false; then :
7781   $as_echo_n "(cached) " >&6
7782 else
7783   if test -n "$NMEDIT"; then
7784   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7785 else
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 for as_dir in $PATH
7788 do
7789   IFS=$as_save_IFS
7790   test -z "$as_dir" && as_dir=.
7791     for ac_exec_ext in '' $ac_executable_extensions; do
7792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795     break 2
7796   fi
7797 done
7798   done
7799 IFS=$as_save_IFS
7800
7801 fi
7802 fi
7803 NMEDIT=$ac_cv_prog_NMEDIT
7804 if test -n "$NMEDIT"; then
7805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7806 $as_echo "$NMEDIT" >&6; }
7807 else
7808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7810 fi
7811
7812
7813 fi
7814 if test -z "$ac_cv_prog_NMEDIT"; then
7815   ac_ct_NMEDIT=$NMEDIT
7816   # Extract the first word of "nmedit", so it can be a program name with args.
7817 set dummy nmedit; ac_word=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7821   $as_echo_n "(cached) " >&6
7822 else
7823   if test -n "$ac_ct_NMEDIT"; then
7824   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7825 else
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7828 do
7829   IFS=$as_save_IFS
7830   test -z "$as_dir" && as_dir=.
7831     for ac_exec_ext in '' $ac_executable_extensions; do
7832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835     break 2
7836   fi
7837 done
7838   done
7839 IFS=$as_save_IFS
7840
7841 fi
7842 fi
7843 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7844 if test -n "$ac_ct_NMEDIT"; then
7845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7846 $as_echo "$ac_ct_NMEDIT" >&6; }
7847 else
7848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7850 fi
7851
7852   if test "x$ac_ct_NMEDIT" = x; then
7853     NMEDIT=":"
7854   else
7855     case $cross_compiling:$ac_tool_warned in
7856 yes:)
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859 ac_tool_warned=yes ;;
7860 esac
7861     NMEDIT=$ac_ct_NMEDIT
7862   fi
7863 else
7864   NMEDIT="$ac_cv_prog_NMEDIT"
7865 fi
7866
7867     if test -n "$ac_tool_prefix"; then
7868   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7869 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871 $as_echo_n "checking for $ac_word... " >&6; }
7872 if ${ac_cv_prog_LIPO+:} false; then :
7873   $as_echo_n "(cached) " >&6
7874 else
7875   if test -n "$LIPO"; then
7876   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7877 else
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 for as_dir in $PATH
7880 do
7881   IFS=$as_save_IFS
7882   test -z "$as_dir" && as_dir=.
7883     for ac_exec_ext in '' $ac_executable_extensions; do
7884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7885     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7887     break 2
7888   fi
7889 done
7890   done
7891 IFS=$as_save_IFS
7892
7893 fi
7894 fi
7895 LIPO=$ac_cv_prog_LIPO
7896 if test -n "$LIPO"; then
7897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7898 $as_echo "$LIPO" >&6; }
7899 else
7900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7902 fi
7903
7904
7905 fi
7906 if test -z "$ac_cv_prog_LIPO"; then
7907   ac_ct_LIPO=$LIPO
7908   # Extract the first word of "lipo", so it can be a program name with args.
7909 set dummy lipo; ac_word=$2
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911 $as_echo_n "checking for $ac_word... " >&6; }
7912 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7913   $as_echo_n "(cached) " >&6
7914 else
7915   if test -n "$ac_ct_LIPO"; then
7916   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7917 else
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7920 do
7921   IFS=$as_save_IFS
7922   test -z "$as_dir" && as_dir=.
7923     for ac_exec_ext in '' $ac_executable_extensions; do
7924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7925     ac_cv_prog_ac_ct_LIPO="lipo"
7926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927     break 2
7928   fi
7929 done
7930   done
7931 IFS=$as_save_IFS
7932
7933 fi
7934 fi
7935 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7936 if test -n "$ac_ct_LIPO"; then
7937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7938 $as_echo "$ac_ct_LIPO" >&6; }
7939 else
7940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7942 fi
7943
7944   if test "x$ac_ct_LIPO" = x; then
7945     LIPO=":"
7946   else
7947     case $cross_compiling:$ac_tool_warned in
7948 yes:)
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7951 ac_tool_warned=yes ;;
7952 esac
7953     LIPO=$ac_ct_LIPO
7954   fi
7955 else
7956   LIPO="$ac_cv_prog_LIPO"
7957 fi
7958
7959     if test -n "$ac_tool_prefix"; then
7960   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7961 set dummy ${ac_tool_prefix}otool; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_prog_OTOOL+:} false; then :
7965   $as_echo_n "(cached) " >&6
7966 else
7967   if test -n "$OTOOL"; then
7968   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7969 else
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7972 do
7973   IFS=$as_save_IFS
7974   test -z "$as_dir" && as_dir=.
7975     for ac_exec_ext in '' $ac_executable_extensions; do
7976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979     break 2
7980   fi
7981 done
7982   done
7983 IFS=$as_save_IFS
7984
7985 fi
7986 fi
7987 OTOOL=$ac_cv_prog_OTOOL
7988 if test -n "$OTOOL"; then
7989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7990 $as_echo "$OTOOL" >&6; }
7991 else
7992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7994 fi
7995
7996
7997 fi
7998 if test -z "$ac_cv_prog_OTOOL"; then
7999   ac_ct_OTOOL=$OTOOL
8000   # Extract the first word of "otool", so it can be a program name with args.
8001 set dummy otool; ac_word=$2
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003 $as_echo_n "checking for $ac_word... " >&6; }
8004 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8005   $as_echo_n "(cached) " >&6
8006 else
8007   if test -n "$ac_ct_OTOOL"; then
8008   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8009 else
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 for as_dir in $PATH
8012 do
8013   IFS=$as_save_IFS
8014   test -z "$as_dir" && as_dir=.
8015     for ac_exec_ext in '' $ac_executable_extensions; do
8016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8017     ac_cv_prog_ac_ct_OTOOL="otool"
8018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8019     break 2
8020   fi
8021 done
8022   done
8023 IFS=$as_save_IFS
8024
8025 fi
8026 fi
8027 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8028 if test -n "$ac_ct_OTOOL"; then
8029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8030 $as_echo "$ac_ct_OTOOL" >&6; }
8031 else
8032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8034 fi
8035
8036   if test "x$ac_ct_OTOOL" = x; then
8037     OTOOL=":"
8038   else
8039     case $cross_compiling:$ac_tool_warned in
8040 yes:)
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8043 ac_tool_warned=yes ;;
8044 esac
8045     OTOOL=$ac_ct_OTOOL
8046   fi
8047 else
8048   OTOOL="$ac_cv_prog_OTOOL"
8049 fi
8050
8051     if test -n "$ac_tool_prefix"; then
8052   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8053 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if ${ac_cv_prog_OTOOL64+:} false; then :
8057   $as_echo_n "(cached) " >&6
8058 else
8059   if test -n "$OTOOL64"; then
8060   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8061 else
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8064 do
8065   IFS=$as_save_IFS
8066   test -z "$as_dir" && as_dir=.
8067     for ac_exec_ext in '' $ac_executable_extensions; do
8068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8069     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8071     break 2
8072   fi
8073 done
8074   done
8075 IFS=$as_save_IFS
8076
8077 fi
8078 fi
8079 OTOOL64=$ac_cv_prog_OTOOL64
8080 if test -n "$OTOOL64"; then
8081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8082 $as_echo "$OTOOL64" >&6; }
8083 else
8084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8086 fi
8087
8088
8089 fi
8090 if test -z "$ac_cv_prog_OTOOL64"; then
8091   ac_ct_OTOOL64=$OTOOL64
8092   # Extract the first word of "otool64", so it can be a program name with args.
8093 set dummy otool64; ac_word=$2
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095 $as_echo_n "checking for $ac_word... " >&6; }
8096 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8097   $as_echo_n "(cached) " >&6
8098 else
8099   if test -n "$ac_ct_OTOOL64"; then
8100   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8101 else
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 for as_dir in $PATH
8104 do
8105   IFS=$as_save_IFS
8106   test -z "$as_dir" && as_dir=.
8107     for ac_exec_ext in '' $ac_executable_extensions; do
8108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8109     ac_cv_prog_ac_ct_OTOOL64="otool64"
8110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111     break 2
8112   fi
8113 done
8114   done
8115 IFS=$as_save_IFS
8116
8117 fi
8118 fi
8119 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8120 if test -n "$ac_ct_OTOOL64"; then
8121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8122 $as_echo "$ac_ct_OTOOL64" >&6; }
8123 else
8124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8126 fi
8127
8128   if test "x$ac_ct_OTOOL64" = x; then
8129     OTOOL64=":"
8130   else
8131     case $cross_compiling:$ac_tool_warned in
8132 yes:)
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8135 ac_tool_warned=yes ;;
8136 esac
8137     OTOOL64=$ac_ct_OTOOL64
8138   fi
8139 else
8140   OTOOL64="$ac_cv_prog_OTOOL64"
8141 fi
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8170 $as_echo_n "checking for -single_module linker flag... " >&6; }
8171 if ${lt_cv_apple_cc_single_mod+:} false; then :
8172   $as_echo_n "(cached) " >&6
8173 else
8174   lt_cv_apple_cc_single_mod=no
8175       if test -z "${LT_MULTI_MODULE}"; then
8176         # By default we will add the -single_module flag. You can override
8177         # by either setting the environment variable LT_MULTI_MODULE
8178         # non-empty at configure time, or by adding -multi_module to the
8179         # link flags.
8180         rm -rf libconftest.dylib*
8181         echo "int foo(void){return 1;}" > conftest.c
8182         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8183 -dynamiclib -Wl,-single_module conftest.c" >&5
8184         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8185           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8186         _lt_result=$?
8187         # If there is a non-empty error log, and "single_module"
8188         # appears in it, assume the flag caused a linker warning
8189         if test -s conftest.err && $GREP single_module conftest.err; then
8190           cat conftest.err >&5
8191         # Otherwise, if the output was created with a 0 exit code from
8192         # the compiler, it worked.
8193         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8194           lt_cv_apple_cc_single_mod=yes
8195         else
8196           cat conftest.err >&5
8197         fi
8198         rm -rf libconftest.dylib*
8199         rm -f conftest.*
8200       fi
8201 fi
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8203 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8204
8205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8206 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8207 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8208   $as_echo_n "(cached) " >&6
8209 else
8210   lt_cv_ld_exported_symbols_list=no
8211       save_LDFLAGS=$LDFLAGS
8212       echo "_main" > conftest.sym
8213       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8214       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h.  */
8216
8217 int
8218 main ()
8219 {
8220
8221   ;
8222   return 0;
8223 }
8224 _ACEOF
8225 if ac_fn_c_try_link "$LINENO"; then :
8226   lt_cv_ld_exported_symbols_list=yes
8227 else
8228   lt_cv_ld_exported_symbols_list=no
8229 fi
8230 rm -f core conftest.err conftest.$ac_objext \
8231     conftest$ac_exeext conftest.$ac_ext
8232         LDFLAGS="$save_LDFLAGS"
8233
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8236 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8237
8238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8239 $as_echo_n "checking for -force_load linker flag... " >&6; }
8240 if ${lt_cv_ld_force_load+:} false; then :
8241   $as_echo_n "(cached) " >&6
8242 else
8243   lt_cv_ld_force_load=no
8244       cat > conftest.c << _LT_EOF
8245 int forced_loaded() { return 2;}
8246 _LT_EOF
8247       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8248       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8249       echo "$AR cru libconftest.a conftest.o" >&5
8250       $AR cru libconftest.a conftest.o 2>&5
8251       echo "$RANLIB libconftest.a" >&5
8252       $RANLIB libconftest.a 2>&5
8253       cat > conftest.c << _LT_EOF
8254 int main() { return 0;}
8255 _LT_EOF
8256       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8257       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8258       _lt_result=$?
8259       if test -s conftest.err && $GREP force_load conftest.err; then
8260         cat conftest.err >&5
8261       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8262         lt_cv_ld_force_load=yes
8263       else
8264         cat conftest.err >&5
8265       fi
8266         rm -f conftest.err libconftest.a conftest conftest.c
8267         rm -rf conftest.dSYM
8268
8269 fi
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8271 $as_echo "$lt_cv_ld_force_load" >&6; }
8272     case $host_os in
8273     rhapsody* | darwin1.[012])
8274       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8275     darwin1.*)
8276       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8277     darwin*) # darwin 5.x on
8278       # if running on 10.5 or later, the deployment target defaults
8279       # to the OS version, if on x86, and 10.4, the deployment
8280       # target defaults to 10.4. Don't you love it?
8281       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8282         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8283           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8284         10.[012]*)
8285           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8286         10.*)
8287           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8288       esac
8289     ;;
8290   esac
8291     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8292       _lt_dar_single_mod='$single_module'
8293     fi
8294     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8295       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8296     else
8297       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8298     fi
8299     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8300       _lt_dsymutil='~$DSYMUTIL $lib || :'
8301     else
8302       _lt_dsymutil=
8303     fi
8304     ;;
8305   esac
8306
8307 for ac_header in dlfcn.h
8308 do :
8309   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8310 "
8311 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8312   cat >>confdefs.h <<_ACEOF
8313 #define HAVE_DLFCN_H 1
8314 _ACEOF
8315
8316 fi
8317
8318 done
8319
8320
8321
8322
8323
8324 # Set options
8325
8326
8327
8328         enable_dlopen=no
8329
8330
8331
8332             # Check whether --enable-shared was given.
8333 if test "${enable_shared+set}" = set; then :
8334   enableval=$enable_shared; p=${PACKAGE-default}
8335     case $enableval in
8336     yes) enable_shared=yes ;;
8337     no) enable_shared=no ;;
8338     *)
8339       enable_shared=no
8340       # Look at the argument we got.  We use all the common list separators.
8341       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8342       for pkg in $enableval; do
8343         IFS="$lt_save_ifs"
8344         if test "X$pkg" = "X$p"; then
8345           enable_shared=yes
8346         fi
8347       done
8348       IFS="$lt_save_ifs"
8349       ;;
8350     esac
8351 else
8352   enable_shared=yes
8353 fi
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363   # Check whether --enable-static was given.
8364 if test "${enable_static+set}" = set; then :
8365   enableval=$enable_static; p=${PACKAGE-default}
8366     case $enableval in
8367     yes) enable_static=yes ;;
8368     no) enable_static=no ;;
8369     *)
8370      enable_static=no
8371       # Look at the argument we got.  We use all the common list separators.
8372       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8373       for pkg in $enableval; do
8374         IFS="$lt_save_ifs"
8375         if test "X$pkg" = "X$p"; then
8376           enable_static=yes
8377         fi
8378       done
8379       IFS="$lt_save_ifs"
8380       ;;
8381     esac
8382 else
8383   enable_static=yes
8384 fi
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395 # Check whether --with-pic was given.
8396 if test "${with_pic+set}" = set; then :
8397   withval=$with_pic; lt_p=${PACKAGE-default}
8398     case $withval in
8399     yes|no) pic_mode=$withval ;;
8400     *)
8401       pic_mode=default
8402       # Look at the argument we got.  We use all the common list separators.
8403       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8404       for lt_pkg in $withval; do
8405         IFS="$lt_save_ifs"
8406         if test "X$lt_pkg" = "X$lt_p"; then
8407           pic_mode=yes
8408         fi
8409       done
8410       IFS="$lt_save_ifs"
8411       ;;
8412     esac
8413 else
8414   pic_mode=default
8415 fi
8416
8417
8418 test -z "$pic_mode" && pic_mode=default
8419
8420
8421
8422
8423
8424
8425
8426   # Check whether --enable-fast-install was given.
8427 if test "${enable_fast_install+set}" = set; then :
8428   enableval=$enable_fast_install; p=${PACKAGE-default}
8429     case $enableval in
8430     yes) enable_fast_install=yes ;;
8431     no) enable_fast_install=no ;;
8432     *)
8433       enable_fast_install=no
8434       # Look at the argument we got.  We use all the common list separators.
8435       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8436       for pkg in $enableval; do
8437         IFS="$lt_save_ifs"
8438         if test "X$pkg" = "X$p"; then
8439           enable_fast_install=yes
8440         fi
8441       done
8442       IFS="$lt_save_ifs"
8443       ;;
8444     esac
8445 else
8446   enable_fast_install=yes
8447 fi
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459 # This can be used to rebuild libtool when needed
8460 LIBTOOL_DEPS="$ltmain"
8461
8462 # Always use our own libtool.
8463 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494 test -z "$LN_S" && LN_S="ln -s"
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509 if test -n "${ZSH_VERSION+set}" ; then
8510    setopt NO_GLOB_SUBST
8511 fi
8512
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8514 $as_echo_n "checking for objdir... " >&6; }
8515 if ${lt_cv_objdir+:} false; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518   rm -f .libs 2>/dev/null
8519 mkdir .libs 2>/dev/null
8520 if test -d .libs; then
8521   lt_cv_objdir=.libs
8522 else
8523   # MS-DOS does not allow filenames that begin with a dot.
8524   lt_cv_objdir=_libs
8525 fi
8526 rmdir .libs 2>/dev/null
8527 fi
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8529 $as_echo "$lt_cv_objdir" >&6; }
8530 objdir=$lt_cv_objdir
8531
8532
8533
8534
8535
8536 cat >>confdefs.h <<_ACEOF
8537 #define LT_OBJDIR "$lt_cv_objdir/"
8538 _ACEOF
8539
8540
8541
8542
8543 case $host_os in
8544 aix3*)
8545   # AIX sometimes has problems with the GCC collect2 program.  For some
8546   # reason, if we set the COLLECT_NAMES environment variable, the problems
8547   # vanish in a puff of smoke.
8548   if test "X${COLLECT_NAMES+set}" != Xset; then
8549     COLLECT_NAMES=
8550     export COLLECT_NAMES
8551   fi
8552   ;;
8553 esac
8554
8555 # Global variables:
8556 ofile=libtool
8557 can_build_shared=yes
8558
8559 # All known linkers require a `.a' archive for static linking (except MSVC,
8560 # which needs '.lib').
8561 libext=a
8562
8563 with_gnu_ld="$lt_cv_prog_gnu_ld"
8564
8565 old_CC="$CC"
8566 old_CFLAGS="$CFLAGS"
8567
8568 # Set sane defaults for various variables
8569 test -z "$CC" && CC=cc
8570 test -z "$LTCC" && LTCC=$CC
8571 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8572 test -z "$LD" && LD=ld
8573 test -z "$ac_objext" && ac_objext=o
8574
8575 for cc_temp in $compiler""; do
8576   case $cc_temp in
8577     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8578     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8579     \-*) ;;
8580     *) break;;
8581   esac
8582 done
8583 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8584
8585
8586 # Only perform the check for file, if the check method requires it
8587 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8588 case $deplibs_check_method in
8589 file_magic*)
8590   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8592 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8593 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8594   $as_echo_n "(cached) " >&6
8595 else
8596   case $MAGIC_CMD in
8597 [\\/*] |  ?:[\\/]*)
8598   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8599   ;;
8600 *)
8601   lt_save_MAGIC_CMD="$MAGIC_CMD"
8602   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8603   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8604   for ac_dir in $ac_dummy; do
8605     IFS="$lt_save_ifs"
8606     test -z "$ac_dir" && ac_dir=.
8607     if test -f $ac_dir/${ac_tool_prefix}file; then
8608       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8609       if test -n "$file_magic_test_file"; then
8610         case $deplibs_check_method in
8611         "file_magic "*)
8612           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8613           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8614           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8615             $EGREP "$file_magic_regex" > /dev/null; then
8616             :
8617           else
8618             cat <<_LT_EOF 1>&2
8619
8620 *** Warning: the command libtool uses to detect shared libraries,
8621 *** $file_magic_cmd, produces output that libtool cannot recognize.
8622 *** The result is that libtool may fail to recognize shared libraries
8623 *** as such.  This will affect the creation of libtool libraries that
8624 *** depend on shared libraries, but programs linked with such libtool
8625 *** libraries will work regardless of this problem.  Nevertheless, you
8626 *** may want to report the problem to your system manager and/or to
8627 *** bug-libtool@gnu.org
8628
8629 _LT_EOF
8630           fi ;;
8631         esac
8632       fi
8633       break
8634     fi
8635   done
8636   IFS="$lt_save_ifs"
8637   MAGIC_CMD="$lt_save_MAGIC_CMD"
8638   ;;
8639 esac
8640 fi
8641
8642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8643 if test -n "$MAGIC_CMD"; then
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8645 $as_echo "$MAGIC_CMD" >&6; }
8646 else
8647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8649 fi
8650
8651
8652
8653
8654
8655 if test -z "$lt_cv_path_MAGIC_CMD"; then
8656   if test -n "$ac_tool_prefix"; then
8657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8658 $as_echo_n "checking for file... " >&6; }
8659 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8660   $as_echo_n "(cached) " >&6
8661 else
8662   case $MAGIC_CMD in
8663 [\\/*] |  ?:[\\/]*)
8664   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8665   ;;
8666 *)
8667   lt_save_MAGIC_CMD="$MAGIC_CMD"
8668   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8669   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8670   for ac_dir in $ac_dummy; do
8671     IFS="$lt_save_ifs"
8672     test -z "$ac_dir" && ac_dir=.
8673     if test -f $ac_dir/file; then
8674       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8675       if test -n "$file_magic_test_file"; then
8676         case $deplibs_check_method in
8677         "file_magic "*)
8678           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8679           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8680           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8681             $EGREP "$file_magic_regex" > /dev/null; then
8682             :
8683           else
8684             cat <<_LT_EOF 1>&2
8685
8686 *** Warning: the command libtool uses to detect shared libraries,
8687 *** $file_magic_cmd, produces output that libtool cannot recognize.
8688 *** The result is that libtool may fail to recognize shared libraries
8689 *** as such.  This will affect the creation of libtool libraries that
8690 *** depend on shared libraries, but programs linked with such libtool
8691 *** libraries will work regardless of this problem.  Nevertheless, you
8692 *** may want to report the problem to your system manager and/or to
8693 *** bug-libtool@gnu.org
8694
8695 _LT_EOF
8696           fi ;;
8697         esac
8698       fi
8699       break
8700     fi
8701   done
8702   IFS="$lt_save_ifs"
8703   MAGIC_CMD="$lt_save_MAGIC_CMD"
8704   ;;
8705 esac
8706 fi
8707
8708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8709 if test -n "$MAGIC_CMD"; then
8710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8711 $as_echo "$MAGIC_CMD" >&6; }
8712 else
8713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8715 fi
8716
8717
8718   else
8719     MAGIC_CMD=:
8720   fi
8721 fi
8722
8723   fi
8724   ;;
8725 esac
8726
8727 # Use C for the default configuration in the libtool script
8728
8729 lt_save_CC="$CC"
8730 ac_ext=c
8731 ac_cpp='$CPP $CPPFLAGS'
8732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8735
8736
8737 # Source file extension for C test sources.
8738 ac_ext=c
8739
8740 # Object file extension for compiled C test sources.
8741 objext=o
8742 objext=$objext
8743
8744 # Code to be used in simple compile tests
8745 lt_simple_compile_test_code="int some_variable = 0;"
8746
8747 # Code to be used in simple link tests
8748 lt_simple_link_test_code='int main(){return(0);}'
8749
8750
8751
8752
8753
8754
8755
8756 # If no C compiler was specified, use CC.
8757 LTCC=${LTCC-"$CC"}
8758
8759 # If no C compiler flags were specified, use CFLAGS.
8760 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8761
8762 # Allow CC to be a program name with arguments.
8763 compiler=$CC
8764
8765 # Save the default compiler, since it gets overwritten when the other
8766 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8767 compiler_DEFAULT=$CC
8768
8769 # save warnings/boilerplate of simple test code
8770 ac_outfile=conftest.$ac_objext
8771 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8772 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8773 _lt_compiler_boilerplate=`cat conftest.err`
8774 $RM conftest*
8775
8776 ac_outfile=conftest.$ac_objext
8777 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8778 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8779 _lt_linker_boilerplate=`cat conftest.err`
8780 $RM -r conftest*
8781
8782
8783 ## CAVEAT EMPTOR:
8784 ## There is no encapsulation within the following macros, do not change
8785 ## the running order or otherwise move them around unless you know exactly
8786 ## what you are doing...
8787 if test -n "$compiler"; then
8788
8789 lt_prog_compiler_no_builtin_flag=
8790
8791 if test "$GCC" = yes; then
8792   case $cc_basename in
8793   nvcc*)
8794     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8795   *)
8796     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8797   esac
8798
8799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8800 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8801 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8802   $as_echo_n "(cached) " >&6
8803 else
8804   lt_cv_prog_compiler_rtti_exceptions=no
8805    ac_outfile=conftest.$ac_objext
8806    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8807    lt_compiler_flag="-fno-rtti -fno-exceptions"
8808    # Insert the option either (1) after the last *FLAGS variable, or
8809    # (2) before a word containing "conftest.", or (3) at the end.
8810    # Note that $ac_compile itself does not contain backslashes and begins
8811    # with a dollar sign (not a hyphen), so the echo should work correctly.
8812    # The option is referenced via a variable to avoid confusing sed.
8813    lt_compile=`echo "$ac_compile" | $SED \
8814    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8815    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8816    -e 's:$: $lt_compiler_flag:'`
8817    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8818    (eval "$lt_compile" 2>conftest.err)
8819    ac_status=$?
8820    cat conftest.err >&5
8821    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822    if (exit $ac_status) && test -s "$ac_outfile"; then
8823      # The compiler can only warn and ignore the option if not recognized
8824      # So say no if there are warnings other than the usual output.
8825      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8826      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8827      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8828        lt_cv_prog_compiler_rtti_exceptions=yes
8829      fi
8830    fi
8831    $RM conftest*
8832
8833 fi
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8835 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8836
8837 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8838     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8839 else
8840     :
8841 fi
8842
8843 fi
8844
8845
8846
8847
8848
8849
8850   lt_prog_compiler_wl=
8851 lt_prog_compiler_pic=
8852 lt_prog_compiler_static=
8853
8854
8855   if test "$GCC" = yes; then
8856     lt_prog_compiler_wl='-Wl,'
8857     lt_prog_compiler_static='-static'
8858
8859     case $host_os in
8860       aix*)
8861       # All AIX code is PIC.
8862       if test "$host_cpu" = ia64; then
8863         # AIX 5 now supports IA64 processor
8864         lt_prog_compiler_static='-Bstatic'
8865       fi
8866       ;;
8867
8868     amigaos*)
8869       case $host_cpu in
8870       powerpc)
8871             # see comment about AmigaOS4 .so support
8872             lt_prog_compiler_pic='-fPIC'
8873         ;;
8874       m68k)
8875             # FIXME: we need at least 68020 code to build shared libraries, but
8876             # adding the `-m68020' flag to GCC prevents building anything better,
8877             # like `-m68040'.
8878             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8879         ;;
8880       esac
8881       ;;
8882
8883     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8884       # PIC is the default for these OSes.
8885       ;;
8886
8887     mingw* | cygwin* | pw32* | os2* | cegcc*)
8888       # This hack is so that the source file can tell whether it is being
8889       # built for inclusion in a dll (and should export symbols for example).
8890       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8891       # (--disable-auto-import) libraries
8892       lt_prog_compiler_pic='-DDLL_EXPORT'
8893       ;;
8894
8895     darwin* | rhapsody*)
8896       # PIC is the default on this platform
8897       # Common symbols not allowed in MH_DYLIB files
8898       lt_prog_compiler_pic='-fno-common'
8899       ;;
8900
8901     haiku*)
8902       # PIC is the default for Haiku.
8903       # The "-static" flag exists, but is broken.
8904       lt_prog_compiler_static=
8905       ;;
8906
8907     hpux*)
8908       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8909       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8910       # sets the default TLS model and affects inlining.
8911       case $host_cpu in
8912       hppa*64*)
8913         # +Z the default
8914         ;;
8915       *)
8916         lt_prog_compiler_pic='-fPIC'
8917         ;;
8918       esac
8919       ;;
8920
8921     interix[3-9]*)
8922       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8923       # Instead, we relocate shared libraries at runtime.
8924       ;;
8925
8926     msdosdjgpp*)
8927       # Just because we use GCC doesn't mean we suddenly get shared libraries
8928       # on systems that don't support them.
8929       lt_prog_compiler_can_build_shared=no
8930       enable_shared=no
8931       ;;
8932
8933     *nto* | *qnx*)
8934       # QNX uses GNU C++, but need to define -shared option too, otherwise
8935       # it will coredump.
8936       lt_prog_compiler_pic='-fPIC -shared'
8937       ;;
8938
8939     sysv4*MP*)
8940       if test -d /usr/nec; then
8941         lt_prog_compiler_pic=-Kconform_pic
8942       fi
8943       ;;
8944
8945     *)
8946       lt_prog_compiler_pic='-fPIC'
8947       ;;
8948     esac
8949
8950     case $cc_basename in
8951     nvcc*) # Cuda Compiler Driver 2.2
8952       lt_prog_compiler_wl='-Xlinker '
8953       if test -n "$lt_prog_compiler_pic"; then
8954         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8955       fi
8956       ;;
8957     esac
8958   else
8959     # PORTME Check for flag to pass linker flags through the system compiler.
8960     case $host_os in
8961     aix*)
8962       lt_prog_compiler_wl='-Wl,'
8963       if test "$host_cpu" = ia64; then
8964         # AIX 5 now supports IA64 processor
8965         lt_prog_compiler_static='-Bstatic'
8966       else
8967         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8968       fi
8969       ;;
8970
8971     mingw* | cygwin* | pw32* | os2* | cegcc*)
8972       # This hack is so that the source file can tell whether it is being
8973       # built for inclusion in a dll (and should export symbols for example).
8974       lt_prog_compiler_pic='-DDLL_EXPORT'
8975       ;;
8976
8977     hpux9* | hpux10* | hpux11*)
8978       lt_prog_compiler_wl='-Wl,'
8979       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8980       # not for PA HP-UX.
8981       case $host_cpu in
8982       hppa*64*|ia64*)
8983         # +Z the default
8984         ;;
8985       *)
8986         lt_prog_compiler_pic='+Z'
8987         ;;
8988       esac
8989       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8990       lt_prog_compiler_static='${wl}-a ${wl}archive'
8991       ;;
8992
8993     irix5* | irix6* | nonstopux*)
8994       lt_prog_compiler_wl='-Wl,'
8995       # PIC (with -KPIC) is the default.
8996       lt_prog_compiler_static='-non_shared'
8997       ;;
8998
8999     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9000       case $cc_basename in
9001       # old Intel for x86_64 which still supported -KPIC.
9002       ecc*)
9003         lt_prog_compiler_wl='-Wl,'
9004         lt_prog_compiler_pic='-KPIC'
9005         lt_prog_compiler_static='-static'
9006         ;;
9007       # icc used to be incompatible with GCC.
9008       # ICC 10 doesn't accept -KPIC any more.
9009       icc* | ifort*)
9010         lt_prog_compiler_wl='-Wl,'
9011         lt_prog_compiler_pic='-fPIC'
9012         lt_prog_compiler_static='-static'
9013         ;;
9014       # Lahey Fortran 8.1.
9015       lf95*)
9016         lt_prog_compiler_wl='-Wl,'
9017         lt_prog_compiler_pic='--shared'
9018         lt_prog_compiler_static='--static'
9019         ;;
9020       nagfor*)
9021         # NAG Fortran compiler
9022         lt_prog_compiler_wl='-Wl,-Wl,,'
9023         lt_prog_compiler_pic='-PIC'
9024         lt_prog_compiler_static='-Bstatic'
9025         ;;
9026       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9027         # Portland Group compilers (*not* the Pentium gcc compiler,
9028         # which looks to be a dead project)
9029         lt_prog_compiler_wl='-Wl,'
9030         lt_prog_compiler_pic='-fpic'
9031         lt_prog_compiler_static='-Bstatic'
9032         ;;
9033       ccc*)
9034         lt_prog_compiler_wl='-Wl,'
9035         # All Alpha code is PIC.
9036         lt_prog_compiler_static='-non_shared'
9037         ;;
9038       xl* | bgxl* | bgf* | mpixl*)
9039         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9040         lt_prog_compiler_wl='-Wl,'
9041         lt_prog_compiler_pic='-qpic'
9042         lt_prog_compiler_static='-qstaticlink'
9043         ;;
9044       *)
9045         case `$CC -V 2>&1 | sed 5q` in
9046         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9047           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9048           lt_prog_compiler_pic='-KPIC'
9049           lt_prog_compiler_static='-Bstatic'
9050           lt_prog_compiler_wl=''
9051           ;;
9052         *Sun\ F* | *Sun*Fortran*)
9053           lt_prog_compiler_pic='-KPIC'
9054           lt_prog_compiler_static='-Bstatic'
9055           lt_prog_compiler_wl='-Qoption ld '
9056           ;;
9057         *Sun\ C*)
9058           # Sun C 5.9
9059           lt_prog_compiler_pic='-KPIC'
9060           lt_prog_compiler_static='-Bstatic'
9061           lt_prog_compiler_wl='-Wl,'
9062           ;;
9063         *Intel*\ [CF]*Compiler*)
9064           lt_prog_compiler_wl='-Wl,'
9065           lt_prog_compiler_pic='-fPIC'
9066           lt_prog_compiler_static='-static'
9067           ;;
9068         *Portland\ Group*)
9069           lt_prog_compiler_wl='-Wl,'
9070           lt_prog_compiler_pic='-fpic'
9071           lt_prog_compiler_static='-Bstatic'
9072           ;;
9073         esac
9074         ;;
9075       esac
9076       ;;
9077
9078     newsos6)
9079       lt_prog_compiler_pic='-KPIC'
9080       lt_prog_compiler_static='-Bstatic'
9081       ;;
9082
9083     *nto* | *qnx*)
9084       # QNX uses GNU C++, but need to define -shared option too, otherwise
9085       # it will coredump.
9086       lt_prog_compiler_pic='-fPIC -shared'
9087       ;;
9088
9089     osf3* | osf4* | osf5*)
9090       lt_prog_compiler_wl='-Wl,'
9091       # All OSF/1 code is PIC.
9092       lt_prog_compiler_static='-non_shared'
9093       ;;
9094
9095     rdos*)
9096       lt_prog_compiler_static='-non_shared'
9097       ;;
9098
9099     solaris*)
9100       lt_prog_compiler_pic='-KPIC'
9101       lt_prog_compiler_static='-Bstatic'
9102       case $cc_basename in
9103       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9104         lt_prog_compiler_wl='-Qoption ld ';;
9105       *)
9106         lt_prog_compiler_wl='-Wl,';;
9107       esac
9108       ;;
9109
9110     sunos4*)
9111       lt_prog_compiler_wl='-Qoption ld '
9112       lt_prog_compiler_pic='-PIC'
9113       lt_prog_compiler_static='-Bstatic'
9114       ;;
9115
9116     sysv4 | sysv4.2uw2* | sysv4.3*)
9117       lt_prog_compiler_wl='-Wl,'
9118       lt_prog_compiler_pic='-KPIC'
9119       lt_prog_compiler_static='-Bstatic'
9120       ;;
9121
9122     sysv4*MP*)
9123       if test -d /usr/nec ;then
9124         lt_prog_compiler_pic='-Kconform_pic'
9125         lt_prog_compiler_static='-Bstatic'
9126       fi
9127       ;;
9128
9129     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9130       lt_prog_compiler_wl='-Wl,'
9131       lt_prog_compiler_pic='-KPIC'
9132       lt_prog_compiler_static='-Bstatic'
9133       ;;
9134
9135     unicos*)
9136       lt_prog_compiler_wl='-Wl,'
9137       lt_prog_compiler_can_build_shared=no
9138       ;;
9139
9140     uts4*)
9141       lt_prog_compiler_pic='-pic'
9142       lt_prog_compiler_static='-Bstatic'
9143       ;;
9144
9145     *)
9146       lt_prog_compiler_can_build_shared=no
9147       ;;
9148     esac
9149   fi
9150
9151 case $host_os in
9152   # For platforms which do not support PIC, -DPIC is meaningless:
9153   *djgpp*)
9154     lt_prog_compiler_pic=
9155     ;;
9156   *)
9157     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9158     ;;
9159 esac
9160
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9162 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9163 if ${lt_cv_prog_compiler_pic+:} false; then :
9164   $as_echo_n "(cached) " >&6
9165 else
9166   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9169 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9170 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9171
9172 #
9173 # Check to make sure the PIC flag actually works.
9174 #
9175 if test -n "$lt_prog_compiler_pic"; then
9176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9177 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9178 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9179   $as_echo_n "(cached) " >&6
9180 else
9181   lt_cv_prog_compiler_pic_works=no
9182    ac_outfile=conftest.$ac_objext
9183    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9184    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9185    # Insert the option either (1) after the last *FLAGS variable, or
9186    # (2) before a word containing "conftest.", or (3) at the end.
9187    # Note that $ac_compile itself does not contain backslashes and begins
9188    # with a dollar sign (not a hyphen), so the echo should work correctly.
9189    # The option is referenced via a variable to avoid confusing sed.
9190    lt_compile=`echo "$ac_compile" | $SED \
9191    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9192    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9193    -e 's:$: $lt_compiler_flag:'`
9194    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9195    (eval "$lt_compile" 2>conftest.err)
9196    ac_status=$?
9197    cat conftest.err >&5
9198    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199    if (exit $ac_status) && test -s "$ac_outfile"; then
9200      # The compiler can only warn and ignore the option if not recognized
9201      # So say no if there are warnings other than the usual output.
9202      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9203      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9204      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9205        lt_cv_prog_compiler_pic_works=yes
9206      fi
9207    fi
9208    $RM conftest*
9209
9210 fi
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9212 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9213
9214 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9215     case $lt_prog_compiler_pic in
9216      "" | " "*) ;;
9217      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9218      esac
9219 else
9220     lt_prog_compiler_pic=
9221      lt_prog_compiler_can_build_shared=no
9222 fi
9223
9224 fi
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236 #
9237 # Check to make sure the static flag actually works.
9238 #
9239 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9241 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9242 if ${lt_cv_prog_compiler_static_works+:} false; then :
9243   $as_echo_n "(cached) " >&6
9244 else
9245   lt_cv_prog_compiler_static_works=no
9246    save_LDFLAGS="$LDFLAGS"
9247    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9248    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9249    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9250      # The linker can only warn and ignore the option if not recognized
9251      # So say no if there are warnings
9252      if test -s conftest.err; then
9253        # Append any errors to the config.log.
9254        cat conftest.err 1>&5
9255        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9256        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9257        if diff conftest.exp conftest.er2 >/dev/null; then
9258          lt_cv_prog_compiler_static_works=yes
9259        fi
9260      else
9261        lt_cv_prog_compiler_static_works=yes
9262      fi
9263    fi
9264    $RM -r conftest*
9265    LDFLAGS="$save_LDFLAGS"
9266
9267 fi
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9269 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9270
9271 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9272     :
9273 else
9274     lt_prog_compiler_static=
9275 fi
9276
9277
9278
9279
9280
9281
9282
9283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9284 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9285 if ${lt_cv_prog_compiler_c_o+:} false; then :
9286   $as_echo_n "(cached) " >&6
9287 else
9288   lt_cv_prog_compiler_c_o=no
9289    $RM -r conftest 2>/dev/null
9290    mkdir conftest
9291    cd conftest
9292    mkdir out
9293    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9294
9295    lt_compiler_flag="-o out/conftest2.$ac_objext"
9296    # Insert the option either (1) after the last *FLAGS variable, or
9297    # (2) before a word containing "conftest.", or (3) at the end.
9298    # Note that $ac_compile itself does not contain backslashes and begins
9299    # with a dollar sign (not a hyphen), so the echo should work correctly.
9300    lt_compile=`echo "$ac_compile" | $SED \
9301    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9302    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9303    -e 's:$: $lt_compiler_flag:'`
9304    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9305    (eval "$lt_compile" 2>out/conftest.err)
9306    ac_status=$?
9307    cat out/conftest.err >&5
9308    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9310    then
9311      # The compiler can only warn and ignore the option if not recognized
9312      # So say no if there are warnings
9313      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9314      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9315      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9316        lt_cv_prog_compiler_c_o=yes
9317      fi
9318    fi
9319    chmod u+w . 2>&5
9320    $RM conftest*
9321    # SGI C++ compiler will create directory out/ii_files/ for
9322    # template instantiation
9323    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9324    $RM out/* && rmdir out
9325    cd ..
9326    $RM -r conftest
9327    $RM conftest*
9328
9329 fi
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9331 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9332
9333
9334
9335
9336
9337
9338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9339 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9340 if ${lt_cv_prog_compiler_c_o+:} false; then :
9341   $as_echo_n "(cached) " >&6
9342 else
9343   lt_cv_prog_compiler_c_o=no
9344    $RM -r conftest 2>/dev/null
9345    mkdir conftest
9346    cd conftest
9347    mkdir out
9348    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9349
9350    lt_compiler_flag="-o out/conftest2.$ac_objext"
9351    # Insert the option either (1) after the last *FLAGS variable, or
9352    # (2) before a word containing "conftest.", or (3) at the end.
9353    # Note that $ac_compile itself does not contain backslashes and begins
9354    # with a dollar sign (not a hyphen), so the echo should work correctly.
9355    lt_compile=`echo "$ac_compile" | $SED \
9356    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9357    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9358    -e 's:$: $lt_compiler_flag:'`
9359    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9360    (eval "$lt_compile" 2>out/conftest.err)
9361    ac_status=$?
9362    cat out/conftest.err >&5
9363    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9365    then
9366      # The compiler can only warn and ignore the option if not recognized
9367      # So say no if there are warnings
9368      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9369      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9370      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9371        lt_cv_prog_compiler_c_o=yes
9372      fi
9373    fi
9374    chmod u+w . 2>&5
9375    $RM conftest*
9376    # SGI C++ compiler will create directory out/ii_files/ for
9377    # template instantiation
9378    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9379    $RM out/* && rmdir out
9380    cd ..
9381    $RM -r conftest
9382    $RM conftest*
9383
9384 fi
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9386 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9387
9388
9389
9390
9391 hard_links="nottested"
9392 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9393   # do not overwrite the value of need_locks provided by the user
9394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9395 $as_echo_n "checking if we can lock with hard links... " >&6; }
9396   hard_links=yes
9397   $RM conftest*
9398   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9399   touch conftest.a
9400   ln conftest.a conftest.b 2>&5 || hard_links=no
9401   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9403 $as_echo "$hard_links" >&6; }
9404   if test "$hard_links" = no; then
9405     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9406 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9407     need_locks=warn
9408   fi
9409 else
9410   need_locks=no
9411 fi
9412
9413
9414
9415
9416
9417
9418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9419 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9420
9421   runpath_var=
9422   allow_undefined_flag=
9423   always_export_symbols=no
9424   archive_cmds=
9425   archive_expsym_cmds=
9426   compiler_needs_object=no
9427   enable_shared_with_static_runtimes=no
9428   export_dynamic_flag_spec=
9429   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9430   hardcode_automatic=no
9431   hardcode_direct=no
9432   hardcode_direct_absolute=no
9433   hardcode_libdir_flag_spec=
9434   hardcode_libdir_separator=
9435   hardcode_minus_L=no
9436   hardcode_shlibpath_var=unsupported
9437   inherit_rpath=no
9438   link_all_deplibs=unknown
9439   module_cmds=
9440   module_expsym_cmds=
9441   old_archive_from_new_cmds=
9442   old_archive_from_expsyms_cmds=
9443   thread_safe_flag_spec=
9444   whole_archive_flag_spec=
9445   # include_expsyms should be a list of space-separated symbols to be *always*
9446   # included in the symbol list
9447   include_expsyms=
9448   # exclude_expsyms can be an extended regexp of symbols to exclude
9449   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9450   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9451   # as well as any symbol that contains `d'.
9452   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9453   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9454   # platforms (ab)use it in PIC code, but their linkers get confused if
9455   # the symbol is explicitly referenced.  Since portable code cannot
9456   # rely on this symbol name, it's probably fine to never include it in
9457   # preloaded symbol tables.
9458   # Exclude shared library initialization/finalization symbols.
9459   extract_expsyms_cmds=
9460
9461   case $host_os in
9462   cygwin* | mingw* | pw32* | cegcc*)
9463     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9464     # When not using gcc, we currently assume that we are using
9465     # Microsoft Visual C++.
9466     if test "$GCC" != yes; then
9467       with_gnu_ld=no
9468     fi
9469     ;;
9470   interix*)
9471     # we just hope/assume this is gcc and not c89 (= MSVC++)
9472     with_gnu_ld=yes
9473     ;;
9474   openbsd*)
9475     with_gnu_ld=no
9476     ;;
9477   esac
9478
9479   ld_shlibs=yes
9480
9481   # On some targets, GNU ld is compatible enough with the native linker
9482   # that we're better off using the native interface for both.
9483   lt_use_gnu_ld_interface=no
9484   if test "$with_gnu_ld" = yes; then
9485     case $host_os in
9486       aix*)
9487         # The AIX port of GNU ld has always aspired to compatibility
9488         # with the native linker.  However, as the warning in the GNU ld
9489         # block says, versions before 2.19.5* couldn't really create working
9490         # shared libraries, regardless of the interface used.
9491         case `$LD -v 2>&1` in
9492           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9493           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9494           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9495           *)
9496             lt_use_gnu_ld_interface=yes
9497             ;;
9498         esac
9499         ;;
9500       *)
9501         lt_use_gnu_ld_interface=yes
9502         ;;
9503     esac
9504   fi
9505
9506   if test "$lt_use_gnu_ld_interface" = yes; then
9507     # If archive_cmds runs LD, not CC, wlarc should be empty
9508     wlarc='${wl}'
9509
9510     # Set some defaults for GNU ld with shared library support. These
9511     # are reset later if shared libraries are not supported. Putting them
9512     # here allows them to be overridden if necessary.
9513     runpath_var=LD_RUN_PATH
9514     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9515     export_dynamic_flag_spec='${wl}--export-dynamic'
9516     # ancient GNU ld didn't support --whole-archive et. al.
9517     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9518       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9519     else
9520       whole_archive_flag_spec=
9521     fi
9522     supports_anon_versioning=no
9523     case `$LD -v 2>&1` in
9524       *GNU\ gold*) supports_anon_versioning=yes ;;
9525       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9526       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9527       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9528       *\ 2.11.*) ;; # other 2.11 versions
9529       *) supports_anon_versioning=yes ;;
9530     esac
9531
9532     # See if GNU ld supports shared libraries.
9533     case $host_os in
9534     aix[3-9]*)
9535       # On AIX/PPC, the GNU linker is very broken
9536       if test "$host_cpu" != ia64; then
9537         ld_shlibs=no
9538         cat <<_LT_EOF 1>&2
9539
9540 *** Warning: the GNU linker, at least up to release 2.19, is reported
9541 *** to be unable to reliably create shared libraries on AIX.
9542 *** Therefore, libtool is disabling shared libraries support.  If you
9543 *** really care for shared libraries, you may want to install binutils
9544 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9545 *** You will then need to restart the configuration process.
9546
9547 _LT_EOF
9548       fi
9549       ;;
9550
9551     amigaos*)
9552       case $host_cpu in
9553       powerpc)
9554             # see comment about AmigaOS4 .so support
9555             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9556             archive_expsym_cmds=''
9557         ;;
9558       m68k)
9559             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)'
9560             hardcode_libdir_flag_spec='-L$libdir'
9561             hardcode_minus_L=yes
9562         ;;
9563       esac
9564       ;;
9565
9566     beos*)
9567       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9568         allow_undefined_flag=unsupported
9569         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9570         # support --undefined.  This deserves some investigation.  FIXME
9571         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572       else
9573         ld_shlibs=no
9574       fi
9575       ;;
9576
9577     cygwin* | mingw* | pw32* | cegcc*)
9578       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9579       # as there is no search path for DLLs.
9580       hardcode_libdir_flag_spec='-L$libdir'
9581       export_dynamic_flag_spec='${wl}--export-all-symbols'
9582       allow_undefined_flag=unsupported
9583       always_export_symbols=no
9584       enable_shared_with_static_runtimes=yes
9585       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'
9586       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9587
9588       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9589         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9590         # If the export-symbols file already is a .def file (1st line
9591         # is EXPORTS), use it as is; otherwise, prepend...
9592         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9593           cp $export_symbols $output_objdir/$soname.def;
9594         else
9595           echo EXPORTS > $output_objdir/$soname.def;
9596           cat $export_symbols >> $output_objdir/$soname.def;
9597         fi~
9598         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9599       else
9600         ld_shlibs=no
9601       fi
9602       ;;
9603
9604     haiku*)
9605       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9606       link_all_deplibs=yes
9607       ;;
9608
9609     interix[3-9]*)
9610       hardcode_direct=no
9611       hardcode_shlibpath_var=no
9612       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9613       export_dynamic_flag_spec='${wl}-E'
9614       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9615       # Instead, shared libraries are loaded at an image base (0x10000000 by
9616       # default) and relocated if they conflict, which is a slow very memory
9617       # consuming and fragmenting process.  To avoid this, we pick a random,
9618       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9619       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9620       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9621       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'
9622       ;;
9623
9624     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9625       tmp_diet=no
9626       if test "$host_os" = linux-dietlibc; then
9627         case $cc_basename in
9628           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9629         esac
9630       fi
9631       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9632          && test "$tmp_diet" = no
9633       then
9634         tmp_addflag=' $pic_flag'
9635         tmp_sharedflag='-shared'
9636         case $cc_basename,$host_cpu in
9637         pgcc*)                          # Portland Group C compiler
9638           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'
9639           tmp_addflag=' $pic_flag'
9640           ;;
9641         pgf77* | pgf90* | pgf95* | pgfortran*)
9642                                         # Portland Group f77 and f90 compilers
9643           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'
9644           tmp_addflag=' $pic_flag -Mnomain' ;;
9645         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9646           tmp_addflag=' -i_dynamic' ;;
9647         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9648           tmp_addflag=' -i_dynamic -nofor_main' ;;
9649         ifc* | ifort*)                  # Intel Fortran compiler
9650           tmp_addflag=' -nofor_main' ;;
9651         lf95*)                          # Lahey Fortran 8.1
9652           whole_archive_flag_spec=
9653           tmp_sharedflag='--shared' ;;
9654         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9655           tmp_sharedflag='-qmkshrobj'
9656           tmp_addflag= ;;
9657         nvcc*)  # Cuda Compiler Driver 2.2
9658           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'
9659           compiler_needs_object=yes
9660           ;;
9661         esac
9662         case `$CC -V 2>&1 | sed 5q` in
9663         *Sun\ C*)                       # Sun C 5.9
9664           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'
9665           compiler_needs_object=yes
9666           tmp_sharedflag='-G' ;;
9667         *Sun\ F*)                       # Sun Fortran 8.3
9668           tmp_sharedflag='-G' ;;
9669         esac
9670         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9671
9672         if test "x$supports_anon_versioning" = xyes; then
9673           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9674             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9675             echo "local: *; };" >> $output_objdir/$libname.ver~
9676             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9677         fi
9678
9679         case $cc_basename in
9680         xlf* | bgf* | bgxlf* | mpixlf*)
9681           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9682           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9683           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9684           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9685           if test "x$supports_anon_versioning" = xyes; then
9686             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9687               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9688               echo "local: *; };" >> $output_objdir/$libname.ver~
9689               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9690           fi
9691           ;;
9692         esac
9693       else
9694         ld_shlibs=no
9695       fi
9696       ;;
9697
9698     netbsd*)
9699       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9700         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9701         wlarc=
9702       else
9703         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9704         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9705       fi
9706       ;;
9707
9708     solaris*)
9709       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9710         ld_shlibs=no
9711         cat <<_LT_EOF 1>&2
9712
9713 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9714 *** create shared libraries on Solaris systems.  Therefore, libtool
9715 *** is disabling shared libraries support.  We urge you to upgrade GNU
9716 *** binutils to release 2.9.1 or newer.  Another option is to modify
9717 *** your PATH or compiler configuration so that the native linker is
9718 *** used, and then restart.
9719
9720 _LT_EOF
9721       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9722         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9724       else
9725         ld_shlibs=no
9726       fi
9727       ;;
9728
9729     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9730       case `$LD -v 2>&1` in
9731         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9732         ld_shlibs=no
9733         cat <<_LT_EOF 1>&2
9734
9735 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9736 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9737 *** is disabling shared libraries support.  We urge you to upgrade GNU
9738 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9739 *** your PATH or compiler configuration so that the native linker is
9740 *** used, and then restart.
9741
9742 _LT_EOF
9743         ;;
9744         *)
9745           # For security reasons, it is highly recommended that you always
9746           # use absolute paths for naming shared libraries, and exclude the
9747           # DT_RUNPATH tag from executables and libraries.  But doing so
9748           # requires that you compile everything twice, which is a pain.
9749           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9750             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9751             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9752             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9753           else
9754             ld_shlibs=no
9755           fi
9756         ;;
9757       esac
9758       ;;
9759
9760     sunos4*)
9761       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9762       wlarc=
9763       hardcode_direct=yes
9764       hardcode_shlibpath_var=no
9765       ;;
9766
9767     *)
9768       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9769         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9770         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9771       else
9772         ld_shlibs=no
9773       fi
9774       ;;
9775     esac
9776
9777     if test "$ld_shlibs" = no; then
9778       runpath_var=
9779       hardcode_libdir_flag_spec=
9780       export_dynamic_flag_spec=
9781       whole_archive_flag_spec=
9782     fi
9783   else
9784     # PORTME fill in a description of your system's linker (not GNU ld)
9785     case $host_os in
9786     aix3*)
9787       allow_undefined_flag=unsupported
9788       always_export_symbols=yes
9789       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'
9790       # Note: this linker hardcodes the directories in LIBPATH if there
9791       # are no directories specified by -L.
9792       hardcode_minus_L=yes
9793       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9794         # Neither direct hardcoding nor static linking is supported with a
9795         # broken collect2.
9796         hardcode_direct=unsupported
9797       fi
9798       ;;
9799
9800     aix[4-9]*)
9801       if test "$host_cpu" = ia64; then
9802         # On IA64, the linker does run time linking by default, so we don't
9803         # have to do anything special.
9804         aix_use_runtimelinking=no
9805         exp_sym_flag='-Bexport'
9806         no_entry_flag=""
9807       else
9808         # If we're using GNU nm, then we don't want the "-C" option.
9809         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9810         # Also, AIX nm treats weak defined symbols like other global
9811         # defined symbols, whereas GNU nm marks them as "W".
9812         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9813           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'
9814         else
9815           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'
9816         fi
9817         aix_use_runtimelinking=no
9818
9819         # Test if we are trying to use run time linking or normal
9820         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9821         # need to do runtime linking.
9822         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9823           for ld_flag in $LDFLAGS; do
9824           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9825             aix_use_runtimelinking=yes
9826             break
9827           fi
9828           done
9829           ;;
9830         esac
9831
9832         exp_sym_flag='-bexport'
9833         no_entry_flag='-bnoentry'
9834       fi
9835
9836       # When large executables or shared objects are built, AIX ld can
9837       # have problems creating the table of contents.  If linking a library
9838       # or program results in "error TOC overflow" add -mminimal-toc to
9839       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9840       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9841
9842       archive_cmds=''
9843       hardcode_direct=yes
9844       hardcode_direct_absolute=yes
9845       hardcode_libdir_separator=':'
9846       link_all_deplibs=yes
9847       file_list_spec='${wl}-f,'
9848
9849       if test "$GCC" = yes; then
9850         case $host_os in aix4.[012]|aix4.[012].*)
9851         # We only want to do this on AIX 4.2 and lower, the check
9852         # below for broken collect2 doesn't work under 4.3+
9853           collect2name=`${CC} -print-prog-name=collect2`
9854           if test -f "$collect2name" &&
9855            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9856           then
9857           # We have reworked collect2
9858           :
9859           else
9860           # We have old collect2
9861           hardcode_direct=unsupported
9862           # It fails to find uninstalled libraries when the uninstalled
9863           # path is not listed in the libpath.  Setting hardcode_minus_L
9864           # to unsupported forces relinking
9865           hardcode_minus_L=yes
9866           hardcode_libdir_flag_spec='-L$libdir'
9867           hardcode_libdir_separator=
9868           fi
9869           ;;
9870         esac
9871         shared_flag='-shared'
9872         if test "$aix_use_runtimelinking" = yes; then
9873           shared_flag="$shared_flag "'${wl}-G'
9874         fi
9875       else
9876         # not using gcc
9877         if test "$host_cpu" = ia64; then
9878         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9879         # chokes on -Wl,-G. The following line is correct:
9880           shared_flag='-G'
9881         else
9882           if test "$aix_use_runtimelinking" = yes; then
9883             shared_flag='${wl}-G'
9884           else
9885             shared_flag='${wl}-bM:SRE'
9886           fi
9887         fi
9888       fi
9889
9890       export_dynamic_flag_spec='${wl}-bexpall'
9891       # It seems that -bexpall does not export symbols beginning with
9892       # underscore (_), so it is better to generate a list of symbols to export.
9893       always_export_symbols=yes
9894       if test "$aix_use_runtimelinking" = yes; then
9895         # Warning - without using the other runtime loading flags (-brtl),
9896         # -berok will link without error, but may produce a broken library.
9897         allow_undefined_flag='-berok'
9898         # Determine the default libpath from the value encoded in an
9899         # empty executable.
9900         if test "${lt_cv_aix_libpath+set}" = set; then
9901   aix_libpath=$lt_cv_aix_libpath
9902 else
9903   if ${lt_cv_aix_libpath_+:} false; then :
9904   $as_echo_n "(cached) " >&6
9905 else
9906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h.  */
9908
9909 int
9910 main ()
9911 {
9912
9913   ;
9914   return 0;
9915 }
9916 _ACEOF
9917 if ac_fn_c_try_link "$LINENO"; then :
9918
9919   lt_aix_libpath_sed='
9920       /Import File Strings/,/^$/ {
9921           /^0/ {
9922               s/^0  *\([^ ]*\) *$/\1/
9923               p
9924           }
9925       }'
9926   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9927   # Check for a 64-bit object if we didn't find anything.
9928   if test -z "$lt_cv_aix_libpath_"; then
9929     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9930   fi
9931 fi
9932 rm -f core conftest.err conftest.$ac_objext \
9933     conftest$ac_exeext conftest.$ac_ext
9934   if test -z "$lt_cv_aix_libpath_"; then
9935     lt_cv_aix_libpath_="/usr/lib:/lib"
9936   fi
9937
9938 fi
9939
9940   aix_libpath=$lt_cv_aix_libpath_
9941 fi
9942
9943         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9944         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"
9945       else
9946         if test "$host_cpu" = ia64; then
9947           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9948           allow_undefined_flag="-z nodefs"
9949           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"
9950         else
9951          # Determine the default libpath from the value encoded in an
9952          # empty executable.
9953          if test "${lt_cv_aix_libpath+set}" = set; then
9954   aix_libpath=$lt_cv_aix_libpath
9955 else
9956   if ${lt_cv_aix_libpath_+:} false; then :
9957   $as_echo_n "(cached) " >&6
9958 else
9959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h.  */
9961
9962 int
9963 main ()
9964 {
9965
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 if ac_fn_c_try_link "$LINENO"; then :
9971
9972   lt_aix_libpath_sed='
9973       /Import File Strings/,/^$/ {
9974           /^0/ {
9975               s/^0  *\([^ ]*\) *$/\1/
9976               p
9977           }
9978       }'
9979   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9980   # Check for a 64-bit object if we didn't find anything.
9981   if test -z "$lt_cv_aix_libpath_"; then
9982     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9983   fi
9984 fi
9985 rm -f core conftest.err conftest.$ac_objext \
9986     conftest$ac_exeext conftest.$ac_ext
9987   if test -z "$lt_cv_aix_libpath_"; then
9988     lt_cv_aix_libpath_="/usr/lib:/lib"
9989   fi
9990
9991 fi
9992
9993   aix_libpath=$lt_cv_aix_libpath_
9994 fi
9995
9996          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9997           # Warning - without using the other run time loading flags,
9998           # -berok will link without error, but may produce a broken library.
9999           no_undefined_flag=' ${wl}-bernotok'
10000           allow_undefined_flag=' ${wl}-berok'
10001           if test "$with_gnu_ld" = yes; then
10002             # We only use this code for GNU lds that support --whole-archive.
10003             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10004           else
10005             # Exported symbols can be pulled into shared objects from archives
10006             whole_archive_flag_spec='$convenience'
10007           fi
10008           archive_cmds_need_lc=yes
10009           # This is similar to how AIX traditionally builds its shared libraries.
10010           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'
10011         fi
10012       fi
10013       ;;
10014
10015     amigaos*)
10016       case $host_cpu in
10017       powerpc)
10018             # see comment about AmigaOS4 .so support
10019             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10020             archive_expsym_cmds=''
10021         ;;
10022       m68k)
10023             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)'
10024             hardcode_libdir_flag_spec='-L$libdir'
10025             hardcode_minus_L=yes
10026         ;;
10027       esac
10028       ;;
10029
10030     bsdi[45]*)
10031       export_dynamic_flag_spec=-rdynamic
10032       ;;
10033
10034     cygwin* | mingw* | pw32* | cegcc*)
10035       # When not using gcc, we currently assume that we are using
10036       # Microsoft Visual C++.
10037       # hardcode_libdir_flag_spec is actually meaningless, as there is
10038       # no search path for DLLs.
10039       case $cc_basename in
10040       cl*)
10041         # Native MSVC
10042         hardcode_libdir_flag_spec=' '
10043         allow_undefined_flag=unsupported
10044         always_export_symbols=yes
10045         file_list_spec='@'
10046         # Tell ltmain to make .lib files, not .a files.
10047         libext=lib
10048         # Tell ltmain to make .dll files, not .so files.
10049         shrext_cmds=".dll"
10050         # FIXME: Setting linknames here is a bad hack.
10051         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10052         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10053             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10054           else
10055             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10056           fi~
10057           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10058           linknames='
10059         # The linker will not automatically build a static lib if we build a DLL.
10060         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10061         enable_shared_with_static_runtimes=yes
10062         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10063         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10064         # Don't use ranlib
10065         old_postinstall_cmds='chmod 644 $oldlib'
10066         postlink_cmds='lt_outputfile="@OUTPUT@"~
10067           lt_tool_outputfile="@TOOL_OUTPUT@"~
10068           case $lt_outputfile in
10069             *.exe|*.EXE) ;;
10070             *)
10071               lt_outputfile="$lt_outputfile.exe"
10072               lt_tool_outputfile="$lt_tool_outputfile.exe"
10073               ;;
10074           esac~
10075           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10076             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10077             $RM "$lt_outputfile.manifest";
10078           fi'
10079         ;;
10080       *)
10081         # Assume MSVC wrapper
10082         hardcode_libdir_flag_spec=' '
10083         allow_undefined_flag=unsupported
10084         # Tell ltmain to make .lib files, not .a files.
10085         libext=lib
10086         # Tell ltmain to make .dll files, not .so files.
10087         shrext_cmds=".dll"
10088         # FIXME: Setting linknames here is a bad hack.
10089         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10090         # The linker will automatically build a .lib file if we build a DLL.
10091         old_archive_from_new_cmds='true'
10092         # FIXME: Should let the user specify the lib program.
10093         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10094         enable_shared_with_static_runtimes=yes
10095         ;;
10096       esac
10097       ;;
10098
10099     darwin* | rhapsody*)
10100
10101
10102   archive_cmds_need_lc=no
10103   hardcode_direct=no
10104   hardcode_automatic=yes
10105   hardcode_shlibpath_var=unsupported
10106   if test "$lt_cv_ld_force_load" = "yes"; then
10107     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\"`'
10108
10109   else
10110     whole_archive_flag_spec=''
10111   fi
10112   link_all_deplibs=yes
10113   allow_undefined_flag="$_lt_dar_allow_undefined"
10114   case $cc_basename in
10115      ifort*) _lt_dar_can_shared=yes ;;
10116      *) _lt_dar_can_shared=$GCC ;;
10117   esac
10118   if test "$_lt_dar_can_shared" = "yes"; then
10119     output_verbose_link_cmd=func_echo_all
10120     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10121     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10122     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}"
10123     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}"
10124
10125   else
10126   ld_shlibs=no
10127   fi
10128
10129       ;;
10130
10131     dgux*)
10132       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133       hardcode_libdir_flag_spec='-L$libdir'
10134       hardcode_shlibpath_var=no
10135       ;;
10136
10137     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10138     # support.  Future versions do this automatically, but an explicit c++rt0.o
10139     # does not break anything, and helps significantly (at the cost of a little
10140     # extra space).
10141     freebsd2.2*)
10142       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10143       hardcode_libdir_flag_spec='-R$libdir'
10144       hardcode_direct=yes
10145       hardcode_shlibpath_var=no
10146       ;;
10147
10148     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10149     freebsd2.*)
10150       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10151       hardcode_direct=yes
10152       hardcode_minus_L=yes
10153       hardcode_shlibpath_var=no
10154       ;;
10155
10156     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10157     freebsd* | dragonfly*)
10158       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10159       hardcode_libdir_flag_spec='-R$libdir'
10160       hardcode_direct=yes
10161       hardcode_shlibpath_var=no
10162       ;;
10163
10164     hpux9*)
10165       if test "$GCC" = yes; then
10166         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'
10167       else
10168         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'
10169       fi
10170       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10171       hardcode_libdir_separator=:
10172       hardcode_direct=yes
10173
10174       # hardcode_minus_L: Not really in the search PATH,
10175       # but as the default location of the library.
10176       hardcode_minus_L=yes
10177       export_dynamic_flag_spec='${wl}-E'
10178       ;;
10179
10180     hpux10*)
10181       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10182         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10183       else
10184         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10185       fi
10186       if test "$with_gnu_ld" = no; then
10187         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10188         hardcode_libdir_separator=:
10189         hardcode_direct=yes
10190         hardcode_direct_absolute=yes
10191         export_dynamic_flag_spec='${wl}-E'
10192         # hardcode_minus_L: Not really in the search PATH,
10193         # but as the default location of the library.
10194         hardcode_minus_L=yes
10195       fi
10196       ;;
10197
10198     hpux11*)
10199       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10200         case $host_cpu in
10201         hppa*64*)
10202           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10203           ;;
10204         ia64*)
10205           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10206           ;;
10207         *)
10208           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10209           ;;
10210         esac
10211       else
10212         case $host_cpu in
10213         hppa*64*)
10214           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10215           ;;
10216         ia64*)
10217           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10218           ;;
10219         *)
10220
10221           # Older versions of the 11.00 compiler do not understand -b yet
10222           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10223           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10224 $as_echo_n "checking if $CC understands -b... " >&6; }
10225 if ${lt_cv_prog_compiler__b+:} false; then :
10226   $as_echo_n "(cached) " >&6
10227 else
10228   lt_cv_prog_compiler__b=no
10229    save_LDFLAGS="$LDFLAGS"
10230    LDFLAGS="$LDFLAGS -b"
10231    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10232    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10233      # The linker can only warn and ignore the option if not recognized
10234      # So say no if there are warnings
10235      if test -s conftest.err; then
10236        # Append any errors to the config.log.
10237        cat conftest.err 1>&5
10238        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10239        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10240        if diff conftest.exp conftest.er2 >/dev/null; then
10241          lt_cv_prog_compiler__b=yes
10242        fi
10243      else
10244        lt_cv_prog_compiler__b=yes
10245      fi
10246    fi
10247    $RM -r conftest*
10248    LDFLAGS="$save_LDFLAGS"
10249
10250 fi
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10252 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10253
10254 if test x"$lt_cv_prog_compiler__b" = xyes; then
10255     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10256 else
10257     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10258 fi
10259
10260           ;;
10261         esac
10262       fi
10263       if test "$with_gnu_ld" = no; then
10264         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10265         hardcode_libdir_separator=:
10266
10267         case $host_cpu in
10268         hppa*64*|ia64*)
10269           hardcode_direct=no
10270           hardcode_shlibpath_var=no
10271           ;;
10272         *)
10273           hardcode_direct=yes
10274           hardcode_direct_absolute=yes
10275           export_dynamic_flag_spec='${wl}-E'
10276
10277           # hardcode_minus_L: Not really in the search PATH,
10278           # but as the default location of the library.
10279           hardcode_minus_L=yes
10280           ;;
10281         esac
10282       fi
10283       ;;
10284
10285     irix5* | irix6* | nonstopux*)
10286       if test "$GCC" = yes; then
10287         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'
10288         # Try to use the -exported_symbol ld option, if it does not
10289         # work, assume that -exports_file does not work either and
10290         # implicitly export all symbols.
10291         # This should be the same for all languages, so no per-tag cache variable.
10292         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10293 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10294 if ${lt_cv_irix_exported_symbol+:} false; then :
10295   $as_echo_n "(cached) " >&6
10296 else
10297   save_LDFLAGS="$LDFLAGS"
10298            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10299            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h.  */
10301 int foo (void) { return 0; }
10302 _ACEOF
10303 if ac_fn_c_try_link "$LINENO"; then :
10304   lt_cv_irix_exported_symbol=yes
10305 else
10306   lt_cv_irix_exported_symbol=no
10307 fi
10308 rm -f core conftest.err conftest.$ac_objext \
10309     conftest$ac_exeext conftest.$ac_ext
10310            LDFLAGS="$save_LDFLAGS"
10311 fi
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10313 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10314         if test "$lt_cv_irix_exported_symbol" = yes; then
10315           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'
10316         fi
10317       else
10318         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'
10319         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'
10320       fi
10321       archive_cmds_need_lc='no'
10322       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10323       hardcode_libdir_separator=:
10324       inherit_rpath=yes
10325       link_all_deplibs=yes
10326       ;;
10327
10328     netbsd*)
10329       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10330         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10331       else
10332         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10333       fi
10334       hardcode_libdir_flag_spec='-R$libdir'
10335       hardcode_direct=yes
10336       hardcode_shlibpath_var=no
10337       ;;
10338
10339     newsos6)
10340       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10341       hardcode_direct=yes
10342       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10343       hardcode_libdir_separator=:
10344       hardcode_shlibpath_var=no
10345       ;;
10346
10347     *nto* | *qnx*)
10348       ;;
10349
10350     openbsd*)
10351       if test -f /usr/libexec/ld.so; then
10352         hardcode_direct=yes
10353         hardcode_shlibpath_var=no
10354         hardcode_direct_absolute=yes
10355         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10356           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10357           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10358           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10359           export_dynamic_flag_spec='${wl}-E'
10360         else
10361           case $host_os in
10362            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10363              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10364              hardcode_libdir_flag_spec='-R$libdir'
10365              ;;
10366            *)
10367              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10368              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10369              ;;
10370           esac
10371         fi
10372       else
10373         ld_shlibs=no
10374       fi
10375       ;;
10376
10377     os2*)
10378       hardcode_libdir_flag_spec='-L$libdir'
10379       hardcode_minus_L=yes
10380       allow_undefined_flag=unsupported
10381       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'
10382       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10383       ;;
10384
10385     osf3*)
10386       if test "$GCC" = yes; then
10387         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10388         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'
10389       else
10390         allow_undefined_flag=' -expect_unresolved \*'
10391         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'
10392       fi
10393       archive_cmds_need_lc='no'
10394       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10395       hardcode_libdir_separator=:
10396       ;;
10397
10398     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10399       if test "$GCC" = yes; then
10400         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10401         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'
10402         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10403       else
10404         allow_undefined_flag=' -expect_unresolved \*'
10405         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'
10406         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~
10407         $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'
10408
10409         # Both c and cxx compiler support -rpath directly
10410         hardcode_libdir_flag_spec='-rpath $libdir'
10411       fi
10412       archive_cmds_need_lc='no'
10413       hardcode_libdir_separator=:
10414       ;;
10415
10416     solaris*)
10417       no_undefined_flag=' -z defs'
10418       if test "$GCC" = yes; then
10419         wlarc='${wl}'
10420         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10421         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10422           $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'
10423       else
10424         case `$CC -V 2>&1` in
10425         *"Compilers 5.0"*)
10426           wlarc=''
10427           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10429           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10430           ;;
10431         *)
10432           wlarc='${wl}'
10433           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10434           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10435           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10436           ;;
10437         esac
10438       fi
10439       hardcode_libdir_flag_spec='-R$libdir'
10440       hardcode_shlibpath_var=no
10441       case $host_os in
10442       solaris2.[0-5] | solaris2.[0-5].*) ;;
10443       *)
10444         # The compiler driver will combine and reorder linker options,
10445         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10446         # but is careful enough not to reorder.
10447         # Supported since Solaris 2.6 (maybe 2.5.1?)
10448         if test "$GCC" = yes; then
10449           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10450         else
10451           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10452         fi
10453         ;;
10454       esac
10455       link_all_deplibs=yes
10456       ;;
10457
10458     sunos4*)
10459       if test "x$host_vendor" = xsequent; then
10460         # Use $CC to link under sequent, because it throws in some extra .o
10461         # files that make .init and .fini sections work.
10462         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10463       else
10464         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10465       fi
10466       hardcode_libdir_flag_spec='-L$libdir'
10467       hardcode_direct=yes
10468       hardcode_minus_L=yes
10469       hardcode_shlibpath_var=no
10470       ;;
10471
10472     sysv4)
10473       case $host_vendor in
10474         sni)
10475           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10476           hardcode_direct=yes # is this really true???
10477         ;;
10478         siemens)
10479           ## LD is ld it makes a PLAMLIB
10480           ## CC just makes a GrossModule.
10481           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10482           reload_cmds='$CC -r -o $output$reload_objs'
10483           hardcode_direct=no
10484         ;;
10485         motorola)
10486           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10487           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10488         ;;
10489       esac
10490       runpath_var='LD_RUN_PATH'
10491       hardcode_shlibpath_var=no
10492       ;;
10493
10494     sysv4.3*)
10495       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10496       hardcode_shlibpath_var=no
10497       export_dynamic_flag_spec='-Bexport'
10498       ;;
10499
10500     sysv4*MP*)
10501       if test -d /usr/nec; then
10502         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10503         hardcode_shlibpath_var=no
10504         runpath_var=LD_RUN_PATH
10505         hardcode_runpath_var=yes
10506         ld_shlibs=yes
10507       fi
10508       ;;
10509
10510     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10511       no_undefined_flag='${wl}-z,text'
10512       archive_cmds_need_lc=no
10513       hardcode_shlibpath_var=no
10514       runpath_var='LD_RUN_PATH'
10515
10516       if test "$GCC" = yes; then
10517         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10518         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10519       else
10520         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10521         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10522       fi
10523       ;;
10524
10525     sysv5* | sco3.2v5* | sco5v6*)
10526       # Note: We can NOT use -z defs as we might desire, because we do not
10527       # link with -lc, and that would cause any symbols used from libc to
10528       # always be unresolved, which means just about no library would
10529       # ever link correctly.  If we're not using GNU ld we use -z text
10530       # though, which does catch some bad symbols but isn't as heavy-handed
10531       # as -z defs.
10532       no_undefined_flag='${wl}-z,text'
10533       allow_undefined_flag='${wl}-z,nodefs'
10534       archive_cmds_need_lc=no
10535       hardcode_shlibpath_var=no
10536       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10537       hardcode_libdir_separator=':'
10538       link_all_deplibs=yes
10539       export_dynamic_flag_spec='${wl}-Bexport'
10540       runpath_var='LD_RUN_PATH'
10541
10542       if test "$GCC" = yes; then
10543         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10544         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10545       else
10546         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10547         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10548       fi
10549       ;;
10550
10551     uts4*)
10552       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553       hardcode_libdir_flag_spec='-L$libdir'
10554       hardcode_shlibpath_var=no
10555       ;;
10556
10557     *)
10558       ld_shlibs=no
10559       ;;
10560     esac
10561
10562     if test x$host_vendor = xsni; then
10563       case $host in
10564       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10565         export_dynamic_flag_spec='${wl}-Blargedynsym'
10566         ;;
10567       esac
10568     fi
10569   fi
10570
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10572 $as_echo "$ld_shlibs" >&6; }
10573 test "$ld_shlibs" = no && can_build_shared=no
10574
10575 with_gnu_ld=$with_gnu_ld
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591 #
10592 # Do we need to explicitly link libc?
10593 #
10594 case "x$archive_cmds_need_lc" in
10595 x|xyes)
10596   # Assume -lc should be added
10597   archive_cmds_need_lc=yes
10598
10599   if test "$enable_shared" = yes && test "$GCC" = yes; then
10600     case $archive_cmds in
10601     *'~'*)
10602       # FIXME: we may have to deal with multi-command sequences.
10603       ;;
10604     '$CC '*)
10605       # Test whether the compiler implicitly links with -lc since on some
10606       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10607       # to ld, don't add -lc before -lgcc.
10608       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10609 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10610 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10611   $as_echo_n "(cached) " >&6
10612 else
10613   $RM conftest*
10614         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10615
10616         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10617   (eval $ac_compile) 2>&5
10618   ac_status=$?
10619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10620   test $ac_status = 0; } 2>conftest.err; then
10621           soname=conftest
10622           lib=conftest
10623           libobjs=conftest.$ac_objext
10624           deplibs=
10625           wl=$lt_prog_compiler_wl
10626           pic_flag=$lt_prog_compiler_pic
10627           compiler_flags=-v
10628           linker_flags=-v
10629           verstring=
10630           output_objdir=.
10631           libname=conftest
10632           lt_save_allow_undefined_flag=$allow_undefined_flag
10633           allow_undefined_flag=
10634           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10635   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10636   ac_status=$?
10637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10638   test $ac_status = 0; }
10639           then
10640             lt_cv_archive_cmds_need_lc=no
10641           else
10642             lt_cv_archive_cmds_need_lc=yes
10643           fi
10644           allow_undefined_flag=$lt_save_allow_undefined_flag
10645         else
10646           cat conftest.err 1>&5
10647         fi
10648         $RM conftest*
10649
10650 fi
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10652 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10653       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10654       ;;
10655     esac
10656   fi
10657   ;;
10658 esac
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10812 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10813
10814 if test "$GCC" = yes; then
10815   case $host_os in
10816     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10817     *) lt_awk_arg="/^libraries:/" ;;
10818   esac
10819   case $host_os in
10820     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10821     *) lt_sed_strip_eq="s,=/,/,g" ;;
10822   esac
10823   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10824   case $lt_search_path_spec in
10825   *\;*)
10826     # if the path contains ";" then we assume it to be the separator
10827     # otherwise default to the standard path separator (i.e. ":") - it is
10828     # assumed that no part of a normal pathname contains ";" but that should
10829     # okay in the real world where ";" in dirpaths is itself problematic.
10830     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10831     ;;
10832   *)
10833     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10834     ;;
10835   esac
10836   # Ok, now we have the path, separated by spaces, we can step through it
10837   # and add multilib dir if necessary.
10838   lt_tmp_lt_search_path_spec=
10839   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10840   for lt_sys_path in $lt_search_path_spec; do
10841     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10842       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10843     else
10844       test -d "$lt_sys_path" && \
10845         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10846     fi
10847   done
10848   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10849 BEGIN {RS=" "; FS="/|\n";} {
10850   lt_foo="";
10851   lt_count=0;
10852   for (lt_i = NF; lt_i > 0; lt_i--) {
10853     if ($lt_i != "" && $lt_i != ".") {
10854       if ($lt_i == "..") {
10855         lt_count++;
10856       } else {
10857         if (lt_count == 0) {
10858           lt_foo="/" $lt_i lt_foo;
10859         } else {
10860           lt_count--;
10861         }
10862       }
10863     }
10864   }
10865   if (lt_foo != "") { lt_freq[lt_foo]++; }
10866   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10867 }'`
10868   # AWK program above erroneously prepends '/' to C:/dos/paths
10869   # for these hosts.
10870   case $host_os in
10871     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10872       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10873   esac
10874   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10875 else
10876   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10877 fi
10878 library_names_spec=
10879 libname_spec='lib$name'
10880 soname_spec=
10881 shrext_cmds=".so"
10882 postinstall_cmds=
10883 postuninstall_cmds=
10884 finish_cmds=
10885 finish_eval=
10886 shlibpath_var=
10887 shlibpath_overrides_runpath=unknown
10888 version_type=none
10889 dynamic_linker="$host_os ld.so"
10890 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10891 need_lib_prefix=unknown
10892 hardcode_into_libs=no
10893
10894 # when you set need_version to no, make sure it does not cause -set_version
10895 # flags to be left without arguments
10896 need_version=unknown
10897
10898 case $host_os in
10899 aix3*)
10900   version_type=linux # correct to gnu/linux during the next big refactor
10901   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10902   shlibpath_var=LIBPATH
10903
10904   # AIX 3 has no versioning support, so we append a major version to the name.
10905   soname_spec='${libname}${release}${shared_ext}$major'
10906   ;;
10907
10908 aix[4-9]*)
10909   version_type=linux # correct to gnu/linux during the next big refactor
10910   need_lib_prefix=no
10911   need_version=no
10912   hardcode_into_libs=yes
10913   if test "$host_cpu" = ia64; then
10914     # AIX 5 supports IA64
10915     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10916     shlibpath_var=LD_LIBRARY_PATH
10917   else
10918     # With GCC up to 2.95.x, collect2 would create an import file
10919     # for dependence libraries.  The import file would start with
10920     # the line `#! .'.  This would cause the generated library to
10921     # depend on `.', always an invalid library.  This was fixed in
10922     # development snapshots of GCC prior to 3.0.
10923     case $host_os in
10924       aix4 | aix4.[01] | aix4.[01].*)
10925       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10926            echo ' yes '
10927            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10928         :
10929       else
10930         can_build_shared=no
10931       fi
10932       ;;
10933     esac
10934     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10935     # soname into executable. Probably we can add versioning support to
10936     # collect2, so additional links can be useful in future.
10937     if test "$aix_use_runtimelinking" = yes; then
10938       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10939       # instead of lib<name>.a to let people know that these are not
10940       # typical AIX shared libraries.
10941       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942     else
10943       # We preserve .a as extension for shared libraries through AIX4.2
10944       # and later when we are not doing run time linking.
10945       library_names_spec='${libname}${release}.a $libname.a'
10946       soname_spec='${libname}${release}${shared_ext}$major'
10947     fi
10948     shlibpath_var=LIBPATH
10949   fi
10950   ;;
10951
10952 amigaos*)
10953   case $host_cpu in
10954   powerpc)
10955     # Since July 2007 AmigaOS4 officially supports .so libraries.
10956     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10957     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958     ;;
10959   m68k)
10960     library_names_spec='$libname.ixlibrary $libname.a'
10961     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10962     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'
10963     ;;
10964   esac
10965   ;;
10966
10967 beos*)
10968   library_names_spec='${libname}${shared_ext}'
10969   dynamic_linker="$host_os ld.so"
10970   shlibpath_var=LIBRARY_PATH
10971   ;;
10972
10973 bsdi[45]*)
10974   version_type=linux # correct to gnu/linux during the next big refactor
10975   need_version=no
10976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977   soname_spec='${libname}${release}${shared_ext}$major'
10978   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10979   shlibpath_var=LD_LIBRARY_PATH
10980   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10981   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10982   # the default ld.so.conf also contains /usr/contrib/lib and
10983   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10984   # libtool to hard-code these into programs
10985   ;;
10986
10987 cygwin* | mingw* | pw32* | cegcc*)
10988   version_type=windows
10989   shrext_cmds=".dll"
10990   need_version=no
10991   need_lib_prefix=no
10992
10993   case $GCC,$cc_basename in
10994   yes,*)
10995     # gcc
10996     library_names_spec='$libname.dll.a'
10997     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10998     postinstall_cmds='base_file=`basename \${file}`~
10999       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11000       dldir=$destdir/`dirname \$dlpath`~
11001       test -d \$dldir || mkdir -p \$dldir~
11002       $install_prog $dir/$dlname \$dldir/$dlname~
11003       chmod a+x \$dldir/$dlname~
11004       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11005         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11006       fi'
11007     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11008       dlpath=$dir/\$dldll~
11009        $RM \$dlpath'
11010     shlibpath_overrides_runpath=yes
11011
11012     case $host_os in
11013     cygwin*)
11014       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11015       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11016
11017       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11018       ;;
11019     mingw* | cegcc*)
11020       # MinGW DLLs use traditional 'lib' prefix
11021       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11022       ;;
11023     pw32*)
11024       # pw32 DLLs use 'pw' prefix rather than 'lib'
11025       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11026       ;;
11027     esac
11028     dynamic_linker='Win32 ld.exe'
11029     ;;
11030
11031   *,cl*)
11032     # Native MSVC
11033     libname_spec='$name'
11034     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11035     library_names_spec='${libname}.dll.lib'
11036
11037     case $build_os in
11038     mingw*)
11039       sys_lib_search_path_spec=
11040       lt_save_ifs=$IFS
11041       IFS=';'
11042       for lt_path in $LIB
11043       do
11044         IFS=$lt_save_ifs
11045         # Let DOS variable expansion print the short 8.3 style file name.
11046         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11047         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11048       done
11049       IFS=$lt_save_ifs
11050       # Convert to MSYS style.
11051       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11052       ;;
11053     cygwin*)
11054       # Convert to unix form, then to dos form, then back to unix form
11055       # but this time dos style (no spaces!) so that the unix form looks
11056       # like /cygdrive/c/PROGRA~1:/cygdr...
11057       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11058       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11059       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11060       ;;
11061     *)
11062       sys_lib_search_path_spec="$LIB"
11063       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11064         # It is most probably a Windows format PATH.
11065         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11066       else
11067         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11068       fi
11069       # FIXME: find the short name or the path components, as spaces are
11070       # common. (e.g. "Program Files" -> "PROGRA~1")
11071       ;;
11072     esac
11073
11074     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11075     postinstall_cmds='base_file=`basename \${file}`~
11076       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11077       dldir=$destdir/`dirname \$dlpath`~
11078       test -d \$dldir || mkdir -p \$dldir~
11079       $install_prog $dir/$dlname \$dldir/$dlname'
11080     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11081       dlpath=$dir/\$dldll~
11082        $RM \$dlpath'
11083     shlibpath_overrides_runpath=yes
11084     dynamic_linker='Win32 link.exe'
11085     ;;
11086
11087   *)
11088     # Assume MSVC wrapper
11089     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11090     dynamic_linker='Win32 ld.exe'
11091     ;;
11092   esac
11093   # FIXME: first we should search . and the directory the executable is in
11094   shlibpath_var=PATH
11095   ;;
11096
11097 darwin* | rhapsody*)
11098   dynamic_linker="$host_os dyld"
11099   version_type=darwin
11100   need_lib_prefix=no
11101   need_version=no
11102   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11103   soname_spec='${libname}${release}${major}$shared_ext'
11104   shlibpath_overrides_runpath=yes
11105   shlibpath_var=DYLD_LIBRARY_PATH
11106   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11107
11108   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11109   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11110   ;;
11111
11112 dgux*)
11113   version_type=linux # correct to gnu/linux during the next big refactor
11114   need_lib_prefix=no
11115   need_version=no
11116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11117   soname_spec='${libname}${release}${shared_ext}$major'
11118   shlibpath_var=LD_LIBRARY_PATH
11119   ;;
11120
11121 freebsd* | dragonfly*)
11122   # DragonFly does not have aout.  When/if they implement a new
11123   # versioning mechanism, adjust this.
11124   if test -x /usr/bin/objformat; then
11125     objformat=`/usr/bin/objformat`
11126   else
11127     case $host_os in
11128     freebsd[23].*) objformat=aout ;;
11129     *) objformat=elf ;;
11130     esac
11131   fi
11132   version_type=freebsd-$objformat
11133   case $version_type in
11134     freebsd-elf*)
11135       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11136       need_version=no
11137       need_lib_prefix=no
11138       ;;
11139     freebsd-*)
11140       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11141       need_version=yes
11142       ;;
11143   esac
11144   shlibpath_var=LD_LIBRARY_PATH
11145   case $host_os in
11146   freebsd2.*)
11147     shlibpath_overrides_runpath=yes
11148     ;;
11149   freebsd3.[01]* | freebsdelf3.[01]*)
11150     shlibpath_overrides_runpath=yes
11151     hardcode_into_libs=yes
11152     ;;
11153   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11154   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11155     shlibpath_overrides_runpath=no
11156     hardcode_into_libs=yes
11157     ;;
11158   *) # from 4.6 on, and DragonFly
11159     shlibpath_overrides_runpath=yes
11160     hardcode_into_libs=yes
11161     ;;
11162   esac
11163   ;;
11164
11165 gnu*)
11166   version_type=linux # correct to gnu/linux during the next big refactor
11167   need_lib_prefix=no
11168   need_version=no
11169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11170   soname_spec='${libname}${release}${shared_ext}$major'
11171   shlibpath_var=LD_LIBRARY_PATH
11172   shlibpath_overrides_runpath=no
11173   hardcode_into_libs=yes
11174   ;;
11175
11176 haiku*)
11177   version_type=linux # correct to gnu/linux during the next big refactor
11178   need_lib_prefix=no
11179   need_version=no
11180   dynamic_linker="$host_os runtime_loader"
11181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11182   soname_spec='${libname}${release}${shared_ext}$major'
11183   shlibpath_var=LIBRARY_PATH
11184   shlibpath_overrides_runpath=yes
11185   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11186   hardcode_into_libs=yes
11187   ;;
11188
11189 hpux9* | hpux10* | hpux11*)
11190   # Give a soname corresponding to the major version so that dld.sl refuses to
11191   # link against other versions.
11192   version_type=sunos
11193   need_lib_prefix=no
11194   need_version=no
11195   case $host_cpu in
11196   ia64*)
11197     shrext_cmds='.so'
11198     hardcode_into_libs=yes
11199     dynamic_linker="$host_os dld.so"
11200     shlibpath_var=LD_LIBRARY_PATH
11201     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203     soname_spec='${libname}${release}${shared_ext}$major'
11204     if test "X$HPUX_IA64_MODE" = X32; then
11205       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11206     else
11207       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11208     fi
11209     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11210     ;;
11211   hppa*64*)
11212     shrext_cmds='.sl'
11213     hardcode_into_libs=yes
11214     dynamic_linker="$host_os dld.sl"
11215     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11216     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218     soname_spec='${libname}${release}${shared_ext}$major'
11219     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11220     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11221     ;;
11222   *)
11223     shrext_cmds='.sl'
11224     dynamic_linker="$host_os dld.sl"
11225     shlibpath_var=SHLIB_PATH
11226     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11227     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11228     soname_spec='${libname}${release}${shared_ext}$major'
11229     ;;
11230   esac
11231   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11232   postinstall_cmds='chmod 555 $lib'
11233   # or fails outright, so override atomically:
11234   install_override_mode=555
11235   ;;
11236
11237 interix[3-9]*)
11238   version_type=linux # correct to gnu/linux during the next big refactor
11239   need_lib_prefix=no
11240   need_version=no
11241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11242   soname_spec='${libname}${release}${shared_ext}$major'
11243   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11244   shlibpath_var=LD_LIBRARY_PATH
11245   shlibpath_overrides_runpath=no
11246   hardcode_into_libs=yes
11247   ;;
11248
11249 irix5* | irix6* | nonstopux*)
11250   case $host_os in
11251     nonstopux*) version_type=nonstopux ;;
11252     *)
11253         if test "$lt_cv_prog_gnu_ld" = yes; then
11254                 version_type=linux # correct to gnu/linux during the next big refactor
11255         else
11256                 version_type=irix
11257         fi ;;
11258   esac
11259   need_lib_prefix=no
11260   need_version=no
11261   soname_spec='${libname}${release}${shared_ext}$major'
11262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11263   case $host_os in
11264   irix5* | nonstopux*)
11265     libsuff= shlibsuff=
11266     ;;
11267   *)
11268     case $LD in # libtool.m4 will add one of these switches to LD
11269     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11270       libsuff= shlibsuff= libmagic=32-bit;;
11271     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11272       libsuff=32 shlibsuff=N32 libmagic=N32;;
11273     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11274       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11275     *) libsuff= shlibsuff= libmagic=never-match;;
11276     esac
11277     ;;
11278   esac
11279   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11280   shlibpath_overrides_runpath=no
11281   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11282   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11283   hardcode_into_libs=yes
11284   ;;
11285
11286 # No shared lib support for Linux oldld, aout, or coff.
11287 linux*oldld* | linux*aout* | linux*coff*)
11288   dynamic_linker=no
11289   ;;
11290
11291 # This must be glibc/ELF.
11292 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11293   version_type=linux # correct to gnu/linux during the next big refactor
11294   need_lib_prefix=no
11295   need_version=no
11296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11297   soname_spec='${libname}${release}${shared_ext}$major'
11298   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11299   shlibpath_var=LD_LIBRARY_PATH
11300   shlibpath_overrides_runpath=no
11301
11302   # Some binutils ld are patched to set DT_RUNPATH
11303   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306   lt_cv_shlibpath_overrides_runpath=no
11307     save_LDFLAGS=$LDFLAGS
11308     save_libdir=$libdir
11309     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11310          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11311     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h.  */
11313
11314 int
11315 main ()
11316 {
11317
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 if ac_fn_c_try_link "$LINENO"; then :
11323   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11324   lt_cv_shlibpath_overrides_runpath=yes
11325 fi
11326 fi
11327 rm -f core conftest.err conftest.$ac_objext \
11328     conftest$ac_exeext conftest.$ac_ext
11329     LDFLAGS=$save_LDFLAGS
11330     libdir=$save_libdir
11331
11332 fi
11333
11334   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11335
11336   # This implies no fast_install, which is unacceptable.
11337   # Some rework will be needed to allow for fast_install
11338   # before this can be enabled.
11339   hardcode_into_libs=yes
11340
11341   # Add ABI-specific directories to the system library path.
11342   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11343
11344   # Append ld.so.conf contents to the search path
11345   if test -f /etc/ld.so.conf; then
11346     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' ' '`
11347     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11348
11349   fi
11350
11351   # We used to test for /lib/ld.so.1 and disable shared libraries on
11352   # powerpc, because MkLinux only supported shared libraries with the
11353   # GNU dynamic linker.  Since this was broken with cross compilers,
11354   # most powerpc-linux boxes support dynamic linking these days and
11355   # people can always --disable-shared, the test was removed, and we
11356   # assume the GNU/Linux dynamic linker is in use.
11357   dynamic_linker='GNU/Linux ld.so'
11358   ;;
11359
11360 netbsd*)
11361   version_type=sunos
11362   need_lib_prefix=no
11363   need_version=no
11364   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11366     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11367     dynamic_linker='NetBSD (a.out) ld.so'
11368   else
11369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11370     soname_spec='${libname}${release}${shared_ext}$major'
11371     dynamic_linker='NetBSD ld.elf_so'
11372   fi
11373   shlibpath_var=LD_LIBRARY_PATH
11374   shlibpath_overrides_runpath=yes
11375   hardcode_into_libs=yes
11376   ;;
11377
11378 newsos6)
11379   version_type=linux # correct to gnu/linux during the next big refactor
11380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381   shlibpath_var=LD_LIBRARY_PATH
11382   shlibpath_overrides_runpath=yes
11383   ;;
11384
11385 *nto* | *qnx*)
11386   version_type=qnx
11387   need_lib_prefix=no
11388   need_version=no
11389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390   soname_spec='${libname}${release}${shared_ext}$major'
11391   shlibpath_var=LD_LIBRARY_PATH
11392   shlibpath_overrides_runpath=no
11393   hardcode_into_libs=yes
11394   dynamic_linker='ldqnx.so'
11395   ;;
11396
11397 openbsd*)
11398   version_type=sunos
11399   sys_lib_dlsearch_path_spec="/usr/lib"
11400   need_lib_prefix=no
11401   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11402   case $host_os in
11403     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11404     *)                          need_version=no  ;;
11405   esac
11406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11407   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11408   shlibpath_var=LD_LIBRARY_PATH
11409   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11410     case $host_os in
11411       openbsd2.[89] | openbsd2.[89].*)
11412         shlibpath_overrides_runpath=no
11413         ;;
11414       *)
11415         shlibpath_overrides_runpath=yes
11416         ;;
11417       esac
11418   else
11419     shlibpath_overrides_runpath=yes
11420   fi
11421   ;;
11422
11423 os2*)
11424   libname_spec='$name'
11425   shrext_cmds=".dll"
11426   need_lib_prefix=no
11427   library_names_spec='$libname${shared_ext} $libname.a'
11428   dynamic_linker='OS/2 ld.exe'
11429   shlibpath_var=LIBPATH
11430   ;;
11431
11432 osf3* | osf4* | osf5*)
11433   version_type=osf
11434   need_lib_prefix=no
11435   need_version=no
11436   soname_spec='${libname}${release}${shared_ext}$major'
11437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438   shlibpath_var=LD_LIBRARY_PATH
11439   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11440   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11441   ;;
11442
11443 rdos*)
11444   dynamic_linker=no
11445   ;;
11446
11447 solaris*)
11448   version_type=linux # correct to gnu/linux during the next big refactor
11449   need_lib_prefix=no
11450   need_version=no
11451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452   soname_spec='${libname}${release}${shared_ext}$major'
11453   shlibpath_var=LD_LIBRARY_PATH
11454   shlibpath_overrides_runpath=yes
11455   hardcode_into_libs=yes
11456   # ldd complains unless libraries are executable
11457   postinstall_cmds='chmod +x $lib'
11458   ;;
11459
11460 sunos4*)
11461   version_type=sunos
11462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11463   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11464   shlibpath_var=LD_LIBRARY_PATH
11465   shlibpath_overrides_runpath=yes
11466   if test "$with_gnu_ld" = yes; then
11467     need_lib_prefix=no
11468   fi
11469   need_version=yes
11470   ;;
11471
11472 sysv4 | sysv4.3*)
11473   version_type=linux # correct to gnu/linux during the next big refactor
11474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11475   soname_spec='${libname}${release}${shared_ext}$major'
11476   shlibpath_var=LD_LIBRARY_PATH
11477   case $host_vendor in
11478     sni)
11479       shlibpath_overrides_runpath=no
11480       need_lib_prefix=no
11481       runpath_var=LD_RUN_PATH
11482       ;;
11483     siemens)
11484       need_lib_prefix=no
11485       ;;
11486     motorola)
11487       need_lib_prefix=no
11488       need_version=no
11489       shlibpath_overrides_runpath=no
11490       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11491       ;;
11492   esac
11493   ;;
11494
11495 sysv4*MP*)
11496   if test -d /usr/nec ;then
11497     version_type=linux # correct to gnu/linux during the next big refactor
11498     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11499     soname_spec='$libname${shared_ext}.$major'
11500     shlibpath_var=LD_LIBRARY_PATH
11501   fi
11502   ;;
11503
11504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11505   version_type=freebsd-elf
11506   need_lib_prefix=no
11507   need_version=no
11508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11509   soname_spec='${libname}${release}${shared_ext}$major'
11510   shlibpath_var=LD_LIBRARY_PATH
11511   shlibpath_overrides_runpath=yes
11512   hardcode_into_libs=yes
11513   if test "$with_gnu_ld" = yes; then
11514     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11515   else
11516     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11517     case $host_os in
11518       sco3.2v5*)
11519         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11520         ;;
11521     esac
11522   fi
11523   sys_lib_dlsearch_path_spec='/usr/lib'
11524   ;;
11525
11526 tpf*)
11527   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11528   version_type=linux # correct to gnu/linux during the next big refactor
11529   need_lib_prefix=no
11530   need_version=no
11531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532   shlibpath_var=LD_LIBRARY_PATH
11533   shlibpath_overrides_runpath=no
11534   hardcode_into_libs=yes
11535   ;;
11536
11537 uts4*)
11538   version_type=linux # correct to gnu/linux during the next big refactor
11539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540   soname_spec='${libname}${release}${shared_ext}$major'
11541   shlibpath_var=LD_LIBRARY_PATH
11542   ;;
11543
11544 *)
11545   dynamic_linker=no
11546   ;;
11547 esac
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11549 $as_echo "$dynamic_linker" >&6; }
11550 test "$dynamic_linker" = no && can_build_shared=no
11551
11552 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11553 if test "$GCC" = yes; then
11554   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11555 fi
11556
11557 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11558   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11559 fi
11560 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11561   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11562 fi
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11656 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11657 hardcode_action=
11658 if test -n "$hardcode_libdir_flag_spec" ||
11659    test -n "$runpath_var" ||
11660    test "X$hardcode_automatic" = "Xyes" ; then
11661
11662   # We can hardcode non-existent directories.
11663   if test "$hardcode_direct" != no &&
11664      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11665      # have to relink, otherwise we might link with an installed library
11666      # when we should be linking with a yet-to-be-installed one
11667      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11668      test "$hardcode_minus_L" != no; then
11669     # Linking always hardcodes the temporary library directory.
11670     hardcode_action=relink
11671   else
11672     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11673     hardcode_action=immediate
11674   fi
11675 else
11676   # We cannot hardcode anything, or else we can only hardcode existing
11677   # directories.
11678   hardcode_action=unsupported
11679 fi
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11681 $as_echo "$hardcode_action" >&6; }
11682
11683 if test "$hardcode_action" = relink ||
11684    test "$inherit_rpath" = yes; then
11685   # Fast installation is not supported
11686   enable_fast_install=no
11687 elif test "$shlibpath_overrides_runpath" = yes ||
11688      test "$enable_shared" = no; then
11689   # Fast installation is not necessary
11690   enable_fast_install=needless
11691 fi
11692
11693
11694
11695
11696
11697
11698   if test "x$enable_dlopen" != xyes; then
11699   enable_dlopen=unknown
11700   enable_dlopen_self=unknown
11701   enable_dlopen_self_static=unknown
11702 else
11703   lt_cv_dlopen=no
11704   lt_cv_dlopen_libs=
11705
11706   case $host_os in
11707   beos*)
11708     lt_cv_dlopen="load_add_on"
11709     lt_cv_dlopen_libs=
11710     lt_cv_dlopen_self=yes
11711     ;;
11712
11713   mingw* | pw32* | cegcc*)
11714     lt_cv_dlopen="LoadLibrary"
11715     lt_cv_dlopen_libs=
11716     ;;
11717
11718   cygwin*)
11719     lt_cv_dlopen="dlopen"
11720     lt_cv_dlopen_libs=
11721     ;;
11722
11723   darwin*)
11724   # if libdl is installed we need to link against it
11725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11726 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11727 if ${ac_cv_lib_dl_dlopen+:} false; then :
11728   $as_echo_n "(cached) " >&6
11729 else
11730   ac_check_lib_save_LIBS=$LIBS
11731 LIBS="-ldl  $LIBS"
11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h.  */
11734
11735 /* Override any GCC internal prototype to avoid an error.
11736    Use char because int might match the return type of a GCC
11737    builtin and then its argument prototype would still apply.  */
11738 #ifdef __cplusplus
11739 extern "C"
11740 #endif
11741 char dlopen ();
11742 int
11743 main ()
11744 {
11745 return dlopen ();
11746   ;
11747   return 0;
11748 }
11749 _ACEOF
11750 if ac_fn_c_try_link "$LINENO"; then :
11751   ac_cv_lib_dl_dlopen=yes
11752 else
11753   ac_cv_lib_dl_dlopen=no
11754 fi
11755 rm -f core conftest.err conftest.$ac_objext \
11756     conftest$ac_exeext conftest.$ac_ext
11757 LIBS=$ac_check_lib_save_LIBS
11758 fi
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11760 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11761 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11762   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11763 else
11764
11765     lt_cv_dlopen="dyld"
11766     lt_cv_dlopen_libs=
11767     lt_cv_dlopen_self=yes
11768
11769 fi
11770
11771     ;;
11772
11773   *)
11774     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11775 if test "x$ac_cv_func_shl_load" = xyes; then :
11776   lt_cv_dlopen="shl_load"
11777 else
11778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11779 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11780 if ${ac_cv_lib_dld_shl_load+:} false; then :
11781   $as_echo_n "(cached) " >&6
11782 else
11783   ac_check_lib_save_LIBS=$LIBS
11784 LIBS="-ldld  $LIBS"
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h.  */
11787
11788 /* Override any GCC internal prototype to avoid an error.
11789    Use char because int might match the return type of a GCC
11790    builtin and then its argument prototype would still apply.  */
11791 #ifdef __cplusplus
11792 extern "C"
11793 #endif
11794 char shl_load ();
11795 int
11796 main ()
11797 {
11798 return shl_load ();
11799   ;
11800   return 0;
11801 }
11802 _ACEOF
11803 if ac_fn_c_try_link "$LINENO"; then :
11804   ac_cv_lib_dld_shl_load=yes
11805 else
11806   ac_cv_lib_dld_shl_load=no
11807 fi
11808 rm -f core conftest.err conftest.$ac_objext \
11809     conftest$ac_exeext conftest.$ac_ext
11810 LIBS=$ac_check_lib_save_LIBS
11811 fi
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11813 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11814 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11815   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11816 else
11817   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11818 if test "x$ac_cv_func_dlopen" = xyes; then :
11819   lt_cv_dlopen="dlopen"
11820 else
11821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11822 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11823 if ${ac_cv_lib_dl_dlopen+:} false; then :
11824   $as_echo_n "(cached) " >&6
11825 else
11826   ac_check_lib_save_LIBS=$LIBS
11827 LIBS="-ldl  $LIBS"
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h.  */
11830
11831 /* Override any GCC internal prototype to avoid an error.
11832    Use char because int might match the return type of a GCC
11833    builtin and then its argument prototype would still apply.  */
11834 #ifdef __cplusplus
11835 extern "C"
11836 #endif
11837 char dlopen ();
11838 int
11839 main ()
11840 {
11841 return dlopen ();
11842   ;
11843   return 0;
11844 }
11845 _ACEOF
11846 if ac_fn_c_try_link "$LINENO"; then :
11847   ac_cv_lib_dl_dlopen=yes
11848 else
11849   ac_cv_lib_dl_dlopen=no
11850 fi
11851 rm -f core conftest.err conftest.$ac_objext \
11852     conftest$ac_exeext conftest.$ac_ext
11853 LIBS=$ac_check_lib_save_LIBS
11854 fi
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11856 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11857 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11858   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11859 else
11860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11861 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11862 if ${ac_cv_lib_svld_dlopen+:} false; then :
11863   $as_echo_n "(cached) " >&6
11864 else
11865   ac_check_lib_save_LIBS=$LIBS
11866 LIBS="-lsvld  $LIBS"
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h.  */
11869
11870 /* Override any GCC internal prototype to avoid an error.
11871    Use char because int might match the return type of a GCC
11872    builtin and then its argument prototype would still apply.  */
11873 #ifdef __cplusplus
11874 extern "C"
11875 #endif
11876 char dlopen ();
11877 int
11878 main ()
11879 {
11880 return dlopen ();
11881   ;
11882   return 0;
11883 }
11884 _ACEOF
11885 if ac_fn_c_try_link "$LINENO"; then :
11886   ac_cv_lib_svld_dlopen=yes
11887 else
11888   ac_cv_lib_svld_dlopen=no
11889 fi
11890 rm -f core conftest.err conftest.$ac_objext \
11891     conftest$ac_exeext conftest.$ac_ext
11892 LIBS=$ac_check_lib_save_LIBS
11893 fi
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11895 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11896 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11897   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11898 else
11899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11900 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11901 if ${ac_cv_lib_dld_dld_link+:} false; then :
11902   $as_echo_n "(cached) " >&6
11903 else
11904   ac_check_lib_save_LIBS=$LIBS
11905 LIBS="-ldld  $LIBS"
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h.  */
11908
11909 /* Override any GCC internal prototype to avoid an error.
11910    Use char because int might match the return type of a GCC
11911    builtin and then its argument prototype would still apply.  */
11912 #ifdef __cplusplus
11913 extern "C"
11914 #endif
11915 char dld_link ();
11916 int
11917 main ()
11918 {
11919 return dld_link ();
11920   ;
11921   return 0;
11922 }
11923 _ACEOF
11924 if ac_fn_c_try_link "$LINENO"; then :
11925   ac_cv_lib_dld_dld_link=yes
11926 else
11927   ac_cv_lib_dld_dld_link=no
11928 fi
11929 rm -f core conftest.err conftest.$ac_objext \
11930     conftest$ac_exeext conftest.$ac_ext
11931 LIBS=$ac_check_lib_save_LIBS
11932 fi
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11934 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11935 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11936   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11937 fi
11938
11939
11940 fi
11941
11942
11943 fi
11944
11945
11946 fi
11947
11948
11949 fi
11950
11951
11952 fi
11953
11954     ;;
11955   esac
11956
11957   if test "x$lt_cv_dlopen" != xno; then
11958     enable_dlopen=yes
11959   else
11960     enable_dlopen=no
11961   fi
11962
11963   case $lt_cv_dlopen in
11964   dlopen)
11965     save_CPPFLAGS="$CPPFLAGS"
11966     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11967
11968     save_LDFLAGS="$LDFLAGS"
11969     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11970
11971     save_LIBS="$LIBS"
11972     LIBS="$lt_cv_dlopen_libs $LIBS"
11973
11974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11975 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11976 if ${lt_cv_dlopen_self+:} false; then :
11977   $as_echo_n "(cached) " >&6
11978 else
11979           if test "$cross_compiling" = yes; then :
11980   lt_cv_dlopen_self=cross
11981 else
11982   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11983   lt_status=$lt_dlunknown
11984   cat > conftest.$ac_ext <<_LT_EOF
11985 #line $LINENO "configure"
11986 #include "confdefs.h"
11987
11988 #if HAVE_DLFCN_H
11989 #include <dlfcn.h>
11990 #endif
11991
11992 #include <stdio.h>
11993
11994 #ifdef RTLD_GLOBAL
11995 #  define LT_DLGLOBAL           RTLD_GLOBAL
11996 #else
11997 #  ifdef DL_GLOBAL
11998 #    define LT_DLGLOBAL         DL_GLOBAL
11999 #  else
12000 #    define LT_DLGLOBAL         0
12001 #  endif
12002 #endif
12003
12004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12005    find out it does not work in some platform. */
12006 #ifndef LT_DLLAZY_OR_NOW
12007 #  ifdef RTLD_LAZY
12008 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12009 #  else
12010 #    ifdef DL_LAZY
12011 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12012 #    else
12013 #      ifdef RTLD_NOW
12014 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12015 #      else
12016 #        ifdef DL_NOW
12017 #          define LT_DLLAZY_OR_NOW      DL_NOW
12018 #        else
12019 #          define LT_DLLAZY_OR_NOW      0
12020 #        endif
12021 #      endif
12022 #    endif
12023 #  endif
12024 #endif
12025
12026 /* When -fvisbility=hidden is used, assume the code has been annotated
12027    correspondingly for the symbols needed.  */
12028 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12029 int fnord () __attribute__((visibility("default")));
12030 #endif
12031
12032 int fnord () { return 42; }
12033 int main ()
12034 {
12035   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12036   int status = $lt_dlunknown;
12037
12038   if (self)
12039     {
12040       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12041       else
12042         {
12043           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12044           else puts (dlerror ());
12045         }
12046       /* dlclose (self); */
12047     }
12048   else
12049     puts (dlerror ());
12050
12051   return status;
12052 }
12053 _LT_EOF
12054   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12055   (eval $ac_link) 2>&5
12056   ac_status=$?
12057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12058   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12059     (./conftest; exit; ) >&5 2>/dev/null
12060     lt_status=$?
12061     case x$lt_status in
12062       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12063       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12064       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12065     esac
12066   else :
12067     # compilation failed
12068     lt_cv_dlopen_self=no
12069   fi
12070 fi
12071 rm -fr conftest*
12072
12073
12074 fi
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12076 $as_echo "$lt_cv_dlopen_self" >&6; }
12077
12078     if test "x$lt_cv_dlopen_self" = xyes; then
12079       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12080       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12081 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12082 if ${lt_cv_dlopen_self_static+:} false; then :
12083   $as_echo_n "(cached) " >&6
12084 else
12085           if test "$cross_compiling" = yes; then :
12086   lt_cv_dlopen_self_static=cross
12087 else
12088   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12089   lt_status=$lt_dlunknown
12090   cat > conftest.$ac_ext <<_LT_EOF
12091 #line $LINENO "configure"
12092 #include "confdefs.h"
12093
12094 #if HAVE_DLFCN_H
12095 #include <dlfcn.h>
12096 #endif
12097
12098 #include <stdio.h>
12099
12100 #ifdef RTLD_GLOBAL
12101 #  define LT_DLGLOBAL           RTLD_GLOBAL
12102 #else
12103 #  ifdef DL_GLOBAL
12104 #    define LT_DLGLOBAL         DL_GLOBAL
12105 #  else
12106 #    define LT_DLGLOBAL         0
12107 #  endif
12108 #endif
12109
12110 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12111    find out it does not work in some platform. */
12112 #ifndef LT_DLLAZY_OR_NOW
12113 #  ifdef RTLD_LAZY
12114 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12115 #  else
12116 #    ifdef DL_LAZY
12117 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12118 #    else
12119 #      ifdef RTLD_NOW
12120 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12121 #      else
12122 #        ifdef DL_NOW
12123 #          define LT_DLLAZY_OR_NOW      DL_NOW
12124 #        else
12125 #          define LT_DLLAZY_OR_NOW      0
12126 #        endif
12127 #      endif
12128 #    endif
12129 #  endif
12130 #endif
12131
12132 /* When -fvisbility=hidden is used, assume the code has been annotated
12133    correspondingly for the symbols needed.  */
12134 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12135 int fnord () __attribute__((visibility("default")));
12136 #endif
12137
12138 int fnord () { return 42; }
12139 int main ()
12140 {
12141   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12142   int status = $lt_dlunknown;
12143
12144   if (self)
12145     {
12146       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12147       else
12148         {
12149           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12150           else puts (dlerror ());
12151         }
12152       /* dlclose (self); */
12153     }
12154   else
12155     puts (dlerror ());
12156
12157   return status;
12158 }
12159 _LT_EOF
12160   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12161   (eval $ac_link) 2>&5
12162   ac_status=$?
12163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12164   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12165     (./conftest; exit; ) >&5 2>/dev/null
12166     lt_status=$?
12167     case x$lt_status in
12168       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12169       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12170       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12171     esac
12172   else :
12173     # compilation failed
12174     lt_cv_dlopen_self_static=no
12175   fi
12176 fi
12177 rm -fr conftest*
12178
12179
12180 fi
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12182 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12183     fi
12184
12185     CPPFLAGS="$save_CPPFLAGS"
12186     LDFLAGS="$save_LDFLAGS"
12187     LIBS="$save_LIBS"
12188     ;;
12189   esac
12190
12191   case $lt_cv_dlopen_self in
12192   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12193   *) enable_dlopen_self=unknown ;;
12194   esac
12195
12196   case $lt_cv_dlopen_self_static in
12197   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12198   *) enable_dlopen_self_static=unknown ;;
12199   esac
12200 fi
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218 striplib=
12219 old_striplib=
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12221 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12222 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12223   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12224   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12226 $as_echo "yes" >&6; }
12227 else
12228 # FIXME - insert some real tests, host_os isn't really good enough
12229   case $host_os in
12230   darwin*)
12231     if test -n "$STRIP" ; then
12232       striplib="$STRIP -x"
12233       old_striplib="$STRIP -S"
12234       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12235 $as_echo "yes" >&6; }
12236     else
12237       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12239     fi
12240     ;;
12241   *)
12242     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; }
12244     ;;
12245   esac
12246 fi
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259   # Report which library types will actually be built
12260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12261 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12263 $as_echo "$can_build_shared" >&6; }
12264
12265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12266 $as_echo_n "checking whether to build shared libraries... " >&6; }
12267   test "$can_build_shared" = "no" && enable_shared=no
12268
12269   # On AIX, shared libraries and static libraries use the same namespace, and
12270   # are all built from PIC.
12271   case $host_os in
12272   aix3*)
12273     test "$enable_shared" = yes && enable_static=no
12274     if test -n "$RANLIB"; then
12275       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12276       postinstall_cmds='$RANLIB $lib'
12277     fi
12278     ;;
12279
12280   aix[4-9]*)
12281     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12282       test "$enable_shared" = yes && enable_static=no
12283     fi
12284     ;;
12285   esac
12286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12287 $as_echo "$enable_shared" >&6; }
12288
12289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12290 $as_echo_n "checking whether to build static libraries... " >&6; }
12291   # Make sure either enable_shared or enable_static is yes.
12292   test "$enable_shared" = yes || enable_static=yes
12293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12294 $as_echo "$enable_static" >&6; }
12295
12296
12297
12298
12299 fi
12300 ac_ext=c
12301 ac_cpp='$CPP $CPPFLAGS'
12302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12305
12306 CC="$lt_save_CC"
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322         ac_config_commands="$ac_config_commands libtool"
12323
12324
12325
12326
12327 # Only expand once:
12328
12329
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12331 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12332 set x ${MAKE-make}
12333 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12334 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12335   $as_echo_n "(cached) " >&6
12336 else
12337   cat >conftest.make <<\_ACEOF
12338 SHELL = /bin/sh
12339 all:
12340         @echo '@@@%%%=$(MAKE)=@@@%%%'
12341 _ACEOF
12342 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12343 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12344   *@@@%%%=?*=@@@%%%*)
12345     eval ac_cv_prog_make_${ac_make}_set=yes;;
12346   *)
12347     eval ac_cv_prog_make_${ac_make}_set=no;;
12348 esac
12349 rm -f conftest.make
12350 fi
12351 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12353 $as_echo "yes" >&6; }
12354   SET_MAKE=
12355 else
12356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12358   SET_MAKE="MAKE=${MAKE-make}"
12359 fi
12360
12361
12362
12363
12364
12365
12366
12367
12368 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12369         if test -n "$ac_tool_prefix"; then
12370   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12371 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12373 $as_echo_n "checking for $ac_word... " >&6; }
12374 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12375   $as_echo_n "(cached) " >&6
12376 else
12377   case $PKG_CONFIG in
12378   [\\/]* | ?:[\\/]*)
12379   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12380   ;;
12381   *)
12382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12384 do
12385   IFS=$as_save_IFS
12386   test -z "$as_dir" && as_dir=.
12387     for ac_exec_ext in '' $ac_executable_extensions; do
12388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12389     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391     break 2
12392   fi
12393 done
12394   done
12395 IFS=$as_save_IFS
12396
12397   ;;
12398 esac
12399 fi
12400 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12401 if test -n "$PKG_CONFIG"; then
12402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12403 $as_echo "$PKG_CONFIG" >&6; }
12404 else
12405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12407 fi
12408
12409
12410 fi
12411 if test -z "$ac_cv_path_PKG_CONFIG"; then
12412   ac_pt_PKG_CONFIG=$PKG_CONFIG
12413   # Extract the first word of "pkg-config", so it can be a program name with args.
12414 set dummy pkg-config; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12418   $as_echo_n "(cached) " >&6
12419 else
12420   case $ac_pt_PKG_CONFIG in
12421   [\\/]* | ?:[\\/]*)
12422   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12423   ;;
12424   *)
12425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426 for as_dir in $PATH
12427 do
12428   IFS=$as_save_IFS
12429   test -z "$as_dir" && as_dir=.
12430     for ac_exec_ext in '' $ac_executable_extensions; do
12431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12432     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434     break 2
12435   fi
12436 done
12437   done
12438 IFS=$as_save_IFS
12439
12440   ;;
12441 esac
12442 fi
12443 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12444 if test -n "$ac_pt_PKG_CONFIG"; then
12445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12446 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12447 else
12448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449 $as_echo "no" >&6; }
12450 fi
12451
12452   if test "x$ac_pt_PKG_CONFIG" = x; then
12453     PKG_CONFIG=""
12454   else
12455     case $cross_compiling:$ac_tool_warned in
12456 yes:)
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12459 ac_tool_warned=yes ;;
12460 esac
12461     PKG_CONFIG=$ac_pt_PKG_CONFIG
12462   fi
12463 else
12464   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12465 fi
12466
12467 fi
12468 if test -n "$PKG_CONFIG"; then
12469         _pkg_min_version=0.9.0
12470         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12471 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12472         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12473                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12474 $as_echo "yes" >&6; }
12475         else
12476                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477 $as_echo "no" >&6; }
12478                 PKG_CONFIG=""
12479         fi
12480 fi
12481
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
12483 $as_echo_n "checking for RM macro... " >&6; }
12484 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
12485 if test "x$_predefined_rm" = "x"; then
12486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
12487 $as_echo "no predefined RM" >&6; }
12488         # Extract the first word of "rm", so it can be a program name with args.
12489 set dummy rm; ac_word=$2
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12491 $as_echo_n "checking for $ac_word... " >&6; }
12492 if ${ac_cv_prog_RM+:} false; then :
12493   $as_echo_n "(cached) " >&6
12494 else
12495   if test -n "$RM"; then
12496   ac_cv_prog_RM="$RM" # Let the user override the test.
12497 else
12498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499 for as_dir in $PATH
12500 do
12501   IFS=$as_save_IFS
12502   test -z "$as_dir" && as_dir=.
12503     for ac_exec_ext in '' $ac_executable_extensions; do
12504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12505     ac_cv_prog_RM="rm -f"
12506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12507     break 2
12508   fi
12509 done
12510   done
12511 IFS=$as_save_IFS
12512
12513 fi
12514 fi
12515 RM=$ac_cv_prog_RM
12516 if test -n "$RM"; then
12517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
12518 $as_echo "$RM" >&6; }
12519 else
12520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521 $as_echo "no" >&6; }
12522 fi
12523
12524
12525 else
12526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
12527 $as_echo "$_predefined_rm" >&6; }
12528 fi
12529
12530
12531 case "$host" in
12532   *-*-mingw*)
12533     os_win32=yes
12534     ;;
12535   *)
12536     os_win32=no
12537 esac
12538  if test "$os_win32" = "yes"; then
12539   OS_WIN32_TRUE=
12540   OS_WIN32_FALSE='#'
12541 else
12542   OS_WIN32_TRUE='#'
12543   OS_WIN32_FALSE=
12544 fi
12545
12546
12547 if test "$os_win32" = "yes"; then
12548   # Extract the first word of "lib.exe", so it can be a program name with args.
12549 set dummy lib.exe; ac_word=$2
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551 $as_echo_n "checking for $ac_word... " >&6; }
12552 if ${ac_cv_prog_ms_librarian+:} false; then :
12553   $as_echo_n "(cached) " >&6
12554 else
12555   if test -n "$ms_librarian"; then
12556   ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
12557 else
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559 for as_dir in $PATH
12560 do
12561   IFS=$as_save_IFS
12562   test -z "$as_dir" && as_dir=.
12563     for ac_exec_ext in '' $ac_executable_extensions; do
12564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12565     ac_cv_prog_ms_librarian="yes"
12566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567     break 2
12568   fi
12569 done
12570   done
12571 IFS=$as_save_IFS
12572
12573   test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
12574 fi
12575 fi
12576 ms_librarian=$ac_cv_prog_ms_librarian
12577 if test -n "$ms_librarian"; then
12578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
12579 $as_echo "$ms_librarian" >&6; }
12580 else
12581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12583 fi
12584
12585
12586 fi
12587  if test x$ms_librarian = xyes; then
12588   MS_LIB_AVAILABLE_TRUE=
12589   MS_LIB_AVAILABLE_FALSE='#'
12590 else
12591   MS_LIB_AVAILABLE_TRUE='#'
12592   MS_LIB_AVAILABLE_FALSE=
12593 fi
12594
12595
12596 WARN_CFLAGS=""
12597 if test "x$GCC" = "xyes"; then
12598         WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
12599         -Wmissing-prototypes -Wmissing-declarations \
12600         -Wnested-externs -fno-strict-aliasing"
12601
12602 cat >>confdefs.h <<_ACEOF
12603 #define HAVE_WARNING_CPP_DIRECTIVE 1
12604 _ACEOF
12605
12606 fi
12607
12608
12609
12610
12611 # Put a plausible default for CC_FOR_BUILD in Makefile.
12612 if test -z "$CC_FOR_BUILD"; then
12613   if test "x$cross_compiling" = "xno"; then
12614     CC_FOR_BUILD='$(CC)'
12615   else
12616     CC_FOR_BUILD=gcc
12617   fi
12618 fi
12619
12620 # Also set EXEEXT_FOR_BUILD.
12621 if test "x$cross_compiling" = "xno"; then
12622   EXEEXT_FOR_BUILD='$(EXEEXT)'
12623 else
12624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12625 $as_echo_n "checking for build system executable suffix... " >&6; }
12626 if ${bfd_cv_build_exeext+:} false; then :
12627   $as_echo_n "(cached) " >&6
12628 else
12629   rm -f conftest*
12630      echo 'int main () { return 0; }' > conftest.c
12631      bfd_cv_build_exeext=
12632      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12633      for file in conftest.*; do
12634        case $file in
12635        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12636        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12637        esac
12638      done
12639      rm -f conftest*
12640      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12641 fi
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12643 $as_echo "$bfd_cv_build_exeext" >&6; }
12644   EXEEXT_FOR_BUILD=""
12645   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12646 fi
12647
12648
12649  if test $cross_compiling = yes; then
12650   CROSS_COMPILING_TRUE=
12651   CROSS_COMPILING_FALSE='#'
12652 else
12653   CROSS_COMPILING_TRUE='#'
12654   CROSS_COMPILING_FALSE=
12655 fi
12656
12657  if test "$enable_shared" = "yes"; then
12658   ENABLE_SHARED_TRUE=
12659   ENABLE_SHARED_FALSE='#'
12660 else
12661   ENABLE_SHARED_TRUE='#'
12662   ENABLE_SHARED_FALSE=
12663 fi
12664
12665
12666
12667
12668 # Check whether --with-arch was given.
12669 if test "${with_arch+set}" = set; then :
12670   withval=$with_arch; arch="$withval"
12671 else
12672   arch=auto
12673 fi
12674
12675
12676 if test "x$arch" != xauto; then
12677
12678 cat >>confdefs.h <<_ACEOF
12679 #define FC_ARCHITECTURE "$arch"
12680 _ACEOF
12681
12682 fi
12683
12684
12685
12686 # Checks for header files.
12687 ac_header_dirent=no
12688 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12689   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12691 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12692 if eval \${$as_ac_Header+:} false; then :
12693   $as_echo_n "(cached) " >&6
12694 else
12695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h.  */
12697 #include <sys/types.h>
12698 #include <$ac_hdr>
12699
12700 int
12701 main ()
12702 {
12703 if ((DIR *) 0)
12704 return 0;
12705   ;
12706   return 0;
12707 }
12708 _ACEOF
12709 if ac_fn_c_try_compile "$LINENO"; then :
12710   eval "$as_ac_Header=yes"
12711 else
12712   eval "$as_ac_Header=no"
12713 fi
12714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12715 fi
12716 eval ac_res=\$$as_ac_Header
12717                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12718 $as_echo "$ac_res" >&6; }
12719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12720   cat >>confdefs.h <<_ACEOF
12721 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12722 _ACEOF
12723
12724 ac_header_dirent=$ac_hdr; break
12725 fi
12726
12727 done
12728 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12729 if test $ac_header_dirent = dirent.h; then
12730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12731 $as_echo_n "checking for library containing opendir... " >&6; }
12732 if ${ac_cv_search_opendir+:} false; then :
12733   $as_echo_n "(cached) " >&6
12734 else
12735   ac_func_search_save_LIBS=$LIBS
12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h.  */
12738
12739 /* Override any GCC internal prototype to avoid an error.
12740    Use char because int might match the return type of a GCC
12741    builtin and then its argument prototype would still apply.  */
12742 #ifdef __cplusplus
12743 extern "C"
12744 #endif
12745 char opendir ();
12746 int
12747 main ()
12748 {
12749 return opendir ();
12750   ;
12751   return 0;
12752 }
12753 _ACEOF
12754 for ac_lib in '' dir; do
12755   if test -z "$ac_lib"; then
12756     ac_res="none required"
12757   else
12758     ac_res=-l$ac_lib
12759     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12760   fi
12761   if ac_fn_c_try_link "$LINENO"; then :
12762   ac_cv_search_opendir=$ac_res
12763 fi
12764 rm -f core conftest.err conftest.$ac_objext \
12765     conftest$ac_exeext
12766   if ${ac_cv_search_opendir+:} false; then :
12767   break
12768 fi
12769 done
12770 if ${ac_cv_search_opendir+:} false; then :
12771
12772 else
12773   ac_cv_search_opendir=no
12774 fi
12775 rm conftest.$ac_ext
12776 LIBS=$ac_func_search_save_LIBS
12777 fi
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12779 $as_echo "$ac_cv_search_opendir" >&6; }
12780 ac_res=$ac_cv_search_opendir
12781 if test "$ac_res" != no; then :
12782   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12783
12784 fi
12785
12786 else
12787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12788 $as_echo_n "checking for library containing opendir... " >&6; }
12789 if ${ac_cv_search_opendir+:} false; then :
12790   $as_echo_n "(cached) " >&6
12791 else
12792   ac_func_search_save_LIBS=$LIBS
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h.  */
12795
12796 /* Override any GCC internal prototype to avoid an error.
12797    Use char because int might match the return type of a GCC
12798    builtin and then its argument prototype would still apply.  */
12799 #ifdef __cplusplus
12800 extern "C"
12801 #endif
12802 char opendir ();
12803 int
12804 main ()
12805 {
12806 return opendir ();
12807   ;
12808   return 0;
12809 }
12810 _ACEOF
12811 for ac_lib in '' x; do
12812   if test -z "$ac_lib"; then
12813     ac_res="none required"
12814   else
12815     ac_res=-l$ac_lib
12816     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12817   fi
12818   if ac_fn_c_try_link "$LINENO"; then :
12819   ac_cv_search_opendir=$ac_res
12820 fi
12821 rm -f core conftest.err conftest.$ac_objext \
12822     conftest$ac_exeext
12823   if ${ac_cv_search_opendir+:} false; then :
12824   break
12825 fi
12826 done
12827 if ${ac_cv_search_opendir+:} false; then :
12828
12829 else
12830   ac_cv_search_opendir=no
12831 fi
12832 rm conftest.$ac_ext
12833 LIBS=$ac_func_search_save_LIBS
12834 fi
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12836 $as_echo "$ac_cv_search_opendir" >&6; }
12837 ac_res=$ac_cv_search_opendir
12838 if test "$ac_res" != no; then :
12839   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12840
12841 fi
12842
12843 fi
12844
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12846 $as_echo_n "checking for ANSI C header files... " >&6; }
12847 if ${ac_cv_header_stdc+:} false; then :
12848   $as_echo_n "(cached) " >&6
12849 else
12850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h.  */
12852 #include <stdlib.h>
12853 #include <stdarg.h>
12854 #include <string.h>
12855 #include <float.h>
12856
12857 int
12858 main ()
12859 {
12860
12861   ;
12862   return 0;
12863 }
12864 _ACEOF
12865 if ac_fn_c_try_compile "$LINENO"; then :
12866   ac_cv_header_stdc=yes
12867 else
12868   ac_cv_header_stdc=no
12869 fi
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871
12872 if test $ac_cv_header_stdc = yes; then
12873   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875 /* end confdefs.h.  */
12876 #include <string.h>
12877
12878 _ACEOF
12879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12880   $EGREP "memchr" >/dev/null 2>&1; then :
12881
12882 else
12883   ac_cv_header_stdc=no
12884 fi
12885 rm -f conftest*
12886
12887 fi
12888
12889 if test $ac_cv_header_stdc = yes; then
12890   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h.  */
12893 #include <stdlib.h>
12894
12895 _ACEOF
12896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12897   $EGREP "free" >/dev/null 2>&1; then :
12898
12899 else
12900   ac_cv_header_stdc=no
12901 fi
12902 rm -f conftest*
12903
12904 fi
12905
12906 if test $ac_cv_header_stdc = yes; then
12907   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12908   if test "$cross_compiling" = yes; then :
12909   :
12910 else
12911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h.  */
12913 #include <ctype.h>
12914 #include <stdlib.h>
12915 #if ((' ' & 0x0FF) == 0x020)
12916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12918 #else
12919 # define ISLOWER(c) \
12920                    (('a' <= (c) && (c) <= 'i') \
12921                      || ('j' <= (c) && (c) <= 'r') \
12922                      || ('s' <= (c) && (c) <= 'z'))
12923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12924 #endif
12925
12926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12927 int
12928 main ()
12929 {
12930   int i;
12931   for (i = 0; i < 256; i++)
12932     if (XOR (islower (i), ISLOWER (i))
12933         || toupper (i) != TOUPPER (i))
12934       return 2;
12935   return 0;
12936 }
12937 _ACEOF
12938 if ac_fn_c_try_run "$LINENO"; then :
12939
12940 else
12941   ac_cv_header_stdc=no
12942 fi
12943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12944   conftest.$ac_objext conftest.beam conftest.$ac_ext
12945 fi
12946
12947 fi
12948 fi
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12950 $as_echo "$ac_cv_header_stdc" >&6; }
12951 if test $ac_cv_header_stdc = yes; then
12952
12953 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12954
12955 fi
12956
12957 for ac_header in fcntl.h regex.h stdlib.h string.h unistd.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h
12958 do :
12959   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12960 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12961 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12962   cat >>confdefs.h <<_ACEOF
12963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12964 _ACEOF
12965
12966 fi
12967
12968 done
12969
12970 # ------ AX CREATE STDINT H -------------------------------------
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
12972 $as_echo_n "checking for stdint types... " >&6; }
12973 ac_stdint_h=`echo src/fcstdint.h`
12974 # try to shortcircuit - if the default include path of the compiler
12975 # can find a "stdint.h" header then we assume that all compilers can.
12976 if ${ac_cv_header_stdint_t+:} false; then :
12977   $as_echo_n "(cached) " >&6
12978 else
12979
12980 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
12981 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
12982 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h.  */
12985 #include <stdint.h>
12986 int
12987 main ()
12988 {
12989 int_least32_t v = 0;
12990   ;
12991   return 0;
12992 }
12993 _ACEOF
12994 if ac_fn_c_try_compile "$LINENO"; then :
12995   ac_cv_stdint_result="(assuming C99 compatible system)"
12996  ac_cv_header_stdint_t="stdint.h";
12997 else
12998   ac_cv_header_stdint_t=""
12999 fi
13000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13001 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
13002 CFLAGS="-std=c99"
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h.  */
13005 #include <stdint.h>
13006 int
13007 main ()
13008 {
13009 int_least32_t v = 0;
13010   ;
13011   return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_compile "$LINENO"; then :
13015   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
13016 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
13017 fi
13018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13019 fi
13020 CXXFLAGS="$old_CXXFLAGS"
13021 CPPFLAGS="$old_CPPFLAGS"
13022 CFLAGS="$old_CFLAGS"
13023 fi
13024
13025
13026 v="... $ac_cv_header_stdint_h"
13027 if test "$ac_stdint_h" = "stdint.h" ; then
13028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
13029 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
13030 elif test "$ac_stdint_h" = "inttypes.h" ; then
13031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
13032 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
13033 elif test "_$ac_cv_header_stdint_t" = "_" ; then
13034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
13035 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
13036 else
13037  ac_cv_header_stdint="$ac_cv_header_stdint_t"
13038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
13039 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
13040 fi
13041
13042 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
13043
13044
13045 inttype_headers=`echo  | sed -e 's/,/ /g'`
13046
13047 ac_cv_stdint_result="(no helpful system typedefs seen)"
13048
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
13050 $as_echo_n "checking for stdint uintptr_t... " >&6; }
13051 if ${ac_cv_header_stdint_x+:} false; then :
13052   $as_echo_n "(cached) " >&6
13053 else
13054
13055  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
13056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13057 $as_echo "(..)" >&6; }
13058   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
13059   do
13060    unset ac_cv_type_uintptr_t
13061    unset ac_cv_type_uint64_t
13062    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
13063 "
13064 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13065   ac_cv_header_stdint_x=$i
13066 else
13067   continue
13068 fi
13069
13070    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
13071 "
13072 if test "x$ac_cv_type_uint64_t" = xyes; then :
13073   and64="/uint64_t"
13074 else
13075   and64=""
13076 fi
13077
13078    ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
13079  break
13080   done
13081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
13082 $as_echo_n "checking for stdint uintptr_t... " >&6; }
13083
13084 fi
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
13086 $as_echo "$ac_cv_header_stdint_x" >&6; }
13087
13088
13089 if test "_$ac_cv_header_stdint_x" = "_" ; then
13090
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
13092 $as_echo_n "checking for stdint uint32_t... " >&6; }
13093 if ${ac_cv_header_stdint_o+:} false; then :
13094   $as_echo_n "(cached) " >&6
13095 else
13096
13097  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
13098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13099 $as_echo "(..)" >&6; }
13100   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
13101   do
13102    unset ac_cv_type_uint32_t
13103    unset ac_cv_type_uint64_t
13104    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
13105 "
13106 if test "x$ac_cv_type_uint32_t" = xyes; then :
13107   ac_cv_header_stdint_o=$i
13108 else
13109   continue
13110 fi
13111
13112    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
13113 "
13114 if test "x$ac_cv_type_uint64_t" = xyes; then :
13115   and64="/uint64_t"
13116 else
13117   and64=""
13118 fi
13119
13120    ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
13121  break
13122    break;
13123   done
13124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
13125 $as_echo_n "checking for stdint uint32_t... " >&6; }
13126
13127 fi
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
13129 $as_echo "$ac_cv_header_stdint_o" >&6; }
13130
13131 fi
13132
13133 if test "_$ac_cv_header_stdint_x" = "_" ; then
13134 if test "_$ac_cv_header_stdint_o" = "_" ; then
13135
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
13137 $as_echo_n "checking for stdint u_int32_t... " >&6; }
13138 if ${ac_cv_header_stdint_u+:} false; then :
13139   $as_echo_n "(cached) " >&6
13140 else
13141
13142  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
13143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13144 $as_echo "(..)" >&6; }
13145   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
13146    unset ac_cv_type_u_int32_t
13147    unset ac_cv_type_u_int64_t
13148    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
13149 "
13150 if test "x$ac_cv_type_u_int32_t" = xyes; then :
13151   ac_cv_header_stdint_u=$i
13152 else
13153   continue
13154 fi
13155
13156    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
13157 "
13158 if test "x$ac_cv_type_u_int64_t" = xyes; then :
13159   and64="/u_int64_t"
13160 else
13161   and64=""
13162 fi
13163
13164    ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
13165  break
13166    break;
13167   done
13168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
13169 $as_echo_n "checking for stdint u_int32_t... " >&6; }
13170
13171 fi
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
13173 $as_echo "$ac_cv_header_stdint_u" >&6; }
13174
13175 fi fi
13176
13177 if test "_$ac_cv_header_stdint_x" = "_" ; then
13178    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
13179 $as_echo_n "checking for stdint datatype model... " >&6; }
13180    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13181 $as_echo "(..)" >&6; }
13182
13183    # The cast to long int works around a bug in the HP C Compiler
13184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13186 # This bug is HP SR number 8606223364.
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13188 $as_echo_n "checking size of char... " >&6; }
13189 if ${ac_cv_sizeof_char+:} false; then :
13190   $as_echo_n "(cached) " >&6
13191 else
13192   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
13193
13194 else
13195   if test "$ac_cv_type_char" = yes; then
13196      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13198 as_fn_error 77 "cannot compute sizeof (char)
13199 See \`config.log' for more details" "$LINENO" 5; }
13200    else
13201      ac_cv_sizeof_char=0
13202    fi
13203 fi
13204
13205 fi
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13207 $as_echo "$ac_cv_sizeof_char" >&6; }
13208
13209
13210
13211 cat >>confdefs.h <<_ACEOF
13212 #define SIZEOF_CHAR $ac_cv_sizeof_char
13213 _ACEOF
13214
13215
13216    # The cast to long int works around a bug in the HP C Compiler
13217 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13218 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13219 # This bug is HP SR number 8606223364.
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13221 $as_echo_n "checking size of short... " >&6; }
13222 if ${ac_cv_sizeof_short+:} false; then :
13223   $as_echo_n "(cached) " >&6
13224 else
13225   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13226
13227 else
13228   if test "$ac_cv_type_short" = yes; then
13229      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13231 as_fn_error 77 "cannot compute sizeof (short)
13232 See \`config.log' for more details" "$LINENO" 5; }
13233    else
13234      ac_cv_sizeof_short=0
13235    fi
13236 fi
13237
13238 fi
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13240 $as_echo "$ac_cv_sizeof_short" >&6; }
13241
13242
13243
13244 cat >>confdefs.h <<_ACEOF
13245 #define SIZEOF_SHORT $ac_cv_sizeof_short
13246 _ACEOF
13247
13248
13249    # The cast to long int works around a bug in the HP C Compiler
13250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13252 # This bug is HP SR number 8606223364.
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13254 $as_echo_n "checking size of int... " >&6; }
13255 if ${ac_cv_sizeof_int+:} false; then :
13256   $as_echo_n "(cached) " >&6
13257 else
13258   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13259
13260 else
13261   if test "$ac_cv_type_int" = yes; then
13262      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13264 as_fn_error 77 "cannot compute sizeof (int)
13265 See \`config.log' for more details" "$LINENO" 5; }
13266    else
13267      ac_cv_sizeof_int=0
13268    fi
13269 fi
13270
13271 fi
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13273 $as_echo "$ac_cv_sizeof_int" >&6; }
13274
13275
13276
13277 cat >>confdefs.h <<_ACEOF
13278 #define SIZEOF_INT $ac_cv_sizeof_int
13279 _ACEOF
13280
13281
13282    # The cast to long int works around a bug in the HP C Compiler
13283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13285 # This bug is HP SR number 8606223364.
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13287 $as_echo_n "checking size of long... " >&6; }
13288 if ${ac_cv_sizeof_long+:} false; then :
13289   $as_echo_n "(cached) " >&6
13290 else
13291   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13292
13293 else
13294   if test "$ac_cv_type_long" = yes; then
13295      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13297 as_fn_error 77 "cannot compute sizeof (long)
13298 See \`config.log' for more details" "$LINENO" 5; }
13299    else
13300      ac_cv_sizeof_long=0
13301    fi
13302 fi
13303
13304 fi
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13306 $as_echo "$ac_cv_sizeof_long" >&6; }
13307
13308
13309
13310 cat >>confdefs.h <<_ACEOF
13311 #define SIZEOF_LONG $ac_cv_sizeof_long
13312 _ACEOF
13313
13314
13315    # The cast to long int works around a bug in the HP C Compiler
13316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13318 # This bug is HP SR number 8606223364.
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
13320 $as_echo_n "checking size of void*... " >&6; }
13321 if ${ac_cv_sizeof_voidp+:} false; then :
13322   $as_echo_n "(cached) " >&6
13323 else
13324   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
13325
13326 else
13327   if test "$ac_cv_type_voidp" = yes; then
13328      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13330 as_fn_error 77 "cannot compute sizeof (void*)
13331 See \`config.log' for more details" "$LINENO" 5; }
13332    else
13333      ac_cv_sizeof_voidp=0
13334    fi
13335 fi
13336
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
13339 $as_echo "$ac_cv_sizeof_voidp" >&6; }
13340
13341
13342
13343 cat >>confdefs.h <<_ACEOF
13344 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
13345 _ACEOF
13346
13347
13348    ac_cv_char_data_model=""
13349    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
13350    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
13351    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
13352    ac_cv_long_data_model=""
13353    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
13354    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
13355    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
13356    { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
13357 $as_echo_n "checking data model... " >&6; }
13358    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
13359     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
13360     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
13361     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
13362     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
13363     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
13364     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
13365     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
13366     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
13367     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
13368     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
13369     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
13370     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
13371     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
13372     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
13373     222/*|333/*|444/*|666/*|888/*) :
13374                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
13375      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
13376    esac
13377    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
13378 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
13379
13380 fi
13381
13382 if test "_$ac_cv_header_stdint_x" != "_" ; then
13383    ac_cv_header_stdint="$ac_cv_header_stdint_x"
13384 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
13385    ac_cv_header_stdint="$ac_cv_header_stdint_o"
13386 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
13387    ac_cv_header_stdint="$ac_cv_header_stdint_u"
13388 else
13389    ac_cv_header_stdint="stddef.h"
13390 fi
13391
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
13393 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
13395 $as_echo "($ac_cv_header_stdint)" >&6; }
13396 unset ac_cv_type_int_least32_t
13397 unset ac_cv_type_int_fast32_t
13398 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
13399 "
13400 if test "x$ac_cv_type_int_least32_t" = xyes; then :
13401
13402 fi
13403
13404 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
13405 "
13406 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
13407
13408 fi
13409
13410 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
13411 "
13412 if test "x$ac_cv_type_intmax_t" = xyes; then :
13413
13414 fi
13415
13416
13417 fi # shortcircut to system "stdint.h"
13418 # ------------------ PREPARE VARIABLES ------------------------------
13419 if test "$GCC" = "yes" ; then
13420 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
13421 else
13422 ac_cv_stdint_message="using $CC"
13423 fi
13424
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
13426 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
13427
13428 # ----------------- DONE inttypes.h checks START header -------------
13429 ac_config_commands="$ac_config_commands $ac_stdint_h"
13430
13431
13432
13433 # Checks for typedefs, structures, and compiler characteristics.
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13435 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13436 if ${ac_cv_c_const+:} false; then :
13437   $as_echo_n "(cached) " >&6
13438 else
13439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h.  */
13441
13442 int
13443 main ()
13444 {
13445
13446 #ifndef __cplusplus
13447   /* Ultrix mips cc rejects this sort of thing.  */
13448   typedef int charset[2];
13449   const charset cs = { 0, 0 };
13450   /* SunOS 4.1.1 cc rejects this.  */
13451   char const *const *pcpcc;
13452   char **ppc;
13453   /* NEC SVR4.0.2 mips cc rejects this.  */
13454   struct point {int x, y;};
13455   static struct point const zero = {0,0};
13456   /* AIX XL C 1.02.0.0 rejects this.
13457      It does not let you subtract one const X* pointer from another in
13458      an arm of an if-expression whose if-part is not a constant
13459      expression */
13460   const char *g = "string";
13461   pcpcc = &g + (g ? g-g : 0);
13462   /* HPUX 7.0 cc rejects these. */
13463   ++pcpcc;
13464   ppc = (char**) pcpcc;
13465   pcpcc = (char const *const *) ppc;
13466   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13467     char tx;
13468     char *t = &tx;
13469     char const *s = 0 ? (char *) 0 : (char const *) 0;
13470
13471     *t++ = 0;
13472     if (s) return 0;
13473   }
13474   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13475     int x[] = {25, 17};
13476     const int *foo = &x[0];
13477     ++foo;
13478   }
13479   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13480     typedef const int *iptr;
13481     iptr p = 0;
13482     ++p;
13483   }
13484   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13485        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13486     struct s { int j; const int *ap[3]; } bx;
13487     struct s *b = &bx; b->j = 5;
13488   }
13489   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13490     const int foo = 10;
13491     if (!foo) return 0;
13492   }
13493   return !cs[0] && !zero.x;
13494 #endif
13495
13496   ;
13497   return 0;
13498 }
13499 _ACEOF
13500 if ac_fn_c_try_compile "$LINENO"; then :
13501   ac_cv_c_const=yes
13502 else
13503   ac_cv_c_const=no
13504 fi
13505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13506 fi
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13508 $as_echo "$ac_cv_c_const" >&6; }
13509 if test $ac_cv_c_const = no; then
13510
13511 $as_echo "#define const /**/" >>confdefs.h
13512
13513 fi
13514
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13516 $as_echo_n "checking for inline... " >&6; }
13517 if ${ac_cv_c_inline+:} false; then :
13518   $as_echo_n "(cached) " >&6
13519 else
13520   ac_cv_c_inline=no
13521 for ac_kw in inline __inline__ __inline; do
13522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h.  */
13524 #ifndef __cplusplus
13525 typedef int foo_t;
13526 static $ac_kw foo_t static_foo () {return 0; }
13527 $ac_kw foo_t foo () {return 0; }
13528 #endif
13529
13530 _ACEOF
13531 if ac_fn_c_try_compile "$LINENO"; then :
13532   ac_cv_c_inline=$ac_kw
13533 fi
13534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13535   test "$ac_cv_c_inline" != no && break
13536 done
13537
13538 fi
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13540 $as_echo "$ac_cv_c_inline" >&6; }
13541
13542 case $ac_cv_c_inline in
13543   inline | yes) ;;
13544   *)
13545     case $ac_cv_c_inline in
13546       no) ac_val=;;
13547       *) ac_val=$ac_cv_c_inline;;
13548     esac
13549     cat >>confdefs.h <<_ACEOF
13550 #ifndef __cplusplus
13551 #define inline $ac_val
13552 #endif
13553 _ACEOF
13554     ;;
13555 esac
13556
13557
13558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
13559 $as_echo_n "checking for flexible array members... " >&6; }
13560 if ${ac_cv_c_flexmember+:} false; then :
13561   $as_echo_n "(cached) " >&6
13562 else
13563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h.  */
13565 #include <stdlib.h>
13566             #include <stdio.h>
13567             #include <stddef.h>
13568             struct s { int n; double d[]; };
13569 int
13570 main ()
13571 {
13572 int m = getchar ();
13573             struct s *p = malloc (offsetof (struct s, d)
13574                                   + m * sizeof (double));
13575             p->d[0] = 0.0;
13576             return p->d != (double *) NULL;
13577   ;
13578   return 0;
13579 }
13580 _ACEOF
13581 if ac_fn_c_try_compile "$LINENO"; then :
13582   ac_cv_c_flexmember=yes
13583 else
13584   ac_cv_c_flexmember=no
13585 fi
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587 fi
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
13589 $as_echo "$ac_cv_c_flexmember" >&6; }
13590   if test $ac_cv_c_flexmember = yes; then
13591
13592 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
13593
13594   else
13595     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
13596
13597   fi
13598
13599 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13600 if test "x$ac_cv_type_pid_t" = xyes; then :
13601
13602 else
13603
13604 cat >>confdefs.h <<_ACEOF
13605 #define pid_t int
13606 _ACEOF
13607
13608 fi
13609
13610
13611 # Checks for library functions.
13612 for ac_func in vprintf
13613 do :
13614   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
13615 if test "x$ac_cv_func_vprintf" = xyes; then :
13616   cat >>confdefs.h <<_ACEOF
13617 #define HAVE_VPRINTF 1
13618 _ACEOF
13619
13620 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
13621 if test "x$ac_cv_func__doprnt" = xyes; then :
13622
13623 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
13624
13625 fi
13626
13627 fi
13628 done
13629
13630
13631
13632
13633
13634   for ac_header in $ac_header_list
13635 do :
13636   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13637 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13638 "
13639 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13640   cat >>confdefs.h <<_ACEOF
13641 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13642 _ACEOF
13643
13644 fi
13645
13646 done
13647
13648
13649
13650
13651
13652
13653
13654
13655 for ac_func in getpagesize
13656 do :
13657   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13658 if test "x$ac_cv_func_getpagesize" = xyes; then :
13659   cat >>confdefs.h <<_ACEOF
13660 #define HAVE_GETPAGESIZE 1
13661 _ACEOF
13662
13663 fi
13664 done
13665
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13667 $as_echo_n "checking for working mmap... " >&6; }
13668 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13669   $as_echo_n "(cached) " >&6
13670 else
13671   if test "$cross_compiling" = yes; then :
13672   ac_cv_func_mmap_fixed_mapped=no
13673 else
13674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h.  */
13676 $ac_includes_default
13677 /* malloc might have been renamed as rpl_malloc. */
13678 #undef malloc
13679
13680 /* Thanks to Mike Haertel and Jim Avera for this test.
13681    Here is a matrix of mmap possibilities:
13682         mmap private not fixed
13683         mmap private fixed at somewhere currently unmapped
13684         mmap private fixed at somewhere already mapped
13685         mmap shared not fixed
13686         mmap shared fixed at somewhere currently unmapped
13687         mmap shared fixed at somewhere already mapped
13688    For private mappings, we should verify that changes cannot be read()
13689    back from the file, nor mmap's back from the file at a different
13690    address.  (There have been systems where private was not correctly
13691    implemented like the infamous i386 svr4.0, and systems where the
13692    VM page cache was not coherent with the file system buffer cache
13693    like early versions of FreeBSD and possibly contemporary NetBSD.)
13694    For shared mappings, we should conversely verify that changes get
13695    propagated back to all the places they're supposed to be.
13696
13697    Grep wants private fixed already mapped.
13698    The main things grep needs to know about mmap are:
13699    * does it exist and is it safe to write into the mmap'd area
13700    * how to use it (BSD variants)  */
13701
13702 #include <fcntl.h>
13703 #include <sys/mman.h>
13704
13705 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13706 char *malloc ();
13707 #endif
13708
13709 /* This mess was copied from the GNU getpagesize.h.  */
13710 #ifndef HAVE_GETPAGESIZE
13711 # ifdef _SC_PAGESIZE
13712 #  define getpagesize() sysconf(_SC_PAGESIZE)
13713 # else /* no _SC_PAGESIZE */
13714 #  ifdef HAVE_SYS_PARAM_H
13715 #   include <sys/param.h>
13716 #   ifdef EXEC_PAGESIZE
13717 #    define getpagesize() EXEC_PAGESIZE
13718 #   else /* no EXEC_PAGESIZE */
13719 #    ifdef NBPG
13720 #     define getpagesize() NBPG * CLSIZE
13721 #     ifndef CLSIZE
13722 #      define CLSIZE 1
13723 #     endif /* no CLSIZE */
13724 #    else /* no NBPG */
13725 #     ifdef NBPC
13726 #      define getpagesize() NBPC
13727 #     else /* no NBPC */
13728 #      ifdef PAGESIZE
13729 #       define getpagesize() PAGESIZE
13730 #      endif /* PAGESIZE */
13731 #     endif /* no NBPC */
13732 #    endif /* no NBPG */
13733 #   endif /* no EXEC_PAGESIZE */
13734 #  else /* no HAVE_SYS_PARAM_H */
13735 #   define getpagesize() 8192   /* punt totally */
13736 #  endif /* no HAVE_SYS_PARAM_H */
13737 # endif /* no _SC_PAGESIZE */
13738
13739 #endif /* no HAVE_GETPAGESIZE */
13740
13741 int
13742 main ()
13743 {
13744   char *data, *data2, *data3;
13745   const char *cdata2;
13746   int i, pagesize;
13747   int fd, fd2;
13748
13749   pagesize = getpagesize ();
13750
13751   /* First, make a file with some known garbage in it. */
13752   data = (char *) malloc (pagesize);
13753   if (!data)
13754     return 1;
13755   for (i = 0; i < pagesize; ++i)
13756     *(data + i) = rand ();
13757   umask (0);
13758   fd = creat ("conftest.mmap", 0600);
13759   if (fd < 0)
13760     return 2;
13761   if (write (fd, data, pagesize) != pagesize)
13762     return 3;
13763   close (fd);
13764
13765   /* Next, check that the tail of a page is zero-filled.  File must have
13766      non-zero length, otherwise we risk SIGBUS for entire page.  */
13767   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13768   if (fd2 < 0)
13769     return 4;
13770   cdata2 = "";
13771   if (write (fd2, cdata2, 1) != 1)
13772     return 5;
13773   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13774   if (data2 == MAP_FAILED)
13775     return 6;
13776   for (i = 0; i < pagesize; ++i)
13777     if (*(data2 + i))
13778       return 7;
13779   close (fd2);
13780   if (munmap (data2, pagesize))
13781     return 8;
13782
13783   /* Next, try to mmap the file at a fixed address which already has
13784      something else allocated at it.  If we can, also make sure that
13785      we see the same garbage.  */
13786   fd = open ("conftest.mmap", O_RDWR);
13787   if (fd < 0)
13788     return 9;
13789   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13790                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
13791     return 10;
13792   for (i = 0; i < pagesize; ++i)
13793     if (*(data + i) != *(data2 + i))
13794       return 11;
13795
13796   /* Finally, make sure that changes to the mapped area do not
13797      percolate back to the file as seen by read().  (This is a bug on
13798      some variants of i386 svr4.0.)  */
13799   for (i = 0; i < pagesize; ++i)
13800     *(data2 + i) = *(data2 + i) + 1;
13801   data3 = (char *) malloc (pagesize);
13802   if (!data3)
13803     return 12;
13804   if (read (fd, data3, pagesize) != pagesize)
13805     return 13;
13806   for (i = 0; i < pagesize; ++i)
13807     if (*(data + i) != *(data3 + i))
13808       return 14;
13809   close (fd);
13810   return 0;
13811 }
13812 _ACEOF
13813 if ac_fn_c_try_run "$LINENO"; then :
13814   ac_cv_func_mmap_fixed_mapped=yes
13815 else
13816   ac_cv_func_mmap_fixed_mapped=no
13817 fi
13818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13819   conftest.$ac_objext conftest.beam conftest.$ac_ext
13820 fi
13821
13822 fi
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13824 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13825 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13826
13827 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13828
13829 fi
13830 rm -f conftest.mmap conftest.txt
13831
13832 for ac_func in geteuid getuid link memmove memset mkstemp mkostemp _mktemp_s strchr strrchr strtol getopt getopt_long sysconf ftruncate chsize rand random lrand48 random_r rand_r regcomp regerror regexec regfree fstatvfs fstatfs lstat
13833 do :
13834   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13835 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13836 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13837   cat >>confdefs.h <<_ACEOF
13838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13839 _ACEOF
13840
13841 fi
13842 done
13843
13844
13845 fc_saved_CFLAGS="$CFLAGS"
13846 CFLAGS="$CFLAGS $WARN_CFLAGS -Werror"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5
13848 $as_echo_n "checking for posix_fadvise... " >&6; }
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h.  */
13851
13852         #include <fcntl.h>
13853         int main(void) {
13854             return posix_fadvise(0, 0, 0, 0);
13855         }
13856
13857 _ACEOF
13858 if ac_fn_c_try_link "$LINENO"; then :
13859
13860                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13861 $as_echo "yes" >&6; }
13862
13863 $as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13864
13865
13866 else
13867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868 $as_echo "no" >&6; }
13869 fi
13870 rm -f core conftest.err conftest.$ac_objext \
13871     conftest$ac_exeext conftest.$ac_ext
13872 CFLAGS="$fc_saved_CFLAGS"
13873
13874 #
13875 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
13876         ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
13877 "
13878 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
13879
13880 cat >>confdefs.h <<_ACEOF
13881 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
13882 _ACEOF
13883
13884
13885 fi
13886 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
13887 "
13888 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
13889
13890 cat >>confdefs.h <<_ACEOF
13891 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
13892 _ACEOF
13893
13894
13895 fi
13896
13897 fi
13898 if test "x$ac_cv_func_fstatfs" = "xyes"; then
13899         ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
13900 #ifdef HAVE_SYS_VFS_H
13901 #include <sys/vfs.h>
13902 #endif
13903 #ifdef HAVE_SYS_STATFS_H
13904 #include <sys/statfs.h>
13905 #endif
13906 #ifdef HAVE_SYS_PARAM_H
13907 #include <sys/param.h>
13908 #endif
13909 #ifdef HAVE_SYS_MOUNT_H
13910 #include <sys/mount.h>
13911 #endif
13912 "
13913 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
13914
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_STRUCT_STATFS_F_FLAGS 1
13917 _ACEOF
13918
13919
13920 fi
13921 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
13922 #ifdef HAVE_SYS_VFS_H
13923 #include <sys/vfs.h>
13924 #endif
13925 #ifdef HAVE_SYS_STATFS_H
13926 #include <sys/statfs.h>
13927 #endif
13928 #ifdef HAVE_SYS_PARAM_H
13929 #include <sys/param.h>
13930 #endif
13931 #ifdef HAVE_SYS_MOUNT_H
13932 #include <sys/mount.h>
13933 #endif
13934 "
13935 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
13936
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
13939 _ACEOF
13940
13941
13942 fi
13943
13944 fi
13945 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
13946 "
13947 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
13948
13949 cat >>confdefs.h <<_ACEOF
13950 #define HAVE_STRUCT_DIRENT_D_TYPE 1
13951 _ACEOF
13952
13953
13954 fi
13955
13956 #
13957 # regex
13958 #
13959 if test "x$ac_cv_func_regcomp" = "xyes" -a "x$ac_cv_func_regerror" = "xyes" -a "x$ac_cv_func_regexec" = "xyes" -a "x$ac_cv_func_regfree"; then
13960
13961 $as_echo "#define USE_REGEX /**/" >>confdefs.h
13962
13963 fi
13964
13965 #
13966 # Checks for iconv
13967 #
13968 # Check whether --enable-iconv was given.
13969 if test "${enable_iconv+set}" = set; then :
13970   enableval=$enable_iconv;
13971 else
13972   enable_iconv=no
13973 fi
13974
13975
13976 # Check whether --with-libiconv was given.
13977 if test "${with_libiconv+set}" = set; then :
13978   withval=$with_libiconv; if test "x$withval" = "xyes"; then
13979                 libiconv_prefix=$prefix
13980          else
13981                 libiconv_prefix=$withval
13982          fi
13983 else
13984   libiconv_prefix=auto
13985 fi
13986
13987
13988 # Check whether --with-libiconv-includes was given.
13989 if test "${with_libiconv_includes+set}" = set; then :
13990   withval=$with_libiconv_includes; libiconv_includes=$withval
13991 else
13992   libiconv_includes=auto
13993 fi
13994
13995
13996 # Check whether --with-libiconv-lib was given.
13997 if test "${with_libiconv_lib+set}" = set; then :
13998   withval=$with_libiconv_lib; libiconv_lib=$withval
13999 else
14000   libiconv_lib=auto
14001 fi
14002
14003
14004 # if no libiconv,libiconv-includes,libiconv-lib are specified,
14005 # libc's iconv has a priority.
14006 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
14007         libiconv_cflags="-I${libiconv_includes}"
14008 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
14009         libiconv_cflags="-I${libiconv_prefix}/include"
14010 else
14011         libiconv_cflags=""
14012 fi
14013 libiconv_libs=""
14014 if test "x$libiconv_cflags" != "x"; then
14015         if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
14016                 libiconv_libs="-L${libiconv_lib} -liconv"
14017         elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
14018                 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
14019         else
14020                 libiconv_libs="-liconv"
14021         fi
14022 fi
14023
14024 use_iconv=0
14025 if test "x$enable_iconv" != "xno"; then
14026         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
14027 $as_echo_n "checking for a usable iconv... " >&6; }
14028         if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
14029                 iconvsaved_CFLAGS="$CFLAGS"
14030                 iconvsaved_LIBS="$LIBS"
14031                 CFLAGS="$CFLAGS $libiconv_cflags"
14032                 LIBS="$LIBS $libiconv_libs"
14033
14034                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h.  */
14036 #include <iconv.h>
14037 int
14038 main ()
14039 {
14040 iconv_open ("from", "to");
14041   ;
14042   return 0;
14043 }
14044 _ACEOF
14045 if ac_fn_c_try_link "$LINENO"; then :
14046   iconv_type="libiconv"
14047                          use_iconv=1
14048 else
14049   use_iconv=0
14050 fi
14051 rm -f core conftest.err conftest.$ac_objext \
14052     conftest$ac_exeext conftest.$ac_ext
14053
14054                 CFLAGS="$iconvsaved_CFLAGS"
14055                 LIBS="$iconvsaved_LIBS"
14056                 ICONV_CFLAGS="$libiconv_cflags"
14057                 ICONV_LIBS="$libiconv_libs"
14058         fi
14059         if test "x$use_iconv" = "x0"; then
14060                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h.  */
14062 #include <iconv.h>
14063 int
14064 main ()
14065 {
14066 iconv_open ("from", "to");
14067   ;
14068   return 0;
14069 }
14070 _ACEOF
14071 if ac_fn_c_try_link "$LINENO"; then :
14072   iconv_type="libc"
14073                          use_iconv=1
14074 else
14075   iconv_type="not found"
14076                          use_iconv=0
14077 fi
14078 rm -f core conftest.err conftest.$ac_objext \
14079     conftest$ac_exeext conftest.$ac_ext
14080         fi
14081
14082         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
14083 $as_echo "$iconv_type" >&6; }
14084
14085
14086 fi
14087
14088 cat >>confdefs.h <<_ACEOF
14089 #define USE_ICONV $use_iconv
14090 _ACEOF
14091
14092 #
14093 # Checks for FreeType
14094 #
14095
14096 pkg_failed=no
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
14098 $as_echo_n "checking for FREETYPE... " >&6; }
14099
14100 if test -n "$FREETYPE_CFLAGS"; then
14101     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
14102  elif test -n "$PKG_CONFIG"; then
14103     if test -n "$PKG_CONFIG" && \
14104     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
14105   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
14106   ac_status=$?
14107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14108   test $ac_status = 0; }; then
14109   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
14110                       test "x$?" != "x0" && pkg_failed=yes
14111 else
14112   pkg_failed=yes
14113 fi
14114  else
14115     pkg_failed=untried
14116 fi
14117 if test -n "$FREETYPE_LIBS"; then
14118     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
14119  elif test -n "$PKG_CONFIG"; then
14120     if test -n "$PKG_CONFIG" && \
14121     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
14122   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
14123   ac_status=$?
14124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14125   test $ac_status = 0; }; then
14126   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
14127                       test "x$?" != "x0" && pkg_failed=yes
14128 else
14129   pkg_failed=yes
14130 fi
14131  else
14132     pkg_failed=untried
14133 fi
14134
14135
14136
14137 if test $pkg_failed = yes; then
14138         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139 $as_echo "no" >&6; }
14140
14141 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14142         _pkg_short_errors_supported=yes
14143 else
14144         _pkg_short_errors_supported=no
14145 fi
14146         if test $_pkg_short_errors_supported = yes; then
14147                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
14148         else
14149                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
14150         fi
14151         # Put the nasty error message in config.log where it belongs
14152         echo "$FREETYPE_PKG_ERRORS" >&5
14153
14154         as_fn_error $? "Package requirements (freetype2) were not met:
14155
14156 $FREETYPE_PKG_ERRORS
14157
14158 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14159 installed software in a non-standard prefix.
14160
14161 Alternatively, you may set the environment variables FREETYPE_CFLAGS
14162 and FREETYPE_LIBS to avoid the need to call pkg-config.
14163 See the pkg-config man page for more details." "$LINENO" 5
14164 elif test $pkg_failed = untried; then
14165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166 $as_echo "no" >&6; }
14167         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14169 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14170 is in your PATH or set the PKG_CONFIG environment variable to the full
14171 path to pkg-config.
14172
14173 Alternatively, you may set the environment variables FREETYPE_CFLAGS
14174 and FREETYPE_LIBS to avoid the need to call pkg-config.
14175 See the pkg-config man page for more details.
14176
14177 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14178 See \`config.log' for more details" "$LINENO" 5; }
14179 else
14180         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
14181         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
14182         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14183 $as_echo "yes" >&6; }
14184
14185 fi
14186
14187
14188
14189
14190 fontconfig_save_libs="$LIBS"
14191 fontconfig_save_cflags="$CFLAGS"
14192 LIBS="$LIBS $FREETYPE_LIBS"
14193 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
14194 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
14195 do :
14196   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14197 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14198 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14199   cat >>confdefs.h <<_ACEOF
14200 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14201 _ACEOF
14202
14203 fi
14204 done
14205
14206 ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h>
14207 #include FT_FREETYPE_H
14208 "
14209 if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = xyes; then :
14210   HAVE_FT_BITMAP_SIZE_Y_PPEM=1
14211 else
14212   HAVE_FT_BITMAP_SIZE_Y_PPEM=0
14213 fi
14214
14215
14216 cat >>confdefs.h <<_ACEOF
14217 #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
14218 _ACEOF
14219
14220 CFLAGS="$fontconfig_save_cflags"
14221 LIBS="$fontconfig_save_libs"
14222
14223 #
14224 # Check expat configuration
14225 #
14226
14227 # Check whether --with-expat was given.
14228 if test "${with_expat+set}" = set; then :
14229   withval=$with_expat; expat_prefix=$withval
14230 else
14231   expat_prefix=auto
14232 fi
14233
14234
14235 # Check whether --with-expat-includes was given.
14236 if test "${with_expat_includes+set}" = set; then :
14237   withval=$with_expat_includes; expat_includes=$withval
14238 else
14239   expat_includes=auto
14240 fi
14241
14242
14243 # Check whether --with-expat-lib was given.
14244 if test "${with_expat_lib+set}" = set; then :
14245   withval=$with_expat_lib; expat_lib=$withval
14246 else
14247   expat_lib=auto
14248 fi
14249
14250
14251 if test "$enable_libxml2" != "yes"; then
14252         use_pkgconfig_for_expat=yes
14253         if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
14254
14255 pkg_failed=no
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
14257 $as_echo_n "checking for EXPAT... " >&6; }
14258
14259 if test -n "$EXPAT_CFLAGS"; then
14260     pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
14261  elif test -n "$PKG_CONFIG"; then
14262     if test -n "$PKG_CONFIG" && \
14263     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
14264   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
14265   ac_status=$?
14266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14267   test $ac_status = 0; }; then
14268   pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
14269                       test "x$?" != "x0" && pkg_failed=yes
14270 else
14271   pkg_failed=yes
14272 fi
14273  else
14274     pkg_failed=untried
14275 fi
14276 if test -n "$EXPAT_LIBS"; then
14277     pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
14278  elif test -n "$PKG_CONFIG"; then
14279     if test -n "$PKG_CONFIG" && \
14280     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
14281   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
14282   ac_status=$?
14283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14284   test $ac_status = 0; }; then
14285   pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
14286                       test "x$?" != "x0" && pkg_failed=yes
14287 else
14288   pkg_failed=yes
14289 fi
14290  else
14291     pkg_failed=untried
14292 fi
14293
14294
14295
14296 if test $pkg_failed = yes; then
14297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 $as_echo "no" >&6; }
14299
14300 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14301         _pkg_short_errors_supported=yes
14302 else
14303         _pkg_short_errors_supported=no
14304 fi
14305         if test $_pkg_short_errors_supported = yes; then
14306                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
14307         else
14308                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
14309         fi
14310         # Put the nasty error message in config.log where it belongs
14311         echo "$EXPAT_PKG_ERRORS" >&5
14312
14313         use_pkgconfig_for_expat=no
14314 elif test $pkg_failed = untried; then
14315         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14316 $as_echo "no" >&6; }
14317         use_pkgconfig_for_expat=no
14318 else
14319         EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
14320         EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
14321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14322 $as_echo "yes" >&6; }
14323
14324 fi
14325         else
14326                 use_pkgconfig_for_expat=no
14327         fi
14328         if test "x$use_pkgconfig_for_expat" = "xno"; then
14329                 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
14330                         EXPAT_CFLAGS="-I${expat_includes}"
14331                 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
14332                         EXPAT_CFLAGS="-I${expat_prefix}/include"
14333                 else
14334                         EXPAT_CFLAGS=""
14335                 fi
14336                 if test "$expat_lib" != "auto"; then
14337                         EXPAT_LIBS="-L${expat_lib} -lexpat"
14338                 elif test "$expat_prefix" != "auto"; then
14339                         EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
14340                 else
14341                         EXPAT_LIBS="-lexpat"
14342                 fi
14343         fi
14344
14345         expatsaved_CPPFLAGS="$CPPFLAGS"
14346         expatsaved_LIBS="$LIBS"
14347         CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
14348         LIBS="$LIBS $EXPAT_LIBS"
14349
14350         ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
14351 if test "x$ac_cv_header_expat_h" = xyes; then :
14352
14353 fi
14354
14355
14356         if test "$ac_cv_header_expat_h" = "no"; then
14357                 ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
14358 if test "x$ac_cv_header_xmlparse_h" = xyes; then :
14359
14360 fi
14361
14362
14363                 if test "$ac_cv_header_xmlparse_h" = "yes"; then
14364                         HAVE_XMLPARSE_H=1
14365
14366
14367 cat >>confdefs.h <<_ACEOF
14368 #define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
14369 _ACEOF
14370
14371                 else
14372                         as_fn_error $? "
14373 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
14374                 fi
14375         fi
14376         for ac_func in XML_SetDoctypeDeclHandler
14377 do :
14378   ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
14379 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then :
14380   cat >>confdefs.h <<_ACEOF
14381 #define HAVE_XML_SETDOCTYPEDECLHANDLER 1
14382 _ACEOF
14383
14384 fi
14385 done
14386
14387         if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
14388                 as_fn_error $? "
14389 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
14390         fi
14391         CPPFLAGS="$expatsaved_CPPFLAGS"
14392         LIBS="$expatsaved_LIBS"
14393
14394
14395
14396 fi
14397
14398 #
14399 # Check libxml2 configuration
14400 #
14401 # Check whether --enable-libxml2 was given.
14402 if test "${enable_libxml2+set}" = set; then :
14403   enableval=$enable_libxml2;
14404 fi
14405
14406
14407 if test "$enable_libxml2" = "yes"; then
14408
14409 pkg_failed=no
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
14411 $as_echo_n "checking for LIBXML2... " >&6; }
14412
14413 if test -n "$LIBXML2_CFLAGS"; then
14414     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
14415  elif test -n "$PKG_CONFIG"; then
14416     if test -n "$PKG_CONFIG" && \
14417     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
14418   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
14419   ac_status=$?
14420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14421   test $ac_status = 0; }; then
14422   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
14423                       test "x$?" != "x0" && pkg_failed=yes
14424 else
14425   pkg_failed=yes
14426 fi
14427  else
14428     pkg_failed=untried
14429 fi
14430 if test -n "$LIBXML2_LIBS"; then
14431     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
14432  elif test -n "$PKG_CONFIG"; then
14433     if test -n "$PKG_CONFIG" && \
14434     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
14435   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
14436   ac_status=$?
14437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14438   test $ac_status = 0; }; then
14439   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
14440                       test "x$?" != "x0" && pkg_failed=yes
14441 else
14442   pkg_failed=yes
14443 fi
14444  else
14445     pkg_failed=untried
14446 fi
14447
14448
14449
14450 if test $pkg_failed = yes; then
14451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14452 $as_echo "no" >&6; }
14453
14454 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14455         _pkg_short_errors_supported=yes
14456 else
14457         _pkg_short_errors_supported=no
14458 fi
14459         if test $_pkg_short_errors_supported = yes; then
14460                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
14461         else
14462                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
14463         fi
14464         # Put the nasty error message in config.log where it belongs
14465         echo "$LIBXML2_PKG_ERRORS" >&5
14466
14467         as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
14468
14469 $LIBXML2_PKG_ERRORS
14470
14471 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14472 installed software in a non-standard prefix.
14473
14474 Alternatively, you may set the environment variables LIBXML2_CFLAGS
14475 and LIBXML2_LIBS to avoid the need to call pkg-config.
14476 See the pkg-config man page for more details." "$LINENO" 5
14477 elif test $pkg_failed = untried; then
14478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14479 $as_echo "no" >&6; }
14480         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14482 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14483 is in your PATH or set the PKG_CONFIG environment variable to the full
14484 path to pkg-config.
14485
14486 Alternatively, you may set the environment variables LIBXML2_CFLAGS
14487 and LIBXML2_LIBS to avoid the need to call pkg-config.
14488 See the pkg-config man page for more details.
14489
14490 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14491 See \`config.log' for more details" "$LINENO" 5; }
14492 else
14493         LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
14494         LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
14495         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14496 $as_echo "yes" >&6; }
14497
14498 fi
14499
14500 cat >>confdefs.h <<_ACEOF
14501 #define ENABLE_LIBXML2 1
14502 _ACEOF
14503
14504
14505
14506
14507
14508     fc_saved_CFLAGS="$CFLAGS"
14509     CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
14510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
14511 $as_echo_n "checking SAX1 support in libxml2... " >&6; }
14512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h.  */
14514
14515         #include <libxml/xmlversion.h>
14516         #if !defined(LIBXML_SAX1_ENABLED)
14517         #  include "error: No SAX1 support in libxml2"
14518         #endif
14519
14520 _ACEOF
14521 if ac_fn_c_try_compile "$LINENO"; then :
14522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14523 $as_echo "found" >&6; }
14524 else
14525   as_fn_error $? "
14526 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
14527 fi
14528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14529     CFLAGS="$fc_saved_CFLAGS"
14530 fi
14531
14532 #
14533 # Set default font directory
14534 #
14535
14536
14537 # Check whether --with-default-fonts was given.
14538 if test "${with_default_fonts+set}" = set; then :
14539   withval=$with_default_fonts; default_fonts="$withval"
14540 else
14541   default_fonts=yes
14542 fi
14543
14544
14545 case "$default_fonts" in
14546 yes)
14547         if test "$os_win32" = "yes"; then
14548                 FC_DEFAULT_FONTS="WINDOWSFONTDIR"
14549
14550 cat >>confdefs.h <<_ACEOF
14551 #define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
14552 _ACEOF
14553
14554         else
14555                 FC_DEFAULT_FONTS="/usr/share/fonts"
14556
14557 cat >>confdefs.h <<_ACEOF
14558 #define FC_DEFAULT_FONTS "/usr/share/fonts"
14559 _ACEOF
14560
14561         fi
14562         ;;
14563 *)
14564         FC_DEFAULT_FONTS="$default_fonts"
14565
14566 cat >>confdefs.h <<_ACEOF
14567 #define FC_DEFAULT_FONTS "$default_fonts"
14568 _ACEOF
14569
14570         ;;
14571 esac
14572
14573
14574
14575 #
14576 # Add more fonts if available.  By default, add only the directories
14577 # with outline fonts; those with bitmaps can be added as desired in
14578 # local.conf or ~/.fonts.conf
14579 #
14580
14581 # Check whether --with-add-fonts was given.
14582 if test "${with_add_fonts+set}" = set; then :
14583   withval=$with_add_fonts; add_fonts="$withval"
14584 else
14585   add_fonts=yes
14586 fi
14587
14588
14589 case "$add_fonts" in
14590 yes)
14591         FC_ADD_FONTS=""
14592         for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
14593                 case x"$FC_ADD_FONTS" in
14594                 x)
14595                         sub="$dir/fonts"
14596                         if test -d "$sub"; then
14597                                 case x$FC_ADD_FONTS in
14598                                 x)
14599                                         FC_ADD_FONTS="$sub"
14600                                         ;;
14601                                 *)
14602                                         FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
14603                                         ;;
14604                                 esac
14605                         fi
14606                         ;;
14607                 esac
14608         done
14609
14610 cat >>confdefs.h <<_ACEOF
14611 #define FC_ADD_FONTS "$add_fonts"
14612 _ACEOF
14613
14614         ;;
14615 no)
14616         FC_ADD_FONTS=""
14617         ;;
14618 *)
14619         FC_ADD_FONTS="$add_fonts"
14620
14621 cat >>confdefs.h <<_ACEOF
14622 #define FC_ADD_FONTS "$add_fonts"
14623 _ACEOF
14624
14625         ;;
14626 esac
14627
14628
14629
14630 FC_FONTPATH=""
14631
14632 case "$FC_ADD_FONTS" in
14633 "")
14634         ;;
14635 *)
14636         FC_FONTPATH=`echo $FC_ADD_FONTS |
14637                         sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
14638         ;;
14639 esac
14640
14641
14642
14643 #
14644 # Set default cache directory path
14645 #
14646
14647 # Check whether --with-cache-dir was given.
14648 if test "${with_cache_dir+set}" = set; then :
14649   withval=$with_cache_dir; fc_cachedir="$withval"
14650 else
14651   fc_cachedir=yes
14652 fi
14653
14654
14655 case $fc_cachedir in
14656 no|yes)
14657         if test "$os_win32" = "yes"; then
14658                 fc_cachedir="WINDOWSTEMPDIR_FONTCONFIG_CACHE"
14659         else
14660                 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
14661         fi
14662         ;;
14663 *)
14664         ;;
14665 esac
14666
14667 FC_CACHEDIR=${fc_cachedir}
14668
14669
14670 FC_FONTDATE=`LC_ALL=C date`
14671
14672
14673
14674 #
14675 # Set configuration paths
14676 #
14677
14678
14679 # Check whether --with-templatedir was given.
14680 if test "${with_templatedir+set}" = set; then :
14681   withval=$with_templatedir; templatedir="$withval"
14682 else
14683   templatedir=yes
14684 fi
14685
14686
14687 # Check whether --with-baseconfigdir was given.
14688 if test "${with_baseconfigdir+set}" = set; then :
14689   withval=$with_baseconfigdir; baseconfigdir="$withval"
14690 else
14691   baseconfigdir=yes
14692 fi
14693
14694
14695 # Check whether --with-configdir was given.
14696 if test "${with_configdir+set}" = set; then :
14697   withval=$with_configdir; configdir="$withval"
14698 else
14699   configdir=yes
14700 fi
14701
14702
14703 # Check whether --with-xmldir was given.
14704 if test "${with_xmldir+set}" = set; then :
14705   withval=$with_xmldir; xmldir="$withval"
14706 else
14707   xmldir=yes
14708 fi
14709
14710
14711 case "$templatedir" in
14712 no|yes)
14713         templatedir='${datadir}'/fontconfig/conf.avail
14714         ;;
14715 *)
14716         ;;
14717 esac
14718 case "$baseconfigdir" in
14719 no|yes)
14720         baseconfigdir='${sysconfdir}'/fonts
14721         ;;
14722 *)
14723         ;;
14724 esac
14725 case "$configdir" in
14726 no|yes)
14727         configdir='${baseconfigdir}'/conf.d
14728         ;;
14729 *)
14730         ;;
14731 esac
14732 case "$xmldir" in
14733 no|yes)
14734         xmldir='${datadir}'/xml/fontconfig
14735         ;;
14736 *)
14737         ;;
14738 esac
14739
14740 TEMPLATEDIR=${templatedir}
14741 BASECONFIGDIR=${baseconfigdir}
14742 CONFIGDIR=${configdir}
14743 XMLDIR=${xmldir}
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755 #
14756 # Thread-safety primitives
14757 #
14758
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
14760 $as_echo_n "checking for Intel atomic primitives... " >&6; }
14761 if ${fc_cv_have_intel_atomic_primitives+:} false; then :
14762   $as_echo_n "(cached) " >&6
14763 else
14764
14765         fc_cv_have_intel_atomic_primitives=false
14766         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h.  */
14768
14769                 void memory_barrier (void) { __sync_synchronize (); }
14770                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
14771                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
14772                 void mutex_unlock (int *m) { __sync_lock_release (m); }
14773
14774 int
14775 main ()
14776 {
14777
14778   ;
14779   return 0;
14780 }
14781 _ACEOF
14782 if ac_fn_c_try_link "$LINENO"; then :
14783   fc_cv_have_intel_atomic_primitives=true
14784
14785 fi
14786 rm -f core conftest.err conftest.$ac_objext \
14787     conftest$ac_exeext conftest.$ac_ext
14788
14789 fi
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
14791 $as_echo "$fc_cv_have_intel_atomic_primitives" >&6; }
14792 if $fc_cv_have_intel_atomic_primitives; then
14793
14794 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
14795
14796 fi
14797
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
14799 $as_echo_n "checking for Solaris atomic operations... " >&6; }
14800 if ${fc_cv_have_solaris_atomic_ops+:} false; then :
14801   $as_echo_n "(cached) " >&6
14802 else
14803
14804         fc_cv_have_solaris_atomic_ops=false
14805         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806 /* end confdefs.h.  */
14807
14808                 #include <atomic.h>
14809                 /* This requires Solaris Studio 12.2 or newer: */
14810                 #include <mbarrier.h>
14811                 void memory_barrier (void) { __machine_rw_barrier (); }
14812                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
14813                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
14814
14815 int
14816 main ()
14817 {
14818
14819   ;
14820   return 0;
14821 }
14822 _ACEOF
14823 if ac_fn_c_try_link "$LINENO"; then :
14824   fc_cv_have_solaris_atomic_ops=true
14825
14826 fi
14827 rm -f core conftest.err conftest.$ac_objext \
14828     conftest$ac_exeext conftest.$ac_ext
14829
14830 fi
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
14832 $as_echo "$fc_cv_have_solaris_atomic_ops" >&6; }
14833 if $fc_cv_have_solaris_atomic_ops; then
14834
14835 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
14836
14837 fi
14838
14839 if test "$os_win32" = no && ! $have_pthread; then
14840         for ac_header in sched.h
14841 do :
14842   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
14843 if test "x$ac_cv_header_sched_h" = xyes; then :
14844   cat >>confdefs.h <<_ACEOF
14845 #define HAVE_SCHED_H 1
14846 _ACEOF
14847
14848 fi
14849
14850 done
14851
14852         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14853 $as_echo_n "checking for library containing sched_yield... " >&6; }
14854 if ${ac_cv_search_sched_yield+:} false; then :
14855   $as_echo_n "(cached) " >&6
14856 else
14857   ac_func_search_save_LIBS=$LIBS
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h.  */
14860
14861 /* Override any GCC internal prototype to avoid an error.
14862    Use char because int might match the return type of a GCC
14863    builtin and then its argument prototype would still apply.  */
14864 #ifdef __cplusplus
14865 extern "C"
14866 #endif
14867 char sched_yield ();
14868 int
14869 main ()
14870 {
14871 return sched_yield ();
14872   ;
14873   return 0;
14874 }
14875 _ACEOF
14876 for ac_lib in '' rt; do
14877   if test -z "$ac_lib"; then
14878     ac_res="none required"
14879   else
14880     ac_res=-l$ac_lib
14881     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14882   fi
14883   if ac_fn_c_try_link "$LINENO"; then :
14884   ac_cv_search_sched_yield=$ac_res
14885 fi
14886 rm -f core conftest.err conftest.$ac_objext \
14887     conftest$ac_exeext
14888   if ${ac_cv_search_sched_yield+:} false; then :
14889   break
14890 fi
14891 done
14892 if ${ac_cv_search_sched_yield+:} false; then :
14893
14894 else
14895   ac_cv_search_sched_yield=no
14896 fi
14897 rm conftest.$ac_ext
14898 LIBS=$ac_func_search_save_LIBS
14899 fi
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14901 $as_echo "$ac_cv_search_sched_yield" >&6; }
14902 ac_res=$ac_cv_search_sched_yield
14903 if test "$ac_res" != no; then :
14904   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14905
14906 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
14907
14908 fi
14909
14910 fi
14911
14912 have_pthread=false
14913 if test "$os_win32" = no; then
14914
14915
14916 ac_ext=c
14917 ac_cpp='$CPP $CPPFLAGS'
14918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14921
14922 ax_pthread_ok=no
14923
14924 # We used to check for pthread.h first, but this fails if pthread.h
14925 # requires special compiler flags (e.g. on True64 or Sequent).
14926 # It gets checked for in the link test anyway.
14927
14928 # First of all, check if the user has set any of the PTHREAD_LIBS,
14929 # etcetera environment variables, and if threads linking works using
14930 # them:
14931 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14932         save_CFLAGS="$CFLAGS"
14933         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14934         save_LIBS="$LIBS"
14935         LIBS="$PTHREAD_LIBS $LIBS"
14936         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14937 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14938         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h.  */
14940
14941 /* Override any GCC internal prototype to avoid an error.
14942    Use char because int might match the return type of a GCC
14943    builtin and then its argument prototype would still apply.  */
14944 #ifdef __cplusplus
14945 extern "C"
14946 #endif
14947 char pthread_join ();
14948 int
14949 main ()
14950 {
14951 return pthread_join ();
14952   ;
14953   return 0;
14954 }
14955 _ACEOF
14956 if ac_fn_c_try_link "$LINENO"; then :
14957   ax_pthread_ok=yes
14958 fi
14959 rm -f core conftest.err conftest.$ac_objext \
14960     conftest$ac_exeext conftest.$ac_ext
14961         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14962 $as_echo "$ax_pthread_ok" >&6; }
14963         if test x"$ax_pthread_ok" = xno; then
14964                 PTHREAD_LIBS=""
14965                 PTHREAD_CFLAGS=""
14966         fi
14967         LIBS="$save_LIBS"
14968         CFLAGS="$save_CFLAGS"
14969 fi
14970
14971 # We must check for the threads library under a number of different
14972 # names; the ordering is very important because some systems
14973 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14974 # libraries is broken (non-POSIX).
14975
14976 # Create a list of thread flags to try.  Items starting with a "-" are
14977 # C compiler flags, and other items are library names, except for "none"
14978 # which indicates that we try without any flags at all, and "pthread-config"
14979 # which is a program returning the flags for the Pth emulation library.
14980
14981 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14982
14983 # The ordering *is* (sometimes) important.  Some notes on the
14984 # individual items follow:
14985
14986 # pthreads: AIX (must check this before -lpthread)
14987 # none: in case threads are in libc; should be tried before -Kthread and
14988 #       other compiler flags to prevent continual compiler warnings
14989 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14990 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14991 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14992 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14993 # -pthreads: Solaris/gcc
14994 # -mthreads: Mingw32/gcc, Lynx/gcc
14995 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14996 #      doesn't hurt to check since this sometimes defines pthreads too;
14997 #      also defines -D_REENTRANT)
14998 #      ... -mt is also the pthreads flag for HP/aCC
14999 # pthread: Linux, etcetera
15000 # --thread-safe: KAI C++
15001 # pthread-config: use pthread-config program (for GNU Pth library)
15002
15003 case ${host_os} in
15004         solaris*)
15005
15006         # On Solaris (at least, for some versions), libc contains stubbed
15007         # (non-functional) versions of the pthreads routines, so link-based
15008         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15009         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15010         # a function called by this macro, so we could check for that, but
15011         # who knows whether they'll stub that too in a future libc.)  So,
15012         # we'll just look for -pthreads and -lpthread first:
15013
15014         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
15015         ;;
15016
15017         darwin*)
15018         ax_pthread_flags="-pthread $ax_pthread_flags"
15019         ;;
15020 esac
15021
15022 if test x"$ax_pthread_ok" = xno; then
15023 for flag in $ax_pthread_flags; do
15024
15025         case $flag in
15026                 none)
15027                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15028 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15029                 ;;
15030
15031                 -*)
15032                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15033 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15034                 PTHREAD_CFLAGS="$flag"
15035                 ;;
15036
15037                 pthread-config)
15038                 # Extract the first word of "pthread-config", so it can be a program name with args.
15039 set dummy pthread-config; ac_word=$2
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15041 $as_echo_n "checking for $ac_word... " >&6; }
15042 if ${ac_cv_prog_ax_pthread_config+:} false; then :
15043   $as_echo_n "(cached) " >&6
15044 else
15045   if test -n "$ax_pthread_config"; then
15046   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15047 else
15048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15049 for as_dir in $PATH
15050 do
15051   IFS=$as_save_IFS
15052   test -z "$as_dir" && as_dir=.
15053     for ac_exec_ext in '' $ac_executable_extensions; do
15054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15055     ac_cv_prog_ax_pthread_config="yes"
15056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15057     break 2
15058   fi
15059 done
15060   done
15061 IFS=$as_save_IFS
15062
15063   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15064 fi
15065 fi
15066 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15067 if test -n "$ax_pthread_config"; then
15068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15069 $as_echo "$ax_pthread_config" >&6; }
15070 else
15071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15072 $as_echo "no" >&6; }
15073 fi
15074
15075
15076                 if test x"$ax_pthread_config" = xno; then continue; fi
15077                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15078                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15079                 ;;
15080
15081                 *)
15082                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15083 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15084                 PTHREAD_LIBS="-l$flag"
15085                 ;;
15086         esac
15087
15088         save_LIBS="$LIBS"
15089         save_CFLAGS="$CFLAGS"
15090         LIBS="$PTHREAD_LIBS $LIBS"
15091         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15092
15093         # Check for various functions.  We must include pthread.h,
15094         # since some functions may be macros.  (On the Sequent, we
15095         # need a special flag -Kthread to make this header compile.)
15096         # We check for pthread_join because it is in -lpthread on IRIX
15097         # while pthread_create is in libc.  We check for pthread_attr_init
15098         # due to DEC craziness with -lpthreads.  We check for
15099         # pthread_cleanup_push because it is one of the few pthread
15100         # functions on Solaris that doesn't have a non-functional libc stub.
15101         # We try pthread_create on general principles.
15102         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h.  */
15104 #include <pthread.h>
15105                         static void routine(void *a) { a = 0; }
15106                         static void *start_routine(void *a) { return a; }
15107 int
15108 main ()
15109 {
15110 pthread_t th; pthread_attr_t attr;
15111                         pthread_create(&th, 0, start_routine, 0);
15112                         pthread_join(th, 0);
15113                         pthread_attr_init(&attr);
15114                         pthread_cleanup_push(routine, 0);
15115                         pthread_cleanup_pop(0) /* ; */
15116   ;
15117   return 0;
15118 }
15119 _ACEOF
15120 if ac_fn_c_try_link "$LINENO"; then :
15121   ax_pthread_ok=yes
15122 fi
15123 rm -f core conftest.err conftest.$ac_objext \
15124     conftest$ac_exeext conftest.$ac_ext
15125
15126         LIBS="$save_LIBS"
15127         CFLAGS="$save_CFLAGS"
15128
15129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15130 $as_echo "$ax_pthread_ok" >&6; }
15131         if test "x$ax_pthread_ok" = xyes; then
15132                 break;
15133         fi
15134
15135         PTHREAD_LIBS=""
15136         PTHREAD_CFLAGS=""
15137 done
15138 fi
15139
15140 # Various other checks:
15141 if test "x$ax_pthread_ok" = xyes; then
15142         save_LIBS="$LIBS"
15143         LIBS="$PTHREAD_LIBS $LIBS"
15144         save_CFLAGS="$CFLAGS"
15145         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15146
15147         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15148         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15149 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15150         attr_name=unknown
15151         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15152             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h.  */
15154 #include <pthread.h>
15155 int
15156 main ()
15157 {
15158 int attr = $attr; return attr /* ; */
15159   ;
15160   return 0;
15161 }
15162 _ACEOF
15163 if ac_fn_c_try_link "$LINENO"; then :
15164   attr_name=$attr; break
15165 fi
15166 rm -f core conftest.err conftest.$ac_objext \
15167     conftest$ac_exeext conftest.$ac_ext
15168         done
15169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15170 $as_echo "$attr_name" >&6; }
15171         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15172
15173 cat >>confdefs.h <<_ACEOF
15174 #define PTHREAD_CREATE_JOINABLE $attr_name
15175 _ACEOF
15176
15177         fi
15178
15179         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15180 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15181         flag=no
15182         case ${host_os} in
15183             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
15184             osf* | hpux*) flag="-D_REENTRANT";;
15185             solaris*)
15186             if test "$GCC" = "yes"; then
15187                 flag="-D_REENTRANT"
15188             else
15189                 flag="-mt -D_REENTRANT"
15190             fi
15191             ;;
15192         esac
15193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15194 $as_echo "${flag}" >&6; }
15195         if test "x$flag" != xno; then
15196             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15197         fi
15198
15199         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15200 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15201 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15202   $as_echo_n "(cached) " >&6
15203 else
15204
15205                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h.  */
15207
15208                     #include <pthread.h>
15209 int
15210 main ()
15211 {
15212 int i = PTHREAD_PRIO_INHERIT;
15213   ;
15214   return 0;
15215 }
15216 _ACEOF
15217 if ac_fn_c_try_link "$LINENO"; then :
15218   ax_cv_PTHREAD_PRIO_INHERIT=yes
15219 else
15220   ax_cv_PTHREAD_PRIO_INHERIT=no
15221 fi
15222 rm -f core conftest.err conftest.$ac_objext \
15223     conftest$ac_exeext conftest.$ac_ext
15224
15225 fi
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15227 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15228         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
15229
15230 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15231
15232 fi
15233
15234         LIBS="$save_LIBS"
15235         CFLAGS="$save_CFLAGS"
15236
15237         # More AIX lossage: must compile with xlc_r or cc_r
15238         if test x"$GCC" != xyes; then
15239           for ac_prog in xlc_r cc_r
15240 do
15241   # Extract the first word of "$ac_prog", so it can be a program name with args.
15242 set dummy $ac_prog; ac_word=$2
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15244 $as_echo_n "checking for $ac_word... " >&6; }
15245 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15246   $as_echo_n "(cached) " >&6
15247 else
15248   if test -n "$PTHREAD_CC"; then
15249   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15250 else
15251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15252 for as_dir in $PATH
15253 do
15254   IFS=$as_save_IFS
15255   test -z "$as_dir" && as_dir=.
15256     for ac_exec_ext in '' $ac_executable_extensions; do
15257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15258     ac_cv_prog_PTHREAD_CC="$ac_prog"
15259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15260     break 2
15261   fi
15262 done
15263   done
15264 IFS=$as_save_IFS
15265
15266 fi
15267 fi
15268 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15269 if test -n "$PTHREAD_CC"; then
15270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15271 $as_echo "$PTHREAD_CC" >&6; }
15272 else
15273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15274 $as_echo "no" >&6; }
15275 fi
15276
15277
15278   test -n "$PTHREAD_CC" && break
15279 done
15280 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15281
15282         else
15283           PTHREAD_CC=$CC
15284         fi
15285 else
15286         PTHREAD_CC="$CC"
15287 fi
15288
15289
15290
15291
15292
15293 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15294 if test x"$ax_pthread_ok" = xyes; then
15295         have_pthread=true
15296         :
15297 else
15298         ax_pthread_ok=no
15299
15300 fi
15301 ac_ext=c
15302 ac_cpp='$CPP $CPPFLAGS'
15303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15306
15307
15308 fi
15309 if $have_pthread; then
15310         LIBS="$PTHREAD_LIBS $LIBS"
15311         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15312         CC="$PTHREAD_CC"
15313
15314 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15315
15316 fi
15317  if $have_pthread; then
15318   HAVE_PTHREAD_TRUE=
15319   HAVE_PTHREAD_FALSE='#'
15320 else
15321   HAVE_PTHREAD_TRUE='#'
15322   HAVE_PTHREAD_FALSE=
15323 fi
15324
15325
15326
15327
15328 #
15329 # Let people not build/install docs if they don't have docbook
15330 #
15331
15332 # Extract the first word of "docbook2html", so it can be a program name with args.
15333 set dummy docbook2html; ac_word=$2
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15335 $as_echo_n "checking for $ac_word... " >&6; }
15336 if ${ac_cv_prog_HASDOCBOOK+:} false; then :
15337   $as_echo_n "(cached) " >&6
15338 else
15339   if test -n "$HASDOCBOOK"; then
15340   ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
15341 else
15342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15343 for as_dir in $PATH
15344 do
15345   IFS=$as_save_IFS
15346   test -z "$as_dir" && as_dir=.
15347     for ac_exec_ext in '' $ac_executable_extensions; do
15348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15349     ac_cv_prog_HASDOCBOOK="yes"
15350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15351     break 2
15352   fi
15353 done
15354   done
15355 IFS=$as_save_IFS
15356
15357   test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
15358 fi
15359 fi
15360 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
15361 if test -n "$HASDOCBOOK"; then
15362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
15363 $as_echo "$HASDOCBOOK" >&6; }
15364 else
15365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366 $as_echo "no" >&6; }
15367 fi
15368
15369
15370
15371  if test "x$HASDOCBOOK" = xyes; then
15372   USEDOCBOOK_TRUE=
15373   USEDOCBOOK_FALSE='#'
15374 else
15375   USEDOCBOOK_TRUE='#'
15376   USEDOCBOOK_FALSE=
15377 fi
15378
15379
15380 default_docs="yes"
15381 #
15382 # Check if docs exist or can be created
15383 #
15384 if test x$HASDOCBOOK = xno; then
15385         if test -f $srcdir/doc/fonts-conf.5; then
15386                 :
15387         else
15388                 default_docs="no"
15389         fi
15390 fi
15391
15392 # Check whether --enable-docs was given.
15393 if test "${enable_docs+set}" = set; then :
15394   enableval=$enable_docs;
15395 else
15396   enable_docs=$default_docs
15397 fi
15398
15399
15400  if test "x$enable_docs" = xyes; then
15401   ENABLE_DOCS_TRUE=
15402   ENABLE_DOCS_FALSE='#'
15403 else
15404   ENABLE_DOCS_TRUE='#'
15405   ENABLE_DOCS_FALSE=
15406 fi
15407
15408
15409 if test "x$enable_docs" = xyes; then
15410         tmp=funcs.$$
15411         cat $srcdir/doc/*.fncs | awk '
15412         /^@TITLE@/      { if (!done) { printf ("%s\n", $2); done = 1; } }
15413         /^@FUNC@/       { if (!done) { printf ("%s\n", $2); done = 1; } }
15414         /^@@/           { done = 0; }' > $tmp
15415         DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
15416         echo DOCMAN3 $DOCMAN3
15417         rm -f $tmp
15418 else
15419         DOCMAN3=""
15420 fi
15421
15422
15423
15424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15425 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15426 if ${ac_cv_c_bigendian+:} false; then :
15427   $as_echo_n "(cached) " >&6
15428 else
15429   ac_cv_c_bigendian=unknown
15430     # See if we're dealing with a universal compiler.
15431     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h.  */
15433 #ifndef __APPLE_CC__
15434                not a universal capable compiler
15435              #endif
15436              typedef int dummy;
15437
15438 _ACEOF
15439 if ac_fn_c_try_compile "$LINENO"; then :
15440
15441         # Check for potential -arch flags.  It is not universal unless
15442         # there are at least two -arch flags with different values.
15443         ac_arch=
15444         ac_prev=
15445         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15446          if test -n "$ac_prev"; then
15447            case $ac_word in
15448              i?86 | x86_64 | ppc | ppc64)
15449                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15450                  ac_arch=$ac_word
15451                else
15452                  ac_cv_c_bigendian=universal
15453                  break
15454                fi
15455                ;;
15456            esac
15457            ac_prev=
15458          elif test "x$ac_word" = "x-arch"; then
15459            ac_prev=arch
15460          fi
15461        done
15462 fi
15463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464     if test $ac_cv_c_bigendian = unknown; then
15465       # See if sys/param.h defines the BYTE_ORDER macro.
15466       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h.  */
15468 #include <sys/types.h>
15469              #include <sys/param.h>
15470
15471 int
15472 main ()
15473 {
15474 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15475                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15476                      && LITTLE_ENDIAN)
15477               bogus endian macros
15478              #endif
15479
15480   ;
15481   return 0;
15482 }
15483 _ACEOF
15484 if ac_fn_c_try_compile "$LINENO"; then :
15485   # It does; now see whether it defined to BIG_ENDIAN or not.
15486          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h.  */
15488 #include <sys/types.h>
15489                 #include <sys/param.h>
15490
15491 int
15492 main ()
15493 {
15494 #if BYTE_ORDER != BIG_ENDIAN
15495                  not big endian
15496                 #endif
15497
15498   ;
15499   return 0;
15500 }
15501 _ACEOF
15502 if ac_fn_c_try_compile "$LINENO"; then :
15503   ac_cv_c_bigendian=yes
15504 else
15505   ac_cv_c_bigendian=no
15506 fi
15507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15508 fi
15509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15510     fi
15511     if test $ac_cv_c_bigendian = unknown; then
15512       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15513       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h.  */
15515 #include <limits.h>
15516
15517 int
15518 main ()
15519 {
15520 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15521               bogus endian macros
15522              #endif
15523
15524   ;
15525   return 0;
15526 }
15527 _ACEOF
15528 if ac_fn_c_try_compile "$LINENO"; then :
15529   # It does; now see whether it defined to _BIG_ENDIAN or not.
15530          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h.  */
15532 #include <limits.h>
15533
15534 int
15535 main ()
15536 {
15537 #ifndef _BIG_ENDIAN
15538                  not big endian
15539                 #endif
15540
15541   ;
15542   return 0;
15543 }
15544 _ACEOF
15545 if ac_fn_c_try_compile "$LINENO"; then :
15546   ac_cv_c_bigendian=yes
15547 else
15548   ac_cv_c_bigendian=no
15549 fi
15550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551 fi
15552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15553     fi
15554     if test $ac_cv_c_bigendian = unknown; then
15555       # Compile a test program.
15556       if test "$cross_compiling" = yes; then :
15557   # Try to guess by grepping values from an object file.
15558          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h.  */
15560 short int ascii_mm[] =
15561                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15562                 short int ascii_ii[] =
15563                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15564                 int use_ascii (int i) {
15565                   return ascii_mm[i] + ascii_ii[i];
15566                 }
15567                 short int ebcdic_ii[] =
15568                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15569                 short int ebcdic_mm[] =
15570                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15571                 int use_ebcdic (int i) {
15572                   return ebcdic_mm[i] + ebcdic_ii[i];
15573                 }
15574                 extern int foo;
15575
15576 int
15577 main ()
15578 {
15579 return use_ascii (foo) == use_ebcdic (foo);
15580   ;
15581   return 0;
15582 }
15583 _ACEOF
15584 if ac_fn_c_try_compile "$LINENO"; then :
15585   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15586               ac_cv_c_bigendian=yes
15587             fi
15588             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15589               if test "$ac_cv_c_bigendian" = unknown; then
15590                 ac_cv_c_bigendian=no
15591               else
15592                 # finding both strings is unlikely to happen, but who knows?
15593                 ac_cv_c_bigendian=unknown
15594               fi
15595             fi
15596 fi
15597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598 else
15599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h.  */
15601 $ac_includes_default
15602 int
15603 main ()
15604 {
15605
15606              /* Are we little or big endian?  From Harbison&Steele.  */
15607              union
15608              {
15609                long int l;
15610                char c[sizeof (long int)];
15611              } u;
15612              u.l = 1;
15613              return u.c[sizeof (long int) - 1] == 1;
15614
15615   ;
15616   return 0;
15617 }
15618 _ACEOF
15619 if ac_fn_c_try_run "$LINENO"; then :
15620   ac_cv_c_bigendian=no
15621 else
15622   ac_cv_c_bigendian=yes
15623 fi
15624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15625   conftest.$ac_objext conftest.beam conftest.$ac_ext
15626 fi
15627
15628     fi
15629 fi
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15631 $as_echo "$ac_cv_c_bigendian" >&6; }
15632  case $ac_cv_c_bigendian in #(
15633    yes)
15634      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15635 ;; #(
15636    no)
15637       ;; #(
15638    universal)
15639
15640 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15641
15642      ;; #(
15643    *)
15644      as_fn_error $? "unknown endianness
15645  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15646  esac
15647
15648 # The cast to long int works around a bug in the HP C Compiler
15649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15651 # This bug is HP SR number 8606223364.
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15653 $as_echo_n "checking size of void *... " >&6; }
15654 if ${ac_cv_sizeof_void_p+:} false; then :
15655   $as_echo_n "(cached) " >&6
15656 else
15657   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15658
15659 else
15660   if test "$ac_cv_type_void_p" = yes; then
15661      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15663 as_fn_error 77 "cannot compute sizeof (void *)
15664 See \`config.log' for more details" "$LINENO" 5; }
15665    else
15666      ac_cv_sizeof_void_p=0
15667    fi
15668 fi
15669
15670 fi
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15672 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15673
15674
15675
15676 cat >>confdefs.h <<_ACEOF
15677 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15678 _ACEOF
15679
15680
15681 # The cast to long int works around a bug in the HP C Compiler,
15682 # see AC_CHECK_SIZEOF for more information.
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
15684 $as_echo_n "checking alignment of double... " >&6; }
15685 if ${ac_cv_alignof_double+:} false; then :
15686   $as_echo_n "(cached) " >&6
15687 else
15688   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double"        "$ac_includes_default
15689 #ifndef offsetof
15690 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15691 #endif
15692 typedef struct { char x; double y; } ac__type_alignof_;"; then :
15693
15694 else
15695   if test "$ac_cv_type_double" = yes; then
15696      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15698 as_fn_error 77 "cannot compute alignment of double
15699 See \`config.log' for more details" "$LINENO" 5; }
15700    else
15701      ac_cv_alignof_double=0
15702    fi
15703 fi
15704
15705 fi
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
15707 $as_echo "$ac_cv_alignof_double" >&6; }
15708
15709
15710
15711 cat >>confdefs.h <<_ACEOF
15712 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
15713 _ACEOF
15714
15715
15716
15717
15718
15719 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-glyphname/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml test/Makefile fontconfig.spec fontconfig.pc fontconfig-zip"
15720
15721 cat >confcache <<\_ACEOF
15722 # This file is a shell script that caches the results of configure
15723 # tests run on this system so they can be shared between configure
15724 # scripts and configure runs, see configure's option --config-cache.
15725 # It is not useful on other systems.  If it contains results you don't
15726 # want to keep, you may remove or edit it.
15727 #
15728 # config.status only pays attention to the cache file if you give it
15729 # the --recheck option to rerun configure.
15730 #
15731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15733 # following values.
15734
15735 _ACEOF
15736
15737 # The following way of writing the cache mishandles newlines in values,
15738 # but we know of no workaround that is simple, portable, and efficient.
15739 # So, we kill variables containing newlines.
15740 # Ultrix sh set writes to stderr and can't be redirected directly,
15741 # and sets the high bit in the cache file unless we assign to the vars.
15742 (
15743   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15744     eval ac_val=\$$ac_var
15745     case $ac_val in #(
15746     *${as_nl}*)
15747       case $ac_var in #(
15748       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15749 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15750       esac
15751       case $ac_var in #(
15752       _ | IFS | as_nl) ;; #(
15753       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15754       *) { eval $ac_var=; unset $ac_var;} ;;
15755       esac ;;
15756     esac
15757   done
15758
15759   (set) 2>&1 |
15760     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15761     *${as_nl}ac_space=\ *)
15762       # `set' does not quote correctly, so add quotes: double-quote
15763       # substitution turns \\\\ into \\, and sed turns \\ into \.
15764       sed -n \
15765         "s/'/'\\\\''/g;
15766           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15767       ;; #(
15768     *)
15769       # `set' quotes correctly as required by POSIX, so do not add quotes.
15770       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15771       ;;
15772     esac |
15773     sort
15774 ) |
15775   sed '
15776      /^ac_cv_env_/b end
15777      t clear
15778      :clear
15779      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15780      t end
15781      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15782      :end' >>confcache
15783 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15784   if test -w "$cache_file"; then
15785     if test "x$cache_file" != "x/dev/null"; then
15786       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15787 $as_echo "$as_me: updating cache $cache_file" >&6;}
15788       if test ! -f "$cache_file" || test -h "$cache_file"; then
15789         cat confcache >"$cache_file"
15790       else
15791         case $cache_file in #(
15792         */* | ?:*)
15793           mv -f confcache "$cache_file"$$ &&
15794           mv -f "$cache_file"$$ "$cache_file" ;; #(
15795         *)
15796           mv -f confcache "$cache_file" ;;
15797         esac
15798       fi
15799     fi
15800   else
15801     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15802 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15803   fi
15804 fi
15805 rm -f confcache
15806
15807 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15808 # Let make expand exec_prefix.
15809 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15810
15811 DEFS=-DHAVE_CONFIG_H
15812
15813 ac_libobjs=
15814 ac_ltlibobjs=
15815 U=
15816 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15817   # 1. Remove the extension, and $U if already installed.
15818   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15819   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15820   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15821   #    will be set to the directory where LIBOBJS objects are built.
15822   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15823   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15824 done
15825 LIBOBJS=$ac_libobjs
15826
15827 LTLIBOBJS=$ac_ltlibobjs
15828
15829
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15831 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15832    if test -n "$am_sleep_pid"; then
15833      # Hide warnings about reused PIDs.
15834      wait $am_sleep_pid 2>/dev/null
15835    fi
15836    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15837 $as_echo "done" >&6; }
15838  if test -n "$EXEEXT"; then
15839   am__EXEEXT_TRUE=
15840   am__EXEEXT_FALSE='#'
15841 else
15842   am__EXEEXT_TRUE='#'
15843   am__EXEEXT_FALSE=
15844 fi
15845
15846 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15847   as_fn_error $? "conditional \"AMDEP\" was never defined.
15848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15849 fi
15850 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15851   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15853 fi
15854 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15855   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15857 fi
15858 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
15859   as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
15860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15861 fi
15862 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
15863   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
15864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15865 fi
15866 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
15867   as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
15868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15869 fi
15870 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
15871   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
15872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15873 fi
15874 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
15875   as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
15876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15877 fi
15878 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
15879   as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
15880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15881 fi
15882
15883
15884 : "${CONFIG_STATUS=./config.status}"
15885 ac_write_fail=0
15886 ac_clean_files_save=$ac_clean_files
15887 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15889 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15890 as_write_fail=0
15891 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15892 #! $SHELL
15893 # Generated by $as_me.
15894 # Run this file to recreate the current configuration.
15895 # Compiler output produced by configure, useful for debugging
15896 # configure, is in config.log if it exists.
15897
15898 debug=false
15899 ac_cs_recheck=false
15900 ac_cs_silent=false
15901
15902 SHELL=\${CONFIG_SHELL-$SHELL}
15903 export SHELL
15904 _ASEOF
15905 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15906 ## -------------------- ##
15907 ## M4sh Initialization. ##
15908 ## -------------------- ##
15909
15910 # Be more Bourne compatible
15911 DUALCASE=1; export DUALCASE # for MKS sh
15912 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15913   emulate sh
15914   NULLCMD=:
15915   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15916   # is contrary to our usage.  Disable this feature.
15917   alias -g '${1+"$@"}'='"$@"'
15918   setopt NO_GLOB_SUBST
15919 else
15920   case `(set -o) 2>/dev/null` in #(
15921   *posix*) :
15922     set -o posix ;; #(
15923   *) :
15924      ;;
15925 esac
15926 fi
15927
15928
15929 as_nl='
15930 '
15931 export as_nl
15932 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15933 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15934 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15935 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15936 # Prefer a ksh shell builtin over an external printf program on Solaris,
15937 # but without wasting forks for bash or zsh.
15938 if test -z "$BASH_VERSION$ZSH_VERSION" \
15939     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15940   as_echo='print -r --'
15941   as_echo_n='print -rn --'
15942 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15943   as_echo='printf %s\n'
15944   as_echo_n='printf %s'
15945 else
15946   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15947     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15948     as_echo_n='/usr/ucb/echo -n'
15949   else
15950     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15951     as_echo_n_body='eval
15952       arg=$1;
15953       case $arg in #(
15954       *"$as_nl"*)
15955         expr "X$arg" : "X\\(.*\\)$as_nl";
15956         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15957       esac;
15958       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15959     '
15960     export as_echo_n_body
15961     as_echo_n='sh -c $as_echo_n_body as_echo'
15962   fi
15963   export as_echo_body
15964   as_echo='sh -c $as_echo_body as_echo'
15965 fi
15966
15967 # The user is always right.
15968 if test "${PATH_SEPARATOR+set}" != set; then
15969   PATH_SEPARATOR=:
15970   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15971     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15972       PATH_SEPARATOR=';'
15973   }
15974 fi
15975
15976
15977 # IFS
15978 # We need space, tab and new line, in precisely that order.  Quoting is
15979 # there to prevent editors from complaining about space-tab.
15980 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15981 # splitting by setting IFS to empty value.)
15982 IFS=" ""        $as_nl"
15983
15984 # Find who we are.  Look in the path if we contain no directory separator.
15985 as_myself=
15986 case $0 in #((
15987   *[\\/]* ) as_myself=$0 ;;
15988   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15989 for as_dir in $PATH
15990 do
15991   IFS=$as_save_IFS
15992   test -z "$as_dir" && as_dir=.
15993     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15994   done
15995 IFS=$as_save_IFS
15996
15997      ;;
15998 esac
15999 # We did not find ourselves, most probably we were run as `sh COMMAND'
16000 # in which case we are not to be found in the path.
16001 if test "x$as_myself" = x; then
16002   as_myself=$0
16003 fi
16004 if test ! -f "$as_myself"; then
16005   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16006   exit 1
16007 fi
16008
16009 # Unset variables that we do not need and which cause bugs (e.g. in
16010 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16011 # suppresses any "Segmentation fault" message there.  '((' could
16012 # trigger a bug in pdksh 5.2.14.
16013 for as_var in BASH_ENV ENV MAIL MAILPATH
16014 do eval test x\${$as_var+set} = xset \
16015   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16016 done
16017 PS1='$ '
16018 PS2='> '
16019 PS4='+ '
16020
16021 # NLS nuisances.
16022 LC_ALL=C
16023 export LC_ALL
16024 LANGUAGE=C
16025 export LANGUAGE
16026
16027 # CDPATH.
16028 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16029
16030
16031 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16032 # ----------------------------------------
16033 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16034 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16035 # script with STATUS, using 1 if that was 0.
16036 as_fn_error ()
16037 {
16038   as_status=$1; test $as_status -eq 0 && as_status=1
16039   if test "$4"; then
16040     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16041     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16042   fi
16043   $as_echo "$as_me: error: $2" >&2
16044   as_fn_exit $as_status
16045 } # as_fn_error
16046
16047
16048 # as_fn_set_status STATUS
16049 # -----------------------
16050 # Set $? to STATUS, without forking.
16051 as_fn_set_status ()
16052 {
16053   return $1
16054 } # as_fn_set_status
16055
16056 # as_fn_exit STATUS
16057 # -----------------
16058 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16059 as_fn_exit ()
16060 {
16061   set +e
16062   as_fn_set_status $1
16063   exit $1
16064 } # as_fn_exit
16065
16066 # as_fn_unset VAR
16067 # ---------------
16068 # Portably unset VAR.
16069 as_fn_unset ()
16070 {
16071   { eval $1=; unset $1;}
16072 }
16073 as_unset=as_fn_unset
16074 # as_fn_append VAR VALUE
16075 # ----------------------
16076 # Append the text in VALUE to the end of the definition contained in VAR. Take
16077 # advantage of any shell optimizations that allow amortized linear growth over
16078 # repeated appends, instead of the typical quadratic growth present in naive
16079 # implementations.
16080 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16081   eval 'as_fn_append ()
16082   {
16083     eval $1+=\$2
16084   }'
16085 else
16086   as_fn_append ()
16087   {
16088     eval $1=\$$1\$2
16089   }
16090 fi # as_fn_append
16091
16092 # as_fn_arith ARG...
16093 # ------------------
16094 # Perform arithmetic evaluation on the ARGs, and store the result in the
16095 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16096 # must be portable across $(()) and expr.
16097 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16098   eval 'as_fn_arith ()
16099   {
16100     as_val=$(( $* ))
16101   }'
16102 else
16103   as_fn_arith ()
16104   {
16105     as_val=`expr "$@" || test $? -eq 1`
16106   }
16107 fi # as_fn_arith
16108
16109
16110 if expr a : '\(a\)' >/dev/null 2>&1 &&
16111    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16112   as_expr=expr
16113 else
16114   as_expr=false
16115 fi
16116
16117 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16118   as_basename=basename
16119 else
16120   as_basename=false
16121 fi
16122
16123 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16124   as_dirname=dirname
16125 else
16126   as_dirname=false
16127 fi
16128
16129 as_me=`$as_basename -- "$0" ||
16130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16131          X"$0" : 'X\(//\)$' \| \
16132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16133 $as_echo X/"$0" |
16134     sed '/^.*\/\([^/][^/]*\)\/*$/{
16135             s//\1/
16136             q
16137           }
16138           /^X\/\(\/\/\)$/{
16139             s//\1/
16140             q
16141           }
16142           /^X\/\(\/\).*/{
16143             s//\1/
16144             q
16145           }
16146           s/.*/./; q'`
16147
16148 # Avoid depending upon Character Ranges.
16149 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16150 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16151 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16152 as_cr_digits='0123456789'
16153 as_cr_alnum=$as_cr_Letters$as_cr_digits
16154
16155 ECHO_C= ECHO_N= ECHO_T=
16156 case `echo -n x` in #(((((
16157 -n*)
16158   case `echo 'xy\c'` in
16159   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16160   xy)  ECHO_C='\c';;
16161   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16162        ECHO_T=' ';;
16163   esac;;
16164 *)
16165   ECHO_N='-n';;
16166 esac
16167
16168 rm -f conf$$ conf$$.exe conf$$.file
16169 if test -d conf$$.dir; then
16170   rm -f conf$$.dir/conf$$.file
16171 else
16172   rm -f conf$$.dir
16173   mkdir conf$$.dir 2>/dev/null
16174 fi
16175 if (echo >conf$$.file) 2>/dev/null; then
16176   if ln -s conf$$.file conf$$ 2>/dev/null; then
16177     as_ln_s='ln -s'
16178     # ... but there are two gotchas:
16179     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16180     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16181     # In both cases, we have to default to `cp -pR'.
16182     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16183       as_ln_s='cp -pR'
16184   elif ln conf$$.file conf$$ 2>/dev/null; then
16185     as_ln_s=ln
16186   else
16187     as_ln_s='cp -pR'
16188   fi
16189 else
16190   as_ln_s='cp -pR'
16191 fi
16192 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16193 rmdir conf$$.dir 2>/dev/null
16194
16195
16196 # as_fn_mkdir_p
16197 # -------------
16198 # Create "$as_dir" as a directory, including parents if necessary.
16199 as_fn_mkdir_p ()
16200 {
16201
16202   case $as_dir in #(
16203   -*) as_dir=./$as_dir;;
16204   esac
16205   test -d "$as_dir" || eval $as_mkdir_p || {
16206     as_dirs=
16207     while :; do
16208       case $as_dir in #(
16209       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16210       *) as_qdir=$as_dir;;
16211       esac
16212       as_dirs="'$as_qdir' $as_dirs"
16213       as_dir=`$as_dirname -- "$as_dir" ||
16214 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16215          X"$as_dir" : 'X\(//\)[^/]' \| \
16216          X"$as_dir" : 'X\(//\)$' \| \
16217          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16218 $as_echo X"$as_dir" |
16219     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16220             s//\1/
16221             q
16222           }
16223           /^X\(\/\/\)[^/].*/{
16224             s//\1/
16225             q
16226           }
16227           /^X\(\/\/\)$/{
16228             s//\1/
16229             q
16230           }
16231           /^X\(\/\).*/{
16232             s//\1/
16233             q
16234           }
16235           s/.*/./; q'`
16236       test -d "$as_dir" && break
16237     done
16238     test -z "$as_dirs" || eval "mkdir $as_dirs"
16239   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16240
16241
16242 } # as_fn_mkdir_p
16243 if mkdir -p . 2>/dev/null; then
16244   as_mkdir_p='mkdir -p "$as_dir"'
16245 else
16246   test -d ./-p && rmdir ./-p
16247   as_mkdir_p=false
16248 fi
16249
16250
16251 # as_fn_executable_p FILE
16252 # -----------------------
16253 # Test if FILE is an executable regular file.
16254 as_fn_executable_p ()
16255 {
16256   test -f "$1" && test -x "$1"
16257 } # as_fn_executable_p
16258 as_test_x='test -x'
16259 as_executable_p=as_fn_executable_p
16260
16261 # Sed expression to map a string onto a valid CPP name.
16262 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16263
16264 # Sed expression to map a string onto a valid variable name.
16265 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16266
16267
16268 exec 6>&1
16269 ## ----------------------------------- ##
16270 ## Main body of $CONFIG_STATUS script. ##
16271 ## ----------------------------------- ##
16272 _ASEOF
16273 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16274
16275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16276 # Save the log message, to keep $0 and so on meaningful, and to
16277 # report actual input values of CONFIG_FILES etc. instead of their
16278 # values after options handling.
16279 ac_log="
16280 This file was extended by $as_me, which was
16281 generated by GNU Autoconf 2.69.  Invocation command line was
16282
16283   CONFIG_FILES    = $CONFIG_FILES
16284   CONFIG_HEADERS  = $CONFIG_HEADERS
16285   CONFIG_LINKS    = $CONFIG_LINKS
16286   CONFIG_COMMANDS = $CONFIG_COMMANDS
16287   $ $0 $@
16288
16289 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16290 "
16291
16292 _ACEOF
16293
16294 case $ac_config_files in *"
16295 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16296 esac
16297
16298 case $ac_config_headers in *"
16299 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16300 esac
16301
16302
16303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16304 # Files that config.status was made for.
16305 config_files="$ac_config_files"
16306 config_headers="$ac_config_headers"
16307 config_commands="$ac_config_commands"
16308
16309 _ACEOF
16310
16311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16312 ac_cs_usage="\
16313 \`$as_me' instantiates files and other configuration actions
16314 from templates according to the current configuration.  Unless the files
16315 and actions are specified as TAGs, all are instantiated by default.
16316
16317 Usage: $0 [OPTION]... [TAG]...
16318
16319   -h, --help       print this help, then exit
16320   -V, --version    print version number and configuration settings, then exit
16321       --config     print configuration, then exit
16322   -q, --quiet, --silent
16323                    do not print progress messages
16324   -d, --debug      don't remove temporary files
16325       --recheck    update $as_me by reconfiguring in the same conditions
16326       --file=FILE[:TEMPLATE]
16327                    instantiate the configuration file FILE
16328       --header=FILE[:TEMPLATE]
16329                    instantiate the configuration header FILE
16330
16331 Configuration files:
16332 $config_files
16333
16334 Configuration headers:
16335 $config_headers
16336
16337 Configuration commands:
16338 $config_commands
16339
16340 Report bugs to the package provider."
16341
16342 _ACEOF
16343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16345 ac_cs_version="\\
16346 config.status
16347 configured by $0, generated by GNU Autoconf 2.69,
16348   with options \\"\$ac_cs_config\\"
16349
16350 Copyright (C) 2012 Free Software Foundation, Inc.
16351 This config.status script is free software; the Free Software Foundation
16352 gives unlimited permission to copy, distribute and modify it."
16353
16354 ac_pwd='$ac_pwd'
16355 srcdir='$srcdir'
16356 INSTALL='$INSTALL'
16357 MKDIR_P='$MKDIR_P'
16358 AWK='$AWK'
16359 test -n "\$AWK" || AWK=awk
16360 _ACEOF
16361
16362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16363 # The default lists apply if the user does not specify any file.
16364 ac_need_defaults=:
16365 while test $# != 0
16366 do
16367   case $1 in
16368   --*=?*)
16369     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16370     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16371     ac_shift=:
16372     ;;
16373   --*=)
16374     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16375     ac_optarg=
16376     ac_shift=:
16377     ;;
16378   *)
16379     ac_option=$1
16380     ac_optarg=$2
16381     ac_shift=shift
16382     ;;
16383   esac
16384
16385   case $ac_option in
16386   # Handling of the options.
16387   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16388     ac_cs_recheck=: ;;
16389   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16390     $as_echo "$ac_cs_version"; exit ;;
16391   --config | --confi | --conf | --con | --co | --c )
16392     $as_echo "$ac_cs_config"; exit ;;
16393   --debug | --debu | --deb | --de | --d | -d )
16394     debug=: ;;
16395   --file | --fil | --fi | --f )
16396     $ac_shift
16397     case $ac_optarg in
16398     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16399     '') as_fn_error $? "missing file argument" ;;
16400     esac
16401     as_fn_append CONFIG_FILES " '$ac_optarg'"
16402     ac_need_defaults=false;;
16403   --header | --heade | --head | --hea )
16404     $ac_shift
16405     case $ac_optarg in
16406     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16407     esac
16408     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16409     ac_need_defaults=false;;
16410   --he | --h)
16411     # Conflict between --help and --header
16412     as_fn_error $? "ambiguous option: \`$1'
16413 Try \`$0 --help' for more information.";;
16414   --help | --hel | -h )
16415     $as_echo "$ac_cs_usage"; exit ;;
16416   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16417   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16418     ac_cs_silent=: ;;
16419
16420   # This is an error.
16421   -*) as_fn_error $? "unrecognized option: \`$1'
16422 Try \`$0 --help' for more information." ;;
16423
16424   *) as_fn_append ac_config_targets " $1"
16425      ac_need_defaults=false ;;
16426
16427   esac
16428   shift
16429 done
16430
16431 ac_configure_extra_args=
16432
16433 if $ac_cs_silent; then
16434   exec 6>/dev/null
16435   ac_configure_extra_args="$ac_configure_extra_args --silent"
16436 fi
16437
16438 _ACEOF
16439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16440 if \$ac_cs_recheck; then
16441   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16442   shift
16443   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16444   CONFIG_SHELL='$SHELL'
16445   export CONFIG_SHELL
16446   exec "\$@"
16447 fi
16448
16449 _ACEOF
16450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16451 exec 5>>config.log
16452 {
16453   echo
16454   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16455 ## Running $as_me. ##
16456 _ASBOX
16457   $as_echo "$ac_log"
16458 } >&5
16459
16460 _ACEOF
16461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16462 #
16463 # INIT-COMMANDS
16464 #
16465 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16466
16467
16468 # The HP-UX ksh and POSIX shell print the target directory to stdout
16469 # if CDPATH is set.
16470 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16471
16472 sed_quote_subst='$sed_quote_subst'
16473 double_quote_subst='$double_quote_subst'
16474 delay_variable_subst='$delay_variable_subst'
16475 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16476 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16477 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16478 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16479 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16480 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16481 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16482 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16483 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16484 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16485 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16486 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16487 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16488 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16489 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16490 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16491 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16492 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16493 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16494 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16495 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16496 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16497 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16498 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16499 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16500 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16501 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16502 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16503 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16504 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16505 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16506 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16507 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16508 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16509 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16510 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16511 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16512 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16513 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16514 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16515 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16516 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16517 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16518 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16519 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16520 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16521 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16522 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16523 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16524 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16525 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16526 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16527 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16528 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16529 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16530 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16531 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16532 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"`'
16533 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16534 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16535 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16536 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16537 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16538 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16539 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16540 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16541 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16542 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16543 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16544 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16545 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16546 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16547 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16548 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16549 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16550 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16551 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16552 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16553 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16554 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16555 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16556 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16557 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16558 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16559 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16560 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16561 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16562 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16563 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16564 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16565 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16566 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16567 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16568 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16569 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16570 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16571 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16572 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16573 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16574 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16575 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16576 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16577 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16578 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16579 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16580 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16581 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16582 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16583 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16584 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16585 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16586 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16587 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16588 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16589 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16590 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16591 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16592 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16593 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16594 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16595 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16596 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16597 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16598 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16599 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16600 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16601 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16602 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16603 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16604 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16605 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16606
16607 LTCC='$LTCC'
16608 LTCFLAGS='$LTCFLAGS'
16609 compiler='$compiler_DEFAULT'
16610
16611 # A function that is used when there is no print builtin or printf.
16612 func_fallback_echo ()
16613 {
16614   eval 'cat <<_LTECHO_EOF
16615 \$1
16616 _LTECHO_EOF'
16617 }
16618
16619 # Quote evaled strings.
16620 for var in AS \
16621 DLLTOOL \
16622 OBJDUMP \
16623 SHELL \
16624 ECHO \
16625 PATH_SEPARATOR \
16626 SED \
16627 GREP \
16628 EGREP \
16629 FGREP \
16630 LD \
16631 NM \
16632 LN_S \
16633 lt_SP2NL \
16634 lt_NL2SP \
16635 reload_flag \
16636 deplibs_check_method \
16637 file_magic_cmd \
16638 file_magic_glob \
16639 want_nocaseglob \
16640 sharedlib_from_linklib_cmd \
16641 AR \
16642 AR_FLAGS \
16643 archiver_list_spec \
16644 STRIP \
16645 RANLIB \
16646 CC \
16647 CFLAGS \
16648 compiler \
16649 lt_cv_sys_global_symbol_pipe \
16650 lt_cv_sys_global_symbol_to_cdecl \
16651 lt_cv_sys_global_symbol_to_c_name_address \
16652 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16653 nm_file_list_spec \
16654 lt_prog_compiler_no_builtin_flag \
16655 lt_prog_compiler_pic \
16656 lt_prog_compiler_wl \
16657 lt_prog_compiler_static \
16658 lt_cv_prog_compiler_c_o \
16659 need_locks \
16660 MANIFEST_TOOL \
16661 DSYMUTIL \
16662 NMEDIT \
16663 LIPO \
16664 OTOOL \
16665 OTOOL64 \
16666 shrext_cmds \
16667 export_dynamic_flag_spec \
16668 whole_archive_flag_spec \
16669 compiler_needs_object \
16670 with_gnu_ld \
16671 allow_undefined_flag \
16672 no_undefined_flag \
16673 hardcode_libdir_flag_spec \
16674 hardcode_libdir_separator \
16675 exclude_expsyms \
16676 include_expsyms \
16677 file_list_spec \
16678 variables_saved_for_relink \
16679 libname_spec \
16680 library_names_spec \
16681 soname_spec \
16682 install_override_mode \
16683 finish_eval \
16684 old_striplib \
16685 striplib; do
16686     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16687     *[\\\\\\\`\\"\\\$]*)
16688       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16689       ;;
16690     *)
16691       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16692       ;;
16693     esac
16694 done
16695
16696 # Double-quote double-evaled strings.
16697 for var in reload_cmds \
16698 old_postinstall_cmds \
16699 old_postuninstall_cmds \
16700 old_archive_cmds \
16701 extract_expsyms_cmds \
16702 old_archive_from_new_cmds \
16703 old_archive_from_expsyms_cmds \
16704 archive_cmds \
16705 archive_expsym_cmds \
16706 module_cmds \
16707 module_expsym_cmds \
16708 export_symbols_cmds \
16709 prelink_cmds \
16710 postlink_cmds \
16711 postinstall_cmds \
16712 postuninstall_cmds \
16713 finish_cmds \
16714 sys_lib_search_path_spec \
16715 sys_lib_dlsearch_path_spec; do
16716     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16717     *[\\\\\\\`\\"\\\$]*)
16718       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16719       ;;
16720     *)
16721       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16722       ;;
16723     esac
16724 done
16725
16726 ac_aux_dir='$ac_aux_dir'
16727 xsi_shell='$xsi_shell'
16728 lt_shell_append='$lt_shell_append'
16729
16730 # See if we are running on zsh, and set the options which allow our
16731 # commands through without removal of \ escapes INIT.
16732 if test -n "\${ZSH_VERSION+set}" ; then
16733    setopt NO_GLOB_SUBST
16734 fi
16735
16736
16737     PACKAGE='$PACKAGE'
16738     VERSION='$VERSION'
16739     TIMESTAMP='$TIMESTAMP'
16740     RM='$RM'
16741     ofile='$ofile'
16742
16743
16744
16745 # variables for create stdint.h replacement
16746 PACKAGE="$PACKAGE"
16747 VERSION="$VERSION"
16748 ac_stdint_h="$ac_stdint_h"
16749 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
16750 ac_cv_stdint_message="$ac_cv_stdint_message"
16751 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
16752 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
16753 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
16754 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
16755 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16756 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16757 ac_cv_char_data_model="$ac_cv_char_data_model"
16758 ac_cv_long_data_model="$ac_cv_long_data_model"
16759 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16760 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16761 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
16762
16763
16764 _ACEOF
16765
16766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16767
16768 # Handling of arguments.
16769 for ac_config_target in $ac_config_targets
16770 do
16771   case $ac_config_target in
16772     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16773     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16774     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16775     "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
16776     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16777     "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
16778     "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
16779     "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;;
16780     "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
16781     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16782     "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
16783     "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
16784     "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
16785     "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
16786     "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
16787     "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
16788     "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
16789     "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
16790     "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
16791     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16792     "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
16793     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16794     "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
16795     "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
16796     "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
16797
16798   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16799   esac
16800 done
16801
16802
16803 # If the user did not use the arguments to specify the items to instantiate,
16804 # then the envvar interface is used.  Set only those that are not.
16805 # We use the long form for the default assignment because of an extremely
16806 # bizarre bug on SunOS 4.1.3.
16807 if $ac_need_defaults; then
16808   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16809   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16810   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16811 fi
16812
16813 # Have a temporary directory for convenience.  Make it in the build tree
16814 # simply because there is no reason against having it here, and in addition,
16815 # creating and moving files from /tmp can sometimes cause problems.
16816 # Hook for its removal unless debugging.
16817 # Note that there is a small window in which the directory will not be cleaned:
16818 # after its creation but before its name has been assigned to `$tmp'.
16819 $debug ||
16820 {
16821   tmp= ac_tmp=
16822   trap 'exit_status=$?
16823   : "${ac_tmp:=$tmp}"
16824   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16825 ' 0
16826   trap 'as_fn_exit 1' 1 2 13 15
16827 }
16828 # Create a (secure) tmp directory for tmp files.
16829
16830 {
16831   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16832   test -d "$tmp"
16833 }  ||
16834 {
16835   tmp=./conf$$-$RANDOM
16836   (umask 077 && mkdir "$tmp")
16837 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16838 ac_tmp=$tmp
16839
16840 # Set up the scripts for CONFIG_FILES section.
16841 # No need to generate them if there are no CONFIG_FILES.
16842 # This happens for instance with `./config.status config.h'.
16843 if test -n "$CONFIG_FILES"; then
16844
16845
16846 ac_cr=`echo X | tr X '\015'`
16847 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16848 # But we know of no other shell where ac_cr would be empty at this
16849 # point, so we can use a bashism as a fallback.
16850 if test "x$ac_cr" = x; then
16851   eval ac_cr=\$\'\\r\'
16852 fi
16853 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16854 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16855   ac_cs_awk_cr='\\r'
16856 else
16857   ac_cs_awk_cr=$ac_cr
16858 fi
16859
16860 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16861 _ACEOF
16862
16863
16864 {
16865   echo "cat >conf$$subs.awk <<_ACEOF" &&
16866   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16867   echo "_ACEOF"
16868 } >conf$$subs.sh ||
16869   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16870 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16871 ac_delim='%!_!# '
16872 for ac_last_try in false false false false false :; do
16873   . ./conf$$subs.sh ||
16874     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16875
16876   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16877   if test $ac_delim_n = $ac_delim_num; then
16878     break
16879   elif $ac_last_try; then
16880     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16881   else
16882     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16883   fi
16884 done
16885 rm -f conf$$subs.sh
16886
16887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16888 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16889 _ACEOF
16890 sed -n '
16891 h
16892 s/^/S["/; s/!.*/"]=/
16893 p
16894 g
16895 s/^[^!]*!//
16896 :repl
16897 t repl
16898 s/'"$ac_delim"'$//
16899 t delim
16900 :nl
16901 h
16902 s/\(.\{148\}\)..*/\1/
16903 t more1
16904 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16905 p
16906 n
16907 b repl
16908 :more1
16909 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16910 p
16911 g
16912 s/.\{148\}//
16913 t nl
16914 :delim
16915 h
16916 s/\(.\{148\}\)..*/\1/
16917 t more2
16918 s/["\\]/\\&/g; s/^/"/; s/$/"/
16919 p
16920 b
16921 :more2
16922 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16923 p
16924 g
16925 s/.\{148\}//
16926 t delim
16927 ' <conf$$subs.awk | sed '
16928 /^[^""]/{
16929   N
16930   s/\n//
16931 }
16932 ' >>$CONFIG_STATUS || ac_write_fail=1
16933 rm -f conf$$subs.awk
16934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16935 _ACAWK
16936 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16937   for (key in S) S_is_set[key] = 1
16938   FS = "\a"
16939
16940 }
16941 {
16942   line = $ 0
16943   nfields = split(line, field, "@")
16944   substed = 0
16945   len = length(field[1])
16946   for (i = 2; i < nfields; i++) {
16947     key = field[i]
16948     keylen = length(key)
16949     if (S_is_set[key]) {
16950       value = S[key]
16951       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16952       len += length(value) + length(field[++i])
16953       substed = 1
16954     } else
16955       len += 1 + keylen
16956   }
16957
16958   print line
16959 }
16960
16961 _ACAWK
16962 _ACEOF
16963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16964 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16965   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16966 else
16967   cat
16968 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16969   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16970 _ACEOF
16971
16972 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16973 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16974 # trailing colons and then remove the whole line if VPATH becomes empty
16975 # (actually we leave an empty line to preserve line numbers).
16976 if test "x$srcdir" = x.; then
16977   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16978 h
16979 s///
16980 s/^/:/
16981 s/[      ]*$/:/
16982 s/:\$(srcdir):/:/g
16983 s/:\${srcdir}:/:/g
16984 s/:@srcdir@:/:/g
16985 s/^:*//
16986 s/:*$//
16987 x
16988 s/\(=[   ]*\).*/\1/
16989 G
16990 s/\n//
16991 s/^[^=]*=[       ]*$//
16992 }'
16993 fi
16994
16995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16996 fi # test -n "$CONFIG_FILES"
16997
16998 # Set up the scripts for CONFIG_HEADERS section.
16999 # No need to generate them if there are no CONFIG_HEADERS.
17000 # This happens for instance with `./config.status Makefile'.
17001 if test -n "$CONFIG_HEADERS"; then
17002 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17003 BEGIN {
17004 _ACEOF
17005
17006 # Transform confdefs.h into an awk script `defines.awk', embedded as
17007 # here-document in config.status, that substitutes the proper values into
17008 # config.h.in to produce config.h.
17009
17010 # Create a delimiter string that does not exist in confdefs.h, to ease
17011 # handling of long lines.
17012 ac_delim='%!_!# '
17013 for ac_last_try in false false :; do
17014   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17015   if test -z "$ac_tt"; then
17016     break
17017   elif $ac_last_try; then
17018     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17019   else
17020     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17021   fi
17022 done
17023
17024 # For the awk script, D is an array of macro values keyed by name,
17025 # likewise P contains macro parameters if any.  Preserve backslash
17026 # newline sequences.
17027
17028 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17029 sed -n '
17030 s/.\{148\}/&'"$ac_delim"'/g
17031 t rset
17032 :rset
17033 s/^[     ]*#[    ]*define[       ][      ]*/ /
17034 t def
17035 d
17036 :def
17037 s/\\$//
17038 t bsnl
17039 s/["\\]/\\&/g
17040 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17041 D["\1"]=" \3"/p
17042 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17043 d
17044 :bsnl
17045 s/["\\]/\\&/g
17046 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17047 D["\1"]=" \3\\\\\\n"\\/p
17048 t cont
17049 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17050 t cont
17051 d
17052 :cont
17053 n
17054 s/.\{148\}/&'"$ac_delim"'/g
17055 t clear
17056 :clear
17057 s/\\$//
17058 t bsnlc
17059 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17060 d
17061 :bsnlc
17062 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17063 b cont
17064 ' <confdefs.h | sed '
17065 s/'"$ac_delim"'/"\\\
17066 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17067
17068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17069   for (key in D) D_is_set[key] = 1
17070   FS = "\a"
17071 }
17072 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17073   line = \$ 0
17074   split(line, arg, " ")
17075   if (arg[1] == "#") {
17076     defundef = arg[2]
17077     mac1 = arg[3]
17078   } else {
17079     defundef = substr(arg[1], 2)
17080     mac1 = arg[2]
17081   }
17082   split(mac1, mac2, "(") #)
17083   macro = mac2[1]
17084   prefix = substr(line, 1, index(line, defundef) - 1)
17085   if (D_is_set[macro]) {
17086     # Preserve the white space surrounding the "#".
17087     print prefix "define", macro P[macro] D[macro]
17088     next
17089   } else {
17090     # Replace #undef with comments.  This is necessary, for example,
17091     # in the case of _POSIX_SOURCE, which is predefined and required
17092     # on some systems where configure will not decide to define it.
17093     if (defundef == "undef") {
17094       print "/*", prefix defundef, macro, "*/"
17095       next
17096     }
17097   }
17098 }
17099 { print }
17100 _ACAWK
17101 _ACEOF
17102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17103   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17104 fi # test -n "$CONFIG_HEADERS"
17105
17106
17107 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17108 shift
17109 for ac_tag
17110 do
17111   case $ac_tag in
17112   :[FHLC]) ac_mode=$ac_tag; continue;;
17113   esac
17114   case $ac_mode$ac_tag in
17115   :[FHL]*:*);;
17116   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17117   :[FH]-) ac_tag=-:-;;
17118   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17119   esac
17120   ac_save_IFS=$IFS
17121   IFS=:
17122   set x $ac_tag
17123   IFS=$ac_save_IFS
17124   shift
17125   ac_file=$1
17126   shift
17127
17128   case $ac_mode in
17129   :L) ac_source=$1;;
17130   :[FH])
17131     ac_file_inputs=
17132     for ac_f
17133     do
17134       case $ac_f in
17135       -) ac_f="$ac_tmp/stdin";;
17136       *) # Look for the file first in the build tree, then in the source tree
17137          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17138          # because $ac_f cannot contain `:'.
17139          test -f "$ac_f" ||
17140            case $ac_f in
17141            [\\/$]*) false;;
17142            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17143            esac ||
17144            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17145       esac
17146       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17147       as_fn_append ac_file_inputs " '$ac_f'"
17148     done
17149
17150     # Let's still pretend it is `configure' which instantiates (i.e., don't
17151     # use $as_me), people would be surprised to read:
17152     #    /* config.h.  Generated by config.status.  */
17153     configure_input='Generated from '`
17154           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17155         `' by configure.'
17156     if test x"$ac_file" != x-; then
17157       configure_input="$ac_file.  $configure_input"
17158       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17159 $as_echo "$as_me: creating $ac_file" >&6;}
17160     fi
17161     # Neutralize special characters interpreted by sed in replacement strings.
17162     case $configure_input in #(
17163     *\&* | *\|* | *\\* )
17164        ac_sed_conf_input=`$as_echo "$configure_input" |
17165        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17166     *) ac_sed_conf_input=$configure_input;;
17167     esac
17168
17169     case $ac_tag in
17170     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17171       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17172     esac
17173     ;;
17174   esac
17175
17176   ac_dir=`$as_dirname -- "$ac_file" ||
17177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17178          X"$ac_file" : 'X\(//\)[^/]' \| \
17179          X"$ac_file" : 'X\(//\)$' \| \
17180          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17181 $as_echo X"$ac_file" |
17182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17183             s//\1/
17184             q
17185           }
17186           /^X\(\/\/\)[^/].*/{
17187             s//\1/
17188             q
17189           }
17190           /^X\(\/\/\)$/{
17191             s//\1/
17192             q
17193           }
17194           /^X\(\/\).*/{
17195             s//\1/
17196             q
17197           }
17198           s/.*/./; q'`
17199   as_dir="$ac_dir"; as_fn_mkdir_p
17200   ac_builddir=.
17201
17202 case "$ac_dir" in
17203 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17204 *)
17205   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17206   # A ".." for each directory in $ac_dir_suffix.
17207   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17208   case $ac_top_builddir_sub in
17209   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17210   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17211   esac ;;
17212 esac
17213 ac_abs_top_builddir=$ac_pwd
17214 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17215 # for backward compatibility:
17216 ac_top_builddir=$ac_top_build_prefix
17217
17218 case $srcdir in
17219   .)  # We are building in place.
17220     ac_srcdir=.
17221     ac_top_srcdir=$ac_top_builddir_sub
17222     ac_abs_top_srcdir=$ac_pwd ;;
17223   [\\/]* | ?:[\\/]* )  # Absolute name.
17224     ac_srcdir=$srcdir$ac_dir_suffix;
17225     ac_top_srcdir=$srcdir
17226     ac_abs_top_srcdir=$srcdir ;;
17227   *) # Relative name.
17228     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17229     ac_top_srcdir=$ac_top_build_prefix$srcdir
17230     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17231 esac
17232 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17233
17234
17235   case $ac_mode in
17236   :F)
17237   #
17238   # CONFIG_FILE
17239   #
17240
17241   case $INSTALL in
17242   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17243   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17244   esac
17245   ac_MKDIR_P=$MKDIR_P
17246   case $MKDIR_P in
17247   [\\/$]* | ?:[\\/]* ) ;;
17248   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17249   esac
17250 _ACEOF
17251
17252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17253 # If the template does not know about datarootdir, expand it.
17254 # FIXME: This hack should be removed a few years after 2.60.
17255 ac_datarootdir_hack=; ac_datarootdir_seen=
17256 ac_sed_dataroot='
17257 /datarootdir/ {
17258   p
17259   q
17260 }
17261 /@datadir@/p
17262 /@docdir@/p
17263 /@infodir@/p
17264 /@localedir@/p
17265 /@mandir@/p'
17266 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17267 *datarootdir*) ac_datarootdir_seen=yes;;
17268 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17269   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17270 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17271 _ACEOF
17272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17273   ac_datarootdir_hack='
17274   s&@datadir@&$datadir&g
17275   s&@docdir@&$docdir&g
17276   s&@infodir@&$infodir&g
17277   s&@localedir@&$localedir&g
17278   s&@mandir@&$mandir&g
17279   s&\\\${datarootdir}&$datarootdir&g' ;;
17280 esac
17281 _ACEOF
17282
17283 # Neutralize VPATH when `$srcdir' = `.'.
17284 # Shell code in configure.ac might set extrasub.
17285 # FIXME: do we really want to maintain this feature?
17286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17287 ac_sed_extra="$ac_vpsub
17288 $extrasub
17289 _ACEOF
17290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17291 :t
17292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17293 s|@configure_input@|$ac_sed_conf_input|;t t
17294 s&@top_builddir@&$ac_top_builddir_sub&;t t
17295 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17296 s&@srcdir@&$ac_srcdir&;t t
17297 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17298 s&@top_srcdir@&$ac_top_srcdir&;t t
17299 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17300 s&@builddir@&$ac_builddir&;t t
17301 s&@abs_builddir@&$ac_abs_builddir&;t t
17302 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17303 s&@INSTALL@&$ac_INSTALL&;t t
17304 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17305 $ac_datarootdir_hack
17306 "
17307 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17308   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17309
17310 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17311   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17312   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17313       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17314   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17315 which seems to be undefined.  Please make sure it is defined" >&5
17316 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17317 which seems to be undefined.  Please make sure it is defined" >&2;}
17318
17319   rm -f "$ac_tmp/stdin"
17320   case $ac_file in
17321   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17322   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17323   esac \
17324   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17325  ;;
17326   :H)
17327   #
17328   # CONFIG_HEADER
17329   #
17330   if test x"$ac_file" != x-; then
17331     {
17332       $as_echo "/* $configure_input  */" \
17333       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17334     } >"$ac_tmp/config.h" \
17335       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17336     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17337       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17338 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17339     else
17340       rm -f "$ac_file"
17341       mv "$ac_tmp/config.h" "$ac_file" \
17342         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17343     fi
17344   else
17345     $as_echo "/* $configure_input  */" \
17346       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17347       || as_fn_error $? "could not create -" "$LINENO" 5
17348   fi
17349 # Compute "$ac_file"'s index in $config_headers.
17350 _am_arg="$ac_file"
17351 _am_stamp_count=1
17352 for _am_header in $config_headers :; do
17353   case $_am_header in
17354     $_am_arg | $_am_arg:* )
17355       break ;;
17356     * )
17357       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17358   esac
17359 done
17360 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17361 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17362          X"$_am_arg" : 'X\(//\)[^/]' \| \
17363          X"$_am_arg" : 'X\(//\)$' \| \
17364          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17365 $as_echo X"$_am_arg" |
17366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17367             s//\1/
17368             q
17369           }
17370           /^X\(\/\/\)[^/].*/{
17371             s//\1/
17372             q
17373           }
17374           /^X\(\/\/\)$/{
17375             s//\1/
17376             q
17377           }
17378           /^X\(\/\).*/{
17379             s//\1/
17380             q
17381           }
17382           s/.*/./; q'`/stamp-h$_am_stamp_count
17383  ;;
17384
17385   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17386 $as_echo "$as_me: executing $ac_file commands" >&6;}
17387  ;;
17388   esac
17389
17390
17391   case $ac_file$ac_mode in
17392     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17393   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17394   # are listed without --file.  Let's play safe and only enable the eval
17395   # if we detect the quoting.
17396   case $CONFIG_FILES in
17397   *\'*) eval set x "$CONFIG_FILES" ;;
17398   *)   set x $CONFIG_FILES ;;
17399   esac
17400   shift
17401   for mf
17402   do
17403     # Strip MF so we end up with the name of the file.
17404     mf=`echo "$mf" | sed -e 's/:.*$//'`
17405     # Check whether this is an Automake generated Makefile or not.
17406     # We used to match only the files named 'Makefile.in', but
17407     # some people rename them; so instead we look at the file content.
17408     # Grep'ing the first line is not enough: some people post-process
17409     # each Makefile.in and add a new line on top of each file to say so.
17410     # Grep'ing the whole file is not good either: AIX grep has a line
17411     # limit of 2048, but all sed's we know have understand at least 4000.
17412     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17413       dirpart=`$as_dirname -- "$mf" ||
17414 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17415          X"$mf" : 'X\(//\)[^/]' \| \
17416          X"$mf" : 'X\(//\)$' \| \
17417          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17418 $as_echo X"$mf" |
17419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17420             s//\1/
17421             q
17422           }
17423           /^X\(\/\/\)[^/].*/{
17424             s//\1/
17425             q
17426           }
17427           /^X\(\/\/\)$/{
17428             s//\1/
17429             q
17430           }
17431           /^X\(\/\).*/{
17432             s//\1/
17433             q
17434           }
17435           s/.*/./; q'`
17436     else
17437       continue
17438     fi
17439     # Extract the definition of DEPDIR, am__include, and am__quote
17440     # from the Makefile without running 'make'.
17441     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17442     test -z "$DEPDIR" && continue
17443     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17444     test -z "am__include" && continue
17445     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17446     # Find all dependency output files, they are included files with
17447     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17448     # simplest approach to changing $(DEPDIR) to its actual value in the
17449     # expansion.
17450     for file in `sed -n "
17451       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17452          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17453       # Make sure the directory exists.
17454       test -f "$dirpart/$file" && continue
17455       fdir=`$as_dirname -- "$file" ||
17456 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17457          X"$file" : 'X\(//\)[^/]' \| \
17458          X"$file" : 'X\(//\)$' \| \
17459          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17460 $as_echo X"$file" |
17461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17462             s//\1/
17463             q
17464           }
17465           /^X\(\/\/\)[^/].*/{
17466             s//\1/
17467             q
17468           }
17469           /^X\(\/\/\)$/{
17470             s//\1/
17471             q
17472           }
17473           /^X\(\/\).*/{
17474             s//\1/
17475             q
17476           }
17477           s/.*/./; q'`
17478       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17479       # echo "creating $dirpart/$file"
17480       echo '# dummy' > "$dirpart/$file"
17481     done
17482   done
17483 }
17484  ;;
17485     "libtool":C)
17486
17487     # See if we are running on zsh, and set the options which allow our
17488     # commands through without removal of \ escapes.
17489     if test -n "${ZSH_VERSION+set}" ; then
17490       setopt NO_GLOB_SUBST
17491     fi
17492
17493     cfgfile="${ofile}T"
17494     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17495     $RM "$cfgfile"
17496
17497     cat <<_LT_EOF >> "$cfgfile"
17498 #! $SHELL
17499
17500 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17501 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17502 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17503 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17504 #
17505 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17506 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17507 #                 Foundation, Inc.
17508 #   Written by Gordon Matzigkeit, 1996
17509 #
17510 #   This file is part of GNU Libtool.
17511 #
17512 # GNU Libtool is free software; you can redistribute it and/or
17513 # modify it under the terms of the GNU General Public License as
17514 # published by the Free Software Foundation; either version 2 of
17515 # the License, or (at your option) any later version.
17516 #
17517 # As a special exception to the GNU General Public License,
17518 # if you distribute this file as part of a program or library that
17519 # is built using GNU Libtool, you may include this file under the
17520 # same distribution terms that you use for the rest of that program.
17521 #
17522 # GNU Libtool is distributed in the hope that it will be useful,
17523 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17524 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17525 # GNU General Public License for more details.
17526 #
17527 # You should have received a copy of the GNU General Public License
17528 # along with GNU Libtool; see the file COPYING.  If not, a copy
17529 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17530 # obtained by writing to the Free Software Foundation, Inc.,
17531 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17532
17533
17534 # The names of the tagged configurations supported by this script.
17535 available_tags=""
17536
17537 # ### BEGIN LIBTOOL CONFIG
17538
17539 # Assembler program.
17540 AS=$lt_AS
17541
17542 # DLL creation program.
17543 DLLTOOL=$lt_DLLTOOL
17544
17545 # Object dumper program.
17546 OBJDUMP=$lt_OBJDUMP
17547
17548 # Which release of libtool.m4 was used?
17549 macro_version=$macro_version
17550 macro_revision=$macro_revision
17551
17552 # Whether or not to build shared libraries.
17553 build_libtool_libs=$enable_shared
17554
17555 # Whether or not to build static libraries.
17556 build_old_libs=$enable_static
17557
17558 # What type of objects to build.
17559 pic_mode=$pic_mode
17560
17561 # Whether or not to optimize for fast installation.
17562 fast_install=$enable_fast_install
17563
17564 # Shell to use when invoking shell scripts.
17565 SHELL=$lt_SHELL
17566
17567 # An echo program that protects backslashes.
17568 ECHO=$lt_ECHO
17569
17570 # The PATH separator for the build system.
17571 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17572
17573 # The host system.
17574 host_alias=$host_alias
17575 host=$host
17576 host_os=$host_os
17577
17578 # The build system.
17579 build_alias=$build_alias
17580 build=$build
17581 build_os=$build_os
17582
17583 # A sed program that does not truncate output.
17584 SED=$lt_SED
17585
17586 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17587 Xsed="\$SED -e 1s/^X//"
17588
17589 # A grep program that handles long lines.
17590 GREP=$lt_GREP
17591
17592 # An ERE matcher.
17593 EGREP=$lt_EGREP
17594
17595 # A literal string matcher.
17596 FGREP=$lt_FGREP
17597
17598 # A BSD- or MS-compatible name lister.
17599 NM=$lt_NM
17600
17601 # Whether we need soft or hard links.
17602 LN_S=$lt_LN_S
17603
17604 # What is the maximum length of a command?
17605 max_cmd_len=$max_cmd_len
17606
17607 # Object file suffix (normally "o").
17608 objext=$ac_objext
17609
17610 # Executable file suffix (normally "").
17611 exeext=$exeext
17612
17613 # whether the shell understands "unset".
17614 lt_unset=$lt_unset
17615
17616 # turn spaces into newlines.
17617 SP2NL=$lt_lt_SP2NL
17618
17619 # turn newlines into spaces.
17620 NL2SP=$lt_lt_NL2SP
17621
17622 # convert \$build file names to \$host format.
17623 to_host_file_cmd=$lt_cv_to_host_file_cmd
17624
17625 # convert \$build files to toolchain format.
17626 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17627
17628 # Method to check whether dependent libraries are shared objects.
17629 deplibs_check_method=$lt_deplibs_check_method
17630
17631 # Command to use when deplibs_check_method = "file_magic".
17632 file_magic_cmd=$lt_file_magic_cmd
17633
17634 # How to find potential files when deplibs_check_method = "file_magic".
17635 file_magic_glob=$lt_file_magic_glob
17636
17637 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17638 want_nocaseglob=$lt_want_nocaseglob
17639
17640 # Command to associate shared and link libraries.
17641 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17642
17643 # The archiver.
17644 AR=$lt_AR
17645
17646 # Flags to create an archive.
17647 AR_FLAGS=$lt_AR_FLAGS
17648
17649 # How to feed a file listing to the archiver.
17650 archiver_list_spec=$lt_archiver_list_spec
17651
17652 # A symbol stripping program.
17653 STRIP=$lt_STRIP
17654
17655 # Commands used to install an old-style archive.
17656 RANLIB=$lt_RANLIB
17657 old_postinstall_cmds=$lt_old_postinstall_cmds
17658 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17659
17660 # Whether to use a lock for old archive extraction.
17661 lock_old_archive_extraction=$lock_old_archive_extraction
17662
17663 # A C compiler.
17664 LTCC=$lt_CC
17665
17666 # LTCC compiler flags.
17667 LTCFLAGS=$lt_CFLAGS
17668
17669 # Take the output of nm and produce a listing of raw symbols and C names.
17670 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17671
17672 # Transform the output of nm in a proper C declaration.
17673 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17674
17675 # Transform the output of nm in a C name address pair.
17676 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17677
17678 # Transform the output of nm in a C name address pair when lib prefix is needed.
17679 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17680
17681 # Specify filename containing input files for \$NM.
17682 nm_file_list_spec=$lt_nm_file_list_spec
17683
17684 # The root where to search for dependent libraries,and in which our libraries should be installed.
17685 lt_sysroot=$lt_sysroot
17686
17687 # The name of the directory that contains temporary libtool files.
17688 objdir=$objdir
17689
17690 # Used to examine libraries when file_magic_cmd begins with "file".
17691 MAGIC_CMD=$MAGIC_CMD
17692
17693 # Must we lock files when doing compilation?
17694 need_locks=$lt_need_locks
17695
17696 # Manifest tool.
17697 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17698
17699 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17700 DSYMUTIL=$lt_DSYMUTIL
17701
17702 # Tool to change global to local symbols on Mac OS X.
17703 NMEDIT=$lt_NMEDIT
17704
17705 # Tool to manipulate fat objects and archives on Mac OS X.
17706 LIPO=$lt_LIPO
17707
17708 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17709 OTOOL=$lt_OTOOL
17710
17711 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17712 OTOOL64=$lt_OTOOL64
17713
17714 # Old archive suffix (normally "a").
17715 libext=$libext
17716
17717 # Shared library suffix (normally ".so").
17718 shrext_cmds=$lt_shrext_cmds
17719
17720 # The commands to extract the exported symbol list from a shared archive.
17721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17722
17723 # Variables whose values should be saved in libtool wrapper scripts and
17724 # restored at link time.
17725 variables_saved_for_relink=$lt_variables_saved_for_relink
17726
17727 # Do we need the "lib" prefix for modules?
17728 need_lib_prefix=$need_lib_prefix
17729
17730 # Do we need a version for libraries?
17731 need_version=$need_version
17732
17733 # Library versioning type.
17734 version_type=$version_type
17735
17736 # Shared library runtime path variable.
17737 runpath_var=$runpath_var
17738
17739 # Shared library path variable.
17740 shlibpath_var=$shlibpath_var
17741
17742 # Is shlibpath searched before the hard-coded library search path?
17743 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17744
17745 # Format of library name prefix.
17746 libname_spec=$lt_libname_spec
17747
17748 # List of archive names.  First name is the real one, the rest are links.
17749 # The last name is the one that the linker finds with -lNAME
17750 library_names_spec=$lt_library_names_spec
17751
17752 # The coded name of the library, if different from the real name.
17753 soname_spec=$lt_soname_spec
17754
17755 # Permission mode override for installation of shared libraries.
17756 install_override_mode=$lt_install_override_mode
17757
17758 # Command to use after installation of a shared archive.
17759 postinstall_cmds=$lt_postinstall_cmds
17760
17761 # Command to use after uninstallation of a shared archive.
17762 postuninstall_cmds=$lt_postuninstall_cmds
17763
17764 # Commands used to finish a libtool library installation in a directory.
17765 finish_cmds=$lt_finish_cmds
17766
17767 # As "finish_cmds", except a single script fragment to be evaled but
17768 # not shown.
17769 finish_eval=$lt_finish_eval
17770
17771 # Whether we should hardcode library paths into libraries.
17772 hardcode_into_libs=$hardcode_into_libs
17773
17774 # Compile-time system search path for libraries.
17775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17776
17777 # Run-time system search path for libraries.
17778 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17779
17780 # Whether dlopen is supported.
17781 dlopen_support=$enable_dlopen
17782
17783 # Whether dlopen of programs is supported.
17784 dlopen_self=$enable_dlopen_self
17785
17786 # Whether dlopen of statically linked programs is supported.
17787 dlopen_self_static=$enable_dlopen_self_static
17788
17789 # Commands to strip libraries.
17790 old_striplib=$lt_old_striplib
17791 striplib=$lt_striplib
17792
17793
17794 # The linker used to build libraries.
17795 LD=$lt_LD
17796
17797 # How to create reloadable object files.
17798 reload_flag=$lt_reload_flag
17799 reload_cmds=$lt_reload_cmds
17800
17801 # Commands used to build an old-style archive.
17802 old_archive_cmds=$lt_old_archive_cmds
17803
17804 # A language specific compiler.
17805 CC=$lt_compiler
17806
17807 # Is the compiler the GNU compiler?
17808 with_gcc=$GCC
17809
17810 # Compiler flag to turn off builtin functions.
17811 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17812
17813 # Additional compiler flags for building library objects.
17814 pic_flag=$lt_lt_prog_compiler_pic
17815
17816 # How to pass a linker flag through the compiler.
17817 wl=$lt_lt_prog_compiler_wl
17818
17819 # Compiler flag to prevent dynamic linking.
17820 link_static_flag=$lt_lt_prog_compiler_static
17821
17822 # Does compiler simultaneously support -c and -o options?
17823 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17824
17825 # Whether or not to add -lc for building shared libraries.
17826 build_libtool_need_lc=$archive_cmds_need_lc
17827
17828 # Whether or not to disallow shared libs when runtime libs are static.
17829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17830
17831 # Compiler flag to allow reflexive dlopens.
17832 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17833
17834 # Compiler flag to generate shared objects directly from archives.
17835 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17836
17837 # Whether the compiler copes with passing no objects directly.
17838 compiler_needs_object=$lt_compiler_needs_object
17839
17840 # Create an old-style archive from a shared archive.
17841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17842
17843 # Create a temporary old-style archive to link instead of a shared archive.
17844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17845
17846 # Commands used to build a shared archive.
17847 archive_cmds=$lt_archive_cmds
17848 archive_expsym_cmds=$lt_archive_expsym_cmds
17849
17850 # Commands used to build a loadable module if different from building
17851 # a shared archive.
17852 module_cmds=$lt_module_cmds
17853 module_expsym_cmds=$lt_module_expsym_cmds
17854
17855 # Whether we are building with GNU ld or not.
17856 with_gnu_ld=$lt_with_gnu_ld
17857
17858 # Flag that allows shared libraries with undefined symbols to be built.
17859 allow_undefined_flag=$lt_allow_undefined_flag
17860
17861 # Flag that enforces no undefined symbols.
17862 no_undefined_flag=$lt_no_undefined_flag
17863
17864 # Flag to hardcode \$libdir into a binary during linking.
17865 # This must work even if \$libdir does not exist
17866 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17867
17868 # Whether we need a single "-rpath" flag with a separated argument.
17869 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17870
17871 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17872 # DIR into the resulting binary.
17873 hardcode_direct=$hardcode_direct
17874
17875 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17876 # DIR into the resulting binary and the resulting library dependency is
17877 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17878 # library is relocated.
17879 hardcode_direct_absolute=$hardcode_direct_absolute
17880
17881 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17882 # into the resulting binary.
17883 hardcode_minus_L=$hardcode_minus_L
17884
17885 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17886 # into the resulting binary.
17887 hardcode_shlibpath_var=$hardcode_shlibpath_var
17888
17889 # Set to "yes" if building a shared library automatically hardcodes DIR
17890 # into the library and all subsequent libraries and executables linked
17891 # against it.
17892 hardcode_automatic=$hardcode_automatic
17893
17894 # Set to yes if linker adds runtime paths of dependent libraries
17895 # to runtime path list.
17896 inherit_rpath=$inherit_rpath
17897
17898 # Whether libtool must link a program against all its dependency libraries.
17899 link_all_deplibs=$link_all_deplibs
17900
17901 # Set to "yes" if exported symbols are required.
17902 always_export_symbols=$always_export_symbols
17903
17904 # The commands to list exported symbols.
17905 export_symbols_cmds=$lt_export_symbols_cmds
17906
17907 # Symbols that should not be listed in the preloaded symbols.
17908 exclude_expsyms=$lt_exclude_expsyms
17909
17910 # Symbols that must always be exported.
17911 include_expsyms=$lt_include_expsyms
17912
17913 # Commands necessary for linking programs (against libraries) with templates.
17914 prelink_cmds=$lt_prelink_cmds
17915
17916 # Commands necessary for finishing linking programs.
17917 postlink_cmds=$lt_postlink_cmds
17918
17919 # Specify filename containing input files.
17920 file_list_spec=$lt_file_list_spec
17921
17922 # How to hardcode a shared library path into an executable.
17923 hardcode_action=$hardcode_action
17924
17925 # ### END LIBTOOL CONFIG
17926
17927 _LT_EOF
17928
17929   case $host_os in
17930   aix3*)
17931     cat <<\_LT_EOF >> "$cfgfile"
17932 # AIX sometimes has problems with the GCC collect2 program.  For some
17933 # reason, if we set the COLLECT_NAMES environment variable, the problems
17934 # vanish in a puff of smoke.
17935 if test "X${COLLECT_NAMES+set}" != Xset; then
17936   COLLECT_NAMES=
17937   export COLLECT_NAMES
17938 fi
17939 _LT_EOF
17940     ;;
17941   esac
17942
17943
17944 ltmain="$ac_aux_dir/ltmain.sh"
17945
17946
17947   # We use sed instead of cat because bash on DJGPP gets confused if
17948   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17949   # text mode, it properly converts lines to CR/LF.  This bash problem
17950   # is reportedly fixed, but why not run on old versions too?
17951   sed '$q' "$ltmain" >> "$cfgfile" \
17952      || (rm -f "$cfgfile"; exit 1)
17953
17954   if test x"$xsi_shell" = xyes; then
17955   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17956 func_dirname ()\
17957 {\
17958 \    case ${1} in\
17959 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17960 \      *  ) func_dirname_result="${3}" ;;\
17961 \    esac\
17962 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17963   && mv -f "$cfgfile.tmp" "$cfgfile" \
17964     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17965 test 0 -eq $? || _lt_function_replace_fail=:
17966
17967
17968   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17969 func_basename ()\
17970 {\
17971 \    func_basename_result="${1##*/}"\
17972 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17973   && mv -f "$cfgfile.tmp" "$cfgfile" \
17974     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17975 test 0 -eq $? || _lt_function_replace_fail=:
17976
17977
17978   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17979 func_dirname_and_basename ()\
17980 {\
17981 \    case ${1} in\
17982 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17983 \      *  ) func_dirname_result="${3}" ;;\
17984 \    esac\
17985 \    func_basename_result="${1##*/}"\
17986 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17987   && mv -f "$cfgfile.tmp" "$cfgfile" \
17988     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17989 test 0 -eq $? || _lt_function_replace_fail=:
17990
17991
17992   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17993 func_stripname ()\
17994 {\
17995 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17996 \    # positional parameters, so assign one to ordinary parameter first.\
17997 \    func_stripname_result=${3}\
17998 \    func_stripname_result=${func_stripname_result#"${1}"}\
17999 \    func_stripname_result=${func_stripname_result%"${2}"}\
18000 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18001   && mv -f "$cfgfile.tmp" "$cfgfile" \
18002     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18003 test 0 -eq $? || _lt_function_replace_fail=:
18004
18005
18006   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18007 func_split_long_opt ()\
18008 {\
18009 \    func_split_long_opt_name=${1%%=*}\
18010 \    func_split_long_opt_arg=${1#*=}\
18011 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18012   && mv -f "$cfgfile.tmp" "$cfgfile" \
18013     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18014 test 0 -eq $? || _lt_function_replace_fail=:
18015
18016
18017   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18018 func_split_short_opt ()\
18019 {\
18020 \    func_split_short_opt_arg=${1#??}\
18021 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18022 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18023   && mv -f "$cfgfile.tmp" "$cfgfile" \
18024     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18025 test 0 -eq $? || _lt_function_replace_fail=:
18026
18027
18028   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18029 func_lo2o ()\
18030 {\
18031 \    case ${1} in\
18032 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18033 \      *)    func_lo2o_result=${1} ;;\
18034 \    esac\
18035 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18036   && mv -f "$cfgfile.tmp" "$cfgfile" \
18037     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18038 test 0 -eq $? || _lt_function_replace_fail=:
18039
18040
18041   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18042 func_xform ()\
18043 {\
18044     func_xform_result=${1%.*}.lo\
18045 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18046   && mv -f "$cfgfile.tmp" "$cfgfile" \
18047     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18048 test 0 -eq $? || _lt_function_replace_fail=:
18049
18050
18051   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18052 func_arith ()\
18053 {\
18054     func_arith_result=$(( $* ))\
18055 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18056   && mv -f "$cfgfile.tmp" "$cfgfile" \
18057     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18058 test 0 -eq $? || _lt_function_replace_fail=:
18059
18060
18061   sed -e '/^func_len ()$/,/^} # func_len /c\
18062 func_len ()\
18063 {\
18064     func_len_result=${#1}\
18065 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18066   && mv -f "$cfgfile.tmp" "$cfgfile" \
18067     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18068 test 0 -eq $? || _lt_function_replace_fail=:
18069
18070 fi
18071
18072 if test x"$lt_shell_append" = xyes; then
18073   sed -e '/^func_append ()$/,/^} # func_append /c\
18074 func_append ()\
18075 {\
18076     eval "${1}+=\\${2}"\
18077 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18078   && mv -f "$cfgfile.tmp" "$cfgfile" \
18079     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18080 test 0 -eq $? || _lt_function_replace_fail=:
18081
18082
18083   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18084 func_append_quoted ()\
18085 {\
18086 \    func_quote_for_eval "${2}"\
18087 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18088 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18089   && mv -f "$cfgfile.tmp" "$cfgfile" \
18090     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18091 test 0 -eq $? || _lt_function_replace_fail=:
18092
18093
18094   # Save a `func_append' function call where possible by direct use of '+='
18095   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18096     && mv -f "$cfgfile.tmp" "$cfgfile" \
18097       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18098   test 0 -eq $? || _lt_function_replace_fail=:
18099 else
18100   # Save a `func_append' function call even when '+=' is not available
18101   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18102     && mv -f "$cfgfile.tmp" "$cfgfile" \
18103       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18104   test 0 -eq $? || _lt_function_replace_fail=:
18105 fi
18106
18107 if test x"$_lt_function_replace_fail" = x":"; then
18108   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18109 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18110 fi
18111
18112
18113    mv -f "$cfgfile" "$ofile" ||
18114     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18115   chmod +x "$ofile"
18116
18117  ;;
18118     "$ac_stdint_h":C)
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
18120 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
18121 ac_stdint=$tmp/_stdint.h
18122
18123 echo "#ifndef" $_ac_stdint_h >$ac_stdint
18124 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
18125 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
18126 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
18127 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
18128 if test "_$ac_cv_header_stdint_t" != "_" ; then
18129 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
18130 echo "#include <stdint.h>" >>$ac_stdint
18131 echo "#endif" >>$ac_stdint
18132 echo "#endif" >>$ac_stdint
18133 else
18134
18135 cat >>$ac_stdint <<STDINT_EOF
18136
18137 /* ................... shortcircuit part ........................... */
18138
18139 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
18140 #include <stdint.h>
18141 #else
18142 #include <stddef.h>
18143
18144 /* .................... configured part ............................ */
18145
18146 STDINT_EOF
18147
18148 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
18149 if test "_$ac_cv_header_stdint_x" != "_" ; then
18150   ac_header="$ac_cv_header_stdint_x"
18151   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
18152 else
18153   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
18154 fi
18155
18156 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
18157 if  test "_$ac_cv_header_stdint_o" != "_" ; then
18158   ac_header="$ac_cv_header_stdint_o"
18159   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
18160 else
18161   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
18162 fi
18163
18164 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
18165 if  test "_$ac_cv_header_stdint_u" != "_" ; then
18166   ac_header="$ac_cv_header_stdint_u"
18167   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
18168 else
18169   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
18170 fi
18171
18172 echo "" >>$ac_stdint
18173
18174 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
18175   echo "#include <$ac_header>" >>$ac_stdint
18176   echo "" >>$ac_stdint
18177 fi fi
18178
18179 echo "/* which 64bit typedef has been found */" >>$ac_stdint
18180 if test "$ac_cv_type_uint64_t" = "yes" ; then
18181 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
18182 else
18183 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
18184 fi
18185 if test "$ac_cv_type_u_int64_t" = "yes" ; then
18186 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
18187 else
18188 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
18189 fi
18190 echo "" >>$ac_stdint
18191
18192 echo "/* which type model has been detected */" >>$ac_stdint
18193 if test "_$ac_cv_char_data_model" != "_" ; then
18194 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
18195 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
18196 else
18197 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
18198 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
18199 fi
18200 echo "" >>$ac_stdint
18201
18202 echo "/* whether int_least types were detected */" >>$ac_stdint
18203 if test "$ac_cv_type_int_least32_t" = "yes"; then
18204 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
18205 else
18206 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
18207 fi
18208 echo "/* whether int_fast types were detected */" >>$ac_stdint
18209 if test "$ac_cv_type_int_fast32_t" = "yes"; then
18210 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
18211 else
18212 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
18213 fi
18214 echo "/* whether intmax_t type was detected */" >>$ac_stdint
18215 if test "$ac_cv_type_intmax_t" = "yes"; then
18216 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
18217 else
18218 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
18219 fi
18220 echo "" >>$ac_stdint
18221
18222   cat >>$ac_stdint <<STDINT_EOF
18223 /* .................... detections part ............................ */
18224
18225 /* whether we need to define bitspecific types from compiler base types */
18226 #ifndef _STDINT_HEADER_INTPTR
18227 #ifndef _STDINT_HEADER_UINT32
18228 #ifndef _STDINT_HEADER_U_INT32
18229 #define _STDINT_NEED_INT_MODEL_T
18230 #else
18231 #define _STDINT_HAVE_U_INT_TYPES
18232 #endif
18233 #endif
18234 #endif
18235
18236 #ifdef _STDINT_HAVE_U_INT_TYPES
18237 #undef _STDINT_NEED_INT_MODEL_T
18238 #endif
18239
18240 #ifdef  _STDINT_CHAR_MODEL
18241 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
18242 #ifndef _STDINT_BYTE_MODEL
18243 #define _STDINT_BYTE_MODEL 12
18244 #endif
18245 #endif
18246 #endif
18247
18248 #ifndef _STDINT_HAVE_INT_LEAST32_T
18249 #define _STDINT_NEED_INT_LEAST_T
18250 #endif
18251
18252 #ifndef _STDINT_HAVE_INT_FAST32_T
18253 #define _STDINT_NEED_INT_FAST_T
18254 #endif
18255
18256 #ifndef _STDINT_HEADER_INTPTR
18257 #define _STDINT_NEED_INTPTR_T
18258 #ifndef _STDINT_HAVE_INTMAX_T
18259 #define _STDINT_NEED_INTMAX_T
18260 #endif
18261 #endif
18262
18263
18264 /* .................... definition part ............................ */
18265
18266 /* some system headers have good uint64_t */
18267 #ifndef _HAVE_UINT64_T
18268 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
18269 #define _HAVE_UINT64_T
18270 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
18271 #define _HAVE_UINT64_T
18272 typedef u_int64_t uint64_t;
18273 #endif
18274 #endif
18275
18276 #ifndef _HAVE_UINT64_T
18277 /* .. here are some common heuristics using compiler runtime specifics */
18278 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
18279 #define _HAVE_UINT64_T
18280 #define _HAVE_LONGLONG_UINT64_T
18281 typedef long long int64_t;
18282 typedef unsigned long long uint64_t;
18283
18284 #elif !defined __STRICT_ANSI__
18285 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18286 #define _HAVE_UINT64_T
18287 typedef __int64 int64_t;
18288 typedef unsigned __int64 uint64_t;
18289
18290 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
18291 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
18292 #if !defined _NO_LONGLONG
18293 #define _HAVE_UINT64_T
18294 #define _HAVE_LONGLONG_UINT64_T
18295 typedef long long int64_t;
18296 typedef unsigned long long uint64_t;
18297 #endif
18298
18299 #elif defined __alpha || (defined __mips && defined _ABIN32)
18300 #if !defined _NO_LONGLONG
18301 typedef long int64_t;
18302 typedef unsigned long uint64_t;
18303 #endif
18304   /* compiler/cpu type to define int64_t */
18305 #endif
18306 #endif
18307 #endif
18308
18309 #if defined _STDINT_HAVE_U_INT_TYPES
18310 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
18311 typedef u_int8_t uint8_t;
18312 typedef u_int16_t uint16_t;
18313 typedef u_int32_t uint32_t;
18314
18315 /* glibc compatibility */
18316 #ifndef __int8_t_defined
18317 #define __int8_t_defined
18318 #endif
18319 #endif
18320
18321 #ifdef _STDINT_NEED_INT_MODEL_T
18322 /* we must guess all the basic types. Apart from byte-adressable system, */
18323 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
18324 /* (btw, those nibble-addressable systems are way off, or so we assume) */
18325
18326
18327 #if defined _STDINT_BYTE_MODEL
18328 #if _STDINT_LONG_MODEL+0 == 242
18329 /* 2:4:2 =  IP16 = a normal 16-bit system                */
18330 typedef unsigned char   uint8_t;
18331 typedef unsigned short  uint16_t;
18332 typedef unsigned long   uint32_t;
18333 #ifndef __int8_t_defined
18334 #define __int8_t_defined
18335 typedef          char    int8_t;
18336 typedef          short   int16_t;
18337 typedef          long    int32_t;
18338 #endif
18339 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
18340 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
18341 /* 4:4:4 = ILP32 = a normal 32-bit system                */
18342 typedef unsigned char   uint8_t;
18343 typedef unsigned short  uint16_t;
18344 typedef unsigned int    uint32_t;
18345 #ifndef __int8_t_defined
18346 #define __int8_t_defined
18347 typedef          char    int8_t;
18348 typedef          short   int16_t;
18349 typedef          int     int32_t;
18350 #endif
18351 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
18352 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
18353 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
18354 typedef unsigned char   uint8_t;
18355 typedef unsigned short  uint16_t;
18356 typedef unsigned int    uint32_t;
18357 #ifndef __int8_t_defined
18358 #define __int8_t_defined
18359 typedef          char    int8_t;
18360 typedef          short   int16_t;
18361 typedef          int     int32_t;
18362 #endif
18363 /* this system has a "long" of 64bit */
18364 #ifndef _HAVE_UINT64_T
18365 #define _HAVE_UINT64_T
18366 typedef unsigned long   uint64_t;
18367 typedef          long    int64_t;
18368 #endif
18369 #elif _STDINT_LONG_MODEL+0 == 448
18370 /*      LLP64   a 64-bit system derived from a 32-bit system */
18371 typedef unsigned char   uint8_t;
18372 typedef unsigned short  uint16_t;
18373 typedef unsigned int    uint32_t;
18374 #ifndef __int8_t_defined
18375 #define __int8_t_defined
18376 typedef          char    int8_t;
18377 typedef          short   int16_t;
18378 typedef          int     int32_t;
18379 #endif
18380 /* assuming the system has a "long long" */
18381 #ifndef _HAVE_UINT64_T
18382 #define _HAVE_UINT64_T
18383 #define _HAVE_LONGLONG_UINT64_T
18384 typedef unsigned long long uint64_t;
18385 typedef          long long  int64_t;
18386 #endif
18387 #else
18388 #define _STDINT_NO_INT32_T
18389 #endif
18390 #else
18391 #define _STDINT_NO_INT8_T
18392 #define _STDINT_NO_INT32_T
18393 #endif
18394 #endif
18395
18396 /*
18397  * quote from SunOS-5.8 sys/inttypes.h:
18398  * Use at your own risk.  As of February 1996, the committee is squarely
18399  * behind the fixed sized types; the "least" and "fast" types are still being
18400  * discussed.  The probability that the "fast" types may be removed before
18401  * the standard is finalized is high enough that they are not currently
18402  * implemented.
18403  */
18404
18405 #if defined _STDINT_NEED_INT_LEAST_T
18406 typedef  int8_t    int_least8_t;
18407 typedef  int16_t   int_least16_t;
18408 typedef  int32_t   int_least32_t;
18409 #ifdef _HAVE_UINT64_T
18410 typedef  int64_t   int_least64_t;
18411 #endif
18412
18413 typedef uint8_t   uint_least8_t;
18414 typedef uint16_t  uint_least16_t;
18415 typedef uint32_t  uint_least32_t;
18416 #ifdef _HAVE_UINT64_T
18417 typedef uint64_t  uint_least64_t;
18418 #endif
18419   /* least types */
18420 #endif
18421
18422 #if defined _STDINT_NEED_INT_FAST_T
18423 typedef  int8_t    int_fast8_t;
18424 typedef  int       int_fast16_t;
18425 typedef  int32_t   int_fast32_t;
18426 #ifdef _HAVE_UINT64_T
18427 typedef  int64_t   int_fast64_t;
18428 #endif
18429
18430 typedef uint8_t   uint_fast8_t;
18431 typedef unsigned  uint_fast16_t;
18432 typedef uint32_t  uint_fast32_t;
18433 #ifdef _HAVE_UINT64_T
18434 typedef uint64_t  uint_fast64_t;
18435 #endif
18436   /* fast types */
18437 #endif
18438
18439 #ifdef _STDINT_NEED_INTMAX_T
18440 #ifdef _HAVE_UINT64_T
18441 typedef  int64_t       intmax_t;
18442 typedef uint64_t      uintmax_t;
18443 #else
18444 typedef          long  intmax_t;
18445 typedef unsigned long uintmax_t;
18446 #endif
18447 #endif
18448
18449 #ifdef _STDINT_NEED_INTPTR_T
18450 #ifndef __intptr_t_defined
18451 #define __intptr_t_defined
18452 /* we encourage using "long" to store pointer values, never use "int" ! */
18453 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
18454 typedef  unsigned int   uintptr_t;
18455 typedef           int    intptr_t;
18456 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
18457 typedef  unsigned long  uintptr_t;
18458 typedef           long   intptr_t;
18459 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
18460 typedef        uint64_t uintptr_t;
18461 typedef         int64_t  intptr_t;
18462 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
18463 typedef  unsigned long  uintptr_t;
18464 typedef           long   intptr_t;
18465 #endif
18466 #endif
18467 #endif
18468
18469 /* The ISO C99 standard specifies that in C++ implementations these
18470    should only be defined if explicitly requested.  */
18471 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
18472 #ifndef UINT32_C
18473
18474 /* Signed.  */
18475 # define INT8_C(c)      c
18476 # define INT16_C(c)     c
18477 # define INT32_C(c)     c
18478 # ifdef _HAVE_LONGLONG_UINT64_T
18479 #  define INT64_C(c)    c ## L
18480 # else
18481 #  define INT64_C(c)    c ## LL
18482 # endif
18483
18484 /* Unsigned.  */
18485 # define UINT8_C(c)     c ## U
18486 # define UINT16_C(c)    c ## U
18487 # define UINT32_C(c)    c ## U
18488 # ifdef _HAVE_LONGLONG_UINT64_T
18489 #  define UINT64_C(c)   c ## UL
18490 # else
18491 #  define UINT64_C(c)   c ## ULL
18492 # endif
18493
18494 /* Maximal type.  */
18495 # ifdef _HAVE_LONGLONG_UINT64_T
18496 #  define INTMAX_C(c)   c ## L
18497 #  define UINTMAX_C(c)  c ## UL
18498 # else
18499 #  define INTMAX_C(c)   c ## LL
18500 #  define UINTMAX_C(c)  c ## ULL
18501 # endif
18502
18503   /* literalnumbers */
18504 #endif
18505 #endif
18506
18507 /* These limits are merily those of a two complement byte-oriented system */
18508
18509 /* Minimum of signed integral types.  */
18510 # define INT8_MIN               (-128)
18511 # define INT16_MIN              (-32767-1)
18512 # define INT32_MIN              (-2147483647-1)
18513 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
18514 /* Maximum of signed integral types.  */
18515 # define INT8_MAX               (127)
18516 # define INT16_MAX              (32767)
18517 # define INT32_MAX              (2147483647)
18518 # define INT64_MAX              (__INT64_C(9223372036854775807))
18519
18520 /* Maximum of unsigned integral types.  */
18521 # define UINT8_MAX              (255)
18522 # define UINT16_MAX             (65535)
18523 # define UINT32_MAX             (4294967295U)
18524 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
18525
18526 /* Minimum of signed integral types having a minimum size.  */
18527 # define INT_LEAST8_MIN         INT8_MIN
18528 # define INT_LEAST16_MIN        INT16_MIN
18529 # define INT_LEAST32_MIN        INT32_MIN
18530 # define INT_LEAST64_MIN        INT64_MIN
18531 /* Maximum of signed integral types having a minimum size.  */
18532 # define INT_LEAST8_MAX         INT8_MAX
18533 # define INT_LEAST16_MAX        INT16_MAX
18534 # define INT_LEAST32_MAX        INT32_MAX
18535 # define INT_LEAST64_MAX        INT64_MAX
18536
18537 /* Maximum of unsigned integral types having a minimum size.  */
18538 # define UINT_LEAST8_MAX        UINT8_MAX
18539 # define UINT_LEAST16_MAX       UINT16_MAX
18540 # define UINT_LEAST32_MAX       UINT32_MAX
18541 # define UINT_LEAST64_MAX       UINT64_MAX
18542
18543   /* shortcircuit*/
18544 #endif
18545   /* once */
18546 #endif
18547 #endif
18548 STDINT_EOF
18549 fi
18550     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
18551       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
18552 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
18553     else
18554       ac_dir=`$as_dirname -- "$ac_stdint_h" ||
18555 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18556          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
18557          X"$ac_stdint_h" : 'X\(//\)$' \| \
18558          X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
18559 $as_echo X"$ac_stdint_h" |
18560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18561             s//\1/
18562             q
18563           }
18564           /^X\(\/\/\)[^/].*/{
18565             s//\1/
18566             q
18567           }
18568           /^X\(\/\/\)$/{
18569             s//\1/
18570             q
18571           }
18572           /^X\(\/\).*/{
18573             s//\1/
18574             q
18575           }
18576           s/.*/./; q'`
18577       as_dir="$ac_dir"; as_fn_mkdir_p
18578       rm -f $ac_stdint_h
18579       mv $ac_stdint $ac_stdint_h
18580     fi
18581  ;;
18582
18583   esac
18584 done # for ac_tag
18585
18586
18587 as_fn_exit 0
18588 _ACEOF
18589 ac_clean_files=$ac_clean_files_save
18590
18591 test $ac_write_fail = 0 ||
18592   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18593
18594
18595 # configure is writing to config.log, and then calls config.status.
18596 # config.status does its own redirection, appending to config.log.
18597 # Unfortunately, on DOS this fails, as config.log is still kept open
18598 # by configure, so config.status won't be able to write to it; its
18599 # output is simply discarded.  So we exec the FD to /dev/null,
18600 # effectively closing config.log, so it can be properly (re)opened and
18601 # appended to by config.status.  When coming back to configure, we
18602 # need to make the FD available again.
18603 if test "$no_create" != yes; then
18604   ac_cs_success=:
18605   ac_config_status_args=
18606   test "$silent" = yes &&
18607     ac_config_status_args="$ac_config_status_args --quiet"
18608   exec 5>/dev/null
18609   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18610   exec 5>>config.log
18611   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18612   # would make configure fail if this is the last instruction.
18613   $ac_cs_success || as_fn_exit 1
18614 fi
18615 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18616   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18617 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18618 fi
18619