Add uuid in configure file
[platform/upstream/fontconfig.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for fontconfig 2.14.2.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else $as_nop
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" ""        $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # Find who we are.  Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90   *[\\/]* ) as_myself=$0 ;;
91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94   IFS=$as_save_IFS
95   case $as_dir in #(((
96     '') as_dir=./ ;;
97     */) ;;
98     *) as_dir=$as_dir/ ;;
99   esac
100     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118   # into an infinite loop, continuously re-executing ourselves.
119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120     _as_can_reexec=no; export _as_can_reexec;
121     # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129   *v*x* | *x*v* ) as_opts=-vx ;;
130   *v* ) as_opts=-v ;;
131   *x* ) as_opts=-x ;;
132   * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139   fi
140   # We don't want this to propagate to other subprocesses.
141           { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146   emulate sh
147   NULLCMD=:
148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149   # is contrary to our usage.  Disable this feature.
150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
151   setopt NO_GLOB_SUBST
152 else \$as_nop
153   case \`(set -o) 2>/dev/null\` in #(
154   *posix*) :
155     set -o posix ;; #(
156   *) :
157      ;;
158 esac
159 fi
160 "
161   as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176   exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191     PATH=/empty FPATH=/empty; export PATH FPATH
192     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195   if (eval "$as_required") 2>/dev/null
196 then :
197   as_have_required=yes
198 else $as_nop
199   as_have_required=no
200 fi
201   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209   IFS=$as_save_IFS
210   case $as_dir in #(((
211     '') as_dir=./ ;;
212     */) ;;
213     *) as_dir=$as_dir/ ;;
214   esac
215   as_found=:
216   case $as_dir in #(
217          /*)
218            for as_base in sh bash ksh sh5; do
219              # Try only shells that exist, to save several forks.
220              as_shell=$as_dir$as_base
221              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227   break 2
228 fi
229 fi
230            done;;
231        esac
232   as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242   CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247       if test "x$CONFIG_SHELL" != x
248 then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno
271 then :
272   printf "%s\n" "$0: This script requires a shell more modern than all"
273   printf "%s\n" "$0: the shells that I found on your system."
274   if test ${ZSH_VERSION+y} ; then
275     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277   else
278     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284   fi
285   exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303   { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313   return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321   set +e
322   as_fn_set_status $1
323   exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330   return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340   case $as_dir in #(
341   -*) as_dir=./$as_dir;;
342   esac
343   test -d "$as_dir" || eval $as_mkdir_p || {
344     as_dirs=
345     while :; do
346       case $as_dir in #(
347       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348       *) as_qdir=$as_dir;;
349       esac
350       as_dirs="'$as_qdir' $as_dirs"
351       as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353          X"$as_dir" : 'X\(//\)[^/]' \| \
354          X"$as_dir" : 'X\(//\)$' \| \
355          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358             s//\1/
359             q
360           }
361           /^X\(\/\/\)[^/].*/{
362             s//\1/
363             q
364           }
365           /^X\(\/\/\)$/{
366             s//\1/
367             q
368           }
369           /^X\(\/\).*/{
370             s//\1/
371             q
372           }
373           s/.*/./; q'`
374       test -d "$as_dir" && break
375     done
376     test -z "$as_dirs" || eval "mkdir $as_dirs"
377   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387   test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397   eval 'as_fn_append ()
398   {
399     eval $1+=\$2
400   }'
401 else $as_nop
402   as_fn_append ()
403   {
404     eval $1=\$$1\$2
405   }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415   eval 'as_fn_arith ()
416   {
417     as_val=$(( $* ))
418   }'
419 else $as_nop
420   as_fn_arith ()
421   {
422     as_val=`expr "$@" || test $? -eq 1`
423   }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431   return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442   as_status=$1; test $as_status -eq 0 && as_status=1
443   if test "$4"; then
444     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446   fi
447   printf "%s\n" "$as_me: error: $2" >&2
448   as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452    test "X`expr 00001 : '.*\(...\)'`" = X001; then
453   as_expr=expr
454 else
455   as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459   as_basename=basename
460 else
461   as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472          X"$0" : 'X\(//\)$' \| \
473          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475     sed '/^.*\/\([^/][^/]*\)\/*$/{
476             s//\1/
477             q
478           }
479           /^X\/\(\/\/\)$/{
480             s//\1/
481             q
482           }
483           /^X\/\(\/\).*/{
484             s//\1/
485             q
486           }
487           s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497   as_lineno_1=$LINENO as_lineno_1a=$LINENO
498   as_lineno_2=$LINENO as_lineno_2a=$LINENO
499   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502   sed -n '
503     p
504     /[$]LINENO/=
505   ' <$as_myself |
506     sed '
507       s/[$]LINENO.*/&-/
508       t lineno
509       b
510       :lineno
511       N
512       :loop
513       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514       t loop
515       s/-\n.*//
516     ' >$as_me.lineno &&
517   chmod +x "$as_me.lineno" ||
518     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521   # already done that, so ensure we don't try to do so again and fall
522   # in an infinite loop.  This has already happened in practice.
523   _as_can_reexec=no; export _as_can_reexec
524   # Don't try to exec as it changes $[0], causing all sort of problems
525   # (the dirname of $[0] is not the place where we might find the
526   # original and so on.  Autoconf is especially sensitive to this).
527   . "./$as_me.lineno"
528   # Exit status is that of the last command.
529   exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539   case `echo 'xy\c'` in
540   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
541   xy)  ECHO_C='\c';;
542   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543        ECHO_T=' ';;
544   esac;;
545 *)
546   ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n.  New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558   rm -f conf$$.dir/conf$$.file
559 else
560   rm -f conf$$.dir
561   mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564   if ln -s conf$$.file conf$$ 2>/dev/null; then
565     as_ln_s='ln -s'
566     # ... but there are two gotchas:
567     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569     # In both cases, we have to default to `cp -pR'.
570     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571       as_ln_s='cp -pR'
572   elif ln conf$$.file conf$$ 2>/dev/null; then
573     as_ln_s=ln
574   else
575     as_ln_s='cp -pR'
576   fi
577 else
578   as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584   as_mkdir_p='mkdir -p "$as_dir"'
585 else
586   test -d ./-p && rmdir ./-p
587   as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='fontconfig'
624 PACKAGE_TARNAME='fontconfig'
625 PACKAGE_VERSION='2.14.2'
626 PACKAGE_STRING='fontconfig 2.14.2'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new'
628 PACKAGE_URL=''
629
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 gt_needs=
663 ac_func_c_list=
664 ac_subst_vars='am__EXEEXT_FALSE
665 am__EXEEXT_TRUE
666 LTLIBOBJS
667 LIBOBJS
668 PKGCONFIG_REQUIRES_PRIVATELY
669 PKGCONFIG_REQUIRES
670 ENABLE_CACHE_BUILD_FALSE
671 ENABLE_CACHE_BUILD_TRUE
672 DOCMAN3
673 ENABLE_DOCS_FALSE
674 ENABLE_DOCS_TRUE
675 USEDOCBOOK_FALSE
676 USEDOCBOOK_TRUE
677 HASDOCBOOK
678 HAVE_PTHREAD_FALSE
679 HAVE_PTHREAD_TRUE
680 PTHREAD_CFLAGS
681 PTHREAD_LIBS
682 PTHREAD_CC
683 ax_pthread_config
684 XMLDIR
685 CONFIGDIR
686 BASECONFIGDIR
687 TEMPLATEDIR
688 FC_FONTDATE
689 FC_CACHEDIR
690 fc_cachedir
691 FC_FONTPATH
692 FC_ADD_FONTS
693 FC_DEFAULT_FONTS
694 PREFERRED_HINTING
695 PREFERRED_SUB_PIXEL_RENDERING
696 ENABLE_JSONC_FALSE
697 ENABLE_JSONC_TRUE
698 JSONC_LIBS
699 JSONC_CFLAGS
700 LIBXML2_LIBS
701 LIBXML2_CFLAGS
702 PKG_EXPAT_LIBS
703 PKG_EXPAT_CFLAGS
704 HAVE_XMLPARSE_H
705 EXPAT_LIBS
706 EXPAT_CFLAGS
707 UUID_LIBS
708 UUID_CFLAGS
709 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE
710 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE
711 FREETYPE_LIBS
712 FREETYPE_CFLAGS
713 ICONV_LIBS
714 ICONV_CFLAGS
715 ENABLE_SHARED_FALSE
716 ENABLE_SHARED_TRUE
717 CROSS_COMPILING_FALSE
718 CROSS_COMPILING_TRUE
719 EXEEXT_FOR_BUILD
720 CC_FOR_BUILD
721 WARN_CFLAGS
722 MS_LIB_AVAILABLE_FALSE
723 MS_LIB_AVAILABLE_TRUE
724 ms_librarian
725 POSUB
726 LTLIBINTL
727 LIBINTL
728 INTLLIBS
729 LTLIBICONV
730 LIBICONV
731 INTL_MACOSX_LIBS
732 CPP
733 XGETTEXT_EXTRA_OPTIONS
734 MSGMERGE
735 XGETTEXT_015
736 XGETTEXT
737 GMSGFMT_015
738 MSGFMT_015
739 GMSGFMT
740 MSGFMT
741 GETTEXT_MACRO_VERSION
742 USE_NLS
743 GETTEXT_PACKAGE
744 OS_DARWIN_FALSE
745 OS_DARWIN_TRUE
746 OS_WIN32_FALSE
747 OS_WIN32_TRUE
748 LIBT_CURRENT_MINUS_AGE
749 LIBT_VERSION_INFO
750 LIBT_REVISION
751 LIBT_CURRENT
752 LT_SYS_LIBRARY_PATH
753 OTOOL64
754 OTOOL
755 LIPO
756 NMEDIT
757 DSYMUTIL
758 MANIFEST_TOOL
759 RANLIB
760 ac_ct_AR
761 AR
762 FILECMD
763 NM
764 ac_ct_DUMPBIN
765 DUMPBIN
766 LD
767 FGREP
768 EGREP
769 GREP
770 SED
771 host_os
772 host_vendor
773 host_cpu
774 host
775 build_os
776 build_vendor
777 build_cpu
778 build
779 LIBTOOL
780 OBJDUMP
781 DLLTOOL
782 AS
783 RM
784 pkgpyexecdir
785 pyexecdir
786 pkgpythondir
787 pythondir
788 PYTHON_EXEC_PREFIX
789 PYTHON_PREFIX
790 PYTHON_PLATFORM
791 PYTHON_VERSION
792 PYTHON
793 GPERF
794 GIT
795 pkgconfigdir
796 PKG_CONFIG_LIBDIR
797 PKG_CONFIG_PATH
798 PKG_CONFIG
799 LN_S
800 am__fastdepCC_FALSE
801 am__fastdepCC_TRUE
802 CCDEPMODE
803 am__nodep
804 AMDEPBACKSLASH
805 AMDEP_FALSE
806 AMDEP_TRUE
807 am__include
808 DEPDIR
809 OBJEXT
810 EXEEXT
811 ac_ct_CC
812 CPPFLAGS
813 LDFLAGS
814 CFLAGS
815 CC
816 AM_BACKSLASH
817 AM_DEFAULT_VERBOSITY
818 AM_DEFAULT_V
819 AM_V
820 CSCOPE
821 ETAGS
822 CTAGS
823 am__untar
824 am__tar
825 AMTAR
826 am__leading_dot
827 SET_MAKE
828 AWK
829 mkdir_p
830 MKDIR_P
831 INSTALL_STRIP_PROGRAM
832 STRIP
833 install_sh
834 MAKEINFO
835 AUTOHEADER
836 AUTOMAKE
837 AUTOCONF
838 ACLOCAL
839 VERSION
840 PACKAGE
841 CYGPATH_W
842 am__isrc
843 INSTALL_DATA
844 INSTALL_SCRIPT
845 INSTALL_PROGRAM
846 target_alias
847 host_alias
848 build_alias
849 LIBS
850 ECHO_T
851 ECHO_N
852 ECHO_C
853 DEFS
854 mandir
855 localedir
856 libdir
857 psdir
858 pdfdir
859 dvidir
860 htmldir
861 infodir
862 docdir
863 oldincludedir
864 includedir
865 runstatedir
866 localstatedir
867 sharedstatedir
868 sysconfdir
869 datadir
870 datarootdir
871 libexecdir
872 sbindir
873 bindir
874 program_transform_name
875 prefix
876 exec_prefix
877 PACKAGE_URL
878 PACKAGE_BUGREPORT
879 PACKAGE_STRING
880 PACKAGE_VERSION
881 PACKAGE_TARNAME
882 PACKAGE_NAME
883 PATH_SEPARATOR
884 SHELL
885 am__quote'
886 ac_subst_files=''
887 ac_user_opts='
888 enable_option_checking
889 enable_silent_rules
890 enable_dependency_tracking
891 enable_largefile
892 with_pkgconfigdir
893 with_python_sys_prefix
894 with_python_prefix
895 with_python_exec_prefix
896 enable_static
897 enable_shared
898 with_pic
899 enable_fast_install
900 with_aix_soname
901 with_gnu_ld
902 with_sysroot
903 enable_libtool_lock
904 enable_nls
905 enable_rpath
906 with_libiconv_prefix
907 with_libintl_prefix
908 with_arch
909 enable_iconv
910 with_libiconv
911 with_libiconv_includes
912 with_libiconv_lib
913 with_expat
914 with_expat_includes
915 with_expat_lib
916 enable_libxml2
917 with_default_sub_pixel_rendering
918 with_default_hinting
919 with_default_fonts
920 with_add_fonts
921 with_cache_dir
922 with_templatedir
923 with_baseconfigdir
924 with_configdir
925 with_xmldir
926 enable_docbook
927 enable_docs
928 enable_cache_build
929 '
930       ac_precious_vars='build_alias
931 host_alias
932 target_alias
933 CC
934 CFLAGS
935 LDFLAGS
936 LIBS
937 CPPFLAGS
938 PKG_CONFIG
939 PKG_CONFIG_PATH
940 PKG_CONFIG_LIBDIR
941 PYTHON
942 LT_SYS_LIBRARY_PATH
943 CPP
944 CC_FOR_BUILD
945 FREETYPE_CFLAGS
946 FREETYPE_LIBS
947 UUID_CFLAGS
948 UUID_LIBS
949 EXPAT_CFLAGS
950 EXPAT_LIBS
951 LIBXML2_CFLAGS
952 LIBXML2_LIBS
953 JSONC_CFLAGS
954 JSONC_LIBS'
955
956
957 # Initialize some variables set by options.
958 ac_init_help=
959 ac_init_version=false
960 ac_unrecognized_opts=
961 ac_unrecognized_sep=
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
964 cache_file=/dev/null
965 exec_prefix=NONE
966 no_create=
967 no_recursion=
968 prefix=NONE
969 program_prefix=NONE
970 program_suffix=NONE
971 program_transform_name=s,x,x,
972 silent=
973 site=
974 srcdir=
975 verbose=
976 x_includes=NONE
977 x_libraries=NONE
978
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir='${exec_prefix}/bin'
986 sbindir='${exec_prefix}/sbin'
987 libexecdir='${exec_prefix}/libexec'
988 datarootdir='${prefix}/share'
989 datadir='${datarootdir}'
990 sysconfdir='${prefix}/etc'
991 sharedstatedir='${prefix}/com'
992 localstatedir='${prefix}/var'
993 runstatedir='${localstatedir}/run'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997 infodir='${datarootdir}/info'
998 htmldir='${docdir}'
999 dvidir='${docdir}'
1000 pdfdir='${docdir}'
1001 psdir='${docdir}'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1005
1006 ac_prev=
1007 ac_dashdash=
1008 for ac_option
1009 do
1010   # If the previous option needs an argument, assign it.
1011   if test -n "$ac_prev"; then
1012     eval $ac_prev=\$ac_option
1013     ac_prev=
1014     continue
1015   fi
1016
1017   case $ac_option in
1018   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019   *=)   ac_optarg= ;;
1020   *)    ac_optarg=yes ;;
1021   esac
1022
1023   case $ac_dashdash$ac_option in
1024   --)
1025     ac_dashdash=yes ;;
1026
1027   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028     ac_prev=bindir ;;
1029   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030     bindir=$ac_optarg ;;
1031
1032   -build | --build | --buil | --bui | --bu)
1033     ac_prev=build_alias ;;
1034   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035     build_alias=$ac_optarg ;;
1036
1037   -cache-file | --cache-file | --cache-fil | --cache-fi \
1038   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039     ac_prev=cache_file ;;
1040   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042     cache_file=$ac_optarg ;;
1043
1044   --config-cache | -C)
1045     cache_file=config.cache ;;
1046
1047   -datadir | --datadir | --datadi | --datad)
1048     ac_prev=datadir ;;
1049   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050     datadir=$ac_optarg ;;
1051
1052   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053   | --dataroo | --dataro | --datar)
1054     ac_prev=datarootdir ;;
1055   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057     datarootdir=$ac_optarg ;;
1058
1059   -disable-* | --disable-*)
1060     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061     # Reject names that are not valid shell variable names.
1062     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1064     ac_useropt_orig=$ac_useropt
1065     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1066     case $ac_user_opts in
1067       *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071          ac_unrecognized_sep=', ';;
1072     esac
1073     eval enable_$ac_useropt=no ;;
1074
1075   -docdir | --docdir | --docdi | --doc | --do)
1076     ac_prev=docdir ;;
1077   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078     docdir=$ac_optarg ;;
1079
1080   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081     ac_prev=dvidir ;;
1082   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083     dvidir=$ac_optarg ;;
1084
1085   -enable-* | --enable-*)
1086     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087     # Reject names that are not valid shell variable names.
1088     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1090     ac_useropt_orig=$ac_useropt
1091     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1092     case $ac_user_opts in
1093       *"
1094 "enable_$ac_useropt"
1095 "*) ;;
1096       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097          ac_unrecognized_sep=', ';;
1098     esac
1099     eval enable_$ac_useropt=\$ac_optarg ;;
1100
1101   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103   | --exec | --exe | --ex)
1104     ac_prev=exec_prefix ;;
1105   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107   | --exec=* | --exe=* | --ex=*)
1108     exec_prefix=$ac_optarg ;;
1109
1110   -gas | --gas | --ga | --g)
1111     # Obsolete; use --with-gas.
1112     with_gas=yes ;;
1113
1114   -help | --help | --hel | --he | -h)
1115     ac_init_help=long ;;
1116   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117     ac_init_help=recursive ;;
1118   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119     ac_init_help=short ;;
1120
1121   -host | --host | --hos | --ho)
1122     ac_prev=host_alias ;;
1123   -host=* | --host=* | --hos=* | --ho=*)
1124     host_alias=$ac_optarg ;;
1125
1126   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127     ac_prev=htmldir ;;
1128   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129   | --ht=*)
1130     htmldir=$ac_optarg ;;
1131
1132   -includedir | --includedir | --includedi | --included | --include \
1133   | --includ | --inclu | --incl | --inc)
1134     ac_prev=includedir ;;
1135   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136   | --includ=* | --inclu=* | --incl=* | --inc=*)
1137     includedir=$ac_optarg ;;
1138
1139   -infodir | --infodir | --infodi | --infod | --info | --inf)
1140     ac_prev=infodir ;;
1141   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142     infodir=$ac_optarg ;;
1143
1144   -libdir | --libdir | --libdi | --libd)
1145     ac_prev=libdir ;;
1146   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147     libdir=$ac_optarg ;;
1148
1149   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150   | --libexe | --libex | --libe)
1151     ac_prev=libexecdir ;;
1152   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153   | --libexe=* | --libex=* | --libe=*)
1154     libexecdir=$ac_optarg ;;
1155
1156   -localedir | --localedir | --localedi | --localed | --locale)
1157     ac_prev=localedir ;;
1158   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159     localedir=$ac_optarg ;;
1160
1161   -localstatedir | --localstatedir | --localstatedi | --localstated \
1162   | --localstate | --localstat | --localsta | --localst | --locals)
1163     ac_prev=localstatedir ;;
1164   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166     localstatedir=$ac_optarg ;;
1167
1168   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169     ac_prev=mandir ;;
1170   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171     mandir=$ac_optarg ;;
1172
1173   -nfp | --nfp | --nf)
1174     # Obsolete; use --without-fp.
1175     with_fp=no ;;
1176
1177   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178   | --no-cr | --no-c | -n)
1179     no_create=yes ;;
1180
1181   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183     no_recursion=yes ;;
1184
1185   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187   | --oldin | --oldi | --old | --ol | --o)
1188     ac_prev=oldincludedir ;;
1189   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192     oldincludedir=$ac_optarg ;;
1193
1194   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195     ac_prev=prefix ;;
1196   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197     prefix=$ac_optarg ;;
1198
1199   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200   | --program-pre | --program-pr | --program-p)
1201     ac_prev=program_prefix ;;
1202   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204     program_prefix=$ac_optarg ;;
1205
1206   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207   | --program-suf | --program-su | --program-s)
1208     ac_prev=program_suffix ;;
1209   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211     program_suffix=$ac_optarg ;;
1212
1213   -program-transform-name | --program-transform-name \
1214   | --program-transform-nam | --program-transform-na \
1215   | --program-transform-n | --program-transform- \
1216   | --program-transform | --program-transfor \
1217   | --program-transfo | --program-transf \
1218   | --program-trans | --program-tran \
1219   | --progr-tra | --program-tr | --program-t)
1220     ac_prev=program_transform_name ;;
1221   -program-transform-name=* | --program-transform-name=* \
1222   | --program-transform-nam=* | --program-transform-na=* \
1223   | --program-transform-n=* | --program-transform-=* \
1224   | --program-transform=* | --program-transfor=* \
1225   | --program-transfo=* | --program-transf=* \
1226   | --program-trans=* | --program-tran=* \
1227   | --progr-tra=* | --program-tr=* | --program-t=*)
1228     program_transform_name=$ac_optarg ;;
1229
1230   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231     ac_prev=pdfdir ;;
1232   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233     pdfdir=$ac_optarg ;;
1234
1235   -psdir | --psdir | --psdi | --psd | --ps)
1236     ac_prev=psdir ;;
1237   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238     psdir=$ac_optarg ;;
1239
1240   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241   | -silent | --silent | --silen | --sile | --sil)
1242     silent=yes ;;
1243
1244   -runstatedir | --runstatedir | --runstatedi | --runstated \
1245   | --runstate | --runstat | --runsta | --runst | --runs \
1246   | --run | --ru | --r)
1247     ac_prev=runstatedir ;;
1248   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1249   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1250   | --run=* | --ru=* | --r=*)
1251     runstatedir=$ac_optarg ;;
1252
1253   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1254     ac_prev=sbindir ;;
1255   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1256   | --sbi=* | --sb=*)
1257     sbindir=$ac_optarg ;;
1258
1259   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261   | --sharedst | --shareds | --shared | --share | --shar \
1262   | --sha | --sh)
1263     ac_prev=sharedstatedir ;;
1264   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1267   | --sha=* | --sh=*)
1268     sharedstatedir=$ac_optarg ;;
1269
1270   -site | --site | --sit)
1271     ac_prev=site ;;
1272   -site=* | --site=* | --sit=*)
1273     site=$ac_optarg ;;
1274
1275   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1276     ac_prev=srcdir ;;
1277   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278     srcdir=$ac_optarg ;;
1279
1280   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281   | --syscon | --sysco | --sysc | --sys | --sy)
1282     ac_prev=sysconfdir ;;
1283   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285     sysconfdir=$ac_optarg ;;
1286
1287   -target | --target | --targe | --targ | --tar | --ta | --t)
1288     ac_prev=target_alias ;;
1289   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290     target_alias=$ac_optarg ;;
1291
1292   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293     verbose=yes ;;
1294
1295   -version | --version | --versio | --versi | --vers | -V)
1296     ac_init_version=: ;;
1297
1298   -with-* | --with-*)
1299     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300     # Reject names that are not valid shell variable names.
1301     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302       as_fn_error $? "invalid package name: \`$ac_useropt'"
1303     ac_useropt_orig=$ac_useropt
1304     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1305     case $ac_user_opts in
1306       *"
1307 "with_$ac_useropt"
1308 "*) ;;
1309       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1310          ac_unrecognized_sep=', ';;
1311     esac
1312     eval with_$ac_useropt=\$ac_optarg ;;
1313
1314   -without-* | --without-*)
1315     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1316     # Reject names that are not valid shell variable names.
1317     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318       as_fn_error $? "invalid package name: \`$ac_useropt'"
1319     ac_useropt_orig=$ac_useropt
1320     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1321     case $ac_user_opts in
1322       *"
1323 "with_$ac_useropt"
1324 "*) ;;
1325       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326          ac_unrecognized_sep=', ';;
1327     esac
1328     eval with_$ac_useropt=no ;;
1329
1330   --x)
1331     # Obsolete; use --with-x.
1332     with_x=yes ;;
1333
1334   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335   | --x-incl | --x-inc | --x-in | --x-i)
1336     ac_prev=x_includes ;;
1337   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339     x_includes=$ac_optarg ;;
1340
1341   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343     ac_prev=x_libraries ;;
1344   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346     x_libraries=$ac_optarg ;;
1347
1348   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1349 Try \`$0 --help' for more information"
1350     ;;
1351
1352   *=*)
1353     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1354     # Reject names that are not valid shell variable names.
1355     case $ac_envvar in #(
1356       '' | [0-9]* | *[!_$as_cr_alnum]* )
1357       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1358     esac
1359     eval $ac_envvar=\$ac_optarg
1360     export $ac_envvar ;;
1361
1362   *)
1363     # FIXME: should be removed in autoconf 3.0.
1364     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1365     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1367     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1368     ;;
1369
1370   esac
1371 done
1372
1373 if test -n "$ac_prev"; then
1374   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375   as_fn_error $? "missing argument to $ac_option"
1376 fi
1377
1378 if test -n "$ac_unrecognized_opts"; then
1379   case $enable_option_checking in
1380     no) ;;
1381     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1382     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1383   esac
1384 fi
1385
1386 # Check all directory arguments for consistency.
1387 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1388                 datadir sysconfdir sharedstatedir localstatedir includedir \
1389                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1390                 libdir localedir mandir runstatedir
1391 do
1392   eval ac_val=\$$ac_var
1393   # Remove trailing slashes.
1394   case $ac_val in
1395     */ )
1396       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1397       eval $ac_var=\$ac_val;;
1398   esac
1399   # Be sure to have absolute directory names.
1400   case $ac_val in
1401     [\\/$]* | ?:[\\/]* )  continue;;
1402     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1403   esac
1404   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1405 done
1406
1407 # There might be people who depend on the old broken behavior: `$host'
1408 # used to hold the argument of --host etc.
1409 # FIXME: To remove some day.
1410 build=$build_alias
1411 host=$host_alias
1412 target=$target_alias
1413
1414 # FIXME: To remove some day.
1415 if test "x$host_alias" != x; then
1416   if test "x$build_alias" = x; then
1417     cross_compiling=maybe
1418   elif test "x$build_alias" != "x$host_alias"; then
1419     cross_compiling=yes
1420   fi
1421 fi
1422
1423 ac_tool_prefix=
1424 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1425
1426 test "$silent" = yes && exec 6>/dev/null
1427
1428
1429 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1430 ac_ls_di=`ls -di .` &&
1431 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1432   as_fn_error $? "working directory cannot be determined"
1433 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434   as_fn_error $? "pwd does not report name of working directory"
1435
1436
1437 # Find the source files, if location was not specified.
1438 if test -z "$srcdir"; then
1439   ac_srcdir_defaulted=yes
1440   # Try the directory containing this script, then the parent directory.
1441   ac_confdir=`$as_dirname -- "$as_myself" ||
1442 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1443          X"$as_myself" : 'X\(//\)[^/]' \| \
1444          X"$as_myself" : 'X\(//\)$' \| \
1445          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1446 printf "%s\n" X"$as_myself" |
1447     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448             s//\1/
1449             q
1450           }
1451           /^X\(\/\/\)[^/].*/{
1452             s//\1/
1453             q
1454           }
1455           /^X\(\/\/\)$/{
1456             s//\1/
1457             q
1458           }
1459           /^X\(\/\).*/{
1460             s//\1/
1461             q
1462           }
1463           s/.*/./; q'`
1464   srcdir=$ac_confdir
1465   if test ! -r "$srcdir/$ac_unique_file"; then
1466     srcdir=..
1467   fi
1468 else
1469   ac_srcdir_defaulted=no
1470 fi
1471 if test ! -r "$srcdir/$ac_unique_file"; then
1472   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1473   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1474 fi
1475 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1476 ac_abs_confdir=`(
1477         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1478         pwd)`
1479 # When building in place, set srcdir=.
1480 if test "$ac_abs_confdir" = "$ac_pwd"; then
1481   srcdir=.
1482 fi
1483 # Remove unnecessary trailing slashes from srcdir.
1484 # Double slashes in file names in object file debugging info
1485 # mess up M-x gdb in Emacs.
1486 case $srcdir in
1487 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1488 esac
1489 for ac_var in $ac_precious_vars; do
1490   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1491   eval ac_env_${ac_var}_value=\$${ac_var}
1492   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1493   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1494 done
1495
1496 #
1497 # Report the --help message.
1498 #
1499 if test "$ac_init_help" = "long"; then
1500   # Omit some internal or obsolete options to make the list less imposing.
1501   # This message is too long to be a string in the A/UX 3.1 sh.
1502   cat <<_ACEOF
1503 \`configure' configures fontconfig 2.14.2 to adapt to many kinds of systems.
1504
1505 Usage: $0 [OPTION]... [VAR=VALUE]...
1506
1507 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1508 VAR=VALUE.  See below for descriptions of some of the useful variables.
1509
1510 Defaults for the options are specified in brackets.
1511
1512 Configuration:
1513   -h, --help              display this help and exit
1514       --help=short        display options specific to this package
1515       --help=recursive    display the short help of all the included packages
1516   -V, --version           display version information and exit
1517   -q, --quiet, --silent   do not print \`checking ...' messages
1518       --cache-file=FILE   cache test results in FILE [disabled]
1519   -C, --config-cache      alias for \`--cache-file=config.cache'
1520   -n, --no-create         do not create output files
1521       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1522
1523 Installation directories:
1524   --prefix=PREFIX         install architecture-independent files in PREFIX
1525                           [$ac_default_prefix]
1526   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1527                           [PREFIX]
1528
1529 By default, \`make install' will install all the files in
1530 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1531 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1532 for instance \`--prefix=\$HOME'.
1533
1534 For better control, use the options below.
1535
1536 Fine tuning of the installation directories:
1537   --bindir=DIR            user executables [EPREFIX/bin]
1538   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1539   --libexecdir=DIR        program executables [EPREFIX/libexec]
1540   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1541   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1542   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1543   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1544   --libdir=DIR            object code libraries [EPREFIX/lib]
1545   --includedir=DIR        C header files [PREFIX/include]
1546   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1547   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1548   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1549   --infodir=DIR           info documentation [DATAROOTDIR/info]
1550   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1551   --mandir=DIR            man documentation [DATAROOTDIR/man]
1552   --docdir=DIR            documentation root [DATAROOTDIR/doc/fontconfig]
1553   --htmldir=DIR           html documentation [DOCDIR]
1554   --dvidir=DIR            dvi documentation [DOCDIR]
1555   --pdfdir=DIR            pdf documentation [DOCDIR]
1556   --psdir=DIR             ps documentation [DOCDIR]
1557 _ACEOF
1558
1559   cat <<\_ACEOF
1560
1561 Program names:
1562   --program-prefix=PREFIX            prepend PREFIX to installed program names
1563   --program-suffix=SUFFIX            append SUFFIX to installed program names
1564   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1565
1566 System types:
1567   --build=BUILD     configure for building on BUILD [guessed]
1568   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1569 _ACEOF
1570 fi
1571
1572 if test -n "$ac_init_help"; then
1573   case $ac_init_help in
1574      short | recursive ) echo "Configuration of fontconfig 2.14.2:";;
1575    esac
1576   cat <<\_ACEOF
1577
1578 Optional Features:
1579   --disable-option-checking  ignore unrecognized --enable/--with options
1580   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1581   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1582   --enable-silent-rules   less verbose build output (undo: "make V=1")
1583   --disable-silent-rules  verbose build output (undo: "make V=0")
1584   --enable-dependency-tracking
1585                           do not reject slow dependency extractors
1586   --disable-dependency-tracking
1587                           speeds up one-time build
1588   --disable-largefile     omit support for large files
1589   --enable-static[=PKGS]  build static libraries [default=no]
1590   --enable-shared[=PKGS]  build shared libraries [default=yes]
1591   --enable-fast-install[=PKGS]
1592                           optimize for fast installation [default=yes]
1593   --disable-libtool-lock  avoid locking (might break parallel builds)
1594   --disable-nls           do not use Native Language Support
1595   --disable-rpath         do not hardcode runtime library paths
1596   --enable-iconv          Use iconv to support non-Unicode SFNT name
1597   --enable-libxml2        Use libxml2 instead of Expat
1598   --disable-docbook       Disable building docs with docbook2html (default:
1599                           no)
1600   --disable-docs          Don't build and install documentation
1601   --disable-cache-build   Don't run fc-cache during the build
1602
1603 Optional Packages:
1604   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1605   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1606   --with-pkgconfigdir     pkg-config installation directory
1607                           ['${libdir}/pkgconfig']
1608   --with-python-sys-prefix
1609                           use Python's sys.prefix and sys.exec_prefix values
1610   --with-python_prefix    override the default PYTHON_PREFIX
1611   --with-python_exec_prefix
1612                           override the default PYTHON_EXEC_PREFIX
1613   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1614                           both]
1615   --with-aix-soname=aix|svr4|both
1616                           shared library versioning (aka "SONAME") variant to
1617                           provide on AIX, [default=aix].
1618   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1619   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1620                           compiler's sysroot if not specified).
1621   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1622   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1623   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1624   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1625   --without-libintl-prefix     don't search for libintl in includedir and libdir
1626   --with-arch=ARCH        Force architecture to ARCH
1627   --with-libiconv=DIR     Use libiconv in DIR
1628   --with-libiconv-includes=DIR
1629                           Use libiconv includes in DIR
1630   --with-libiconv-lib=DIR Use libiconv library in DIR
1631   --with-expat=DIR        Use Expat in DIR
1632   --with-expat-includes=DIR
1633                           Use Expat includes in DIR
1634   --with-expat-lib=DIR
1635   --with-default-sub-pixel-rendering=NAME
1636                           Enable your preferred sub-pixel rendering
1637                           configuration (none/bgr/rgb/vbgr/vrgb)
1638                           [default=none]
1639   --with-default-hinting=NAME
1640                           Enable your preferred hinting configuration
1641                           (none/slight/medium/full) [default=slight]
1642   --with-default-fonts=DIR1,DIR2,...
1643                           Use fonts from DIR1,DIR2,... when config is busted
1644   --with-add-fonts=DIR1,DIR2,...
1645                           Find additional fonts in DIR1,DIR2,...
1646   --with-cache-dir=DIR    Use DIR to store cache files
1647                           [default=LOCALSTATEDIR/cache/fontconfig]
1648   --with-templatedir=DIR  Use DIR to store the configuration template files
1649                           [default=DATADIR/fontconfig/conf.avail]
1650   --with-baseconfigdir=DIR
1651                           Use DIR to store the base configuration files
1652                           [default=SYSCONFDIR/fonts]
1653   --with-configdir=DIR    Use DIR to store active configuration files
1654                           [default=BASECONFIGDIR/conf.d]
1655   --with-xmldir=DIR       Use DIR to store XML schema files
1656                           [default=DATADIR/xml/fontconfig]
1657
1658 Some influential environment variables:
1659   CC          C compiler command
1660   CFLAGS      C compiler flags
1661   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1662               nonstandard directory <lib dir>
1663   LIBS        libraries to pass to the linker, e.g. -l<library>
1664   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1665               you have headers in a nonstandard directory <include dir>
1666   PKG_CONFIG  path to pkg-config utility
1667   PKG_CONFIG_PATH
1668               directories to add to pkg-config's search path
1669   PKG_CONFIG_LIBDIR
1670               path overriding pkg-config's built-in search path
1671   PYTHON      the Python interpreter
1672   LT_SYS_LIBRARY_PATH
1673               User-defined run-time library search path.
1674   CPP         C preprocessor
1675   CC_FOR_BUILD
1676               build system C compiler
1677   FREETYPE_CFLAGS
1678               C compiler flags for FREETYPE, overriding pkg-config
1679   FREETYPE_LIBS
1680               linker flags for FREETYPE, overriding pkg-config
1681   UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
1682   UUID_LIBS   linker flags for UUID, overriding pkg-config
1683   EXPAT_CFLAGS
1684               C compiler flags for EXPAT, overriding pkg-config
1685   EXPAT_LIBS  linker flags for EXPAT, overriding pkg-config
1686   LIBXML2_CFLAGS
1687               C compiler flags for LIBXML2, overriding pkg-config
1688   LIBXML2_LIBS
1689               linker flags for LIBXML2, overriding pkg-config
1690   JSONC_CFLAGS
1691               C compiler flags for JSONC, overriding pkg-config
1692   JSONC_LIBS  linker flags for JSONC, overriding pkg-config
1693
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1696
1697 Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>.
1698 _ACEOF
1699 ac_status=$?
1700 fi
1701
1702 if test "$ac_init_help" = "recursive"; then
1703   # If there are subdirs, report their specific --help.
1704   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705     test -d "$ac_dir" ||
1706       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707       continue
1708     ac_builddir=.
1709
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *)
1713   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1714   # A ".." for each directory in $ac_dir_suffix.
1715   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716   case $ac_top_builddir_sub in
1717   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719   esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1725
1726 case $srcdir in
1727   .)  # We are building in place.
1728     ac_srcdir=.
1729     ac_top_srcdir=$ac_top_builddir_sub
1730     ac_abs_top_srcdir=$ac_pwd ;;
1731   [\\/]* | ?:[\\/]* )  # Absolute name.
1732     ac_srcdir=$srcdir$ac_dir_suffix;
1733     ac_top_srcdir=$srcdir
1734     ac_abs_top_srcdir=$srcdir ;;
1735   *) # Relative name.
1736     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737     ac_top_srcdir=$ac_top_build_prefix$srcdir
1738     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741
1742     cd "$ac_dir" || { ac_status=$?; continue; }
1743     # Check for configure.gnu first; this name is used for a wrapper for
1744     # Metaconfig's "Configure" on case-insensitive file systems.
1745     if test -f "$ac_srcdir/configure.gnu"; then
1746       echo &&
1747       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1748     elif test -f "$ac_srcdir/configure"; then
1749       echo &&
1750       $SHELL "$ac_srcdir/configure" --help=recursive
1751     else
1752       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753     fi || ac_status=$?
1754     cd "$ac_pwd" || { ac_status=$?; break; }
1755   done
1756 fi
1757
1758 test -n "$ac_init_help" && exit $ac_status
1759 if $ac_init_version; then
1760   cat <<\_ACEOF
1761 fontconfig configure 2.14.2
1762 generated by GNU Autoconf 2.71
1763
1764 Copyright (C) 2021 Free Software Foundation, Inc.
1765 This configure script is free software; the Free Software Foundation
1766 gives unlimited permission to copy, distribute and modify it.
1767 _ACEOF
1768   exit
1769 fi
1770
1771 ## ------------------------ ##
1772 ## Autoconf initialization. ##
1773 ## ------------------------ ##
1774
1775 # ac_fn_c_try_compile LINENO
1776 # --------------------------
1777 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_compile ()
1779 {
1780   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781   rm -f conftest.$ac_objext conftest.beam
1782   if { { ac_try="$ac_compile"
1783 case "(($ac_try" in
1784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785   *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 printf "%s\n" "$ac_try_echo"; } >&5
1789   (eval "$ac_compile") 2>conftest.err
1790   ac_status=$?
1791   if test -s conftest.err; then
1792     grep -v '^ *+' conftest.err >conftest.er1
1793     cat conftest.er1 >&5
1794     mv -f conftest.er1 conftest.err
1795   fi
1796   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797   test $ac_status = 0; } && {
1798          test -z "$ac_c_werror_flag" ||
1799          test ! -s conftest.err
1800        } && test -s conftest.$ac_objext
1801 then :
1802   ac_retval=0
1803 else $as_nop
1804   printf "%s\n" "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807         ac_retval=1
1808 fi
1809   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810   as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_compile
1813
1814 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists and can be compiled using the include files in
1817 # INCLUDES, setting the cache variable VAR accordingly.
1818 ac_fn_c_check_header_compile ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 printf %s "checking for $2... " >&6; }
1823 if eval test \${$3+y}
1824 then :
1825   printf %s "(cached) " >&6
1826 else $as_nop
1827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h.  */
1829 $4
1830 #include <$2>
1831 _ACEOF
1832 if ac_fn_c_try_compile "$LINENO"
1833 then :
1834   eval "$3=yes"
1835 else $as_nop
1836   eval "$3=no"
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1839 fi
1840 eval ac_res=\$$3
1841                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 printf "%s\n" "$ac_res" >&6; }
1843   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845 } # ac_fn_c_check_header_compile
1846
1847 # ac_fn_c_try_link LINENO
1848 # -----------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_c_try_link ()
1851 {
1852   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1854   if { { ac_try="$ac_link"
1855 case "(($ac_try" in
1856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857   *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 printf "%s\n" "$ac_try_echo"; } >&5
1861   (eval "$ac_link") 2>conftest.err
1862   ac_status=$?
1863   if test -s conftest.err; then
1864     grep -v '^ *+' conftest.err >conftest.er1
1865     cat conftest.er1 >&5
1866     mv -f conftest.er1 conftest.err
1867   fi
1868   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869   test $ac_status = 0; } && {
1870          test -z "$ac_c_werror_flag" ||
1871          test ! -s conftest.err
1872        } && test -s conftest$ac_exeext && {
1873          test "$cross_compiling" = yes ||
1874          test -x conftest$ac_exeext
1875        }
1876 then :
1877   ac_retval=0
1878 else $as_nop
1879   printf "%s\n" "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1881
1882         ac_retval=1
1883 fi
1884   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1885   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1886   # interfere with the next link command; also delete a directory that is
1887   # left behind by Apple's compiler.  We do this before executing the actions.
1888   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890   as_fn_set_status $ac_retval
1891
1892 } # ac_fn_c_try_link
1893
1894 # ac_fn_c_check_func LINENO FUNC VAR
1895 # ----------------------------------
1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897 ac_fn_c_check_func ()
1898 {
1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 printf %s "checking for $2... " >&6; }
1902 if eval test \${$3+y}
1903 then :
1904   printf %s "(cached) " >&6
1905 else $as_nop
1906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h.  */
1908 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1910 #define $2 innocuous_$2
1911
1912 /* System header to define __stub macros and hopefully few prototypes,
1913    which can conflict with char $2 (); below.  */
1914
1915 #include <limits.h>
1916 #undef $2
1917
1918 /* Override any GCC internal prototype to avoid an error.
1919    Use char because int might match the return type of a GCC
1920    builtin and then its argument prototype would still apply.  */
1921 #ifdef __cplusplus
1922 extern "C"
1923 #endif
1924 char $2 ();
1925 /* The GNU C library defines this for functions which it implements
1926     to always fail with ENOSYS.  Some functions are actually named
1927     something starting with __ and the normal name is an alias.  */
1928 #if defined __stub_$2 || defined __stub___$2
1929 choke me
1930 #endif
1931
1932 int
1933 main (void)
1934 {
1935 return $2 ();
1936   ;
1937   return 0;
1938 }
1939 _ACEOF
1940 if ac_fn_c_try_link "$LINENO"
1941 then :
1942   eval "$3=yes"
1943 else $as_nop
1944   eval "$3=no"
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1947     conftest$ac_exeext conftest.$ac_ext
1948 fi
1949 eval ac_res=\$$3
1950                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 printf "%s\n" "$ac_res" >&6; }
1952   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954 } # ac_fn_c_check_func
1955
1956 # ac_fn_c_try_cpp LINENO
1957 # ----------------------
1958 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_c_try_cpp ()
1960 {
1961   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962   if { { ac_try="$ac_cpp conftest.$ac_ext"
1963 case "(($ac_try" in
1964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965   *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 printf "%s\n" "$ac_try_echo"; } >&5
1969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1970   ac_status=$?
1971   if test -s conftest.err; then
1972     grep -v '^ *+' conftest.err >conftest.er1
1973     cat conftest.er1 >&5
1974     mv -f conftest.er1 conftest.err
1975   fi
1976   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977   test $ac_status = 0; } > conftest.i && {
1978          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1979          test ! -s conftest.err
1980        }
1981 then :
1982   ac_retval=0
1983 else $as_nop
1984   printf "%s\n" "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1986
1987     ac_retval=1
1988 fi
1989   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990   as_fn_set_status $ac_retval
1991
1992 } # ac_fn_c_try_cpp
1993
1994 # ac_fn_c_try_run LINENO
1995 # ----------------------
1996 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1997 # executables *can* be run.
1998 ac_fn_c_try_run ()
1999 {
2000   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001   if { { ac_try="$ac_link"
2002 case "(($ac_try" in
2003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2004   *) ac_try_echo=$ac_try;;
2005 esac
2006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2007 printf "%s\n" "$ac_try_echo"; } >&5
2008   (eval "$ac_link") 2>&5
2009   ac_status=$?
2010   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2012   { { case "(($ac_try" in
2013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014   *) ac_try_echo=$ac_try;;
2015 esac
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 printf "%s\n" "$ac_try_echo"; } >&5
2018   (eval "$ac_try") 2>&5
2019   ac_status=$?
2020   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021   test $ac_status = 0; }; }
2022 then :
2023   ac_retval=0
2024 else $as_nop
2025   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2026        printf "%s\n" "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2028
2029        ac_retval=$ac_status
2030 fi
2031   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2032   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033   as_fn_set_status $ac_retval
2034
2035 } # ac_fn_c_try_run
2036
2037 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2038 # ------------------------------------------------------------------
2039 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2040 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2041 ac_fn_check_decl ()
2042 {
2043   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044   as_decl_name=`echo $2|sed 's/ *(.*//'`
2045   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2046 printf %s "checking whether $as_decl_name is declared... " >&6; }
2047 if eval test \${$3+y}
2048 then :
2049   printf %s "(cached) " >&6
2050 else $as_nop
2051   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2052   eval ac_save_FLAGS=\$$6
2053   as_fn_append $6 " $5"
2054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h.  */
2056 $4
2057 int
2058 main (void)
2059 {
2060 #ifndef $as_decl_name
2061 #ifdef __cplusplus
2062   (void) $as_decl_use;
2063 #else
2064   (void) $as_decl_name;
2065 #endif
2066 #endif
2067
2068   ;
2069   return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"
2073 then :
2074   eval "$3=yes"
2075 else $as_nop
2076   eval "$3=no"
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2079   eval $6=\$ac_save_FLAGS
2080
2081 fi
2082 eval ac_res=\$$3
2083                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084 printf "%s\n" "$ac_res" >&6; }
2085   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086
2087 } # ac_fn_check_decl
2088
2089 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2090 # -------------------------------------------
2091 # Tests whether TYPE exists after having included INCLUDES, setting cache
2092 # variable VAR accordingly.
2093 ac_fn_c_check_type ()
2094 {
2095   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 printf %s "checking for $2... " >&6; }
2098 if eval test \${$3+y}
2099 then :
2100   printf %s "(cached) " >&6
2101 else $as_nop
2102   eval "$3=no"
2103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h.  */
2105 $4
2106 int
2107 main (void)
2108 {
2109 if (sizeof ($2))
2110          return 0;
2111   ;
2112   return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"
2116 then :
2117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h.  */
2119 $4
2120 int
2121 main (void)
2122 {
2123 if (sizeof (($2)))
2124             return 0;
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"
2130 then :
2131
2132 else $as_nop
2133   eval "$3=yes"
2134 fi
2135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2138 fi
2139 eval ac_res=\$$3
2140                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141 printf "%s\n" "$ac_res" >&6; }
2142   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2143
2144 } # ac_fn_c_check_type
2145
2146 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2147 # --------------------------------------------
2148 # Tries to find the compile-time value of EXPR in a program that includes
2149 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2150 # computed
2151 ac_fn_c_compute_int ()
2152 {
2153   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154   if test "$cross_compiling" = yes; then
2155     # Depending upon the size, compute the lo and hi bounds.
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h.  */
2158 $4
2159 int
2160 main (void)
2161 {
2162 static int test_array [1 - 2 * !(($2) >= 0)];
2163 test_array [0] = 0;
2164 return test_array [0];
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"
2171 then :
2172   ac_lo=0 ac_mid=0
2173   while :; do
2174     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h.  */
2176 $4
2177 int
2178 main (void)
2179 {
2180 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2181 test_array [0] = 0;
2182 return test_array [0];
2183
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"
2189 then :
2190   ac_hi=$ac_mid; break
2191 else $as_nop
2192   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2193                         if test $ac_lo -le $ac_mid; then
2194                           ac_lo= ac_hi=
2195                           break
2196                         fi
2197                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2200   done
2201 else $as_nop
2202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h.  */
2204 $4
2205 int
2206 main (void)
2207 {
2208 static int test_array [1 - 2 * !(($2) < 0)];
2209 test_array [0] = 0;
2210 return test_array [0];
2211
2212   ;
2213   return 0;
2214 }
2215 _ACEOF
2216 if ac_fn_c_try_compile "$LINENO"
2217 then :
2218   ac_hi=-1 ac_mid=-1
2219   while :; do
2220     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h.  */
2222 $4
2223 int
2224 main (void)
2225 {
2226 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2227 test_array [0] = 0;
2228 return test_array [0];
2229
2230   ;
2231   return 0;
2232 }
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"
2235 then :
2236   ac_lo=$ac_mid; break
2237 else $as_nop
2238   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2239                         if test $ac_mid -le $ac_hi; then
2240                           ac_lo= ac_hi=
2241                           break
2242                         fi
2243                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2246   done
2247 else $as_nop
2248   ac_lo= ac_hi=
2249 fi
2250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2253 # Binary search between lo and hi bounds.
2254 while test "x$ac_lo" != "x$ac_hi"; do
2255   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h.  */
2258 $4
2259 int
2260 main (void)
2261 {
2262 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2263 test_array [0] = 0;
2264 return test_array [0];
2265
2266   ;
2267   return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"
2271 then :
2272   ac_hi=$ac_mid
2273 else $as_nop
2274   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2275 fi
2276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2277 done
2278 case $ac_lo in #((
2279 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2280 '') ac_retval=1 ;;
2281 esac
2282   else
2283     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h.  */
2285 $4
2286 static long int longval (void) { return $2; }
2287 static unsigned long int ulongval (void) { return $2; }
2288 #include <stdio.h>
2289 #include <stdlib.h>
2290 int
2291 main (void)
2292 {
2293
2294   FILE *f = fopen ("conftest.val", "w");
2295   if (! f)
2296     return 1;
2297   if (($2) < 0)
2298     {
2299       long int i = longval ();
2300       if (i != ($2))
2301         return 1;
2302       fprintf (f, "%ld", i);
2303     }
2304   else
2305     {
2306       unsigned long int i = ulongval ();
2307       if (i != ($2))
2308         return 1;
2309       fprintf (f, "%lu", i);
2310     }
2311   /* Do not output a trailing newline, as this causes \r\n confusion
2312      on some platforms.  */
2313   return ferror (f) || fclose (f) != 0;
2314
2315   ;
2316   return 0;
2317 }
2318 _ACEOF
2319 if ac_fn_c_try_run "$LINENO"
2320 then :
2321   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2322 else $as_nop
2323   ac_retval=1
2324 fi
2325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2326   conftest.$ac_objext conftest.beam conftest.$ac_ext
2327 rm -f conftest.val
2328
2329   fi
2330   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331   as_fn_set_status $ac_retval
2332
2333 } # ac_fn_c_compute_int
2334
2335 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2336 # ----------------------------------------------------
2337 # Tries to find if the field MEMBER exists in type AGGR, after including
2338 # INCLUDES, setting cache variable VAR accordingly.
2339 ac_fn_c_check_member ()
2340 {
2341   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2343 printf %s "checking for $2.$3... " >&6; }
2344 if eval test \${$4+y}
2345 then :
2346   printf %s "(cached) " >&6
2347 else $as_nop
2348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h.  */
2350 $5
2351 int
2352 main (void)
2353 {
2354 static $2 ac_aggr;
2355 if (ac_aggr.$3)
2356 return 0;
2357   ;
2358   return 0;
2359 }
2360 _ACEOF
2361 if ac_fn_c_try_compile "$LINENO"
2362 then :
2363   eval "$4=yes"
2364 else $as_nop
2365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h.  */
2367 $5
2368 int
2369 main (void)
2370 {
2371 static $2 ac_aggr;
2372 if (sizeof ac_aggr.$3)
2373 return 0;
2374   ;
2375   return 0;
2376 }
2377 _ACEOF
2378 if ac_fn_c_try_compile "$LINENO"
2379 then :
2380   eval "$4=yes"
2381 else $as_nop
2382   eval "$4=no"
2383 fi
2384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2385 fi
2386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2387 fi
2388 eval ac_res=\$$4
2389                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390 printf "%s\n" "$ac_res" >&6; }
2391   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392
2393 } # ac_fn_c_check_member
2394 ac_configure_args_raw=
2395 for ac_arg
2396 do
2397   case $ac_arg in
2398   *\'*)
2399     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2400   esac
2401   as_fn_append ac_configure_args_raw " '$ac_arg'"
2402 done
2403
2404 case $ac_configure_args_raw in
2405   *$as_nl*)
2406     ac_safe_unquote= ;;
2407   *)
2408     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2409     ac_unsafe_a="$ac_unsafe_z#~"
2410     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2411     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2412 esac
2413
2414 cat >config.log <<_ACEOF
2415 This file contains any messages produced by compilers while
2416 running configure, to aid debugging if configure makes a mistake.
2417
2418 It was created by fontconfig $as_me 2.14.2, which was
2419 generated by GNU Autoconf 2.71.  Invocation command line was
2420
2421   $ $0$ac_configure_args_raw
2422
2423 _ACEOF
2424 exec 5>>config.log
2425 {
2426 cat <<_ASUNAME
2427 ## --------- ##
2428 ## Platform. ##
2429 ## --------- ##
2430
2431 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2432 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2433 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2434 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2435 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2436
2437 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2438 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2439
2440 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2441 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2442 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2443 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2444 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2445 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2446 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2447
2448 _ASUNAME
2449
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453   IFS=$as_save_IFS
2454   case $as_dir in #(((
2455     '') as_dir=./ ;;
2456     */) ;;
2457     *) as_dir=$as_dir/ ;;
2458   esac
2459     printf "%s\n" "PATH: $as_dir"
2460   done
2461 IFS=$as_save_IFS
2462
2463 } >&5
2464
2465 cat >&5 <<_ACEOF
2466
2467
2468 ## ----------- ##
2469 ## Core tests. ##
2470 ## ----------- ##
2471
2472 _ACEOF
2473
2474
2475 # Keep a trace of the command line.
2476 # Strip out --no-create and --no-recursion so they do not pile up.
2477 # Strip out --silent because we don't want to record it for future runs.
2478 # Also quote any args containing shell meta-characters.
2479 # Make two passes to allow for proper duplicate-argument suppression.
2480 ac_configure_args=
2481 ac_configure_args0=
2482 ac_configure_args1=
2483 ac_must_keep_next=false
2484 for ac_pass in 1 2
2485 do
2486   for ac_arg
2487   do
2488     case $ac_arg in
2489     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2490     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2491     | -silent | --silent | --silen | --sile | --sil)
2492       continue ;;
2493     *\'*)
2494       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2495     esac
2496     case $ac_pass in
2497     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2498     2)
2499       as_fn_append ac_configure_args1 " '$ac_arg'"
2500       if test $ac_must_keep_next = true; then
2501         ac_must_keep_next=false # Got value, back to normal.
2502       else
2503         case $ac_arg in
2504           *=* | --config-cache | -C | -disable-* | --disable-* \
2505           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2506           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2507           | -with-* | --with-* | -without-* | --without-* | --x)
2508             case "$ac_configure_args0 " in
2509               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2510             esac
2511             ;;
2512           -* ) ac_must_keep_next=true ;;
2513         esac
2514       fi
2515       as_fn_append ac_configure_args " '$ac_arg'"
2516       ;;
2517     esac
2518   done
2519 done
2520 { ac_configure_args0=; unset ac_configure_args0;}
2521 { ac_configure_args1=; unset ac_configure_args1;}
2522
2523 # When interrupted or exit'd, cleanup temporary files, and complete
2524 # config.log.  We remove comments because anyway the quotes in there
2525 # would cause problems or look ugly.
2526 # WARNING: Use '\'' to represent an apostrophe within the trap.
2527 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2528 trap 'exit_status=$?
2529   # Sanitize IFS.
2530   IFS=" ""      $as_nl"
2531   # Save into config.log some information that might help in debugging.
2532   {
2533     echo
2534
2535     printf "%s\n" "## ---------------- ##
2536 ## Cache variables. ##
2537 ## ---------------- ##"
2538     echo
2539     # The following way of writing the cache mishandles newlines in values,
2540 (
2541   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2542     eval ac_val=\$$ac_var
2543     case $ac_val in #(
2544     *${as_nl}*)
2545       case $ac_var in #(
2546       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2547 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2548       esac
2549       case $ac_var in #(
2550       _ | IFS | as_nl) ;; #(
2551       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2552       *) { eval $ac_var=; unset $ac_var;} ;;
2553       esac ;;
2554     esac
2555   done
2556   (set) 2>&1 |
2557     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2558     *${as_nl}ac_space=\ *)
2559       sed -n \
2560         "s/'\''/'\''\\\\'\'''\''/g;
2561           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2562       ;; #(
2563     *)
2564       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2565       ;;
2566     esac |
2567     sort
2568 )
2569     echo
2570
2571     printf "%s\n" "## ----------------- ##
2572 ## Output variables. ##
2573 ## ----------------- ##"
2574     echo
2575     for ac_var in $ac_subst_vars
2576     do
2577       eval ac_val=\$$ac_var
2578       case $ac_val in
2579       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2580       esac
2581       printf "%s\n" "$ac_var='\''$ac_val'\''"
2582     done | sort
2583     echo
2584
2585     if test -n "$ac_subst_files"; then
2586       printf "%s\n" "## ------------------- ##
2587 ## File substitutions. ##
2588 ## ------------------- ##"
2589       echo
2590       for ac_var in $ac_subst_files
2591       do
2592         eval ac_val=\$$ac_var
2593         case $ac_val in
2594         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2595         esac
2596         printf "%s\n" "$ac_var='\''$ac_val'\''"
2597       done | sort
2598       echo
2599     fi
2600
2601     if test -s confdefs.h; then
2602       printf "%s\n" "## ----------- ##
2603 ## confdefs.h. ##
2604 ## ----------- ##"
2605       echo
2606       cat confdefs.h
2607       echo
2608     fi
2609     test "$ac_signal" != 0 &&
2610       printf "%s\n" "$as_me: caught signal $ac_signal"
2611     printf "%s\n" "$as_me: exit $exit_status"
2612   } >&5
2613   rm -f core *.core core.conftest.* &&
2614     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2615     exit $exit_status
2616 ' 0
2617 for ac_signal in 1 2 13 15; do
2618   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2619 done
2620 ac_signal=0
2621
2622 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2623 rm -f -r conftest* confdefs.h
2624
2625 printf "%s\n" "/* confdefs.h */" > confdefs.h
2626
2627 # Predefined preprocessor variables.
2628
2629 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2630
2631 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2632
2633 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2634
2635 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2636
2637 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2638
2639 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2640
2641
2642 # Let the site file select an alternate cache file if it wants to.
2643 # Prefer an explicitly selected file to automatically selected ones.
2644 if test -n "$CONFIG_SITE"; then
2645   ac_site_files="$CONFIG_SITE"
2646 elif test "x$prefix" != xNONE; then
2647   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2648 else
2649   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2650 fi
2651
2652 for ac_site_file in $ac_site_files
2653 do
2654   case $ac_site_file in #(
2655   */*) :
2656      ;; #(
2657   *) :
2658     ac_site_file=./$ac_site_file ;;
2659 esac
2660   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2661     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2662 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2663     sed 's/^/| /' "$ac_site_file" >&5
2664     . "$ac_site_file" \
2665       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2666 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2667 as_fn_error $? "failed to load site script $ac_site_file
2668 See \`config.log' for more details" "$LINENO" 5; }
2669   fi
2670 done
2671
2672 if test -r "$cache_file"; then
2673   # Some versions of bash will fail to source /dev/null (special files
2674   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2675   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2676     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2677 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2678     case $cache_file in
2679       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2680       *)                      . "./$cache_file";;
2681     esac
2682   fi
2683 else
2684   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2685 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2686   >$cache_file
2687 fi
2688
2689 # Test code for whether the C compiler supports C89 (global declarations)
2690 ac_c_conftest_c89_globals='
2691 /* Does the compiler advertise C89 conformance?
2692    Do not test the value of __STDC__, because some compilers set it to 0
2693    while being otherwise adequately conformant. */
2694 #if !defined __STDC__
2695 # error "Compiler does not advertise C89 conformance"
2696 #endif
2697
2698 #include <stddef.h>
2699 #include <stdarg.h>
2700 struct stat;
2701 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2702 struct buf { int x; };
2703 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2704 static char *e (p, i)
2705      char **p;
2706      int i;
2707 {
2708   return p[i];
2709 }
2710 static char *f (char * (*g) (char **, int), char **p, ...)
2711 {
2712   char *s;
2713   va_list v;
2714   va_start (v,p);
2715   s = g (p, va_arg (v,int));
2716   va_end (v);
2717   return s;
2718 }
2719
2720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2721    function prototypes and stuff, but not \xHH hex character constants.
2722    These do not provoke an error unfortunately, instead are silently treated
2723    as an "x".  The following induces an error, until -std is added to get
2724    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2725    array size at least.  It is necessary to write \x00 == 0 to get something
2726    that is true only with -std.  */
2727 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2728
2729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2730    inside strings and character constants.  */
2731 #define FOO(x) '\''x'\''
2732 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2733
2734 int test (int i, double x);
2735 struct s1 {int (*f) (int a);};
2736 struct s2 {int (*f) (double a);};
2737 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2738                int, int);'
2739
2740 # Test code for whether the C compiler supports C89 (body of main).
2741 ac_c_conftest_c89_main='
2742 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2743 '
2744
2745 # Test code for whether the C compiler supports C99 (global declarations)
2746 ac_c_conftest_c99_globals='
2747 // Does the compiler advertise C99 conformance?
2748 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2749 # error "Compiler does not advertise C99 conformance"
2750 #endif
2751
2752 #include <stdbool.h>
2753 extern int puts (const char *);
2754 extern int printf (const char *, ...);
2755 extern int dprintf (int, const char *, ...);
2756 extern void *malloc (size_t);
2757
2758 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2759 // dprintf is used instead of fprintf to avoid needing to declare
2760 // FILE and stderr.
2761 #define debug(...) dprintf (2, __VA_ARGS__)
2762 #define showlist(...) puts (#__VA_ARGS__)
2763 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2764 static void
2765 test_varargs_macros (void)
2766 {
2767   int x = 1234;
2768   int y = 5678;
2769   debug ("Flag");
2770   debug ("X = %d\n", x);
2771   showlist (The first, second, and third items.);
2772   report (x>y, "x is %d but y is %d", x, y);
2773 }
2774
2775 // Check long long types.
2776 #define BIG64 18446744073709551615ull
2777 #define BIG32 4294967295ul
2778 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2779 #if !BIG_OK
2780   #error "your preprocessor is broken"
2781 #endif
2782 #if BIG_OK
2783 #else
2784   #error "your preprocessor is broken"
2785 #endif
2786 static long long int bignum = -9223372036854775807LL;
2787 static unsigned long long int ubignum = BIG64;
2788
2789 struct incomplete_array
2790 {
2791   int datasize;
2792   double data[];
2793 };
2794
2795 struct named_init {
2796   int number;
2797   const wchar_t *name;
2798   double average;
2799 };
2800
2801 typedef const char *ccp;
2802
2803 static inline int
2804 test_restrict (ccp restrict text)
2805 {
2806   // See if C++-style comments work.
2807   // Iterate through items via the restricted pointer.
2808   // Also check for declarations in for loops.
2809   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2810     continue;
2811   return 0;
2812 }
2813
2814 // Check varargs and va_copy.
2815 static bool
2816 test_varargs (const char *format, ...)
2817 {
2818   va_list args;
2819   va_start (args, format);
2820   va_list args_copy;
2821   va_copy (args_copy, args);
2822
2823   const char *str = "";
2824   int number = 0;
2825   float fnumber = 0;
2826
2827   while (*format)
2828     {
2829       switch (*format++)
2830         {
2831         case '\''s'\'': // string
2832           str = va_arg (args_copy, const char *);
2833           break;
2834         case '\''d'\'': // int
2835           number = va_arg (args_copy, int);
2836           break;
2837         case '\''f'\'': // float
2838           fnumber = va_arg (args_copy, double);
2839           break;
2840         default:
2841           break;
2842         }
2843     }
2844   va_end (args_copy);
2845   va_end (args);
2846
2847   return *str && number && fnumber;
2848 }
2849 '
2850
2851 # Test code for whether the C compiler supports C99 (body of main).
2852 ac_c_conftest_c99_main='
2853   // Check bool.
2854   _Bool success = false;
2855   success |= (argc != 0);
2856
2857   // Check restrict.
2858   if (test_restrict ("String literal") == 0)
2859     success = true;
2860   char *restrict newvar = "Another string";
2861
2862   // Check varargs.
2863   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2864   test_varargs_macros ();
2865
2866   // Check flexible array members.
2867   struct incomplete_array *ia =
2868     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2869   ia->datasize = 10;
2870   for (int i = 0; i < ia->datasize; ++i)
2871     ia->data[i] = i * 1.234;
2872
2873   // Check named initializers.
2874   struct named_init ni = {
2875     .number = 34,
2876     .name = L"Test wide string",
2877     .average = 543.34343,
2878   };
2879
2880   ni.number = 58;
2881
2882   int dynamic_array[ni.number];
2883   dynamic_array[0] = argv[0][0];
2884   dynamic_array[ni.number - 1] = 543;
2885
2886   // work around unused variable warnings
2887   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2888          || dynamic_array[ni.number - 1] != 543);
2889 '
2890
2891 # Test code for whether the C compiler supports C11 (global declarations)
2892 ac_c_conftest_c11_globals='
2893 // Does the compiler advertise C11 conformance?
2894 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2895 # error "Compiler does not advertise C11 conformance"
2896 #endif
2897
2898 // Check _Alignas.
2899 char _Alignas (double) aligned_as_double;
2900 char _Alignas (0) no_special_alignment;
2901 extern char aligned_as_int;
2902 char _Alignas (0) _Alignas (int) aligned_as_int;
2903
2904 // Check _Alignof.
2905 enum
2906 {
2907   int_alignment = _Alignof (int),
2908   int_array_alignment = _Alignof (int[100]),
2909   char_alignment = _Alignof (char)
2910 };
2911 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2912
2913 // Check _Noreturn.
2914 int _Noreturn does_not_return (void) { for (;;) continue; }
2915
2916 // Check _Static_assert.
2917 struct test_static_assert
2918 {
2919   int x;
2920   _Static_assert (sizeof (int) <= sizeof (long int),
2921                   "_Static_assert does not work in struct");
2922   long int y;
2923 };
2924
2925 // Check UTF-8 literals.
2926 #define u8 syntax error!
2927 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2928
2929 // Check duplicate typedefs.
2930 typedef long *long_ptr;
2931 typedef long int *long_ptr;
2932 typedef long_ptr long_ptr;
2933
2934 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2935 struct anonymous
2936 {
2937   union {
2938     struct { int i; int j; };
2939     struct { int k; long int l; } w;
2940   };
2941   int m;
2942 } v1;
2943 '
2944
2945 # Test code for whether the C compiler supports C11 (body of main).
2946 ac_c_conftest_c11_main='
2947   _Static_assert ((offsetof (struct anonymous, i)
2948                    == offsetof (struct anonymous, w.k)),
2949                   "Anonymous union alignment botch");
2950   v1.i = 2;
2951   v1.w.k = 5;
2952   ok |= v1.i != 5;
2953 '
2954
2955 # Test code for whether the C compiler supports C11 (complete).
2956 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2957 ${ac_c_conftest_c99_globals}
2958 ${ac_c_conftest_c11_globals}
2959
2960 int
2961 main (int argc, char **argv)
2962 {
2963   int ok = 0;
2964   ${ac_c_conftest_c89_main}
2965   ${ac_c_conftest_c99_main}
2966   ${ac_c_conftest_c11_main}
2967   return ok;
2968 }
2969 "
2970
2971 # Test code for whether the C compiler supports C99 (complete).
2972 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2973 ${ac_c_conftest_c99_globals}
2974
2975 int
2976 main (int argc, char **argv)
2977 {
2978   int ok = 0;
2979   ${ac_c_conftest_c89_main}
2980   ${ac_c_conftest_c99_main}
2981   return ok;
2982 }
2983 "
2984
2985 # Test code for whether the C compiler supports C89 (complete).
2986 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2987
2988 int
2989 main (int argc, char **argv)
2990 {
2991   int ok = 0;
2992   ${ac_c_conftest_c89_main}
2993   return ok;
2994 }
2995 "
2996
2997 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2998 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2999 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3000 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3001 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3002 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3003 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3004 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3005 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3006 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3007 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3008 gt_needs="$gt_needs "
3009 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3010 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3011 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
3012
3013 # Auxiliary files required by this configure script.
3014 ac_aux_files="config.rpath config.guess config.sub ltmain.sh compile missing install-sh"
3015
3016 # Locations in which to look for auxiliary files.
3017 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3018
3019 # Search for a directory containing all of the required auxiliary files,
3020 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3021 # If we don't find one directory that contains all the files we need,
3022 # we report the set of missing files from the *first* directory in
3023 # $ac_aux_dir_candidates and give up.
3024 ac_missing_aux_files=""
3025 ac_first_candidate=:
3026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 as_found=false
3029 for as_dir in $ac_aux_dir_candidates
3030 do
3031   IFS=$as_save_IFS
3032   case $as_dir in #(((
3033     '') as_dir=./ ;;
3034     */) ;;
3035     *) as_dir=$as_dir/ ;;
3036   esac
3037   as_found=:
3038
3039   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3040   ac_aux_dir_found=yes
3041   ac_install_sh=
3042   for ac_aux in $ac_aux_files
3043   do
3044     # As a special case, if "install-sh" is required, that requirement
3045     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3046     # and $ac_install_sh is set appropriately for whichever one is found.
3047     if test x"$ac_aux" = x"install-sh"
3048     then
3049       if test -f "${as_dir}install-sh"; then
3050         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3051         ac_install_sh="${as_dir}install-sh -c"
3052       elif test -f "${as_dir}install.sh"; then
3053         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3054         ac_install_sh="${as_dir}install.sh -c"
3055       elif test -f "${as_dir}shtool"; then
3056         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3057         ac_install_sh="${as_dir}shtool install -c"
3058       else
3059         ac_aux_dir_found=no
3060         if $ac_first_candidate; then
3061           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3062         else
3063           break
3064         fi
3065       fi
3066     else
3067       if test -f "${as_dir}${ac_aux}"; then
3068         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3069       else
3070         ac_aux_dir_found=no
3071         if $ac_first_candidate; then
3072           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3073         else
3074           break
3075         fi
3076       fi
3077     fi
3078   done
3079   if test "$ac_aux_dir_found" = yes; then
3080     ac_aux_dir="$as_dir"
3081     break
3082   fi
3083   ac_first_candidate=false
3084
3085   as_found=false
3086 done
3087 IFS=$as_save_IFS
3088 if $as_found
3089 then :
3090
3091 else $as_nop
3092   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3093 fi
3094
3095
3096 # These three variables are undocumented and unsupported,
3097 # and are intended to be withdrawn in a future Autoconf release.
3098 # They can cause serious problems if a builder's source tree is in a directory
3099 # whose full name contains unusual characters.
3100 if test -f "${ac_aux_dir}config.guess"; then
3101   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3102 fi
3103 if test -f "${ac_aux_dir}config.sub"; then
3104   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3105 fi
3106 if test -f "$ac_aux_dir/configure"; then
3107   ac_configure="$SHELL ${ac_aux_dir}configure"
3108 fi
3109
3110 # Check that the precious variables saved in the cache have kept the same
3111 # value.
3112 ac_cache_corrupted=false
3113 for ac_var in $ac_precious_vars; do
3114   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3115   eval ac_new_set=\$ac_env_${ac_var}_set
3116   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3117   eval ac_new_val=\$ac_env_${ac_var}_value
3118   case $ac_old_set,$ac_new_set in
3119     set,)
3120       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3121 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3122       ac_cache_corrupted=: ;;
3123     ,set)
3124       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3125 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3126       ac_cache_corrupted=: ;;
3127     ,);;
3128     *)
3129       if test "x$ac_old_val" != "x$ac_new_val"; then
3130         # differences in whitespace do not lead to failure.
3131         ac_old_val_w=`echo x $ac_old_val`
3132         ac_new_val_w=`echo x $ac_new_val`
3133         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3134           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3135 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3136           ac_cache_corrupted=:
3137         else
3138           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3139 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3140           eval $ac_var=\$ac_old_val
3141         fi
3142         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3143 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3144         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3145 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3146       fi;;
3147   esac
3148   # Pass precious variables to config.status.
3149   if test "$ac_new_set" = set; then
3150     case $ac_new_val in
3151     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3152     *) ac_arg=$ac_var=$ac_new_val ;;
3153     esac
3154     case " $ac_configure_args " in
3155       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3156       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3157     esac
3158   fi
3159 done
3160 if $ac_cache_corrupted; then
3161   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3163   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3164 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3165   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3166             and start over" "$LINENO" 5
3167 fi
3168 ## -------------------- ##
3169 ## Main body of script. ##
3170 ## -------------------- ##
3171
3172 ac_ext=c
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177
3178
3179 am__api_version='1.16'
3180
3181
3182
3183   # Find a good install program.  We prefer a C program (faster),
3184 # so one script is as good as another.  But avoid the broken or
3185 # incompatible versions:
3186 # SysV /etc/install, /usr/sbin/install
3187 # SunOS /usr/etc/install
3188 # IRIX /sbin/install
3189 # AIX /bin/install
3190 # AmigaOS /C/install, which installs bootblocks on floppy discs
3191 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3194 # OS/2's system install, which has a completely different semantic
3195 # ./install, which can be erroneously created by make from ./install.sh.
3196 # Reject install programs that cannot install multiple files.
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3198 printf %s "checking for a BSD-compatible install... " >&6; }
3199 if test -z "$INSTALL"; then
3200 if test ${ac_cv_path_install+y}
3201 then :
3202   printf %s "(cached) " >&6
3203 else $as_nop
3204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207   IFS=$as_save_IFS
3208   case $as_dir in #(((
3209     '') as_dir=./ ;;
3210     */) ;;
3211     *) as_dir=$as_dir/ ;;
3212   esac
3213     # Account for fact that we put trailing slashes in our PATH walk.
3214 case $as_dir in #((
3215   ./ | /[cC]/* | \
3216   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3217   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3218   /usr/ucb/* ) ;;
3219   *)
3220     # OSF1 and SCO ODT 3.0 have their own names for install.
3221     # Don't use installbsd from OSF since it installs stuff as root
3222     # by default.
3223     for ac_prog in ginstall scoinst install; do
3224       for ac_exec_ext in '' $ac_executable_extensions; do
3225         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3226           if test $ac_prog = install &&
3227             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3228             # AIX install.  It has an incompatible calling convention.
3229             :
3230           elif test $ac_prog = install &&
3231             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3232             # program-specific install script used by HP pwplus--don't use.
3233             :
3234           else
3235             rm -rf conftest.one conftest.two conftest.dir
3236             echo one > conftest.one
3237             echo two > conftest.two
3238             mkdir conftest.dir
3239             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3240               test -s conftest.one && test -s conftest.two &&
3241               test -s conftest.dir/conftest.one &&
3242               test -s conftest.dir/conftest.two
3243             then
3244               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3245               break 3
3246             fi
3247           fi
3248         fi
3249       done
3250     done
3251     ;;
3252 esac
3253
3254   done
3255 IFS=$as_save_IFS
3256
3257 rm -rf conftest.one conftest.two conftest.dir
3258
3259 fi
3260   if test ${ac_cv_path_install+y}; then
3261     INSTALL=$ac_cv_path_install
3262   else
3263     # As a last resort, use the slow shell script.  Don't cache a
3264     # value for INSTALL within a source directory, because that will
3265     # break other packages using the cache if that directory is
3266     # removed, or if the value is a relative name.
3267     INSTALL=$ac_install_sh
3268   fi
3269 fi
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3271 printf "%s\n" "$INSTALL" >&6; }
3272
3273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3274 # It thinks the first close brace ends the variable substitution.
3275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3276
3277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3278
3279 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3280
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3282 printf %s "checking whether build environment is sane... " >&6; }
3283 # Reject unsafe characters in $srcdir or the absolute working directory
3284 # name.  Accept space and tab only in the latter.
3285 am_lf='
3286 '
3287 case `pwd` in
3288   *[\\\"\#\$\&\'\`$am_lf]*)
3289     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3290 esac
3291 case $srcdir in
3292   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3293     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3294 esac
3295
3296 # Do 'set' in a subshell so we don't clobber the current shell's
3297 # arguments.  Must try -L first in case configure is actually a
3298 # symlink; some systems play weird games with the mod time of symlinks
3299 # (eg FreeBSD returns the mod time of the symlink's containing
3300 # directory).
3301 if (
3302    am_has_slept=no
3303    for am_try in 1 2; do
3304      echo "timestamp, slept: $am_has_slept" > conftest.file
3305      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3306      if test "$*" = "X"; then
3307         # -L didn't work.
3308         set X `ls -t "$srcdir/configure" conftest.file`
3309      fi
3310      if test "$*" != "X $srcdir/configure conftest.file" \
3311         && test "$*" != "X conftest.file $srcdir/configure"; then
3312
3313         # If neither matched, then we have a broken ls.  This can happen
3314         # if, for instance, CONFIG_SHELL is bash and it inherits a
3315         # broken ls alias from the environment.  This has actually
3316         # happened.  Such a system could not be considered "sane".
3317         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3318   alias in your environment" "$LINENO" 5
3319      fi
3320      if test "$2" = conftest.file || test $am_try -eq 2; then
3321        break
3322      fi
3323      # Just in case.
3324      sleep 1
3325      am_has_slept=yes
3326    done
3327    test "$2" = conftest.file
3328    )
3329 then
3330    # Ok.
3331    :
3332 else
3333    as_fn_error $? "newly created file is older than distributed files!
3334 Check your system clock" "$LINENO" 5
3335 fi
3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 printf "%s\n" "yes" >&6; }
3338 # If we didn't sleep, we still need to ensure time stamps of config.status and
3339 # generated files are strictly newer.
3340 am_sleep_pid=
3341 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3342   ( sleep 1 ) &
3343   am_sleep_pid=$!
3344 fi
3345
3346 rm -f conftest.file
3347
3348 test "$program_prefix" != NONE &&
3349   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3350 # Use a double $ so make ignores it.
3351 test "$program_suffix" != NONE &&
3352   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3353 # Double any \ or $.
3354 # By default was `s,x,x', remove it if useless.
3355 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3356 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3357
3358
3359 # Expand $ac_aux_dir to an absolute path.
3360 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3361
3362
3363   if test x"${MISSING+set}" != xset; then
3364   MISSING="\${SHELL} '$am_aux_dir/missing'"
3365 fi
3366 # Use eval to expand $SHELL
3367 if eval "$MISSING --is-lightweight"; then
3368   am_missing_run="$MISSING "
3369 else
3370   am_missing_run=
3371   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3372 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3373 fi
3374
3375 if test x"${install_sh+set}" != xset; then
3376   case $am_aux_dir in
3377   *\ * | *\     *)
3378     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3379   *)
3380     install_sh="\${SHELL} $am_aux_dir/install-sh"
3381   esac
3382 fi
3383
3384 # Installed binaries are usually stripped using 'strip' when the user
3385 # run "make install-strip".  However 'strip' might not be the right
3386 # tool to use in cross-compilation environments, therefore Automake
3387 # will honor the 'STRIP' environment variable to overrule this program.
3388 if test "$cross_compiling" != no; then
3389   if test -n "$ac_tool_prefix"; then
3390   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3391 set dummy ${ac_tool_prefix}strip; ac_word=$2
3392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 printf %s "checking for $ac_word... " >&6; }
3394 if test ${ac_cv_prog_STRIP+y}
3395 then :
3396   printf %s "(cached) " >&6
3397 else $as_nop
3398   if test -n "$STRIP"; then
3399   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404   IFS=$as_save_IFS
3405   case $as_dir in #(((
3406     '') as_dir=./ ;;
3407     */) ;;
3408     *) as_dir=$as_dir/ ;;
3409   esac
3410     for ac_exec_ext in '' $ac_executable_extensions; do
3411   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3412     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3413     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3414     break 2
3415   fi
3416 done
3417   done
3418 IFS=$as_save_IFS
3419
3420 fi
3421 fi
3422 STRIP=$ac_cv_prog_STRIP
3423 if test -n "$STRIP"; then
3424   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3425 printf "%s\n" "$STRIP" >&6; }
3426 else
3427   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 printf "%s\n" "no" >&6; }
3429 fi
3430
3431
3432 fi
3433 if test -z "$ac_cv_prog_STRIP"; then
3434   ac_ct_STRIP=$STRIP
3435   # Extract the first word of "strip", so it can be a program name with args.
3436 set dummy strip; ac_word=$2
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 printf %s "checking for $ac_word... " >&6; }
3439 if test ${ac_cv_prog_ac_ct_STRIP+y}
3440 then :
3441   printf %s "(cached) " >&6
3442 else $as_nop
3443   if test -n "$ac_ct_STRIP"; then
3444   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3448 do
3449   IFS=$as_save_IFS
3450   case $as_dir in #(((
3451     '') as_dir=./ ;;
3452     */) ;;
3453     *) as_dir=$as_dir/ ;;
3454   esac
3455     for ac_exec_ext in '' $ac_executable_extensions; do
3456   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3457     ac_cv_prog_ac_ct_STRIP="strip"
3458     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3459     break 2
3460   fi
3461 done
3462   done
3463 IFS=$as_save_IFS
3464
3465 fi
3466 fi
3467 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3468 if test -n "$ac_ct_STRIP"; then
3469   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3470 printf "%s\n" "$ac_ct_STRIP" >&6; }
3471 else
3472   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 printf "%s\n" "no" >&6; }
3474 fi
3475
3476   if test "x$ac_ct_STRIP" = x; then
3477     STRIP=":"
3478   else
3479     case $cross_compiling:$ac_tool_warned in
3480 yes:)
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3482 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3483 ac_tool_warned=yes ;;
3484 esac
3485     STRIP=$ac_ct_STRIP
3486   fi
3487 else
3488   STRIP="$ac_cv_prog_STRIP"
3489 fi
3490
3491 fi
3492 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3493
3494
3495   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3496 printf %s "checking for a race-free mkdir -p... " >&6; }
3497 if test -z "$MKDIR_P"; then
3498   if test ${ac_cv_path_mkdir+y}
3499 then :
3500   printf %s "(cached) " >&6
3501 else $as_nop
3502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3504 do
3505   IFS=$as_save_IFS
3506   case $as_dir in #(((
3507     '') as_dir=./ ;;
3508     */) ;;
3509     *) as_dir=$as_dir/ ;;
3510   esac
3511     for ac_prog in mkdir gmkdir; do
3512          for ac_exec_ext in '' $ac_executable_extensions; do
3513            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3514            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3515              'mkdir ('*'coreutils) '* | \
3516              'BusyBox '* | \
3517              'mkdir (fileutils) '4.1*)
3518                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3519                break 3;;
3520            esac
3521          done
3522        done
3523   done
3524 IFS=$as_save_IFS
3525
3526 fi
3527
3528   test -d ./--version && rmdir ./--version
3529   if test ${ac_cv_path_mkdir+y}; then
3530     MKDIR_P="$ac_cv_path_mkdir -p"
3531   else
3532     # As a last resort, use the slow shell script.  Don't cache a
3533     # value for MKDIR_P within a source directory, because that will
3534     # break other packages using the cache if that directory is
3535     # removed, or if the value is a relative name.
3536     MKDIR_P="$ac_install_sh -d"
3537   fi
3538 fi
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3540 printf "%s\n" "$MKDIR_P" >&6; }
3541
3542 for ac_prog in gawk mawk nawk awk
3543 do
3544   # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy $ac_prog; ac_word=$2
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 printf %s "checking for $ac_word... " >&6; }
3548 if test ${ac_cv_prog_AWK+y}
3549 then :
3550   printf %s "(cached) " >&6
3551 else $as_nop
3552   if test -n "$AWK"; then
3553   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558   IFS=$as_save_IFS
3559   case $as_dir in #(((
3560     '') as_dir=./ ;;
3561     */) ;;
3562     *) as_dir=$as_dir/ ;;
3563   esac
3564     for ac_exec_ext in '' $ac_executable_extensions; do
3565   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3566     ac_cv_prog_AWK="$ac_prog"
3567     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3568     break 2
3569   fi
3570 done
3571   done
3572 IFS=$as_save_IFS
3573
3574 fi
3575 fi
3576 AWK=$ac_cv_prog_AWK
3577 if test -n "$AWK"; then
3578   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3579 printf "%s\n" "$AWK" >&6; }
3580 else
3581   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 printf "%s\n" "no" >&6; }
3583 fi
3584
3585
3586   test -n "$AWK" && break
3587 done
3588
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3590 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3591 set x ${MAKE-make}
3592 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3593 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3594 then :
3595   printf %s "(cached) " >&6
3596 else $as_nop
3597   cat >conftest.make <<\_ACEOF
3598 SHELL = /bin/sh
3599 all:
3600         @echo '@@@%%%=$(MAKE)=@@@%%%'
3601 _ACEOF
3602 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3603 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3604   *@@@%%%=?*=@@@%%%*)
3605     eval ac_cv_prog_make_${ac_make}_set=yes;;
3606   *)
3607     eval ac_cv_prog_make_${ac_make}_set=no;;
3608 esac
3609 rm -f conftest.make
3610 fi
3611 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3612   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3613 printf "%s\n" "yes" >&6; }
3614   SET_MAKE=
3615 else
3616   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 printf "%s\n" "no" >&6; }
3618   SET_MAKE="MAKE=${MAKE-make}"
3619 fi
3620
3621 rm -rf .tst 2>/dev/null
3622 mkdir .tst 2>/dev/null
3623 if test -d .tst; then
3624   am__leading_dot=.
3625 else
3626   am__leading_dot=_
3627 fi
3628 rmdir .tst 2>/dev/null
3629
3630 # Check whether --enable-silent-rules was given.
3631 if test ${enable_silent_rules+y}
3632 then :
3633   enableval=$enable_silent_rules;
3634 fi
3635
3636 case $enable_silent_rules in # (((
3637   yes) AM_DEFAULT_VERBOSITY=0;;
3638    no) AM_DEFAULT_VERBOSITY=1;;
3639     *) AM_DEFAULT_VERBOSITY=1;;
3640 esac
3641 am_make=${MAKE-make}
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3643 printf %s "checking whether $am_make supports nested variables... " >&6; }
3644 if test ${am_cv_make_support_nested_variables+y}
3645 then :
3646   printf %s "(cached) " >&6
3647 else $as_nop
3648   if printf "%s\n" 'TRUE=$(BAR$(V))
3649 BAR0=false
3650 BAR1=true
3651 V=1
3652 am__doit:
3653         @$(TRUE)
3654 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3655   am_cv_make_support_nested_variables=yes
3656 else
3657   am_cv_make_support_nested_variables=no
3658 fi
3659 fi
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3661 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3662 if test $am_cv_make_support_nested_variables = yes; then
3663     AM_V='$(V)'
3664   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3665 else
3666   AM_V=$AM_DEFAULT_VERBOSITY
3667   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3668 fi
3669 AM_BACKSLASH='\'
3670
3671 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3672   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3673   # is not polluted with repeated "-I."
3674   am__isrc=' -I$(srcdir)'
3675   # test to see if srcdir already configured
3676   if test -f $srcdir/config.status; then
3677     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3678   fi
3679 fi
3680
3681 # test whether we have cygpath
3682 if test -z "$CYGPATH_W"; then
3683   if (cygpath --version) >/dev/null 2>/dev/null; then
3684     CYGPATH_W='cygpath -w'
3685   else
3686     CYGPATH_W=echo
3687   fi
3688 fi
3689
3690
3691 # Define the identity of the package.
3692  PACKAGE='fontconfig'
3693  VERSION='2.14.2'
3694
3695
3696 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3697
3698
3699 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3700
3701 # Some tools Automake needs.
3702
3703 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3704
3705
3706 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3707
3708
3709 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3710
3711
3712 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3713
3714
3715 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3716
3717 # For better backward compatibility.  To be removed once Automake 1.9.x
3718 # dies out for good.  For more background, see:
3719 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3720 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3721 mkdir_p='$(MKDIR_P)'
3722
3723 # We need awk for the "check" target (and possibly the TAP driver).  The
3724 # system "awk" is bad on some platforms.
3725 # Always define AMTAR for backward compatibility.  Yes, it's still used
3726 # in the wild :-(  We should find a proper way to deprecate it ...
3727 AMTAR='$${TAR-tar}'
3728
3729
3730 # We'll loop over all known methods to create a tar archive until one works.
3731 _am_tools='gnutar  pax cpio none'
3732
3733 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3734
3735
3736
3737
3738
3739 # Variables for tags utilities; see am/tags.am
3740 if test -z "$CTAGS"; then
3741   CTAGS=ctags
3742 fi
3743
3744 if test -z "$ETAGS"; then
3745   ETAGS=etags
3746 fi
3747
3748 if test -z "$CSCOPE"; then
3749   CSCOPE=cscope
3750 fi
3751
3752
3753
3754 # POSIX will say in a future version that running "rm -f" with no argument
3755 # is OK; and we want to be able to make that assumption in our Makefile
3756 # recipes.  So use an aggressive probe to check that the usage we want is
3757 # actually supported "in the wild" to an acceptable degree.
3758 # See automake bug#10828.
3759 # To make any issue more visible, cause the running configure to be aborted
3760 # by default if the 'rm' program in use doesn't match our expectations; the
3761 # user can still override this though.
3762 if rm -f && rm -fr && rm -rf; then : OK; else
3763   cat >&2 <<'END'
3764 Oops!
3765
3766 Your 'rm' program seems unable to run without file operands specified
3767 on the command line, even when the '-f' option is present.  This is contrary
3768 to the behaviour of most rm programs out there, and not conforming with
3769 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3770
3771 Please tell bug-automake@gnu.org about your system, including the value
3772 of your $PATH and any error possibly output before this message.  This
3773 can help us improve future automake versions.
3774
3775 END
3776   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3777     echo 'Configuration will proceed anyway, since you have set the' >&2
3778     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3779     echo >&2
3780   else
3781     cat >&2 <<'END'
3782 Aborting the configuration process, to ensure you take notice of the issue.
3783
3784 You can download and install GNU coreutils to get an 'rm' implementation
3785 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3786
3787 If you want to complete the configuration process using your problematic
3788 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3789 to "yes", and re-run configure.
3790
3791 END
3792     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3793   fi
3794 fi
3795
3796 # Check whether --enable-silent-rules was given.
3797 if test ${enable_silent_rules+y}
3798 then :
3799   enableval=$enable_silent_rules;
3800 fi
3801
3802 case $enable_silent_rules in # (((
3803   yes) AM_DEFAULT_VERBOSITY=0;;
3804    no) AM_DEFAULT_VERBOSITY=1;;
3805     *) AM_DEFAULT_VERBOSITY=0;;
3806 esac
3807 am_make=${MAKE-make}
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3809 printf %s "checking whether $am_make supports nested variables... " >&6; }
3810 if test ${am_cv_make_support_nested_variables+y}
3811 then :
3812   printf %s "(cached) " >&6
3813 else $as_nop
3814   if printf "%s\n" 'TRUE=$(BAR$(V))
3815 BAR0=false
3816 BAR1=true
3817 V=1
3818 am__doit:
3819         @$(TRUE)
3820 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3821   am_cv_make_support_nested_variables=yes
3822 else
3823   am_cv_make_support_nested_variables=no
3824 fi
3825 fi
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3827 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3828 if test $am_cv_make_support_nested_variables = yes; then
3829     AM_V='$(V)'
3830   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3831 else
3832   AM_V=$AM_DEFAULT_VERBOSITY
3833   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3834 fi
3835 AM_BACKSLASH='\'
3836
3837
3838
3839 ac_config_headers="$ac_config_headers config.h"
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852 ac_ext=c
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857 if test -n "$ac_tool_prefix"; then
3858   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3859 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3861 printf %s "checking for $ac_word... " >&6; }
3862 if test ${ac_cv_prog_CC+y}
3863 then :
3864   printf %s "(cached) " >&6
3865 else $as_nop
3866   if test -n "$CC"; then
3867   ac_cv_prog_CC="$CC" # Let the user override the test.
3868 else
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3871 do
3872   IFS=$as_save_IFS
3873   case $as_dir in #(((
3874     '') as_dir=./ ;;
3875     */) ;;
3876     *) as_dir=$as_dir/ ;;
3877   esac
3878     for ac_exec_ext in '' $ac_executable_extensions; do
3879   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3880     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3881     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3882     break 2
3883   fi
3884 done
3885   done
3886 IFS=$as_save_IFS
3887
3888 fi
3889 fi
3890 CC=$ac_cv_prog_CC
3891 if test -n "$CC"; then
3892   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3893 printf "%s\n" "$CC" >&6; }
3894 else
3895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 printf "%s\n" "no" >&6; }
3897 fi
3898
3899
3900 fi
3901 if test -z "$ac_cv_prog_CC"; then
3902   ac_ct_CC=$CC
3903   # Extract the first word of "gcc", so it can be a program name with args.
3904 set dummy gcc; ac_word=$2
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 printf %s "checking for $ac_word... " >&6; }
3907 if test ${ac_cv_prog_ac_ct_CC+y}
3908 then :
3909   printf %s "(cached) " >&6
3910 else $as_nop
3911   if test -n "$ac_ct_CC"; then
3912   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917   IFS=$as_save_IFS
3918   case $as_dir in #(((
3919     '') as_dir=./ ;;
3920     */) ;;
3921     *) as_dir=$as_dir/ ;;
3922   esac
3923     for ac_exec_ext in '' $ac_executable_extensions; do
3924   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3925     ac_cv_prog_ac_ct_CC="gcc"
3926     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3927     break 2
3928   fi
3929 done
3930   done
3931 IFS=$as_save_IFS
3932
3933 fi
3934 fi
3935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3936 if test -n "$ac_ct_CC"; then
3937   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3938 printf "%s\n" "$ac_ct_CC" >&6; }
3939 else
3940   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 printf "%s\n" "no" >&6; }
3942 fi
3943
3944   if test "x$ac_ct_CC" = x; then
3945     CC=""
3946   else
3947     case $cross_compiling:$ac_tool_warned in
3948 yes:)
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3950 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3951 ac_tool_warned=yes ;;
3952 esac
3953     CC=$ac_ct_CC
3954   fi
3955 else
3956   CC="$ac_cv_prog_CC"
3957 fi
3958
3959 if test -z "$CC"; then
3960           if test -n "$ac_tool_prefix"; then
3961     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3962 set dummy ${ac_tool_prefix}cc; ac_word=$2
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 printf %s "checking for $ac_word... " >&6; }
3965 if test ${ac_cv_prog_CC+y}
3966 then :
3967   printf %s "(cached) " >&6
3968 else $as_nop
3969   if test -n "$CC"; then
3970   ac_cv_prog_CC="$CC" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975   IFS=$as_save_IFS
3976   case $as_dir in #(((
3977     '') as_dir=./ ;;
3978     */) ;;
3979     *) as_dir=$as_dir/ ;;
3980   esac
3981     for ac_exec_ext in '' $ac_executable_extensions; do
3982   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3983     ac_cv_prog_CC="${ac_tool_prefix}cc"
3984     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3985     break 2
3986   fi
3987 done
3988   done
3989 IFS=$as_save_IFS
3990
3991 fi
3992 fi
3993 CC=$ac_cv_prog_CC
3994 if test -n "$CC"; then
3995   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3996 printf "%s\n" "$CC" >&6; }
3997 else
3998   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999 printf "%s\n" "no" >&6; }
4000 fi
4001
4002
4003   fi
4004 fi
4005 if test -z "$CC"; then
4006   # Extract the first word of "cc", so it can be a program name with args.
4007 set dummy cc; ac_word=$2
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 printf %s "checking for $ac_word... " >&6; }
4010 if test ${ac_cv_prog_CC+y}
4011 then :
4012   printf %s "(cached) " >&6
4013 else $as_nop
4014   if test -n "$CC"; then
4015   ac_cv_prog_CC="$CC" # Let the user override the test.
4016 else
4017   ac_prog_rejected=no
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021   IFS=$as_save_IFS
4022   case $as_dir in #(((
4023     '') as_dir=./ ;;
4024     */) ;;
4025     *) as_dir=$as_dir/ ;;
4026   esac
4027     for ac_exec_ext in '' $ac_executable_extensions; do
4028   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4029     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4030        ac_prog_rejected=yes
4031        continue
4032      fi
4033     ac_cv_prog_CC="cc"
4034     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4035     break 2
4036   fi
4037 done
4038   done
4039 IFS=$as_save_IFS
4040
4041 if test $ac_prog_rejected = yes; then
4042   # We found a bogon in the path, so make sure we never use it.
4043   set dummy $ac_cv_prog_CC
4044   shift
4045   if test $# != 0; then
4046     # We chose a different compiler from the bogus one.
4047     # However, it has the same basename, so the bogon will be chosen
4048     # first if we set CC to just the basename; use the full file name.
4049     shift
4050     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4051   fi
4052 fi
4053 fi
4054 fi
4055 CC=$ac_cv_prog_CC
4056 if test -n "$CC"; then
4057   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4058 printf "%s\n" "$CC" >&6; }
4059 else
4060   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 printf "%s\n" "no" >&6; }
4062 fi
4063
4064
4065 fi
4066 if test -z "$CC"; then
4067   if test -n "$ac_tool_prefix"; then
4068   for ac_prog in cl.exe
4069   do
4070     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4071 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 printf %s "checking for $ac_word... " >&6; }
4074 if test ${ac_cv_prog_CC+y}
4075 then :
4076   printf %s "(cached) " >&6
4077 else $as_nop
4078   if test -n "$CC"; then
4079   ac_cv_prog_CC="$CC" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084   IFS=$as_save_IFS
4085   case $as_dir in #(((
4086     '') as_dir=./ ;;
4087     */) ;;
4088     *) as_dir=$as_dir/ ;;
4089   esac
4090     for ac_exec_ext in '' $ac_executable_extensions; do
4091   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4092     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4093     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4094     break 2
4095   fi
4096 done
4097   done
4098 IFS=$as_save_IFS
4099
4100 fi
4101 fi
4102 CC=$ac_cv_prog_CC
4103 if test -n "$CC"; then
4104   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4105 printf "%s\n" "$CC" >&6; }
4106 else
4107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 printf "%s\n" "no" >&6; }
4109 fi
4110
4111
4112     test -n "$CC" && break
4113   done
4114 fi
4115 if test -z "$CC"; then
4116   ac_ct_CC=$CC
4117   for ac_prog in cl.exe
4118 do
4119   # Extract the first word of "$ac_prog", so it can be a program name with args.
4120 set dummy $ac_prog; ac_word=$2
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 printf %s "checking for $ac_word... " >&6; }
4123 if test ${ac_cv_prog_ac_ct_CC+y}
4124 then :
4125   printf %s "(cached) " >&6
4126 else $as_nop
4127   if test -n "$ac_ct_CC"; then
4128   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133   IFS=$as_save_IFS
4134   case $as_dir in #(((
4135     '') as_dir=./ ;;
4136     */) ;;
4137     *) as_dir=$as_dir/ ;;
4138   esac
4139     for ac_exec_ext in '' $ac_executable_extensions; do
4140   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4141     ac_cv_prog_ac_ct_CC="$ac_prog"
4142     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4143     break 2
4144   fi
4145 done
4146   done
4147 IFS=$as_save_IFS
4148
4149 fi
4150 fi
4151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4152 if test -n "$ac_ct_CC"; then
4153   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4154 printf "%s\n" "$ac_ct_CC" >&6; }
4155 else
4156   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 printf "%s\n" "no" >&6; }
4158 fi
4159
4160
4161   test -n "$ac_ct_CC" && break
4162 done
4163
4164   if test "x$ac_ct_CC" = x; then
4165     CC=""
4166   else
4167     case $cross_compiling:$ac_tool_warned in
4168 yes:)
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4170 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4171 ac_tool_warned=yes ;;
4172 esac
4173     CC=$ac_ct_CC
4174   fi
4175 fi
4176
4177 fi
4178 if test -z "$CC"; then
4179   if test -n "$ac_tool_prefix"; then
4180   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4181 set dummy ${ac_tool_prefix}clang; ac_word=$2
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 printf %s "checking for $ac_word... " >&6; }
4184 if test ${ac_cv_prog_CC+y}
4185 then :
4186   printf %s "(cached) " >&6
4187 else $as_nop
4188   if test -n "$CC"; then
4189   ac_cv_prog_CC="$CC" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194   IFS=$as_save_IFS
4195   case $as_dir in #(((
4196     '') as_dir=./ ;;
4197     */) ;;
4198     *) as_dir=$as_dir/ ;;
4199   esac
4200     for ac_exec_ext in '' $ac_executable_extensions; do
4201   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4202     ac_cv_prog_CC="${ac_tool_prefix}clang"
4203     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4204     break 2
4205   fi
4206 done
4207   done
4208 IFS=$as_save_IFS
4209
4210 fi
4211 fi
4212 CC=$ac_cv_prog_CC
4213 if test -n "$CC"; then
4214   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4215 printf "%s\n" "$CC" >&6; }
4216 else
4217   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 printf "%s\n" "no" >&6; }
4219 fi
4220
4221
4222 fi
4223 if test -z "$ac_cv_prog_CC"; then
4224   ac_ct_CC=$CC
4225   # Extract the first word of "clang", so it can be a program name with args.
4226 set dummy clang; ac_word=$2
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 printf %s "checking for $ac_word... " >&6; }
4229 if test ${ac_cv_prog_ac_ct_CC+y}
4230 then :
4231   printf %s "(cached) " >&6
4232 else $as_nop
4233   if test -n "$ac_ct_CC"; then
4234   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239   IFS=$as_save_IFS
4240   case $as_dir in #(((
4241     '') as_dir=./ ;;
4242     */) ;;
4243     *) as_dir=$as_dir/ ;;
4244   esac
4245     for ac_exec_ext in '' $ac_executable_extensions; do
4246   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4247     ac_cv_prog_ac_ct_CC="clang"
4248     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4249     break 2
4250   fi
4251 done
4252   done
4253 IFS=$as_save_IFS
4254
4255 fi
4256 fi
4257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4258 if test -n "$ac_ct_CC"; then
4259   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4260 printf "%s\n" "$ac_ct_CC" >&6; }
4261 else
4262   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 printf "%s\n" "no" >&6; }
4264 fi
4265
4266   if test "x$ac_ct_CC" = x; then
4267     CC=""
4268   else
4269     case $cross_compiling:$ac_tool_warned in
4270 yes:)
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4272 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4273 ac_tool_warned=yes ;;
4274 esac
4275     CC=$ac_ct_CC
4276   fi
4277 else
4278   CC="$ac_cv_prog_CC"
4279 fi
4280
4281 fi
4282
4283
4284 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4285 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4286 as_fn_error $? "no acceptable C compiler found in \$PATH
4287 See \`config.log' for more details" "$LINENO" 5; }
4288
4289 # Provide some information about the compiler.
4290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4291 set X $ac_compile
4292 ac_compiler=$2
4293 for ac_option in --version -v -V -qversion -version; do
4294   { { ac_try="$ac_compiler $ac_option >&5"
4295 case "(($ac_try" in
4296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297   *) ac_try_echo=$ac_try;;
4298 esac
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 printf "%s\n" "$ac_try_echo"; } >&5
4301   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4302   ac_status=$?
4303   if test -s conftest.err; then
4304     sed '10a\
4305 ... rest of stderr output deleted ...
4306          10q' conftest.err >conftest.er1
4307     cat conftest.er1 >&5
4308   fi
4309   rm -f conftest.er1 conftest.err
4310   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311   test $ac_status = 0; }
4312 done
4313
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h.  */
4316
4317 int
4318 main (void)
4319 {
4320
4321   ;
4322   return 0;
4323 }
4324 _ACEOF
4325 ac_clean_files_save=$ac_clean_files
4326 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4327 # Try to create an executable without -o first, disregard a.out.
4328 # It will help us diagnose broken compilers, and finding out an intuition
4329 # of exeext.
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4331 printf %s "checking whether the C compiler works... " >&6; }
4332 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4333
4334 # The possible output files:
4335 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4336
4337 ac_rmfiles=
4338 for ac_file in $ac_files
4339 do
4340   case $ac_file in
4341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4342     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4343   esac
4344 done
4345 rm -f $ac_rmfiles
4346
4347 if { { ac_try="$ac_link_default"
4348 case "(($ac_try" in
4349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350   *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 printf "%s\n" "$ac_try_echo"; } >&5
4354   (eval "$ac_link_default") 2>&5
4355   ac_status=$?
4356   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357   test $ac_status = 0; }
4358 then :
4359   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4360 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4361 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4362 # so that the user can short-circuit this test for compilers unknown to
4363 # Autoconf.
4364 for ac_file in $ac_files ''
4365 do
4366   test -f "$ac_file" || continue
4367   case $ac_file in
4368     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4369         ;;
4370     [ab].out )
4371         # We found the default executable, but exeext='' is most
4372         # certainly right.
4373         break;;
4374     *.* )
4375         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4376         then :; else
4377            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4378         fi
4379         # We set ac_cv_exeext here because the later test for it is not
4380         # safe: cross compilers may not add the suffix if given an `-o'
4381         # argument, so we may need to know it at that point already.
4382         # Even if this section looks crufty: it has the advantage of
4383         # actually working.
4384         break;;
4385     * )
4386         break;;
4387   esac
4388 done
4389 test "$ac_cv_exeext" = no && ac_cv_exeext=
4390
4391 else $as_nop
4392   ac_file=''
4393 fi
4394 if test -z "$ac_file"
4395 then :
4396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 printf "%s\n" "no" >&6; }
4398 printf "%s\n" "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4400
4401 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4402 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4403 as_fn_error 77 "C compiler cannot create executables
4404 See \`config.log' for more details" "$LINENO" 5; }
4405 else $as_nop
4406   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4407 printf "%s\n" "yes" >&6; }
4408 fi
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4410 printf %s "checking for C compiler default output file name... " >&6; }
4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4412 printf "%s\n" "$ac_file" >&6; }
4413 ac_exeext=$ac_cv_exeext
4414
4415 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4416 ac_clean_files=$ac_clean_files_save
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4418 printf %s "checking for suffix of executables... " >&6; }
4419 if { { ac_try="$ac_link"
4420 case "(($ac_try" in
4421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422   *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 printf "%s\n" "$ac_try_echo"; } >&5
4426   (eval "$ac_link") 2>&5
4427   ac_status=$?
4428   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429   test $ac_status = 0; }
4430 then :
4431   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4432 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4433 # work properly (i.e., refer to `conftest.exe'), while it won't with
4434 # `rm'.
4435 for ac_file in conftest.exe conftest conftest.*; do
4436   test -f "$ac_file" || continue
4437   case $ac_file in
4438     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4439     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4440           break;;
4441     * ) break;;
4442   esac
4443 done
4444 else $as_nop
4445   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4446 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4447 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4448 See \`config.log' for more details" "$LINENO" 5; }
4449 fi
4450 rm -f conftest conftest$ac_cv_exeext
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4452 printf "%s\n" "$ac_cv_exeext" >&6; }
4453
4454 rm -f conftest.$ac_ext
4455 EXEEXT=$ac_cv_exeext
4456 ac_exeext=$EXEEXT
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h.  */
4459 #include <stdio.h>
4460 int
4461 main (void)
4462 {
4463 FILE *f = fopen ("conftest.out", "w");
4464  return ferror (f) || fclose (f) != 0;
4465
4466   ;
4467   return 0;
4468 }
4469 _ACEOF
4470 ac_clean_files="$ac_clean_files conftest.out"
4471 # Check that the compiler produces executables we can run.  If not, either
4472 # the compiler is broken, or we cross compile.
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4474 printf %s "checking whether we are cross compiling... " >&6; }
4475 if test "$cross_compiling" != yes; then
4476   { { ac_try="$ac_link"
4477 case "(($ac_try" in
4478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479   *) ac_try_echo=$ac_try;;
4480 esac
4481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4482 printf "%s\n" "$ac_try_echo"; } >&5
4483   (eval "$ac_link") 2>&5
4484   ac_status=$?
4485   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4486   test $ac_status = 0; }
4487   if { ac_try='./conftest$ac_cv_exeext'
4488   { { case "(($ac_try" in
4489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490   *) ac_try_echo=$ac_try;;
4491 esac
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 printf "%s\n" "$ac_try_echo"; } >&5
4494   (eval "$ac_try") 2>&5
4495   ac_status=$?
4496   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497   test $ac_status = 0; }; }; then
4498     cross_compiling=no
4499   else
4500     if test "$cross_compiling" = maybe; then
4501         cross_compiling=yes
4502     else
4503         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4504 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4505 as_fn_error 77 "cannot run C compiled programs.
4506 If you meant to cross compile, use \`--host'.
4507 See \`config.log' for more details" "$LINENO" 5; }
4508     fi
4509   fi
4510 fi
4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4512 printf "%s\n" "$cross_compiling" >&6; }
4513
4514 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4515 ac_clean_files=$ac_clean_files_save
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4517 printf %s "checking for suffix of object files... " >&6; }
4518 if test ${ac_cv_objext+y}
4519 then :
4520   printf %s "(cached) " >&6
4521 else $as_nop
4522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h.  */
4524
4525 int
4526 main (void)
4527 {
4528
4529   ;
4530   return 0;
4531 }
4532 _ACEOF
4533 rm -f conftest.o conftest.obj
4534 if { { ac_try="$ac_compile"
4535 case "(($ac_try" in
4536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537   *) ac_try_echo=$ac_try;;
4538 esac
4539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4540 printf "%s\n" "$ac_try_echo"; } >&5
4541   (eval "$ac_compile") 2>&5
4542   ac_status=$?
4543   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544   test $ac_status = 0; }
4545 then :
4546   for ac_file in conftest.o conftest.obj conftest.*; do
4547   test -f "$ac_file" || continue;
4548   case $ac_file in
4549     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4550     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4551        break;;
4552   esac
4553 done
4554 else $as_nop
4555   printf "%s\n" "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4559 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4560 as_fn_error $? "cannot compute suffix of object files: cannot compile
4561 See \`config.log' for more details" "$LINENO" 5; }
4562 fi
4563 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4564 fi
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4566 printf "%s\n" "$ac_cv_objext" >&6; }
4567 OBJEXT=$ac_cv_objext
4568 ac_objext=$OBJEXT
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4570 printf %s "checking whether the compiler supports GNU C... " >&6; }
4571 if test ${ac_cv_c_compiler_gnu+y}
4572 then :
4573   printf %s "(cached) " >&6
4574 else $as_nop
4575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h.  */
4577
4578 int
4579 main (void)
4580 {
4581 #ifndef __GNUC__
4582        choke me
4583 #endif
4584
4585   ;
4586   return 0;
4587 }
4588 _ACEOF
4589 if ac_fn_c_try_compile "$LINENO"
4590 then :
4591   ac_compiler_gnu=yes
4592 else $as_nop
4593   ac_compiler_gnu=no
4594 fi
4595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4596 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4597
4598 fi
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4600 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603 if test $ac_compiler_gnu = yes; then
4604   GCC=yes
4605 else
4606   GCC=
4607 fi
4608 ac_test_CFLAGS=${CFLAGS+y}
4609 ac_save_CFLAGS=$CFLAGS
4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4611 printf %s "checking whether $CC accepts -g... " >&6; }
4612 if test ${ac_cv_prog_cc_g+y}
4613 then :
4614   printf %s "(cached) " >&6
4615 else $as_nop
4616   ac_save_c_werror_flag=$ac_c_werror_flag
4617    ac_c_werror_flag=yes
4618    ac_cv_prog_cc_g=no
4619    CFLAGS="-g"
4620    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h.  */
4622
4623 int
4624 main (void)
4625 {
4626
4627   ;
4628   return 0;
4629 }
4630 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"
4632 then :
4633   ac_cv_prog_cc_g=yes
4634 else $as_nop
4635   CFLAGS=""
4636       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h.  */
4638
4639 int
4640 main (void)
4641 {
4642
4643   ;
4644   return 0;
4645 }
4646 _ACEOF
4647 if ac_fn_c_try_compile "$LINENO"
4648 then :
4649
4650 else $as_nop
4651   ac_c_werror_flag=$ac_save_c_werror_flag
4652          CFLAGS="-g"
4653          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h.  */
4655
4656 int
4657 main (void)
4658 {
4659
4660   ;
4661   return 0;
4662 }
4663 _ACEOF
4664 if ac_fn_c_try_compile "$LINENO"
4665 then :
4666   ac_cv_prog_cc_g=yes
4667 fi
4668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4669 fi
4670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4671 fi
4672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4673    ac_c_werror_flag=$ac_save_c_werror_flag
4674 fi
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4676 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4677 if test $ac_test_CFLAGS; then
4678   CFLAGS=$ac_save_CFLAGS
4679 elif test $ac_cv_prog_cc_g = yes; then
4680   if test "$GCC" = yes; then
4681     CFLAGS="-g -O2"
4682   else
4683     CFLAGS="-g"
4684   fi
4685 else
4686   if test "$GCC" = yes; then
4687     CFLAGS="-O2"
4688   else
4689     CFLAGS=
4690   fi
4691 fi
4692 ac_prog_cc_stdc=no
4693 if test x$ac_prog_cc_stdc = xno
4694 then :
4695   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4696 printf %s "checking for $CC option to enable C11 features... " >&6; }
4697 if test ${ac_cv_prog_cc_c11+y}
4698 then :
4699   printf %s "(cached) " >&6
4700 else $as_nop
4701   ac_cv_prog_cc_c11=no
4702 ac_save_CC=$CC
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h.  */
4705 $ac_c_conftest_c11_program
4706 _ACEOF
4707 for ac_arg in '' -std=gnu11
4708 do
4709   CC="$ac_save_CC $ac_arg"
4710   if ac_fn_c_try_compile "$LINENO"
4711 then :
4712   ac_cv_prog_cc_c11=$ac_arg
4713 fi
4714 rm -f core conftest.err conftest.$ac_objext conftest.beam
4715   test "x$ac_cv_prog_cc_c11" != "xno" && break
4716 done
4717 rm -f conftest.$ac_ext
4718 CC=$ac_save_CC
4719 fi
4720
4721 if test "x$ac_cv_prog_cc_c11" = xno
4722 then :
4723   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4724 printf "%s\n" "unsupported" >&6; }
4725 else $as_nop
4726   if test "x$ac_cv_prog_cc_c11" = x
4727 then :
4728   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4729 printf "%s\n" "none needed" >&6; }
4730 else $as_nop
4731   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4732 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4733      CC="$CC $ac_cv_prog_cc_c11"
4734 fi
4735   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4736   ac_prog_cc_stdc=c11
4737 fi
4738 fi
4739 if test x$ac_prog_cc_stdc = xno
4740 then :
4741   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4742 printf %s "checking for $CC option to enable C99 features... " >&6; }
4743 if test ${ac_cv_prog_cc_c99+y}
4744 then :
4745   printf %s "(cached) " >&6
4746 else $as_nop
4747   ac_cv_prog_cc_c99=no
4748 ac_save_CC=$CC
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h.  */
4751 $ac_c_conftest_c99_program
4752 _ACEOF
4753 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4754 do
4755   CC="$ac_save_CC $ac_arg"
4756   if ac_fn_c_try_compile "$LINENO"
4757 then :
4758   ac_cv_prog_cc_c99=$ac_arg
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext conftest.beam
4761   test "x$ac_cv_prog_cc_c99" != "xno" && break
4762 done
4763 rm -f conftest.$ac_ext
4764 CC=$ac_save_CC
4765 fi
4766
4767 if test "x$ac_cv_prog_cc_c99" = xno
4768 then :
4769   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4770 printf "%s\n" "unsupported" >&6; }
4771 else $as_nop
4772   if test "x$ac_cv_prog_cc_c99" = x
4773 then :
4774   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4775 printf "%s\n" "none needed" >&6; }
4776 else $as_nop
4777   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4778 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4779      CC="$CC $ac_cv_prog_cc_c99"
4780 fi
4781   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4782   ac_prog_cc_stdc=c99
4783 fi
4784 fi
4785 if test x$ac_prog_cc_stdc = xno
4786 then :
4787   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4788 printf %s "checking for $CC option to enable C89 features... " >&6; }
4789 if test ${ac_cv_prog_cc_c89+y}
4790 then :
4791   printf %s "(cached) " >&6
4792 else $as_nop
4793   ac_cv_prog_cc_c89=no
4794 ac_save_CC=$CC
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h.  */
4797 $ac_c_conftest_c89_program
4798 _ACEOF
4799 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4800 do
4801   CC="$ac_save_CC $ac_arg"
4802   if ac_fn_c_try_compile "$LINENO"
4803 then :
4804   ac_cv_prog_cc_c89=$ac_arg
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.beam
4807   test "x$ac_cv_prog_cc_c89" != "xno" && break
4808 done
4809 rm -f conftest.$ac_ext
4810 CC=$ac_save_CC
4811 fi
4812
4813 if test "x$ac_cv_prog_cc_c89" = xno
4814 then :
4815   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4816 printf "%s\n" "unsupported" >&6; }
4817 else $as_nop
4818   if test "x$ac_cv_prog_cc_c89" = x
4819 then :
4820   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4821 printf "%s\n" "none needed" >&6; }
4822 else $as_nop
4823   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4824 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4825      CC="$CC $ac_cv_prog_cc_c89"
4826 fi
4827   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4828   ac_prog_cc_stdc=c89
4829 fi
4830 fi
4831
4832 ac_ext=c
4833 ac_cpp='$CPP $CPPFLAGS'
4834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837
4838
4839   ac_ext=c
4840 ac_cpp='$CPP $CPPFLAGS'
4841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4845 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4846 if test ${am_cv_prog_cc_c_o+y}
4847 then :
4848   printf %s "(cached) " >&6
4849 else $as_nop
4850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h.  */
4852
4853 int
4854 main (void)
4855 {
4856
4857   ;
4858   return 0;
4859 }
4860 _ACEOF
4861   # Make sure it works both with $CC and with simple cc.
4862   # Following AC_PROG_CC_C_O, we do the test twice because some
4863   # compilers refuse to overwrite an existing .o file with -o,
4864   # though they will create one.
4865   am_cv_prog_cc_c_o=yes
4866   for am_i in 1 2; do
4867     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4868    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4869    ac_status=$?
4870    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871    (exit $ac_status); } \
4872          && test -f conftest2.$ac_objext; then
4873       : OK
4874     else
4875       am_cv_prog_cc_c_o=no
4876       break
4877     fi
4878   done
4879   rm -f core conftest*
4880   unset am_i
4881 fi
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4883 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4884 if test "$am_cv_prog_cc_c_o" != yes; then
4885    # Losing compiler, so override with the script.
4886    # FIXME: It is wrong to rewrite CC.
4887    # But if we don't then we get into trouble of one sort or another.
4888    # A longer-term fix would be to have automake use am__CC in this case,
4889    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4890    CC="$am_aux_dir/compile $CC"
4891 fi
4892 ac_ext=c
4893 ac_cpp='$CPP $CPPFLAGS'
4894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4897
4898 DEPDIR="${am__leading_dot}deps"
4899
4900 ac_config_commands="$ac_config_commands depfiles"
4901
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4903 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4904 cat > confinc.mk << 'END'
4905 am__doit:
4906         @echo this is the am__doit target >confinc.out
4907 .PHONY: am__doit
4908 END
4909 am__include="#"
4910 am__quote=
4911 # BSD make does it like this.
4912 echo '.include "confinc.mk" # ignored' > confmf.BSD
4913 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4914 echo 'include confinc.mk # ignored' > confmf.GNU
4915 _am_result=no
4916 for s in GNU BSD; do
4917   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4918    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4919    ac_status=$?
4920    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921    (exit $ac_status); }
4922   case $?:`cat confinc.out 2>/dev/null` in #(
4923   '0:this is the am__doit target') :
4924     case $s in #(
4925   BSD) :
4926     am__include='.include' am__quote='"' ;; #(
4927   *) :
4928     am__include='include' am__quote='' ;;
4929 esac ;; #(
4930   *) :
4931      ;;
4932 esac
4933   if test "$am__include" != "#"; then
4934     _am_result="yes ($s style)"
4935     break
4936   fi
4937 done
4938 rm -f confinc.* confmf.*
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4940 printf "%s\n" "${_am_result}" >&6; }
4941
4942 # Check whether --enable-dependency-tracking was given.
4943 if test ${enable_dependency_tracking+y}
4944 then :
4945   enableval=$enable_dependency_tracking;
4946 fi
4947
4948 if test "x$enable_dependency_tracking" != xno; then
4949   am_depcomp="$ac_aux_dir/depcomp"
4950   AMDEPBACKSLASH='\'
4951   am__nodep='_no'
4952 fi
4953  if test "x$enable_dependency_tracking" != xno; then
4954   AMDEP_TRUE=
4955   AMDEP_FALSE='#'
4956 else
4957   AMDEP_TRUE='#'
4958   AMDEP_FALSE=
4959 fi
4960
4961
4962
4963 depcc="$CC"   am_compiler_list=
4964
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4966 printf %s "checking dependency style of $depcc... " >&6; }
4967 if test ${am_cv_CC_dependencies_compiler_type+y}
4968 then :
4969   printf %s "(cached) " >&6
4970 else $as_nop
4971   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4972   # We make a subdir and do the tests there.  Otherwise we can end up
4973   # making bogus files that we don't know about and never remove.  For
4974   # instance it was reported that on HP-UX the gcc test will end up
4975   # making a dummy file named 'D' -- because '-MD' means "put the output
4976   # in D".
4977   rm -rf conftest.dir
4978   mkdir conftest.dir
4979   # Copy depcomp to subdir because otherwise we won't find it if we're
4980   # using a relative directory.
4981   cp "$am_depcomp" conftest.dir
4982   cd conftest.dir
4983   # We will build objects and dependencies in a subdirectory because
4984   # it helps to detect inapplicable dependency modes.  For instance
4985   # both Tru64's cc and ICC support -MD to output dependencies as a
4986   # side effect of compilation, but ICC will put the dependencies in
4987   # the current directory while Tru64 will put them in the object
4988   # directory.
4989   mkdir sub
4990
4991   am_cv_CC_dependencies_compiler_type=none
4992   if test "$am_compiler_list" = ""; then
4993      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4994   fi
4995   am__universal=false
4996   case " $depcc " in #(
4997      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4998      esac
4999
5000   for depmode in $am_compiler_list; do
5001     # Setup a source with many dependencies, because some compilers
5002     # like to wrap large dependency lists on column 80 (with \), and
5003     # we should not choose a depcomp mode which is confused by this.
5004     #
5005     # We need to recreate these files for each test, as the compiler may
5006     # overwrite some of them when testing with obscure command lines.
5007     # This happens at least with the AIX C compiler.
5008     : > sub/conftest.c
5009     for i in 1 2 3 4 5 6; do
5010       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5011       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5012       # Solaris 10 /bin/sh.
5013       echo '/* dummy */' > sub/conftst$i.h
5014     done
5015     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5016
5017     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5018     # mode.  It turns out that the SunPro C++ compiler does not properly
5019     # handle '-M -o', and we need to detect this.  Also, some Intel
5020     # versions had trouble with output in subdirs.
5021     am__obj=sub/conftest.${OBJEXT-o}
5022     am__minus_obj="-o $am__obj"
5023     case $depmode in
5024     gcc)
5025       # This depmode causes a compiler race in universal mode.
5026       test "$am__universal" = false || continue
5027       ;;
5028     nosideeffect)
5029       # After this tag, mechanisms are not by side-effect, so they'll
5030       # only be used when explicitly requested.
5031       if test "x$enable_dependency_tracking" = xyes; then
5032         continue
5033       else
5034         break
5035       fi
5036       ;;
5037     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5038       # This compiler won't grok '-c -o', but also, the minuso test has
5039       # not run yet.  These depmodes are late enough in the game, and
5040       # so weak that their functioning should not be impacted.
5041       am__obj=conftest.${OBJEXT-o}
5042       am__minus_obj=
5043       ;;
5044     none) break ;;
5045     esac
5046     if depmode=$depmode \
5047        source=sub/conftest.c object=$am__obj \
5048        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5049        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5050          >/dev/null 2>conftest.err &&
5051        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5052        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5053        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5054        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5055       # icc doesn't choke on unknown options, it will just issue warnings
5056       # or remarks (even with -Werror).  So we grep stderr for any message
5057       # that says an option was ignored or not supported.
5058       # When given -MP, icc 7.0 and 7.1 complain thusly:
5059       #   icc: Command line warning: ignoring option '-M'; no argument required
5060       # The diagnosis changed in icc 8.0:
5061       #   icc: Command line remark: option '-MP' not supported
5062       if (grep 'ignoring option' conftest.err ||
5063           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5064         am_cv_CC_dependencies_compiler_type=$depmode
5065         break
5066       fi
5067     fi
5068   done
5069
5070   cd ..
5071   rm -rf conftest.dir
5072 else
5073   am_cv_CC_dependencies_compiler_type=none
5074 fi
5075
5076 fi
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5078 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5079 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5080
5081  if
5082   test "x$enable_dependency_tracking" != xno \
5083   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5084   am__fastdepCC_TRUE=
5085   am__fastdepCC_FALSE='#'
5086 else
5087   am__fastdepCC_TRUE='#'
5088   am__fastdepCC_FALSE=
5089 fi
5090
5091
5092
5093 ac_header= ac_cache=
5094 for ac_item in $ac_header_c_list
5095 do
5096   if test $ac_cache; then
5097     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5098     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5099       printf "%s\n" "#define $ac_item 1" >> confdefs.h
5100     fi
5101     ac_header= ac_cache=
5102   elif test $ac_header; then
5103     ac_cache=$ac_item
5104   else
5105     ac_header=$ac_item
5106   fi
5107 done
5108
5109
5110
5111
5112
5113
5114
5115
5116 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5117 then :
5118
5119 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5120
5121 fi
5122
5123
5124
5125
5126
5127
5128   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5129 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5130 if test ${ac_cv_safe_to_define___extensions__+y}
5131 then :
5132   printf %s "(cached) " >&6
5133 else $as_nop
5134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h.  */
5136
5137 #         define __EXTENSIONS__ 1
5138           $ac_includes_default
5139 int
5140 main (void)
5141 {
5142
5143   ;
5144   return 0;
5145 }
5146 _ACEOF
5147 if ac_fn_c_try_compile "$LINENO"
5148 then :
5149   ac_cv_safe_to_define___extensions__=yes
5150 else $as_nop
5151   ac_cv_safe_to_define___extensions__=no
5152 fi
5153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5154 fi
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5156 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5157
5158   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5159 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5160 if test ${ac_cv_should_define__xopen_source+y}
5161 then :
5162   printf %s "(cached) " >&6
5163 else $as_nop
5164   ac_cv_should_define__xopen_source=no
5165     if test $ac_cv_header_wchar_h = yes
5166 then :
5167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h.  */
5169
5170           #include <wchar.h>
5171           mbstate_t x;
5172 int
5173 main (void)
5174 {
5175
5176   ;
5177   return 0;
5178 }
5179 _ACEOF
5180 if ac_fn_c_try_compile "$LINENO"
5181 then :
5182
5183 else $as_nop
5184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h.  */
5186
5187             #define _XOPEN_SOURCE 500
5188             #include <wchar.h>
5189             mbstate_t x;
5190 int
5191 main (void)
5192 {
5193
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 if ac_fn_c_try_compile "$LINENO"
5199 then :
5200   ac_cv_should_define__xopen_source=yes
5201 fi
5202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5203 fi
5204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5205 fi
5206 fi
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5208 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5209
5210   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5211
5212   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5213
5214   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5215
5216   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5217
5218   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5219
5220   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5221
5222   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5223
5224   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5225
5226   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5227
5228   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5229
5230   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5231
5232   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5233
5234   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5235
5236   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5237
5238   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5239
5240   if test $ac_cv_header_minix_config_h = yes
5241 then :
5242   MINIX=yes
5243     printf "%s\n" "#define _MINIX 1" >>confdefs.h
5244
5245     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5246
5247     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5248
5249 else $as_nop
5250   MINIX=
5251 fi
5252   if test $ac_cv_safe_to_define___extensions__ = yes
5253 then :
5254   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5255
5256 fi
5257   if test $ac_cv_should_define__xopen_source = yes
5258 then :
5259   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5260
5261 fi
5262
5263 # Check whether --enable-largefile was given.
5264 if test ${enable_largefile+y}
5265 then :
5266   enableval=$enable_largefile;
5267 fi
5268
5269 if test "$enable_largefile" != no; then
5270
5271   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5272 printf %s "checking for special C compiler options needed for large files... " >&6; }
5273 if test ${ac_cv_sys_largefile_CC+y}
5274 then :
5275   printf %s "(cached) " >&6
5276 else $as_nop
5277   ac_cv_sys_largefile_CC=no
5278      if test "$GCC" != yes; then
5279        ac_save_CC=$CC
5280        while :; do
5281          # IRIX 6.2 and later do not support large files by default,
5282          # so use the C compiler's -n32 option if that helps.
5283          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h.  */
5285 #include <sys/types.h>
5286  /* Check that off_t can represent 2**63 - 1 correctly.
5287     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5288     since some C++ compilers masquerading as C compilers
5289     incorrectly reject 9223372036854775807.  */
5290 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5291   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5292                        && LARGE_OFF_T % 2147483647 == 1)
5293                       ? 1 : -1];
5294 int
5295 main (void)
5296 {
5297
5298   ;
5299   return 0;
5300 }
5301 _ACEOF
5302          if ac_fn_c_try_compile "$LINENO"
5303 then :
5304   break
5305 fi
5306 rm -f core conftest.err conftest.$ac_objext conftest.beam
5307          CC="$CC -n32"
5308          if ac_fn_c_try_compile "$LINENO"
5309 then :
5310   ac_cv_sys_largefile_CC=' -n32'; break
5311 fi
5312 rm -f core conftest.err conftest.$ac_objext conftest.beam
5313          break
5314        done
5315        CC=$ac_save_CC
5316        rm -f conftest.$ac_ext
5317     fi
5318 fi
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5320 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
5321   if test "$ac_cv_sys_largefile_CC" != no; then
5322     CC=$CC$ac_cv_sys_largefile_CC
5323   fi
5324
5325   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5326 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5327 if test ${ac_cv_sys_file_offset_bits+y}
5328 then :
5329   printf %s "(cached) " >&6
5330 else $as_nop
5331   while :; do
5332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h.  */
5334 #include <sys/types.h>
5335  /* Check that off_t can represent 2**63 - 1 correctly.
5336     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5337     since some C++ compilers masquerading as C compilers
5338     incorrectly reject 9223372036854775807.  */
5339 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5340   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5341                        && LARGE_OFF_T % 2147483647 == 1)
5342                       ? 1 : -1];
5343 int
5344 main (void)
5345 {
5346
5347   ;
5348   return 0;
5349 }
5350 _ACEOF
5351 if ac_fn_c_try_compile "$LINENO"
5352 then :
5353   ac_cv_sys_file_offset_bits=no; break
5354 fi
5355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h.  */
5358 #define _FILE_OFFSET_BITS 64
5359 #include <sys/types.h>
5360  /* Check that off_t can represent 2**63 - 1 correctly.
5361     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5362     since some C++ compilers masquerading as C compilers
5363     incorrectly reject 9223372036854775807.  */
5364 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5365   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5366                        && LARGE_OFF_T % 2147483647 == 1)
5367                       ? 1 : -1];
5368 int
5369 main (void)
5370 {
5371
5372   ;
5373   return 0;
5374 }
5375 _ACEOF
5376 if ac_fn_c_try_compile "$LINENO"
5377 then :
5378   ac_cv_sys_file_offset_bits=64; break
5379 fi
5380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5381   ac_cv_sys_file_offset_bits=unknown
5382   break
5383 done
5384 fi
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5386 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
5387 case $ac_cv_sys_file_offset_bits in #(
5388   no | unknown) ;;
5389   *)
5390 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
5391 ;;
5392 esac
5393 rm -rf conftest*
5394   if test $ac_cv_sys_file_offset_bits = unknown; then
5395     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5396 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5397 if test ${ac_cv_sys_large_files+y}
5398 then :
5399   printf %s "(cached) " >&6
5400 else $as_nop
5401   while :; do
5402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h.  */
5404 #include <sys/types.h>
5405  /* Check that off_t can represent 2**63 - 1 correctly.
5406     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5407     since some C++ compilers masquerading as C compilers
5408     incorrectly reject 9223372036854775807.  */
5409 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5410   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5411                        && LARGE_OFF_T % 2147483647 == 1)
5412                       ? 1 : -1];
5413 int
5414 main (void)
5415 {
5416
5417   ;
5418   return 0;
5419 }
5420 _ACEOF
5421 if ac_fn_c_try_compile "$LINENO"
5422 then :
5423   ac_cv_sys_large_files=no; break
5424 fi
5425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h.  */
5428 #define _LARGE_FILES 1
5429 #include <sys/types.h>
5430  /* Check that off_t can represent 2**63 - 1 correctly.
5431     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5432     since some C++ compilers masquerading as C compilers
5433     incorrectly reject 9223372036854775807.  */
5434 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5435   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5436                        && LARGE_OFF_T % 2147483647 == 1)
5437                       ? 1 : -1];
5438 int
5439 main (void)
5440 {
5441
5442   ;
5443   return 0;
5444 }
5445 _ACEOF
5446 if ac_fn_c_try_compile "$LINENO"
5447 then :
5448   ac_cv_sys_large_files=1; break
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5451   ac_cv_sys_large_files=unknown
5452   break
5453 done
5454 fi
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5456 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
5457 case $ac_cv_sys_large_files in #(
5458   no | unknown) ;;
5459   *)
5460 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
5461 ;;
5462 esac
5463 rm -rf conftest*
5464   fi
5465 fi
5466
5467
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5469 printf %s "checking whether ln -s works... " >&6; }
5470 LN_S=$as_ln_s
5471 if test "$LN_S" = "ln -s"; then
5472   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5473 printf "%s\n" "yes" >&6; }
5474 else
5475   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5476 printf "%s\n" "no, using $LN_S" >&6; }
5477 fi
5478
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5480 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5481 set x ${MAKE-make}
5482 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5483 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5484 then :
5485   printf %s "(cached) " >&6
5486 else $as_nop
5487   cat >conftest.make <<\_ACEOF
5488 SHELL = /bin/sh
5489 all:
5490         @echo '@@@%%%=$(MAKE)=@@@%%%'
5491 _ACEOF
5492 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5493 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5494   *@@@%%%=?*=@@@%%%*)
5495     eval ac_cv_prog_make_${ac_make}_set=yes;;
5496   *)
5497     eval ac_cv_prog_make_${ac_make}_set=no;;
5498 esac
5499 rm -f conftest.make
5500 fi
5501 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5502   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5503 printf "%s\n" "yes" >&6; }
5504   SET_MAKE=
5505 else
5506   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 printf "%s\n" "no" >&6; }
5508   SET_MAKE="MAKE=${MAKE-make}"
5509 fi
5510
5511
5512
5513
5514
5515
5516
5517
5518 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5519         if test -n "$ac_tool_prefix"; then
5520   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5521 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 printf %s "checking for $ac_word... " >&6; }
5524 if test ${ac_cv_path_PKG_CONFIG+y}
5525 then :
5526   printf %s "(cached) " >&6
5527 else $as_nop
5528   case $PKG_CONFIG in
5529   [\\/]* | ?:[\\/]*)
5530   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5531   ;;
5532   *)
5533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536   IFS=$as_save_IFS
5537   case $as_dir in #(((
5538     '') as_dir=./ ;;
5539     */) ;;
5540     *) as_dir=$as_dir/ ;;
5541   esac
5542     for ac_exec_ext in '' $ac_executable_extensions; do
5543   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5544     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5545     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5546     break 2
5547   fi
5548 done
5549   done
5550 IFS=$as_save_IFS
5551
5552   ;;
5553 esac
5554 fi
5555 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5556 if test -n "$PKG_CONFIG"; then
5557   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5558 printf "%s\n" "$PKG_CONFIG" >&6; }
5559 else
5560   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 printf "%s\n" "no" >&6; }
5562 fi
5563
5564
5565 fi
5566 if test -z "$ac_cv_path_PKG_CONFIG"; then
5567   ac_pt_PKG_CONFIG=$PKG_CONFIG
5568   # Extract the first word of "pkg-config", so it can be a program name with args.
5569 set dummy pkg-config; ac_word=$2
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 printf %s "checking for $ac_word... " >&6; }
5572 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5573 then :
5574   printf %s "(cached) " >&6
5575 else $as_nop
5576   case $ac_pt_PKG_CONFIG in
5577   [\\/]* | ?:[\\/]*)
5578   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5579   ;;
5580   *)
5581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584   IFS=$as_save_IFS
5585   case $as_dir in #(((
5586     '') as_dir=./ ;;
5587     */) ;;
5588     *) as_dir=$as_dir/ ;;
5589   esac
5590     for ac_exec_ext in '' $ac_executable_extensions; do
5591   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5592     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5593     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5594     break 2
5595   fi
5596 done
5597   done
5598 IFS=$as_save_IFS
5599
5600   ;;
5601 esac
5602 fi
5603 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5604 if test -n "$ac_pt_PKG_CONFIG"; then
5605   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5606 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5607 else
5608   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 printf "%s\n" "no" >&6; }
5610 fi
5611
5612   if test "x$ac_pt_PKG_CONFIG" = x; then
5613     PKG_CONFIG=""
5614   else
5615     case $cross_compiling:$ac_tool_warned in
5616 yes:)
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5618 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5619 ac_tool_warned=yes ;;
5620 esac
5621     PKG_CONFIG=$ac_pt_PKG_CONFIG
5622   fi
5623 else
5624   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5625 fi
5626
5627 fi
5628 if test -n "$PKG_CONFIG"; then
5629         _pkg_min_version=0.9.0
5630         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5631 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5632         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5633                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5634 printf "%s\n" "yes" >&6; }
5635         else
5636                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 printf "%s\n" "no" >&6; }
5638                 PKG_CONFIG=""
5639         fi
5640 fi
5641
5642
5643
5644 # Check whether --with-pkgconfigdir was given.
5645 if test ${with_pkgconfigdir+y}
5646 then :
5647   withval=$with_pkgconfigdir;
5648 else $as_nop
5649   with_pkgconfigdir='${libdir}/pkgconfig'
5650 fi
5651
5652 pkgconfigdir=$with_pkgconfigdir
5653
5654
5655
5656
5657
5658
5659 GIT=${GIT-"${am_missing_run}git"}
5660
5661
5662 GPERF=${GPERF-"${am_missing_run}gperf"}
5663
5664
5665
5666
5667
5668
5669
5670         if test -n "$PYTHON"; then
5671       # If the user set $PYTHON, use it and don't search something else.
5672       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5
5673 printf %s "checking whether $PYTHON version is >= 3... " >&6; }
5674       prog="import sys
5675 # split strings by '.' and convert to numeric.  Append some zeros
5676 # because we need at least 4 digits for the hex conversion.
5677 # map returns an iterator in Python 3.0 and a list in 2.x
5678 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
5679 minverhex = 0
5680 # xrange is not present in Python 3.0 and range returns an iterator
5681 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5682 sys.exit(sys.hexversion < minverhex)"
5683   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5684    ($PYTHON -c "$prog") >&5 2>&5
5685    ac_status=$?
5686    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687    (exit $ac_status); }
5688 then :
5689   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5690 printf "%s\n" "yes" >&6; }
5691 else $as_nop
5692   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 printf "%s\n" "no" >&6; }
5694                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5695 fi
5696       am_display_PYTHON=$PYTHON
5697     else
5698       # Otherwise, try each interpreter until we find one that satisfies
5699       # VERSION.
5700       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5
5701 printf %s "checking for a Python interpreter with version >= 3... " >&6; }
5702 if test ${am_cv_pathless_PYTHON+y}
5703 then :
5704   printf %s "(cached) " >&6
5705 else $as_nop
5706
5707         for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
5708           test "$am_cv_pathless_PYTHON" = none && break
5709           prog="import sys
5710 # split strings by '.' and convert to numeric.  Append some zeros
5711 # because we need at least 4 digits for the hex conversion.
5712 # map returns an iterator in Python 3.0 and a list in 2.x
5713 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
5714 minverhex = 0
5715 # xrange is not present in Python 3.0 and range returns an iterator
5716 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5717 sys.exit(sys.hexversion < minverhex)"
5718   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5719    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5720    ac_status=$?
5721    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722    (exit $ac_status); }
5723 then :
5724   break
5725 fi
5726         done
5727 fi
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5729 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
5730       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5731       if test "$am_cv_pathless_PYTHON" = none; then
5732         PYTHON=:
5733       else
5734         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5735 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 printf %s "checking for $ac_word... " >&6; }
5738 if test ${ac_cv_path_PYTHON+y}
5739 then :
5740   printf %s "(cached) " >&6
5741 else $as_nop
5742   case $PYTHON in
5743   [\\/]* | ?:[\\/]*)
5744   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5745   ;;
5746   *)
5747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750   IFS=$as_save_IFS
5751   case $as_dir in #(((
5752     '') as_dir=./ ;;
5753     */) ;;
5754     *) as_dir=$as_dir/ ;;
5755   esac
5756     for ac_exec_ext in '' $ac_executable_extensions; do
5757   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5758     ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
5759     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5760     break 2
5761   fi
5762 done
5763   done
5764 IFS=$as_save_IFS
5765
5766   ;;
5767 esac
5768 fi
5769 PYTHON=$ac_cv_path_PYTHON
5770 if test -n "$PYTHON"; then
5771   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5772 printf "%s\n" "$PYTHON" >&6; }
5773 else
5774   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 printf "%s\n" "no" >&6; }
5776 fi
5777
5778
5779       fi
5780       am_display_PYTHON=$am_cv_pathless_PYTHON
5781     fi
5782
5783
5784   if test "$PYTHON" = :; then
5785         as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5786   else
5787
5788               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5789 printf %s "checking for $am_display_PYTHON version... " >&6; }
5790 if test ${am_cv_python_version+y}
5791 then :
5792   printf %s "(cached) " >&6
5793 else $as_nop
5794   am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
5795 fi
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5797 printf "%s\n" "$am_cv_python_version" >&6; }
5798   PYTHON_VERSION=$am_cv_python_version
5799
5800
5801         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5802 printf %s "checking for $am_display_PYTHON platform... " >&6; }
5803 if test ${am_cv_python_platform+y}
5804 then :
5805   printf %s "(cached) " >&6
5806 else $as_nop
5807   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5808 fi
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5810 printf "%s\n" "$am_cv_python_platform" >&6; }
5811   PYTHON_PLATFORM=$am_cv_python_platform
5812
5813
5814                             if test "x$prefix" = xNONE; then
5815     am__usable_prefix=$ac_default_prefix
5816   else
5817     am__usable_prefix=$prefix
5818   fi
5819
5820   # Allow user to request using sys.* values from Python,
5821   # instead of the GNU $prefix values.
5822
5823 # Check whether --with-python-sys-prefix was given.
5824 if test ${with_python_sys_prefix+y}
5825 then :
5826   withval=$with_python_sys_prefix; am_use_python_sys=:
5827 else $as_nop
5828   am_use_python_sys=false
5829 fi
5830
5831
5832   # Allow user to override whatever the default Python prefix is.
5833
5834 # Check whether --with-python_prefix was given.
5835 if test ${with_python_prefix+y}
5836 then :
5837   withval=$with_python_prefix; am_python_prefix_subst=$withval
5838    am_cv_python_prefix=$withval
5839    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
5840 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
5841    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5842 printf "%s\n" "$am_cv_python_prefix" >&6; }
5843 else $as_nop
5844
5845    if $am_use_python_sys; then
5846      # using python sys.prefix value, not GNU
5847      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
5848 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
5849 if test ${am_cv_python_prefix+y}
5850 then :
5851   printf %s "(cached) " >&6
5852 else $as_nop
5853   am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
5854 fi
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5856 printf "%s\n" "$am_cv_python_prefix" >&6; }
5857
5858                case $am_cv_python_prefix in
5859      $am__usable_prefix*)
5860        am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
5861        am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
5862        ;;
5863      *)
5864        am_python_prefix_subst=$am_cv_python_prefix
5865        ;;
5866      esac
5867    else # using GNU prefix value, not python sys.prefix
5868      am_python_prefix_subst='${prefix}'
5869      am_python_prefix=$am_python_prefix_subst
5870      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
5871 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
5872      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
5873 printf "%s\n" "$am_python_prefix" >&6; }
5874    fi
5875 fi
5876
5877   # Substituting python_prefix_subst value.
5878   PYTHON_PREFIX=$am_python_prefix_subst
5879
5880
5881   # emacs-page Now do it all over again for Python exec_prefix, but with yet
5882   # another conditional: fall back to regular prefix if that was specified.
5883
5884 # Check whether --with-python_exec_prefix was given.
5885 if test ${with_python_exec_prefix+y}
5886 then :
5887   withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
5888    am_cv_python_exec_prefix=$withval
5889    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
5890 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
5891    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5892 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5893 else $as_nop
5894
5895    # no explicit --with-python_exec_prefix, but if
5896    # --with-python_prefix was given, use its value for python_exec_prefix too.
5897    if test -n "$with_python_prefix"
5898 then :
5899   am_python_exec_prefix_subst=$with_python_prefix
5900     am_cv_python_exec_prefix=$with_python_prefix
5901     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
5902 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
5903     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5904 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5905 else $as_nop
5906
5907     # Set am__usable_exec_prefix whether using GNU or Python values,
5908     # since we use that variable for pyexecdir.
5909     if test "x$exec_prefix" = xNONE; then
5910       am__usable_exec_prefix=$am__usable_prefix
5911     else
5912       am__usable_exec_prefix=$exec_prefix
5913     fi
5914     #
5915     if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
5916       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
5917 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
5918 if test ${am_cv_python_exec_prefix+y}
5919 then :
5920   printf %s "(cached) " >&6
5921 else $as_nop
5922   am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
5923 fi
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5925 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5926                         case $am_cv_python_exec_prefix in
5927       $am__usable_exec_prefix*)
5928         am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
5929         am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
5930         ;;
5931       *)
5932         am_python_exec_prefix_subst=$am_cv_python_exec_prefix
5933         ;;
5934      esac
5935    else # using GNU $exec_prefix, not python sys.exec_prefix
5936      am_python_exec_prefix_subst='${exec_prefix}'
5937      am_python_exec_prefix=$am_python_exec_prefix_subst
5938      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
5939 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
5940      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
5941 printf "%s\n" "$am_python_exec_prefix" >&6; }
5942    fi
5943 fi
5944 fi
5945
5946   # Substituting python_exec_prefix_subst.
5947   PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
5948
5949
5950   # Factor out some code duplication into this shell variable.
5951   am_python_setup_sysconfig="\
5952 import sys
5953 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5954 # with python 3.x.  See automake bug#10227.
5955 try:
5956     import sysconfig
5957 except ImportError:
5958     can_use_sysconfig = 0
5959 else:
5960     can_use_sysconfig = 1
5961 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5962 # <https://github.com/pypa/virtualenv/issues/118>
5963 try:
5964     from platform import python_implementation
5965     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5966         can_use_sysconfig = 0
5967 except ImportError:
5968     pass"
5969
5970
5971               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
5972 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
5973 if test ${am_cv_python_pythondir+y}
5974 then :
5975   printf %s "(cached) " >&6
5976 else $as_nop
5977   if test "x$am_cv_python_prefix" = x; then
5978      am_py_prefix=$am__usable_prefix
5979    else
5980      am_py_prefix=$am_cv_python_prefix
5981    fi
5982    am_cv_python_pythondir=`$PYTHON -c "
5983 $am_python_setup_sysconfig
5984 if can_use_sysconfig:
5985   sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5986 else:
5987   from distutils import sysconfig
5988   sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5989 sys.stdout.write(sitedir)"`
5990    #
5991    case $am_cv_python_pythondir in
5992    $am_py_prefix*)
5993      am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5994      am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
5995      ;;
5996    *)
5997      case $am_py_prefix in
5998        /usr|/System*) ;;
5999        *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
6000           ;;
6001      esac
6002      ;;
6003    esac
6004
6005 fi
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6007 printf "%s\n" "$am_cv_python_pythondir" >&6; }
6008   pythondir=$am_cv_python_pythondir
6009
6010
6011           pkgpythondir=\${pythondir}/$PACKAGE
6012
6013
6014           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
6015 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
6016 if test ${am_cv_python_pyexecdir+y}
6017 then :
6018   printf %s "(cached) " >&6
6019 else $as_nop
6020   if test "x$am_cv_python_exec_prefix" = x; then
6021      am_py_exec_prefix=$am__usable_exec_prefix
6022    else
6023      am_py_exec_prefix=$am_cv_python_exec_prefix
6024    fi
6025    am_cv_python_pyexecdir=`$PYTHON -c "
6026 $am_python_setup_sysconfig
6027 if can_use_sysconfig:
6028   sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
6029 else:
6030   from distutils import sysconfig
6031   sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
6032 sys.stdout.write(sitedir)"`
6033    #
6034    case $am_cv_python_pyexecdir in
6035    $am_py_exec_prefix*)
6036      am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6037      am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
6038      ;;
6039    *)
6040      case $am_py_exec_prefix in
6041        /usr|/System*) ;;
6042        *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
6043           ;;
6044      esac
6045      ;;
6046    esac
6047
6048 fi
6049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6050 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
6051   pyexecdir=$am_cv_python_pyexecdir
6052
6053
6054       pkgpyexecdir=\${pyexecdir}/$PACKAGE
6055
6056
6057
6058   fi
6059
6060
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
6062 printf %s "checking for RM macro... " >&6; }
6063 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
6064 if test "x$_predefined_rm" = "x"; then
6065         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
6066 printf "%s\n" "no predefined RM" >&6; }
6067         # Extract the first word of "rm", so it can be a program name with args.
6068 set dummy rm; ac_word=$2
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 printf %s "checking for $ac_word... " >&6; }
6071 if test ${ac_cv_prog_RM+y}
6072 then :
6073   printf %s "(cached) " >&6
6074 else $as_nop
6075   if test -n "$RM"; then
6076   ac_cv_prog_RM="$RM" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081   IFS=$as_save_IFS
6082   case $as_dir in #(((
6083     '') as_dir=./ ;;
6084     */) ;;
6085     *) as_dir=$as_dir/ ;;
6086   esac
6087     for ac_exec_ext in '' $ac_executable_extensions; do
6088   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6089     ac_cv_prog_RM="rm -f"
6090     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6091     break 2
6092   fi
6093 done
6094   done
6095 IFS=$as_save_IFS
6096
6097 fi
6098 fi
6099 RM=$ac_cv_prog_RM
6100 if test -n "$RM"; then
6101   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
6102 printf "%s\n" "$RM" >&6; }
6103 else
6104   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 printf "%s\n" "no" >&6; }
6106 fi
6107
6108
6109 else
6110         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
6111 printf "%s\n" "$_predefined_rm" >&6; }
6112 fi
6113
6114
6115 case `pwd` in
6116   *\ * | *\     *)
6117     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6118 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6119 esac
6120
6121
6122
6123 macro_version='2.4.7'
6124 macro_revision='2.4.7'
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139 ltmain=$ac_aux_dir/ltmain.sh
6140
6141
6142
6143   # Make sure we can run config.sub.
6144 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6145   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6146
6147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6148 printf %s "checking build system type... " >&6; }
6149 if test ${ac_cv_build+y}
6150 then :
6151   printf %s "(cached) " >&6
6152 else $as_nop
6153   ac_build_alias=$build_alias
6154 test "x$ac_build_alias" = x &&
6155   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6156 test "x$ac_build_alias" = x &&
6157   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6158 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6159   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6160
6161 fi
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6163 printf "%s\n" "$ac_cv_build" >&6; }
6164 case $ac_cv_build in
6165 *-*-*) ;;
6166 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6167 esac
6168 build=$ac_cv_build
6169 ac_save_IFS=$IFS; IFS='-'
6170 set x $ac_cv_build
6171 shift
6172 build_cpu=$1
6173 build_vendor=$2
6174 shift; shift
6175 # Remember, the first character of IFS is used to create $*,
6176 # except with old shells:
6177 build_os=$*
6178 IFS=$ac_save_IFS
6179 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6180
6181
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6183 printf %s "checking host system type... " >&6; }
6184 if test ${ac_cv_host+y}
6185 then :
6186   printf %s "(cached) " >&6
6187 else $as_nop
6188   if test "x$host_alias" = x; then
6189   ac_cv_host=$ac_cv_build
6190 else
6191   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6192     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6193 fi
6194
6195 fi
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6197 printf "%s\n" "$ac_cv_host" >&6; }
6198 case $ac_cv_host in
6199 *-*-*) ;;
6200 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6201 esac
6202 host=$ac_cv_host
6203 ac_save_IFS=$IFS; IFS='-'
6204 set x $ac_cv_host
6205 shift
6206 host_cpu=$1
6207 host_vendor=$2
6208 shift; shift
6209 # Remember, the first character of IFS is used to create $*,
6210 # except with old shells:
6211 host_os=$*
6212 IFS=$ac_save_IFS
6213 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6214
6215
6216 # Backslashify metacharacters that are still active within
6217 # double-quoted strings.
6218 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6219
6220 # Same as above, but do not quote variable references.
6221 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6222
6223 # Sed substitution to delay expansion of an escaped shell variable in a
6224 # double_quote_subst'ed string.
6225 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6226
6227 # Sed substitution to delay expansion of an escaped single quote.
6228 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6229
6230 # Sed substitution to avoid accidental globbing in evaled expressions
6231 no_glob_subst='s/\*/\\\*/g'
6232
6233 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6234 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6235 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6236
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6238 printf %s "checking how to print strings... " >&6; }
6239 # Test print first, because it will be a builtin if present.
6240 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6241    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6242   ECHO='print -r --'
6243 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6244   ECHO='printf %s\n'
6245 else
6246   # Use this function as a fallback that always works.
6247   func_fallback_echo ()
6248   {
6249     eval 'cat <<_LTECHO_EOF
6250 $1
6251 _LTECHO_EOF'
6252   }
6253   ECHO='func_fallback_echo'
6254 fi
6255
6256 # func_echo_all arg...
6257 # Invoke $ECHO with all args, space-separated.
6258 func_echo_all ()
6259 {
6260     $ECHO ""
6261 }
6262
6263 case $ECHO in
6264   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6265 printf "%s\n" "printf" >&6; } ;;
6266   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6267 printf "%s\n" "print -r" >&6; } ;;
6268   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6269 printf "%s\n" "cat" >&6; } ;;
6270 esac
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6286 printf %s "checking for a sed that does not truncate output... " >&6; }
6287 if test ${ac_cv_path_SED+y}
6288 then :
6289   printf %s "(cached) " >&6
6290 else $as_nop
6291             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6292      for ac_i in 1 2 3 4 5 6 7; do
6293        ac_script="$ac_script$as_nl$ac_script"
6294      done
6295      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6296      { ac_script=; unset ac_script;}
6297      if test -z "$SED"; then
6298   ac_path_SED_found=false
6299   # Loop through the user's path and test for each of PROGNAME-LIST
6300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   case $as_dir in #(((
6305     '') as_dir=./ ;;
6306     */) ;;
6307     *) as_dir=$as_dir/ ;;
6308   esac
6309     for ac_prog in sed gsed
6310    do
6311     for ac_exec_ext in '' $ac_executable_extensions; do
6312       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6313       as_fn_executable_p "$ac_path_SED" || continue
6314 # Check for GNU ac_path_SED and select it if it is found.
6315   # Check for GNU $ac_path_SED
6316 case `"$ac_path_SED" --version 2>&1` in
6317 *GNU*)
6318   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6319 *)
6320   ac_count=0
6321   printf %s 0123456789 >"conftest.in"
6322   while :
6323   do
6324     cat "conftest.in" "conftest.in" >"conftest.tmp"
6325     mv "conftest.tmp" "conftest.in"
6326     cp "conftest.in" "conftest.nl"
6327     printf "%s\n" '' >> "conftest.nl"
6328     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6329     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6330     as_fn_arith $ac_count + 1 && ac_count=$as_val
6331     if test $ac_count -gt ${ac_path_SED_max-0}; then
6332       # Best one so far, save it but keep looking for a better one
6333       ac_cv_path_SED="$ac_path_SED"
6334       ac_path_SED_max=$ac_count
6335     fi
6336     # 10*(2^10) chars as input seems more than enough
6337     test $ac_count -gt 10 && break
6338   done
6339   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6340 esac
6341
6342       $ac_path_SED_found && break 3
6343     done
6344   done
6345   done
6346 IFS=$as_save_IFS
6347   if test -z "$ac_cv_path_SED"; then
6348     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6349   fi
6350 else
6351   ac_cv_path_SED=$SED
6352 fi
6353
6354 fi
6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6356 printf "%s\n" "$ac_cv_path_SED" >&6; }
6357  SED="$ac_cv_path_SED"
6358   rm -f conftest.sed
6359
6360 test -z "$SED" && SED=sed
6361 Xsed="$SED -e 1s/^X//"
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6374 printf %s "checking for grep that handles long lines and -e... " >&6; }
6375 if test ${ac_cv_path_GREP+y}
6376 then :
6377   printf %s "(cached) " >&6
6378 else $as_nop
6379   if test -z "$GREP"; then
6380   ac_path_GREP_found=false
6381   # Loop through the user's path and test for each of PROGNAME-LIST
6382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6384 do
6385   IFS=$as_save_IFS
6386   case $as_dir in #(((
6387     '') as_dir=./ ;;
6388     */) ;;
6389     *) as_dir=$as_dir/ ;;
6390   esac
6391     for ac_prog in grep ggrep
6392    do
6393     for ac_exec_ext in '' $ac_executable_extensions; do
6394       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6395       as_fn_executable_p "$ac_path_GREP" || continue
6396 # Check for GNU ac_path_GREP and select it if it is found.
6397   # Check for GNU $ac_path_GREP
6398 case `"$ac_path_GREP" --version 2>&1` in
6399 *GNU*)
6400   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6401 *)
6402   ac_count=0
6403   printf %s 0123456789 >"conftest.in"
6404   while :
6405   do
6406     cat "conftest.in" "conftest.in" >"conftest.tmp"
6407     mv "conftest.tmp" "conftest.in"
6408     cp "conftest.in" "conftest.nl"
6409     printf "%s\n" 'GREP' >> "conftest.nl"
6410     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6411     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6412     as_fn_arith $ac_count + 1 && ac_count=$as_val
6413     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6414       # Best one so far, save it but keep looking for a better one
6415       ac_cv_path_GREP="$ac_path_GREP"
6416       ac_path_GREP_max=$ac_count
6417     fi
6418     # 10*(2^10) chars as input seems more than enough
6419     test $ac_count -gt 10 && break
6420   done
6421   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6422 esac
6423
6424       $ac_path_GREP_found && break 3
6425     done
6426   done
6427   done
6428 IFS=$as_save_IFS
6429   if test -z "$ac_cv_path_GREP"; then
6430     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6431   fi
6432 else
6433   ac_cv_path_GREP=$GREP
6434 fi
6435
6436 fi
6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6438 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6439  GREP="$ac_cv_path_GREP"
6440
6441
6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6443 printf %s "checking for egrep... " >&6; }
6444 if test ${ac_cv_path_EGREP+y}
6445 then :
6446   printf %s "(cached) " >&6
6447 else $as_nop
6448   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6449    then ac_cv_path_EGREP="$GREP -E"
6450    else
6451      if test -z "$EGREP"; then
6452   ac_path_EGREP_found=false
6453   # Loop through the user's path and test for each of PROGNAME-LIST
6454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6456 do
6457   IFS=$as_save_IFS
6458   case $as_dir in #(((
6459     '') as_dir=./ ;;
6460     */) ;;
6461     *) as_dir=$as_dir/ ;;
6462   esac
6463     for ac_prog in egrep
6464    do
6465     for ac_exec_ext in '' $ac_executable_extensions; do
6466       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6467       as_fn_executable_p "$ac_path_EGREP" || continue
6468 # Check for GNU ac_path_EGREP and select it if it is found.
6469   # Check for GNU $ac_path_EGREP
6470 case `"$ac_path_EGREP" --version 2>&1` in
6471 *GNU*)
6472   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6473 *)
6474   ac_count=0
6475   printf %s 0123456789 >"conftest.in"
6476   while :
6477   do
6478     cat "conftest.in" "conftest.in" >"conftest.tmp"
6479     mv "conftest.tmp" "conftest.in"
6480     cp "conftest.in" "conftest.nl"
6481     printf "%s\n" 'EGREP' >> "conftest.nl"
6482     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6483     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6484     as_fn_arith $ac_count + 1 && ac_count=$as_val
6485     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6486       # Best one so far, save it but keep looking for a better one
6487       ac_cv_path_EGREP="$ac_path_EGREP"
6488       ac_path_EGREP_max=$ac_count
6489     fi
6490     # 10*(2^10) chars as input seems more than enough
6491     test $ac_count -gt 10 && break
6492   done
6493   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6494 esac
6495
6496       $ac_path_EGREP_found && break 3
6497     done
6498   done
6499   done
6500 IFS=$as_save_IFS
6501   if test -z "$ac_cv_path_EGREP"; then
6502     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6503   fi
6504 else
6505   ac_cv_path_EGREP=$EGREP
6506 fi
6507
6508    fi
6509 fi
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6511 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6512  EGREP="$ac_cv_path_EGREP"
6513
6514
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6516 printf %s "checking for fgrep... " >&6; }
6517 if test ${ac_cv_path_FGREP+y}
6518 then :
6519   printf %s "(cached) " >&6
6520 else $as_nop
6521   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6522    then ac_cv_path_FGREP="$GREP -F"
6523    else
6524      if test -z "$FGREP"; then
6525   ac_path_FGREP_found=false
6526   # Loop through the user's path and test for each of PROGNAME-LIST
6527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6529 do
6530   IFS=$as_save_IFS
6531   case $as_dir in #(((
6532     '') as_dir=./ ;;
6533     */) ;;
6534     *) as_dir=$as_dir/ ;;
6535   esac
6536     for ac_prog in fgrep
6537    do
6538     for ac_exec_ext in '' $ac_executable_extensions; do
6539       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6540       as_fn_executable_p "$ac_path_FGREP" || continue
6541 # Check for GNU ac_path_FGREP and select it if it is found.
6542   # Check for GNU $ac_path_FGREP
6543 case `"$ac_path_FGREP" --version 2>&1` in
6544 *GNU*)
6545   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6546 *)
6547   ac_count=0
6548   printf %s 0123456789 >"conftest.in"
6549   while :
6550   do
6551     cat "conftest.in" "conftest.in" >"conftest.tmp"
6552     mv "conftest.tmp" "conftest.in"
6553     cp "conftest.in" "conftest.nl"
6554     printf "%s\n" 'FGREP' >> "conftest.nl"
6555     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6556     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6557     as_fn_arith $ac_count + 1 && ac_count=$as_val
6558     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6559       # Best one so far, save it but keep looking for a better one
6560       ac_cv_path_FGREP="$ac_path_FGREP"
6561       ac_path_FGREP_max=$ac_count
6562     fi
6563     # 10*(2^10) chars as input seems more than enough
6564     test $ac_count -gt 10 && break
6565   done
6566   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6567 esac
6568
6569       $ac_path_FGREP_found && break 3
6570     done
6571   done
6572   done
6573 IFS=$as_save_IFS
6574   if test -z "$ac_cv_path_FGREP"; then
6575     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6576   fi
6577 else
6578   ac_cv_path_FGREP=$FGREP
6579 fi
6580
6581    fi
6582 fi
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6584 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6585  FGREP="$ac_cv_path_FGREP"
6586
6587
6588 test -z "$GREP" && GREP=grep
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608 # Check whether --with-gnu-ld was given.
6609 if test ${with_gnu_ld+y}
6610 then :
6611   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6612 else $as_nop
6613   with_gnu_ld=no
6614 fi
6615
6616 ac_prog=ld
6617 if test yes = "$GCC"; then
6618   # Check if gcc -print-prog-name=ld gives a path.
6619   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6620 printf %s "checking for ld used by $CC... " >&6; }
6621   case $host in
6622   *-*-mingw*)
6623     # gcc leaves a trailing carriage return, which upsets mingw
6624     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6625   *)
6626     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6627   esac
6628   case $ac_prog in
6629     # Accept absolute paths.
6630     [\\/]* | ?:[\\/]*)
6631       re_direlt='/[^/][^/]*/\.\./'
6632       # Canonicalize the pathname of ld
6633       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6634       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6635         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6636       done
6637       test -z "$LD" && LD=$ac_prog
6638       ;;
6639   "")
6640     # If it fails, then pretend we aren't using GCC.
6641     ac_prog=ld
6642     ;;
6643   *)
6644     # If it is relative, then search for the first ld in PATH.
6645     with_gnu_ld=unknown
6646     ;;
6647   esac
6648 elif test yes = "$with_gnu_ld"; then
6649   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6650 printf %s "checking for GNU ld... " >&6; }
6651 else
6652   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6653 printf %s "checking for non-GNU ld... " >&6; }
6654 fi
6655 if test ${lt_cv_path_LD+y}
6656 then :
6657   printf %s "(cached) " >&6
6658 else $as_nop
6659   if test -z "$LD"; then
6660   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6661   for ac_dir in $PATH; do
6662     IFS=$lt_save_ifs
6663     test -z "$ac_dir" && ac_dir=.
6664     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6665       lt_cv_path_LD=$ac_dir/$ac_prog
6666       # Check to see if the program is GNU ld.  I'd rather use --version,
6667       # but apparently some variants of GNU ld only accept -v.
6668       # Break only if it was the GNU/non-GNU ld that we prefer.
6669       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6670       *GNU* | *'with BFD'*)
6671         test no != "$with_gnu_ld" && break
6672         ;;
6673       *)
6674         test yes != "$with_gnu_ld" && break
6675         ;;
6676       esac
6677     fi
6678   done
6679   IFS=$lt_save_ifs
6680 else
6681   lt_cv_path_LD=$LD # Let the user override the test with a path.
6682 fi
6683 fi
6684
6685 LD=$lt_cv_path_LD
6686 if test -n "$LD"; then
6687   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6688 printf "%s\n" "$LD" >&6; }
6689 else
6690   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 printf "%s\n" "no" >&6; }
6692 fi
6693 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6695 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6696 if test ${lt_cv_prog_gnu_ld+y}
6697 then :
6698   printf %s "(cached) " >&6
6699 else $as_nop
6700   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6701 case `$LD -v 2>&1 </dev/null` in
6702 *GNU* | *'with BFD'*)
6703   lt_cv_prog_gnu_ld=yes
6704   ;;
6705 *)
6706   lt_cv_prog_gnu_ld=no
6707   ;;
6708 esac
6709 fi
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6711 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6712 with_gnu_ld=$lt_cv_prog_gnu_ld
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6723 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6724 if test ${lt_cv_path_NM+y}
6725 then :
6726   printf %s "(cached) " >&6
6727 else $as_nop
6728   if test -n "$NM"; then
6729   # Let the user override the test.
6730   lt_cv_path_NM=$NM
6731 else
6732   lt_nm_to_check=${ac_tool_prefix}nm
6733   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6734     lt_nm_to_check="$lt_nm_to_check nm"
6735   fi
6736   for lt_tmp_nm in $lt_nm_to_check; do
6737     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6738     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6739       IFS=$lt_save_ifs
6740       test -z "$ac_dir" && ac_dir=.
6741       tmp_nm=$ac_dir/$lt_tmp_nm
6742       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6743         # Check to see if the nm accepts a BSD-compat flag.
6744         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6745         #   nm: unknown option "B" ignored
6746         # Tru64's nm complains that /dev/null is an invalid object file
6747         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6748         case $build_os in
6749         mingw*) lt_bad_file=conftest.nm/nofile ;;
6750         *) lt_bad_file=/dev/null ;;
6751         esac
6752         case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6753         *$lt_bad_file* | *'Invalid file or object type'*)
6754           lt_cv_path_NM="$tmp_nm -B"
6755           break 2
6756           ;;
6757         *)
6758           case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6759           */dev/null*)
6760             lt_cv_path_NM="$tmp_nm -p"
6761             break 2
6762             ;;
6763           *)
6764             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6765             continue # so that we can try to find one that supports BSD flags
6766             ;;
6767           esac
6768           ;;
6769         esac
6770       fi
6771     done
6772     IFS=$lt_save_ifs
6773   done
6774   : ${lt_cv_path_NM=no}
6775 fi
6776 fi
6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6778 printf "%s\n" "$lt_cv_path_NM" >&6; }
6779 if test no != "$lt_cv_path_NM"; then
6780   NM=$lt_cv_path_NM
6781 else
6782   # Didn't find any BSD compatible name lister, look for dumpbin.
6783   if test -n "$DUMPBIN"; then :
6784     # Let the user override the test.
6785   else
6786     if test -n "$ac_tool_prefix"; then
6787   for ac_prog in dumpbin "link -dump"
6788   do
6789     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6792 printf %s "checking for $ac_word... " >&6; }
6793 if test ${ac_cv_prog_DUMPBIN+y}
6794 then :
6795   printf %s "(cached) " >&6
6796 else $as_nop
6797   if test -n "$DUMPBIN"; then
6798   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803   IFS=$as_save_IFS
6804   case $as_dir in #(((
6805     '') as_dir=./ ;;
6806     */) ;;
6807     *) as_dir=$as_dir/ ;;
6808   esac
6809     for ac_exec_ext in '' $ac_executable_extensions; do
6810   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6811     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6812     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6813     break 2
6814   fi
6815 done
6816   done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 DUMPBIN=$ac_cv_prog_DUMPBIN
6822 if test -n "$DUMPBIN"; then
6823   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6824 printf "%s\n" "$DUMPBIN" >&6; }
6825 else
6826   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 printf "%s\n" "no" >&6; }
6828 fi
6829
6830
6831     test -n "$DUMPBIN" && break
6832   done
6833 fi
6834 if test -z "$DUMPBIN"; then
6835   ac_ct_DUMPBIN=$DUMPBIN
6836   for ac_prog in dumpbin "link -dump"
6837 do
6838   # Extract the first word of "$ac_prog", so it can be a program name with args.
6839 set dummy $ac_prog; ac_word=$2
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 printf %s "checking for $ac_word... " >&6; }
6842 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6843 then :
6844   printf %s "(cached) " >&6
6845 else $as_nop
6846   if test -n "$ac_ct_DUMPBIN"; then
6847   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852   IFS=$as_save_IFS
6853   case $as_dir in #(((
6854     '') as_dir=./ ;;
6855     */) ;;
6856     *) as_dir=$as_dir/ ;;
6857   esac
6858     for ac_exec_ext in '' $ac_executable_extensions; do
6859   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6860     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6861     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6862     break 2
6863   fi
6864 done
6865   done
6866 IFS=$as_save_IFS
6867
6868 fi
6869 fi
6870 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6871 if test -n "$ac_ct_DUMPBIN"; then
6872   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6873 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6874 else
6875   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 printf "%s\n" "no" >&6; }
6877 fi
6878
6879
6880   test -n "$ac_ct_DUMPBIN" && break
6881 done
6882
6883   if test "x$ac_ct_DUMPBIN" = x; then
6884     DUMPBIN=":"
6885   else
6886     case $cross_compiling:$ac_tool_warned in
6887 yes:)
6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6891 esac
6892     DUMPBIN=$ac_ct_DUMPBIN
6893   fi
6894 fi
6895
6896     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6897     *COFF*)
6898       DUMPBIN="$DUMPBIN -symbols -headers"
6899       ;;
6900     *)
6901       DUMPBIN=:
6902       ;;
6903     esac
6904   fi
6905
6906   if test : != "$DUMPBIN"; then
6907     NM=$DUMPBIN
6908   fi
6909 fi
6910 test -z "$NM" && NM=nm
6911
6912
6913
6914
6915
6916
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6918 printf %s "checking the name lister ($NM) interface... " >&6; }
6919 if test ${lt_cv_nm_interface+y}
6920 then :
6921   printf %s "(cached) " >&6
6922 else $as_nop
6923   lt_cv_nm_interface="BSD nm"
6924   echo "int some_variable = 0;" > conftest.$ac_ext
6925   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6926   (eval "$ac_compile" 2>conftest.err)
6927   cat conftest.err >&5
6928   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6929   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6930   cat conftest.err >&5
6931   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6932   cat conftest.out >&5
6933   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6934     lt_cv_nm_interface="MS dumpbin"
6935   fi
6936   rm -f conftest*
6937 fi
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6939 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6940
6941 # find the maximum length of command line arguments
6942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6943 printf %s "checking the maximum length of command line arguments... " >&6; }
6944 if test ${lt_cv_sys_max_cmd_len+y}
6945 then :
6946   printf %s "(cached) " >&6
6947 else $as_nop
6948     i=0
6949   teststring=ABCD
6950
6951   case $build_os in
6952   msdosdjgpp*)
6953     # On DJGPP, this test can blow up pretty badly due to problems in libc
6954     # (any single argument exceeding 2000 bytes causes a buffer overrun
6955     # during glob expansion).  Even if it were fixed, the result of this
6956     # check would be larger than it should be.
6957     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6958     ;;
6959
6960   gnu*)
6961     # Under GNU Hurd, this test is not required because there is
6962     # no limit to the length of command line arguments.
6963     # Libtool will interpret -1 as no limit whatsoever
6964     lt_cv_sys_max_cmd_len=-1;
6965     ;;
6966
6967   cygwin* | mingw* | cegcc*)
6968     # On Win9x/ME, this test blows up -- it succeeds, but takes
6969     # about 5 minutes as the teststring grows exponentially.
6970     # Worse, since 9x/ME are not pre-emptively multitasking,
6971     # you end up with a "frozen" computer, even though with patience
6972     # the test eventually succeeds (with a max line length of 256k).
6973     # Instead, let's just punt: use the minimum linelength reported by
6974     # all of the supported platforms: 8192 (on NT/2K/XP).
6975     lt_cv_sys_max_cmd_len=8192;
6976     ;;
6977
6978   mint*)
6979     # On MiNT this can take a long time and run out of memory.
6980     lt_cv_sys_max_cmd_len=8192;
6981     ;;
6982
6983   amigaos*)
6984     # On AmigaOS with pdksh, this test takes hours, literally.
6985     # So we just punt and use a minimum line length of 8192.
6986     lt_cv_sys_max_cmd_len=8192;
6987     ;;
6988
6989   bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6990     # This has been around since 386BSD, at least.  Likely further.
6991     if test -x /sbin/sysctl; then
6992       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6993     elif test -x /usr/sbin/sysctl; then
6994       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6995     else
6996       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6997     fi
6998     # And add a safety zone
6999     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7000     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7001     ;;
7002
7003   interix*)
7004     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7005     lt_cv_sys_max_cmd_len=196608
7006     ;;
7007
7008   os2*)
7009     # The test takes a long time on OS/2.
7010     lt_cv_sys_max_cmd_len=8192
7011     ;;
7012
7013   osf*)
7014     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7015     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7016     # nice to cause kernel panics so lets avoid the loop below.
7017     # First set a reasonable default.
7018     lt_cv_sys_max_cmd_len=16384
7019     #
7020     if test -x /sbin/sysconfig; then
7021       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7022         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7023       esac
7024     fi
7025     ;;
7026   sco3.2v5*)
7027     lt_cv_sys_max_cmd_len=102400
7028     ;;
7029   sysv5* | sco5v6* | sysv4.2uw2*)
7030     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7031     if test -n "$kargmax"; then
7032       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[         ]//'`
7033     else
7034       lt_cv_sys_max_cmd_len=32768
7035     fi
7036     ;;
7037   *)
7038     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7039     if test -n "$lt_cv_sys_max_cmd_len" && \
7040        test undefined != "$lt_cv_sys_max_cmd_len"; then
7041       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7042       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7043     else
7044       # Make teststring a little bigger before we do anything with it.
7045       # a 1K string should be a reasonable start.
7046       for i in 1 2 3 4 5 6 7 8; do
7047         teststring=$teststring$teststring
7048       done
7049       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7050       # If test is not a shell built-in, we'll probably end up computing a
7051       # maximum length that is only half of the actual maximum length, but
7052       # we can't tell.
7053       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7054                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7055               test 17 != "$i" # 1/2 MB should be enough
7056       do
7057         i=`expr $i + 1`
7058         teststring=$teststring$teststring
7059       done
7060       # Only check the string length outside the loop.
7061       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7062       teststring=
7063       # Add a significant safety factor because C++ compilers can tack on
7064       # massive amounts of additional arguments before passing them to the
7065       # linker.  It appears as though 1/2 is a usable value.
7066       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7067     fi
7068     ;;
7069   esac
7070
7071 fi
7072
7073 if test -n "$lt_cv_sys_max_cmd_len"; then
7074   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7075 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7076 else
7077   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7078 printf "%s\n" "none" >&6; }
7079 fi
7080 max_cmd_len=$lt_cv_sys_max_cmd_len
7081
7082
7083
7084
7085
7086
7087 : ${CP="cp -f"}
7088 : ${MV="mv -f"}
7089 : ${RM="rm -f"}
7090
7091 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7092   lt_unset=unset
7093 else
7094   lt_unset=false
7095 fi
7096
7097
7098
7099
7100
7101 # test EBCDIC or ASCII
7102 case `echo X|tr X '\101'` in
7103  A) # ASCII based system
7104     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7105   lt_SP2NL='tr \040 \012'
7106   lt_NL2SP='tr \015\012 \040\040'
7107   ;;
7108  *) # EBCDIC based system
7109   lt_SP2NL='tr \100 \n'
7110   lt_NL2SP='tr \r\n \100\100'
7111   ;;
7112 esac
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7123 printf %s "checking how to convert $build file names to $host format... " >&6; }
7124 if test ${lt_cv_to_host_file_cmd+y}
7125 then :
7126   printf %s "(cached) " >&6
7127 else $as_nop
7128   case $host in
7129   *-*-mingw* )
7130     case $build in
7131       *-*-mingw* ) # actually msys
7132         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7133         ;;
7134       *-*-cygwin* )
7135         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7136         ;;
7137       * ) # otherwise, assume *nix
7138         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7139         ;;
7140     esac
7141     ;;
7142   *-*-cygwin* )
7143     case $build in
7144       *-*-mingw* ) # actually msys
7145         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7146         ;;
7147       *-*-cygwin* )
7148         lt_cv_to_host_file_cmd=func_convert_file_noop
7149         ;;
7150       * ) # otherwise, assume *nix
7151         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7152         ;;
7153     esac
7154     ;;
7155   * ) # unhandled hosts (and "normal" native builds)
7156     lt_cv_to_host_file_cmd=func_convert_file_noop
7157     ;;
7158 esac
7159
7160 fi
7161
7162 to_host_file_cmd=$lt_cv_to_host_file_cmd
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7164 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7165
7166
7167
7168
7169
7170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7171 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7172 if test ${lt_cv_to_tool_file_cmd+y}
7173 then :
7174   printf %s "(cached) " >&6
7175 else $as_nop
7176   #assume ordinary cross tools, or native build.
7177 lt_cv_to_tool_file_cmd=func_convert_file_noop
7178 case $host in
7179   *-*-mingw* )
7180     case $build in
7181       *-*-mingw* ) # actually msys
7182         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7183         ;;
7184     esac
7185     ;;
7186 esac
7187
7188 fi
7189
7190 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7192 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7193
7194
7195
7196
7197
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7199 printf %s "checking for $LD option to reload object files... " >&6; }
7200 if test ${lt_cv_ld_reload_flag+y}
7201 then :
7202   printf %s "(cached) " >&6
7203 else $as_nop
7204   lt_cv_ld_reload_flag='-r'
7205 fi
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7207 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7208 reload_flag=$lt_cv_ld_reload_flag
7209 case $reload_flag in
7210 "" | " "*) ;;
7211 *) reload_flag=" $reload_flag" ;;
7212 esac
7213 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7214 case $host_os in
7215   cygwin* | mingw* | pw32* | cegcc*)
7216     if test yes != "$GCC"; then
7217       reload_cmds=false
7218     fi
7219     ;;
7220   darwin*)
7221     if test yes = "$GCC"; then
7222       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7223     else
7224       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7225     fi
7226     ;;
7227 esac
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237 if test -n "$ac_tool_prefix"; then
7238   # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}file; ac_word=$2
7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 printf %s "checking for $ac_word... " >&6; }
7242 if test ${ac_cv_prog_FILECMD+y}
7243 then :
7244   printf %s "(cached) " >&6
7245 else $as_nop
7246   if test -n "$FILECMD"; then
7247   ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7248 else
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252   IFS=$as_save_IFS
7253   case $as_dir in #(((
7254     '') as_dir=./ ;;
7255     */) ;;
7256     *) as_dir=$as_dir/ ;;
7257   esac
7258     for ac_exec_ext in '' $ac_executable_extensions; do
7259   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7260     ac_cv_prog_FILECMD="${ac_tool_prefix}file"
7261     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265   done
7266 IFS=$as_save_IFS
7267
7268 fi
7269 fi
7270 FILECMD=$ac_cv_prog_FILECMD
7271 if test -n "$FILECMD"; then
7272   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7273 printf "%s\n" "$FILECMD" >&6; }
7274 else
7275   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 printf "%s\n" "no" >&6; }
7277 fi
7278
7279
7280 fi
7281 if test -z "$ac_cv_prog_FILECMD"; then
7282   ac_ct_FILECMD=$FILECMD
7283   # Extract the first word of "file", so it can be a program name with args.
7284 set dummy file; ac_word=$2
7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 printf %s "checking for $ac_word... " >&6; }
7287 if test ${ac_cv_prog_ac_ct_FILECMD+y}
7288 then :
7289   printf %s "(cached) " >&6
7290 else $as_nop
7291   if test -n "$ac_ct_FILECMD"; then
7292   ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
7293 else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   case $as_dir in #(((
7299     '') as_dir=./ ;;
7300     */) ;;
7301     *) as_dir=$as_dir/ ;;
7302   esac
7303     for ac_exec_ext in '' $ac_executable_extensions; do
7304   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7305     ac_cv_prog_ac_ct_FILECMD="file"
7306     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310   done
7311 IFS=$as_save_IFS
7312
7313 fi
7314 fi
7315 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7316 if test -n "$ac_ct_FILECMD"; then
7317   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7318 printf "%s\n" "$ac_ct_FILECMD" >&6; }
7319 else
7320   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 printf "%s\n" "no" >&6; }
7322 fi
7323
7324   if test "x$ac_ct_FILECMD" = x; then
7325     FILECMD=":"
7326   else
7327     case $cross_compiling:$ac_tool_warned in
7328 yes:)
7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7330 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331 ac_tool_warned=yes ;;
7332 esac
7333     FILECMD=$ac_ct_FILECMD
7334   fi
7335 else
7336   FILECMD="$ac_cv_prog_FILECMD"
7337 fi
7338
7339
7340
7341
7342
7343
7344
7345 if test -n "$ac_tool_prefix"; then
7346   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7347 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 printf %s "checking for $ac_word... " >&6; }
7350 if test ${ac_cv_prog_OBJDUMP+y}
7351 then :
7352   printf %s "(cached) " >&6
7353 else $as_nop
7354   if test -n "$OBJDUMP"; then
7355   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   case $as_dir in #(((
7362     '') as_dir=./ ;;
7363     */) ;;
7364     *) as_dir=$as_dir/ ;;
7365   esac
7366     for ac_exec_ext in '' $ac_executable_extensions; do
7367   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7368     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7369     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373   done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 OBJDUMP=$ac_cv_prog_OBJDUMP
7379 if test -n "$OBJDUMP"; then
7380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7381 printf "%s\n" "$OBJDUMP" >&6; }
7382 else
7383   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 printf "%s\n" "no" >&6; }
7385 fi
7386
7387
7388 fi
7389 if test -z "$ac_cv_prog_OBJDUMP"; then
7390   ac_ct_OBJDUMP=$OBJDUMP
7391   # Extract the first word of "objdump", so it can be a program name with args.
7392 set dummy objdump; ac_word=$2
7393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 printf %s "checking for $ac_word... " >&6; }
7395 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7396 then :
7397   printf %s "(cached) " >&6
7398 else $as_nop
7399   if test -n "$ac_ct_OBJDUMP"; then
7400   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   case $as_dir in #(((
7407     '') as_dir=./ ;;
7408     */) ;;
7409     *) as_dir=$as_dir/ ;;
7410   esac
7411     for ac_exec_ext in '' $ac_executable_extensions; do
7412   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7413     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7414     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7415     break 2
7416   fi
7417 done
7418   done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7424 if test -n "$ac_ct_OBJDUMP"; then
7425   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7426 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7427 else
7428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 printf "%s\n" "no" >&6; }
7430 fi
7431
7432   if test "x$ac_ct_OBJDUMP" = x; then
7433     OBJDUMP="false"
7434   else
7435     case $cross_compiling:$ac_tool_warned in
7436 yes:)
7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439 ac_tool_warned=yes ;;
7440 esac
7441     OBJDUMP=$ac_ct_OBJDUMP
7442   fi
7443 else
7444   OBJDUMP="$ac_cv_prog_OBJDUMP"
7445 fi
7446
7447 test -z "$OBJDUMP" && OBJDUMP=objdump
7448
7449
7450
7451
7452
7453
7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7455 printf %s "checking how to recognize dependent libraries... " >&6; }
7456 if test ${lt_cv_deplibs_check_method+y}
7457 then :
7458   printf %s "(cached) " >&6
7459 else $as_nop
7460   lt_cv_file_magic_cmd='$MAGIC_CMD'
7461 lt_cv_file_magic_test_file=
7462 lt_cv_deplibs_check_method='unknown'
7463 # Need to set the preceding variable on all platforms that support
7464 # interlibrary dependencies.
7465 # 'none' -- dependencies not supported.
7466 # 'unknown' -- same as none, but documents that we really don't know.
7467 # 'pass_all' -- all dependencies passed with no checks.
7468 # 'test_compile' -- check by making test program.
7469 # 'file_magic [[regex]]' -- check by looking for files in library path
7470 # that responds to the $file_magic_cmd with a given extended regex.
7471 # If you have 'file' or equivalent on your system and you're not sure
7472 # whether 'pass_all' will *always* work, you probably want this one.
7473
7474 case $host_os in
7475 aix[4-9]*)
7476   lt_cv_deplibs_check_method=pass_all
7477   ;;
7478
7479 beos*)
7480   lt_cv_deplibs_check_method=pass_all
7481   ;;
7482
7483 bsdi[45]*)
7484   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7485   lt_cv_file_magic_cmd='$FILECMD -L'
7486   lt_cv_file_magic_test_file=/shlib/libc.so
7487   ;;
7488
7489 cygwin*)
7490   # func_win32_libid is a shell function defined in ltmain.sh
7491   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7492   lt_cv_file_magic_cmd='func_win32_libid'
7493   ;;
7494
7495 mingw* | pw32*)
7496   # Base MSYS/MinGW do not provide the 'file' command needed by
7497   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7498   # unless we find 'file', for example because we are cross-compiling.
7499   if ( file / ) >/dev/null 2>&1; then
7500     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7501     lt_cv_file_magic_cmd='func_win32_libid'
7502   else
7503     # Keep this pattern in sync with the one in func_win32_libid.
7504     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7505     lt_cv_file_magic_cmd='$OBJDUMP -f'
7506   fi
7507   ;;
7508
7509 cegcc*)
7510   # use the weaker test based on 'objdump'. See mingw*.
7511   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7512   lt_cv_file_magic_cmd='$OBJDUMP -f'
7513   ;;
7514
7515 darwin* | rhapsody*)
7516   lt_cv_deplibs_check_method=pass_all
7517   ;;
7518
7519 freebsd* | dragonfly* | midnightbsd*)
7520   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7521     case $host_cpu in
7522     i*86 )
7523       # Not sure whether the presence of OpenBSD here was a mistake.
7524       # Let's accept both of them until this is cleared up.
7525       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7526       lt_cv_file_magic_cmd=$FILECMD
7527       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7528       ;;
7529     esac
7530   else
7531     lt_cv_deplibs_check_method=pass_all
7532   fi
7533   ;;
7534
7535 haiku*)
7536   lt_cv_deplibs_check_method=pass_all
7537   ;;
7538
7539 hpux10.20* | hpux11*)
7540   lt_cv_file_magic_cmd=$FILECMD
7541   case $host_cpu in
7542   ia64*)
7543     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7544     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7545     ;;
7546   hppa*64*)
7547     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]'
7548     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7549     ;;
7550   *)
7551     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7552     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7553     ;;
7554   esac
7555   ;;
7556
7557 interix[3-9]*)
7558   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7559   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7560   ;;
7561
7562 irix5* | irix6* | nonstopux*)
7563   case $LD in
7564   *-32|*"-32 ") libmagic=32-bit;;
7565   *-n32|*"-n32 ") libmagic=N32;;
7566   *-64|*"-64 ") libmagic=64-bit;;
7567   *) libmagic=never-match;;
7568   esac
7569   lt_cv_deplibs_check_method=pass_all
7570   ;;
7571
7572 # This must be glibc/ELF.
7573 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7574   lt_cv_deplibs_check_method=pass_all
7575   ;;
7576
7577 netbsd*)
7578   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7579     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7580   else
7581     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7582   fi
7583   ;;
7584
7585 newos6*)
7586   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7587   lt_cv_file_magic_cmd=$FILECMD
7588   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7589   ;;
7590
7591 *nto* | *qnx*)
7592   lt_cv_deplibs_check_method=pass_all
7593   ;;
7594
7595 openbsd* | bitrig*)
7596   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7597     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7598   else
7599     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7600   fi
7601   ;;
7602
7603 osf3* | osf4* | osf5*)
7604   lt_cv_deplibs_check_method=pass_all
7605   ;;
7606
7607 rdos*)
7608   lt_cv_deplibs_check_method=pass_all
7609   ;;
7610
7611 solaris*)
7612   lt_cv_deplibs_check_method=pass_all
7613   ;;
7614
7615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7616   lt_cv_deplibs_check_method=pass_all
7617   ;;
7618
7619 sysv4 | sysv4.3*)
7620   case $host_vendor in
7621   motorola)
7622     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]'
7623     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7624     ;;
7625   ncr)
7626     lt_cv_deplibs_check_method=pass_all
7627     ;;
7628   sequent)
7629     lt_cv_file_magic_cmd='/bin/file'
7630     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7631     ;;
7632   sni)
7633     lt_cv_file_magic_cmd='/bin/file'
7634     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7635     lt_cv_file_magic_test_file=/lib/libc.so
7636     ;;
7637   siemens)
7638     lt_cv_deplibs_check_method=pass_all
7639     ;;
7640   pc)
7641     lt_cv_deplibs_check_method=pass_all
7642     ;;
7643   esac
7644   ;;
7645
7646 tpf*)
7647   lt_cv_deplibs_check_method=pass_all
7648   ;;
7649 os2*)
7650   lt_cv_deplibs_check_method=pass_all
7651   ;;
7652 esac
7653
7654 fi
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7656 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7657
7658 file_magic_glob=
7659 want_nocaseglob=no
7660 if test "$build" = "$host"; then
7661   case $host_os in
7662   mingw* | pw32*)
7663     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7664       want_nocaseglob=yes
7665     else
7666       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7667     fi
7668     ;;
7669   esac
7670 fi
7671
7672 file_magic_cmd=$lt_cv_file_magic_cmd
7673 deplibs_check_method=$lt_cv_deplibs_check_method
7674 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697 if test -n "$ac_tool_prefix"; then
7698   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7699 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 printf %s "checking for $ac_word... " >&6; }
7702 if test ${ac_cv_prog_DLLTOOL+y}
7703 then :
7704   printf %s "(cached) " >&6
7705 else $as_nop
7706   if test -n "$DLLTOOL"; then
7707   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7708 else
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712   IFS=$as_save_IFS
7713   case $as_dir in #(((
7714     '') as_dir=./ ;;
7715     */) ;;
7716     *) as_dir=$as_dir/ ;;
7717   esac
7718     for ac_exec_ext in '' $ac_executable_extensions; do
7719   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7720     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7721     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7722     break 2
7723   fi
7724 done
7725   done
7726 IFS=$as_save_IFS
7727
7728 fi
7729 fi
7730 DLLTOOL=$ac_cv_prog_DLLTOOL
7731 if test -n "$DLLTOOL"; then
7732   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7733 printf "%s\n" "$DLLTOOL" >&6; }
7734 else
7735   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 printf "%s\n" "no" >&6; }
7737 fi
7738
7739
7740 fi
7741 if test -z "$ac_cv_prog_DLLTOOL"; then
7742   ac_ct_DLLTOOL=$DLLTOOL
7743   # Extract the first word of "dlltool", so it can be a program name with args.
7744 set dummy dlltool; ac_word=$2
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 printf %s "checking for $ac_word... " >&6; }
7747 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7748 then :
7749   printf %s "(cached) " >&6
7750 else $as_nop
7751   if test -n "$ac_ct_DLLTOOL"; then
7752   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   case $as_dir in #(((
7759     '') as_dir=./ ;;
7760     */) ;;
7761     *) as_dir=$as_dir/ ;;
7762   esac
7763     for ac_exec_ext in '' $ac_executable_extensions; do
7764   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7765     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7766     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7767     break 2
7768   fi
7769 done
7770   done
7771 IFS=$as_save_IFS
7772
7773 fi
7774 fi
7775 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7776 if test -n "$ac_ct_DLLTOOL"; then
7777   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7778 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7779 else
7780   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 printf "%s\n" "no" >&6; }
7782 fi
7783
7784   if test "x$ac_ct_DLLTOOL" = x; then
7785     DLLTOOL="false"
7786   else
7787     case $cross_compiling:$ac_tool_warned in
7788 yes:)
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7790 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7791 ac_tool_warned=yes ;;
7792 esac
7793     DLLTOOL=$ac_ct_DLLTOOL
7794   fi
7795 else
7796   DLLTOOL="$ac_cv_prog_DLLTOOL"
7797 fi
7798
7799 test -z "$DLLTOOL" && DLLTOOL=dlltool
7800
7801
7802
7803
7804
7805
7806
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7808 printf %s "checking how to associate runtime and link libraries... " >&6; }
7809 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7810 then :
7811   printf %s "(cached) " >&6
7812 else $as_nop
7813   lt_cv_sharedlib_from_linklib_cmd='unknown'
7814
7815 case $host_os in
7816 cygwin* | mingw* | pw32* | cegcc*)
7817   # two different shell functions defined in ltmain.sh;
7818   # decide which one to use based on capabilities of $DLLTOOL
7819   case `$DLLTOOL --help 2>&1` in
7820   *--identify-strict*)
7821     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7822     ;;
7823   *)
7824     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7825     ;;
7826   esac
7827   ;;
7828 *)
7829   # fallback: assume linklib IS sharedlib
7830   lt_cv_sharedlib_from_linklib_cmd=$ECHO
7831   ;;
7832 esac
7833
7834 fi
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7836 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7837 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7838 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7839
7840
7841
7842
7843
7844
7845
7846 if test -n "$ac_tool_prefix"; then
7847   for ac_prog in ar
7848   do
7849     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 printf %s "checking for $ac_word... " >&6; }
7853 if test ${ac_cv_prog_AR+y}
7854 then :
7855   printf %s "(cached) " >&6
7856 else $as_nop
7857   if test -n "$AR"; then
7858   ac_cv_prog_AR="$AR" # Let the user override the test.
7859 else
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 for as_dir in $PATH
7862 do
7863   IFS=$as_save_IFS
7864   case $as_dir in #(((
7865     '') as_dir=./ ;;
7866     */) ;;
7867     *) as_dir=$as_dir/ ;;
7868   esac
7869     for ac_exec_ext in '' $ac_executable_extensions; do
7870   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7871     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7872     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7873     break 2
7874   fi
7875 done
7876   done
7877 IFS=$as_save_IFS
7878
7879 fi
7880 fi
7881 AR=$ac_cv_prog_AR
7882 if test -n "$AR"; then
7883   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7884 printf "%s\n" "$AR" >&6; }
7885 else
7886   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 printf "%s\n" "no" >&6; }
7888 fi
7889
7890
7891     test -n "$AR" && break
7892   done
7893 fi
7894 if test -z "$AR"; then
7895   ac_ct_AR=$AR
7896   for ac_prog in ar
7897 do
7898   # Extract the first word of "$ac_prog", so it can be a program name with args.
7899 set dummy $ac_prog; ac_word=$2
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 printf %s "checking for $ac_word... " >&6; }
7902 if test ${ac_cv_prog_ac_ct_AR+y}
7903 then :
7904   printf %s "(cached) " >&6
7905 else $as_nop
7906   if test -n "$ac_ct_AR"; then
7907   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912   IFS=$as_save_IFS
7913   case $as_dir in #(((
7914     '') as_dir=./ ;;
7915     */) ;;
7916     *) as_dir=$as_dir/ ;;
7917   esac
7918     for ac_exec_ext in '' $ac_executable_extensions; do
7919   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7920     ac_cv_prog_ac_ct_AR="$ac_prog"
7921     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7922     break 2
7923   fi
7924 done
7925   done
7926 IFS=$as_save_IFS
7927
7928 fi
7929 fi
7930 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7931 if test -n "$ac_ct_AR"; then
7932   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7933 printf "%s\n" "$ac_ct_AR" >&6; }
7934 else
7935   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 printf "%s\n" "no" >&6; }
7937 fi
7938
7939
7940   test -n "$ac_ct_AR" && break
7941 done
7942
7943   if test "x$ac_ct_AR" = x; then
7944     AR="false"
7945   else
7946     case $cross_compiling:$ac_tool_warned in
7947 yes:)
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7949 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7950 ac_tool_warned=yes ;;
7951 esac
7952     AR=$ac_ct_AR
7953   fi
7954 fi
7955
7956 : ${AR=ar}
7957
7958
7959
7960
7961
7962
7963 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7964 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7965 # higher priority because thats what people were doing historically (setting
7966 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
7967 # variable obsoleted/removed.
7968
7969 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7970 lt_ar_flags=$AR_FLAGS
7971
7972
7973
7974
7975
7976
7977 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7978 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7979
7980
7981
7982
7983
7984
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7986 printf %s "checking for archiver @FILE support... " >&6; }
7987 if test ${lt_cv_ar_at_file+y}
7988 then :
7989   printf %s "(cached) " >&6
7990 else $as_nop
7991   lt_cv_ar_at_file=no
7992    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h.  */
7994
7995 int
7996 main (void)
7997 {
7998
7999   ;
8000   return 0;
8001 }
8002 _ACEOF
8003 if ac_fn_c_try_compile "$LINENO"
8004 then :
8005   echo conftest.$ac_objext > conftest.lst
8006       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8007       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8008   (eval $lt_ar_try) 2>&5
8009   ac_status=$?
8010   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8011   test $ac_status = 0; }
8012       if test 0 -eq "$ac_status"; then
8013         # Ensure the archiver fails upon bogus file names.
8014         rm -f conftest.$ac_objext libconftest.a
8015         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8016   (eval $lt_ar_try) 2>&5
8017   ac_status=$?
8018   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8019   test $ac_status = 0; }
8020         if test 0 -ne "$ac_status"; then
8021           lt_cv_ar_at_file=@
8022         fi
8023       fi
8024       rm -f conftest.* libconftest.a
8025
8026 fi
8027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8028
8029 fi
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8031 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8032
8033 if test no = "$lt_cv_ar_at_file"; then
8034   archiver_list_spec=
8035 else
8036   archiver_list_spec=$lt_cv_ar_at_file
8037 fi
8038
8039
8040
8041
8042
8043
8044
8045 if test -n "$ac_tool_prefix"; then
8046   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8047 set dummy ${ac_tool_prefix}strip; ac_word=$2
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049 printf %s "checking for $ac_word... " >&6; }
8050 if test ${ac_cv_prog_STRIP+y}
8051 then :
8052   printf %s "(cached) " >&6
8053 else $as_nop
8054   if test -n "$STRIP"; then
8055   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8056 else
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 for as_dir in $PATH
8059 do
8060   IFS=$as_save_IFS
8061   case $as_dir in #(((
8062     '') as_dir=./ ;;
8063     */) ;;
8064     *) as_dir=$as_dir/ ;;
8065   esac
8066     for ac_exec_ext in '' $ac_executable_extensions; do
8067   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8068     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8069     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8070     break 2
8071   fi
8072 done
8073   done
8074 IFS=$as_save_IFS
8075
8076 fi
8077 fi
8078 STRIP=$ac_cv_prog_STRIP
8079 if test -n "$STRIP"; then
8080   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8081 printf "%s\n" "$STRIP" >&6; }
8082 else
8083   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 printf "%s\n" "no" >&6; }
8085 fi
8086
8087
8088 fi
8089 if test -z "$ac_cv_prog_STRIP"; then
8090   ac_ct_STRIP=$STRIP
8091   # Extract the first word of "strip", so it can be a program name with args.
8092 set dummy strip; ac_word=$2
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094 printf %s "checking for $ac_word... " >&6; }
8095 if test ${ac_cv_prog_ac_ct_STRIP+y}
8096 then :
8097   printf %s "(cached) " >&6
8098 else $as_nop
8099   if test -n "$ac_ct_STRIP"; then
8100   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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   case $as_dir in #(((
8107     '') as_dir=./ ;;
8108     */) ;;
8109     *) as_dir=$as_dir/ ;;
8110   esac
8111     for ac_exec_ext in '' $ac_executable_extensions; do
8112   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8113     ac_cv_prog_ac_ct_STRIP="strip"
8114     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8115     break 2
8116   fi
8117 done
8118   done
8119 IFS=$as_save_IFS
8120
8121 fi
8122 fi
8123 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8124 if test -n "$ac_ct_STRIP"; then
8125   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8126 printf "%s\n" "$ac_ct_STRIP" >&6; }
8127 else
8128   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 printf "%s\n" "no" >&6; }
8130 fi
8131
8132   if test "x$ac_ct_STRIP" = x; then
8133     STRIP=":"
8134   else
8135     case $cross_compiling:$ac_tool_warned in
8136 yes:)
8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8138 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8139 ac_tool_warned=yes ;;
8140 esac
8141     STRIP=$ac_ct_STRIP
8142   fi
8143 else
8144   STRIP="$ac_cv_prog_STRIP"
8145 fi
8146
8147 test -z "$STRIP" && STRIP=:
8148
8149
8150
8151
8152
8153
8154 if test -n "$ac_tool_prefix"; then
8155   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8156 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 printf %s "checking for $ac_word... " >&6; }
8159 if test ${ac_cv_prog_RANLIB+y}
8160 then :
8161   printf %s "(cached) " >&6
8162 else $as_nop
8163   if test -n "$RANLIB"; then
8164   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8165 else
8166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167 for as_dir in $PATH
8168 do
8169   IFS=$as_save_IFS
8170   case $as_dir in #(((
8171     '') as_dir=./ ;;
8172     */) ;;
8173     *) as_dir=$as_dir/ ;;
8174   esac
8175     for ac_exec_ext in '' $ac_executable_extensions; do
8176   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8177     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8178     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8179     break 2
8180   fi
8181 done
8182   done
8183 IFS=$as_save_IFS
8184
8185 fi
8186 fi
8187 RANLIB=$ac_cv_prog_RANLIB
8188 if test -n "$RANLIB"; then
8189   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8190 printf "%s\n" "$RANLIB" >&6; }
8191 else
8192   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 printf "%s\n" "no" >&6; }
8194 fi
8195
8196
8197 fi
8198 if test -z "$ac_cv_prog_RANLIB"; then
8199   ac_ct_RANLIB=$RANLIB
8200   # Extract the first word of "ranlib", so it can be a program name with args.
8201 set dummy ranlib; ac_word=$2
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 printf %s "checking for $ac_word... " >&6; }
8204 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8205 then :
8206   printf %s "(cached) " >&6
8207 else $as_nop
8208   if test -n "$ac_ct_RANLIB"; then
8209   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8210 else
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH
8213 do
8214   IFS=$as_save_IFS
8215   case $as_dir in #(((
8216     '') as_dir=./ ;;
8217     */) ;;
8218     *) as_dir=$as_dir/ ;;
8219   esac
8220     for ac_exec_ext in '' $ac_executable_extensions; do
8221   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8222     ac_cv_prog_ac_ct_RANLIB="ranlib"
8223     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8224     break 2
8225   fi
8226 done
8227   done
8228 IFS=$as_save_IFS
8229
8230 fi
8231 fi
8232 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8233 if test -n "$ac_ct_RANLIB"; then
8234   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8235 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8236 else
8237   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 printf "%s\n" "no" >&6; }
8239 fi
8240
8241   if test "x$ac_ct_RANLIB" = x; then
8242     RANLIB=":"
8243   else
8244     case $cross_compiling:$ac_tool_warned in
8245 yes:)
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8247 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8248 ac_tool_warned=yes ;;
8249 esac
8250     RANLIB=$ac_ct_RANLIB
8251   fi
8252 else
8253   RANLIB="$ac_cv_prog_RANLIB"
8254 fi
8255
8256 test -z "$RANLIB" && RANLIB=:
8257
8258
8259
8260
8261
8262
8263 # Determine commands to create old-style static archives.
8264 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8265 old_postinstall_cmds='chmod 644 $oldlib'
8266 old_postuninstall_cmds=
8267
8268 if test -n "$RANLIB"; then
8269   case $host_os in
8270   bitrig* | openbsd*)
8271     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8272     ;;
8273   *)
8274     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8275     ;;
8276   esac
8277   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8278 fi
8279
8280 case $host_os in
8281   darwin*)
8282     lock_old_archive_extraction=yes ;;
8283   *)
8284     lock_old_archive_extraction=no ;;
8285 esac
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325 # If no C compiler was specified, use CC.
8326 LTCC=${LTCC-"$CC"}
8327
8328 # If no C compiler flags were specified, use CFLAGS.
8329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8330
8331 # Allow CC to be a program name with arguments.
8332 compiler=$CC
8333
8334
8335 # Check for command to grab the raw symbol name followed by C symbol from nm.
8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8337 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8338 if test ${lt_cv_sys_global_symbol_pipe+y}
8339 then :
8340   printf %s "(cached) " >&6
8341 else $as_nop
8342
8343 # These are sane defaults that work on at least a few old systems.
8344 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8345
8346 # Character class describing NM global symbol codes.
8347 symcode='[BCDEGRST]'
8348
8349 # Regexp to match symbols that can be accessed directly from C.
8350 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8351
8352 # Define system-specific variables.
8353 case $host_os in
8354 aix*)
8355   symcode='[BCDT]'
8356   ;;
8357 cygwin* | mingw* | pw32* | cegcc*)
8358   symcode='[ABCDGISTW]'
8359   ;;
8360 hpux*)
8361   if test ia64 = "$host_cpu"; then
8362     symcode='[ABCDEGRST]'
8363   fi
8364   ;;
8365 irix* | nonstopux*)
8366   symcode='[BCDEGRST]'
8367   ;;
8368 osf*)
8369   symcode='[BCDEGQRST]'
8370   ;;
8371 solaris*)
8372   symcode='[BDRT]'
8373   ;;
8374 sco3.2v5*)
8375   symcode='[DT]'
8376   ;;
8377 sysv4.2uw2*)
8378   symcode='[DT]'
8379   ;;
8380 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8381   symcode='[ABDT]'
8382   ;;
8383 sysv4)
8384   symcode='[DFNSTU]'
8385   ;;
8386 esac
8387
8388 # If we're using GNU nm, then use its standard symbol codes.
8389 case `$NM -V 2>&1` in
8390 *GNU* | *'with BFD'*)
8391   symcode='[ABCDGIRSTW]' ;;
8392 esac
8393
8394 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8395   # Gets list of data symbols to import.
8396   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8397   # Adjust the below global symbol transforms to fixup imported variables.
8398   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8399   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8400   lt_c_name_lib_hook="\
8401   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8402   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8403 else
8404   # Disable hooks by default.
8405   lt_cv_sys_global_symbol_to_import=
8406   lt_cdecl_hook=
8407   lt_c_name_hook=
8408   lt_c_name_lib_hook=
8409 fi
8410
8411 # Transform an extracted symbol line into a proper C declaration.
8412 # Some systems (esp. on ia64) link data and code symbols differently,
8413 # so use this general approach.
8414 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8415 $lt_cdecl_hook\
8416 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8417 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8418
8419 # Transform an extracted symbol line into symbol name and symbol address
8420 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8421 $lt_c_name_hook\
8422 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8423 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8424
8425 # Transform an extracted symbol line into symbol name with lib prefix and
8426 # symbol address.
8427 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8428 $lt_c_name_lib_hook\
8429 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8430 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8431 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8432
8433 # Handle CRLF in mingw tool chain
8434 opt_cr=
8435 case $build_os in
8436 mingw*)
8437   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8438   ;;
8439 esac
8440
8441 # Try without a prefix underscore, then with it.
8442 for ac_symprfx in "" "_"; do
8443
8444   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8445   symxfrm="\\1 $ac_symprfx\\2 \\2"
8446
8447   # Write the raw and C identifiers.
8448   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8449     # Fake it for dumpbin and say T for any non-static function,
8450     # D for any global variable and I for any imported variable.
8451     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8452     # which start with @ or ?.
8453     lt_cv_sys_global_symbol_pipe="$AWK '"\
8454 "     {last_section=section; section=\$ 3};"\
8455 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8456 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8457 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8458 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8459 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8460 "     \$ 0!~/External *\|/{next};"\
8461 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8462 "     {if(hide[section]) next};"\
8463 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8464 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8465 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8466 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8467 "     ' prfx=^$ac_symprfx"
8468   else
8469     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[     ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8470   fi
8471   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8472
8473   # Check to see that the pipe works correctly.
8474   pipe_works=no
8475
8476   rm -f conftest*
8477   cat > conftest.$ac_ext <<_LT_EOF
8478 #ifdef __cplusplus
8479 extern "C" {
8480 #endif
8481 char nm_test_var;
8482 void nm_test_func(void);
8483 void nm_test_func(void){}
8484 #ifdef __cplusplus
8485 }
8486 #endif
8487 int main(){nm_test_var='a';nm_test_func();return(0);}
8488 _LT_EOF
8489
8490   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8491   (eval $ac_compile) 2>&5
8492   ac_status=$?
8493   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8494   test $ac_status = 0; }; then
8495     # Now try to grab the symbols.
8496     nlist=conftest.nm
8497     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8498   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8499   ac_status=$?
8500   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8501   test $ac_status = 0; } && test -s "$nlist"; then
8502       # Try sorting and uniquifying the output.
8503       if sort "$nlist" | uniq > "$nlist"T; then
8504         mv -f "$nlist"T "$nlist"
8505       else
8506         rm -f "$nlist"T
8507       fi
8508
8509       # Make sure that we snagged all the symbols we need.
8510       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8511         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8512           cat <<_LT_EOF > conftest.$ac_ext
8513 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8514 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8515 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8516    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8517 # define LT_DLSYM_CONST
8518 #elif defined __osf__
8519 /* This system does not cope well with relocations in const data.  */
8520 # define LT_DLSYM_CONST
8521 #else
8522 # define LT_DLSYM_CONST const
8523 #endif
8524
8525 #ifdef __cplusplus
8526 extern "C" {
8527 #endif
8528
8529 _LT_EOF
8530           # Now generate the symbol file.
8531           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8532
8533           cat <<_LT_EOF >> conftest.$ac_ext
8534
8535 /* The mapping between symbol names and symbols.  */
8536 LT_DLSYM_CONST struct {
8537   const char *name;
8538   void       *address;
8539 }
8540 lt__PROGRAM__LTX_preloaded_symbols[] =
8541 {
8542   { "@PROGRAM@", (void *) 0 },
8543 _LT_EOF
8544           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8545           cat <<\_LT_EOF >> conftest.$ac_ext
8546   {0, (void *) 0}
8547 };
8548
8549 /* This works around a problem in FreeBSD linker */
8550 #ifdef FREEBSD_WORKAROUND
8551 static const void *lt_preloaded_setup() {
8552   return lt__PROGRAM__LTX_preloaded_symbols;
8553 }
8554 #endif
8555
8556 #ifdef __cplusplus
8557 }
8558 #endif
8559 _LT_EOF
8560           # Now try linking the two files.
8561           mv conftest.$ac_objext conftstm.$ac_objext
8562           lt_globsym_save_LIBS=$LIBS
8563           lt_globsym_save_CFLAGS=$CFLAGS
8564           LIBS=conftstm.$ac_objext
8565           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8566           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8567   (eval $ac_link) 2>&5
8568   ac_status=$?
8569   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8570   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8571             pipe_works=yes
8572           fi
8573           LIBS=$lt_globsym_save_LIBS
8574           CFLAGS=$lt_globsym_save_CFLAGS
8575         else
8576           echo "cannot find nm_test_func in $nlist" >&5
8577         fi
8578       else
8579         echo "cannot find nm_test_var in $nlist" >&5
8580       fi
8581     else
8582       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8583     fi
8584   else
8585     echo "$progname: failed program was:" >&5
8586     cat conftest.$ac_ext >&5
8587   fi
8588   rm -rf conftest* conftst*
8589
8590   # Do not use the global_symbol_pipe unless it works.
8591   if test yes = "$pipe_works"; then
8592     break
8593   else
8594     lt_cv_sys_global_symbol_pipe=
8595   fi
8596 done
8597
8598 fi
8599
8600 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8601   lt_cv_sys_global_symbol_to_cdecl=
8602 fi
8603 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8604   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8605 printf "%s\n" "failed" >&6; }
8606 else
8607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8608 printf "%s\n" "ok" >&6; }
8609 fi
8610
8611 # Response file support.
8612 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8613   nm_file_list_spec='@'
8614 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8615   nm_file_list_spec='@'
8616 fi
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8655 printf %s "checking for sysroot... " >&6; }
8656
8657 # Check whether --with-sysroot was given.
8658 if test ${with_sysroot+y}
8659 then :
8660   withval=$with_sysroot;
8661 else $as_nop
8662   with_sysroot=no
8663 fi
8664
8665
8666 lt_sysroot=
8667 case $with_sysroot in #(
8668  yes)
8669    if test yes = "$GCC"; then
8670      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8671    fi
8672    ;; #(
8673  /*)
8674    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8675    ;; #(
8676  no|'')
8677    ;; #(
8678  *)
8679    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8680 printf "%s\n" "$with_sysroot" >&6; }
8681    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8682    ;;
8683 esac
8684
8685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8686 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8687
8688
8689
8690
8691
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8693 printf %s "checking for a working dd... " >&6; }
8694 if test ${ac_cv_path_lt_DD+y}
8695 then :
8696   printf %s "(cached) " >&6
8697 else $as_nop
8698   printf 0123456789abcdef0123456789abcdef >conftest.i
8699 cat conftest.i conftest.i >conftest2.i
8700 : ${lt_DD:=$DD}
8701 if test -z "$lt_DD"; then
8702   ac_path_lt_DD_found=false
8703   # Loop through the user's path and test for each of PROGNAME-LIST
8704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 for as_dir in $PATH
8706 do
8707   IFS=$as_save_IFS
8708   case $as_dir in #(((
8709     '') as_dir=./ ;;
8710     */) ;;
8711     *) as_dir=$as_dir/ ;;
8712   esac
8713     for ac_prog in dd
8714    do
8715     for ac_exec_ext in '' $ac_executable_extensions; do
8716       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8717       as_fn_executable_p "$ac_path_lt_DD" || continue
8718 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8719   cmp -s conftest.i conftest.out \
8720   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8721 fi
8722       $ac_path_lt_DD_found && break 3
8723     done
8724   done
8725   done
8726 IFS=$as_save_IFS
8727   if test -z "$ac_cv_path_lt_DD"; then
8728     :
8729   fi
8730 else
8731   ac_cv_path_lt_DD=$lt_DD
8732 fi
8733
8734 rm -f conftest.i conftest2.i conftest.out
8735 fi
8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8737 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8738
8739
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8741 printf %s "checking how to truncate binary pipes... " >&6; }
8742 if test ${lt_cv_truncate_bin+y}
8743 then :
8744   printf %s "(cached) " >&6
8745 else $as_nop
8746   printf 0123456789abcdef0123456789abcdef >conftest.i
8747 cat conftest.i conftest.i >conftest2.i
8748 lt_cv_truncate_bin=
8749 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8750   cmp -s conftest.i conftest.out \
8751   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8752 fi
8753 rm -f conftest.i conftest2.i conftest.out
8754 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8755 fi
8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8757 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8758
8759
8760
8761
8762
8763
8764
8765 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8766 func_cc_basename ()
8767 {
8768     for cc_temp in $*""; do
8769       case $cc_temp in
8770         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8771         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8772         \-*) ;;
8773         *) break;;
8774       esac
8775     done
8776     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8777 }
8778
8779 # Check whether --enable-libtool-lock was given.
8780 if test ${enable_libtool_lock+y}
8781 then :
8782   enableval=$enable_libtool_lock;
8783 fi
8784
8785 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8786
8787 # Some flags need to be propagated to the compiler or linker for good
8788 # libtool support.
8789 case $host in
8790 ia64-*-hpux*)
8791   # Find out what ABI is being produced by ac_compile, and set mode
8792   # options accordingly.
8793   echo 'int i;' > conftest.$ac_ext
8794   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8795   (eval $ac_compile) 2>&5
8796   ac_status=$?
8797   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8798   test $ac_status = 0; }; then
8799     case `$FILECMD conftest.$ac_objext` in
8800       *ELF-32*)
8801         HPUX_IA64_MODE=32
8802         ;;
8803       *ELF-64*)
8804         HPUX_IA64_MODE=64
8805         ;;
8806     esac
8807   fi
8808   rm -rf conftest*
8809   ;;
8810 *-*-irix6*)
8811   # Find out what ABI is being produced by ac_compile, and set linker
8812   # options accordingly.
8813   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8814   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8815   (eval $ac_compile) 2>&5
8816   ac_status=$?
8817   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8818   test $ac_status = 0; }; then
8819     if test yes = "$lt_cv_prog_gnu_ld"; then
8820       case `$FILECMD conftest.$ac_objext` in
8821         *32-bit*)
8822           LD="${LD-ld} -melf32bsmip"
8823           ;;
8824         *N32*)
8825           LD="${LD-ld} -melf32bmipn32"
8826           ;;
8827         *64-bit*)
8828           LD="${LD-ld} -melf64bmip"
8829         ;;
8830       esac
8831     else
8832       case `$FILECMD conftest.$ac_objext` in
8833         *32-bit*)
8834           LD="${LD-ld} -32"
8835           ;;
8836         *N32*)
8837           LD="${LD-ld} -n32"
8838           ;;
8839         *64-bit*)
8840           LD="${LD-ld} -64"
8841           ;;
8842       esac
8843     fi
8844   fi
8845   rm -rf conftest*
8846   ;;
8847
8848 mips64*-*linux*)
8849   # Find out what ABI is being produced by ac_compile, and set linker
8850   # options accordingly.
8851   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8852   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8853   (eval $ac_compile) 2>&5
8854   ac_status=$?
8855   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8856   test $ac_status = 0; }; then
8857     emul=elf
8858     case `$FILECMD conftest.$ac_objext` in
8859       *32-bit*)
8860         emul="${emul}32"
8861         ;;
8862       *64-bit*)
8863         emul="${emul}64"
8864         ;;
8865     esac
8866     case `$FILECMD conftest.$ac_objext` in
8867       *MSB*)
8868         emul="${emul}btsmip"
8869         ;;
8870       *LSB*)
8871         emul="${emul}ltsmip"
8872         ;;
8873     esac
8874     case `$FILECMD conftest.$ac_objext` in
8875       *N32*)
8876         emul="${emul}n32"
8877         ;;
8878     esac
8879     LD="${LD-ld} -m $emul"
8880   fi
8881   rm -rf conftest*
8882   ;;
8883
8884 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8885 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8886   # Find out what ABI is being produced by ac_compile, and set linker
8887   # options accordingly.  Note that the listed cases only cover the
8888   # situations where additional linker options are needed (such as when
8889   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8890   # vice versa); the common cases where no linker options are needed do
8891   # not appear in the list.
8892   echo 'int i;' > conftest.$ac_ext
8893   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8894   (eval $ac_compile) 2>&5
8895   ac_status=$?
8896   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8897   test $ac_status = 0; }; then
8898     case `$FILECMD conftest.o` in
8899       *32-bit*)
8900         case $host in
8901           x86_64-*kfreebsd*-gnu)
8902             LD="${LD-ld} -m elf_i386_fbsd"
8903             ;;
8904           x86_64-*linux*)
8905             case `$FILECMD conftest.o` in
8906               *x86-64*)
8907                 LD="${LD-ld} -m elf32_x86_64"
8908                 ;;
8909               *)
8910                 LD="${LD-ld} -m elf_i386"
8911                 ;;
8912             esac
8913             ;;
8914           powerpc64le-*linux*)
8915             LD="${LD-ld} -m elf32lppclinux"
8916             ;;
8917           powerpc64-*linux*)
8918             LD="${LD-ld} -m elf32ppclinux"
8919             ;;
8920           s390x-*linux*)
8921             LD="${LD-ld} -m elf_s390"
8922             ;;
8923           sparc64-*linux*)
8924             LD="${LD-ld} -m elf32_sparc"
8925             ;;
8926         esac
8927         ;;
8928       *64-bit*)
8929         case $host in
8930           x86_64-*kfreebsd*-gnu)
8931             LD="${LD-ld} -m elf_x86_64_fbsd"
8932             ;;
8933           x86_64-*linux*)
8934             LD="${LD-ld} -m elf_x86_64"
8935             ;;
8936           powerpcle-*linux*)
8937             LD="${LD-ld} -m elf64lppc"
8938             ;;
8939           powerpc-*linux*)
8940             LD="${LD-ld} -m elf64ppc"
8941             ;;
8942           s390*-*linux*|s390*-*tpf*)
8943             LD="${LD-ld} -m elf64_s390"
8944             ;;
8945           sparc*-*linux*)
8946             LD="${LD-ld} -m elf64_sparc"
8947             ;;
8948         esac
8949         ;;
8950     esac
8951   fi
8952   rm -rf conftest*
8953   ;;
8954
8955 *-*-sco3.2v5*)
8956   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8957   SAVE_CFLAGS=$CFLAGS
8958   CFLAGS="$CFLAGS -belf"
8959   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8960 printf %s "checking whether the C compiler needs -belf... " >&6; }
8961 if test ${lt_cv_cc_needs_belf+y}
8962 then :
8963   printf %s "(cached) " >&6
8964 else $as_nop
8965   ac_ext=c
8966 ac_cpp='$CPP $CPPFLAGS'
8967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8970
8971      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h.  */
8973
8974 int
8975 main (void)
8976 {
8977
8978   ;
8979   return 0;
8980 }
8981 _ACEOF
8982 if ac_fn_c_try_link "$LINENO"
8983 then :
8984   lt_cv_cc_needs_belf=yes
8985 else $as_nop
8986   lt_cv_cc_needs_belf=no
8987 fi
8988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8989     conftest$ac_exeext conftest.$ac_ext
8990      ac_ext=c
8991 ac_cpp='$CPP $CPPFLAGS'
8992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8995
8996 fi
8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8998 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8999   if test yes != "$lt_cv_cc_needs_belf"; then
9000     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9001     CFLAGS=$SAVE_CFLAGS
9002   fi
9003   ;;
9004 *-*solaris*)
9005   # Find out what ABI is being produced by ac_compile, and set linker
9006   # options accordingly.
9007   echo 'int i;' > conftest.$ac_ext
9008   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9009   (eval $ac_compile) 2>&5
9010   ac_status=$?
9011   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9012   test $ac_status = 0; }; then
9013     case `$FILECMD conftest.o` in
9014     *64-bit*)
9015       case $lt_cv_prog_gnu_ld in
9016       yes*)
9017         case $host in
9018         i?86-*-solaris*|x86_64-*-solaris*)
9019           LD="${LD-ld} -m elf_x86_64"
9020           ;;
9021         sparc*-*-solaris*)
9022           LD="${LD-ld} -m elf64_sparc"
9023           ;;
9024         esac
9025         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9026         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9027           LD=${LD-ld}_sol2
9028         fi
9029         ;;
9030       *)
9031         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9032           LD="${LD-ld} -64"
9033         fi
9034         ;;
9035       esac
9036       ;;
9037     esac
9038   fi
9039   rm -rf conftest*
9040   ;;
9041 esac
9042
9043 need_locks=$enable_libtool_lock
9044
9045 if test -n "$ac_tool_prefix"; then
9046   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9047 set dummy ${ac_tool_prefix}mt; ac_word=$2
9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9049 printf %s "checking for $ac_word... " >&6; }
9050 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9051 then :
9052   printf %s "(cached) " >&6
9053 else $as_nop
9054   if test -n "$MANIFEST_TOOL"; then
9055   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9056 else
9057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9058 for as_dir in $PATH
9059 do
9060   IFS=$as_save_IFS
9061   case $as_dir in #(((
9062     '') as_dir=./ ;;
9063     */) ;;
9064     *) as_dir=$as_dir/ ;;
9065   esac
9066     for ac_exec_ext in '' $ac_executable_extensions; do
9067   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9068     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9069     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9070     break 2
9071   fi
9072 done
9073   done
9074 IFS=$as_save_IFS
9075
9076 fi
9077 fi
9078 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9079 if test -n "$MANIFEST_TOOL"; then
9080   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9081 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9082 else
9083   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 printf "%s\n" "no" >&6; }
9085 fi
9086
9087
9088 fi
9089 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9090   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9091   # Extract the first word of "mt", so it can be a program name with args.
9092 set dummy mt; ac_word=$2
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094 printf %s "checking for $ac_word... " >&6; }
9095 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9096 then :
9097   printf %s "(cached) " >&6
9098 else $as_nop
9099   if test -n "$ac_ct_MANIFEST_TOOL"; then
9100   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9101 else
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103 for as_dir in $PATH
9104 do
9105   IFS=$as_save_IFS
9106   case $as_dir in #(((
9107     '') as_dir=./ ;;
9108     */) ;;
9109     *) as_dir=$as_dir/ ;;
9110   esac
9111     for ac_exec_ext in '' $ac_executable_extensions; do
9112   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9113     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9114     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9115     break 2
9116   fi
9117 done
9118   done
9119 IFS=$as_save_IFS
9120
9121 fi
9122 fi
9123 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9124 if test -n "$ac_ct_MANIFEST_TOOL"; then
9125   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9126 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9127 else
9128   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 printf "%s\n" "no" >&6; }
9130 fi
9131
9132   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9133     MANIFEST_TOOL=":"
9134   else
9135     case $cross_compiling:$ac_tool_warned in
9136 yes:)
9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9138 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9139 ac_tool_warned=yes ;;
9140 esac
9141     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9142   fi
9143 else
9144   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9145 fi
9146
9147 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9149 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9150 if test ${lt_cv_path_mainfest_tool+y}
9151 then :
9152   printf %s "(cached) " >&6
9153 else $as_nop
9154   lt_cv_path_mainfest_tool=no
9155   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9156   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9157   cat conftest.err >&5
9158   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9159     lt_cv_path_mainfest_tool=yes
9160   fi
9161   rm -f conftest*
9162 fi
9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9164 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9165 if test yes != "$lt_cv_path_mainfest_tool"; then
9166   MANIFEST_TOOL=:
9167 fi
9168
9169
9170
9171
9172
9173
9174   case $host_os in
9175     rhapsody* | darwin*)
9176     if test -n "$ac_tool_prefix"; then
9177   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9178 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180 printf %s "checking for $ac_word... " >&6; }
9181 if test ${ac_cv_prog_DSYMUTIL+y}
9182 then :
9183   printf %s "(cached) " >&6
9184 else $as_nop
9185   if test -n "$DSYMUTIL"; then
9186   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9187 else
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9190 do
9191   IFS=$as_save_IFS
9192   case $as_dir in #(((
9193     '') as_dir=./ ;;
9194     */) ;;
9195     *) as_dir=$as_dir/ ;;
9196   esac
9197     for ac_exec_ext in '' $ac_executable_extensions; do
9198   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9199     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9200     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9201     break 2
9202   fi
9203 done
9204   done
9205 IFS=$as_save_IFS
9206
9207 fi
9208 fi
9209 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9210 if test -n "$DSYMUTIL"; then
9211   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9212 printf "%s\n" "$DSYMUTIL" >&6; }
9213 else
9214   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215 printf "%s\n" "no" >&6; }
9216 fi
9217
9218
9219 fi
9220 if test -z "$ac_cv_prog_DSYMUTIL"; then
9221   ac_ct_DSYMUTIL=$DSYMUTIL
9222   # Extract the first word of "dsymutil", so it can be a program name with args.
9223 set dummy dsymutil; ac_word=$2
9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 printf %s "checking for $ac_word... " >&6; }
9226 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9227 then :
9228   printf %s "(cached) " >&6
9229 else $as_nop
9230   if test -n "$ac_ct_DSYMUTIL"; then
9231   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9232 else
9233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234 for as_dir in $PATH
9235 do
9236   IFS=$as_save_IFS
9237   case $as_dir in #(((
9238     '') as_dir=./ ;;
9239     */) ;;
9240     *) as_dir=$as_dir/ ;;
9241   esac
9242     for ac_exec_ext in '' $ac_executable_extensions; do
9243   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9244     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9245     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9246     break 2
9247   fi
9248 done
9249   done
9250 IFS=$as_save_IFS
9251
9252 fi
9253 fi
9254 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9255 if test -n "$ac_ct_DSYMUTIL"; then
9256   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9257 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9258 else
9259   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260 printf "%s\n" "no" >&6; }
9261 fi
9262
9263   if test "x$ac_ct_DSYMUTIL" = x; then
9264     DSYMUTIL=":"
9265   else
9266     case $cross_compiling:$ac_tool_warned in
9267 yes:)
9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9269 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9270 ac_tool_warned=yes ;;
9271 esac
9272     DSYMUTIL=$ac_ct_DSYMUTIL
9273   fi
9274 else
9275   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9276 fi
9277
9278     if test -n "$ac_tool_prefix"; then
9279   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9280 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282 printf %s "checking for $ac_word... " >&6; }
9283 if test ${ac_cv_prog_NMEDIT+y}
9284 then :
9285   printf %s "(cached) " >&6
9286 else $as_nop
9287   if test -n "$NMEDIT"; then
9288   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9289 else
9290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 for as_dir in $PATH
9292 do
9293   IFS=$as_save_IFS
9294   case $as_dir in #(((
9295     '') as_dir=./ ;;
9296     */) ;;
9297     *) as_dir=$as_dir/ ;;
9298   esac
9299     for ac_exec_ext in '' $ac_executable_extensions; do
9300   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9301     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9302     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9303     break 2
9304   fi
9305 done
9306   done
9307 IFS=$as_save_IFS
9308
9309 fi
9310 fi
9311 NMEDIT=$ac_cv_prog_NMEDIT
9312 if test -n "$NMEDIT"; then
9313   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9314 printf "%s\n" "$NMEDIT" >&6; }
9315 else
9316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 printf "%s\n" "no" >&6; }
9318 fi
9319
9320
9321 fi
9322 if test -z "$ac_cv_prog_NMEDIT"; then
9323   ac_ct_NMEDIT=$NMEDIT
9324   # Extract the first word of "nmedit", so it can be a program name with args.
9325 set dummy nmedit; ac_word=$2
9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 printf %s "checking for $ac_word... " >&6; }
9328 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9329 then :
9330   printf %s "(cached) " >&6
9331 else $as_nop
9332   if test -n "$ac_ct_NMEDIT"; then
9333   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9334 else
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336 for as_dir in $PATH
9337 do
9338   IFS=$as_save_IFS
9339   case $as_dir in #(((
9340     '') as_dir=./ ;;
9341     */) ;;
9342     *) as_dir=$as_dir/ ;;
9343   esac
9344     for ac_exec_ext in '' $ac_executable_extensions; do
9345   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9346     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9347     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9348     break 2
9349   fi
9350 done
9351   done
9352 IFS=$as_save_IFS
9353
9354 fi
9355 fi
9356 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9357 if test -n "$ac_ct_NMEDIT"; then
9358   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9359 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9360 else
9361   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 printf "%s\n" "no" >&6; }
9363 fi
9364
9365   if test "x$ac_ct_NMEDIT" = x; then
9366     NMEDIT=":"
9367   else
9368     case $cross_compiling:$ac_tool_warned in
9369 yes:)
9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9371 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9372 ac_tool_warned=yes ;;
9373 esac
9374     NMEDIT=$ac_ct_NMEDIT
9375   fi
9376 else
9377   NMEDIT="$ac_cv_prog_NMEDIT"
9378 fi
9379
9380     if test -n "$ac_tool_prefix"; then
9381   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9382 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 printf %s "checking for $ac_word... " >&6; }
9385 if test ${ac_cv_prog_LIPO+y}
9386 then :
9387   printf %s "(cached) " >&6
9388 else $as_nop
9389   if test -n "$LIPO"; then
9390   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9391 else
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393 for as_dir in $PATH
9394 do
9395   IFS=$as_save_IFS
9396   case $as_dir in #(((
9397     '') as_dir=./ ;;
9398     */) ;;
9399     *) as_dir=$as_dir/ ;;
9400   esac
9401     for ac_exec_ext in '' $ac_executable_extensions; do
9402   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9403     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9404     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9405     break 2
9406   fi
9407 done
9408   done
9409 IFS=$as_save_IFS
9410
9411 fi
9412 fi
9413 LIPO=$ac_cv_prog_LIPO
9414 if test -n "$LIPO"; then
9415   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9416 printf "%s\n" "$LIPO" >&6; }
9417 else
9418   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 printf "%s\n" "no" >&6; }
9420 fi
9421
9422
9423 fi
9424 if test -z "$ac_cv_prog_LIPO"; then
9425   ac_ct_LIPO=$LIPO
9426   # Extract the first word of "lipo", so it can be a program name with args.
9427 set dummy lipo; ac_word=$2
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9429 printf %s "checking for $ac_word... " >&6; }
9430 if test ${ac_cv_prog_ac_ct_LIPO+y}
9431 then :
9432   printf %s "(cached) " >&6
9433 else $as_nop
9434   if test -n "$ac_ct_LIPO"; then
9435   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9436 else
9437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438 for as_dir in $PATH
9439 do
9440   IFS=$as_save_IFS
9441   case $as_dir in #(((
9442     '') as_dir=./ ;;
9443     */) ;;
9444     *) as_dir=$as_dir/ ;;
9445   esac
9446     for ac_exec_ext in '' $ac_executable_extensions; do
9447   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9448     ac_cv_prog_ac_ct_LIPO="lipo"
9449     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9450     break 2
9451   fi
9452 done
9453   done
9454 IFS=$as_save_IFS
9455
9456 fi
9457 fi
9458 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9459 if test -n "$ac_ct_LIPO"; then
9460   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9461 printf "%s\n" "$ac_ct_LIPO" >&6; }
9462 else
9463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464 printf "%s\n" "no" >&6; }
9465 fi
9466
9467   if test "x$ac_ct_LIPO" = x; then
9468     LIPO=":"
9469   else
9470     case $cross_compiling:$ac_tool_warned in
9471 yes:)
9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9473 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9474 ac_tool_warned=yes ;;
9475 esac
9476     LIPO=$ac_ct_LIPO
9477   fi
9478 else
9479   LIPO="$ac_cv_prog_LIPO"
9480 fi
9481
9482     if test -n "$ac_tool_prefix"; then
9483   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9484 set dummy ${ac_tool_prefix}otool; ac_word=$2
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9486 printf %s "checking for $ac_word... " >&6; }
9487 if test ${ac_cv_prog_OTOOL+y}
9488 then :
9489   printf %s "(cached) " >&6
9490 else $as_nop
9491   if test -n "$OTOOL"; then
9492   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9493 else
9494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495 for as_dir in $PATH
9496 do
9497   IFS=$as_save_IFS
9498   case $as_dir in #(((
9499     '') as_dir=./ ;;
9500     */) ;;
9501     *) as_dir=$as_dir/ ;;
9502   esac
9503     for ac_exec_ext in '' $ac_executable_extensions; do
9504   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9505     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9506     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9507     break 2
9508   fi
9509 done
9510   done
9511 IFS=$as_save_IFS
9512
9513 fi
9514 fi
9515 OTOOL=$ac_cv_prog_OTOOL
9516 if test -n "$OTOOL"; then
9517   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9518 printf "%s\n" "$OTOOL" >&6; }
9519 else
9520   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 printf "%s\n" "no" >&6; }
9522 fi
9523
9524
9525 fi
9526 if test -z "$ac_cv_prog_OTOOL"; then
9527   ac_ct_OTOOL=$OTOOL
9528   # Extract the first word of "otool", so it can be a program name with args.
9529 set dummy otool; ac_word=$2
9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531 printf %s "checking for $ac_word... " >&6; }
9532 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9533 then :
9534   printf %s "(cached) " >&6
9535 else $as_nop
9536   if test -n "$ac_ct_OTOOL"; then
9537   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9538 else
9539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540 for as_dir in $PATH
9541 do
9542   IFS=$as_save_IFS
9543   case $as_dir in #(((
9544     '') as_dir=./ ;;
9545     */) ;;
9546     *) as_dir=$as_dir/ ;;
9547   esac
9548     for ac_exec_ext in '' $ac_executable_extensions; do
9549   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9550     ac_cv_prog_ac_ct_OTOOL="otool"
9551     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9552     break 2
9553   fi
9554 done
9555   done
9556 IFS=$as_save_IFS
9557
9558 fi
9559 fi
9560 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9561 if test -n "$ac_ct_OTOOL"; then
9562   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9563 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9564 else
9565   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566 printf "%s\n" "no" >&6; }
9567 fi
9568
9569   if test "x$ac_ct_OTOOL" = x; then
9570     OTOOL=":"
9571   else
9572     case $cross_compiling:$ac_tool_warned in
9573 yes:)
9574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9575 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9576 ac_tool_warned=yes ;;
9577 esac
9578     OTOOL=$ac_ct_OTOOL
9579   fi
9580 else
9581   OTOOL="$ac_cv_prog_OTOOL"
9582 fi
9583
9584     if test -n "$ac_tool_prefix"; then
9585   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9586 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9588 printf %s "checking for $ac_word... " >&6; }
9589 if test ${ac_cv_prog_OTOOL64+y}
9590 then :
9591   printf %s "(cached) " >&6
9592 else $as_nop
9593   if test -n "$OTOOL64"; then
9594   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9595 else
9596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597 for as_dir in $PATH
9598 do
9599   IFS=$as_save_IFS
9600   case $as_dir in #(((
9601     '') as_dir=./ ;;
9602     */) ;;
9603     *) as_dir=$as_dir/ ;;
9604   esac
9605     for ac_exec_ext in '' $ac_executable_extensions; do
9606   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9607     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9608     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9609     break 2
9610   fi
9611 done
9612   done
9613 IFS=$as_save_IFS
9614
9615 fi
9616 fi
9617 OTOOL64=$ac_cv_prog_OTOOL64
9618 if test -n "$OTOOL64"; then
9619   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9620 printf "%s\n" "$OTOOL64" >&6; }
9621 else
9622   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 printf "%s\n" "no" >&6; }
9624 fi
9625
9626
9627 fi
9628 if test -z "$ac_cv_prog_OTOOL64"; then
9629   ac_ct_OTOOL64=$OTOOL64
9630   # Extract the first word of "otool64", so it can be a program name with args.
9631 set dummy otool64; ac_word=$2
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 printf %s "checking for $ac_word... " >&6; }
9634 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9635 then :
9636   printf %s "(cached) " >&6
9637 else $as_nop
9638   if test -n "$ac_ct_OTOOL64"; then
9639   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9640 else
9641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642 for as_dir in $PATH
9643 do
9644   IFS=$as_save_IFS
9645   case $as_dir in #(((
9646     '') as_dir=./ ;;
9647     */) ;;
9648     *) as_dir=$as_dir/ ;;
9649   esac
9650     for ac_exec_ext in '' $ac_executable_extensions; do
9651   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9652     ac_cv_prog_ac_ct_OTOOL64="otool64"
9653     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9654     break 2
9655   fi
9656 done
9657   done
9658 IFS=$as_save_IFS
9659
9660 fi
9661 fi
9662 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9663 if test -n "$ac_ct_OTOOL64"; then
9664   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9665 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9666 else
9667   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668 printf "%s\n" "no" >&6; }
9669 fi
9670
9671   if test "x$ac_ct_OTOOL64" = x; then
9672     OTOOL64=":"
9673   else
9674     case $cross_compiling:$ac_tool_warned in
9675 yes:)
9676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9677 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9678 ac_tool_warned=yes ;;
9679 esac
9680     OTOOL64=$ac_ct_OTOOL64
9681   fi
9682 else
9683   OTOOL64="$ac_cv_prog_OTOOL64"
9684 fi
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9713 printf %s "checking for -single_module linker flag... " >&6; }
9714 if test ${lt_cv_apple_cc_single_mod+y}
9715 then :
9716   printf %s "(cached) " >&6
9717 else $as_nop
9718   lt_cv_apple_cc_single_mod=no
9719       if test -z "$LT_MULTI_MODULE"; then
9720         # By default we will add the -single_module flag. You can override
9721         # by either setting the environment variable LT_MULTI_MODULE
9722         # non-empty at configure time, or by adding -multi_module to the
9723         # link flags.
9724         rm -rf libconftest.dylib*
9725         echo "int foo(void){return 1;}" > conftest.c
9726         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9727 -dynamiclib -Wl,-single_module conftest.c" >&5
9728         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9729           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9730         _lt_result=$?
9731         # If there is a non-empty error log, and "single_module"
9732         # appears in it, assume the flag caused a linker warning
9733         if test -s conftest.err && $GREP single_module conftest.err; then
9734           cat conftest.err >&5
9735         # Otherwise, if the output was created with a 0 exit code from
9736         # the compiler, it worked.
9737         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9738           lt_cv_apple_cc_single_mod=yes
9739         else
9740           cat conftest.err >&5
9741         fi
9742         rm -rf libconftest.dylib*
9743         rm -f conftest.*
9744       fi
9745 fi
9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9747 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9748
9749     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9750 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9751 if test ${lt_cv_ld_exported_symbols_list+y}
9752 then :
9753   printf %s "(cached) " >&6
9754 else $as_nop
9755   lt_cv_ld_exported_symbols_list=no
9756       save_LDFLAGS=$LDFLAGS
9757       echo "_main" > conftest.sym
9758       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9759       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h.  */
9761
9762 int
9763 main (void)
9764 {
9765
9766   ;
9767   return 0;
9768 }
9769 _ACEOF
9770 if ac_fn_c_try_link "$LINENO"
9771 then :
9772   lt_cv_ld_exported_symbols_list=yes
9773 else $as_nop
9774   lt_cv_ld_exported_symbols_list=no
9775 fi
9776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9777     conftest$ac_exeext conftest.$ac_ext
9778         LDFLAGS=$save_LDFLAGS
9779
9780 fi
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9782 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9783
9784     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9785 printf %s "checking for -force_load linker flag... " >&6; }
9786 if test ${lt_cv_ld_force_load+y}
9787 then :
9788   printf %s "(cached) " >&6
9789 else $as_nop
9790   lt_cv_ld_force_load=no
9791       cat > conftest.c << _LT_EOF
9792 int forced_loaded() { return 2;}
9793 _LT_EOF
9794       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9795       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9796       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9797       $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9798       echo "$RANLIB libconftest.a" >&5
9799       $RANLIB libconftest.a 2>&5
9800       cat > conftest.c << _LT_EOF
9801 int main() { return 0;}
9802 _LT_EOF
9803       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9804       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9805       _lt_result=$?
9806       if test -s conftest.err && $GREP force_load conftest.err; then
9807         cat conftest.err >&5
9808       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9809         lt_cv_ld_force_load=yes
9810       else
9811         cat conftest.err >&5
9812       fi
9813         rm -f conftest.err libconftest.a conftest conftest.c
9814         rm -rf conftest.dSYM
9815
9816 fi
9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9818 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9819     case $host_os in
9820     rhapsody* | darwin1.[012])
9821       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9822     darwin1.*)
9823       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9824     darwin*)
9825       case $MACOSX_DEPLOYMENT_TARGET,$host in
9826         10.[012],*|,*powerpc*-darwin[5-8]*)
9827           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9828         *)
9829           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9830       esac
9831     ;;
9832   esac
9833     if test yes = "$lt_cv_apple_cc_single_mod"; then
9834       _lt_dar_single_mod='$single_module'
9835     fi
9836     if test yes = "$lt_cv_ld_exported_symbols_list"; then
9837       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9838     else
9839       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9840     fi
9841     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9842       _lt_dsymutil='~$DSYMUTIL $lib || :'
9843     else
9844       _lt_dsymutil=
9845     fi
9846     ;;
9847   esac
9848
9849 # func_munge_path_list VARIABLE PATH
9850 # -----------------------------------
9851 # VARIABLE is name of variable containing _space_ separated list of
9852 # directories to be munged by the contents of PATH, which is string
9853 # having a format:
9854 # "DIR[:DIR]:"
9855 #       string "DIR[ DIR]" will be prepended to VARIABLE
9856 # ":DIR[:DIR]"
9857 #       string "DIR[ DIR]" will be appended to VARIABLE
9858 # "DIRP[:DIRP]::[DIRA:]DIRA"
9859 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9860 #       "DIRA[ DIRA]" will be appended to VARIABLE
9861 # "DIR[:DIR]"
9862 #       VARIABLE will be replaced by "DIR[ DIR]"
9863 func_munge_path_list ()
9864 {
9865     case x$2 in
9866     x)
9867         ;;
9868     *:)
9869         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9870         ;;
9871     x:*)
9872         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9873         ;;
9874     *::*)
9875         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9876         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9877         ;;
9878     *)
9879         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9880         ;;
9881     esac
9882 }
9883
9884 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9885 "
9886 if test "x$ac_cv_header_dlfcn_h" = xyes
9887 then :
9888   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9889
9890 fi
9891
9892
9893
9894
9895
9896 # Set options
9897 # Check whether --enable-static was given.
9898 if test ${enable_static+y}
9899 then :
9900   enableval=$enable_static; p=${PACKAGE-default}
9901     case $enableval in
9902     yes) enable_static=yes ;;
9903     no) enable_static=no ;;
9904     *)
9905      enable_static=no
9906       # Look at the argument we got.  We use all the common list separators.
9907       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9908       for pkg in $enableval; do
9909         IFS=$lt_save_ifs
9910         if test "X$pkg" = "X$p"; then
9911           enable_static=yes
9912         fi
9913       done
9914       IFS=$lt_save_ifs
9915       ;;
9916     esac
9917 else $as_nop
9918   enable_static=no
9919 fi
9920
9921
9922
9923
9924
9925
9926
9927 enable_win32_dll=yes
9928
9929 case $host in
9930 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9931   if test -n "$ac_tool_prefix"; then
9932   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9933 set dummy ${ac_tool_prefix}as; ac_word=$2
9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935 printf %s "checking for $ac_word... " >&6; }
9936 if test ${ac_cv_prog_AS+y}
9937 then :
9938   printf %s "(cached) " >&6
9939 else $as_nop
9940   if test -n "$AS"; then
9941   ac_cv_prog_AS="$AS" # Let the user override the test.
9942 else
9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944 for as_dir in $PATH
9945 do
9946   IFS=$as_save_IFS
9947   case $as_dir in #(((
9948     '') as_dir=./ ;;
9949     */) ;;
9950     *) as_dir=$as_dir/ ;;
9951   esac
9952     for ac_exec_ext in '' $ac_executable_extensions; do
9953   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9954     ac_cv_prog_AS="${ac_tool_prefix}as"
9955     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9956     break 2
9957   fi
9958 done
9959   done
9960 IFS=$as_save_IFS
9961
9962 fi
9963 fi
9964 AS=$ac_cv_prog_AS
9965 if test -n "$AS"; then
9966   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9967 printf "%s\n" "$AS" >&6; }
9968 else
9969   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 printf "%s\n" "no" >&6; }
9971 fi
9972
9973
9974 fi
9975 if test -z "$ac_cv_prog_AS"; then
9976   ac_ct_AS=$AS
9977   # Extract the first word of "as", so it can be a program name with args.
9978 set dummy as; ac_word=$2
9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980 printf %s "checking for $ac_word... " >&6; }
9981 if test ${ac_cv_prog_ac_ct_AS+y}
9982 then :
9983   printf %s "(cached) " >&6
9984 else $as_nop
9985   if test -n "$ac_ct_AS"; then
9986   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9987 else
9988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989 for as_dir in $PATH
9990 do
9991   IFS=$as_save_IFS
9992   case $as_dir in #(((
9993     '') as_dir=./ ;;
9994     */) ;;
9995     *) as_dir=$as_dir/ ;;
9996   esac
9997     for ac_exec_ext in '' $ac_executable_extensions; do
9998   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9999     ac_cv_prog_ac_ct_AS="as"
10000     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10001     break 2
10002   fi
10003 done
10004   done
10005 IFS=$as_save_IFS
10006
10007 fi
10008 fi
10009 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10010 if test -n "$ac_ct_AS"; then
10011   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10012 printf "%s\n" "$ac_ct_AS" >&6; }
10013 else
10014   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10015 printf "%s\n" "no" >&6; }
10016 fi
10017
10018   if test "x$ac_ct_AS" = x; then
10019     AS="false"
10020   else
10021     case $cross_compiling:$ac_tool_warned in
10022 yes:)
10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10024 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10025 ac_tool_warned=yes ;;
10026 esac
10027     AS=$ac_ct_AS
10028   fi
10029 else
10030   AS="$ac_cv_prog_AS"
10031 fi
10032
10033   if test -n "$ac_tool_prefix"; then
10034   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10035 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037 printf %s "checking for $ac_word... " >&6; }
10038 if test ${ac_cv_prog_DLLTOOL+y}
10039 then :
10040   printf %s "(cached) " >&6
10041 else $as_nop
10042   if test -n "$DLLTOOL"; then
10043   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10044 else
10045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046 for as_dir in $PATH
10047 do
10048   IFS=$as_save_IFS
10049   case $as_dir in #(((
10050     '') as_dir=./ ;;
10051     */) ;;
10052     *) as_dir=$as_dir/ ;;
10053   esac
10054     for ac_exec_ext in '' $ac_executable_extensions; do
10055   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10056     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10057     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10058     break 2
10059   fi
10060 done
10061   done
10062 IFS=$as_save_IFS
10063
10064 fi
10065 fi
10066 DLLTOOL=$ac_cv_prog_DLLTOOL
10067 if test -n "$DLLTOOL"; then
10068   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10069 printf "%s\n" "$DLLTOOL" >&6; }
10070 else
10071   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 printf "%s\n" "no" >&6; }
10073 fi
10074
10075
10076 fi
10077 if test -z "$ac_cv_prog_DLLTOOL"; then
10078   ac_ct_DLLTOOL=$DLLTOOL
10079   # Extract the first word of "dlltool", so it can be a program name with args.
10080 set dummy dlltool; ac_word=$2
10081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 printf %s "checking for $ac_word... " >&6; }
10083 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10084 then :
10085   printf %s "(cached) " >&6
10086 else $as_nop
10087   if test -n "$ac_ct_DLLTOOL"; then
10088   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10089 else
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10092 do
10093   IFS=$as_save_IFS
10094   case $as_dir in #(((
10095     '') as_dir=./ ;;
10096     */) ;;
10097     *) as_dir=$as_dir/ ;;
10098   esac
10099     for ac_exec_ext in '' $ac_executable_extensions; do
10100   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10101     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10102     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10103     break 2
10104   fi
10105 done
10106   done
10107 IFS=$as_save_IFS
10108
10109 fi
10110 fi
10111 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10112 if test -n "$ac_ct_DLLTOOL"; then
10113   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10114 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10115 else
10116   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 printf "%s\n" "no" >&6; }
10118 fi
10119
10120   if test "x$ac_ct_DLLTOOL" = x; then
10121     DLLTOOL="false"
10122   else
10123     case $cross_compiling:$ac_tool_warned in
10124 yes:)
10125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10126 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10127 ac_tool_warned=yes ;;
10128 esac
10129     DLLTOOL=$ac_ct_DLLTOOL
10130   fi
10131 else
10132   DLLTOOL="$ac_cv_prog_DLLTOOL"
10133 fi
10134
10135   if test -n "$ac_tool_prefix"; then
10136   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10137 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139 printf %s "checking for $ac_word... " >&6; }
10140 if test ${ac_cv_prog_OBJDUMP+y}
10141 then :
10142   printf %s "(cached) " >&6
10143 else $as_nop
10144   if test -n "$OBJDUMP"; then
10145   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10146 else
10147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148 for as_dir in $PATH
10149 do
10150   IFS=$as_save_IFS
10151   case $as_dir in #(((
10152     '') as_dir=./ ;;
10153     */) ;;
10154     *) as_dir=$as_dir/ ;;
10155   esac
10156     for ac_exec_ext in '' $ac_executable_extensions; do
10157   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10158     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10159     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10160     break 2
10161   fi
10162 done
10163   done
10164 IFS=$as_save_IFS
10165
10166 fi
10167 fi
10168 OBJDUMP=$ac_cv_prog_OBJDUMP
10169 if test -n "$OBJDUMP"; then
10170   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10171 printf "%s\n" "$OBJDUMP" >&6; }
10172 else
10173   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 printf "%s\n" "no" >&6; }
10175 fi
10176
10177
10178 fi
10179 if test -z "$ac_cv_prog_OBJDUMP"; then
10180   ac_ct_OBJDUMP=$OBJDUMP
10181   # Extract the first word of "objdump", so it can be a program name with args.
10182 set dummy objdump; ac_word=$2
10183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184 printf %s "checking for $ac_word... " >&6; }
10185 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10186 then :
10187   printf %s "(cached) " >&6
10188 else $as_nop
10189   if test -n "$ac_ct_OBJDUMP"; then
10190   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10191 else
10192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193 for as_dir in $PATH
10194 do
10195   IFS=$as_save_IFS
10196   case $as_dir in #(((
10197     '') as_dir=./ ;;
10198     */) ;;
10199     *) as_dir=$as_dir/ ;;
10200   esac
10201     for ac_exec_ext in '' $ac_executable_extensions; do
10202   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10203     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10204     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10205     break 2
10206   fi
10207 done
10208   done
10209 IFS=$as_save_IFS
10210
10211 fi
10212 fi
10213 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10214 if test -n "$ac_ct_OBJDUMP"; then
10215   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10216 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10217 else
10218   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219 printf "%s\n" "no" >&6; }
10220 fi
10221
10222   if test "x$ac_ct_OBJDUMP" = x; then
10223     OBJDUMP="false"
10224   else
10225     case $cross_compiling:$ac_tool_warned in
10226 yes:)
10227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10228 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10229 ac_tool_warned=yes ;;
10230 esac
10231     OBJDUMP=$ac_ct_OBJDUMP
10232   fi
10233 else
10234   OBJDUMP="$ac_cv_prog_OBJDUMP"
10235 fi
10236
10237   ;;
10238 esac
10239
10240 test -z "$AS" && AS=as
10241
10242
10243
10244
10245
10246 test -z "$DLLTOOL" && DLLTOOL=dlltool
10247
10248
10249
10250
10251
10252 test -z "$OBJDUMP" && OBJDUMP=objdump
10253
10254
10255
10256
10257
10258
10259
10260         enable_dlopen=no
10261
10262
10263
10264             # Check whether --enable-shared was given.
10265 if test ${enable_shared+y}
10266 then :
10267   enableval=$enable_shared; p=${PACKAGE-default}
10268     case $enableval in
10269     yes) enable_shared=yes ;;
10270     no) enable_shared=no ;;
10271     *)
10272       enable_shared=no
10273       # Look at the argument we got.  We use all the common list separators.
10274       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10275       for pkg in $enableval; do
10276         IFS=$lt_save_ifs
10277         if test "X$pkg" = "X$p"; then
10278           enable_shared=yes
10279         fi
10280       done
10281       IFS=$lt_save_ifs
10282       ;;
10283     esac
10284 else $as_nop
10285   enable_shared=yes
10286 fi
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298 # Check whether --with-pic was given.
10299 if test ${with_pic+y}
10300 then :
10301   withval=$with_pic; lt_p=${PACKAGE-default}
10302     case $withval in
10303     yes|no) pic_mode=$withval ;;
10304     *)
10305       pic_mode=default
10306       # Look at the argument we got.  We use all the common list separators.
10307       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10308       for lt_pkg in $withval; do
10309         IFS=$lt_save_ifs
10310         if test "X$lt_pkg" = "X$lt_p"; then
10311           pic_mode=yes
10312         fi
10313       done
10314       IFS=$lt_save_ifs
10315       ;;
10316     esac
10317 else $as_nop
10318   pic_mode=default
10319 fi
10320
10321
10322
10323
10324
10325
10326
10327
10328   # Check whether --enable-fast-install was given.
10329 if test ${enable_fast_install+y}
10330 then :
10331   enableval=$enable_fast_install; p=${PACKAGE-default}
10332     case $enableval in
10333     yes) enable_fast_install=yes ;;
10334     no) enable_fast_install=no ;;
10335     *)
10336       enable_fast_install=no
10337       # Look at the argument we got.  We use all the common list separators.
10338       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10339       for pkg in $enableval; do
10340         IFS=$lt_save_ifs
10341         if test "X$pkg" = "X$p"; then
10342           enable_fast_install=yes
10343         fi
10344       done
10345       IFS=$lt_save_ifs
10346       ;;
10347     esac
10348 else $as_nop
10349   enable_fast_install=yes
10350 fi
10351
10352
10353
10354
10355
10356
10357
10358
10359   shared_archive_member_spec=
10360 case $host,$enable_shared in
10361 power*-*-aix[5-9]*,yes)
10362   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10363 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10364
10365 # Check whether --with-aix-soname was given.
10366 if test ${with_aix_soname+y}
10367 then :
10368   withval=$with_aix_soname; case $withval in
10369     aix|svr4|both)
10370       ;;
10371     *)
10372       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10373       ;;
10374     esac
10375     lt_cv_with_aix_soname=$with_aix_soname
10376 else $as_nop
10377   if test ${lt_cv_with_aix_soname+y}
10378 then :
10379   printf %s "(cached) " >&6
10380 else $as_nop
10381   lt_cv_with_aix_soname=aix
10382 fi
10383
10384     with_aix_soname=$lt_cv_with_aix_soname
10385 fi
10386
10387   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10388 printf "%s\n" "$with_aix_soname" >&6; }
10389   if test aix != "$with_aix_soname"; then
10390     # For the AIX way of multilib, we name the shared archive member
10391     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10392     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10393     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10394     # the AIX toolchain works better with OBJECT_MODE set (default 32).
10395     if test 64 = "${OBJECT_MODE-32}"; then
10396       shared_archive_member_spec=shr_64
10397     else
10398       shared_archive_member_spec=shr
10399     fi
10400   fi
10401   ;;
10402 *)
10403   with_aix_soname=aix
10404   ;;
10405 esac
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416 # This can be used to rebuild libtool when needed
10417 LIBTOOL_DEPS=$ltmain
10418
10419 # Always use our own libtool.
10420 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451 test -z "$LN_S" && LN_S="ln -s"
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466 if test -n "${ZSH_VERSION+set}"; then
10467    setopt NO_GLOB_SUBST
10468 fi
10469
10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10471 printf %s "checking for objdir... " >&6; }
10472 if test ${lt_cv_objdir+y}
10473 then :
10474   printf %s "(cached) " >&6
10475 else $as_nop
10476   rm -f .libs 2>/dev/null
10477 mkdir .libs 2>/dev/null
10478 if test -d .libs; then
10479   lt_cv_objdir=.libs
10480 else
10481   # MS-DOS does not allow filenames that begin with a dot.
10482   lt_cv_objdir=_libs
10483 fi
10484 rmdir .libs 2>/dev/null
10485 fi
10486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10487 printf "%s\n" "$lt_cv_objdir" >&6; }
10488 objdir=$lt_cv_objdir
10489
10490
10491
10492
10493
10494 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10495
10496
10497
10498
10499 case $host_os in
10500 aix3*)
10501   # AIX sometimes has problems with the GCC collect2 program.  For some
10502   # reason, if we set the COLLECT_NAMES environment variable, the problems
10503   # vanish in a puff of smoke.
10504   if test set != "${COLLECT_NAMES+set}"; then
10505     COLLECT_NAMES=
10506     export COLLECT_NAMES
10507   fi
10508   ;;
10509 esac
10510
10511 # Global variables:
10512 ofile=libtool
10513 can_build_shared=yes
10514
10515 # All known linkers require a '.a' archive for static linking (except MSVC and
10516 # ICC, which need '.lib').
10517 libext=a
10518
10519 with_gnu_ld=$lt_cv_prog_gnu_ld
10520
10521 old_CC=$CC
10522 old_CFLAGS=$CFLAGS
10523
10524 # Set sane defaults for various variables
10525 test -z "$CC" && CC=cc
10526 test -z "$LTCC" && LTCC=$CC
10527 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10528 test -z "$LD" && LD=ld
10529 test -z "$ac_objext" && ac_objext=o
10530
10531 func_cc_basename $compiler
10532 cc_basename=$func_cc_basename_result
10533
10534
10535 # Only perform the check for file, if the check method requires it
10536 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10537 case $deplibs_check_method in
10538 file_magic*)
10539   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10540     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10541 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10542 if test ${lt_cv_path_MAGIC_CMD+y}
10543 then :
10544   printf %s "(cached) " >&6
10545 else $as_nop
10546   case $MAGIC_CMD in
10547 [\\/*] |  ?:[\\/]*)
10548   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10549   ;;
10550 *)
10551   lt_save_MAGIC_CMD=$MAGIC_CMD
10552   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10553   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10554   for ac_dir in $ac_dummy; do
10555     IFS=$lt_save_ifs
10556     test -z "$ac_dir" && ac_dir=.
10557     if test -f "$ac_dir/${ac_tool_prefix}file"; then
10558       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10559       if test -n "$file_magic_test_file"; then
10560         case $deplibs_check_method in
10561         "file_magic "*)
10562           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10563           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10564           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10565             $EGREP "$file_magic_regex" > /dev/null; then
10566             :
10567           else
10568             cat <<_LT_EOF 1>&2
10569
10570 *** Warning: the command libtool uses to detect shared libraries,
10571 *** $file_magic_cmd, produces output that libtool cannot recognize.
10572 *** The result is that libtool may fail to recognize shared libraries
10573 *** as such.  This will affect the creation of libtool libraries that
10574 *** depend on shared libraries, but programs linked with such libtool
10575 *** libraries will work regardless of this problem.  Nevertheless, you
10576 *** may want to report the problem to your system manager and/or to
10577 *** bug-libtool@gnu.org
10578
10579 _LT_EOF
10580           fi ;;
10581         esac
10582       fi
10583       break
10584     fi
10585   done
10586   IFS=$lt_save_ifs
10587   MAGIC_CMD=$lt_save_MAGIC_CMD
10588   ;;
10589 esac
10590 fi
10591
10592 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10593 if test -n "$MAGIC_CMD"; then
10594   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10595 printf "%s\n" "$MAGIC_CMD" >&6; }
10596 else
10597   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 printf "%s\n" "no" >&6; }
10599 fi
10600
10601
10602
10603
10604
10605 if test -z "$lt_cv_path_MAGIC_CMD"; then
10606   if test -n "$ac_tool_prefix"; then
10607     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10608 printf %s "checking for file... " >&6; }
10609 if test ${lt_cv_path_MAGIC_CMD+y}
10610 then :
10611   printf %s "(cached) " >&6
10612 else $as_nop
10613   case $MAGIC_CMD in
10614 [\\/*] |  ?:[\\/]*)
10615   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10616   ;;
10617 *)
10618   lt_save_MAGIC_CMD=$MAGIC_CMD
10619   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10620   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10621   for ac_dir in $ac_dummy; do
10622     IFS=$lt_save_ifs
10623     test -z "$ac_dir" && ac_dir=.
10624     if test -f "$ac_dir/file"; then
10625       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10626       if test -n "$file_magic_test_file"; then
10627         case $deplibs_check_method in
10628         "file_magic "*)
10629           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10630           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10631           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10632             $EGREP "$file_magic_regex" > /dev/null; then
10633             :
10634           else
10635             cat <<_LT_EOF 1>&2
10636
10637 *** Warning: the command libtool uses to detect shared libraries,
10638 *** $file_magic_cmd, produces output that libtool cannot recognize.
10639 *** The result is that libtool may fail to recognize shared libraries
10640 *** as such.  This will affect the creation of libtool libraries that
10641 *** depend on shared libraries, but programs linked with such libtool
10642 *** libraries will work regardless of this problem.  Nevertheless, you
10643 *** may want to report the problem to your system manager and/or to
10644 *** bug-libtool@gnu.org
10645
10646 _LT_EOF
10647           fi ;;
10648         esac
10649       fi
10650       break
10651     fi
10652   done
10653   IFS=$lt_save_ifs
10654   MAGIC_CMD=$lt_save_MAGIC_CMD
10655   ;;
10656 esac
10657 fi
10658
10659 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10660 if test -n "$MAGIC_CMD"; then
10661   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10662 printf "%s\n" "$MAGIC_CMD" >&6; }
10663 else
10664   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 printf "%s\n" "no" >&6; }
10666 fi
10667
10668
10669   else
10670     MAGIC_CMD=:
10671   fi
10672 fi
10673
10674   fi
10675   ;;
10676 esac
10677
10678 # Use C for the default configuration in the libtool script
10679
10680 lt_save_CC=$CC
10681 ac_ext=c
10682 ac_cpp='$CPP $CPPFLAGS'
10683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10686
10687
10688 # Source file extension for C test sources.
10689 ac_ext=c
10690
10691 # Object file extension for compiled C test sources.
10692 objext=o
10693 objext=$objext
10694
10695 # Code to be used in simple compile tests
10696 lt_simple_compile_test_code="int some_variable = 0;"
10697
10698 # Code to be used in simple link tests
10699 lt_simple_link_test_code='int main(){return(0);}'
10700
10701
10702
10703
10704
10705
10706
10707 # If no C compiler was specified, use CC.
10708 LTCC=${LTCC-"$CC"}
10709
10710 # If no C compiler flags were specified, use CFLAGS.
10711 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10712
10713 # Allow CC to be a program name with arguments.
10714 compiler=$CC
10715
10716 # Save the default compiler, since it gets overwritten when the other
10717 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10718 compiler_DEFAULT=$CC
10719
10720 # save warnings/boilerplate of simple test code
10721 ac_outfile=conftest.$ac_objext
10722 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10723 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10724 _lt_compiler_boilerplate=`cat conftest.err`
10725 $RM conftest*
10726
10727 ac_outfile=conftest.$ac_objext
10728 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10729 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10730 _lt_linker_boilerplate=`cat conftest.err`
10731 $RM -r conftest*
10732
10733
10734 ## CAVEAT EMPTOR:
10735 ## There is no encapsulation within the following macros, do not change
10736 ## the running order or otherwise move them around unless you know exactly
10737 ## what you are doing...
10738 if test -n "$compiler"; then
10739
10740 lt_prog_compiler_no_builtin_flag=
10741
10742 if test yes = "$GCC"; then
10743   case $cc_basename in
10744   nvcc*)
10745     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10746   *)
10747     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10748   esac
10749
10750   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10751 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10752 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10753 then :
10754   printf %s "(cached) " >&6
10755 else $as_nop
10756   lt_cv_prog_compiler_rtti_exceptions=no
10757    ac_outfile=conftest.$ac_objext
10758    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10759    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10760    # Insert the option either (1) after the last *FLAGS variable, or
10761    # (2) before a word containing "conftest.", or (3) at the end.
10762    # Note that $ac_compile itself does not contain backslashes and begins
10763    # with a dollar sign (not a hyphen), so the echo should work correctly.
10764    # The option is referenced via a variable to avoid confusing sed.
10765    lt_compile=`echo "$ac_compile" | $SED \
10766    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10767    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10768    -e 's:$: $lt_compiler_flag:'`
10769    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10770    (eval "$lt_compile" 2>conftest.err)
10771    ac_status=$?
10772    cat conftest.err >&5
10773    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774    if (exit $ac_status) && test -s "$ac_outfile"; then
10775      # The compiler can only warn and ignore the option if not recognized
10776      # So say no if there are warnings other than the usual output.
10777      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10778      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10779      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10780        lt_cv_prog_compiler_rtti_exceptions=yes
10781      fi
10782    fi
10783    $RM conftest*
10784
10785 fi
10786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10787 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10788
10789 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10790     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10791 else
10792     :
10793 fi
10794
10795 fi
10796
10797
10798
10799
10800
10801
10802   lt_prog_compiler_wl=
10803 lt_prog_compiler_pic=
10804 lt_prog_compiler_static=
10805
10806
10807   if test yes = "$GCC"; then
10808     lt_prog_compiler_wl='-Wl,'
10809     lt_prog_compiler_static='-static'
10810
10811     case $host_os in
10812       aix*)
10813       # All AIX code is PIC.
10814       if test ia64 = "$host_cpu"; then
10815         # AIX 5 now supports IA64 processor
10816         lt_prog_compiler_static='-Bstatic'
10817       fi
10818       lt_prog_compiler_pic='-fPIC'
10819       ;;
10820
10821     amigaos*)
10822       case $host_cpu in
10823       powerpc)
10824             # see comment about AmigaOS4 .so support
10825             lt_prog_compiler_pic='-fPIC'
10826         ;;
10827       m68k)
10828             # FIXME: we need at least 68020 code to build shared libraries, but
10829             # adding the '-m68020' flag to GCC prevents building anything better,
10830             # like '-m68040'.
10831             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10832         ;;
10833       esac
10834       ;;
10835
10836     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10837       # PIC is the default for these OSes.
10838       ;;
10839
10840     mingw* | cygwin* | pw32* | os2* | cegcc*)
10841       # This hack is so that the source file can tell whether it is being
10842       # built for inclusion in a dll (and should export symbols for example).
10843       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10844       # (--disable-auto-import) libraries
10845       lt_prog_compiler_pic='-DDLL_EXPORT'
10846       case $host_os in
10847       os2*)
10848         lt_prog_compiler_static='$wl-static'
10849         ;;
10850       esac
10851       ;;
10852
10853     darwin* | rhapsody*)
10854       # PIC is the default on this platform
10855       # Common symbols not allowed in MH_DYLIB files
10856       lt_prog_compiler_pic='-fno-common'
10857       ;;
10858
10859     haiku*)
10860       # PIC is the default for Haiku.
10861       # The "-static" flag exists, but is broken.
10862       lt_prog_compiler_static=
10863       ;;
10864
10865     hpux*)
10866       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10867       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10868       # sets the default TLS model and affects inlining.
10869       case $host_cpu in
10870       hppa*64*)
10871         # +Z the default
10872         ;;
10873       *)
10874         lt_prog_compiler_pic='-fPIC'
10875         ;;
10876       esac
10877       ;;
10878
10879     interix[3-9]*)
10880       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10881       # Instead, we relocate shared libraries at runtime.
10882       ;;
10883
10884     msdosdjgpp*)
10885       # Just because we use GCC doesn't mean we suddenly get shared libraries
10886       # on systems that don't support them.
10887       lt_prog_compiler_can_build_shared=no
10888       enable_shared=no
10889       ;;
10890
10891     *nto* | *qnx*)
10892       # QNX uses GNU C++, but need to define -shared option too, otherwise
10893       # it will coredump.
10894       lt_prog_compiler_pic='-fPIC -shared'
10895       ;;
10896
10897     sysv4*MP*)
10898       if test -d /usr/nec; then
10899         lt_prog_compiler_pic=-Kconform_pic
10900       fi
10901       ;;
10902
10903     *)
10904       lt_prog_compiler_pic='-fPIC'
10905       ;;
10906     esac
10907
10908     case $cc_basename in
10909     nvcc*) # Cuda Compiler Driver 2.2
10910       lt_prog_compiler_wl='-Xlinker '
10911       if test -n "$lt_prog_compiler_pic"; then
10912         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10913       fi
10914       ;;
10915     esac
10916   else
10917     # PORTME Check for flag to pass linker flags through the system compiler.
10918     case $host_os in
10919     aix*)
10920       lt_prog_compiler_wl='-Wl,'
10921       if test ia64 = "$host_cpu"; then
10922         # AIX 5 now supports IA64 processor
10923         lt_prog_compiler_static='-Bstatic'
10924       else
10925         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10926       fi
10927       ;;
10928
10929     darwin* | rhapsody*)
10930       # PIC is the default on this platform
10931       # Common symbols not allowed in MH_DYLIB files
10932       lt_prog_compiler_pic='-fno-common'
10933       case $cc_basename in
10934       nagfor*)
10935         # NAG Fortran compiler
10936         lt_prog_compiler_wl='-Wl,-Wl,,'
10937         lt_prog_compiler_pic='-PIC'
10938         lt_prog_compiler_static='-Bstatic'
10939         ;;
10940       esac
10941       ;;
10942
10943     mingw* | cygwin* | pw32* | os2* | cegcc*)
10944       # This hack is so that the source file can tell whether it is being
10945       # built for inclusion in a dll (and should export symbols for example).
10946       lt_prog_compiler_pic='-DDLL_EXPORT'
10947       case $host_os in
10948       os2*)
10949         lt_prog_compiler_static='$wl-static'
10950         ;;
10951       esac
10952       ;;
10953
10954     hpux9* | hpux10* | hpux11*)
10955       lt_prog_compiler_wl='-Wl,'
10956       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10957       # not for PA HP-UX.
10958       case $host_cpu in
10959       hppa*64*|ia64*)
10960         # +Z the default
10961         ;;
10962       *)
10963         lt_prog_compiler_pic='+Z'
10964         ;;
10965       esac
10966       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10967       lt_prog_compiler_static='$wl-a ${wl}archive'
10968       ;;
10969
10970     irix5* | irix6* | nonstopux*)
10971       lt_prog_compiler_wl='-Wl,'
10972       # PIC (with -KPIC) is the default.
10973       lt_prog_compiler_static='-non_shared'
10974       ;;
10975
10976     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10977       case $cc_basename in
10978       # old Intel for x86_64, which still supported -KPIC.
10979       ecc*)
10980         lt_prog_compiler_wl='-Wl,'
10981         lt_prog_compiler_pic='-KPIC'
10982         lt_prog_compiler_static='-static'
10983         ;;
10984       # icc used to be incompatible with GCC.
10985       # ICC 10 doesn't accept -KPIC any more.
10986       icc* | ifort*)
10987         lt_prog_compiler_wl='-Wl,'
10988         lt_prog_compiler_pic='-fPIC'
10989         lt_prog_compiler_static='-static'
10990         ;;
10991       # Lahey Fortran 8.1.
10992       lf95*)
10993         lt_prog_compiler_wl='-Wl,'
10994         lt_prog_compiler_pic='--shared'
10995         lt_prog_compiler_static='--static'
10996         ;;
10997       nagfor*)
10998         # NAG Fortran compiler
10999         lt_prog_compiler_wl='-Wl,-Wl,,'
11000         lt_prog_compiler_pic='-PIC'
11001         lt_prog_compiler_static='-Bstatic'
11002         ;;
11003       tcc*)
11004         # Fabrice Bellard et al's Tiny C Compiler
11005         lt_prog_compiler_wl='-Wl,'
11006         lt_prog_compiler_pic='-fPIC'
11007         lt_prog_compiler_static='-static'
11008         ;;
11009       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11010         # Portland Group compilers (*not* the Pentium gcc compiler,
11011         # which looks to be a dead project)
11012         lt_prog_compiler_wl='-Wl,'
11013         lt_prog_compiler_pic='-fpic'
11014         lt_prog_compiler_static='-Bstatic'
11015         ;;
11016       ccc*)
11017         lt_prog_compiler_wl='-Wl,'
11018         # All Alpha code is PIC.
11019         lt_prog_compiler_static='-non_shared'
11020         ;;
11021       xl* | bgxl* | bgf* | mpixl*)
11022         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11023         lt_prog_compiler_wl='-Wl,'
11024         lt_prog_compiler_pic='-qpic'
11025         lt_prog_compiler_static='-qstaticlink'
11026         ;;
11027       *)
11028         case `$CC -V 2>&1 | $SED 5q` in
11029         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11030           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11031           lt_prog_compiler_pic='-KPIC'
11032           lt_prog_compiler_static='-Bstatic'
11033           lt_prog_compiler_wl=''
11034           ;;
11035         *Sun\ F* | *Sun*Fortran*)
11036           lt_prog_compiler_pic='-KPIC'
11037           lt_prog_compiler_static='-Bstatic'
11038           lt_prog_compiler_wl='-Qoption ld '
11039           ;;
11040         *Sun\ C*)
11041           # Sun C 5.9
11042           lt_prog_compiler_pic='-KPIC'
11043           lt_prog_compiler_static='-Bstatic'
11044           lt_prog_compiler_wl='-Wl,'
11045           ;;
11046         *Intel*\ [CF]*Compiler*)
11047           lt_prog_compiler_wl='-Wl,'
11048           lt_prog_compiler_pic='-fPIC'
11049           lt_prog_compiler_static='-static'
11050           ;;
11051         *Portland\ Group*)
11052           lt_prog_compiler_wl='-Wl,'
11053           lt_prog_compiler_pic='-fpic'
11054           lt_prog_compiler_static='-Bstatic'
11055           ;;
11056         esac
11057         ;;
11058       esac
11059       ;;
11060
11061     newsos6)
11062       lt_prog_compiler_pic='-KPIC'
11063       lt_prog_compiler_static='-Bstatic'
11064       ;;
11065
11066     *nto* | *qnx*)
11067       # QNX uses GNU C++, but need to define -shared option too, otherwise
11068       # it will coredump.
11069       lt_prog_compiler_pic='-fPIC -shared'
11070       ;;
11071
11072     osf3* | osf4* | osf5*)
11073       lt_prog_compiler_wl='-Wl,'
11074       # All OSF/1 code is PIC.
11075       lt_prog_compiler_static='-non_shared'
11076       ;;
11077
11078     rdos*)
11079       lt_prog_compiler_static='-non_shared'
11080       ;;
11081
11082     solaris*)
11083       lt_prog_compiler_pic='-KPIC'
11084       lt_prog_compiler_static='-Bstatic'
11085       case $cc_basename in
11086       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11087         lt_prog_compiler_wl='-Qoption ld ';;
11088       *)
11089         lt_prog_compiler_wl='-Wl,';;
11090       esac
11091       ;;
11092
11093     sunos4*)
11094       lt_prog_compiler_wl='-Qoption ld '
11095       lt_prog_compiler_pic='-PIC'
11096       lt_prog_compiler_static='-Bstatic'
11097       ;;
11098
11099     sysv4 | sysv4.2uw2* | sysv4.3*)
11100       lt_prog_compiler_wl='-Wl,'
11101       lt_prog_compiler_pic='-KPIC'
11102       lt_prog_compiler_static='-Bstatic'
11103       ;;
11104
11105     sysv4*MP*)
11106       if test -d /usr/nec; then
11107         lt_prog_compiler_pic='-Kconform_pic'
11108         lt_prog_compiler_static='-Bstatic'
11109       fi
11110       ;;
11111
11112     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11113       lt_prog_compiler_wl='-Wl,'
11114       lt_prog_compiler_pic='-KPIC'
11115       lt_prog_compiler_static='-Bstatic'
11116       ;;
11117
11118     unicos*)
11119       lt_prog_compiler_wl='-Wl,'
11120       lt_prog_compiler_can_build_shared=no
11121       ;;
11122
11123     uts4*)
11124       lt_prog_compiler_pic='-pic'
11125       lt_prog_compiler_static='-Bstatic'
11126       ;;
11127
11128     *)
11129       lt_prog_compiler_can_build_shared=no
11130       ;;
11131     esac
11132   fi
11133
11134 case $host_os in
11135   # For platforms that do not support PIC, -DPIC is meaningless:
11136   *djgpp*)
11137     lt_prog_compiler_pic=
11138     ;;
11139   *)
11140     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11141     ;;
11142 esac
11143
11144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11145 printf %s "checking for $compiler option to produce PIC... " >&6; }
11146 if test ${lt_cv_prog_compiler_pic+y}
11147 then :
11148   printf %s "(cached) " >&6
11149 else $as_nop
11150   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11151 fi
11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11153 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11154 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11155
11156 #
11157 # Check to make sure the PIC flag actually works.
11158 #
11159 if test -n "$lt_prog_compiler_pic"; then
11160   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11161 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11162 if test ${lt_cv_prog_compiler_pic_works+y}
11163 then :
11164   printf %s "(cached) " >&6
11165 else $as_nop
11166   lt_cv_prog_compiler_pic_works=no
11167    ac_outfile=conftest.$ac_objext
11168    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11169    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11170    # Insert the option either (1) after the last *FLAGS variable, or
11171    # (2) before a word containing "conftest.", or (3) at the end.
11172    # Note that $ac_compile itself does not contain backslashes and begins
11173    # with a dollar sign (not a hyphen), so the echo should work correctly.
11174    # The option is referenced via a variable to avoid confusing sed.
11175    lt_compile=`echo "$ac_compile" | $SED \
11176    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11177    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11178    -e 's:$: $lt_compiler_flag:'`
11179    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11180    (eval "$lt_compile" 2>conftest.err)
11181    ac_status=$?
11182    cat conftest.err >&5
11183    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184    if (exit $ac_status) && test -s "$ac_outfile"; then
11185      # The compiler can only warn and ignore the option if not recognized
11186      # So say no if there are warnings other than the usual output.
11187      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11188      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11189      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11190        lt_cv_prog_compiler_pic_works=yes
11191      fi
11192    fi
11193    $RM conftest*
11194
11195 fi
11196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11197 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11198
11199 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11200     case $lt_prog_compiler_pic in
11201      "" | " "*) ;;
11202      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11203      esac
11204 else
11205     lt_prog_compiler_pic=
11206      lt_prog_compiler_can_build_shared=no
11207 fi
11208
11209 fi
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221 #
11222 # Check to make sure the static flag actually works.
11223 #
11224 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11226 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11227 if test ${lt_cv_prog_compiler_static_works+y}
11228 then :
11229   printf %s "(cached) " >&6
11230 else $as_nop
11231   lt_cv_prog_compiler_static_works=no
11232    save_LDFLAGS=$LDFLAGS
11233    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11234    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11235    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11236      # The linker can only warn and ignore the option if not recognized
11237      # So say no if there are warnings
11238      if test -s conftest.err; then
11239        # Append any errors to the config.log.
11240        cat conftest.err 1>&5
11241        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11242        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11243        if diff conftest.exp conftest.er2 >/dev/null; then
11244          lt_cv_prog_compiler_static_works=yes
11245        fi
11246      else
11247        lt_cv_prog_compiler_static_works=yes
11248      fi
11249    fi
11250    $RM -r conftest*
11251    LDFLAGS=$save_LDFLAGS
11252
11253 fi
11254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11255 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11256
11257 if test yes = "$lt_cv_prog_compiler_static_works"; then
11258     :
11259 else
11260     lt_prog_compiler_static=
11261 fi
11262
11263
11264
11265
11266
11267
11268
11269   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11270 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11271 if test ${lt_cv_prog_compiler_c_o+y}
11272 then :
11273   printf %s "(cached) " >&6
11274 else $as_nop
11275   lt_cv_prog_compiler_c_o=no
11276    $RM -r conftest 2>/dev/null
11277    mkdir conftest
11278    cd conftest
11279    mkdir out
11280    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11281
11282    lt_compiler_flag="-o out/conftest2.$ac_objext"
11283    # Insert the option either (1) after the last *FLAGS variable, or
11284    # (2) before a word containing "conftest.", or (3) at the end.
11285    # Note that $ac_compile itself does not contain backslashes and begins
11286    # with a dollar sign (not a hyphen), so the echo should work correctly.
11287    lt_compile=`echo "$ac_compile" | $SED \
11288    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11289    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11290    -e 's:$: $lt_compiler_flag:'`
11291    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11292    (eval "$lt_compile" 2>out/conftest.err)
11293    ac_status=$?
11294    cat out/conftest.err >&5
11295    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11297    then
11298      # The compiler can only warn and ignore the option if not recognized
11299      # So say no if there are warnings
11300      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11301      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11302      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11303        lt_cv_prog_compiler_c_o=yes
11304      fi
11305    fi
11306    chmod u+w . 2>&5
11307    $RM conftest*
11308    # SGI C++ compiler will create directory out/ii_files/ for
11309    # template instantiation
11310    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11311    $RM out/* && rmdir out
11312    cd ..
11313    $RM -r conftest
11314    $RM conftest*
11315
11316 fi
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11318 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11319
11320
11321
11322
11323
11324
11325   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11326 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11327 if test ${lt_cv_prog_compiler_c_o+y}
11328 then :
11329   printf %s "(cached) " >&6
11330 else $as_nop
11331   lt_cv_prog_compiler_c_o=no
11332    $RM -r conftest 2>/dev/null
11333    mkdir conftest
11334    cd conftest
11335    mkdir out
11336    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11337
11338    lt_compiler_flag="-o out/conftest2.$ac_objext"
11339    # Insert the option either (1) after the last *FLAGS variable, or
11340    # (2) before a word containing "conftest.", or (3) at the end.
11341    # Note that $ac_compile itself does not contain backslashes and begins
11342    # with a dollar sign (not a hyphen), so the echo should work correctly.
11343    lt_compile=`echo "$ac_compile" | $SED \
11344    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11345    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11346    -e 's:$: $lt_compiler_flag:'`
11347    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11348    (eval "$lt_compile" 2>out/conftest.err)
11349    ac_status=$?
11350    cat out/conftest.err >&5
11351    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11353    then
11354      # The compiler can only warn and ignore the option if not recognized
11355      # So say no if there are warnings
11356      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11357      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11358      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11359        lt_cv_prog_compiler_c_o=yes
11360      fi
11361    fi
11362    chmod u+w . 2>&5
11363    $RM conftest*
11364    # SGI C++ compiler will create directory out/ii_files/ for
11365    # template instantiation
11366    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11367    $RM out/* && rmdir out
11368    cd ..
11369    $RM -r conftest
11370    $RM conftest*
11371
11372 fi
11373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11374 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11375
11376
11377
11378
11379 hard_links=nottested
11380 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11381   # do not overwrite the value of need_locks provided by the user
11382   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11383 printf %s "checking if we can lock with hard links... " >&6; }
11384   hard_links=yes
11385   $RM conftest*
11386   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11387   touch conftest.a
11388   ln conftest.a conftest.b 2>&5 || hard_links=no
11389   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11390   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11391 printf "%s\n" "$hard_links" >&6; }
11392   if test no = "$hard_links"; then
11393     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11394 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11395     need_locks=warn
11396   fi
11397 else
11398   need_locks=no
11399 fi
11400
11401
11402
11403
11404
11405
11406   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11407 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11408
11409   runpath_var=
11410   allow_undefined_flag=
11411   always_export_symbols=no
11412   archive_cmds=
11413   archive_expsym_cmds=
11414   compiler_needs_object=no
11415   enable_shared_with_static_runtimes=no
11416   export_dynamic_flag_spec=
11417   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11418   hardcode_automatic=no
11419   hardcode_direct=no
11420   hardcode_direct_absolute=no
11421   hardcode_libdir_flag_spec=
11422   hardcode_libdir_separator=
11423   hardcode_minus_L=no
11424   hardcode_shlibpath_var=unsupported
11425   inherit_rpath=no
11426   link_all_deplibs=unknown
11427   module_cmds=
11428   module_expsym_cmds=
11429   old_archive_from_new_cmds=
11430   old_archive_from_expsyms_cmds=
11431   thread_safe_flag_spec=
11432   whole_archive_flag_spec=
11433   # include_expsyms should be a list of space-separated symbols to be *always*
11434   # included in the symbol list
11435   include_expsyms=
11436   # exclude_expsyms can be an extended regexp of symbols to exclude
11437   # it will be wrapped by ' (' and ')$', so one must not match beginning or
11438   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11439   # as well as any symbol that contains 'd'.
11440   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11441   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11442   # platforms (ab)use it in PIC code, but their linkers get confused if
11443   # the symbol is explicitly referenced.  Since portable code cannot
11444   # rely on this symbol name, it's probably fine to never include it in
11445   # preloaded symbol tables.
11446   # Exclude shared library initialization/finalization symbols.
11447   extract_expsyms_cmds=
11448
11449   case $host_os in
11450   cygwin* | mingw* | pw32* | cegcc*)
11451     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11452     # When not using gcc, we currently assume that we are using
11453     # Microsoft Visual C++ or Intel C++ Compiler.
11454     if test yes != "$GCC"; then
11455       with_gnu_ld=no
11456     fi
11457     ;;
11458   interix*)
11459     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11460     with_gnu_ld=yes
11461     ;;
11462   openbsd* | bitrig*)
11463     with_gnu_ld=no
11464     ;;
11465   esac
11466
11467   ld_shlibs=yes
11468
11469   # On some targets, GNU ld is compatible enough with the native linker
11470   # that we're better off using the native interface for both.
11471   lt_use_gnu_ld_interface=no
11472   if test yes = "$with_gnu_ld"; then
11473     case $host_os in
11474       aix*)
11475         # The AIX port of GNU ld has always aspired to compatibility
11476         # with the native linker.  However, as the warning in the GNU ld
11477         # block says, versions before 2.19.5* couldn't really create working
11478         # shared libraries, regardless of the interface used.
11479         case `$LD -v 2>&1` in
11480           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11481           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11482           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11483           *)
11484             lt_use_gnu_ld_interface=yes
11485             ;;
11486         esac
11487         ;;
11488       *)
11489         lt_use_gnu_ld_interface=yes
11490         ;;
11491     esac
11492   fi
11493
11494   if test yes = "$lt_use_gnu_ld_interface"; then
11495     # If archive_cmds runs LD, not CC, wlarc should be empty
11496     wlarc='$wl'
11497
11498     # Set some defaults for GNU ld with shared library support. These
11499     # are reset later if shared libraries are not supported. Putting them
11500     # here allows them to be overridden if necessary.
11501     runpath_var=LD_RUN_PATH
11502     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11503     export_dynamic_flag_spec='$wl--export-dynamic'
11504     # ancient GNU ld didn't support --whole-archive et. al.
11505     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11506       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11507     else
11508       whole_archive_flag_spec=
11509     fi
11510     supports_anon_versioning=no
11511     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11512       *GNU\ gold*) supports_anon_versioning=yes ;;
11513       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11514       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11515       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11516       *\ 2.11.*) ;; # other 2.11 versions
11517       *) supports_anon_versioning=yes ;;
11518     esac
11519
11520     # See if GNU ld supports shared libraries.
11521     case $host_os in
11522     aix[3-9]*)
11523       # On AIX/PPC, the GNU linker is very broken
11524       if test ia64 != "$host_cpu"; then
11525         ld_shlibs=no
11526         cat <<_LT_EOF 1>&2
11527
11528 *** Warning: the GNU linker, at least up to release 2.19, is reported
11529 *** to be unable to reliably create shared libraries on AIX.
11530 *** Therefore, libtool is disabling shared libraries support.  If you
11531 *** really care for shared libraries, you may want to install binutils
11532 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11533 *** You will then need to restart the configuration process.
11534
11535 _LT_EOF
11536       fi
11537       ;;
11538
11539     amigaos*)
11540       case $host_cpu in
11541       powerpc)
11542             # see comment about AmigaOS4 .so support
11543             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11544             archive_expsym_cmds=''
11545         ;;
11546       m68k)
11547             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)'
11548             hardcode_libdir_flag_spec='-L$libdir'
11549             hardcode_minus_L=yes
11550         ;;
11551       esac
11552       ;;
11553
11554     beos*)
11555       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11556         allow_undefined_flag=unsupported
11557         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11558         # support --undefined.  This deserves some investigation.  FIXME
11559         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11560       else
11561         ld_shlibs=no
11562       fi
11563       ;;
11564
11565     cygwin* | mingw* | pw32* | cegcc*)
11566       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11567       # as there is no search path for DLLs.
11568       hardcode_libdir_flag_spec='-L$libdir'
11569       export_dynamic_flag_spec='$wl--export-all-symbols'
11570       allow_undefined_flag=unsupported
11571       always_export_symbols=no
11572       enable_shared_with_static_runtimes=yes
11573       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'
11574       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11575
11576       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11577         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11578         # If the export-symbols file already is a .def file, use it as
11579         # is; otherwise, prepend EXPORTS...
11580         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11581           cp $export_symbols $output_objdir/$soname.def;
11582         else
11583           echo EXPORTS > $output_objdir/$soname.def;
11584           cat $export_symbols >> $output_objdir/$soname.def;
11585         fi~
11586         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11587       else
11588         ld_shlibs=no
11589       fi
11590       ;;
11591
11592     haiku*)
11593       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11594       link_all_deplibs=yes
11595       ;;
11596
11597     os2*)
11598       hardcode_libdir_flag_spec='-L$libdir'
11599       hardcode_minus_L=yes
11600       allow_undefined_flag=unsupported
11601       shrext_cmds=.dll
11602       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11603         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11604         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11605         $ECHO EXPORTS >> $output_objdir/$libname.def~
11606         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11607         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11608         emximp -o $lib $output_objdir/$libname.def'
11609       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11610         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11611         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11612         $ECHO EXPORTS >> $output_objdir/$libname.def~
11613         prefix_cmds="$SED"~
11614         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11615           prefix_cmds="$prefix_cmds -e 1d";
11616         fi~
11617         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11618         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11619         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11620         emximp -o $lib $output_objdir/$libname.def'
11621       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11622       enable_shared_with_static_runtimes=yes
11623       file_list_spec='@'
11624       ;;
11625
11626     interix[3-9]*)
11627       hardcode_direct=no
11628       hardcode_shlibpath_var=no
11629       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11630       export_dynamic_flag_spec='$wl-E'
11631       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11632       # Instead, shared libraries are loaded at an image base (0x10000000 by
11633       # default) and relocated if they conflict, which is a slow very memory
11634       # consuming and fragmenting process.  To avoid this, we pick a random,
11635       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11636       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11637       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11638       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'
11639       ;;
11640
11641     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11642       tmp_diet=no
11643       if test linux-dietlibc = "$host_os"; then
11644         case $cc_basename in
11645           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11646         esac
11647       fi
11648       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11649          && test no = "$tmp_diet"
11650       then
11651         tmp_addflag=' $pic_flag'
11652         tmp_sharedflag='-shared'
11653         case $cc_basename,$host_cpu in
11654         pgcc*)                          # Portland Group C compiler
11655           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'
11656           tmp_addflag=' $pic_flag'
11657           ;;
11658         pgf77* | pgf90* | pgf95* | pgfortran*)
11659                                         # Portland Group f77 and f90 compilers
11660           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'
11661           tmp_addflag=' $pic_flag -Mnomain' ;;
11662         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11663           tmp_addflag=' -i_dynamic' ;;
11664         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11665           tmp_addflag=' -i_dynamic -nofor_main' ;;
11666         ifc* | ifort*)                  # Intel Fortran compiler
11667           tmp_addflag=' -nofor_main' ;;
11668         lf95*)                          # Lahey Fortran 8.1
11669           whole_archive_flag_spec=
11670           tmp_sharedflag='--shared' ;;
11671         nagfor*)                        # NAGFOR 5.3
11672           tmp_sharedflag='-Wl,-shared' ;;
11673         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11674           tmp_sharedflag='-qmkshrobj'
11675           tmp_addflag= ;;
11676         nvcc*)  # Cuda Compiler Driver 2.2
11677           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'
11678           compiler_needs_object=yes
11679           ;;
11680         esac
11681         case `$CC -V 2>&1 | $SED 5q` in
11682         *Sun\ C*)                       # Sun C 5.9
11683           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'
11684           compiler_needs_object=yes
11685           tmp_sharedflag='-G' ;;
11686         *Sun\ F*)                       # Sun Fortran 8.3
11687           tmp_sharedflag='-G' ;;
11688         esac
11689         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11690
11691         if test yes = "$supports_anon_versioning"; then
11692           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11693             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11694             echo "local: *; };" >> $output_objdir/$libname.ver~
11695             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11696         fi
11697
11698         case $cc_basename in
11699         tcc*)
11700           export_dynamic_flag_spec='-rdynamic'
11701           ;;
11702         xlf* | bgf* | bgxlf* | mpixlf*)
11703           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11704           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11705           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11706           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11707           if test yes = "$supports_anon_versioning"; then
11708             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11709               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11710               echo "local: *; };" >> $output_objdir/$libname.ver~
11711               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11712           fi
11713           ;;
11714         esac
11715       else
11716         ld_shlibs=no
11717       fi
11718       ;;
11719
11720     netbsd*)
11721       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11722         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11723         wlarc=
11724       else
11725         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11726         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11727       fi
11728       ;;
11729
11730     solaris*)
11731       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11732         ld_shlibs=no
11733         cat <<_LT_EOF 1>&2
11734
11735 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11736 *** create shared libraries on Solaris systems.  Therefore, libtool
11737 *** is disabling shared libraries support.  We urge you to upgrade GNU
11738 *** binutils to release 2.9.1 or newer.  Another option is to modify
11739 *** your PATH or compiler configuration so that the native linker is
11740 *** used, and then restart.
11741
11742 _LT_EOF
11743       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11744         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11745         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11746       else
11747         ld_shlibs=no
11748       fi
11749       ;;
11750
11751     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11752       case `$LD -v 2>&1` in
11753         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11754         ld_shlibs=no
11755         cat <<_LT_EOF 1>&2
11756
11757 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11758 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11759 *** is disabling shared libraries support.  We urge you to upgrade GNU
11760 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11761 *** your PATH or compiler configuration so that the native linker is
11762 *** used, and then restart.
11763
11764 _LT_EOF
11765         ;;
11766         *)
11767           # For security reasons, it is highly recommended that you always
11768           # use absolute paths for naming shared libraries, and exclude the
11769           # DT_RUNPATH tag from executables and libraries.  But doing so
11770           # requires that you compile everything twice, which is a pain.
11771           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11772             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11773             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11774             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11775           else
11776             ld_shlibs=no
11777           fi
11778         ;;
11779       esac
11780       ;;
11781
11782     sunos4*)
11783       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11784       wlarc=
11785       hardcode_direct=yes
11786       hardcode_shlibpath_var=no
11787       ;;
11788
11789     *)
11790       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11791         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11792         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11793       else
11794         ld_shlibs=no
11795       fi
11796       ;;
11797     esac
11798
11799     if test no = "$ld_shlibs"; then
11800       runpath_var=
11801       hardcode_libdir_flag_spec=
11802       export_dynamic_flag_spec=
11803       whole_archive_flag_spec=
11804     fi
11805   else
11806     # PORTME fill in a description of your system's linker (not GNU ld)
11807     case $host_os in
11808     aix3*)
11809       allow_undefined_flag=unsupported
11810       always_export_symbols=yes
11811       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'
11812       # Note: this linker hardcodes the directories in LIBPATH if there
11813       # are no directories specified by -L.
11814       hardcode_minus_L=yes
11815       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11816         # Neither direct hardcoding nor static linking is supported with a
11817         # broken collect2.
11818         hardcode_direct=unsupported
11819       fi
11820       ;;
11821
11822     aix[4-9]*)
11823       if test ia64 = "$host_cpu"; then
11824         # On IA64, the linker does run time linking by default, so we don't
11825         # have to do anything special.
11826         aix_use_runtimelinking=no
11827         exp_sym_flag='-Bexport'
11828         no_entry_flag=
11829       else
11830         # If we're using GNU nm, then we don't want the "-C" option.
11831         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11832         # Without the "-l" option, or with the "-B" option, AIX nm treats
11833         # weak defined symbols like other global defined symbols, whereas
11834         # GNU nm marks them as "W".
11835         # While the 'weak' keyword is ignored in the Export File, we need
11836         # it in the Import File for the 'aix-soname' feature, so we have
11837         # to replace the "-B" option with "-P" for AIX nm.
11838         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11839           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11840         else
11841           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11842         fi
11843         aix_use_runtimelinking=no
11844
11845         # Test if we are trying to use run time linking or normal
11846         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11847         # have runtime linking enabled, and use it for executables.
11848         # For shared libraries, we enable/disable runtime linking
11849         # depending on the kind of the shared library created -
11850         # when "with_aix_soname,aix_use_runtimelinking" is:
11851         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11852         # "aix,yes"  lib.so          shared, rtl:yes, for executables
11853         #            lib.a           static archive
11854         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
11855         #            lib.a(lib.so.V) shared, rtl:no,  for executables
11856         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11857         #            lib.a(lib.so.V) shared, rtl:no
11858         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11859         #            lib.a           static archive
11860         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11861           for ld_flag in $LDFLAGS; do
11862           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11863             aix_use_runtimelinking=yes
11864             break
11865           fi
11866           done
11867           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11868             # With aix-soname=svr4, we create the lib.so.V shared archives only,
11869             # so we don't have lib.a shared libs to link our executables.
11870             # We have to force runtime linking in this case.
11871             aix_use_runtimelinking=yes
11872             LDFLAGS="$LDFLAGS -Wl,-brtl"
11873           fi
11874           ;;
11875         esac
11876
11877         exp_sym_flag='-bexport'
11878         no_entry_flag='-bnoentry'
11879       fi
11880
11881       # When large executables or shared objects are built, AIX ld can
11882       # have problems creating the table of contents.  If linking a library
11883       # or program results in "error TOC overflow" add -mminimal-toc to
11884       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11885       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11886
11887       archive_cmds=''
11888       hardcode_direct=yes
11889       hardcode_direct_absolute=yes
11890       hardcode_libdir_separator=':'
11891       link_all_deplibs=yes
11892       file_list_spec='$wl-f,'
11893       case $with_aix_soname,$aix_use_runtimelinking in
11894       aix,*) ;; # traditional, no import file
11895       svr4,* | *,yes) # use import file
11896         # The Import File defines what to hardcode.
11897         hardcode_direct=no
11898         hardcode_direct_absolute=no
11899         ;;
11900       esac
11901
11902       if test yes = "$GCC"; then
11903         case $host_os in aix4.[012]|aix4.[012].*)
11904         # We only want to do this on AIX 4.2 and lower, the check
11905         # below for broken collect2 doesn't work under 4.3+
11906           collect2name=`$CC -print-prog-name=collect2`
11907           if test -f "$collect2name" &&
11908            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11909           then
11910           # We have reworked collect2
11911           :
11912           else
11913           # We have old collect2
11914           hardcode_direct=unsupported
11915           # It fails to find uninstalled libraries when the uninstalled
11916           # path is not listed in the libpath.  Setting hardcode_minus_L
11917           # to unsupported forces relinking
11918           hardcode_minus_L=yes
11919           hardcode_libdir_flag_spec='-L$libdir'
11920           hardcode_libdir_separator=
11921           fi
11922           ;;
11923         esac
11924         shared_flag='-shared'
11925         if test yes = "$aix_use_runtimelinking"; then
11926           shared_flag="$shared_flag "'$wl-G'
11927         fi
11928         # Need to ensure runtime linking is disabled for the traditional
11929         # shared library, or the linker may eventually find shared libraries
11930         # /with/ Import File - we do not want to mix them.
11931         shared_flag_aix='-shared'
11932         shared_flag_svr4='-shared $wl-G'
11933       else
11934         # not using gcc
11935         if test ia64 = "$host_cpu"; then
11936         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11937         # chokes on -Wl,-G. The following line is correct:
11938           shared_flag='-G'
11939         else
11940           if test yes = "$aix_use_runtimelinking"; then
11941             shared_flag='$wl-G'
11942           else
11943             shared_flag='$wl-bM:SRE'
11944           fi
11945           shared_flag_aix='$wl-bM:SRE'
11946           shared_flag_svr4='$wl-G'
11947         fi
11948       fi
11949
11950       export_dynamic_flag_spec='$wl-bexpall'
11951       # It seems that -bexpall does not export symbols beginning with
11952       # underscore (_), so it is better to generate a list of symbols to export.
11953       always_export_symbols=yes
11954       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11955         # Warning - without using the other runtime loading flags (-brtl),
11956         # -berok will link without error, but may produce a broken library.
11957         allow_undefined_flag='-berok'
11958         # Determine the default libpath from the value encoded in an
11959         # empty executable.
11960         if test set = "${lt_cv_aix_libpath+set}"; then
11961   aix_libpath=$lt_cv_aix_libpath
11962 else
11963   if test ${lt_cv_aix_libpath_+y}
11964 then :
11965   printf %s "(cached) " >&6
11966 else $as_nop
11967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h.  */
11969
11970 int
11971 main (void)
11972 {
11973
11974   ;
11975   return 0;
11976 }
11977 _ACEOF
11978 if ac_fn_c_try_link "$LINENO"
11979 then :
11980
11981   lt_aix_libpath_sed='
11982       /Import File Strings/,/^$/ {
11983           /^0/ {
11984               s/^0  *\([^ ]*\) *$/\1/
11985               p
11986           }
11987       }'
11988   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11989   # Check for a 64-bit object if we didn't find anything.
11990   if test -z "$lt_cv_aix_libpath_"; then
11991     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11992   fi
11993 fi
11994 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11995     conftest$ac_exeext conftest.$ac_ext
11996   if test -z "$lt_cv_aix_libpath_"; then
11997     lt_cv_aix_libpath_=/usr/lib:/lib
11998   fi
11999
12000 fi
12001
12002   aix_libpath=$lt_cv_aix_libpath_
12003 fi
12004
12005         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12006         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12007       else
12008         if test ia64 = "$host_cpu"; then
12009           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12010           allow_undefined_flag="-z nodefs"
12011           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"
12012         else
12013          # Determine the default libpath from the value encoded in an
12014          # empty executable.
12015          if test set = "${lt_cv_aix_libpath+set}"; then
12016   aix_libpath=$lt_cv_aix_libpath
12017 else
12018   if test ${lt_cv_aix_libpath_+y}
12019 then :
12020   printf %s "(cached) " >&6
12021 else $as_nop
12022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h.  */
12024
12025 int
12026 main (void)
12027 {
12028
12029   ;
12030   return 0;
12031 }
12032 _ACEOF
12033 if ac_fn_c_try_link "$LINENO"
12034 then :
12035
12036   lt_aix_libpath_sed='
12037       /Import File Strings/,/^$/ {
12038           /^0/ {
12039               s/^0  *\([^ ]*\) *$/\1/
12040               p
12041           }
12042       }'
12043   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12044   # Check for a 64-bit object if we didn't find anything.
12045   if test -z "$lt_cv_aix_libpath_"; then
12046     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12047   fi
12048 fi
12049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12050     conftest$ac_exeext conftest.$ac_ext
12051   if test -z "$lt_cv_aix_libpath_"; then
12052     lt_cv_aix_libpath_=/usr/lib:/lib
12053   fi
12054
12055 fi
12056
12057   aix_libpath=$lt_cv_aix_libpath_
12058 fi
12059
12060          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12061           # Warning - without using the other run time loading flags,
12062           # -berok will link without error, but may produce a broken library.
12063           no_undefined_flag=' $wl-bernotok'
12064           allow_undefined_flag=' $wl-berok'
12065           if test yes = "$with_gnu_ld"; then
12066             # We only use this code for GNU lds that support --whole-archive.
12067             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12068           else
12069             # Exported symbols can be pulled into shared objects from archives
12070             whole_archive_flag_spec='$convenience'
12071           fi
12072           archive_cmds_need_lc=yes
12073           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12074           # -brtl affects multiple linker settings, -berok does not and is overridden later
12075           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12076           if test svr4 != "$with_aix_soname"; then
12077             # This is similar to how AIX traditionally builds its shared libraries.
12078             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12079           fi
12080           if test aix != "$with_aix_soname"; then
12081             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12082           else
12083             # used by -dlpreopen to get the symbols
12084             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12085           fi
12086           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12087         fi
12088       fi
12089       ;;
12090
12091     amigaos*)
12092       case $host_cpu in
12093       powerpc)
12094             # see comment about AmigaOS4 .so support
12095             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12096             archive_expsym_cmds=''
12097         ;;
12098       m68k)
12099             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)'
12100             hardcode_libdir_flag_spec='-L$libdir'
12101             hardcode_minus_L=yes
12102         ;;
12103       esac
12104       ;;
12105
12106     bsdi[45]*)
12107       export_dynamic_flag_spec=-rdynamic
12108       ;;
12109
12110     cygwin* | mingw* | pw32* | cegcc*)
12111       # When not using gcc, we currently assume that we are using
12112       # Microsoft Visual C++ or Intel C++ Compiler.
12113       # hardcode_libdir_flag_spec is actually meaningless, as there is
12114       # no search path for DLLs.
12115       case $cc_basename in
12116       cl* | icl*)
12117         # Native MSVC or ICC
12118         hardcode_libdir_flag_spec=' '
12119         allow_undefined_flag=unsupported
12120         always_export_symbols=yes
12121         file_list_spec='@'
12122         # Tell ltmain to make .lib files, not .a files.
12123         libext=lib
12124         # Tell ltmain to make .dll files, not .so files.
12125         shrext_cmds=.dll
12126         # FIXME: Setting linknames here is a bad hack.
12127         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12128         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12129             cp "$export_symbols" "$output_objdir/$soname.def";
12130             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12131           else
12132             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12133           fi~
12134           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12135           linknames='
12136         # The linker will not automatically build a static lib if we build a DLL.
12137         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12138         enable_shared_with_static_runtimes=yes
12139         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12140         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12141         # Don't use ranlib
12142         old_postinstall_cmds='chmod 644 $oldlib'
12143         postlink_cmds='lt_outputfile="@OUTPUT@"~
12144           lt_tool_outputfile="@TOOL_OUTPUT@"~
12145           case $lt_outputfile in
12146             *.exe|*.EXE) ;;
12147             *)
12148               lt_outputfile=$lt_outputfile.exe
12149               lt_tool_outputfile=$lt_tool_outputfile.exe
12150               ;;
12151           esac~
12152           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12153             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12154             $RM "$lt_outputfile.manifest";
12155           fi'
12156         ;;
12157       *)
12158         # Assume MSVC and ICC wrapper
12159         hardcode_libdir_flag_spec=' '
12160         allow_undefined_flag=unsupported
12161         # Tell ltmain to make .lib files, not .a files.
12162         libext=lib
12163         # Tell ltmain to make .dll files, not .so files.
12164         shrext_cmds=.dll
12165         # FIXME: Setting linknames here is a bad hack.
12166         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12167         # The linker will automatically build a .lib file if we build a DLL.
12168         old_archive_from_new_cmds='true'
12169         # FIXME: Should let the user specify the lib program.
12170         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12171         enable_shared_with_static_runtimes=yes
12172         ;;
12173       esac
12174       ;;
12175
12176     darwin* | rhapsody*)
12177
12178
12179   archive_cmds_need_lc=no
12180   hardcode_direct=no
12181   hardcode_automatic=yes
12182   hardcode_shlibpath_var=unsupported
12183   if test yes = "$lt_cv_ld_force_load"; then
12184     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\"`'
12185
12186   else
12187     whole_archive_flag_spec=''
12188   fi
12189   link_all_deplibs=yes
12190   allow_undefined_flag=$_lt_dar_allow_undefined
12191   case $cc_basename in
12192      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12193      *) _lt_dar_can_shared=$GCC ;;
12194   esac
12195   if test yes = "$_lt_dar_can_shared"; then
12196     output_verbose_link_cmd=func_echo_all
12197     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12198     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12199     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"
12200     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"
12201
12202   else
12203   ld_shlibs=no
12204   fi
12205
12206       ;;
12207
12208     dgux*)
12209       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12210       hardcode_libdir_flag_spec='-L$libdir'
12211       hardcode_shlibpath_var=no
12212       ;;
12213
12214     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12215     # support.  Future versions do this automatically, but an explicit c++rt0.o
12216     # does not break anything, and helps significantly (at the cost of a little
12217     # extra space).
12218     freebsd2.2*)
12219       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12220       hardcode_libdir_flag_spec='-R$libdir'
12221       hardcode_direct=yes
12222       hardcode_shlibpath_var=no
12223       ;;
12224
12225     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12226     freebsd2.*)
12227       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12228       hardcode_direct=yes
12229       hardcode_minus_L=yes
12230       hardcode_shlibpath_var=no
12231       ;;
12232
12233     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12234     freebsd* | dragonfly* | midnightbsd*)
12235       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12236       hardcode_libdir_flag_spec='-R$libdir'
12237       hardcode_direct=yes
12238       hardcode_shlibpath_var=no
12239       ;;
12240
12241     hpux9*)
12242       if test yes = "$GCC"; then
12243         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12244       else
12245         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12246       fi
12247       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12248       hardcode_libdir_separator=:
12249       hardcode_direct=yes
12250
12251       # hardcode_minus_L: Not really in the search PATH,
12252       # but as the default location of the library.
12253       hardcode_minus_L=yes
12254       export_dynamic_flag_spec='$wl-E'
12255       ;;
12256
12257     hpux10*)
12258       if test yes,no = "$GCC,$with_gnu_ld"; then
12259         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12260       else
12261         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12262       fi
12263       if test no = "$with_gnu_ld"; then
12264         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12265         hardcode_libdir_separator=:
12266         hardcode_direct=yes
12267         hardcode_direct_absolute=yes
12268         export_dynamic_flag_spec='$wl-E'
12269         # hardcode_minus_L: Not really in the search PATH,
12270         # but as the default location of the library.
12271         hardcode_minus_L=yes
12272       fi
12273       ;;
12274
12275     hpux11*)
12276       if test yes,no = "$GCC,$with_gnu_ld"; then
12277         case $host_cpu in
12278         hppa*64*)
12279           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12280           ;;
12281         ia64*)
12282           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12283           ;;
12284         *)
12285           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12286           ;;
12287         esac
12288       else
12289         case $host_cpu in
12290         hppa*64*)
12291           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12292           ;;
12293         ia64*)
12294           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12295           ;;
12296         *)
12297
12298           # Older versions of the 11.00 compiler do not understand -b yet
12299           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12300           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12301 printf %s "checking if $CC understands -b... " >&6; }
12302 if test ${lt_cv_prog_compiler__b+y}
12303 then :
12304   printf %s "(cached) " >&6
12305 else $as_nop
12306   lt_cv_prog_compiler__b=no
12307    save_LDFLAGS=$LDFLAGS
12308    LDFLAGS="$LDFLAGS -b"
12309    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12310    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12311      # The linker can only warn and ignore the option if not recognized
12312      # So say no if there are warnings
12313      if test -s conftest.err; then
12314        # Append any errors to the config.log.
12315        cat conftest.err 1>&5
12316        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12317        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12318        if diff conftest.exp conftest.er2 >/dev/null; then
12319          lt_cv_prog_compiler__b=yes
12320        fi
12321      else
12322        lt_cv_prog_compiler__b=yes
12323      fi
12324    fi
12325    $RM -r conftest*
12326    LDFLAGS=$save_LDFLAGS
12327
12328 fi
12329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12330 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12331
12332 if test yes = "$lt_cv_prog_compiler__b"; then
12333     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12334 else
12335     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12336 fi
12337
12338           ;;
12339         esac
12340       fi
12341       if test no = "$with_gnu_ld"; then
12342         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12343         hardcode_libdir_separator=:
12344
12345         case $host_cpu in
12346         hppa*64*|ia64*)
12347           hardcode_direct=no
12348           hardcode_shlibpath_var=no
12349           ;;
12350         *)
12351           hardcode_direct=yes
12352           hardcode_direct_absolute=yes
12353           export_dynamic_flag_spec='$wl-E'
12354
12355           # hardcode_minus_L: Not really in the search PATH,
12356           # but as the default location of the library.
12357           hardcode_minus_L=yes
12358           ;;
12359         esac
12360       fi
12361       ;;
12362
12363     irix5* | irix6* | nonstopux*)
12364       if test yes = "$GCC"; then
12365         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'
12366         # Try to use the -exported_symbol ld option, if it does not
12367         # work, assume that -exports_file does not work either and
12368         # implicitly export all symbols.
12369         # This should be the same for all languages, so no per-tag cache variable.
12370         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12371 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12372 if test ${lt_cv_irix_exported_symbol+y}
12373 then :
12374   printf %s "(cached) " >&6
12375 else $as_nop
12376   save_LDFLAGS=$LDFLAGS
12377            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12378            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h.  */
12380 int foo (void) { return 0; }
12381 _ACEOF
12382 if ac_fn_c_try_link "$LINENO"
12383 then :
12384   lt_cv_irix_exported_symbol=yes
12385 else $as_nop
12386   lt_cv_irix_exported_symbol=no
12387 fi
12388 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12389     conftest$ac_exeext conftest.$ac_ext
12390            LDFLAGS=$save_LDFLAGS
12391 fi
12392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12393 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12394         if test yes = "$lt_cv_irix_exported_symbol"; then
12395           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'
12396         fi
12397       else
12398         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'
12399         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'
12400       fi
12401       archive_cmds_need_lc='no'
12402       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12403       hardcode_libdir_separator=:
12404       inherit_rpath=yes
12405       link_all_deplibs=yes
12406       ;;
12407
12408     linux*)
12409       case $cc_basename in
12410       tcc*)
12411         # Fabrice Bellard et al's Tiny C Compiler
12412         ld_shlibs=yes
12413         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12414         ;;
12415       esac
12416       ;;
12417
12418     netbsd*)
12419       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12420         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12421       else
12422         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12423       fi
12424       hardcode_libdir_flag_spec='-R$libdir'
12425       hardcode_direct=yes
12426       hardcode_shlibpath_var=no
12427       ;;
12428
12429     newsos6)
12430       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12431       hardcode_direct=yes
12432       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12433       hardcode_libdir_separator=:
12434       hardcode_shlibpath_var=no
12435       ;;
12436
12437     *nto* | *qnx*)
12438       ;;
12439
12440     openbsd* | bitrig*)
12441       if test -f /usr/libexec/ld.so; then
12442         hardcode_direct=yes
12443         hardcode_shlibpath_var=no
12444         hardcode_direct_absolute=yes
12445         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12446           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12447           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12448           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12449           export_dynamic_flag_spec='$wl-E'
12450         else
12451           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12452           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12453         fi
12454       else
12455         ld_shlibs=no
12456       fi
12457       ;;
12458
12459     os2*)
12460       hardcode_libdir_flag_spec='-L$libdir'
12461       hardcode_minus_L=yes
12462       allow_undefined_flag=unsupported
12463       shrext_cmds=.dll
12464       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12465         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12466         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12467         $ECHO EXPORTS >> $output_objdir/$libname.def~
12468         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12469         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12470         emximp -o $lib $output_objdir/$libname.def'
12471       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12472         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12473         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12474         $ECHO EXPORTS >> $output_objdir/$libname.def~
12475         prefix_cmds="$SED"~
12476         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12477           prefix_cmds="$prefix_cmds -e 1d";
12478         fi~
12479         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12480         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12481         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12482         emximp -o $lib $output_objdir/$libname.def'
12483       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12484       enable_shared_with_static_runtimes=yes
12485       file_list_spec='@'
12486       ;;
12487
12488     osf3*)
12489       if test yes = "$GCC"; then
12490         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12491         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'
12492       else
12493         allow_undefined_flag=' -expect_unresolved \*'
12494         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'
12495       fi
12496       archive_cmds_need_lc='no'
12497       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12498       hardcode_libdir_separator=:
12499       ;;
12500
12501     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12502       if test yes = "$GCC"; then
12503         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12504         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'
12505         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12506       else
12507         allow_undefined_flag=' -expect_unresolved \*'
12508         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'
12509         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~
12510           $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'
12511
12512         # Both c and cxx compiler support -rpath directly
12513         hardcode_libdir_flag_spec='-rpath $libdir'
12514       fi
12515       archive_cmds_need_lc='no'
12516       hardcode_libdir_separator=:
12517       ;;
12518
12519     solaris*)
12520       no_undefined_flag=' -z defs'
12521       if test yes = "$GCC"; then
12522         wlarc='$wl'
12523         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12524         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12525           $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'
12526       else
12527         case `$CC -V 2>&1` in
12528         *"Compilers 5.0"*)
12529           wlarc=''
12530           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12531           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12532             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12533           ;;
12534         *)
12535           wlarc='$wl'
12536           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12537           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12538             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12539           ;;
12540         esac
12541       fi
12542       hardcode_libdir_flag_spec='-R$libdir'
12543       hardcode_shlibpath_var=no
12544       case $host_os in
12545       solaris2.[0-5] | solaris2.[0-5].*) ;;
12546       *)
12547         # The compiler driver will combine and reorder linker options,
12548         # but understands '-z linker_flag'.  GCC discards it without '$wl',
12549         # but is careful enough not to reorder.
12550         # Supported since Solaris 2.6 (maybe 2.5.1?)
12551         if test yes = "$GCC"; then
12552           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12553         else
12554           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12555         fi
12556         ;;
12557       esac
12558       link_all_deplibs=yes
12559       ;;
12560
12561     sunos4*)
12562       if test sequent = "$host_vendor"; then
12563         # Use $CC to link under sequent, because it throws in some extra .o
12564         # files that make .init and .fini sections work.
12565         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12566       else
12567         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12568       fi
12569       hardcode_libdir_flag_spec='-L$libdir'
12570       hardcode_direct=yes
12571       hardcode_minus_L=yes
12572       hardcode_shlibpath_var=no
12573       ;;
12574
12575     sysv4)
12576       case $host_vendor in
12577         sni)
12578           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12579           hardcode_direct=yes # is this really true???
12580         ;;
12581         siemens)
12582           ## LD is ld it makes a PLAMLIB
12583           ## CC just makes a GrossModule.
12584           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12585           reload_cmds='$CC -r -o $output$reload_objs'
12586           hardcode_direct=no
12587         ;;
12588         motorola)
12589           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12590           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12591         ;;
12592       esac
12593       runpath_var='LD_RUN_PATH'
12594       hardcode_shlibpath_var=no
12595       ;;
12596
12597     sysv4.3*)
12598       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12599       hardcode_shlibpath_var=no
12600       export_dynamic_flag_spec='-Bexport'
12601       ;;
12602
12603     sysv4*MP*)
12604       if test -d /usr/nec; then
12605         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12606         hardcode_shlibpath_var=no
12607         runpath_var=LD_RUN_PATH
12608         hardcode_runpath_var=yes
12609         ld_shlibs=yes
12610       fi
12611       ;;
12612
12613     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12614       no_undefined_flag='$wl-z,text'
12615       archive_cmds_need_lc=no
12616       hardcode_shlibpath_var=no
12617       runpath_var='LD_RUN_PATH'
12618
12619       if test yes = "$GCC"; then
12620         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12621         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12622       else
12623         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12624         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12625       fi
12626       ;;
12627
12628     sysv5* | sco3.2v5* | sco5v6*)
12629       # Note: We CANNOT use -z defs as we might desire, because we do not
12630       # link with -lc, and that would cause any symbols used from libc to
12631       # always be unresolved, which means just about no library would
12632       # ever link correctly.  If we're not using GNU ld we use -z text
12633       # though, which does catch some bad symbols but isn't as heavy-handed
12634       # as -z defs.
12635       no_undefined_flag='$wl-z,text'
12636       allow_undefined_flag='$wl-z,nodefs'
12637       archive_cmds_need_lc=no
12638       hardcode_shlibpath_var=no
12639       hardcode_libdir_flag_spec='$wl-R,$libdir'
12640       hardcode_libdir_separator=':'
12641       link_all_deplibs=yes
12642       export_dynamic_flag_spec='$wl-Bexport'
12643       runpath_var='LD_RUN_PATH'
12644
12645       if test yes = "$GCC"; then
12646         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12647         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12648       else
12649         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12650         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12651       fi
12652       ;;
12653
12654     uts4*)
12655       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12656       hardcode_libdir_flag_spec='-L$libdir'
12657       hardcode_shlibpath_var=no
12658       ;;
12659
12660     *)
12661       ld_shlibs=no
12662       ;;
12663     esac
12664
12665     if test sni = "$host_vendor"; then
12666       case $host in
12667       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12668         export_dynamic_flag_spec='$wl-Blargedynsym'
12669         ;;
12670       esac
12671     fi
12672   fi
12673
12674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12675 printf "%s\n" "$ld_shlibs" >&6; }
12676 test no = "$ld_shlibs" && can_build_shared=no
12677
12678 with_gnu_ld=$with_gnu_ld
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694 #
12695 # Do we need to explicitly link libc?
12696 #
12697 case "x$archive_cmds_need_lc" in
12698 x|xyes)
12699   # Assume -lc should be added
12700   archive_cmds_need_lc=yes
12701
12702   if test yes,yes = "$GCC,$enable_shared"; then
12703     case $archive_cmds in
12704     *'~'*)
12705       # FIXME: we may have to deal with multi-command sequences.
12706       ;;
12707     '$CC '*)
12708       # Test whether the compiler implicitly links with -lc since on some
12709       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12710       # to ld, don't add -lc before -lgcc.
12711       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12712 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12713 if test ${lt_cv_archive_cmds_need_lc+y}
12714 then :
12715   printf %s "(cached) " >&6
12716 else $as_nop
12717   $RM conftest*
12718         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12719
12720         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12721   (eval $ac_compile) 2>&5
12722   ac_status=$?
12723   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12724   test $ac_status = 0; } 2>conftest.err; then
12725           soname=conftest
12726           lib=conftest
12727           libobjs=conftest.$ac_objext
12728           deplibs=
12729           wl=$lt_prog_compiler_wl
12730           pic_flag=$lt_prog_compiler_pic
12731           compiler_flags=-v
12732           linker_flags=-v
12733           verstring=
12734           output_objdir=.
12735           libname=conftest
12736           lt_save_allow_undefined_flag=$allow_undefined_flag
12737           allow_undefined_flag=
12738           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12739   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12740   ac_status=$?
12741   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12742   test $ac_status = 0; }
12743           then
12744             lt_cv_archive_cmds_need_lc=no
12745           else
12746             lt_cv_archive_cmds_need_lc=yes
12747           fi
12748           allow_undefined_flag=$lt_save_allow_undefined_flag
12749         else
12750           cat conftest.err 1>&5
12751         fi
12752         $RM conftest*
12753
12754 fi
12755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12756 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12757       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12758       ;;
12759     esac
12760   fi
12761   ;;
12762 esac
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12916 printf %s "checking dynamic linker characteristics... " >&6; }
12917
12918 if test yes = "$GCC"; then
12919   case $host_os in
12920     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12921     *) lt_awk_arg='/^libraries:/' ;;
12922   esac
12923   case $host_os in
12924     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12925     *) lt_sed_strip_eq='s|=/|/|g' ;;
12926   esac
12927   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12928   case $lt_search_path_spec in
12929   *\;*)
12930     # if the path contains ";" then we assume it to be the separator
12931     # otherwise default to the standard path separator (i.e. ":") - it is
12932     # assumed that no part of a normal pathname contains ";" but that should
12933     # okay in the real world where ";" in dirpaths is itself problematic.
12934     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12935     ;;
12936   *)
12937     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12938     ;;
12939   esac
12940   # Ok, now we have the path, separated by spaces, we can step through it
12941   # and add multilib dir if necessary...
12942   lt_tmp_lt_search_path_spec=
12943   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12944   # ...but if some path component already ends with the multilib dir we assume
12945   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12946   case "$lt_multi_os_dir; $lt_search_path_spec " in
12947   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12948     lt_multi_os_dir=
12949     ;;
12950   esac
12951   for lt_sys_path in $lt_search_path_spec; do
12952     if test -d "$lt_sys_path$lt_multi_os_dir"; then
12953       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12954     elif test -n "$lt_multi_os_dir"; then
12955       test -d "$lt_sys_path" && \
12956         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12957     fi
12958   done
12959   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12960 BEGIN {RS = " "; FS = "/|\n";} {
12961   lt_foo = "";
12962   lt_count = 0;
12963   for (lt_i = NF; lt_i > 0; lt_i--) {
12964     if ($lt_i != "" && $lt_i != ".") {
12965       if ($lt_i == "..") {
12966         lt_count++;
12967       } else {
12968         if (lt_count == 0) {
12969           lt_foo = "/" $lt_i lt_foo;
12970         } else {
12971           lt_count--;
12972         }
12973       }
12974     }
12975   }
12976   if (lt_foo != "") { lt_freq[lt_foo]++; }
12977   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12978 }'`
12979   # AWK program above erroneously prepends '/' to C:/dos/paths
12980   # for these hosts.
12981   case $host_os in
12982     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12983       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12984   esac
12985   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12986 else
12987   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12988 fi
12989 library_names_spec=
12990 libname_spec='lib$name'
12991 soname_spec=
12992 shrext_cmds=.so
12993 postinstall_cmds=
12994 postuninstall_cmds=
12995 finish_cmds=
12996 finish_eval=
12997 shlibpath_var=
12998 shlibpath_overrides_runpath=unknown
12999 version_type=none
13000 dynamic_linker="$host_os ld.so"
13001 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13002 need_lib_prefix=unknown
13003 hardcode_into_libs=no
13004
13005 # when you set need_version to no, make sure it does not cause -set_version
13006 # flags to be left without arguments
13007 need_version=unknown
13008
13009
13010
13011 case $host_os in
13012 aix3*)
13013   version_type=linux # correct to gnu/linux during the next big refactor
13014   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13015   shlibpath_var=LIBPATH
13016
13017   # AIX 3 has no versioning support, so we append a major version to the name.
13018   soname_spec='$libname$release$shared_ext$major'
13019   ;;
13020
13021 aix[4-9]*)
13022   version_type=linux # correct to gnu/linux during the next big refactor
13023   need_lib_prefix=no
13024   need_version=no
13025   hardcode_into_libs=yes
13026   if test ia64 = "$host_cpu"; then
13027     # AIX 5 supports IA64
13028     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13029     shlibpath_var=LD_LIBRARY_PATH
13030   else
13031     # With GCC up to 2.95.x, collect2 would create an import file
13032     # for dependence libraries.  The import file would start with
13033     # the line '#! .'.  This would cause the generated library to
13034     # depend on '.', always an invalid library.  This was fixed in
13035     # development snapshots of GCC prior to 3.0.
13036     case $host_os in
13037       aix4 | aix4.[01] | aix4.[01].*)
13038       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13039            echo ' yes '
13040            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13041         :
13042       else
13043         can_build_shared=no
13044       fi
13045       ;;
13046     esac
13047     # Using Import Files as archive members, it is possible to support
13048     # filename-based versioning of shared library archives on AIX. While
13049     # this would work for both with and without runtime linking, it will
13050     # prevent static linking of such archives. So we do filename-based
13051     # shared library versioning with .so extension only, which is used
13052     # when both runtime linking and shared linking is enabled.
13053     # Unfortunately, runtime linking may impact performance, so we do
13054     # not want this to be the default eventually. Also, we use the
13055     # versioned .so libs for executables only if there is the -brtl
13056     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13057     # To allow for filename-based versioning support, we need to create
13058     # libNAME.so.V as an archive file, containing:
13059     # *) an Import File, referring to the versioned filename of the
13060     #    archive as well as the shared archive member, telling the
13061     #    bitwidth (32 or 64) of that shared object, and providing the
13062     #    list of exported symbols of that shared object, eventually
13063     #    decorated with the 'weak' keyword
13064     # *) the shared object with the F_LOADONLY flag set, to really avoid
13065     #    it being seen by the linker.
13066     # At run time we better use the real file rather than another symlink,
13067     # but for link time we create the symlink libNAME.so -> libNAME.so.V
13068
13069     case $with_aix_soname,$aix_use_runtimelinking in
13070     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13071     # soname into executable. Probably we can add versioning support to
13072     # collect2, so additional links can be useful in future.
13073     aix,yes) # traditional libtool
13074       dynamic_linker='AIX unversionable lib.so'
13075       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13076       # instead of lib<name>.a to let people know that these are not
13077       # typical AIX shared libraries.
13078       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13079       ;;
13080     aix,no) # traditional AIX only
13081       dynamic_linker='AIX lib.a(lib.so.V)'
13082       # We preserve .a as extension for shared libraries through AIX4.2
13083       # and later when we are not doing run time linking.
13084       library_names_spec='$libname$release.a $libname.a'
13085       soname_spec='$libname$release$shared_ext$major'
13086       ;;
13087     svr4,*) # full svr4 only
13088       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13089       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13090       # We do not specify a path in Import Files, so LIBPATH fires.
13091       shlibpath_overrides_runpath=yes
13092       ;;
13093     *,yes) # both, prefer svr4
13094       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13095       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13096       # unpreferred sharedlib libNAME.a needs extra handling
13097       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13098       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13099       # We do not specify a path in Import Files, so LIBPATH fires.
13100       shlibpath_overrides_runpath=yes
13101       ;;
13102     *,no) # both, prefer aix
13103       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13104       library_names_spec='$libname$release.a $libname.a'
13105       soname_spec='$libname$release$shared_ext$major'
13106       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13107       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13108       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13109       ;;
13110     esac
13111     shlibpath_var=LIBPATH
13112   fi
13113   ;;
13114
13115 amigaos*)
13116   case $host_cpu in
13117   powerpc)
13118     # Since July 2007 AmigaOS4 officially supports .so libraries.
13119     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13120     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13121     ;;
13122   m68k)
13123     library_names_spec='$libname.ixlibrary $libname.a'
13124     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13125     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13126     ;;
13127   esac
13128   ;;
13129
13130 beos*)
13131   library_names_spec='$libname$shared_ext'
13132   dynamic_linker="$host_os ld.so"
13133   shlibpath_var=LIBRARY_PATH
13134   ;;
13135
13136 bsdi[45]*)
13137   version_type=linux # correct to gnu/linux during the next big refactor
13138   need_version=no
13139   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13140   soname_spec='$libname$release$shared_ext$major'
13141   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13142   shlibpath_var=LD_LIBRARY_PATH
13143   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13144   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13145   # the default ld.so.conf also contains /usr/contrib/lib and
13146   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13147   # libtool to hard-code these into programs
13148   ;;
13149
13150 cygwin* | mingw* | pw32* | cegcc*)
13151   version_type=windows
13152   shrext_cmds=.dll
13153   need_version=no
13154   need_lib_prefix=no
13155
13156   case $GCC,$cc_basename in
13157   yes,*)
13158     # gcc
13159     library_names_spec='$libname.dll.a'
13160     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13161     postinstall_cmds='base_file=`basename \$file`~
13162       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13163       dldir=$destdir/`dirname \$dlpath`~
13164       test -d \$dldir || mkdir -p \$dldir~
13165       $install_prog $dir/$dlname \$dldir/$dlname~
13166       chmod a+x \$dldir/$dlname~
13167       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13168         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13169       fi'
13170     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13171       dlpath=$dir/\$dldll~
13172        $RM \$dlpath'
13173     shlibpath_overrides_runpath=yes
13174
13175     case $host_os in
13176     cygwin*)
13177       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13178       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13179
13180       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13181       ;;
13182     mingw* | cegcc*)
13183       # MinGW DLLs use traditional 'lib' prefix
13184       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13185       ;;
13186     pw32*)
13187       # pw32 DLLs use 'pw' prefix rather than 'lib'
13188       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13189       ;;
13190     esac
13191     dynamic_linker='Win32 ld.exe'
13192     ;;
13193
13194   *,cl* | *,icl*)
13195     # Native MSVC or ICC
13196     libname_spec='$name'
13197     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13198     library_names_spec='$libname.dll.lib'
13199
13200     case $build_os in
13201     mingw*)
13202       sys_lib_search_path_spec=
13203       lt_save_ifs=$IFS
13204       IFS=';'
13205       for lt_path in $LIB
13206       do
13207         IFS=$lt_save_ifs
13208         # Let DOS variable expansion print the short 8.3 style file name.
13209         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13210         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13211       done
13212       IFS=$lt_save_ifs
13213       # Convert to MSYS style.
13214       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13215       ;;
13216     cygwin*)
13217       # Convert to unix form, then to dos form, then back to unix form
13218       # but this time dos style (no spaces!) so that the unix form looks
13219       # like /cygdrive/c/PROGRA~1:/cygdr...
13220       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13221       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13222       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13223       ;;
13224     *)
13225       sys_lib_search_path_spec=$LIB
13226       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13227         # It is most probably a Windows format PATH.
13228         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13229       else
13230         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13231       fi
13232       # FIXME: find the short name or the path components, as spaces are
13233       # common. (e.g. "Program Files" -> "PROGRA~1")
13234       ;;
13235     esac
13236
13237     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13238     postinstall_cmds='base_file=`basename \$file`~
13239       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13240       dldir=$destdir/`dirname \$dlpath`~
13241       test -d \$dldir || mkdir -p \$dldir~
13242       $install_prog $dir/$dlname \$dldir/$dlname'
13243     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13244       dlpath=$dir/\$dldll~
13245        $RM \$dlpath'
13246     shlibpath_overrides_runpath=yes
13247     dynamic_linker='Win32 link.exe'
13248     ;;
13249
13250   *)
13251     # Assume MSVC and ICC wrapper
13252     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13253     dynamic_linker='Win32 ld.exe'
13254     ;;
13255   esac
13256   # FIXME: first we should search . and the directory the executable is in
13257   shlibpath_var=PATH
13258   ;;
13259
13260 darwin* | rhapsody*)
13261   dynamic_linker="$host_os dyld"
13262   version_type=darwin
13263   need_lib_prefix=no
13264   need_version=no
13265   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13266   soname_spec='$libname$release$major$shared_ext'
13267   shlibpath_overrides_runpath=yes
13268   shlibpath_var=DYLD_LIBRARY_PATH
13269   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13270
13271   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13272   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13273   ;;
13274
13275 dgux*)
13276   version_type=linux # correct to gnu/linux during the next big refactor
13277   need_lib_prefix=no
13278   need_version=no
13279   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13280   soname_spec='$libname$release$shared_ext$major'
13281   shlibpath_var=LD_LIBRARY_PATH
13282   ;;
13283
13284 freebsd* | dragonfly* | midnightbsd*)
13285   # DragonFly does not have aout.  When/if they implement a new
13286   # versioning mechanism, adjust this.
13287   if test -x /usr/bin/objformat; then
13288     objformat=`/usr/bin/objformat`
13289   else
13290     case $host_os in
13291     freebsd[23].*) objformat=aout ;;
13292     *) objformat=elf ;;
13293     esac
13294   fi
13295   version_type=freebsd-$objformat
13296   case $version_type in
13297     freebsd-elf*)
13298       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13299       soname_spec='$libname$release$shared_ext$major'
13300       need_version=no
13301       need_lib_prefix=no
13302       ;;
13303     freebsd-*)
13304       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13305       need_version=yes
13306       ;;
13307   esac
13308   shlibpath_var=LD_LIBRARY_PATH
13309   case $host_os in
13310   freebsd2.*)
13311     shlibpath_overrides_runpath=yes
13312     ;;
13313   freebsd3.[01]* | freebsdelf3.[01]*)
13314     shlibpath_overrides_runpath=yes
13315     hardcode_into_libs=yes
13316     ;;
13317   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13318   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13319     shlibpath_overrides_runpath=no
13320     hardcode_into_libs=yes
13321     ;;
13322   *) # from 4.6 on, and DragonFly
13323     shlibpath_overrides_runpath=yes
13324     hardcode_into_libs=yes
13325     ;;
13326   esac
13327   ;;
13328
13329 haiku*)
13330   version_type=linux # correct to gnu/linux during the next big refactor
13331   need_lib_prefix=no
13332   need_version=no
13333   dynamic_linker="$host_os runtime_loader"
13334   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13335   soname_spec='$libname$release$shared_ext$major'
13336   shlibpath_var=LIBRARY_PATH
13337   shlibpath_overrides_runpath=no
13338   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13339   hardcode_into_libs=yes
13340   ;;
13341
13342 hpux9* | hpux10* | hpux11*)
13343   # Give a soname corresponding to the major version so that dld.sl refuses to
13344   # link against other versions.
13345   version_type=sunos
13346   need_lib_prefix=no
13347   need_version=no
13348   case $host_cpu in
13349   ia64*)
13350     shrext_cmds='.so'
13351     hardcode_into_libs=yes
13352     dynamic_linker="$host_os dld.so"
13353     shlibpath_var=LD_LIBRARY_PATH
13354     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13355     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13356     soname_spec='$libname$release$shared_ext$major'
13357     if test 32 = "$HPUX_IA64_MODE"; then
13358       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13359       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13360     else
13361       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13362       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13363     fi
13364     ;;
13365   hppa*64*)
13366     shrext_cmds='.sl'
13367     hardcode_into_libs=yes
13368     dynamic_linker="$host_os dld.sl"
13369     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13370     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13371     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13372     soname_spec='$libname$release$shared_ext$major'
13373     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13374     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13375     ;;
13376   *)
13377     shrext_cmds='.sl'
13378     dynamic_linker="$host_os dld.sl"
13379     shlibpath_var=SHLIB_PATH
13380     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13381     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13382     soname_spec='$libname$release$shared_ext$major'
13383     ;;
13384   esac
13385   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13386   postinstall_cmds='chmod 555 $lib'
13387   # or fails outright, so override atomically:
13388   install_override_mode=555
13389   ;;
13390
13391 interix[3-9]*)
13392   version_type=linux # correct to gnu/linux during the next big refactor
13393   need_lib_prefix=no
13394   need_version=no
13395   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13396   soname_spec='$libname$release$shared_ext$major'
13397   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13398   shlibpath_var=LD_LIBRARY_PATH
13399   shlibpath_overrides_runpath=no
13400   hardcode_into_libs=yes
13401   ;;
13402
13403 irix5* | irix6* | nonstopux*)
13404   case $host_os in
13405     nonstopux*) version_type=nonstopux ;;
13406     *)
13407         if test yes = "$lt_cv_prog_gnu_ld"; then
13408                 version_type=linux # correct to gnu/linux during the next big refactor
13409         else
13410                 version_type=irix
13411         fi ;;
13412   esac
13413   need_lib_prefix=no
13414   need_version=no
13415   soname_spec='$libname$release$shared_ext$major'
13416   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13417   case $host_os in
13418   irix5* | nonstopux*)
13419     libsuff= shlibsuff=
13420     ;;
13421   *)
13422     case $LD in # libtool.m4 will add one of these switches to LD
13423     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13424       libsuff= shlibsuff= libmagic=32-bit;;
13425     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13426       libsuff=32 shlibsuff=N32 libmagic=N32;;
13427     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13428       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13429     *) libsuff= shlibsuff= libmagic=never-match;;
13430     esac
13431     ;;
13432   esac
13433   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13434   shlibpath_overrides_runpath=no
13435   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13436   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13437   hardcode_into_libs=yes
13438   ;;
13439
13440 # No shared lib support for Linux oldld, aout, or coff.
13441 linux*oldld* | linux*aout* | linux*coff*)
13442   dynamic_linker=no
13443   ;;
13444
13445 linux*android*)
13446   version_type=none # Android doesn't support versioned libraries.
13447   need_lib_prefix=no
13448   need_version=no
13449   library_names_spec='$libname$release$shared_ext'
13450   soname_spec='$libname$release$shared_ext'
13451   finish_cmds=
13452   shlibpath_var=LD_LIBRARY_PATH
13453   shlibpath_overrides_runpath=yes
13454
13455   # This implies no fast_install, which is unacceptable.
13456   # Some rework will be needed to allow for fast_install
13457   # before this can be enabled.
13458   hardcode_into_libs=yes
13459
13460   dynamic_linker='Android linker'
13461   # Don't embed -rpath directories since the linker doesn't support them.
13462   hardcode_libdir_flag_spec='-L$libdir'
13463   ;;
13464
13465 # This must be glibc/ELF.
13466 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13467   version_type=linux # correct to gnu/linux during the next big refactor
13468   need_lib_prefix=no
13469   need_version=no
13470   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13471   soname_spec='$libname$release$shared_ext$major'
13472   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13473   shlibpath_var=LD_LIBRARY_PATH
13474   shlibpath_overrides_runpath=no
13475
13476   # Some binutils ld are patched to set DT_RUNPATH
13477   if test ${lt_cv_shlibpath_overrides_runpath+y}
13478 then :
13479   printf %s "(cached) " >&6
13480 else $as_nop
13481   lt_cv_shlibpath_overrides_runpath=no
13482     save_LDFLAGS=$LDFLAGS
13483     save_libdir=$libdir
13484     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13485          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13486     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h.  */
13488
13489 int
13490 main (void)
13491 {
13492
13493   ;
13494   return 0;
13495 }
13496 _ACEOF
13497 if ac_fn_c_try_link "$LINENO"
13498 then :
13499   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13500 then :
13501   lt_cv_shlibpath_overrides_runpath=yes
13502 fi
13503 fi
13504 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13505     conftest$ac_exeext conftest.$ac_ext
13506     LDFLAGS=$save_LDFLAGS
13507     libdir=$save_libdir
13508
13509 fi
13510
13511   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13512
13513   # This implies no fast_install, which is unacceptable.
13514   # Some rework will be needed to allow for fast_install
13515   # before this can be enabled.
13516   hardcode_into_libs=yes
13517
13518   # Add ABI-specific directories to the system library path.
13519   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13520
13521   # Ideally, we could use ldconfig to report *all* directores which are
13522   # searched for libraries, however this is still not possible.  Aside from not
13523   # being certain /sbin/ldconfig is available, command
13524   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13525   # even though it is searched at run-time.  Try to do the best guess by
13526   # appending ld.so.conf contents (and includes) to the search path.
13527   if test -f /etc/ld.so.conf; then
13528     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' ' '`
13529     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13530   fi
13531
13532   # We used to test for /lib/ld.so.1 and disable shared libraries on
13533   # powerpc, because MkLinux only supported shared libraries with the
13534   # GNU dynamic linker.  Since this was broken with cross compilers,
13535   # most powerpc-linux boxes support dynamic linking these days and
13536   # people can always --disable-shared, the test was removed, and we
13537   # assume the GNU/Linux dynamic linker is in use.
13538   dynamic_linker='GNU/Linux ld.so'
13539   ;;
13540
13541 netbsd*)
13542   version_type=sunos
13543   need_lib_prefix=no
13544   need_version=no
13545   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13546     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13547     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13548     dynamic_linker='NetBSD (a.out) ld.so'
13549   else
13550     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13551     soname_spec='$libname$release$shared_ext$major'
13552     dynamic_linker='NetBSD ld.elf_so'
13553   fi
13554   shlibpath_var=LD_LIBRARY_PATH
13555   shlibpath_overrides_runpath=yes
13556   hardcode_into_libs=yes
13557   ;;
13558
13559 newsos6)
13560   version_type=linux # correct to gnu/linux during the next big refactor
13561   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13562   shlibpath_var=LD_LIBRARY_PATH
13563   shlibpath_overrides_runpath=yes
13564   ;;
13565
13566 *nto* | *qnx*)
13567   version_type=qnx
13568   need_lib_prefix=no
13569   need_version=no
13570   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13571   soname_spec='$libname$release$shared_ext$major'
13572   shlibpath_var=LD_LIBRARY_PATH
13573   shlibpath_overrides_runpath=no
13574   hardcode_into_libs=yes
13575   dynamic_linker='ldqnx.so'
13576   ;;
13577
13578 openbsd* | bitrig*)
13579   version_type=sunos
13580   sys_lib_dlsearch_path_spec=/usr/lib
13581   need_lib_prefix=no
13582   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13583     need_version=no
13584   else
13585     need_version=yes
13586   fi
13587   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13588   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13589   shlibpath_var=LD_LIBRARY_PATH
13590   shlibpath_overrides_runpath=yes
13591   ;;
13592
13593 os2*)
13594   libname_spec='$name'
13595   version_type=windows
13596   shrext_cmds=.dll
13597   need_version=no
13598   need_lib_prefix=no
13599   # OS/2 can only load a DLL with a base name of 8 characters or less.
13600   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13601     v=$($ECHO $release$versuffix | tr -d .-);
13602     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13603     $ECHO $n$v`$shared_ext'
13604   library_names_spec='${libname}_dll.$libext'
13605   dynamic_linker='OS/2 ld.exe'
13606   shlibpath_var=BEGINLIBPATH
13607   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13608   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13609   postinstall_cmds='base_file=`basename \$file`~
13610     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13611     dldir=$destdir/`dirname \$dlpath`~
13612     test -d \$dldir || mkdir -p \$dldir~
13613     $install_prog $dir/$dlname \$dldir/$dlname~
13614     chmod a+x \$dldir/$dlname~
13615     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13616       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13617     fi'
13618   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13619     dlpath=$dir/\$dldll~
13620     $RM \$dlpath'
13621   ;;
13622
13623 osf3* | osf4* | osf5*)
13624   version_type=osf
13625   need_lib_prefix=no
13626   need_version=no
13627   soname_spec='$libname$release$shared_ext$major'
13628   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13629   shlibpath_var=LD_LIBRARY_PATH
13630   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13631   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13632   ;;
13633
13634 rdos*)
13635   dynamic_linker=no
13636   ;;
13637
13638 solaris*)
13639   version_type=linux # correct to gnu/linux during the next big refactor
13640   need_lib_prefix=no
13641   need_version=no
13642   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13643   soname_spec='$libname$release$shared_ext$major'
13644   shlibpath_var=LD_LIBRARY_PATH
13645   shlibpath_overrides_runpath=yes
13646   hardcode_into_libs=yes
13647   # ldd complains unless libraries are executable
13648   postinstall_cmds='chmod +x $lib'
13649   ;;
13650
13651 sunos4*)
13652   version_type=sunos
13653   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13654   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13655   shlibpath_var=LD_LIBRARY_PATH
13656   shlibpath_overrides_runpath=yes
13657   if test yes = "$with_gnu_ld"; then
13658     need_lib_prefix=no
13659   fi
13660   need_version=yes
13661   ;;
13662
13663 sysv4 | sysv4.3*)
13664   version_type=linux # correct to gnu/linux during the next big refactor
13665   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13666   soname_spec='$libname$release$shared_ext$major'
13667   shlibpath_var=LD_LIBRARY_PATH
13668   case $host_vendor in
13669     sni)
13670       shlibpath_overrides_runpath=no
13671       need_lib_prefix=no
13672       runpath_var=LD_RUN_PATH
13673       ;;
13674     siemens)
13675       need_lib_prefix=no
13676       ;;
13677     motorola)
13678       need_lib_prefix=no
13679       need_version=no
13680       shlibpath_overrides_runpath=no
13681       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13682       ;;
13683   esac
13684   ;;
13685
13686 sysv4*MP*)
13687   if test -d /usr/nec; then
13688     version_type=linux # correct to gnu/linux during the next big refactor
13689     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13690     soname_spec='$libname$shared_ext.$major'
13691     shlibpath_var=LD_LIBRARY_PATH
13692   fi
13693   ;;
13694
13695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13696   version_type=sco
13697   need_lib_prefix=no
13698   need_version=no
13699   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13700   soname_spec='$libname$release$shared_ext$major'
13701   shlibpath_var=LD_LIBRARY_PATH
13702   shlibpath_overrides_runpath=yes
13703   hardcode_into_libs=yes
13704   if test yes = "$with_gnu_ld"; then
13705     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13706   else
13707     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13708     case $host_os in
13709       sco3.2v5*)
13710         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13711         ;;
13712     esac
13713   fi
13714   sys_lib_dlsearch_path_spec='/usr/lib'
13715   ;;
13716
13717 tpf*)
13718   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13719   version_type=linux # correct to gnu/linux during the next big refactor
13720   need_lib_prefix=no
13721   need_version=no
13722   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13723   shlibpath_var=LD_LIBRARY_PATH
13724   shlibpath_overrides_runpath=no
13725   hardcode_into_libs=yes
13726   ;;
13727
13728 uts4*)
13729   version_type=linux # correct to gnu/linux during the next big refactor
13730   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13731   soname_spec='$libname$release$shared_ext$major'
13732   shlibpath_var=LD_LIBRARY_PATH
13733   ;;
13734
13735 *)
13736   dynamic_linker=no
13737   ;;
13738 esac
13739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13740 printf "%s\n" "$dynamic_linker" >&6; }
13741 test no = "$dynamic_linker" && can_build_shared=no
13742
13743 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13744 if test yes = "$GCC"; then
13745   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13746 fi
13747
13748 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13749   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13750 fi
13751
13752 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13753   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13754 fi
13755
13756 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13757 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13758
13759 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13760 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13761
13762 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13763 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13862 printf %s "checking how to hardcode library paths into programs... " >&6; }
13863 hardcode_action=
13864 if test -n "$hardcode_libdir_flag_spec" ||
13865    test -n "$runpath_var" ||
13866    test yes = "$hardcode_automatic"; then
13867
13868   # We can hardcode non-existent directories.
13869   if test no != "$hardcode_direct" &&
13870      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13871      # have to relink, otherwise we might link with an installed library
13872      # when we should be linking with a yet-to-be-installed one
13873      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13874      test no != "$hardcode_minus_L"; then
13875     # Linking always hardcodes the temporary library directory.
13876     hardcode_action=relink
13877   else
13878     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13879     hardcode_action=immediate
13880   fi
13881 else
13882   # We cannot hardcode anything, or else we can only hardcode existing
13883   # directories.
13884   hardcode_action=unsupported
13885 fi
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13887 printf "%s\n" "$hardcode_action" >&6; }
13888
13889 if test relink = "$hardcode_action" ||
13890    test yes = "$inherit_rpath"; then
13891   # Fast installation is not supported
13892   enable_fast_install=no
13893 elif test yes = "$shlibpath_overrides_runpath" ||
13894      test no = "$enable_shared"; then
13895   # Fast installation is not necessary
13896   enable_fast_install=needless
13897 fi
13898
13899
13900
13901
13902
13903
13904   if test yes != "$enable_dlopen"; then
13905   enable_dlopen=unknown
13906   enable_dlopen_self=unknown
13907   enable_dlopen_self_static=unknown
13908 else
13909   lt_cv_dlopen=no
13910   lt_cv_dlopen_libs=
13911
13912   case $host_os in
13913   beos*)
13914     lt_cv_dlopen=load_add_on
13915     lt_cv_dlopen_libs=
13916     lt_cv_dlopen_self=yes
13917     ;;
13918
13919   mingw* | pw32* | cegcc*)
13920     lt_cv_dlopen=LoadLibrary
13921     lt_cv_dlopen_libs=
13922     ;;
13923
13924   cygwin*)
13925     lt_cv_dlopen=dlopen
13926     lt_cv_dlopen_libs=
13927     ;;
13928
13929   darwin*)
13930     # if libdl is installed we need to link against it
13931     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13932 printf %s "checking for dlopen in -ldl... " >&6; }
13933 if test ${ac_cv_lib_dl_dlopen+y}
13934 then :
13935   printf %s "(cached) " >&6
13936 else $as_nop
13937   ac_check_lib_save_LIBS=$LIBS
13938 LIBS="-ldl  $LIBS"
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h.  */
13941
13942 /* Override any GCC internal prototype to avoid an error.
13943    Use char because int might match the return type of a GCC
13944    builtin and then its argument prototype would still apply.  */
13945 char dlopen ();
13946 int
13947 main (void)
13948 {
13949 return dlopen ();
13950   ;
13951   return 0;
13952 }
13953 _ACEOF
13954 if ac_fn_c_try_link "$LINENO"
13955 then :
13956   ac_cv_lib_dl_dlopen=yes
13957 else $as_nop
13958   ac_cv_lib_dl_dlopen=no
13959 fi
13960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13961     conftest$ac_exeext conftest.$ac_ext
13962 LIBS=$ac_check_lib_save_LIBS
13963 fi
13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13965 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13966 if test "x$ac_cv_lib_dl_dlopen" = xyes
13967 then :
13968   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13969 else $as_nop
13970
13971     lt_cv_dlopen=dyld
13972     lt_cv_dlopen_libs=
13973     lt_cv_dlopen_self=yes
13974
13975 fi
13976
13977     ;;
13978
13979   tpf*)
13980     # Don't try to run any link tests for TPF.  We know it's impossible
13981     # because TPF is a cross-compiler, and we know how we open DSOs.
13982     lt_cv_dlopen=dlopen
13983     lt_cv_dlopen_libs=
13984     lt_cv_dlopen_self=no
13985     ;;
13986
13987   *)
13988     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13989 if test "x$ac_cv_func_shl_load" = xyes
13990 then :
13991   lt_cv_dlopen=shl_load
13992 else $as_nop
13993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13994 printf %s "checking for shl_load in -ldld... " >&6; }
13995 if test ${ac_cv_lib_dld_shl_load+y}
13996 then :
13997   printf %s "(cached) " >&6
13998 else $as_nop
13999   ac_check_lib_save_LIBS=$LIBS
14000 LIBS="-ldld  $LIBS"
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h.  */
14003
14004 /* Override any GCC internal prototype to avoid an error.
14005    Use char because int might match the return type of a GCC
14006    builtin and then its argument prototype would still apply.  */
14007 char shl_load ();
14008 int
14009 main (void)
14010 {
14011 return shl_load ();
14012   ;
14013   return 0;
14014 }
14015 _ACEOF
14016 if ac_fn_c_try_link "$LINENO"
14017 then :
14018   ac_cv_lib_dld_shl_load=yes
14019 else $as_nop
14020   ac_cv_lib_dld_shl_load=no
14021 fi
14022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14023     conftest$ac_exeext conftest.$ac_ext
14024 LIBS=$ac_check_lib_save_LIBS
14025 fi
14026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14027 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14028 if test "x$ac_cv_lib_dld_shl_load" = xyes
14029 then :
14030   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14031 else $as_nop
14032   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14033 if test "x$ac_cv_func_dlopen" = xyes
14034 then :
14035   lt_cv_dlopen=dlopen
14036 else $as_nop
14037   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14038 printf %s "checking for dlopen in -ldl... " >&6; }
14039 if test ${ac_cv_lib_dl_dlopen+y}
14040 then :
14041   printf %s "(cached) " >&6
14042 else $as_nop
14043   ac_check_lib_save_LIBS=$LIBS
14044 LIBS="-ldl  $LIBS"
14045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h.  */
14047
14048 /* Override any GCC internal prototype to avoid an error.
14049    Use char because int might match the return type of a GCC
14050    builtin and then its argument prototype would still apply.  */
14051 char dlopen ();
14052 int
14053 main (void)
14054 {
14055 return dlopen ();
14056   ;
14057   return 0;
14058 }
14059 _ACEOF
14060 if ac_fn_c_try_link "$LINENO"
14061 then :
14062   ac_cv_lib_dl_dlopen=yes
14063 else $as_nop
14064   ac_cv_lib_dl_dlopen=no
14065 fi
14066 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14067     conftest$ac_exeext conftest.$ac_ext
14068 LIBS=$ac_check_lib_save_LIBS
14069 fi
14070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14071 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14072 if test "x$ac_cv_lib_dl_dlopen" = xyes
14073 then :
14074   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14075 else $as_nop
14076   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14077 printf %s "checking for dlopen in -lsvld... " >&6; }
14078 if test ${ac_cv_lib_svld_dlopen+y}
14079 then :
14080   printf %s "(cached) " >&6
14081 else $as_nop
14082   ac_check_lib_save_LIBS=$LIBS
14083 LIBS="-lsvld  $LIBS"
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h.  */
14086
14087 /* Override any GCC internal prototype to avoid an error.
14088    Use char because int might match the return type of a GCC
14089    builtin and then its argument prototype would still apply.  */
14090 char dlopen ();
14091 int
14092 main (void)
14093 {
14094 return dlopen ();
14095   ;
14096   return 0;
14097 }
14098 _ACEOF
14099 if ac_fn_c_try_link "$LINENO"
14100 then :
14101   ac_cv_lib_svld_dlopen=yes
14102 else $as_nop
14103   ac_cv_lib_svld_dlopen=no
14104 fi
14105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14106     conftest$ac_exeext conftest.$ac_ext
14107 LIBS=$ac_check_lib_save_LIBS
14108 fi
14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14110 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14111 if test "x$ac_cv_lib_svld_dlopen" = xyes
14112 then :
14113   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14114 else $as_nop
14115   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14116 printf %s "checking for dld_link in -ldld... " >&6; }
14117 if test ${ac_cv_lib_dld_dld_link+y}
14118 then :
14119   printf %s "(cached) " >&6
14120 else $as_nop
14121   ac_check_lib_save_LIBS=$LIBS
14122 LIBS="-ldld  $LIBS"
14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124 /* end confdefs.h.  */
14125
14126 /* Override any GCC internal prototype to avoid an error.
14127    Use char because int might match the return type of a GCC
14128    builtin and then its argument prototype would still apply.  */
14129 char dld_link ();
14130 int
14131 main (void)
14132 {
14133 return dld_link ();
14134   ;
14135   return 0;
14136 }
14137 _ACEOF
14138 if ac_fn_c_try_link "$LINENO"
14139 then :
14140   ac_cv_lib_dld_dld_link=yes
14141 else $as_nop
14142   ac_cv_lib_dld_dld_link=no
14143 fi
14144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14145     conftest$ac_exeext conftest.$ac_ext
14146 LIBS=$ac_check_lib_save_LIBS
14147 fi
14148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14149 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14150 if test "x$ac_cv_lib_dld_dld_link" = xyes
14151 then :
14152   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14153 fi
14154
14155
14156 fi
14157
14158
14159 fi
14160
14161
14162 fi
14163
14164
14165 fi
14166
14167
14168 fi
14169
14170     ;;
14171   esac
14172
14173   if test no = "$lt_cv_dlopen"; then
14174     enable_dlopen=no
14175   else
14176     enable_dlopen=yes
14177   fi
14178
14179   case $lt_cv_dlopen in
14180   dlopen)
14181     save_CPPFLAGS=$CPPFLAGS
14182     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14183
14184     save_LDFLAGS=$LDFLAGS
14185     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14186
14187     save_LIBS=$LIBS
14188     LIBS="$lt_cv_dlopen_libs $LIBS"
14189
14190     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14191 printf %s "checking whether a program can dlopen itself... " >&6; }
14192 if test ${lt_cv_dlopen_self+y}
14193 then :
14194   printf %s "(cached) " >&6
14195 else $as_nop
14196           if test yes = "$cross_compiling"; then :
14197   lt_cv_dlopen_self=cross
14198 else
14199   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14200   lt_status=$lt_dlunknown
14201   cat > conftest.$ac_ext <<_LT_EOF
14202 #line $LINENO "configure"
14203 #include "confdefs.h"
14204
14205 #if HAVE_DLFCN_H
14206 #include <dlfcn.h>
14207 #endif
14208
14209 #include <stdio.h>
14210
14211 #ifdef RTLD_GLOBAL
14212 #  define LT_DLGLOBAL           RTLD_GLOBAL
14213 #else
14214 #  ifdef DL_GLOBAL
14215 #    define LT_DLGLOBAL         DL_GLOBAL
14216 #  else
14217 #    define LT_DLGLOBAL         0
14218 #  endif
14219 #endif
14220
14221 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14222    find out it does not work in some platform. */
14223 #ifndef LT_DLLAZY_OR_NOW
14224 #  ifdef RTLD_LAZY
14225 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14226 #  else
14227 #    ifdef DL_LAZY
14228 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14229 #    else
14230 #      ifdef RTLD_NOW
14231 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14232 #      else
14233 #        ifdef DL_NOW
14234 #          define LT_DLLAZY_OR_NOW      DL_NOW
14235 #        else
14236 #          define LT_DLLAZY_OR_NOW      0
14237 #        endif
14238 #      endif
14239 #    endif
14240 #  endif
14241 #endif
14242
14243 /* When -fvisibility=hidden is used, assume the code has been annotated
14244    correspondingly for the symbols needed.  */
14245 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14246 int fnord () __attribute__((visibility("default")));
14247 #endif
14248
14249 int fnord () { return 42; }
14250 int main ()
14251 {
14252   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14253   int status = $lt_dlunknown;
14254
14255   if (self)
14256     {
14257       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14258       else
14259         {
14260           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14261           else puts (dlerror ());
14262         }
14263       /* dlclose (self); */
14264     }
14265   else
14266     puts (dlerror ());
14267
14268   return status;
14269 }
14270 _LT_EOF
14271   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14272   (eval $ac_link) 2>&5
14273   ac_status=$?
14274   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14275   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14276     (./conftest; exit; ) >&5 2>/dev/null
14277     lt_status=$?
14278     case x$lt_status in
14279       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14280       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14281       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14282     esac
14283   else :
14284     # compilation failed
14285     lt_cv_dlopen_self=no
14286   fi
14287 fi
14288 rm -fr conftest*
14289
14290
14291 fi
14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14293 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14294
14295     if test yes = "$lt_cv_dlopen_self"; then
14296       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14297       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14298 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14299 if test ${lt_cv_dlopen_self_static+y}
14300 then :
14301   printf %s "(cached) " >&6
14302 else $as_nop
14303           if test yes = "$cross_compiling"; then :
14304   lt_cv_dlopen_self_static=cross
14305 else
14306   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14307   lt_status=$lt_dlunknown
14308   cat > conftest.$ac_ext <<_LT_EOF
14309 #line $LINENO "configure"
14310 #include "confdefs.h"
14311
14312 #if HAVE_DLFCN_H
14313 #include <dlfcn.h>
14314 #endif
14315
14316 #include <stdio.h>
14317
14318 #ifdef RTLD_GLOBAL
14319 #  define LT_DLGLOBAL           RTLD_GLOBAL
14320 #else
14321 #  ifdef DL_GLOBAL
14322 #    define LT_DLGLOBAL         DL_GLOBAL
14323 #  else
14324 #    define LT_DLGLOBAL         0
14325 #  endif
14326 #endif
14327
14328 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14329    find out it does not work in some platform. */
14330 #ifndef LT_DLLAZY_OR_NOW
14331 #  ifdef RTLD_LAZY
14332 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14333 #  else
14334 #    ifdef DL_LAZY
14335 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14336 #    else
14337 #      ifdef RTLD_NOW
14338 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14339 #      else
14340 #        ifdef DL_NOW
14341 #          define LT_DLLAZY_OR_NOW      DL_NOW
14342 #        else
14343 #          define LT_DLLAZY_OR_NOW      0
14344 #        endif
14345 #      endif
14346 #    endif
14347 #  endif
14348 #endif
14349
14350 /* When -fvisibility=hidden is used, assume the code has been annotated
14351    correspondingly for the symbols needed.  */
14352 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14353 int fnord () __attribute__((visibility("default")));
14354 #endif
14355
14356 int fnord () { return 42; }
14357 int main ()
14358 {
14359   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14360   int status = $lt_dlunknown;
14361
14362   if (self)
14363     {
14364       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14365       else
14366         {
14367           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14368           else puts (dlerror ());
14369         }
14370       /* dlclose (self); */
14371     }
14372   else
14373     puts (dlerror ());
14374
14375   return status;
14376 }
14377 _LT_EOF
14378   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14379   (eval $ac_link) 2>&5
14380   ac_status=$?
14381   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14382   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14383     (./conftest; exit; ) >&5 2>/dev/null
14384     lt_status=$?
14385     case x$lt_status in
14386       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14387       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14388       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14389     esac
14390   else :
14391     # compilation failed
14392     lt_cv_dlopen_self_static=no
14393   fi
14394 fi
14395 rm -fr conftest*
14396
14397
14398 fi
14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14400 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14401     fi
14402
14403     CPPFLAGS=$save_CPPFLAGS
14404     LDFLAGS=$save_LDFLAGS
14405     LIBS=$save_LIBS
14406     ;;
14407   esac
14408
14409   case $lt_cv_dlopen_self in
14410   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14411   *) enable_dlopen_self=unknown ;;
14412   esac
14413
14414   case $lt_cv_dlopen_self_static in
14415   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14416   *) enable_dlopen_self_static=unknown ;;
14417   esac
14418 fi
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436 striplib=
14437 old_striplib=
14438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14439 printf %s "checking whether stripping libraries is possible... " >&6; }
14440 if test -z "$STRIP"; then
14441   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442 printf "%s\n" "no" >&6; }
14443 else
14444   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14445     old_striplib="$STRIP --strip-debug"
14446     striplib="$STRIP --strip-unneeded"
14447     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14448 printf "%s\n" "yes" >&6; }
14449   else
14450     case $host_os in
14451     darwin*)
14452       # FIXME - insert some real tests, host_os isn't really good enough
14453       striplib="$STRIP -x"
14454       old_striplib="$STRIP -S"
14455       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14456 printf "%s\n" "yes" >&6; }
14457       ;;
14458     freebsd*)
14459       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14460         old_striplib="$STRIP --strip-debug"
14461         striplib="$STRIP --strip-unneeded"
14462         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14463 printf "%s\n" "yes" >&6; }
14464       else
14465         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14466 printf "%s\n" "no" >&6; }
14467       fi
14468       ;;
14469     *)
14470       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14471 printf "%s\n" "no" >&6; }
14472       ;;
14473     esac
14474   fi
14475 fi
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488   # Report what library types will actually be built
14489   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14490 printf %s "checking if libtool supports shared libraries... " >&6; }
14491   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14492 printf "%s\n" "$can_build_shared" >&6; }
14493
14494   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14495 printf %s "checking whether to build shared libraries... " >&6; }
14496   test no = "$can_build_shared" && enable_shared=no
14497
14498   # On AIX, shared libraries and static libraries use the same namespace, and
14499   # are all built from PIC.
14500   case $host_os in
14501   aix3*)
14502     test yes = "$enable_shared" && enable_static=no
14503     if test -n "$RANLIB"; then
14504       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14505       postinstall_cmds='$RANLIB $lib'
14506     fi
14507     ;;
14508
14509   aix[4-9]*)
14510     if test ia64 != "$host_cpu"; then
14511       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14512       yes,aix,yes) ;;                   # shared object as lib.so file only
14513       yes,svr4,*) ;;                    # shared object as lib.so archive member only
14514       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
14515       esac
14516     fi
14517     ;;
14518   esac
14519   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14520 printf "%s\n" "$enable_shared" >&6; }
14521
14522   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14523 printf %s "checking whether to build static libraries... " >&6; }
14524   # Make sure either enable_shared or enable_static is yes.
14525   test yes = "$enable_shared" || enable_static=yes
14526   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14527 printf "%s\n" "$enable_static" >&6; }
14528
14529
14530
14531
14532 fi
14533 ac_ext=c
14534 ac_cpp='$CPP $CPPFLAGS'
14535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14538
14539 CC=$lt_save_CC
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555         ac_config_commands="$ac_config_commands libtool"
14556
14557
14558
14559
14560 # Only expand once:
14561
14562
14563
14564
14565 LIBT_CURRENT=13
14566 LIBT_REVISION=0
14567
14568
14569 LIBT_AGE=12
14570
14571 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
14572
14573
14574 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
14575
14576
14577 PKGCONFIG_REQUIRES=
14578 PKGCONFIG_REQUIRES_PRIVATELY=
14579
14580
14581 os_win32=no
14582 os_darwin=no
14583 case "${host_os}" in
14584         cygwin*|mingw*)
14585                 os_win32=yes
14586                 ;;
14587         darwin*)
14588                 os_darwin=yes
14589                 ;;
14590 esac
14591  if test "$os_win32" = "yes"; then
14592   OS_WIN32_TRUE=
14593   OS_WIN32_FALSE='#'
14594 else
14595   OS_WIN32_TRUE='#'
14596   OS_WIN32_FALSE=
14597 fi
14598
14599  if test "$os_darwin" = "yes"; then
14600   OS_DARWIN_TRUE=
14601   OS_DARWIN_FALSE='#'
14602 else
14603   OS_DARWIN_TRUE='#'
14604   OS_DARWIN_FALSE=
14605 fi
14606
14607
14608 GETTEXT_PACKAGE=$PACKAGE
14609
14610
14611 printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
14612
14613
14614
14615
14616   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14617 printf %s "checking whether NLS is requested... " >&6; }
14618     # Check whether --enable-nls was given.
14619 if test ${enable_nls+y}
14620 then :
14621   enableval=$enable_nls; USE_NLS=$enableval
14622 else $as_nop
14623   USE_NLS=yes
14624 fi
14625
14626   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14627 printf "%s\n" "$USE_NLS" >&6; }
14628
14629
14630
14631
14632       GETTEXT_MACRO_VERSION=0.19
14633
14634
14635
14636
14637 # Prepare PATH_SEPARATOR.
14638 # The user is always right.
14639 if test "${PATH_SEPARATOR+set}" != set; then
14640   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14641   # contains only /bin. Note that ksh looks also at the FPATH variable,
14642   # so we have to set that as well for the test.
14643   PATH_SEPARATOR=:
14644   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14645     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14646            || PATH_SEPARATOR=';'
14647        }
14648 fi
14649
14650 # Find out how to test for executable files. Don't use a zero-byte file,
14651 # as systems may use methods other than mode bits to determine executability.
14652 cat >conf$$.file <<_ASEOF
14653 #! /bin/sh
14654 exit 0
14655 _ASEOF
14656 chmod +x conf$$.file
14657 if test -x conf$$.file >/dev/null 2>&1; then
14658   ac_executable_p="test -x"
14659 else
14660   ac_executable_p="test -f"
14661 fi
14662 rm -f conf$$.file
14663
14664 # Extract the first word of "msgfmt", so it can be a program name with args.
14665 set dummy msgfmt; ac_word=$2
14666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14667 printf %s "checking for $ac_word... " >&6; }
14668 if test ${ac_cv_path_MSGFMT+y}
14669 then :
14670   printf %s "(cached) " >&6
14671 else $as_nop
14672   case "$MSGFMT" in
14673   [\\/]* | ?:[\\/]*)
14674     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14675     ;;
14676   *)
14677     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14678     for ac_dir in $PATH; do
14679       IFS="$ac_save_IFS"
14680       test -z "$ac_dir" && ac_dir=.
14681       for ac_exec_ext in '' $ac_executable_extensions; do
14682         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14683           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14684           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14685      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14686             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14687             break 2
14688           fi
14689         fi
14690       done
14691     done
14692     IFS="$ac_save_IFS"
14693   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14694     ;;
14695 esac
14696 fi
14697 MSGFMT="$ac_cv_path_MSGFMT"
14698 if test "$MSGFMT" != ":"; then
14699   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14700 printf "%s\n" "$MSGFMT" >&6; }
14701 else
14702   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14703 printf "%s\n" "no" >&6; }
14704 fi
14705
14706   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14707 set dummy gmsgfmt; ac_word=$2
14708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14709 printf %s "checking for $ac_word... " >&6; }
14710 if test ${ac_cv_path_GMSGFMT+y}
14711 then :
14712   printf %s "(cached) " >&6
14713 else $as_nop
14714   case $GMSGFMT in
14715   [\\/]* | ?:[\\/]*)
14716   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14717   ;;
14718   *)
14719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14720 for as_dir in $PATH
14721 do
14722   IFS=$as_save_IFS
14723   case $as_dir in #(((
14724     '') as_dir=./ ;;
14725     */) ;;
14726     *) as_dir=$as_dir/ ;;
14727   esac
14728     for ac_exec_ext in '' $ac_executable_extensions; do
14729   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14730     ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
14731     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14732     break 2
14733   fi
14734 done
14735   done
14736 IFS=$as_save_IFS
14737
14738   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14739   ;;
14740 esac
14741 fi
14742 GMSGFMT=$ac_cv_path_GMSGFMT
14743 if test -n "$GMSGFMT"; then
14744   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14745 printf "%s\n" "$GMSGFMT" >&6; }
14746 else
14747   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 printf "%s\n" "no" >&6; }
14749 fi
14750
14751
14752
14753     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14754     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14755     *) MSGFMT_015=$MSGFMT ;;
14756   esac
14757
14758   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14759     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14760     *) GMSGFMT_015=$GMSGFMT ;;
14761   esac
14762
14763
14764
14765 # Prepare PATH_SEPARATOR.
14766 # The user is always right.
14767 if test "${PATH_SEPARATOR+set}" != set; then
14768   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14769   # contains only /bin. Note that ksh looks also at the FPATH variable,
14770   # so we have to set that as well for the test.
14771   PATH_SEPARATOR=:
14772   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14773     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14774            || PATH_SEPARATOR=';'
14775        }
14776 fi
14777
14778 # Find out how to test for executable files. Don't use a zero-byte file,
14779 # as systems may use methods other than mode bits to determine executability.
14780 cat >conf$$.file <<_ASEOF
14781 #! /bin/sh
14782 exit 0
14783 _ASEOF
14784 chmod +x conf$$.file
14785 if test -x conf$$.file >/dev/null 2>&1; then
14786   ac_executable_p="test -x"
14787 else
14788   ac_executable_p="test -f"
14789 fi
14790 rm -f conf$$.file
14791
14792 # Extract the first word of "xgettext", so it can be a program name with args.
14793 set dummy xgettext; ac_word=$2
14794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14795 printf %s "checking for $ac_word... " >&6; }
14796 if test ${ac_cv_path_XGETTEXT+y}
14797 then :
14798   printf %s "(cached) " >&6
14799 else $as_nop
14800   case "$XGETTEXT" in
14801   [\\/]* | ?:[\\/]*)
14802     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14803     ;;
14804   *)
14805     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14806     for ac_dir in $PATH; do
14807       IFS="$ac_save_IFS"
14808       test -z "$ac_dir" && ac_dir=.
14809       for ac_exec_ext in '' $ac_executable_extensions; do
14810         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14811           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14812           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14813      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14814             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14815             break 2
14816           fi
14817         fi
14818       done
14819     done
14820     IFS="$ac_save_IFS"
14821   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14822     ;;
14823 esac
14824 fi
14825 XGETTEXT="$ac_cv_path_XGETTEXT"
14826 if test "$XGETTEXT" != ":"; then
14827   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14828 printf "%s\n" "$XGETTEXT" >&6; }
14829 else
14830   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14831 printf "%s\n" "no" >&6; }
14832 fi
14833
14834     rm -f messages.po
14835
14836     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14837     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14838     *) XGETTEXT_015=$XGETTEXT ;;
14839   esac
14840
14841
14842
14843 # Prepare PATH_SEPARATOR.
14844 # The user is always right.
14845 if test "${PATH_SEPARATOR+set}" != set; then
14846   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14847   # contains only /bin. Note that ksh looks also at the FPATH variable,
14848   # so we have to set that as well for the test.
14849   PATH_SEPARATOR=:
14850   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14851     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14852            || PATH_SEPARATOR=';'
14853        }
14854 fi
14855
14856 # Find out how to test for executable files. Don't use a zero-byte file,
14857 # as systems may use methods other than mode bits to determine executability.
14858 cat >conf$$.file <<_ASEOF
14859 #! /bin/sh
14860 exit 0
14861 _ASEOF
14862 chmod +x conf$$.file
14863 if test -x conf$$.file >/dev/null 2>&1; then
14864   ac_executable_p="test -x"
14865 else
14866   ac_executable_p="test -f"
14867 fi
14868 rm -f conf$$.file
14869
14870 # Extract the first word of "msgmerge", so it can be a program name with args.
14871 set dummy msgmerge; ac_word=$2
14872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14873 printf %s "checking for $ac_word... " >&6; }
14874 if test ${ac_cv_path_MSGMERGE+y}
14875 then :
14876   printf %s "(cached) " >&6
14877 else $as_nop
14878   case "$MSGMERGE" in
14879   [\\/]* | ?:[\\/]*)
14880     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14881     ;;
14882   *)
14883     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14884     for ac_dir in $PATH; do
14885       IFS="$ac_save_IFS"
14886       test -z "$ac_dir" && ac_dir=.
14887       for ac_exec_ext in '' $ac_executable_extensions; do
14888         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14889           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14890           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14891             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14892             break 2
14893           fi
14894         fi
14895       done
14896     done
14897     IFS="$ac_save_IFS"
14898   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14899     ;;
14900 esac
14901 fi
14902 MSGMERGE="$ac_cv_path_MSGMERGE"
14903 if test "$MSGMERGE" != ":"; then
14904   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14905 printf "%s\n" "$MSGMERGE" >&6; }
14906 else
14907   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14908 printf "%s\n" "no" >&6; }
14909 fi
14910
14911
14912         test -n "$localedir" || localedir='${datadir}/locale'
14913
14914
14915     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14916
14917
14918   ac_config_commands="$ac_config_commands po-directories"
14919
14920
14921
14922       if test "X$prefix" = "XNONE"; then
14923     acl_final_prefix="$ac_default_prefix"
14924   else
14925     acl_final_prefix="$prefix"
14926   fi
14927   if test "X$exec_prefix" = "XNONE"; then
14928     acl_final_exec_prefix='${prefix}'
14929   else
14930     acl_final_exec_prefix="$exec_prefix"
14931   fi
14932   acl_save_prefix="$prefix"
14933   prefix="$acl_final_prefix"
14934   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14935   prefix="$acl_save_prefix"
14936
14937
14938
14939 # Check whether --with-gnu-ld was given.
14940 if test ${with_gnu_ld+y}
14941 then :
14942   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14943 else $as_nop
14944   with_gnu_ld=no
14945 fi
14946
14947 # Prepare PATH_SEPARATOR.
14948 # The user is always right.
14949 if test "${PATH_SEPARATOR+set}" != set; then
14950   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14951   # contains only /bin. Note that ksh looks also at the FPATH variable,
14952   # so we have to set that as well for the test.
14953   PATH_SEPARATOR=:
14954   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14955     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14956            || PATH_SEPARATOR=';'
14957        }
14958 fi
14959
14960 ac_prog=ld
14961 if test "$GCC" = yes; then
14962   # Check if gcc -print-prog-name=ld gives a path.
14963   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14964 printf %s "checking for ld used by $CC... " >&6; }
14965   case $host in
14966   *-*-mingw*)
14967     # gcc leaves a trailing carriage return which upsets mingw
14968     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14969   *)
14970     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14971   esac
14972   case $ac_prog in
14973     # Accept absolute paths.
14974     [\\/]* | ?:[\\/]*)
14975       re_direlt='/[^/][^/]*/\.\./'
14976       # Canonicalize the pathname of ld
14977       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
14978       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
14979         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14980       done
14981       test -z "$LD" && LD="$ac_prog"
14982       ;;
14983   "")
14984     # If it fails, then pretend we aren't using GCC.
14985     ac_prog=ld
14986     ;;
14987   *)
14988     # If it is relative, then search for the first ld in PATH.
14989     with_gnu_ld=unknown
14990     ;;
14991   esac
14992 elif test "$with_gnu_ld" = yes; then
14993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14994 printf %s "checking for GNU ld... " >&6; }
14995 else
14996   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14997 printf %s "checking for non-GNU ld... " >&6; }
14998 fi
14999 if test ${acl_cv_path_LD+y}
15000 then :
15001   printf %s "(cached) " >&6
15002 else $as_nop
15003   if test -z "$LD"; then
15004   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15005   for ac_dir in $PATH; do
15006     IFS="$acl_save_ifs"
15007     test -z "$ac_dir" && ac_dir=.
15008     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15009       acl_cv_path_LD="$ac_dir/$ac_prog"
15010       # Check to see if the program is GNU ld.  I'd rather use --version,
15011       # but apparently some variants of GNU ld only accept -v.
15012       # Break only if it was the GNU/non-GNU ld that we prefer.
15013       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
15014       *GNU* | *'with BFD'*)
15015         test "$with_gnu_ld" != no && break
15016         ;;
15017       *)
15018         test "$with_gnu_ld" != yes && break
15019         ;;
15020       esac
15021     fi
15022   done
15023   IFS="$acl_save_ifs"
15024 else
15025   acl_cv_path_LD="$LD" # Let the user override the test with a path.
15026 fi
15027 fi
15028
15029 LD="$acl_cv_path_LD"
15030 if test -n "$LD"; then
15031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15032 printf "%s\n" "$LD" >&6; }
15033 else
15034   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15035 printf "%s\n" "no" >&6; }
15036 fi
15037 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15039 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15040 if test ${acl_cv_prog_gnu_ld+y}
15041 then :
15042   printf %s "(cached) " >&6
15043 else $as_nop
15044   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15045 case `$LD -v 2>&1 </dev/null` in
15046 *GNU* | *'with BFD'*)
15047   acl_cv_prog_gnu_ld=yes
15048   ;;
15049 *)
15050   acl_cv_prog_gnu_ld=no
15051   ;;
15052 esac
15053 fi
15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15055 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
15056 with_gnu_ld=$acl_cv_prog_gnu_ld
15057
15058
15059
15060
15061
15062                                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15063 printf %s "checking for shared library run path origin... " >&6; }
15064 if test ${acl_cv_rpath+y}
15065 then :
15066   printf %s "(cached) " >&6
15067 else $as_nop
15068
15069     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15070     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15071     . ./conftest.sh
15072     rm -f ./conftest.sh
15073     acl_cv_rpath=done
15074
15075 fi
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15077 printf "%s\n" "$acl_cv_rpath" >&6; }
15078   wl="$acl_cv_wl"
15079   acl_libext="$acl_cv_libext"
15080   acl_shlibext="$acl_cv_shlibext"
15081   acl_libname_spec="$acl_cv_libname_spec"
15082   acl_library_names_spec="$acl_cv_library_names_spec"
15083   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15084   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15085   acl_hardcode_direct="$acl_cv_hardcode_direct"
15086   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15087     # Check whether --enable-rpath was given.
15088 if test ${enable_rpath+y}
15089 then :
15090   enableval=$enable_rpath; :
15091 else $as_nop
15092   enable_rpath=yes
15093 fi
15094
15095
15096 ac_ext=c
15097 ac_cpp='$CPP $CPPFLAGS'
15098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15102 printf %s "checking how to run the C preprocessor... " >&6; }
15103 # On Suns, sometimes $CPP names a directory.
15104 if test -n "$CPP" && test -d "$CPP"; then
15105   CPP=
15106 fi
15107 if test -z "$CPP"; then
15108   if test ${ac_cv_prog_CPP+y}
15109 then :
15110   printf %s "(cached) " >&6
15111 else $as_nop
15112       # Double quotes because $CC needs to be expanded
15113     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
15114     do
15115       ac_preproc_ok=false
15116 for ac_c_preproc_warn_flag in '' yes
15117 do
15118   # Use a header file that comes with gcc, so configuring glibc
15119   # with a fresh cross-compiler works.
15120   # On the NeXT, cc -E runs the code through the compiler's parser,
15121   # not just through cpp. "Syntax error" is here to catch this case.
15122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h.  */
15124 #include <limits.h>
15125                      Syntax error
15126 _ACEOF
15127 if ac_fn_c_try_cpp "$LINENO"
15128 then :
15129
15130 else $as_nop
15131   # Broken: fails on valid input.
15132 continue
15133 fi
15134 rm -f conftest.err conftest.i conftest.$ac_ext
15135
15136   # OK, works on sane cases.  Now check whether nonexistent headers
15137   # can be detected and how.
15138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h.  */
15140 #include <ac_nonexistent.h>
15141 _ACEOF
15142 if ac_fn_c_try_cpp "$LINENO"
15143 then :
15144   # Broken: success on invalid input.
15145 continue
15146 else $as_nop
15147   # Passes both tests.
15148 ac_preproc_ok=:
15149 break
15150 fi
15151 rm -f conftest.err conftest.i conftest.$ac_ext
15152
15153 done
15154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15155 rm -f conftest.i conftest.err conftest.$ac_ext
15156 if $ac_preproc_ok
15157 then :
15158   break
15159 fi
15160
15161     done
15162     ac_cv_prog_CPP=$CPP
15163
15164 fi
15165   CPP=$ac_cv_prog_CPP
15166 else
15167   ac_cv_prog_CPP=$CPP
15168 fi
15169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
15170 printf "%s\n" "$CPP" >&6; }
15171 ac_preproc_ok=false
15172 for ac_c_preproc_warn_flag in '' yes
15173 do
15174   # Use a header file that comes with gcc, so configuring glibc
15175   # with a fresh cross-compiler works.
15176   # On the NeXT, cc -E runs the code through the compiler's parser,
15177   # not just through cpp. "Syntax error" is here to catch this case.
15178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h.  */
15180 #include <limits.h>
15181                      Syntax error
15182 _ACEOF
15183 if ac_fn_c_try_cpp "$LINENO"
15184 then :
15185
15186 else $as_nop
15187   # Broken: fails on valid input.
15188 continue
15189 fi
15190 rm -f conftest.err conftest.i conftest.$ac_ext
15191
15192   # OK, works on sane cases.  Now check whether nonexistent headers
15193   # can be detected and how.
15194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15195 /* end confdefs.h.  */
15196 #include <ac_nonexistent.h>
15197 _ACEOF
15198 if ac_fn_c_try_cpp "$LINENO"
15199 then :
15200   # Broken: success on invalid input.
15201 continue
15202 else $as_nop
15203   # Passes both tests.
15204 ac_preproc_ok=:
15205 break
15206 fi
15207 rm -f conftest.err conftest.i conftest.$ac_ext
15208
15209 done
15210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15211 rm -f conftest.i conftest.err conftest.$ac_ext
15212 if $ac_preproc_ok
15213 then :
15214
15215 else $as_nop
15216   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15217 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15218 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
15219 See \`config.log' for more details" "$LINENO" 5; }
15220 fi
15221
15222 ac_ext=c
15223 ac_cpp='$CPP $CPPFLAGS'
15224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15227
15228
15229
15230
15231   acl_libdirstem=lib
15232   acl_libdirstem2=
15233   case "$host_os" in
15234     solaris*)
15235                                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15236 printf %s "checking for 64-bit host... " >&6; }
15237 if test ${gl_cv_solaris_64bit+y}
15238 then :
15239   printf %s "(cached) " >&6
15240 else $as_nop
15241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242 /* end confdefs.h.  */
15243
15244 #ifdef _LP64
15245 sixtyfour bits
15246 #endif
15247
15248 _ACEOF
15249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15250   $EGREP "sixtyfour bits" >/dev/null 2>&1
15251 then :
15252   gl_cv_solaris_64bit=yes
15253 else $as_nop
15254   gl_cv_solaris_64bit=no
15255 fi
15256 rm -rf conftest*
15257
15258
15259 fi
15260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15261 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
15262       if test $gl_cv_solaris_64bit = yes; then
15263         acl_libdirstem=lib/64
15264         case "$host_cpu" in
15265           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
15266           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15267         esac
15268       fi
15269       ;;
15270     *)
15271       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15272       if test -n "$searchpath"; then
15273         acl_save_IFS="${IFS=    }"; IFS=":"
15274         for searchdir in $searchpath; do
15275           if test -d "$searchdir"; then
15276             case "$searchdir" in
15277               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15278               */../ | */.. )
15279                 # Better ignore directories of this form. They are misleading.
15280                 ;;
15281               *) searchdir=`cd "$searchdir" && pwd`
15282                  case "$searchdir" in
15283                    */lib64 ) acl_libdirstem=lib64 ;;
15284                  esac ;;
15285             esac
15286           fi
15287         done
15288         IFS="$acl_save_IFS"
15289       fi
15290       ;;
15291   esac
15292   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305     use_additional=yes
15306
15307   acl_save_prefix="$prefix"
15308   prefix="$acl_final_prefix"
15309   acl_save_exec_prefix="$exec_prefix"
15310   exec_prefix="$acl_final_exec_prefix"
15311
15312     eval additional_includedir=\"$includedir\"
15313     eval additional_libdir=\"$libdir\"
15314
15315   exec_prefix="$acl_save_exec_prefix"
15316   prefix="$acl_save_prefix"
15317
15318
15319 # Check whether --with-libiconv-prefix was given.
15320 if test ${with_libiconv_prefix+y}
15321 then :
15322   withval=$with_libiconv_prefix;
15323     if test "X$withval" = "Xno"; then
15324       use_additional=no
15325     else
15326       if test "X$withval" = "X"; then
15327
15328   acl_save_prefix="$prefix"
15329   prefix="$acl_final_prefix"
15330   acl_save_exec_prefix="$exec_prefix"
15331   exec_prefix="$acl_final_exec_prefix"
15332
15333           eval additional_includedir=\"$includedir\"
15334           eval additional_libdir=\"$libdir\"
15335
15336   exec_prefix="$acl_save_exec_prefix"
15337   prefix="$acl_save_prefix"
15338
15339       else
15340         additional_includedir="$withval/include"
15341         additional_libdir="$withval/$acl_libdirstem"
15342         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15343            && ! test -d "$withval/$acl_libdirstem"; then
15344           additional_libdir="$withval/$acl_libdirstem2"
15345         fi
15346       fi
15347     fi
15348
15349 fi
15350
15351       LIBICONV=
15352   LTLIBICONV=
15353   INCICONV=
15354   LIBICONV_PREFIX=
15355       HAVE_LIBICONV=
15356   rpathdirs=
15357   ltrpathdirs=
15358   names_already_handled=
15359   names_next_round='iconv '
15360   while test -n "$names_next_round"; do
15361     names_this_round="$names_next_round"
15362     names_next_round=
15363     for name in $names_this_round; do
15364       already_handled=
15365       for n in $names_already_handled; do
15366         if test "$n" = "$name"; then
15367           already_handled=yes
15368           break
15369         fi
15370       done
15371       if test -z "$already_handled"; then
15372         names_already_handled="$names_already_handled $name"
15373                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15374         eval value=\"\$HAVE_LIB$uppername\"
15375         if test -n "$value"; then
15376           if test "$value" = yes; then
15377             eval value=\"\$LIB$uppername\"
15378             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15379             eval value=\"\$LTLIB$uppername\"
15380             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15381           else
15382                                     :
15383           fi
15384         else
15385                               found_dir=
15386           found_la=
15387           found_so=
15388           found_a=
15389           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15390           if test -n "$acl_shlibext"; then
15391             shrext=".$acl_shlibext"             # typically: shrext=.so
15392           else
15393             shrext=
15394           fi
15395           if test $use_additional = yes; then
15396             dir="$additional_libdir"
15397                                     if test -n "$acl_shlibext"; then
15398               if test -f "$dir/$libname$shrext"; then
15399                 found_dir="$dir"
15400                 found_so="$dir/$libname$shrext"
15401               else
15402                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15403                   ver=`(cd "$dir" && \
15404                         for f in "$libname$shrext".*; do echo "$f"; done \
15405                         | sed -e "s,^$libname$shrext\\\\.,," \
15406                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15407                         | sed 1q ) 2>/dev/null`
15408                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15409                     found_dir="$dir"
15410                     found_so="$dir/$libname$shrext.$ver"
15411                   fi
15412                 else
15413                   eval library_names=\"$acl_library_names_spec\"
15414                   for f in $library_names; do
15415                     if test -f "$dir/$f"; then
15416                       found_dir="$dir"
15417                       found_so="$dir/$f"
15418                       break
15419                     fi
15420                   done
15421                 fi
15422               fi
15423             fi
15424                         if test "X$found_dir" = "X"; then
15425               if test -f "$dir/$libname.$acl_libext"; then
15426                 found_dir="$dir"
15427                 found_a="$dir/$libname.$acl_libext"
15428               fi
15429             fi
15430             if test "X$found_dir" != "X"; then
15431               if test -f "$dir/$libname.la"; then
15432                 found_la="$dir/$libname.la"
15433               fi
15434             fi
15435           fi
15436           if test "X$found_dir" = "X"; then
15437             for x in $LDFLAGS $LTLIBICONV; do
15438
15439   acl_save_prefix="$prefix"
15440   prefix="$acl_final_prefix"
15441   acl_save_exec_prefix="$exec_prefix"
15442   exec_prefix="$acl_final_exec_prefix"
15443   eval x=\"$x\"
15444   exec_prefix="$acl_save_exec_prefix"
15445   prefix="$acl_save_prefix"
15446
15447               case "$x" in
15448                 -L*)
15449                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15450                                     if test -n "$acl_shlibext"; then
15451                     if test -f "$dir/$libname$shrext"; then
15452                       found_dir="$dir"
15453                       found_so="$dir/$libname$shrext"
15454                     else
15455                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15456                         ver=`(cd "$dir" && \
15457                               for f in "$libname$shrext".*; do echo "$f"; done \
15458                               | sed -e "s,^$libname$shrext\\\\.,," \
15459                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15460                               | sed 1q ) 2>/dev/null`
15461                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15462                           found_dir="$dir"
15463                           found_so="$dir/$libname$shrext.$ver"
15464                         fi
15465                       else
15466                         eval library_names=\"$acl_library_names_spec\"
15467                         for f in $library_names; do
15468                           if test -f "$dir/$f"; then
15469                             found_dir="$dir"
15470                             found_so="$dir/$f"
15471                             break
15472                           fi
15473                         done
15474                       fi
15475                     fi
15476                   fi
15477                                     if test "X$found_dir" = "X"; then
15478                     if test -f "$dir/$libname.$acl_libext"; then
15479                       found_dir="$dir"
15480                       found_a="$dir/$libname.$acl_libext"
15481                     fi
15482                   fi
15483                   if test "X$found_dir" != "X"; then
15484                     if test -f "$dir/$libname.la"; then
15485                       found_la="$dir/$libname.la"
15486                     fi
15487                   fi
15488                   ;;
15489               esac
15490               if test "X$found_dir" != "X"; then
15491                 break
15492               fi
15493             done
15494           fi
15495           if test "X$found_dir" != "X"; then
15496                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15497             if test "X$found_so" != "X"; then
15498                                                         if test "$enable_rpath" = no \
15499                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15500                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15501                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15502               else
15503                                                                                 haveit=
15504                 for x in $ltrpathdirs; do
15505                   if test "X$x" = "X$found_dir"; then
15506                     haveit=yes
15507                     break
15508                   fi
15509                 done
15510                 if test -z "$haveit"; then
15511                   ltrpathdirs="$ltrpathdirs $found_dir"
15512                 fi
15513                                 if test "$acl_hardcode_direct" = yes; then
15514                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15515                 else
15516                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15517                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15518                                                             haveit=
15519                     for x in $rpathdirs; do
15520                       if test "X$x" = "X$found_dir"; then
15521                         haveit=yes
15522                         break
15523                       fi
15524                     done
15525                     if test -z "$haveit"; then
15526                       rpathdirs="$rpathdirs $found_dir"
15527                     fi
15528                   else
15529                                                                                 haveit=
15530                     for x in $LDFLAGS $LIBICONV; do
15531
15532   acl_save_prefix="$prefix"
15533   prefix="$acl_final_prefix"
15534   acl_save_exec_prefix="$exec_prefix"
15535   exec_prefix="$acl_final_exec_prefix"
15536   eval x=\"$x\"
15537   exec_prefix="$acl_save_exec_prefix"
15538   prefix="$acl_save_prefix"
15539
15540                       if test "X$x" = "X-L$found_dir"; then
15541                         haveit=yes
15542                         break
15543                       fi
15544                     done
15545                     if test -z "$haveit"; then
15546                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15547                     fi
15548                     if test "$acl_hardcode_minus_L" != no; then
15549                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15550                     else
15551                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15552                     fi
15553                   fi
15554                 fi
15555               fi
15556             else
15557               if test "X$found_a" != "X"; then
15558                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15559               else
15560                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15561               fi
15562             fi
15563                         additional_includedir=
15564             case "$found_dir" in
15565               */$acl_libdirstem | */$acl_libdirstem/)
15566                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15567                 if test "$name" = 'iconv'; then
15568                   LIBICONV_PREFIX="$basedir"
15569                 fi
15570                 additional_includedir="$basedir/include"
15571                 ;;
15572               */$acl_libdirstem2 | */$acl_libdirstem2/)
15573                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15574                 if test "$name" = 'iconv'; then
15575                   LIBICONV_PREFIX="$basedir"
15576                 fi
15577                 additional_includedir="$basedir/include"
15578                 ;;
15579             esac
15580             if test "X$additional_includedir" != "X"; then
15581                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15582                 haveit=
15583                 if test "X$additional_includedir" = "X/usr/local/include"; then
15584                   if test -n "$GCC"; then
15585                     case $host_os in
15586                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15587                     esac
15588                   fi
15589                 fi
15590                 if test -z "$haveit"; then
15591                   for x in $CPPFLAGS $INCICONV; do
15592
15593   acl_save_prefix="$prefix"
15594   prefix="$acl_final_prefix"
15595   acl_save_exec_prefix="$exec_prefix"
15596   exec_prefix="$acl_final_exec_prefix"
15597   eval x=\"$x\"
15598   exec_prefix="$acl_save_exec_prefix"
15599   prefix="$acl_save_prefix"
15600
15601                     if test "X$x" = "X-I$additional_includedir"; then
15602                       haveit=yes
15603                       break
15604                     fi
15605                   done
15606                   if test -z "$haveit"; then
15607                     if test -d "$additional_includedir"; then
15608                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15609                     fi
15610                   fi
15611                 fi
15612               fi
15613             fi
15614                         if test -n "$found_la"; then
15615                                                         save_libdir="$libdir"
15616               case "$found_la" in
15617                 */* | *\\*) . "$found_la" ;;
15618                 *) . "./$found_la" ;;
15619               esac
15620               libdir="$save_libdir"
15621                             for dep in $dependency_libs; do
15622                 case "$dep" in
15623                   -L*)
15624                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15625                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15626                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15627                       haveit=
15628                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15629                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15630                         if test -n "$GCC"; then
15631                           case $host_os in
15632                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15633                           esac
15634                         fi
15635                       fi
15636                       if test -z "$haveit"; then
15637                         haveit=
15638                         for x in $LDFLAGS $LIBICONV; do
15639
15640   acl_save_prefix="$prefix"
15641   prefix="$acl_final_prefix"
15642   acl_save_exec_prefix="$exec_prefix"
15643   exec_prefix="$acl_final_exec_prefix"
15644   eval x=\"$x\"
15645   exec_prefix="$acl_save_exec_prefix"
15646   prefix="$acl_save_prefix"
15647
15648                           if test "X$x" = "X-L$additional_libdir"; then
15649                             haveit=yes
15650                             break
15651                           fi
15652                         done
15653                         if test -z "$haveit"; then
15654                           if test -d "$additional_libdir"; then
15655                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15656                           fi
15657                         fi
15658                         haveit=
15659                         for x in $LDFLAGS $LTLIBICONV; do
15660
15661   acl_save_prefix="$prefix"
15662   prefix="$acl_final_prefix"
15663   acl_save_exec_prefix="$exec_prefix"
15664   exec_prefix="$acl_final_exec_prefix"
15665   eval x=\"$x\"
15666   exec_prefix="$acl_save_exec_prefix"
15667   prefix="$acl_save_prefix"
15668
15669                           if test "X$x" = "X-L$additional_libdir"; then
15670                             haveit=yes
15671                             break
15672                           fi
15673                         done
15674                         if test -z "$haveit"; then
15675                           if test -d "$additional_libdir"; then
15676                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15677                           fi
15678                         fi
15679                       fi
15680                     fi
15681                     ;;
15682                   -R*)
15683                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15684                     if test "$enable_rpath" != no; then
15685                                                                   haveit=
15686                       for x in $rpathdirs; do
15687                         if test "X$x" = "X$dir"; then
15688                           haveit=yes
15689                           break
15690                         fi
15691                       done
15692                       if test -z "$haveit"; then
15693                         rpathdirs="$rpathdirs $dir"
15694                       fi
15695                                                                   haveit=
15696                       for x in $ltrpathdirs; do
15697                         if test "X$x" = "X$dir"; then
15698                           haveit=yes
15699                           break
15700                         fi
15701                       done
15702                       if test -z "$haveit"; then
15703                         ltrpathdirs="$ltrpathdirs $dir"
15704                       fi
15705                     fi
15706                     ;;
15707                   -l*)
15708                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15709                     ;;
15710                   *.la)
15711                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15712                     ;;
15713                   *)
15714                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15715                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15716                     ;;
15717                 esac
15718               done
15719             fi
15720           else
15721                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15722             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15723           fi
15724         fi
15725       fi
15726     done
15727   done
15728   if test "X$rpathdirs" != "X"; then
15729     if test -n "$acl_hardcode_libdir_separator"; then
15730                         alldirs=
15731       for found_dir in $rpathdirs; do
15732         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15733       done
15734             acl_save_libdir="$libdir"
15735       libdir="$alldirs"
15736       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15737       libdir="$acl_save_libdir"
15738       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15739     else
15740             for found_dir in $rpathdirs; do
15741         acl_save_libdir="$libdir"
15742         libdir="$found_dir"
15743         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15744         libdir="$acl_save_libdir"
15745         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15746       done
15747     fi
15748   fi
15749   if test "X$ltrpathdirs" != "X"; then
15750             for found_dir in $ltrpathdirs; do
15751       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15752     done
15753   fi
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15786 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
15787 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
15788 then :
15789   printf %s "(cached) " >&6
15790 else $as_nop
15791   gt_save_LIBS="$LIBS"
15792      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15793      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h.  */
15795 #include <CoreFoundation/CFPreferences.h>
15796 int
15797 main (void)
15798 {
15799 CFPreferencesCopyAppValue(NULL, NULL)
15800   ;
15801   return 0;
15802 }
15803 _ACEOF
15804 if ac_fn_c_try_link "$LINENO"
15805 then :
15806   gt_cv_func_CFPreferencesCopyAppValue=yes
15807 else $as_nop
15808   gt_cv_func_CFPreferencesCopyAppValue=no
15809 fi
15810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15811     conftest$ac_exeext conftest.$ac_ext
15812      LIBS="$gt_save_LIBS"
15813 fi
15814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15815 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15816   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15817
15818 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15819
15820   fi
15821     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15822 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
15823 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
15824 then :
15825   printf %s "(cached) " >&6
15826 else $as_nop
15827   gt_save_LIBS="$LIBS"
15828      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15829      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830 /* end confdefs.h.  */
15831 #include <CoreFoundation/CFLocale.h>
15832 int
15833 main (void)
15834 {
15835 CFLocaleCopyCurrent();
15836   ;
15837   return 0;
15838 }
15839 _ACEOF
15840 if ac_fn_c_try_link "$LINENO"
15841 then :
15842   gt_cv_func_CFLocaleCopyCurrent=yes
15843 else $as_nop
15844   gt_cv_func_CFLocaleCopyCurrent=no
15845 fi
15846 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15847     conftest$ac_exeext conftest.$ac_ext
15848      LIBS="$gt_save_LIBS"
15849 fi
15850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15851 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15852   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15853
15854 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15855
15856   fi
15857   INTL_MACOSX_LIBS=
15858   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15859     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15860   fi
15861
15862
15863
15864
15865
15866
15867   LIBINTL=
15868   LTLIBINTL=
15869   POSUB=
15870
15871     case " $gt_needs " in
15872     *" need-formatstring-macros "*) gt_api_version=3 ;;
15873     *" need-ngettext "*) gt_api_version=2 ;;
15874     *) gt_api_version=1 ;;
15875   esac
15876   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15877   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15878
15879     if test "$USE_NLS" = "yes"; then
15880     gt_use_preinstalled_gnugettext=no
15881
15882
15883         if test $gt_api_version -ge 3; then
15884           gt_revision_test_code='
15885 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15886 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15887 #endif
15888 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15889 '
15890         else
15891           gt_revision_test_code=
15892         fi
15893         if test $gt_api_version -ge 2; then
15894           gt_expression_test_code=' + * ngettext ("", "", 0)'
15895         else
15896           gt_expression_test_code=
15897         fi
15898
15899         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15900 printf %s "checking for GNU gettext in libc... " >&6; }
15901 if eval test \${$gt_func_gnugettext_libc+y}
15902 then :
15903   printf %s "(cached) " >&6
15904 else $as_nop
15905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h.  */
15907
15908 #include <libintl.h>
15909 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15910 extern int _nl_msg_cat_cntr;
15911 extern int *_nl_domain_bindings;
15912 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
15913 #else
15914 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15915 #endif
15916 $gt_revision_test_code
15917
15918 int
15919 main (void)
15920 {
15921
15922 bindtextdomain ("", "");
15923 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15924
15925   ;
15926   return 0;
15927 }
15928 _ACEOF
15929 if ac_fn_c_try_link "$LINENO"
15930 then :
15931   eval "$gt_func_gnugettext_libc=yes"
15932 else $as_nop
15933   eval "$gt_func_gnugettext_libc=no"
15934 fi
15935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15936     conftest$ac_exeext conftest.$ac_ext
15937 fi
15938 eval ac_res=\$$gt_func_gnugettext_libc
15939                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15940 printf "%s\n" "$ac_res" >&6; }
15941
15942         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15943
15944
15945
15946
15947
15948           am_save_CPPFLAGS="$CPPFLAGS"
15949
15950   for element in $INCICONV; do
15951     haveit=
15952     for x in $CPPFLAGS; do
15953
15954   acl_save_prefix="$prefix"
15955   prefix="$acl_final_prefix"
15956   acl_save_exec_prefix="$exec_prefix"
15957   exec_prefix="$acl_final_exec_prefix"
15958   eval x=\"$x\"
15959   exec_prefix="$acl_save_exec_prefix"
15960   prefix="$acl_save_prefix"
15961
15962       if test "X$x" = "X$element"; then
15963         haveit=yes
15964         break
15965       fi
15966     done
15967     if test -z "$haveit"; then
15968       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15969     fi
15970   done
15971
15972
15973   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15974 printf %s "checking for iconv... " >&6; }
15975 if test ${am_cv_func_iconv+y}
15976 then :
15977   printf %s "(cached) " >&6
15978 else $as_nop
15979
15980     am_cv_func_iconv="no, consider installing GNU libiconv"
15981     am_cv_lib_iconv=no
15982     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h.  */
15984
15985 #include <stdlib.h>
15986 #include <iconv.h>
15987
15988 int
15989 main (void)
15990 {
15991 iconv_t cd = iconv_open("","");
15992            iconv(cd,NULL,NULL,NULL,NULL);
15993            iconv_close(cd);
15994   ;
15995   return 0;
15996 }
15997 _ACEOF
15998 if ac_fn_c_try_link "$LINENO"
15999 then :
16000   am_cv_func_iconv=yes
16001 fi
16002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16003     conftest$ac_exeext conftest.$ac_ext
16004     if test "$am_cv_func_iconv" != yes; then
16005       am_save_LIBS="$LIBS"
16006       LIBS="$LIBS $LIBICONV"
16007       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h.  */
16009
16010 #include <stdlib.h>
16011 #include <iconv.h>
16012
16013 int
16014 main (void)
16015 {
16016 iconv_t cd = iconv_open("","");
16017              iconv(cd,NULL,NULL,NULL,NULL);
16018              iconv_close(cd);
16019   ;
16020   return 0;
16021 }
16022 _ACEOF
16023 if ac_fn_c_try_link "$LINENO"
16024 then :
16025   am_cv_lib_iconv=yes
16026         am_cv_func_iconv=yes
16027 fi
16028 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16029     conftest$ac_exeext conftest.$ac_ext
16030       LIBS="$am_save_LIBS"
16031     fi
16032
16033 fi
16034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16035 printf "%s\n" "$am_cv_func_iconv" >&6; }
16036   if test "$am_cv_func_iconv" = yes; then
16037     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16038 printf %s "checking for working iconv... " >&6; }
16039 if test ${am_cv_func_iconv_works+y}
16040 then :
16041   printf %s "(cached) " >&6
16042 else $as_nop
16043
16044                   am_save_LIBS="$LIBS"
16045       if test $am_cv_lib_iconv = yes; then
16046         LIBS="$LIBS $LIBICONV"
16047       fi
16048       am_cv_func_iconv_works=no
16049       for ac_iconv_const in '' 'const'; do
16050         if test "$cross_compiling" = yes
16051 then :
16052   case "$host_os" in
16053              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16054              *)            am_cv_func_iconv_works="guessing yes" ;;
16055            esac
16056 else $as_nop
16057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h.  */
16059
16060 #include <iconv.h>
16061 #include <string.h>
16062
16063 #ifndef ICONV_CONST
16064 # define ICONV_CONST $ac_iconv_const
16065 #endif
16066
16067 int
16068 main (void)
16069 {
16070 int result = 0;
16071   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16072      returns.  */
16073   {
16074     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16075     if (cd_utf8_to_88591 != (iconv_t)(-1))
16076       {
16077         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
16078         char buf[10];
16079         ICONV_CONST char *inptr = input;
16080         size_t inbytesleft = strlen (input);
16081         char *outptr = buf;
16082         size_t outbytesleft = sizeof (buf);
16083         size_t res = iconv (cd_utf8_to_88591,
16084                             &inptr, &inbytesleft,
16085                             &outptr, &outbytesleft);
16086         if (res == 0)
16087           result |= 1;
16088         iconv_close (cd_utf8_to_88591);
16089       }
16090   }
16091   /* Test against Solaris 10 bug: Failures are not distinguishable from
16092      successful returns.  */
16093   {
16094     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16095     if (cd_ascii_to_88591 != (iconv_t)(-1))
16096       {
16097         static ICONV_CONST char input[] = "\263";
16098         char buf[10];
16099         ICONV_CONST char *inptr = input;
16100         size_t inbytesleft = strlen (input);
16101         char *outptr = buf;
16102         size_t outbytesleft = sizeof (buf);
16103         size_t res = iconv (cd_ascii_to_88591,
16104                             &inptr, &inbytesleft,
16105                             &outptr, &outbytesleft);
16106         if (res == 0)
16107           result |= 2;
16108         iconv_close (cd_ascii_to_88591);
16109       }
16110   }
16111   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
16112   {
16113     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16114     if (cd_88591_to_utf8 != (iconv_t)(-1))
16115       {
16116         static ICONV_CONST char input[] = "\304";
16117         static char buf[2] = { (char)0xDE, (char)0xAD };
16118         ICONV_CONST char *inptr = input;
16119         size_t inbytesleft = 1;
16120         char *outptr = buf;
16121         size_t outbytesleft = 1;
16122         size_t res = iconv (cd_88591_to_utf8,
16123                             &inptr, &inbytesleft,
16124                             &outptr, &outbytesleft);
16125         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16126           result |= 4;
16127         iconv_close (cd_88591_to_utf8);
16128       }
16129   }
16130 #if 0 /* This bug could be worked around by the caller.  */
16131   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
16132   {
16133     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16134     if (cd_88591_to_utf8 != (iconv_t)(-1))
16135       {
16136         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16137         char buf[50];
16138         ICONV_CONST char *inptr = input;
16139         size_t inbytesleft = strlen (input);
16140         char *outptr = buf;
16141         size_t outbytesleft = sizeof (buf);
16142         size_t res = iconv (cd_88591_to_utf8,
16143                             &inptr, &inbytesleft,
16144                             &outptr, &outbytesleft);
16145         if ((int)res > 0)
16146           result |= 8;
16147         iconv_close (cd_88591_to_utf8);
16148       }
16149   }
16150 #endif
16151   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16152      provided.  */
16153   if (/* Try standardized names.  */
16154       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16155       /* Try IRIX, OSF/1 names.  */
16156       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16157       /* Try AIX names.  */
16158       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16159       /* Try HP-UX names.  */
16160       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16161     result |= 16;
16162   return result;
16163
16164   ;
16165   return 0;
16166 }
16167 _ACEOF
16168 if ac_fn_c_try_run "$LINENO"
16169 then :
16170   am_cv_func_iconv_works=yes
16171 fi
16172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16173   conftest.$ac_objext conftest.beam conftest.$ac_ext
16174 fi
16175
16176         test "$am_cv_func_iconv_works" = no || break
16177       done
16178       LIBS="$am_save_LIBS"
16179
16180 fi
16181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16182 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
16183     case "$am_cv_func_iconv_works" in
16184       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16185       *)   am_func_iconv=yes ;;
16186     esac
16187   else
16188     am_func_iconv=no am_cv_lib_iconv=no
16189   fi
16190   if test "$am_func_iconv" = yes; then
16191
16192 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
16193
16194   fi
16195   if test "$am_cv_lib_iconv" = yes; then
16196     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16197 printf %s "checking how to link with libiconv... " >&6; }
16198     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16199 printf "%s\n" "$LIBICONV" >&6; }
16200   else
16201             CPPFLAGS="$am_save_CPPFLAGS"
16202     LIBICONV=
16203     LTLIBICONV=
16204   fi
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216     use_additional=yes
16217
16218   acl_save_prefix="$prefix"
16219   prefix="$acl_final_prefix"
16220   acl_save_exec_prefix="$exec_prefix"
16221   exec_prefix="$acl_final_exec_prefix"
16222
16223     eval additional_includedir=\"$includedir\"
16224     eval additional_libdir=\"$libdir\"
16225
16226   exec_prefix="$acl_save_exec_prefix"
16227   prefix="$acl_save_prefix"
16228
16229
16230 # Check whether --with-libintl-prefix was given.
16231 if test ${with_libintl_prefix+y}
16232 then :
16233   withval=$with_libintl_prefix;
16234     if test "X$withval" = "Xno"; then
16235       use_additional=no
16236     else
16237       if test "X$withval" = "X"; then
16238
16239   acl_save_prefix="$prefix"
16240   prefix="$acl_final_prefix"
16241   acl_save_exec_prefix="$exec_prefix"
16242   exec_prefix="$acl_final_exec_prefix"
16243
16244           eval additional_includedir=\"$includedir\"
16245           eval additional_libdir=\"$libdir\"
16246
16247   exec_prefix="$acl_save_exec_prefix"
16248   prefix="$acl_save_prefix"
16249
16250       else
16251         additional_includedir="$withval/include"
16252         additional_libdir="$withval/$acl_libdirstem"
16253         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16254            && ! test -d "$withval/$acl_libdirstem"; then
16255           additional_libdir="$withval/$acl_libdirstem2"
16256         fi
16257       fi
16258     fi
16259
16260 fi
16261
16262       LIBINTL=
16263   LTLIBINTL=
16264   INCINTL=
16265   LIBINTL_PREFIX=
16266       HAVE_LIBINTL=
16267   rpathdirs=
16268   ltrpathdirs=
16269   names_already_handled=
16270   names_next_round='intl '
16271   while test -n "$names_next_round"; do
16272     names_this_round="$names_next_round"
16273     names_next_round=
16274     for name in $names_this_round; do
16275       already_handled=
16276       for n in $names_already_handled; do
16277         if test "$n" = "$name"; then
16278           already_handled=yes
16279           break
16280         fi
16281       done
16282       if test -z "$already_handled"; then
16283         names_already_handled="$names_already_handled $name"
16284                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16285         eval value=\"\$HAVE_LIB$uppername\"
16286         if test -n "$value"; then
16287           if test "$value" = yes; then
16288             eval value=\"\$LIB$uppername\"
16289             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16290             eval value=\"\$LTLIB$uppername\"
16291             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16292           else
16293                                     :
16294           fi
16295         else
16296                               found_dir=
16297           found_la=
16298           found_so=
16299           found_a=
16300           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16301           if test -n "$acl_shlibext"; then
16302             shrext=".$acl_shlibext"             # typically: shrext=.so
16303           else
16304             shrext=
16305           fi
16306           if test $use_additional = yes; then
16307             dir="$additional_libdir"
16308                                     if test -n "$acl_shlibext"; then
16309               if test -f "$dir/$libname$shrext"; then
16310                 found_dir="$dir"
16311                 found_so="$dir/$libname$shrext"
16312               else
16313                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16314                   ver=`(cd "$dir" && \
16315                         for f in "$libname$shrext".*; do echo "$f"; done \
16316                         | sed -e "s,^$libname$shrext\\\\.,," \
16317                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16318                         | sed 1q ) 2>/dev/null`
16319                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16320                     found_dir="$dir"
16321                     found_so="$dir/$libname$shrext.$ver"
16322                   fi
16323                 else
16324                   eval library_names=\"$acl_library_names_spec\"
16325                   for f in $library_names; do
16326                     if test -f "$dir/$f"; then
16327                       found_dir="$dir"
16328                       found_so="$dir/$f"
16329                       break
16330                     fi
16331                   done
16332                 fi
16333               fi
16334             fi
16335                         if test "X$found_dir" = "X"; then
16336               if test -f "$dir/$libname.$acl_libext"; then
16337                 found_dir="$dir"
16338                 found_a="$dir/$libname.$acl_libext"
16339               fi
16340             fi
16341             if test "X$found_dir" != "X"; then
16342               if test -f "$dir/$libname.la"; then
16343                 found_la="$dir/$libname.la"
16344               fi
16345             fi
16346           fi
16347           if test "X$found_dir" = "X"; then
16348             for x in $LDFLAGS $LTLIBINTL; do
16349
16350   acl_save_prefix="$prefix"
16351   prefix="$acl_final_prefix"
16352   acl_save_exec_prefix="$exec_prefix"
16353   exec_prefix="$acl_final_exec_prefix"
16354   eval x=\"$x\"
16355   exec_prefix="$acl_save_exec_prefix"
16356   prefix="$acl_save_prefix"
16357
16358               case "$x" in
16359                 -L*)
16360                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16361                                     if test -n "$acl_shlibext"; then
16362                     if test -f "$dir/$libname$shrext"; then
16363                       found_dir="$dir"
16364                       found_so="$dir/$libname$shrext"
16365                     else
16366                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16367                         ver=`(cd "$dir" && \
16368                               for f in "$libname$shrext".*; do echo "$f"; done \
16369                               | sed -e "s,^$libname$shrext\\\\.,," \
16370                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16371                               | sed 1q ) 2>/dev/null`
16372                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16373                           found_dir="$dir"
16374                           found_so="$dir/$libname$shrext.$ver"
16375                         fi
16376                       else
16377                         eval library_names=\"$acl_library_names_spec\"
16378                         for f in $library_names; do
16379                           if test -f "$dir/$f"; then
16380                             found_dir="$dir"
16381                             found_so="$dir/$f"
16382                             break
16383                           fi
16384                         done
16385                       fi
16386                     fi
16387                   fi
16388                                     if test "X$found_dir" = "X"; then
16389                     if test -f "$dir/$libname.$acl_libext"; then
16390                       found_dir="$dir"
16391                       found_a="$dir/$libname.$acl_libext"
16392                     fi
16393                   fi
16394                   if test "X$found_dir" != "X"; then
16395                     if test -f "$dir/$libname.la"; then
16396                       found_la="$dir/$libname.la"
16397                     fi
16398                   fi
16399                   ;;
16400               esac
16401               if test "X$found_dir" != "X"; then
16402                 break
16403               fi
16404             done
16405           fi
16406           if test "X$found_dir" != "X"; then
16407                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16408             if test "X$found_so" != "X"; then
16409                                                         if test "$enable_rpath" = no \
16410                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16411                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16412                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16413               else
16414                                                                                 haveit=
16415                 for x in $ltrpathdirs; do
16416                   if test "X$x" = "X$found_dir"; then
16417                     haveit=yes
16418                     break
16419                   fi
16420                 done
16421                 if test -z "$haveit"; then
16422                   ltrpathdirs="$ltrpathdirs $found_dir"
16423                 fi
16424                                 if test "$acl_hardcode_direct" = yes; then
16425                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16426                 else
16427                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16428                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16429                                                             haveit=
16430                     for x in $rpathdirs; do
16431                       if test "X$x" = "X$found_dir"; then
16432                         haveit=yes
16433                         break
16434                       fi
16435                     done
16436                     if test -z "$haveit"; then
16437                       rpathdirs="$rpathdirs $found_dir"
16438                     fi
16439                   else
16440                                                                                 haveit=
16441                     for x in $LDFLAGS $LIBINTL; do
16442
16443   acl_save_prefix="$prefix"
16444   prefix="$acl_final_prefix"
16445   acl_save_exec_prefix="$exec_prefix"
16446   exec_prefix="$acl_final_exec_prefix"
16447   eval x=\"$x\"
16448   exec_prefix="$acl_save_exec_prefix"
16449   prefix="$acl_save_prefix"
16450
16451                       if test "X$x" = "X-L$found_dir"; then
16452                         haveit=yes
16453                         break
16454                       fi
16455                     done
16456                     if test -z "$haveit"; then
16457                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16458                     fi
16459                     if test "$acl_hardcode_minus_L" != no; then
16460                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16461                     else
16462                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16463                     fi
16464                   fi
16465                 fi
16466               fi
16467             else
16468               if test "X$found_a" != "X"; then
16469                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16470               else
16471                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16472               fi
16473             fi
16474                         additional_includedir=
16475             case "$found_dir" in
16476               */$acl_libdirstem | */$acl_libdirstem/)
16477                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16478                 if test "$name" = 'intl'; then
16479                   LIBINTL_PREFIX="$basedir"
16480                 fi
16481                 additional_includedir="$basedir/include"
16482                 ;;
16483               */$acl_libdirstem2 | */$acl_libdirstem2/)
16484                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16485                 if test "$name" = 'intl'; then
16486                   LIBINTL_PREFIX="$basedir"
16487                 fi
16488                 additional_includedir="$basedir/include"
16489                 ;;
16490             esac
16491             if test "X$additional_includedir" != "X"; then
16492                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16493                 haveit=
16494                 if test "X$additional_includedir" = "X/usr/local/include"; then
16495                   if test -n "$GCC"; then
16496                     case $host_os in
16497                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16498                     esac
16499                   fi
16500                 fi
16501                 if test -z "$haveit"; then
16502                   for x in $CPPFLAGS $INCINTL; do
16503
16504   acl_save_prefix="$prefix"
16505   prefix="$acl_final_prefix"
16506   acl_save_exec_prefix="$exec_prefix"
16507   exec_prefix="$acl_final_exec_prefix"
16508   eval x=\"$x\"
16509   exec_prefix="$acl_save_exec_prefix"
16510   prefix="$acl_save_prefix"
16511
16512                     if test "X$x" = "X-I$additional_includedir"; then
16513                       haveit=yes
16514                       break
16515                     fi
16516                   done
16517                   if test -z "$haveit"; then
16518                     if test -d "$additional_includedir"; then
16519                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16520                     fi
16521                   fi
16522                 fi
16523               fi
16524             fi
16525                         if test -n "$found_la"; then
16526                                                         save_libdir="$libdir"
16527               case "$found_la" in
16528                 */* | *\\*) . "$found_la" ;;
16529                 *) . "./$found_la" ;;
16530               esac
16531               libdir="$save_libdir"
16532                             for dep in $dependency_libs; do
16533                 case "$dep" in
16534                   -L*)
16535                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16536                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16537                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16538                       haveit=
16539                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16540                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16541                         if test -n "$GCC"; then
16542                           case $host_os in
16543                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16544                           esac
16545                         fi
16546                       fi
16547                       if test -z "$haveit"; then
16548                         haveit=
16549                         for x in $LDFLAGS $LIBINTL; do
16550
16551   acl_save_prefix="$prefix"
16552   prefix="$acl_final_prefix"
16553   acl_save_exec_prefix="$exec_prefix"
16554   exec_prefix="$acl_final_exec_prefix"
16555   eval x=\"$x\"
16556   exec_prefix="$acl_save_exec_prefix"
16557   prefix="$acl_save_prefix"
16558
16559                           if test "X$x" = "X-L$additional_libdir"; then
16560                             haveit=yes
16561                             break
16562                           fi
16563                         done
16564                         if test -z "$haveit"; then
16565                           if test -d "$additional_libdir"; then
16566                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16567                           fi
16568                         fi
16569                         haveit=
16570                         for x in $LDFLAGS $LTLIBINTL; do
16571
16572   acl_save_prefix="$prefix"
16573   prefix="$acl_final_prefix"
16574   acl_save_exec_prefix="$exec_prefix"
16575   exec_prefix="$acl_final_exec_prefix"
16576   eval x=\"$x\"
16577   exec_prefix="$acl_save_exec_prefix"
16578   prefix="$acl_save_prefix"
16579
16580                           if test "X$x" = "X-L$additional_libdir"; then
16581                             haveit=yes
16582                             break
16583                           fi
16584                         done
16585                         if test -z "$haveit"; then
16586                           if test -d "$additional_libdir"; then
16587                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16588                           fi
16589                         fi
16590                       fi
16591                     fi
16592                     ;;
16593                   -R*)
16594                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16595                     if test "$enable_rpath" != no; then
16596                                                                   haveit=
16597                       for x in $rpathdirs; do
16598                         if test "X$x" = "X$dir"; then
16599                           haveit=yes
16600                           break
16601                         fi
16602                       done
16603                       if test -z "$haveit"; then
16604                         rpathdirs="$rpathdirs $dir"
16605                       fi
16606                                                                   haveit=
16607                       for x in $ltrpathdirs; do
16608                         if test "X$x" = "X$dir"; then
16609                           haveit=yes
16610                           break
16611                         fi
16612                       done
16613                       if test -z "$haveit"; then
16614                         ltrpathdirs="$ltrpathdirs $dir"
16615                       fi
16616                     fi
16617                     ;;
16618                   -l*)
16619                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16620                     ;;
16621                   *.la)
16622                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16623                     ;;
16624                   *)
16625                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16626                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16627                     ;;
16628                 esac
16629               done
16630             fi
16631           else
16632                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16633             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16634           fi
16635         fi
16636       fi
16637     done
16638   done
16639   if test "X$rpathdirs" != "X"; then
16640     if test -n "$acl_hardcode_libdir_separator"; then
16641                         alldirs=
16642       for found_dir in $rpathdirs; do
16643         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16644       done
16645             acl_save_libdir="$libdir"
16646       libdir="$alldirs"
16647       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16648       libdir="$acl_save_libdir"
16649       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16650     else
16651             for found_dir in $rpathdirs; do
16652         acl_save_libdir="$libdir"
16653         libdir="$found_dir"
16654         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16655         libdir="$acl_save_libdir"
16656         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16657       done
16658     fi
16659   fi
16660   if test "X$ltrpathdirs" != "X"; then
16661             for found_dir in $ltrpathdirs; do
16662       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16663     done
16664   fi
16665
16666
16667
16668
16669
16670
16671           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16672 printf %s "checking for GNU gettext in libintl... " >&6; }
16673 if eval test \${$gt_func_gnugettext_libintl+y}
16674 then :
16675   printf %s "(cached) " >&6
16676 else $as_nop
16677   gt_save_CPPFLAGS="$CPPFLAGS"
16678             CPPFLAGS="$CPPFLAGS $INCINTL"
16679             gt_save_LIBS="$LIBS"
16680             LIBS="$LIBS $LIBINTL"
16681                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682 /* end confdefs.h.  */
16683
16684 #include <libintl.h>
16685 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16686 extern int _nl_msg_cat_cntr;
16687 extern
16688 #ifdef __cplusplus
16689 "C"
16690 #endif
16691 const char *_nl_expand_alias (const char *);
16692 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16693 #else
16694 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16695 #endif
16696 $gt_revision_test_code
16697
16698 int
16699 main (void)
16700 {
16701
16702 bindtextdomain ("", "");
16703 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16704
16705   ;
16706   return 0;
16707 }
16708 _ACEOF
16709 if ac_fn_c_try_link "$LINENO"
16710 then :
16711   eval "$gt_func_gnugettext_libintl=yes"
16712 else $as_nop
16713   eval "$gt_func_gnugettext_libintl=no"
16714 fi
16715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16716     conftest$ac_exeext conftest.$ac_ext
16717                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16718               LIBS="$LIBS $LIBICONV"
16719               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h.  */
16721
16722 #include <libintl.h>
16723 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16724 extern int _nl_msg_cat_cntr;
16725 extern
16726 #ifdef __cplusplus
16727 "C"
16728 #endif
16729 const char *_nl_expand_alias (const char *);
16730 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16731 #else
16732 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16733 #endif
16734 $gt_revision_test_code
16735
16736 int
16737 main (void)
16738 {
16739
16740 bindtextdomain ("", "");
16741 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16742
16743   ;
16744   return 0;
16745 }
16746 _ACEOF
16747 if ac_fn_c_try_link "$LINENO"
16748 then :
16749   LIBINTL="$LIBINTL $LIBICONV"
16750                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16751                  eval "$gt_func_gnugettext_libintl=yes"
16752
16753 fi
16754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16755     conftest$ac_exeext conftest.$ac_ext
16756             fi
16757             CPPFLAGS="$gt_save_CPPFLAGS"
16758             LIBS="$gt_save_LIBS"
16759 fi
16760 eval ac_res=\$$gt_func_gnugettext_libintl
16761                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16762 printf "%s\n" "$ac_res" >&6; }
16763         fi
16764
16765                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16766            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16767                 && test "$PACKAGE" != gettext-runtime \
16768                 && test "$PACKAGE" != gettext-tools; }; then
16769           gt_use_preinstalled_gnugettext=yes
16770         else
16771                     LIBINTL=
16772           LTLIBINTL=
16773           INCINTL=
16774         fi
16775
16776
16777
16778     if test -n "$INTL_MACOSX_LIBS"; then
16779       if test "$gt_use_preinstalled_gnugettext" = "yes" \
16780          || test "$nls_cv_use_gnu_gettext" = "yes"; then
16781                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16782         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16783       fi
16784     fi
16785
16786     if test "$gt_use_preinstalled_gnugettext" = "yes" \
16787        || test "$nls_cv_use_gnu_gettext" = "yes"; then
16788
16789 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
16790
16791     else
16792       USE_NLS=no
16793     fi
16794   fi
16795
16796   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16797 printf %s "checking whether to use NLS... " >&6; }
16798   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16799 printf "%s\n" "$USE_NLS" >&6; }
16800   if test "$USE_NLS" = "yes"; then
16801     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16802 printf %s "checking where the gettext function comes from... " >&6; }
16803     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16804       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16805         gt_source="external libintl"
16806       else
16807         gt_source="libc"
16808       fi
16809     else
16810       gt_source="included intl directory"
16811     fi
16812     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16813 printf "%s\n" "$gt_source" >&6; }
16814   fi
16815
16816   if test "$USE_NLS" = "yes"; then
16817
16818     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16819       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16820         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16821 printf %s "checking how to link with libintl... " >&6; }
16822         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16823 printf "%s\n" "$LIBINTL" >&6; }
16824
16825   for element in $INCINTL; do
16826     haveit=
16827     for x in $CPPFLAGS; do
16828
16829   acl_save_prefix="$prefix"
16830   prefix="$acl_final_prefix"
16831   acl_save_exec_prefix="$exec_prefix"
16832   exec_prefix="$acl_final_exec_prefix"
16833   eval x=\"$x\"
16834   exec_prefix="$acl_save_exec_prefix"
16835   prefix="$acl_save_prefix"
16836
16837       if test "X$x" = "X$element"; then
16838         haveit=yes
16839         break
16840       fi
16841     done
16842     if test -z "$haveit"; then
16843       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16844     fi
16845   done
16846
16847       fi
16848
16849
16850 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
16851
16852
16853 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
16854
16855     fi
16856
16857         POSUB=po
16858   fi
16859
16860
16861
16862     INTLLIBS="$LIBINTL"
16863
16864
16865
16866
16867
16868
16869
16870
16871 if test "$os_win32" = "yes"; then
16872   # Extract the first word of "lib.exe", so it can be a program name with args.
16873 set dummy lib.exe; ac_word=$2
16874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16875 printf %s "checking for $ac_word... " >&6; }
16876 if test ${ac_cv_prog_ms_librarian+y}
16877 then :
16878   printf %s "(cached) " >&6
16879 else $as_nop
16880   if test -n "$ms_librarian"; then
16881   ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
16882 else
16883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16884 for as_dir in $PATH
16885 do
16886   IFS=$as_save_IFS
16887   case $as_dir in #(((
16888     '') as_dir=./ ;;
16889     */) ;;
16890     *) as_dir=$as_dir/ ;;
16891   esac
16892     for ac_exec_ext in '' $ac_executable_extensions; do
16893   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16894     ac_cv_prog_ms_librarian="yes"
16895     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16896     break 2
16897   fi
16898 done
16899   done
16900 IFS=$as_save_IFS
16901
16902   test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
16903 fi
16904 fi
16905 ms_librarian=$ac_cv_prog_ms_librarian
16906 if test -n "$ms_librarian"; then
16907   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
16908 printf "%s\n" "$ms_librarian" >&6; }
16909 else
16910   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16911 printf "%s\n" "no" >&6; }
16912 fi
16913
16914
16915 fi
16916  if test x$ms_librarian = xyes; then
16917   MS_LIB_AVAILABLE_TRUE=
16918   MS_LIB_AVAILABLE_FALSE='#'
16919 else
16920   MS_LIB_AVAILABLE_TRUE='#'
16921   MS_LIB_AVAILABLE_FALSE=
16922 fi
16923
16924
16925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16926 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16927 if test ${ac_cv_c_undeclared_builtin_options+y}
16928 then :
16929   printf %s "(cached) " >&6
16930 else $as_nop
16931   ac_save_CFLAGS=$CFLAGS
16932    ac_cv_c_undeclared_builtin_options='cannot detect'
16933    for ac_arg in '' -fno-builtin; do
16934      CFLAGS="$ac_save_CFLAGS $ac_arg"
16935      # This test program should *not* compile successfully.
16936      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937 /* end confdefs.h.  */
16938
16939 int
16940 main (void)
16941 {
16942 (void) strchr;
16943   ;
16944   return 0;
16945 }
16946 _ACEOF
16947 if ac_fn_c_try_compile "$LINENO"
16948 then :
16949
16950 else $as_nop
16951   # This test program should compile successfully.
16952         # No library function is consistently available on
16953         # freestanding implementations, so test against a dummy
16954         # declaration.  Include always-available headers on the
16955         # off chance that they somehow elicit warnings.
16956         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h.  */
16958 #include <float.h>
16959 #include <limits.h>
16960 #include <stdarg.h>
16961 #include <stddef.h>
16962 extern void ac_decl (int, char *);
16963
16964 int
16965 main (void)
16966 {
16967 (void) ac_decl (0, (char *) 0);
16968   (void) ac_decl;
16969
16970   ;
16971   return 0;
16972 }
16973 _ACEOF
16974 if ac_fn_c_try_compile "$LINENO"
16975 then :
16976   if test x"$ac_arg" = x
16977 then :
16978   ac_cv_c_undeclared_builtin_options='none needed'
16979 else $as_nop
16980   ac_cv_c_undeclared_builtin_options=$ac_arg
16981 fi
16982           break
16983 fi
16984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16985 fi
16986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16987     done
16988     CFLAGS=$ac_save_CFLAGS
16989
16990 fi
16991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
16992 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
16993   case $ac_cv_c_undeclared_builtin_options in #(
16994   'cannot detect') :
16995     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16996 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16997 as_fn_error $? "cannot make $CC report undeclared builtins
16998 See \`config.log' for more details" "$LINENO" 5; } ;; #(
16999   'none needed') :
17000     ac_c_undeclared_builtin_options='' ;; #(
17001   *) :
17002     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
17003 esac
17004
17005 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
17006 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
17007 then :
17008   SUNCC="yes"
17009 else $as_nop
17010   SUNCC="no"
17011 fi
17012 WARN_CFLAGS=""
17013 WARNING_CPP_DIRECTIVE="no"
17014 if test "x$GCC" = "xyes"; then
17015         WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
17016         -Wmissing-prototypes -Wmissing-declarations \
17017         -Wnested-externs -fno-strict-aliasing"
17018         WARNING_CPP_DIRECTIVE="yes"
17019 elif test "x$SUNCC" = "xyes"; then
17020         WARN_CFLAGS="-v -fd"
17021         WARNING_CPP_DIRECTIVE="yes"
17022 fi
17023 if test "x$WARNING_CPP_DIRECTIVE" = "xyes"; then
17024
17025 printf "%s\n" "#define HAVE_WARNING_CPP_DIRECTIVE 1" >>confdefs.h
17026
17027 fi
17028
17029
17030
17031
17032 # Put a plausible default for CC_FOR_BUILD in Makefile.
17033 if test -z "$CC_FOR_BUILD"; then
17034   if test "x$cross_compiling" = "xno"; then
17035     CC_FOR_BUILD='$(CC)'
17036   else
17037     CC_FOR_BUILD=gcc
17038   fi
17039 fi
17040
17041 # Also set EXEEXT_FOR_BUILD.
17042 if test "x$cross_compiling" = "xno"; then
17043   EXEEXT_FOR_BUILD='$(EXEEXT)'
17044 else
17045   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
17046 printf %s "checking for build system executable suffix... " >&6; }
17047 if test ${bfd_cv_build_exeext+y}
17048 then :
17049   printf %s "(cached) " >&6
17050 else $as_nop
17051   rm -f conftest*
17052      echo 'int main () { return 0; }' > conftest.c
17053      bfd_cv_build_exeext=
17054      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
17055      for file in conftest.*; do
17056        case $file in
17057        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
17058        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
17059        esac
17060      done
17061      rm -f conftest*
17062      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
17063 fi
17064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
17065 printf "%s\n" "$bfd_cv_build_exeext" >&6; }
17066   EXEEXT_FOR_BUILD=""
17067   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
17068 fi
17069
17070
17071  if test $cross_compiling = yes; then
17072   CROSS_COMPILING_TRUE=
17073   CROSS_COMPILING_FALSE='#'
17074 else
17075   CROSS_COMPILING_TRUE='#'
17076   CROSS_COMPILING_FALSE=
17077 fi
17078
17079  if test "$enable_shared" = "yes"; then
17080   ENABLE_SHARED_TRUE=
17081   ENABLE_SHARED_FALSE='#'
17082 else
17083   ENABLE_SHARED_TRUE='#'
17084   ENABLE_SHARED_FALSE=
17085 fi
17086
17087
17088
17089
17090 # Check whether --with-arch was given.
17091 if test ${with_arch+y}
17092 then :
17093   withval=$with_arch; arch="$withval"
17094 else $as_nop
17095   arch=auto
17096 fi
17097
17098
17099 if test "x$arch" != xauto; then
17100
17101 printf "%s\n" "#define FC_ARCHITECTURE \"$arch\"" >>confdefs.h
17102
17103 fi
17104
17105
17106
17107 # Checks for header files.
17108 ac_header_dirent=no
17109 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17110   as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17112 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
17113 if eval test \${$as_ac_Header+y}
17114 then :
17115   printf %s "(cached) " >&6
17116 else $as_nop
17117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17118 /* end confdefs.h.  */
17119 #include <sys/types.h>
17120 #include <$ac_hdr>
17121
17122 int
17123 main (void)
17124 {
17125 if ((DIR *) 0)
17126 return 0;
17127   ;
17128   return 0;
17129 }
17130 _ACEOF
17131 if ac_fn_c_try_compile "$LINENO"
17132 then :
17133   eval "$as_ac_Header=yes"
17134 else $as_nop
17135   eval "$as_ac_Header=no"
17136 fi
17137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17138 fi
17139 eval ac_res=\$$as_ac_Header
17140                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17141 printf "%s\n" "$ac_res" >&6; }
17142 if eval test \"x\$"$as_ac_Header"\" = x"yes"
17143 then :
17144   cat >>confdefs.h <<_ACEOF
17145 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
17146 _ACEOF
17147
17148 ac_header_dirent=$ac_hdr; break
17149 fi
17150
17151 done
17152 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17153 if test $ac_header_dirent = dirent.h; then
17154   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17155 printf %s "checking for library containing opendir... " >&6; }
17156 if test ${ac_cv_search_opendir+y}
17157 then :
17158   printf %s "(cached) " >&6
17159 else $as_nop
17160   ac_func_search_save_LIBS=$LIBS
17161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162 /* end confdefs.h.  */
17163
17164 /* Override any GCC internal prototype to avoid an error.
17165    Use char because int might match the return type of a GCC
17166    builtin and then its argument prototype would still apply.  */
17167 char opendir ();
17168 int
17169 main (void)
17170 {
17171 return opendir ();
17172   ;
17173   return 0;
17174 }
17175 _ACEOF
17176 for ac_lib in '' dir
17177 do
17178   if test -z "$ac_lib"; then
17179     ac_res="none required"
17180   else
17181     ac_res=-l$ac_lib
17182     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17183   fi
17184   if ac_fn_c_try_link "$LINENO"
17185 then :
17186   ac_cv_search_opendir=$ac_res
17187 fi
17188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17189     conftest$ac_exeext
17190   if test ${ac_cv_search_opendir+y}
17191 then :
17192   break
17193 fi
17194 done
17195 if test ${ac_cv_search_opendir+y}
17196 then :
17197
17198 else $as_nop
17199   ac_cv_search_opendir=no
17200 fi
17201 rm conftest.$ac_ext
17202 LIBS=$ac_func_search_save_LIBS
17203 fi
17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17205 printf "%s\n" "$ac_cv_search_opendir" >&6; }
17206 ac_res=$ac_cv_search_opendir
17207 if test "$ac_res" != no
17208 then :
17209   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17210
17211 fi
17212
17213 else
17214   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17215 printf %s "checking for library containing opendir... " >&6; }
17216 if test ${ac_cv_search_opendir+y}
17217 then :
17218   printf %s "(cached) " >&6
17219 else $as_nop
17220   ac_func_search_save_LIBS=$LIBS
17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222 /* end confdefs.h.  */
17223
17224 /* Override any GCC internal prototype to avoid an error.
17225    Use char because int might match the return type of a GCC
17226    builtin and then its argument prototype would still apply.  */
17227 char opendir ();
17228 int
17229 main (void)
17230 {
17231 return opendir ();
17232   ;
17233   return 0;
17234 }
17235 _ACEOF
17236 for ac_lib in '' x
17237 do
17238   if test -z "$ac_lib"; then
17239     ac_res="none required"
17240   else
17241     ac_res=-l$ac_lib
17242     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17243   fi
17244   if ac_fn_c_try_link "$LINENO"
17245 then :
17246   ac_cv_search_opendir=$ac_res
17247 fi
17248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17249     conftest$ac_exeext
17250   if test ${ac_cv_search_opendir+y}
17251 then :
17252   break
17253 fi
17254 done
17255 if test ${ac_cv_search_opendir+y}
17256 then :
17257
17258 else $as_nop
17259   ac_cv_search_opendir=no
17260 fi
17261 rm conftest.$ac_ext
17262 LIBS=$ac_func_search_save_LIBS
17263 fi
17264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17265 printf "%s\n" "$ac_cv_search_opendir" >&6; }
17266 ac_res=$ac_cv_search_opendir
17267 if test "$ac_res" != no
17268 then :
17269   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17270
17271 fi
17272
17273 fi
17274
17275 # Autoupdate added the next two lines to ensure that your configure
17276 # script's behavior did not change.  They are probably safe to remove.
17277
17278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
17279 printf %s "checking for egrep... " >&6; }
17280 if test ${ac_cv_path_EGREP+y}
17281 then :
17282   printf %s "(cached) " >&6
17283 else $as_nop
17284   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17285    then ac_cv_path_EGREP="$GREP -E"
17286    else
17287      if test -z "$EGREP"; then
17288   ac_path_EGREP_found=false
17289   # Loop through the user's path and test for each of PROGNAME-LIST
17290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17292 do
17293   IFS=$as_save_IFS
17294   case $as_dir in #(((
17295     '') as_dir=./ ;;
17296     */) ;;
17297     *) as_dir=$as_dir/ ;;
17298   esac
17299     for ac_prog in egrep
17300    do
17301     for ac_exec_ext in '' $ac_executable_extensions; do
17302       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
17303       as_fn_executable_p "$ac_path_EGREP" || continue
17304 # Check for GNU ac_path_EGREP and select it if it is found.
17305   # Check for GNU $ac_path_EGREP
17306 case `"$ac_path_EGREP" --version 2>&1` in
17307 *GNU*)
17308   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17309 *)
17310   ac_count=0
17311   printf %s 0123456789 >"conftest.in"
17312   while :
17313   do
17314     cat "conftest.in" "conftest.in" >"conftest.tmp"
17315     mv "conftest.tmp" "conftest.in"
17316     cp "conftest.in" "conftest.nl"
17317     printf "%s\n" 'EGREP' >> "conftest.nl"
17318     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17319     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17320     as_fn_arith $ac_count + 1 && ac_count=$as_val
17321     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17322       # Best one so far, save it but keep looking for a better one
17323       ac_cv_path_EGREP="$ac_path_EGREP"
17324       ac_path_EGREP_max=$ac_count
17325     fi
17326     # 10*(2^10) chars as input seems more than enough
17327     test $ac_count -gt 10 && break
17328   done
17329   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17330 esac
17331
17332       $ac_path_EGREP_found && break 3
17333     done
17334   done
17335   done
17336 IFS=$as_save_IFS
17337   if test -z "$ac_cv_path_EGREP"; then
17338     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
17339   fi
17340 else
17341   ac_cv_path_EGREP=$EGREP
17342 fi
17343
17344    fi
17345 fi
17346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
17347 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
17348  EGREP="$ac_cv_path_EGREP"
17349
17350
17351
17352 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
17353 if test "x$ac_cv_header_dirent_h" = xyes
17354 then :
17355   printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
17356
17357 fi
17358 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
17359 if test "x$ac_cv_header_fcntl_h" = xyes
17360 then :
17361   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
17362
17363 fi
17364 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17365 if test "x$ac_cv_header_stdlib_h" = xyes
17366 then :
17367   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
17368
17369 fi
17370 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
17371 if test "x$ac_cv_header_string_h" = xyes
17372 then :
17373   printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
17374
17375 fi
17376 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17377 if test "x$ac_cv_header_unistd_h" = xyes
17378 then :
17379   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
17380
17381 fi
17382 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
17383 if test "x$ac_cv_header_sys_statvfs_h" = xyes
17384 then :
17385   printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
17386
17387 fi
17388 ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
17389 if test "x$ac_cv_header_sys_vfs_h" = xyes
17390 then :
17391   printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
17392
17393 fi
17394 ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
17395 if test "x$ac_cv_header_sys_statfs_h" = xyes
17396 then :
17397   printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
17398
17399 fi
17400 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
17401 if test "x$ac_cv_header_sys_param_h" = xyes
17402 then :
17403   printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
17404
17405 fi
17406 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
17407 if test "x$ac_cv_header_sys_mount_h" = xyes
17408 then :
17409   printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
17410
17411 fi
17412
17413 # ------ AX CREATE STDINT H -------------------------------------
17414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
17415 printf %s "checking for stdint types... " >&6; }
17416 ac_stdint_h=`echo src/fcstdint.h`
17417 # try to shortcircuit - if the default include path of the compiler
17418 # can find a "stdint.h" header then we assume that all compilers can.
17419 if test ${ac_cv_header_stdint_t+y}
17420 then :
17421   printf %s "(cached) " >&6
17422 else $as_nop
17423
17424 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
17425 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
17426 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
17427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h.  */
17429 #include <stdint.h>
17430 int
17431 main (void)
17432 {
17433 int_least32_t v = 0;
17434   ;
17435   return 0;
17436 }
17437 _ACEOF
17438 if ac_fn_c_try_compile "$LINENO"
17439 then :
17440   ac_cv_stdint_result="(assuming C99 compatible system)"
17441  ac_cv_header_stdint_t="stdint.h";
17442 else $as_nop
17443   ac_cv_header_stdint_t=""
17444 fi
17445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17446 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
17447 CFLAGS="-std=c99"
17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449 /* end confdefs.h.  */
17450 #include <stdint.h>
17451 int
17452 main (void)
17453 {
17454 int_least32_t v = 0;
17455   ;
17456   return 0;
17457 }
17458 _ACEOF
17459 if ac_fn_c_try_compile "$LINENO"
17460 then :
17461   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
17462 printf "%s\n" "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
17463 fi
17464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17465 fi
17466 CXXFLAGS="$old_CXXFLAGS"
17467 CPPFLAGS="$old_CPPFLAGS"
17468 CFLAGS="$old_CFLAGS"
17469 fi
17470
17471
17472 v="... $ac_cv_header_stdint_h"
17473 if test "$ac_stdint_h" = "stdint.h" ; then
17474  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
17475 printf "%s\n" "(are you sure you want them in ./stdint.h?)" >&6; }
17476 elif test "$ac_stdint_h" = "inttypes.h" ; then
17477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
17478 printf "%s\n" "(are you sure you want them in ./inttypes.h?)" >&6; }
17479 elif test "_$ac_cv_header_stdint_t" = "_" ; then
17480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
17481 printf "%s\n" "(putting them into $ac_stdint_h)$v" >&6; }
17482 else
17483  ac_cv_header_stdint="$ac_cv_header_stdint_t"
17484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
17485 printf "%s\n" "$ac_cv_header_stdint (shortcircuit)" >&6; }
17486 fi
17487
17488 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
17489
17490
17491 inttype_headers=`echo  | sed -e 's/,/ /g'`
17492
17493 ac_cv_stdint_result="(no helpful system typedefs seen)"
17494
17495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
17496 printf %s "checking for stdint uintptr_t... " >&6; }
17497 if test ${ac_cv_header_stdint_x+y}
17498 then :
17499   printf %s "(cached) " >&6
17500 else $as_nop
17501
17502  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
17503   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17504 printf "%s\n" "(..)" >&6; }
17505   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
17506   do
17507    unset ac_cv_type_uintptr_t
17508    unset ac_cv_type_uint64_t
17509    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
17510 "
17511 if test "x$ac_cv_type_uintptr_t" = xyes
17512 then :
17513   ac_cv_header_stdint_x=$i
17514 else $as_nop
17515   continue
17516 fi
17517
17518    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
17519 "
17520 if test "x$ac_cv_type_uint64_t" = xyes
17521 then :
17522   and64="/uint64_t"
17523 else $as_nop
17524   and64=""
17525 fi
17526
17527    ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
17528  break
17529   done
17530   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
17531 printf %s "checking for stdint uintptr_t... " >&6; }
17532
17533 fi
17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
17535 printf "%s\n" "$ac_cv_header_stdint_x" >&6; }
17536
17537
17538 if test "_$ac_cv_header_stdint_x" = "_" ; then
17539
17540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
17541 printf %s "checking for stdint uint32_t... " >&6; }
17542 if test ${ac_cv_header_stdint_o+y}
17543 then :
17544   printf %s "(cached) " >&6
17545 else $as_nop
17546
17547  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
17548   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17549 printf "%s\n" "(..)" >&6; }
17550   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
17551   do
17552    unset ac_cv_type_uint32_t
17553    unset ac_cv_type_uint64_t
17554    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
17555 "
17556 if test "x$ac_cv_type_uint32_t" = xyes
17557 then :
17558   ac_cv_header_stdint_o=$i
17559 else $as_nop
17560   continue
17561 fi
17562
17563    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
17564 "
17565 if test "x$ac_cv_type_uint64_t" = xyes
17566 then :
17567   and64="/uint64_t"
17568 else $as_nop
17569   and64=""
17570 fi
17571
17572    ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
17573  break
17574    break;
17575   done
17576   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
17577 printf %s "checking for stdint uint32_t... " >&6; }
17578
17579 fi
17580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
17581 printf "%s\n" "$ac_cv_header_stdint_o" >&6; }
17582
17583 fi
17584
17585 if test "_$ac_cv_header_stdint_x" = "_" ; then
17586 if test "_$ac_cv_header_stdint_o" = "_" ; then
17587
17588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
17589 printf %s "checking for stdint u_int32_t... " >&6; }
17590 if test ${ac_cv_header_stdint_u+y}
17591 then :
17592   printf %s "(cached) " >&6
17593 else $as_nop
17594
17595  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
17596   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17597 printf "%s\n" "(..)" >&6; }
17598   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
17599    unset ac_cv_type_u_int32_t
17600    unset ac_cv_type_u_int64_t
17601    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
17602 "
17603 if test "x$ac_cv_type_u_int32_t" = xyes
17604 then :
17605   ac_cv_header_stdint_u=$i
17606 else $as_nop
17607   continue
17608 fi
17609
17610    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
17611 "
17612 if test "x$ac_cv_type_u_int64_t" = xyes
17613 then :
17614   and64="/u_int64_t"
17615 else $as_nop
17616   and64=""
17617 fi
17618
17619    ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
17620  break
17621    break;
17622   done
17623   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
17624 printf %s "checking for stdint u_int32_t... " >&6; }
17625
17626 fi
17627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
17628 printf "%s\n" "$ac_cv_header_stdint_u" >&6; }
17629
17630 fi fi
17631
17632 if test "_$ac_cv_header_stdint_x" = "_" ; then
17633    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
17634 printf %s "checking for stdint datatype model... " >&6; }
17635    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17636 printf "%s\n" "(..)" >&6; }
17637
17638    # The cast to long int works around a bug in the HP C Compiler
17639 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17640 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17641 # This bug is HP SR number 8606223364.
17642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
17643 printf %s "checking size of char... " >&6; }
17644 if test ${ac_cv_sizeof_char+y}
17645 then :
17646   printf %s "(cached) " >&6
17647 else $as_nop
17648   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"
17649 then :
17650
17651 else $as_nop
17652   if test "$ac_cv_type_char" = yes; then
17653      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17654 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17655 as_fn_error 77 "cannot compute sizeof (char)
17656 See \`config.log' for more details" "$LINENO" 5; }
17657    else
17658      ac_cv_sizeof_char=0
17659    fi
17660 fi
17661
17662 fi
17663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
17664 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
17665
17666
17667
17668 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
17669
17670
17671    # The cast to long int works around a bug in the HP C Compiler
17672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17674 # This bug is HP SR number 8606223364.
17675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
17676 printf %s "checking size of short... " >&6; }
17677 if test ${ac_cv_sizeof_short+y}
17678 then :
17679   printf %s "(cached) " >&6
17680 else $as_nop
17681   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
17682 then :
17683
17684 else $as_nop
17685   if test "$ac_cv_type_short" = yes; then
17686      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17687 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17688 as_fn_error 77 "cannot compute sizeof (short)
17689 See \`config.log' for more details" "$LINENO" 5; }
17690    else
17691      ac_cv_sizeof_short=0
17692    fi
17693 fi
17694
17695 fi
17696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
17697 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
17698
17699
17700
17701 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
17702
17703
17704    # The cast to long int works around a bug in the HP C Compiler
17705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17707 # This bug is HP SR number 8606223364.
17708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17709 printf %s "checking size of int... " >&6; }
17710 if test ${ac_cv_sizeof_int+y}
17711 then :
17712   printf %s "(cached) " >&6
17713 else $as_nop
17714   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
17715 then :
17716
17717 else $as_nop
17718   if test "$ac_cv_type_int" = yes; then
17719      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17720 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17721 as_fn_error 77 "cannot compute sizeof (int)
17722 See \`config.log' for more details" "$LINENO" 5; }
17723    else
17724      ac_cv_sizeof_int=0
17725    fi
17726 fi
17727
17728 fi
17729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17730 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
17731
17732
17733
17734 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
17735
17736
17737    # The cast to long int works around a bug in the HP C Compiler
17738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17740 # This bug is HP SR number 8606223364.
17741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17742 printf %s "checking size of long... " >&6; }
17743 if test ${ac_cv_sizeof_long+y}
17744 then :
17745   printf %s "(cached) " >&6
17746 else $as_nop
17747   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
17748 then :
17749
17750 else $as_nop
17751   if test "$ac_cv_type_long" = yes; then
17752      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17753 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17754 as_fn_error 77 "cannot compute sizeof (long)
17755 See \`config.log' for more details" "$LINENO" 5; }
17756    else
17757      ac_cv_sizeof_long=0
17758    fi
17759 fi
17760
17761 fi
17762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17763 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
17764
17765
17766
17767 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
17768
17769
17770    # The cast to long int works around a bug in the HP C Compiler
17771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17773 # This bug is HP SR number 8606223364.
17774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
17775 printf %s "checking size of void*... " >&6; }
17776 if test ${ac_cv_sizeof_voidp+y}
17777 then :
17778   printf %s "(cached) " >&6
17779 else $as_nop
17780   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"
17781 then :
17782
17783 else $as_nop
17784   if test "$ac_cv_type_voidp" = yes; then
17785      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17786 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17787 as_fn_error 77 "cannot compute sizeof (void*)
17788 See \`config.log' for more details" "$LINENO" 5; }
17789    else
17790      ac_cv_sizeof_voidp=0
17791    fi
17792 fi
17793
17794 fi
17795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
17796 printf "%s\n" "$ac_cv_sizeof_voidp" >&6; }
17797
17798
17799
17800 printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h
17801
17802
17803    ac_cv_char_data_model=""
17804    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
17805    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
17806    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
17807    ac_cv_long_data_model=""
17808    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
17809    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
17810    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
17811    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking data model" >&5
17812 printf %s "checking data model... " >&6; }
17813    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
17814     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
17815     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
17816     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
17817     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
17818     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
17819     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
17820     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
17821     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
17822     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
17823     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
17824     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
17825     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
17826     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
17827     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
17828     222/*|333/*|444/*|666/*|888/*) :
17829                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
17830      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
17831    esac
17832    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
17833 printf "%s\n" "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
17834
17835 fi
17836
17837 if test "_$ac_cv_header_stdint_x" != "_" ; then
17838    ac_cv_header_stdint="$ac_cv_header_stdint_x"
17839 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
17840    ac_cv_header_stdint="$ac_cv_header_stdint_o"
17841 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
17842    ac_cv_header_stdint="$ac_cv_header_stdint_u"
17843 else
17844    ac_cv_header_stdint="stddef.h"
17845 fi
17846
17847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
17848 printf %s "checking for extra inttypes in chosen header... " >&6; }
17849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
17850 printf "%s\n" "($ac_cv_header_stdint)" >&6; }
17851 unset ac_cv_type_int_least32_t
17852 unset ac_cv_type_int_fast32_t
17853 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
17854 "
17855 if test "x$ac_cv_type_int_least32_t" = xyes
17856 then :
17857
17858 fi
17859
17860 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
17861 "
17862 if test "x$ac_cv_type_int_fast32_t" = xyes
17863 then :
17864
17865 fi
17866
17867 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
17868 "
17869 if test "x$ac_cv_type_intmax_t" = xyes
17870 then :
17871
17872 fi
17873
17874
17875 fi # shortcircut to system "stdint.h"
17876 # ------------------ PREPARE VARIABLES ------------------------------
17877 if test "$GCC" = "yes" ; then
17878 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
17879 else
17880 ac_cv_stdint_message="using $CC"
17881 fi
17882
17883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
17884 printf "%s\n" "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
17885
17886 # ----------------- DONE inttypes.h checks START header -------------
17887 ac_config_commands="$ac_config_commands $ac_stdint_h"
17888
17889
17890
17891 # Checks for typedefs, structures, and compiler characteristics.
17892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17893 printf %s "checking for an ANSI C-conforming const... " >&6; }
17894 if test ${ac_cv_c_const+y}
17895 then :
17896   printf %s "(cached) " >&6
17897 else $as_nop
17898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17899 /* end confdefs.h.  */
17900
17901 int
17902 main (void)
17903 {
17904
17905 #ifndef __cplusplus
17906   /* Ultrix mips cc rejects this sort of thing.  */
17907   typedef int charset[2];
17908   const charset cs = { 0, 0 };
17909   /* SunOS 4.1.1 cc rejects this.  */
17910   char const *const *pcpcc;
17911   char **ppc;
17912   /* NEC SVR4.0.2 mips cc rejects this.  */
17913   struct point {int x, y;};
17914   static struct point const zero = {0,0};
17915   /* IBM XL C 1.02.0.0 rejects this.
17916      It does not let you subtract one const X* pointer from another in
17917      an arm of an if-expression whose if-part is not a constant
17918      expression */
17919   const char *g = "string";
17920   pcpcc = &g + (g ? g-g : 0);
17921   /* HPUX 7.0 cc rejects these. */
17922   ++pcpcc;
17923   ppc = (char**) pcpcc;
17924   pcpcc = (char const *const *) ppc;
17925   { /* SCO 3.2v4 cc rejects this sort of thing.  */
17926     char tx;
17927     char *t = &tx;
17928     char const *s = 0 ? (char *) 0 : (char const *) 0;
17929
17930     *t++ = 0;
17931     if (s) return 0;
17932   }
17933   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17934     int x[] = {25, 17};
17935     const int *foo = &x[0];
17936     ++foo;
17937   }
17938   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17939     typedef const int *iptr;
17940     iptr p = 0;
17941     ++p;
17942   }
17943   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
17944        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17945     struct s { int j; const int *ap[3]; } bx;
17946     struct s *b = &bx; b->j = 5;
17947   }
17948   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17949     const int foo = 10;
17950     if (!foo) return 0;
17951   }
17952   return !cs[0] && !zero.x;
17953 #endif
17954
17955   ;
17956   return 0;
17957 }
17958 _ACEOF
17959 if ac_fn_c_try_compile "$LINENO"
17960 then :
17961   ac_cv_c_const=yes
17962 else $as_nop
17963   ac_cv_c_const=no
17964 fi
17965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17966 fi
17967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17968 printf "%s\n" "$ac_cv_c_const" >&6; }
17969 if test $ac_cv_c_const = no; then
17970
17971 printf "%s\n" "#define const /**/" >>confdefs.h
17972
17973 fi
17974
17975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17976 printf %s "checking for inline... " >&6; }
17977 if test ${ac_cv_c_inline+y}
17978 then :
17979   printf %s "(cached) " >&6
17980 else $as_nop
17981   ac_cv_c_inline=no
17982 for ac_kw in inline __inline__ __inline; do
17983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h.  */
17985 #ifndef __cplusplus
17986 typedef int foo_t;
17987 static $ac_kw foo_t static_foo (void) {return 0; }
17988 $ac_kw foo_t foo (void) {return 0; }
17989 #endif
17990
17991 _ACEOF
17992 if ac_fn_c_try_compile "$LINENO"
17993 then :
17994   ac_cv_c_inline=$ac_kw
17995 fi
17996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17997   test "$ac_cv_c_inline" != no && break
17998 done
17999
18000 fi
18001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18002 printf "%s\n" "$ac_cv_c_inline" >&6; }
18003
18004 case $ac_cv_c_inline in
18005   inline | yes) ;;
18006   *)
18007     case $ac_cv_c_inline in
18008       no) ac_val=;;
18009       *) ac_val=$ac_cv_c_inline;;
18010     esac
18011     cat >>confdefs.h <<_ACEOF
18012 #ifndef __cplusplus
18013 #define inline $ac_val
18014 #endif
18015 _ACEOF
18016     ;;
18017 esac
18018
18019
18020   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
18021 printf %s "checking for flexible array members... " >&6; }
18022 if test ${ac_cv_c_flexmember+y}
18023 then :
18024   printf %s "(cached) " >&6
18025 else $as_nop
18026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18027 /* end confdefs.h.  */
18028 #include <stdlib.h>
18029             #include <stdio.h>
18030             #include <stddef.h>
18031             struct s { int n; double d[]; };
18032 int
18033 main (void)
18034 {
18035 int m = getchar ();
18036             struct s *p = (struct s *) malloc (offsetof (struct s, d)
18037                                                + m * sizeof (double));
18038             p->d[0] = 0.0;
18039             return p->d != (double *) NULL;
18040   ;
18041   return 0;
18042 }
18043 _ACEOF
18044 if ac_fn_c_try_compile "$LINENO"
18045 then :
18046   ac_cv_c_flexmember=yes
18047 else $as_nop
18048   ac_cv_c_flexmember=no
18049 fi
18050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18051 fi
18052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
18053 printf "%s\n" "$ac_cv_c_flexmember" >&6; }
18054   if test $ac_cv_c_flexmember = yes; then
18055
18056 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
18057
18058   else
18059     printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
18060
18061   fi
18062
18063
18064   ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
18065 "
18066 if test "x$ac_cv_type_pid_t" = xyes
18067 then :
18068
18069 else $as_nop
18070                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h.  */
18072
18073           #if defined _WIN64 && !defined __CYGWIN__
18074           LLP64
18075           #endif
18076
18077 int
18078 main (void)
18079 {
18080
18081   ;
18082   return 0;
18083 }
18084
18085 _ACEOF
18086 if ac_fn_c_try_compile "$LINENO"
18087 then :
18088   ac_pid_type='int'
18089 else $as_nop
18090   ac_pid_type='__int64'
18091 fi
18092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18093
18094 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
18095
18096
18097 fi
18098
18099
18100
18101 # Checks for library functions.
18102 ac_func=
18103 for ac_item in $ac_func_c_list
18104 do
18105   if test $ac_func; then
18106     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
18107     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
18108       echo "#define $ac_item 1" >> confdefs.h
18109     fi
18110     ac_func=
18111   else
18112     ac_func=$ac_item
18113   fi
18114 done
18115
18116 if test "x$ac_cv_func_vprintf" = xno
18117 then :
18118   ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
18119 if test "x$ac_cv_func__doprnt" = xyes
18120 then :
18121
18122 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
18123
18124 fi
18125
18126 fi
18127
18128
18129
18130
18131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18132 printf %s "checking for working mmap... " >&6; }
18133 if test ${ac_cv_func_mmap_fixed_mapped+y}
18134 then :
18135   printf %s "(cached) " >&6
18136 else $as_nop
18137   if test "$cross_compiling" = yes
18138 then :
18139   case "$host_os" in # ((
18140                           # Guess yes on platforms where we know the result.
18141                   linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
18142                           # If we don't know, assume the worst.
18143                   *)      ac_cv_func_mmap_fixed_mapped=no ;;
18144                 esac
18145 else $as_nop
18146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h.  */
18148 $ac_includes_default
18149 /* malloc might have been renamed as rpl_malloc. */
18150 #undef malloc
18151
18152 /* Thanks to Mike Haertel and Jim Avera for this test.
18153    Here is a matrix of mmap possibilities:
18154         mmap private not fixed
18155         mmap private fixed at somewhere currently unmapped
18156         mmap private fixed at somewhere already mapped
18157         mmap shared not fixed
18158         mmap shared fixed at somewhere currently unmapped
18159         mmap shared fixed at somewhere already mapped
18160    For private mappings, we should verify that changes cannot be read()
18161    back from the file, nor mmap's back from the file at a different
18162    address.  (There have been systems where private was not correctly
18163    implemented like the infamous i386 svr4.0, and systems where the
18164    VM page cache was not coherent with the file system buffer cache
18165    like early versions of FreeBSD and possibly contemporary NetBSD.)
18166    For shared mappings, we should conversely verify that changes get
18167    propagated back to all the places they're supposed to be.
18168
18169    Grep wants private fixed already mapped.
18170    The main things grep needs to know about mmap are:
18171    * does it exist and is it safe to write into the mmap'd area
18172    * how to use it (BSD variants)  */
18173
18174 #include <fcntl.h>
18175 #include <sys/mman.h>
18176
18177 /* This mess was copied from the GNU getpagesize.h.  */
18178 #ifndef HAVE_GETPAGESIZE
18179 # ifdef _SC_PAGESIZE
18180 #  define getpagesize() sysconf(_SC_PAGESIZE)
18181 # else /* no _SC_PAGESIZE */
18182 #  ifdef HAVE_SYS_PARAM_H
18183 #   include <sys/param.h>
18184 #   ifdef EXEC_PAGESIZE
18185 #    define getpagesize() EXEC_PAGESIZE
18186 #   else /* no EXEC_PAGESIZE */
18187 #    ifdef NBPG
18188 #     define getpagesize() NBPG * CLSIZE
18189 #     ifndef CLSIZE
18190 #      define CLSIZE 1
18191 #     endif /* no CLSIZE */
18192 #    else /* no NBPG */
18193 #     ifdef NBPC
18194 #      define getpagesize() NBPC
18195 #     else /* no NBPC */
18196 #      ifdef PAGESIZE
18197 #       define getpagesize() PAGESIZE
18198 #      endif /* PAGESIZE */
18199 #     endif /* no NBPC */
18200 #    endif /* no NBPG */
18201 #   endif /* no EXEC_PAGESIZE */
18202 #  else /* no HAVE_SYS_PARAM_H */
18203 #   define getpagesize() 8192   /* punt totally */
18204 #  endif /* no HAVE_SYS_PARAM_H */
18205 # endif /* no _SC_PAGESIZE */
18206
18207 #endif /* no HAVE_GETPAGESIZE */
18208
18209 int
18210 main (void)
18211 {
18212   char *data, *data2, *data3;
18213   const char *cdata2;
18214   int i, pagesize;
18215   int fd, fd2;
18216
18217   pagesize = getpagesize ();
18218
18219   /* First, make a file with some known garbage in it. */
18220   data = (char *) malloc (pagesize);
18221   if (!data)
18222     return 1;
18223   for (i = 0; i < pagesize; ++i)
18224     *(data + i) = rand ();
18225   umask (0);
18226   fd = creat ("conftest.mmap", 0600);
18227   if (fd < 0)
18228     return 2;
18229   if (write (fd, data, pagesize) != pagesize)
18230     return 3;
18231   close (fd);
18232
18233   /* Next, check that the tail of a page is zero-filled.  File must have
18234      non-zero length, otherwise we risk SIGBUS for entire page.  */
18235   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18236   if (fd2 < 0)
18237     return 4;
18238   cdata2 = "";
18239   if (write (fd2, cdata2, 1) != 1)
18240     return 5;
18241   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18242   if (data2 == MAP_FAILED)
18243     return 6;
18244   for (i = 0; i < pagesize; ++i)
18245     if (*(data2 + i))
18246       return 7;
18247   close (fd2);
18248   if (munmap (data2, pagesize))
18249     return 8;
18250
18251   /* Next, try to mmap the file at a fixed address which already has
18252      something else allocated at it.  If we can, also make sure that
18253      we see the same garbage.  */
18254   fd = open ("conftest.mmap", O_RDWR);
18255   if (fd < 0)
18256     return 9;
18257   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18258                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18259     return 10;
18260   for (i = 0; i < pagesize; ++i)
18261     if (*(data + i) != *(data2 + i))
18262       return 11;
18263
18264   /* Finally, make sure that changes to the mapped area do not
18265      percolate back to the file as seen by read().  (This is a bug on
18266      some variants of i386 svr4.0.)  */
18267   for (i = 0; i < pagesize; ++i)
18268     *(data2 + i) = *(data2 + i) + 1;
18269   data3 = (char *) malloc (pagesize);
18270   if (!data3)
18271     return 12;
18272   if (read (fd, data3, pagesize) != pagesize)
18273     return 13;
18274   for (i = 0; i < pagesize; ++i)
18275     if (*(data + i) != *(data3 + i))
18276       return 14;
18277   close (fd);
18278   free (data);
18279   free (data3);
18280   return 0;
18281 }
18282 _ACEOF
18283 if ac_fn_c_try_run "$LINENO"
18284 then :
18285   ac_cv_func_mmap_fixed_mapped=yes
18286 else $as_nop
18287   ac_cv_func_mmap_fixed_mapped=no
18288 fi
18289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18290   conftest.$ac_objext conftest.beam conftest.$ac_ext
18291 fi
18292
18293 fi
18294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18295 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
18296 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18297
18298 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
18299
18300 fi
18301 rm -f conftest.mmap conftest.txt
18302
18303 ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"
18304 if test "x$ac_cv_func_link" = xyes
18305 then :
18306   printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
18307
18308 fi
18309 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
18310 if test "x$ac_cv_func_mkstemp" = xyes
18311 then :
18312   printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
18313
18314 fi
18315 ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
18316 if test "x$ac_cv_func_mkostemp" = xyes
18317 then :
18318   printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
18319
18320 fi
18321 ac_fn_c_check_func "$LINENO" "_mktemp_s" "ac_cv_func__mktemp_s"
18322 if test "x$ac_cv_func__mktemp_s" = xyes
18323 then :
18324   printf "%s\n" "#define HAVE__MKTEMP_S 1" >>confdefs.h
18325
18326 fi
18327 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
18328 if test "x$ac_cv_func_mkdtemp" = xyes
18329 then :
18330   printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
18331
18332 fi
18333 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
18334 if test "x$ac_cv_func_getopt" = xyes
18335 then :
18336   printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
18337
18338 fi
18339 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
18340 if test "x$ac_cv_func_getopt_long" = xyes
18341 then :
18342   printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
18343
18344 fi
18345 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
18346 if test "x$ac_cv_func_getprogname" = xyes
18347 then :
18348   printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h
18349
18350 fi
18351 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
18352 if test "x$ac_cv_func_getexecname" = xyes
18353 then :
18354   printf "%s\n" "#define HAVE_GETEXECNAME 1" >>confdefs.h
18355
18356 fi
18357 ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand"
18358 if test "x$ac_cv_func_rand" = xyes
18359 then :
18360   printf "%s\n" "#define HAVE_RAND 1" >>confdefs.h
18361
18362 fi
18363 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
18364 if test "x$ac_cv_func_random" = xyes
18365 then :
18366   printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
18367
18368 fi
18369 ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
18370 if test "x$ac_cv_func_lrand48" = xyes
18371 then :
18372   printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h
18373
18374 fi
18375 ac_fn_c_check_func "$LINENO" "random_r" "ac_cv_func_random_r"
18376 if test "x$ac_cv_func_random_r" = xyes
18377 then :
18378   printf "%s\n" "#define HAVE_RANDOM_R 1" >>confdefs.h
18379
18380 fi
18381 ac_fn_c_check_func "$LINENO" "rand_r" "ac_cv_func_rand_r"
18382 if test "x$ac_cv_func_rand_r" = xyes
18383 then :
18384   printf "%s\n" "#define HAVE_RAND_R 1" >>confdefs.h
18385
18386 fi
18387 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
18388 if test "x$ac_cv_func_readlink" = xyes
18389 then :
18390   printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
18391
18392 fi
18393 ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"
18394 if test "x$ac_cv_func_fstatvfs" = xyes
18395 then :
18396   printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h
18397
18398 fi
18399 ac_fn_c_check_func "$LINENO" "fstatfs" "ac_cv_func_fstatfs"
18400 if test "x$ac_cv_func_fstatfs" = xyes
18401 then :
18402   printf "%s\n" "#define HAVE_FSTATFS 1" >>confdefs.h
18403
18404 fi
18405 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
18406 if test "x$ac_cv_func_lstat" = xyes
18407 then :
18408   printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
18409
18410 fi
18411 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
18412 if test "x$ac_cv_func_strerror" = xyes
18413 then :
18414   printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
18415
18416 fi
18417 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
18418 if test "x$ac_cv_func_strerror_r" = xyes
18419 then :
18420   printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
18421
18422 fi
18423
18424
18425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise in fcntl.h" >&5
18426 printf %s "checking for posix_fadvise in fcntl.h... " >&6; }
18427 if test ${ac_cv_func_posix_fadvise+y}
18428 then :
18429   printf %s "(cached) " >&6
18430 else $as_nop
18431   symbol="[^a-zA-Z_0-9]posix_fadvise[^a-zA-Z_0-9]"
18432 ac_found=no
18433 for ac_header in fcntl.h ; do
18434   ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' `
18435   if test $ac_found != "yes" ; then
18436       if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18437             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h.  */
18439 #include <$ac_header>
18440
18441 _ACEOF
18442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18443   $EGREP "$symbol" >/dev/null 2>&1
18444 then :
18445   ac_found="$ac_header"
18446 fi
18447 rm -rf conftest*
18448
18449       fi
18450   fi
18451 done
18452 if test "$ac_found" != "no" ; then
18453   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_found" >&5
18454 printf "%s\n" "$ac_found" >&6; }
18455   fc_func_posix_fadvise=1
18456 else
18457   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18458 printf "%s\n" "no" >&6; }
18459   fc_func_posix_fadvise=0
18460 fi
18461
18462 fi
18463
18464
18465 printf "%s\n" "#define HAVE_POSIX_FADVISE $fc_func_posix_fadvise" >>confdefs.h
18466
18467
18468 #
18469 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
18470 "
18471 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
18472 then :
18473
18474 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
18475
18476
18477 fi
18478
18479
18480 #
18481 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
18482         ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
18483 "
18484 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes
18485 then :
18486
18487 printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_BASETYPE 1" >>confdefs.h
18488
18489
18490 fi
18491 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
18492 "
18493 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes
18494 then :
18495
18496 printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1" >>confdefs.h
18497
18498
18499 fi
18500
18501 fi
18502 if test "x$ac_cv_func_fstatfs" = "xyes"; then
18503         ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
18504 #ifdef HAVE_SYS_VFS_H
18505 #include <sys/vfs.h>
18506 #endif
18507 #ifdef HAVE_SYS_STATFS_H
18508 #include <sys/statfs.h>
18509 #endif
18510 #ifdef HAVE_SYS_PARAM_H
18511 #include <sys/param.h>
18512 #endif
18513 #ifdef HAVE_SYS_MOUNT_H
18514 #include <sys/mount.h>
18515 #endif
18516 "
18517 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes
18518 then :
18519
18520 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FLAGS 1" >>confdefs.h
18521
18522
18523 fi
18524 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
18525 #ifdef HAVE_SYS_VFS_H
18526 #include <sys/vfs.h>
18527 #endif
18528 #ifdef HAVE_SYS_STATFS_H
18529 #include <sys/statfs.h>
18530 #endif
18531 #ifdef HAVE_SYS_PARAM_H
18532 #include <sys/param.h>
18533 #endif
18534 #ifdef HAVE_SYS_MOUNT_H
18535 #include <sys/mount.h>
18536 #endif
18537 "
18538 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes
18539 then :
18540
18541 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1" >>confdefs.h
18542
18543
18544 fi
18545
18546 fi
18547 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
18548 "
18549 if test "x$ac_cv_member_struct_dirent_d_type" = xyes
18550 then :
18551
18552 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
18553
18554
18555 fi
18556
18557
18558 # Check the argument type of the gperf hash/lookup function
18559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking The type of len parameter of gperf hash/lookup function" >&5
18560 printf %s "checking The type of len parameter of gperf hash/lookup function... " >&6; }
18561 fc_gperf_test="$(echo 'foo' | gperf -L ANSI-C)"
18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h.  */
18564
18565         #include <string.h>
18566
18567         const char *in_word_set(register const char *, register size_t);
18568         $fc_gperf_test
18569
18570 int
18571 main (void)
18572 {
18573
18574   ;
18575   return 0;
18576 }
18577 _ACEOF
18578 if ac_fn_c_try_compile "$LINENO"
18579 then :
18580   FC_GPERF_SIZE_T=size_t
18581 else $as_nop
18582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583 /* end confdefs.h.  */
18584
18585                 #include <string.h>
18586
18587                 const char *in_word_set(register const char *, register unsigned int);
18588                 $fc_gperf_test
18589
18590 int
18591 main (void)
18592 {
18593
18594   ;
18595   return 0;
18596 }
18597 _ACEOF
18598 if ac_fn_c_try_compile "$LINENO"
18599 then :
18600   FC_GPERF_SIZE_T="unsigned int"
18601 else $as_nop
18602   as_fn_error $? "Unable to determine the type of the len parameter of the gperf hash/lookup function" "$LINENO" 5
18603
18604 fi
18605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18606 fi
18607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18608
18609 printf "%s\n" "#define FC_GPERF_SIZE_T $FC_GPERF_SIZE_T" >>confdefs.h
18610
18611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC_GPERF_SIZE_T" >&5
18612 printf "%s\n" "$FC_GPERF_SIZE_T" >&6; }
18613
18614 #
18615 # Checks for iconv
18616 #
18617 # Check whether --enable-iconv was given.
18618 if test ${enable_iconv+y}
18619 then :
18620   enableval=$enable_iconv;
18621 else $as_nop
18622   enable_iconv=no
18623 fi
18624
18625
18626 # Check whether --with-libiconv was given.
18627 if test ${with_libiconv+y}
18628 then :
18629   withval=$with_libiconv; if test "x$withval" = "xyes"; then
18630                 libiconv_prefix=$prefix
18631          else
18632                 libiconv_prefix=$withval
18633          fi
18634 else $as_nop
18635   libiconv_prefix=auto
18636 fi
18637
18638
18639 # Check whether --with-libiconv-includes was given.
18640 if test ${with_libiconv_includes+y}
18641 then :
18642   withval=$with_libiconv_includes; libiconv_includes=$withval
18643 else $as_nop
18644   libiconv_includes=auto
18645 fi
18646
18647
18648 # Check whether --with-libiconv-lib was given.
18649 if test ${with_libiconv_lib+y}
18650 then :
18651   withval=$with_libiconv_lib; libiconv_lib=$withval
18652 else $as_nop
18653   libiconv_lib=auto
18654 fi
18655
18656
18657 # if no libiconv,libiconv-includes,libiconv-lib are specified,
18658 # libc's iconv has a priority.
18659 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
18660         libiconv_cflags="-I${libiconv_includes}"
18661 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
18662         libiconv_cflags="-I${libiconv_prefix}/include"
18663 else
18664         libiconv_cflags=""
18665 fi
18666 libiconv_libs=""
18667 if test "x$libiconv_cflags" != "x"; then
18668         if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
18669                 libiconv_libs="-L${libiconv_lib} -liconv"
18670         elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
18671                 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
18672         else
18673                 libiconv_libs="-liconv"
18674         fi
18675 fi
18676
18677 use_iconv=0
18678 if test "x$enable_iconv" != "xno"; then
18679         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
18680 printf %s "checking for a usable iconv... " >&6; }
18681         if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
18682                 iconvsaved_CFLAGS="$CFLAGS"
18683                 iconvsaved_LIBS="$LIBS"
18684                 CFLAGS="$CFLAGS $libiconv_cflags"
18685                 LIBS="$LIBS $libiconv_libs"
18686
18687                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h.  */
18689 #include <iconv.h>
18690 int
18691 main (void)
18692 {
18693 iconv_open ("from", "to");
18694   ;
18695   return 0;
18696 }
18697 _ACEOF
18698 if ac_fn_c_try_link "$LINENO"
18699 then :
18700   iconv_type="libiconv"
18701                          use_iconv=1
18702                          ICONV_CFLAGS="$libiconv_cflags"
18703                          ICONV_LIBS="$libiconv_libs"
18704
18705 else $as_nop
18706   use_iconv=0
18707 fi
18708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18709     conftest$ac_exeext conftest.$ac_ext
18710
18711                 CFLAGS="$iconvsaved_CFLAGS"
18712                 LIBS="$iconvsaved_LIBS"
18713         fi
18714         if test "x$use_iconv" = "x0"; then
18715                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h.  */
18717 #include <iconv.h>
18718 int
18719 main (void)
18720 {
18721 iconv_open ("from", "to");
18722   ;
18723   return 0;
18724 }
18725 _ACEOF
18726 if ac_fn_c_try_link "$LINENO"
18727 then :
18728   iconv_type="libc"
18729                          use_iconv=1
18730 else $as_nop
18731   iconv_type="not found"
18732                          use_iconv=0
18733 fi
18734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18735     conftest$ac_exeext conftest.$ac_ext
18736         fi
18737
18738         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
18739 printf "%s\n" "$iconv_type" >&6; }
18740
18741
18742 fi
18743
18744 printf "%s\n" "#define USE_ICONV $use_iconv" >>confdefs.h
18745
18746 #
18747 # Checks for FreeType
18748 #
18749
18750 pkg_failed=no
18751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18752 printf %s "checking for FREETYPE... " >&6; }
18753
18754 if test -n "$FREETYPE_CFLAGS"; then
18755     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18756  elif test -n "$PKG_CONFIG"; then
18757     if test -n "$PKG_CONFIG" && \
18758     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
18759   ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
18760   ac_status=$?
18761   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18762   test $ac_status = 0; }; then
18763   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 21.0.15" 2>/dev/null`
18764                       test "x$?" != "x0" && pkg_failed=yes
18765 else
18766   pkg_failed=yes
18767 fi
18768  else
18769     pkg_failed=untried
18770 fi
18771 if test -n "$FREETYPE_LIBS"; then
18772     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18773  elif test -n "$PKG_CONFIG"; then
18774     if test -n "$PKG_CONFIG" && \
18775     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
18776   ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
18777   ac_status=$?
18778   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18779   test $ac_status = 0; }; then
18780   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 21.0.15" 2>/dev/null`
18781                       test "x$?" != "x0" && pkg_failed=yes
18782 else
18783   pkg_failed=yes
18784 fi
18785  else
18786     pkg_failed=untried
18787 fi
18788
18789
18790
18791 if test $pkg_failed = yes; then
18792         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18793 printf "%s\n" "no" >&6; }
18794
18795 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18796         _pkg_short_errors_supported=yes
18797 else
18798         _pkg_short_errors_supported=no
18799 fi
18800         if test $_pkg_short_errors_supported = yes; then
18801                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
18802         else
18803                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
18804         fi
18805         # Put the nasty error message in config.log where it belongs
18806         echo "$FREETYPE_PKG_ERRORS" >&5
18807
18808         as_fn_error $? "Package requirements (freetype2 >= 21.0.15) were not met:
18809
18810 $FREETYPE_PKG_ERRORS
18811
18812 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18813 installed software in a non-standard prefix.
18814
18815 Alternatively, you may set the environment variables FREETYPE_CFLAGS
18816 and FREETYPE_LIBS to avoid the need to call pkg-config.
18817 See the pkg-config man page for more details." "$LINENO" 5
18818 elif test $pkg_failed = untried; then
18819         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18820 printf "%s\n" "no" >&6; }
18821         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18822 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18823 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18824 is in your PATH or set the PKG_CONFIG environment variable to the full
18825 path to pkg-config.
18826
18827 Alternatively, you may set the environment variables FREETYPE_CFLAGS
18828 and FREETYPE_LIBS to avoid the need to call pkg-config.
18829 See the pkg-config man page for more details.
18830
18831 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18832 See \`config.log' for more details" "$LINENO" 5; }
18833 else
18834         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18835         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18836         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18837 printf "%s\n" "yes" >&6; }
18838
18839 fi
18840 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2 >= 21.0.15"
18841
18842
18843
18844
18845 fontconfig_save_libs="$LIBS"
18846 fontconfig_save_cflags="$CFLAGS"
18847 LIBS="$LIBS $FREETYPE_LIBS"
18848 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
18849 ac_fn_c_check_func "$LINENO" "FT_Get_BDF_Property" "ac_cv_func_FT_Get_BDF_Property"
18850 if test "x$ac_cv_func_FT_Get_BDF_Property" = xyes
18851 then :
18852   printf "%s\n" "#define HAVE_FT_GET_BDF_PROPERTY 1" >>confdefs.h
18853
18854 fi
18855 ac_fn_c_check_func "$LINENO" "FT_Get_PS_Font_Info" "ac_cv_func_FT_Get_PS_Font_Info"
18856 if test "x$ac_cv_func_FT_Get_PS_Font_Info" = xyes
18857 then :
18858   printf "%s\n" "#define HAVE_FT_GET_PS_FONT_INFO 1" >>confdefs.h
18859
18860 fi
18861 ac_fn_c_check_func "$LINENO" "FT_Has_PS_Glyph_Names" "ac_cv_func_FT_Has_PS_Glyph_Names"
18862 if test "x$ac_cv_func_FT_Has_PS_Glyph_Names" = xyes
18863 then :
18864   printf "%s\n" "#define HAVE_FT_HAS_PS_GLYPH_NAMES 1" >>confdefs.h
18865
18866 fi
18867 ac_fn_c_check_func "$LINENO" "FT_Get_X11_Font_Format" "ac_cv_func_FT_Get_X11_Font_Format"
18868 if test "x$ac_cv_func_FT_Get_X11_Font_Format" = xyes
18869 then :
18870   printf "%s\n" "#define HAVE_FT_GET_X11_FONT_FORMAT 1" >>confdefs.h
18871
18872 fi
18873 ac_fn_c_check_func "$LINENO" "FT_Done_MM_Var" "ac_cv_func_FT_Done_MM_Var"
18874 if test "x$ac_cv_func_FT_Done_MM_Var" = xyes
18875 then :
18876   printf "%s\n" "#define HAVE_FT_DONE_MM_VAR 1" >>confdefs.h
18877
18878 fi
18879
18880
18881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18882 /* end confdefs.h.  */
18883
18884         #include <ft2build.h>
18885         #include FT_CONFIG_OPTIONS_H
18886         #ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
18887         #  error "No pcf long family names support"
18888         #endif
18889
18890 _ACEOF
18891 if ac_fn_c_try_compile "$LINENO"
18892 then :
18893   have_pcf_long_family_names=yes
18894 else $as_nop
18895   have_pcf_long_family_names=no
18896 fi
18897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18898  if test "x$have_pcf_long_family_names" = xyes; then
18899   FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE=
18900   FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE='#'
18901 else
18902   FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE='#'
18903   FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE=
18904 fi
18905
18906
18907 LIBS="$fontconfig_save_libs"
18908 CFLAGS="$fontconfig_save_cflags"
18909
18910 #
18911 # Check for uuid
18912 #
18913 if test "$os_win32" != "yes"; then
18914         use_pkgconfig_for_uuid=yes
18915         if test -n "${UUID_LIBS}"; then
18916                 save_UUID_LIBS=$UUID_LIBS
18917         fi
18918
18919 pkg_failed=no
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UUID" >&5
18921 $as_echo_n "checking for UUID... " >&6; }
18922
18923 if test -n "$UUID_CFLAGS"; then
18924     pkg_cv_UUID_CFLAGS="$UUID_CFLAGS"
18925  elif test -n "$PKG_CONFIG"; then
18926     if test -n "$PKG_CONFIG" && \
18927     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
18928   ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
18929   ac_status=$?
18930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18931   test $ac_status = 0; }; then
18932   pkg_cv_UUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
18933                       test "x$?" != "x0" && pkg_failed=yes
18934 else
18935   pkg_failed=yes
18936 fi
18937  else
18938     pkg_failed=untried
18939 fi
18940 if test -n "$UUID_LIBS"; then
18941     pkg_cv_UUID_LIBS="$UUID_LIBS"
18942  elif test -n "$PKG_CONFIG"; then
18943     if test -n "$PKG_CONFIG" && \
18944     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
18945   ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
18946   ac_status=$?
18947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18948   test $ac_status = 0; }; then
18949   pkg_cv_UUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
18950                       test "x$?" != "x0" && pkg_failed=yes
18951 else
18952   pkg_failed=yes
18953 fi
18954  else
18955     pkg_failed=untried
18956 fi
18957
18958
18959
18960 if test $pkg_failed = yes; then
18961         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18962 $as_echo "no" >&6; }
18963
18964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18965         _pkg_short_errors_supported=yes
18966 else
18967         _pkg_short_errors_supported=no
18968 fi
18969         if test $_pkg_short_errors_supported = yes; then
18970                 UUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
18971         else
18972                 UUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
18973         fi
18974         # Put the nasty error message in config.log where it belongs
18975         echo "$UUID_PKG_ERRORS" >&5
18976
18977         use_pkgconfig_for_uuid=no
18978 elif test $pkg_failed = untried; then
18979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18980 $as_echo "no" >&6; }
18981         use_pkgconfig_for_uuid=no
18982 else
18983         UUID_CFLAGS=$pkg_cv_UUID_CFLAGS
18984         UUID_LIBS=$pkg_cv_UUID_LIBS
18985         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18986 $as_echo "yes" >&6; }
18987         use_pkgconfig_for_uuid=yes
18988 fi
18989         if test "x$use_pkgconfig_for_uuid" = "xno"; then
18990                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where uuid functions comes from" >&5
18991 $as_echo_n "checking where uuid functions comes from... " >&6; }
18992                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18993 /* end confdefs.h.  */
18994 #include <uuid/uuid.h>
18995 int
18996 main ()
18997 {
18998 uuid_t a; uuid_generate(a);
18999   ;
19000   return 0;
19001 }
19002 _ACEOF
19003 if ac_fn_c_try_link "$LINENO"; then :
19004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: builtin" >&5
19005 $as_echo "builtin" >&6; }
19006                          UUID_CFLAGS=""
19007                          UUID_LIBS=""
19008
19009 else
19010   as_fn_error $? "
19011 *** uuid is required. install util-linux.
19012                         " "$LINENO" 5
19013 fi
19014 rm -f core conftest.err conftest.$ac_objext \
19015     conftest$ac_exeext conftest.$ac_ext
19016         else
19017                 if test -z "${save_UUID_LIBS+x}" && test "x${UUID_LIBS}" != "x"; then
19018                         PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY uuid"
19019                 fi
19020         fi
19021 else
19022         UUID_CFLAGS=""
19023         UUID_LIBS=""
19024 fi
19025
19026 #
19027 # Check expat configuration
19028 #
19029
19030 # Check whether --with-expat was given.
19031 if test ${with_expat+y}
19032 then :
19033   withval=$with_expat; expat_prefix=$withval
19034 else $as_nop
19035   expat_prefix=auto
19036 fi
19037
19038
19039 # Check whether --with-expat-includes was given.
19040 if test ${with_expat_includes+y}
19041 then :
19042   withval=$with_expat_includes; expat_includes=$withval
19043 else $as_nop
19044   expat_includes=auto
19045 fi
19046
19047
19048 # Check whether --with-expat-lib was given.
19049 if test ${with_expat_lib+y}
19050 then :
19051   withval=$with_expat_lib; expat_lib=$withval
19052 else $as_nop
19053   expat_lib=auto
19054 fi
19055
19056
19057 if test "$enable_libxml2" != "yes"; then
19058         use_pkgconfig_for_expat=yes
19059         if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
19060
19061 pkg_failed=no
19062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
19063 printf %s "checking for EXPAT... " >&6; }
19064
19065 if test -n "$EXPAT_CFLAGS"; then
19066     pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
19067  elif test -n "$PKG_CONFIG"; then
19068     if test -n "$PKG_CONFIG" && \
19069     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
19070   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
19071   ac_status=$?
19072   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19073   test $ac_status = 0; }; then
19074   pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
19075                       test "x$?" != "x0" && pkg_failed=yes
19076 else
19077   pkg_failed=yes
19078 fi
19079  else
19080     pkg_failed=untried
19081 fi
19082 if test -n "$EXPAT_LIBS"; then
19083     pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
19084  elif test -n "$PKG_CONFIG"; then
19085     if test -n "$PKG_CONFIG" && \
19086     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
19087   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
19088   ac_status=$?
19089   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19090   test $ac_status = 0; }; then
19091   pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
19092                       test "x$?" != "x0" && pkg_failed=yes
19093 else
19094   pkg_failed=yes
19095 fi
19096  else
19097     pkg_failed=untried
19098 fi
19099
19100
19101
19102 if test $pkg_failed = yes; then
19103         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19104 printf "%s\n" "no" >&6; }
19105
19106 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19107         _pkg_short_errors_supported=yes
19108 else
19109         _pkg_short_errors_supported=no
19110 fi
19111         if test $_pkg_short_errors_supported = yes; then
19112                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
19113         else
19114                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
19115         fi
19116         # Put the nasty error message in config.log where it belongs
19117         echo "$EXPAT_PKG_ERRORS" >&5
19118
19119         use_pkgconfig_for_expat=no
19120 elif test $pkg_failed = untried; then
19121         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19122 printf "%s\n" "no" >&6; }
19123         use_pkgconfig_for_expat=no
19124 else
19125         EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
19126         EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
19127         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19128 printf "%s\n" "yes" >&6; }
19129
19130 fi
19131         else
19132                 use_pkgconfig_for_expat=no
19133         fi
19134         if test "x$use_pkgconfig_for_expat" = "xno"; then
19135                 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
19136                         EXPAT_CFLAGS="-I${expat_includes}"
19137                 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
19138                         EXPAT_CFLAGS="-I${expat_prefix}/include"
19139                 else
19140                         EXPAT_CFLAGS=""
19141                 fi
19142                 if test "$expat_lib" != "auto"; then
19143                         EXPAT_LIBS="-L${expat_lib} -lexpat"
19144                 elif test "$expat_prefix" != "auto"; then
19145                         EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
19146                 else
19147                         EXPAT_LIBS="-lexpat"
19148                 fi
19149                 PKG_EXPAT_CFLAGS=$EXPAT_CFLAGS
19150                 PKG_EXPAT_LIBS=$EXPAT_LIBS
19151         else
19152                 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
19153                 PKG_EXPAT_CFLAGS=
19154                 PKG_EXPAT_LIBS=
19155         fi
19156
19157         expatsaved_CPPFLAGS="$CPPFLAGS"
19158         expatsaved_LIBS="$LIBS"
19159         CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
19160         LIBS="$LIBS $EXPAT_LIBS"
19161
19162         ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
19163 if test "x$ac_cv_header_expat_h" = xyes
19164 then :
19165
19166 fi
19167
19168         if test "$ac_cv_header_expat_h" = "no"; then
19169                 ac_fn_c_check_header_compile "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
19170 if test "x$ac_cv_header_xmlparse_h" = xyes
19171 then :
19172
19173 fi
19174
19175                 if test "$ac_cv_header_xmlparse_h" = "yes"; then
19176                         HAVE_XMLPARSE_H=1
19177
19178
19179 printf "%s\n" "#define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H" >>confdefs.h
19180
19181                 else
19182                         as_fn_error $? "
19183 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
19184                 fi
19185         fi
19186         ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
19187 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes
19188 then :
19189   printf "%s\n" "#define HAVE_XML_SETDOCTYPEDECLHANDLER 1" >>confdefs.h
19190
19191 fi
19192
19193         if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
19194                 as_fn_error $? "
19195 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
19196         fi
19197         CPPFLAGS="$expatsaved_CPPFLAGS"
19198         LIBS="$expatsaved_LIBS"
19199
19200
19201
19202
19203
19204 fi
19205
19206 #
19207 # Check libxml2 configuration
19208 #
19209 # Check whether --enable-libxml2 was given.
19210 if test ${enable_libxml2+y}
19211 then :
19212   enableval=$enable_libxml2;
19213 fi
19214
19215
19216 if test "$enable_libxml2" = "yes"; then
19217
19218 pkg_failed=no
19219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
19220 printf %s "checking for LIBXML2... " >&6; }
19221
19222 if test -n "$LIBXML2_CFLAGS"; then
19223     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
19224  elif test -n "$PKG_CONFIG"; then
19225     if test -n "$PKG_CONFIG" && \
19226     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
19227   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
19228   ac_status=$?
19229   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19230   test $ac_status = 0; }; then
19231   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
19232                       test "x$?" != "x0" && pkg_failed=yes
19233 else
19234   pkg_failed=yes
19235 fi
19236  else
19237     pkg_failed=untried
19238 fi
19239 if test -n "$LIBXML2_LIBS"; then
19240     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
19241  elif test -n "$PKG_CONFIG"; then
19242     if test -n "$PKG_CONFIG" && \
19243     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
19244   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
19245   ac_status=$?
19246   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19247   test $ac_status = 0; }; then
19248   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
19249                       test "x$?" != "x0" && pkg_failed=yes
19250 else
19251   pkg_failed=yes
19252 fi
19253  else
19254     pkg_failed=untried
19255 fi
19256
19257
19258
19259 if test $pkg_failed = yes; then
19260         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19261 printf "%s\n" "no" >&6; }
19262
19263 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19264         _pkg_short_errors_supported=yes
19265 else
19266         _pkg_short_errors_supported=no
19267 fi
19268         if test $_pkg_short_errors_supported = yes; then
19269                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
19270         else
19271                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
19272         fi
19273         # Put the nasty error message in config.log where it belongs
19274         echo "$LIBXML2_PKG_ERRORS" >&5
19275
19276         as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
19277
19278 $LIBXML2_PKG_ERRORS
19279
19280 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19281 installed software in a non-standard prefix.
19282
19283 Alternatively, you may set the environment variables LIBXML2_CFLAGS
19284 and LIBXML2_LIBS to avoid the need to call pkg-config.
19285 See the pkg-config man page for more details." "$LINENO" 5
19286 elif test $pkg_failed = untried; then
19287         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19288 printf "%s\n" "no" >&6; }
19289         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19290 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19291 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19292 is in your PATH or set the PKG_CONFIG environment variable to the full
19293 path to pkg-config.
19294
19295 Alternatively, you may set the environment variables LIBXML2_CFLAGS
19296 and LIBXML2_LIBS to avoid the need to call pkg-config.
19297 See the pkg-config man page for more details.
19298
19299 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19300 See \`config.log' for more details" "$LINENO" 5; }
19301 else
19302         LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
19303         LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
19304         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19305 printf "%s\n" "yes" >&6; }
19306
19307 fi
19308     PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0 >= 2.6"
19309
19310 printf "%s\n" "#define ENABLE_LIBXML2 1" >>confdefs.h
19311
19312
19313
19314
19315
19316     fc_saved_CFLAGS="$CFLAGS"
19317     CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
19318     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
19319 printf %s "checking SAX1 support in libxml2... " >&6; }
19320     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19321 /* end confdefs.h.  */
19322
19323         #include <libxml/xmlversion.h>
19324         #if !defined(LIBXML_SAX1_ENABLED)
19325         #  include "error: No SAX1 support in libxml2"
19326         #endif
19327
19328 _ACEOF
19329 if ac_fn_c_try_compile "$LINENO"
19330 then :
19331   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
19332 printf "%s\n" "found" >&6; }
19333 else $as_nop
19334   as_fn_error $? "
19335 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
19336 fi
19337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19338     CFLAGS="$fc_saved_CFLAGS"
19339 fi
19340
19341 #
19342 # Check json-c
19343 #
19344
19345 pkg_failed=no
19346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JSONC" >&5
19347 printf %s "checking for JSONC... " >&6; }
19348
19349 if test -n "$JSONC_CFLAGS"; then
19350     pkg_cv_JSONC_CFLAGS="$JSONC_CFLAGS"
19351  elif test -n "$PKG_CONFIG"; then
19352     if test -n "$PKG_CONFIG" && \
19353     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
19354   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
19355   ac_status=$?
19356   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19357   test $ac_status = 0; }; then
19358   pkg_cv_JSONC_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
19359                       test "x$?" != "x0" && pkg_failed=yes
19360 else
19361   pkg_failed=yes
19362 fi
19363  else
19364     pkg_failed=untried
19365 fi
19366 if test -n "$JSONC_LIBS"; then
19367     pkg_cv_JSONC_LIBS="$JSONC_LIBS"
19368  elif test -n "$PKG_CONFIG"; then
19369     if test -n "$PKG_CONFIG" && \
19370     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
19371   ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
19372   ac_status=$?
19373   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19374   test $ac_status = 0; }; then
19375   pkg_cv_JSONC_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
19376                       test "x$?" != "x0" && pkg_failed=yes
19377 else
19378   pkg_failed=yes
19379 fi
19380  else
19381     pkg_failed=untried
19382 fi
19383
19384
19385
19386 if test $pkg_failed = yes; then
19387         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19388 printf "%s\n" "no" >&6; }
19389
19390 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19391         _pkg_short_errors_supported=yes
19392 else
19393         _pkg_short_errors_supported=no
19394 fi
19395         if test $_pkg_short_errors_supported = yes; then
19396                 JSONC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
19397         else
19398                 JSONC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
19399         fi
19400         # Put the nasty error message in config.log where it belongs
19401         echo "$JSONC_PKG_ERRORS" >&5
19402
19403         use_jsonc=no
19404 elif test $pkg_failed = untried; then
19405         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19406 printf "%s\n" "no" >&6; }
19407         use_jsonc=no
19408 else
19409         JSONC_CFLAGS=$pkg_cv_JSONC_CFLAGS
19410         JSONC_LIBS=$pkg_cv_JSONC_LIBS
19411         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19412 printf "%s\n" "yes" >&6; }
19413         use_jsonc=yes
19414 fi
19415
19416  if test "x$use_jsonc" = "xyes"; then
19417   ENABLE_JSONC_TRUE=
19418   ENABLE_JSONC_FALSE='#'
19419 else
19420   ENABLE_JSONC_TRUE='#'
19421   ENABLE_JSONC_FALSE=
19422 fi
19423
19424
19425
19426
19427 #
19428 # Set default sub-pixel rendering
19429 #
19430
19431
19432 # Check whether --with-default-sub-pixel-rendering was given.
19433 if test ${with_default_sub_pixel_rendering+y}
19434 then :
19435   withval=$with_default_sub_pixel_rendering; preferred_sub_pixel_rendering="$withval"
19436 else $as_nop
19437   preferred_sub_pixel_rendering=none
19438 fi
19439
19440
19441 case "$preferred_sub_pixel_rendering" in
19442 none|bgr|rgb|vbgr|vrgb)
19443     PREFERRED_SUB_PIXEL_RENDERING="$preferred_sub_pixel_rendering"
19444
19445     ;;
19446 *)
19447     as_fn_error $? "Invalid sub-pixel rendering. please choose one of none, bgr, rgb, vbgr, or vrgb" "$LINENO" 5
19448     ;;
19449 esac
19450
19451 #
19452 # Set default hinting
19453 #
19454
19455
19456 # Check whether --with-default-hinting was given.
19457 if test ${with_default_hinting+y}
19458 then :
19459   withval=$with_default_hinting; preferred_hinting="$withval"
19460 else $as_nop
19461   preferred_hinting=slight
19462 fi
19463
19464
19465 case "$preferred_hinting" in
19466 none|slight|medium|full)
19467         PREFERRED_HINTING="$preferred_hinting"
19468
19469         ;;
19470 *)
19471         as_fn_error $? "Invalid hinting. please choose one of none, slight, medium, or full" "$LINENO" 5
19472         ;;
19473 esac
19474
19475 #
19476 # Set default font directory
19477 #
19478
19479
19480 # Check whether --with-default-fonts was given.
19481 if test ${with_default_fonts+y}
19482 then :
19483   withval=$with_default_fonts; default_fonts="$withval"
19484 else $as_nop
19485   default_fonts=yes
19486 fi
19487
19488
19489 case "$default_fonts" in
19490 yes)
19491         if test "$os_win32" = "yes"; then
19492                 default_fonts="WINDOWSFONTDIR,WINDOWSUSERFONTDIR"
19493         elif test "$os_darwin" = "yes"; then
19494                 default_fonts="/System/Library/Fonts,/Library/Fonts,~/Library/Fonts,/System/Library/Assets/com_apple_MobileAsset_Font3,/System/Library/Assets/com_apple_MobileAsset_Font4"
19495         else
19496                 default_fonts="/usr/share/fonts"
19497         fi
19498         ;;
19499 esac
19500
19501 FC_DEFAULT_FONTS=""
19502 if test x${default_fonts+set} = xset; then
19503         fc_IFS=$IFS
19504         IFS=","
19505         for p in $default_fonts; do
19506                 if test x"$FC_DEFAULT_FONTS" != x; then
19507                         FC_DEFAULT_FONTS="$FC_DEFAULT_FONTS "
19508                 fi
19509                 FC_DEFAULT_FONTS="$FC_DEFAULT_FONTS<dir>$p</dir>"
19510         done
19511         IFS=$fc_IFS
19512 fi
19513
19514
19515 printf "%s\n" "#define FC_DEFAULT_FONTS \"$FC_DEFAULT_FONTS\"" >>confdefs.h
19516
19517
19518
19519
19520 #
19521 # Add more fonts if available.  By default, add only the directories
19522 # with outline fonts; those with bitmaps can be added as desired in
19523 # local.conf or ~/.fonts.conf
19524 #
19525
19526 # Check whether --with-add-fonts was given.
19527 if test ${with_add_fonts+y}
19528 then :
19529   withval=$with_add_fonts; add_fonts="$withval"
19530 else $as_nop
19531   add_fonts=yes
19532 fi
19533
19534
19535 case "$add_fonts" in
19536 yes)
19537         FC_ADD_FONTS=""
19538         for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
19539                 case x"$FC_ADD_FONTS" in
19540                 x)
19541                         sub="$dir/fonts"
19542                         if test -d "$sub"; then
19543                                 case x$FC_ADD_FONTS in
19544                                 x)
19545                                         FC_ADD_FONTS="$sub"
19546                                         ;;
19547                                 *)
19548                                         FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
19549                                         ;;
19550                                 esac
19551                         fi
19552                         ;;
19553                 esac
19554         done
19555
19556 printf "%s\n" "#define FC_ADD_FONTS \"$add_fonts\"" >>confdefs.h
19557
19558         ;;
19559 no)
19560         FC_ADD_FONTS=""
19561         ;;
19562 *)
19563         FC_ADD_FONTS="$add_fonts"
19564
19565 printf "%s\n" "#define FC_ADD_FONTS \"$add_fonts\"" >>confdefs.h
19566
19567         ;;
19568 esac
19569
19570
19571
19572 FC_FONTPATH=""
19573
19574 case "$FC_ADD_FONTS" in
19575 "")
19576         ;;
19577 *)
19578         FC_FONTPATH=`echo $FC_ADD_FONTS |
19579                         sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
19580         ;;
19581 esac
19582
19583
19584
19585 #
19586 # Set default cache directory path
19587 #
19588
19589 # Check whether --with-cache-dir was given.
19590 if test ${with_cache_dir+y}
19591 then :
19592   withval=$with_cache_dir; fc_cachedir="$withval"
19593 else $as_nop
19594   fc_cachedir=yes
19595 fi
19596
19597
19598 case $fc_cachedir in
19599 no|yes)
19600         if test "$os_win32" = "yes"; then
19601                 fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE"
19602         else
19603                 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
19604         fi
19605         ;;
19606 *)
19607         ;;
19608 esac
19609
19610 FC_CACHEDIR=${fc_cachedir}
19611
19612
19613 FC_FONTDATE=`LC_ALL=C date`
19614
19615
19616
19617 #
19618 # Set configuration paths
19619 #
19620
19621
19622 # Check whether --with-templatedir was given.
19623 if test ${with_templatedir+y}
19624 then :
19625   withval=$with_templatedir; templatedir="$withval"
19626 else $as_nop
19627   templatedir=yes
19628 fi
19629
19630
19631 # Check whether --with-baseconfigdir was given.
19632 if test ${with_baseconfigdir+y}
19633 then :
19634   withval=$with_baseconfigdir; baseconfigdir="$withval"
19635 else $as_nop
19636   baseconfigdir=yes
19637 fi
19638
19639
19640 # Check whether --with-configdir was given.
19641 if test ${with_configdir+y}
19642 then :
19643   withval=$with_configdir; configdir="$withval"
19644 else $as_nop
19645   configdir=yes
19646 fi
19647
19648
19649 # Check whether --with-xmldir was given.
19650 if test ${with_xmldir+y}
19651 then :
19652   withval=$with_xmldir; xmldir="$withval"
19653 else $as_nop
19654   xmldir=yes
19655 fi
19656
19657
19658 case "$templatedir" in
19659 no|yes)
19660         templatedir='${datadir}'/fontconfig/conf.avail
19661         ;;
19662 *)
19663         ;;
19664 esac
19665 case "$baseconfigdir" in
19666 no|yes)
19667         baseconfigdir='${sysconfdir}'/fonts
19668         ;;
19669 *)
19670         ;;
19671 esac
19672 case "$configdir" in
19673 no|yes)
19674         configdir='${BASECONFIGDIR}'/conf.d
19675         ;;
19676 *)
19677         ;;
19678 esac
19679 case "$xmldir" in
19680 no|yes)
19681         xmldir='${datadir}'/xml/fontconfig
19682         ;;
19683 *)
19684         ;;
19685 esac
19686
19687 TEMPLATEDIR=${templatedir}
19688 BASECONFIGDIR=${baseconfigdir}
19689 CONFIGDIR=${configdir}
19690 XMLDIR=${xmldir}
19691
19692
19693
19694
19695
19696
19697
19698 #
19699 # Thread-safety primitives
19700 #
19701
19702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stdatomic.h atomic primitives" >&5
19703 printf %s "checking stdatomic.h atomic primitives... " >&6; }
19704 if test ${fc_cv_have_stdatomic_atomic_primitives+y}
19705 then :
19706   printf %s "(cached) " >&6
19707 else $as_nop
19708
19709         fc_cv_have_stdatomic_atomic_primitives=false
19710         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h.  */
19712
19713                 #include <stdatomic.h>
19714
19715                 void memory_barrier (void) { atomic_thread_fence (memory_order_acq_rel); }
19716                 int atomic_add (atomic_int *i) { return atomic_fetch_add_explicit (i, 1, memory_order_relaxed); }
19717                 int mutex_trylock (atomic_flag *m) { return atomic_flag_test_and_set_explicit (m, memory_order_acquire); }
19718                 void mutex_unlock (atomic_flag *m) { atomic_flag_clear_explicit (m, memory_order_release); }
19719
19720 int
19721 main (void)
19722 {
19723
19724   ;
19725   return 0;
19726 }
19727 _ACEOF
19728 if ac_fn_c_try_link "$LINENO"
19729 then :
19730   fc_cv_have_stdatomic_atomic_primitives=true
19731
19732 fi
19733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19734     conftest$ac_exeext conftest.$ac_ext
19735
19736 fi
19737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_stdatomic_atomic_primitives" >&5
19738 printf "%s\n" "$fc_cv_have_stdatomic_atomic_primitives" >&6; }
19739 if $fc_cv_have_stdatomic_atomic_primitives; then
19740
19741 printf "%s\n" "#define HAVE_STDATOMIC_PRIMITIVES 1" >>confdefs.h
19742
19743 fi
19744
19745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
19746 printf %s "checking for Intel atomic primitives... " >&6; }
19747 if test ${fc_cv_have_intel_atomic_primitives+y}
19748 then :
19749   printf %s "(cached) " >&6
19750 else $as_nop
19751
19752         fc_cv_have_intel_atomic_primitives=false
19753         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h.  */
19755
19756                 void memory_barrier (void) { __sync_synchronize (); }
19757                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
19758                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
19759                 void mutex_unlock (int *m) { __sync_lock_release (m); }
19760
19761 int
19762 main (void)
19763 {
19764
19765   ;
19766   return 0;
19767 }
19768 _ACEOF
19769 if ac_fn_c_try_link "$LINENO"
19770 then :
19771   fc_cv_have_intel_atomic_primitives=true
19772
19773 fi
19774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19775     conftest$ac_exeext conftest.$ac_ext
19776
19777 fi
19778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
19779 printf "%s\n" "$fc_cv_have_intel_atomic_primitives" >&6; }
19780 if $fc_cv_have_intel_atomic_primitives; then
19781
19782 printf "%s\n" "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
19783
19784 fi
19785
19786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
19787 printf %s "checking for Solaris atomic operations... " >&6; }
19788 if test ${fc_cv_have_solaris_atomic_ops+y}
19789 then :
19790   printf %s "(cached) " >&6
19791 else $as_nop
19792
19793         fc_cv_have_solaris_atomic_ops=false
19794         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19795 /* end confdefs.h.  */
19796
19797                 #include <atomic.h>
19798                 /* This requires Solaris Studio 12.2 or newer: */
19799                 #include <mbarrier.h>
19800                 void memory_barrier (void) { __machine_rw_barrier (); }
19801                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
19802                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
19803
19804 int
19805 main (void)
19806 {
19807
19808   ;
19809   return 0;
19810 }
19811 _ACEOF
19812 if ac_fn_c_try_link "$LINENO"
19813 then :
19814   fc_cv_have_solaris_atomic_ops=true
19815
19816 fi
19817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19818     conftest$ac_exeext conftest.$ac_ext
19819
19820 fi
19821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
19822 printf "%s\n" "$fc_cv_have_solaris_atomic_ops" >&6; }
19823 if $fc_cv_have_solaris_atomic_ops; then
19824
19825 printf "%s\n" "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
19826
19827 fi
19828
19829 if test "$os_win32" = no && ! $have_pthread; then
19830         ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19831 if test "x$ac_cv_header_sched_h" = xyes
19832 then :
19833   printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
19834
19835 fi
19836
19837         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
19838 printf %s "checking for library containing sched_yield... " >&6; }
19839 if test ${ac_cv_search_sched_yield+y}
19840 then :
19841   printf %s "(cached) " >&6
19842 else $as_nop
19843   ac_func_search_save_LIBS=$LIBS
19844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19845 /* end confdefs.h.  */
19846
19847 /* Override any GCC internal prototype to avoid an error.
19848    Use char because int might match the return type of a GCC
19849    builtin and then its argument prototype would still apply.  */
19850 char sched_yield ();
19851 int
19852 main (void)
19853 {
19854 return sched_yield ();
19855   ;
19856   return 0;
19857 }
19858 _ACEOF
19859 for ac_lib in '' rt
19860 do
19861   if test -z "$ac_lib"; then
19862     ac_res="none required"
19863   else
19864     ac_res=-l$ac_lib
19865     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19866   fi
19867   if ac_fn_c_try_link "$LINENO"
19868 then :
19869   ac_cv_search_sched_yield=$ac_res
19870 fi
19871 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19872     conftest$ac_exeext
19873   if test ${ac_cv_search_sched_yield+y}
19874 then :
19875   break
19876 fi
19877 done
19878 if test ${ac_cv_search_sched_yield+y}
19879 then :
19880
19881 else $as_nop
19882   ac_cv_search_sched_yield=no
19883 fi
19884 rm conftest.$ac_ext
19885 LIBS=$ac_func_search_save_LIBS
19886 fi
19887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
19888 printf "%s\n" "$ac_cv_search_sched_yield" >&6; }
19889 ac_res=$ac_cv_search_sched_yield
19890 if test "$ac_res" != no
19891 then :
19892   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19893
19894 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19895
19896 fi
19897
19898 fi
19899
19900 have_pthread=false
19901 if test "$os_win32" = no; then
19902
19903
19904 ac_ext=c
19905 ac_cpp='$CPP $CPPFLAGS'
19906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19909
19910 ax_pthread_ok=no
19911
19912 # We used to check for pthread.h first, but this fails if pthread.h
19913 # requires special compiler flags (e.g. on True64 or Sequent).
19914 # It gets checked for in the link test anyway.
19915
19916 # First of all, check if the user has set any of the PTHREAD_LIBS,
19917 # etcetera environment variables, and if threads linking works using
19918 # them:
19919 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19920         save_CFLAGS="$CFLAGS"
19921         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19922         save_LIBS="$LIBS"
19923         LIBS="$PTHREAD_LIBS $LIBS"
19924         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19925 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19926         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19927 /* end confdefs.h.  */
19928
19929 /* Override any GCC internal prototype to avoid an error.
19930    Use char because int might match the return type of a GCC
19931    builtin and then its argument prototype would still apply.  */
19932 char pthread_join ();
19933 int
19934 main (void)
19935 {
19936 return pthread_join ();
19937   ;
19938   return 0;
19939 }
19940 _ACEOF
19941 if ac_fn_c_try_link "$LINENO"
19942 then :
19943   ax_pthread_ok=yes
19944 fi
19945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19946     conftest$ac_exeext conftest.$ac_ext
19947         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19948 printf "%s\n" "$ax_pthread_ok" >&6; }
19949         if test x"$ax_pthread_ok" = xno; then
19950                 PTHREAD_LIBS=""
19951                 PTHREAD_CFLAGS=""
19952         fi
19953         LIBS="$save_LIBS"
19954         CFLAGS="$save_CFLAGS"
19955 fi
19956
19957 # We must check for the threads library under a number of different
19958 # names; the ordering is very important because some systems
19959 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19960 # libraries is broken (non-POSIX).
19961
19962 # Create a list of thread flags to try.  Items starting with a "-" are
19963 # C compiler flags, and other items are library names, except for "none"
19964 # which indicates that we try without any flags at all, and "pthread-config"
19965 # which is a program returning the flags for the Pth emulation library.
19966
19967 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19968
19969 # The ordering *is* (sometimes) important.  Some notes on the
19970 # individual items follow:
19971
19972 # pthreads: AIX (must check this before -lpthread)
19973 # none: in case threads are in libc; should be tried before -Kthread and
19974 #       other compiler flags to prevent continual compiler warnings
19975 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19976 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19977 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19978 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19979 # -pthreads: Solaris/gcc
19980 # -mthreads: Mingw32/gcc, Lynx/gcc
19981 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19982 #      doesn't hurt to check since this sometimes defines pthreads too;
19983 #      also defines -D_REENTRANT)
19984 #      ... -mt is also the pthreads flag for HP/aCC
19985 # pthread: Linux, etcetera
19986 # --thread-safe: KAI C++
19987 # pthread-config: use pthread-config program (for GNU Pth library)
19988
19989 case ${host_os} in
19990         solaris*)
19991
19992         # On Solaris (at least, for some versions), libc contains stubbed
19993         # (non-functional) versions of the pthreads routines, so link-based
19994         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
19995         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
19996         # a function called by this macro, so we could check for that, but
19997         # who knows whether they'll stub that too in a future libc.)  So,
19998         # we'll just look for -pthreads and -lpthread first:
19999
20000         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
20001         ;;
20002
20003         darwin*)
20004         ax_pthread_flags="-pthread $ax_pthread_flags"
20005         ;;
20006         netbsd*)
20007         # use libc stubs, don't link against libpthread, to allow
20008         # dynamic loading
20009         ax_pthread_flags=""
20010         ;;
20011 esac
20012
20013 # Clang doesn't consider unrecognized options an error unless we specify
20014 # -Werror. We throw in some extra Clang-specific options to ensure that
20015 # this doesn't happen for GCC, which also accepts -Werror.
20016
20017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
20018 printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; }
20019 save_CFLAGS="$CFLAGS"
20020 ax_pthread_extra_flags="-Werror"
20021 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
20022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20023 /* end confdefs.h.  */
20024 int foo(void);
20025 int
20026 main (void)
20027 {
20028 foo()
20029   ;
20030   return 0;
20031 }
20032 _ACEOF
20033 if ac_fn_c_try_compile "$LINENO"
20034 then :
20035   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20036 printf "%s\n" "yes" >&6; }
20037 else $as_nop
20038   ax_pthread_extra_flags=
20039                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20040 printf "%s\n" "no" >&6; }
20041 fi
20042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20043 CFLAGS="$save_CFLAGS"
20044
20045 if test x"$ax_pthread_ok" = xno; then
20046 for flag in $ax_pthread_flags; do
20047
20048         case $flag in
20049                 none)
20050                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20051 printf %s "checking whether pthreads work without any flags... " >&6; }
20052                 ;;
20053
20054                 -*)
20055                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
20056 printf %s "checking whether pthreads work with $flag... " >&6; }
20057                 PTHREAD_CFLAGS="$flag"
20058                 ;;
20059
20060                 pthread-config)
20061                 # Extract the first word of "pthread-config", so it can be a program name with args.
20062 set dummy pthread-config; ac_word=$2
20063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20064 printf %s "checking for $ac_word... " >&6; }
20065 if test ${ac_cv_prog_ax_pthread_config+y}
20066 then :
20067   printf %s "(cached) " >&6
20068 else $as_nop
20069   if test -n "$ax_pthread_config"; then
20070   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20071 else
20072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20073 for as_dir in $PATH
20074 do
20075   IFS=$as_save_IFS
20076   case $as_dir in #(((
20077     '') as_dir=./ ;;
20078     */) ;;
20079     *) as_dir=$as_dir/ ;;
20080   esac
20081     for ac_exec_ext in '' $ac_executable_extensions; do
20082   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20083     ac_cv_prog_ax_pthread_config="yes"
20084     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20085     break 2
20086   fi
20087 done
20088   done
20089 IFS=$as_save_IFS
20090
20091   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20092 fi
20093 fi
20094 ax_pthread_config=$ac_cv_prog_ax_pthread_config
20095 if test -n "$ax_pthread_config"; then
20096   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20097 printf "%s\n" "$ax_pthread_config" >&6; }
20098 else
20099   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20100 printf "%s\n" "no" >&6; }
20101 fi
20102
20103
20104                 if test x"$ax_pthread_config" = xno; then continue; fi
20105                 PTHREAD_CFLAGS="`pthread-config --cflags`"
20106                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20107                 ;;
20108
20109                 *)
20110                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
20111 printf %s "checking for the pthreads library -l$flag... " >&6; }
20112                 PTHREAD_LIBS="-l$flag"
20113                 ;;
20114         esac
20115
20116         save_LIBS="$LIBS"
20117         save_CFLAGS="$CFLAGS"
20118         LIBS="$PTHREAD_LIBS $LIBS"
20119         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
20120
20121         # Check for various functions.  We must include pthread.h,
20122         # since some functions may be macros.  (On the Sequent, we
20123         # need a special flag -Kthread to make this header compile.)
20124         # We check for pthread_join because it is in -lpthread on IRIX
20125         # while pthread_create is in libc.  We check for pthread_attr_init
20126         # due to DEC craziness with -lpthreads.  We check for
20127         # pthread_cleanup_push because it is one of the few pthread
20128         # functions on Solaris that doesn't have a non-functional libc stub.
20129         # We try pthread_create on general principles.
20130         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20131 /* end confdefs.h.  */
20132 #include <pthread.h>
20133                         static void routine(void *a) { a = 0; }
20134                         static void *start_routine(void *a) { return a; }
20135 int
20136 main (void)
20137 {
20138 pthread_t th; pthread_attr_t attr;
20139                         pthread_create(&th, 0, start_routine, 0);
20140                         pthread_join(th, 0);
20141                         pthread_attr_init(&attr);
20142                         pthread_cleanup_push(routine, 0);
20143                         pthread_cleanup_pop(0) /* ; */
20144   ;
20145   return 0;
20146 }
20147 _ACEOF
20148 if ac_fn_c_try_link "$LINENO"
20149 then :
20150   ax_pthread_ok=yes
20151 fi
20152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20153     conftest$ac_exeext conftest.$ac_ext
20154
20155         LIBS="$save_LIBS"
20156         CFLAGS="$save_CFLAGS"
20157
20158         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20159 printf "%s\n" "$ax_pthread_ok" >&6; }
20160         if test "x$ax_pthread_ok" = xyes; then
20161                 break;
20162         fi
20163
20164         PTHREAD_LIBS=""
20165         PTHREAD_CFLAGS=""
20166 done
20167 fi
20168
20169 # Various other checks:
20170 if test "x$ax_pthread_ok" = xyes; then
20171         save_LIBS="$LIBS"
20172         LIBS="$PTHREAD_LIBS $LIBS"
20173         save_CFLAGS="$CFLAGS"
20174         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20175
20176         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20177         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20178 printf %s "checking for joinable pthread attribute... " >&6; }
20179         attr_name=unknown
20180         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20181             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20182 /* end confdefs.h.  */
20183 #include <pthread.h>
20184 int
20185 main (void)
20186 {
20187 int attr = $attr; return attr /* ; */
20188   ;
20189   return 0;
20190 }
20191 _ACEOF
20192 if ac_fn_c_try_link "$LINENO"
20193 then :
20194   attr_name=$attr; break
20195 fi
20196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20197     conftest$ac_exeext conftest.$ac_ext
20198         done
20199         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20200 printf "%s\n" "$attr_name" >&6; }
20201         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20202
20203 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
20204
20205         fi
20206
20207         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20208 printf %s "checking if more special flags are required for pthreads... " >&6; }
20209         flag=no
20210         case ${host_os} in
20211             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
20212             osf* | hpux*) flag="-D_REENTRANT";;
20213             solaris*)
20214             if test "$GCC" = "yes"; then
20215                 flag="-D_REENTRANT"
20216             else
20217                 # TODO: What about Clang on Solaris?
20218                 flag="-mt -D_REENTRANT"
20219             fi
20220             ;;
20221         esac
20222         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
20223 printf "%s\n" "$flag" >&6; }
20224         if test "x$flag" != xno; then
20225             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20226         fi
20227
20228         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20229 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20230 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
20231 then :
20232   printf %s "(cached) " >&6
20233 else $as_nop
20234
20235                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20236 /* end confdefs.h.  */
20237 #include <pthread.h>
20238 int
20239 main (void)
20240 {
20241 int i = PTHREAD_PRIO_INHERIT;
20242   ;
20243   return 0;
20244 }
20245 _ACEOF
20246 if ac_fn_c_try_link "$LINENO"
20247 then :
20248   ax_cv_PTHREAD_PRIO_INHERIT=yes
20249 else $as_nop
20250   ax_cv_PTHREAD_PRIO_INHERIT=no
20251 fi
20252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20253     conftest$ac_exeext conftest.$ac_ext
20254
20255 fi
20256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20257 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20258         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
20259 then :
20260
20261 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20262
20263 fi
20264
20265         LIBS="$save_LIBS"
20266         CFLAGS="$save_CFLAGS"
20267
20268         # More AIX lossage: compile with *_r variant
20269         if test "x$GCC" != xyes; then
20270             case $host_os in
20271                 aix*)
20272                 case "x/$CC" in #(
20273   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20274     #handle absolute path differently from PATH based program lookup
20275                    case "x$CC" in #(
20276   x/*) :
20277     if as_fn_executable_p ${CC}_r
20278 then :
20279   PTHREAD_CC="${CC}_r"
20280 fi ;; #(
20281   *) :
20282     for ac_prog in ${CC}_r
20283 do
20284   # Extract the first word of "$ac_prog", so it can be a program name with args.
20285 set dummy $ac_prog; ac_word=$2
20286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20287 printf %s "checking for $ac_word... " >&6; }
20288 if test ${ac_cv_prog_PTHREAD_CC+y}
20289 then :
20290   printf %s "(cached) " >&6
20291 else $as_nop
20292   if test -n "$PTHREAD_CC"; then
20293   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20294 else
20295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20296 for as_dir in $PATH
20297 do
20298   IFS=$as_save_IFS
20299   case $as_dir in #(((
20300     '') as_dir=./ ;;
20301     */) ;;
20302     *) as_dir=$as_dir/ ;;
20303   esac
20304     for ac_exec_ext in '' $ac_executable_extensions; do
20305   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20306     ac_cv_prog_PTHREAD_CC="$ac_prog"
20307     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20308     break 2
20309   fi
20310 done
20311   done
20312 IFS=$as_save_IFS
20313
20314 fi
20315 fi
20316 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20317 if test -n "$PTHREAD_CC"; then
20318   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20319 printf "%s\n" "$PTHREAD_CC" >&6; }
20320 else
20321   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20322 printf "%s\n" "no" >&6; }
20323 fi
20324
20325
20326   test -n "$PTHREAD_CC" && break
20327 done
20328 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20329  ;;
20330 esac ;; #(
20331   *) :
20332      ;;
20333 esac
20334                 ;;
20335             esac
20336         fi
20337 fi
20338
20339 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20340
20341
20342
20343
20344
20345 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20346 if test x"$ax_pthread_ok" = xyes; then
20347         have_pthread=true
20348         :
20349 else
20350         ax_pthread_ok=no
20351
20352 fi
20353 ac_ext=c
20354 ac_cpp='$CPP $CPPFLAGS'
20355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20358
20359
20360 fi
20361 if $have_pthread; then
20362         LIBS="$PTHREAD_LIBS $LIBS"
20363         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20364         CC="$PTHREAD_CC"
20365
20366 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
20367
20368 fi
20369  if $have_pthread; then
20370   HAVE_PTHREAD_TRUE=
20371   HAVE_PTHREAD_FALSE='#'
20372 else
20373   HAVE_PTHREAD_TRUE='#'
20374   HAVE_PTHREAD_FALSE=
20375 fi
20376
20377
20378
20379
20380 #
20381 # Let people not build/install docs if they don't have docbook
20382 #
20383
20384 # Check whether --enable-docbook was given.
20385 if test ${enable_docbook+y}
20386 then :
20387   enableval=$enable_docbook;
20388 fi
20389
20390
20391 if test x$enable_docbook != xno; then
20392         # Extract the first word of "docbook2html", so it can be a program name with args.
20393 set dummy docbook2html; ac_word=$2
20394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20395 printf %s "checking for $ac_word... " >&6; }
20396 if test ${ac_cv_prog_HASDOCBOOK+y}
20397 then :
20398   printf %s "(cached) " >&6
20399 else $as_nop
20400   if test -n "$HASDOCBOOK"; then
20401   ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
20402 else
20403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20404 for as_dir in $PATH
20405 do
20406   IFS=$as_save_IFS
20407   case $as_dir in #(((
20408     '') as_dir=./ ;;
20409     */) ;;
20410     *) as_dir=$as_dir/ ;;
20411   esac
20412     for ac_exec_ext in '' $ac_executable_extensions; do
20413   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20414     ac_cv_prog_HASDOCBOOK="yes"
20415     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20416     break 2
20417   fi
20418 done
20419   done
20420 IFS=$as_save_IFS
20421
20422   test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
20423 fi
20424 fi
20425 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
20426 if test -n "$HASDOCBOOK"; then
20427   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
20428 printf "%s\n" "$HASDOCBOOK" >&6; }
20429 else
20430   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20431 printf "%s\n" "no" >&6; }
20432 fi
20433
20434
20435 fi
20436
20437  if test "x$HASDOCBOOK" = xyes; then
20438   USEDOCBOOK_TRUE=
20439   USEDOCBOOK_FALSE='#'
20440 else
20441   USEDOCBOOK_TRUE='#'
20442   USEDOCBOOK_FALSE=
20443 fi
20444
20445
20446 default_docs="yes"
20447 #
20448 # Check if docs exist or can be created
20449 #
20450 if test x$HASDOCBOOK = xno; then
20451         if test -f $srcdir/doc/fonts-conf.5; then
20452                 :
20453         else
20454                 default_docs="no"
20455         fi
20456 fi
20457
20458 # Check whether --enable-docs was given.
20459 if test ${enable_docs+y}
20460 then :
20461   enableval=$enable_docs;
20462 else $as_nop
20463   enable_docs=$default_docs
20464 fi
20465
20466
20467  if test "x$enable_docs" = xyes; then
20468   ENABLE_DOCS_TRUE=
20469   ENABLE_DOCS_FALSE='#'
20470 else
20471   ENABLE_DOCS_TRUE='#'
20472   ENABLE_DOCS_FALSE=
20473 fi
20474
20475
20476 if test "x$enable_docs" = xyes; then
20477         tmp=funcs.$$
20478         cat $srcdir/doc/*.fncs | awk '
20479         /^@TITLE@/      { if (!done) { printf ("%s\n", $2); done = 1; } }
20480         /^@FUNC@/       { if (!done) { printf ("%s\n", $2); done = 1; } }
20481         /^@@/           { done = 0; }' > $tmp
20482         DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
20483         echo DOCMAN3 $DOCMAN3
20484         rm -f $tmp
20485 else
20486         DOCMAN3=""
20487 fi
20488
20489
20490 default_cache_build="yes"
20491 if test $cross_compiling = "yes"; then
20492         default_cache_build="no"
20493 fi
20494 # Check whether --enable-cache-build was given.
20495 if test ${enable_cache_build+y}
20496 then :
20497   enableval=$enable_cache_build;
20498 else $as_nop
20499   enable_cache_build=$default_cache_build
20500 fi
20501
20502
20503  if test "x$enable_cache_build" = xyes; then
20504   ENABLE_CACHE_BUILD_TRUE=
20505   ENABLE_CACHE_BUILD_FALSE='#'
20506 else
20507   ENABLE_CACHE_BUILD_TRUE='#'
20508   ENABLE_CACHE_BUILD_FALSE=
20509 fi
20510
20511
20512
20513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20514 printf %s "checking whether byte ordering is bigendian... " >&6; }
20515 if test ${ac_cv_c_bigendian+y}
20516 then :
20517   printf %s "(cached) " >&6
20518 else $as_nop
20519   ac_cv_c_bigendian=unknown
20520     # See if we're dealing with a universal compiler.
20521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h.  */
20523 #ifndef __APPLE_CC__
20524                not a universal capable compiler
20525              #endif
20526              typedef int dummy;
20527
20528 _ACEOF
20529 if ac_fn_c_try_compile "$LINENO"
20530 then :
20531
20532         # Check for potential -arch flags.  It is not universal unless
20533         # there are at least two -arch flags with different values.
20534         ac_arch=
20535         ac_prev=
20536         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20537          if test -n "$ac_prev"; then
20538            case $ac_word in
20539              i?86 | x86_64 | ppc | ppc64)
20540                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20541                  ac_arch=$ac_word
20542                else
20543                  ac_cv_c_bigendian=universal
20544                  break
20545                fi
20546                ;;
20547            esac
20548            ac_prev=
20549          elif test "x$ac_word" = "x-arch"; then
20550            ac_prev=arch
20551          fi
20552        done
20553 fi
20554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20555     if test $ac_cv_c_bigendian = unknown; then
20556       # See if sys/param.h defines the BYTE_ORDER macro.
20557       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20558 /* end confdefs.h.  */
20559 #include <sys/types.h>
20560              #include <sys/param.h>
20561
20562 int
20563 main (void)
20564 {
20565 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20566                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20567                      && LITTLE_ENDIAN)
20568               bogus endian macros
20569              #endif
20570
20571   ;
20572   return 0;
20573 }
20574 _ACEOF
20575 if ac_fn_c_try_compile "$LINENO"
20576 then :
20577   # It does; now see whether it defined to BIG_ENDIAN or not.
20578          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579 /* end confdefs.h.  */
20580 #include <sys/types.h>
20581                 #include <sys/param.h>
20582
20583 int
20584 main (void)
20585 {
20586 #if BYTE_ORDER != BIG_ENDIAN
20587                  not big endian
20588                 #endif
20589
20590   ;
20591   return 0;
20592 }
20593 _ACEOF
20594 if ac_fn_c_try_compile "$LINENO"
20595 then :
20596   ac_cv_c_bigendian=yes
20597 else $as_nop
20598   ac_cv_c_bigendian=no
20599 fi
20600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20601 fi
20602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20603     fi
20604     if test $ac_cv_c_bigendian = unknown; then
20605       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20606       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20607 /* end confdefs.h.  */
20608 #include <limits.h>
20609
20610 int
20611 main (void)
20612 {
20613 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20614               bogus endian macros
20615              #endif
20616
20617   ;
20618   return 0;
20619 }
20620 _ACEOF
20621 if ac_fn_c_try_compile "$LINENO"
20622 then :
20623   # It does; now see whether it defined to _BIG_ENDIAN or not.
20624          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20625 /* end confdefs.h.  */
20626 #include <limits.h>
20627
20628 int
20629 main (void)
20630 {
20631 #ifndef _BIG_ENDIAN
20632                  not big endian
20633                 #endif
20634
20635   ;
20636   return 0;
20637 }
20638 _ACEOF
20639 if ac_fn_c_try_compile "$LINENO"
20640 then :
20641   ac_cv_c_bigendian=yes
20642 else $as_nop
20643   ac_cv_c_bigendian=no
20644 fi
20645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20646 fi
20647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20648     fi
20649     if test $ac_cv_c_bigendian = unknown; then
20650       # Compile a test program.
20651       if test "$cross_compiling" = yes
20652 then :
20653   # Try to guess by grepping values from an object file.
20654          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20655 /* end confdefs.h.  */
20656 unsigned short int ascii_mm[] =
20657                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20658                 unsigned short int ascii_ii[] =
20659                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20660                 int use_ascii (int i) {
20661                   return ascii_mm[i] + ascii_ii[i];
20662                 }
20663                 unsigned short int ebcdic_ii[] =
20664                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20665                 unsigned short int ebcdic_mm[] =
20666                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20667                 int use_ebcdic (int i) {
20668                   return ebcdic_mm[i] + ebcdic_ii[i];
20669                 }
20670                 extern int foo;
20671
20672 int
20673 main (void)
20674 {
20675 return use_ascii (foo) == use_ebcdic (foo);
20676   ;
20677   return 0;
20678 }
20679 _ACEOF
20680 if ac_fn_c_try_compile "$LINENO"
20681 then :
20682   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20683               ac_cv_c_bigendian=yes
20684             fi
20685             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20686               if test "$ac_cv_c_bigendian" = unknown; then
20687                 ac_cv_c_bigendian=no
20688               else
20689                 # finding both strings is unlikely to happen, but who knows?
20690                 ac_cv_c_bigendian=unknown
20691               fi
20692             fi
20693 fi
20694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20695 else $as_nop
20696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20697 /* end confdefs.h.  */
20698 $ac_includes_default
20699 int
20700 main (void)
20701 {
20702
20703              /* Are we little or big endian?  From Harbison&Steele.  */
20704              union
20705              {
20706                long int l;
20707                char c[sizeof (long int)];
20708              } u;
20709              u.l = 1;
20710              return u.c[sizeof (long int) - 1] == 1;
20711
20712   ;
20713   return 0;
20714 }
20715 _ACEOF
20716 if ac_fn_c_try_run "$LINENO"
20717 then :
20718   ac_cv_c_bigendian=no
20719 else $as_nop
20720   ac_cv_c_bigendian=yes
20721 fi
20722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20723   conftest.$ac_objext conftest.beam conftest.$ac_ext
20724 fi
20725
20726     fi
20727 fi
20728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20729 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
20730  case $ac_cv_c_bigendian in #(
20731    yes)
20732      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
20733 ;; #(
20734    no)
20735       ;; #(
20736    universal)
20737
20738 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20739
20740      ;; #(
20741    *)
20742      as_fn_error $? "unknown endianness
20743  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20744  esac
20745
20746 # The cast to long int works around a bug in the HP C Compiler
20747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20749 # This bug is HP SR number 8606223364.
20750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
20751 printf %s "checking size of void *... " >&6; }
20752 if test ${ac_cv_sizeof_void_p+y}
20753 then :
20754   printf %s "(cached) " >&6
20755 else $as_nop
20756   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"
20757 then :
20758
20759 else $as_nop
20760   if test "$ac_cv_type_void_p" = yes; then
20761      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20762 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20763 as_fn_error 77 "cannot compute sizeof (void *)
20764 See \`config.log' for more details" "$LINENO" 5; }
20765    else
20766      ac_cv_sizeof_void_p=0
20767    fi
20768 fi
20769
20770 fi
20771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
20772 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
20773
20774
20775
20776 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
20777
20778
20779 # The cast to long int works around a bug in the HP C Compiler,
20780 # see AC_CHECK_SIZEOF for more information.
20781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
20782 printf %s "checking alignment of double... " >&6; }
20783 if test ${ac_cv_alignof_double+y}
20784 then :
20785   printf %s "(cached) " >&6
20786 else $as_nop
20787   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double"        "$ac_includes_default
20788 typedef struct { char x; double y; } ac__type_alignof_;"
20789 then :
20790
20791 else $as_nop
20792   if test "$ac_cv_type_double" = yes; then
20793      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20794 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20795 as_fn_error 77 "cannot compute alignment of double
20796 See \`config.log' for more details" "$LINENO" 5; }
20797    else
20798      ac_cv_alignof_double=0
20799    fi
20800 fi
20801
20802 fi
20803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
20804 printf "%s\n" "$ac_cv_alignof_double" >&6; }
20805
20806
20807
20808 printf "%s\n" "#define ALIGNOF_DOUBLE $ac_cv_alignof_double" >>confdefs.h
20809
20810
20811 # The cast to long int works around a bug in the HP C Compiler,
20812 # see AC_CHECK_SIZEOF for more information.
20813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
20814 printf %s "checking alignment of void *... " >&6; }
20815 if test ${ac_cv_alignof_void_p+y}
20816 then :
20817   printf %s "(cached) " >&6
20818 else $as_nop
20819   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p"        "$ac_includes_default
20820 typedef struct { char x; void * y; } ac__type_alignof_;"
20821 then :
20822
20823 else $as_nop
20824   if test "$ac_cv_type_void_p" = yes; then
20825      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20826 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20827 as_fn_error 77 "cannot compute alignment of void *
20828 See \`config.log' for more details" "$LINENO" 5; }
20829    else
20830      ac_cv_alignof_void_p=0
20831    fi
20832 fi
20833
20834 fi
20835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5
20836 printf "%s\n" "$ac_cv_alignof_void_p" >&6; }
20837
20838
20839
20840 printf "%s\n" "#define ALIGNOF_VOID_P $ac_cv_alignof_void_p" >>confdefs.h
20841
20842
20843
20844
20845
20846
20847
20848
20849 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-conflist/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml its/Makefile po/Makefile.in po-conf/Makefile.in test/Makefile fontconfig.pc fontconfig-zip"
20850
20851 cat >confcache <<\_ACEOF
20852 # This file is a shell script that caches the results of configure
20853 # tests run on this system so they can be shared between configure
20854 # scripts and configure runs, see configure's option --config-cache.
20855 # It is not useful on other systems.  If it contains results you don't
20856 # want to keep, you may remove or edit it.
20857 #
20858 # config.status only pays attention to the cache file if you give it
20859 # the --recheck option to rerun configure.
20860 #
20861 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20862 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20863 # following values.
20864
20865 _ACEOF
20866
20867 # The following way of writing the cache mishandles newlines in values,
20868 # but we know of no workaround that is simple, portable, and efficient.
20869 # So, we kill variables containing newlines.
20870 # Ultrix sh set writes to stderr and can't be redirected directly,
20871 # and sets the high bit in the cache file unless we assign to the vars.
20872 (
20873   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20874     eval ac_val=\$$ac_var
20875     case $ac_val in #(
20876     *${as_nl}*)
20877       case $ac_var in #(
20878       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20879 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20880       esac
20881       case $ac_var in #(
20882       _ | IFS | as_nl) ;; #(
20883       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20884       *) { eval $ac_var=; unset $ac_var;} ;;
20885       esac ;;
20886     esac
20887   done
20888
20889   (set) 2>&1 |
20890     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20891     *${as_nl}ac_space=\ *)
20892       # `set' does not quote correctly, so add quotes: double-quote
20893       # substitution turns \\\\ into \\, and sed turns \\ into \.
20894       sed -n \
20895         "s/'/'\\\\''/g;
20896           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20897       ;; #(
20898     *)
20899       # `set' quotes correctly as required by POSIX, so do not add quotes.
20900       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20901       ;;
20902     esac |
20903     sort
20904 ) |
20905   sed '
20906      /^ac_cv_env_/b end
20907      t clear
20908      :clear
20909      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20910      t end
20911      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20912      :end' >>confcache
20913 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20914   if test -w "$cache_file"; then
20915     if test "x$cache_file" != "x/dev/null"; then
20916       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20917 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20918       if test ! -f "$cache_file" || test -h "$cache_file"; then
20919         cat confcache >"$cache_file"
20920       else
20921         case $cache_file in #(
20922         */* | ?:*)
20923           mv -f confcache "$cache_file"$$ &&
20924           mv -f "$cache_file"$$ "$cache_file" ;; #(
20925         *)
20926           mv -f confcache "$cache_file" ;;
20927         esac
20928       fi
20929     fi
20930   else
20931     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20932 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20933   fi
20934 fi
20935 rm -f confcache
20936
20937 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20938 # Let make expand exec_prefix.
20939 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20940
20941 DEFS=-DHAVE_CONFIG_H
20942
20943 ac_libobjs=
20944 ac_ltlibobjs=
20945 U=
20946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20947   # 1. Remove the extension, and $U if already installed.
20948   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20949   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20950   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20951   #    will be set to the directory where LIBOBJS objects are built.
20952   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20953   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20954 done
20955 LIBOBJS=$ac_libobjs
20956
20957 LTLIBOBJS=$ac_ltlibobjs
20958
20959
20960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20961 printf %s "checking that generated files are newer than configure... " >&6; }
20962    if test -n "$am_sleep_pid"; then
20963      # Hide warnings about reused PIDs.
20964      wait $am_sleep_pid 2>/dev/null
20965    fi
20966    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20967 printf "%s\n" "done" >&6; }
20968  if test -n "$EXEEXT"; then
20969   am__EXEEXT_TRUE=
20970   am__EXEEXT_FALSE='#'
20971 else
20972   am__EXEEXT_TRUE='#'
20973   am__EXEEXT_FALSE=
20974 fi
20975
20976 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20977   as_fn_error $? "conditional \"AMDEP\" was never defined.
20978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20979 fi
20980 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20981   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20983 fi
20984 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
20985   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
20986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20987 fi
20988 if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
20989   as_fn_error $? "conditional \"OS_DARWIN\" was never defined.
20990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20991 fi
20992 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
20993   as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
20994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20995 fi
20996 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
20997   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
20998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20999 fi
21000 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
21001   as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
21002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21003 fi
21004 if test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE}" && test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE}"; then
21005   as_fn_error $? "conditional \"FREETYPE_PCF_LONG_FAMILY_NAMES\" was never defined.
21006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21007 fi
21008 if test -z "${ENABLE_JSONC_TRUE}" && test -z "${ENABLE_JSONC_FALSE}"; then
21009   as_fn_error $? "conditional \"ENABLE_JSONC\" was never defined.
21010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21011 fi
21012 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
21013   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
21014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21015 fi
21016 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
21017   as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
21018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21019 fi
21020 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
21021   as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
21022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21023 fi
21024 if test -z "${ENABLE_CACHE_BUILD_TRUE}" && test -z "${ENABLE_CACHE_BUILD_FALSE}"; then
21025   as_fn_error $? "conditional \"ENABLE_CACHE_BUILD\" was never defined.
21026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21027 fi
21028
21029
21030 : "${CONFIG_STATUS=./config.status}"
21031 ac_write_fail=0
21032 ac_clean_files_save=$ac_clean_files
21033 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21035 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21036 as_write_fail=0
21037 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21038 #! $SHELL
21039 # Generated by $as_me.
21040 # Run this file to recreate the current configuration.
21041 # Compiler output produced by configure, useful for debugging
21042 # configure, is in config.log if it exists.
21043
21044 debug=false
21045 ac_cs_recheck=false
21046 ac_cs_silent=false
21047
21048 SHELL=\${CONFIG_SHELL-$SHELL}
21049 export SHELL
21050 _ASEOF
21051 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21052 ## -------------------- ##
21053 ## M4sh Initialization. ##
21054 ## -------------------- ##
21055
21056 # Be more Bourne compatible
21057 DUALCASE=1; export DUALCASE # for MKS sh
21058 as_nop=:
21059 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21060 then :
21061   emulate sh
21062   NULLCMD=:
21063   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21064   # is contrary to our usage.  Disable this feature.
21065   alias -g '${1+"$@"}'='"$@"'
21066   setopt NO_GLOB_SUBST
21067 else $as_nop
21068   case `(set -o) 2>/dev/null` in #(
21069   *posix*) :
21070     set -o posix ;; #(
21071   *) :
21072      ;;
21073 esac
21074 fi
21075
21076
21077
21078 # Reset variables that may have inherited troublesome values from
21079 # the environment.
21080
21081 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21082 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21083 # side effect of setting IFS to empty, thus disabling word splitting.)
21084 # Quoting is to prevent editors from complaining about space-tab.
21085 as_nl='
21086 '
21087 export as_nl
21088 IFS=" ""        $as_nl"
21089
21090 PS1='$ '
21091 PS2='> '
21092 PS4='+ '
21093
21094 # Ensure predictable behavior from utilities with locale-dependent output.
21095 LC_ALL=C
21096 export LC_ALL
21097 LANGUAGE=C
21098 export LANGUAGE
21099
21100 # We cannot yet rely on "unset" to work, but we need these variables
21101 # to be unset--not just set to an empty or harmless value--now, to
21102 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
21103 # also avoids known problems related to "unset" and subshell syntax
21104 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21105 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21106 do eval test \${$as_var+y} \
21107   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21108 done
21109
21110 # Ensure that fds 0, 1, and 2 are open.
21111 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21112 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21113 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
21114
21115 # The user is always right.
21116 if ${PATH_SEPARATOR+false} :; then
21117   PATH_SEPARATOR=:
21118   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21119     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21120       PATH_SEPARATOR=';'
21121   }
21122 fi
21123
21124
21125 # Find who we are.  Look in the path if we contain no directory separator.
21126 as_myself=
21127 case $0 in #((
21128   *[\\/]* ) as_myself=$0 ;;
21129   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21130 for as_dir in $PATH
21131 do
21132   IFS=$as_save_IFS
21133   case $as_dir in #(((
21134     '') as_dir=./ ;;
21135     */) ;;
21136     *) as_dir=$as_dir/ ;;
21137   esac
21138     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21139   done
21140 IFS=$as_save_IFS
21141
21142      ;;
21143 esac
21144 # We did not find ourselves, most probably we were run as `sh COMMAND'
21145 # in which case we are not to be found in the path.
21146 if test "x$as_myself" = x; then
21147   as_myself=$0
21148 fi
21149 if test ! -f "$as_myself"; then
21150   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21151   exit 1
21152 fi
21153
21154
21155
21156 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21157 # ----------------------------------------
21158 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21159 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21160 # script with STATUS, using 1 if that was 0.
21161 as_fn_error ()
21162 {
21163   as_status=$1; test $as_status -eq 0 && as_status=1
21164   if test "$4"; then
21165     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21166     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21167   fi
21168   printf "%s\n" "$as_me: error: $2" >&2
21169   as_fn_exit $as_status
21170 } # as_fn_error
21171
21172
21173
21174 # as_fn_set_status STATUS
21175 # -----------------------
21176 # Set $? to STATUS, without forking.
21177 as_fn_set_status ()
21178 {
21179   return $1
21180 } # as_fn_set_status
21181
21182 # as_fn_exit STATUS
21183 # -----------------
21184 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21185 as_fn_exit ()
21186 {
21187   set +e
21188   as_fn_set_status $1
21189   exit $1
21190 } # as_fn_exit
21191
21192 # as_fn_unset VAR
21193 # ---------------
21194 # Portably unset VAR.
21195 as_fn_unset ()
21196 {
21197   { eval $1=; unset $1;}
21198 }
21199 as_unset=as_fn_unset
21200
21201 # as_fn_append VAR VALUE
21202 # ----------------------
21203 # Append the text in VALUE to the end of the definition contained in VAR. Take
21204 # advantage of any shell optimizations that allow amortized linear growth over
21205 # repeated appends, instead of the typical quadratic growth present in naive
21206 # implementations.
21207 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21208 then :
21209   eval 'as_fn_append ()
21210   {
21211     eval $1+=\$2
21212   }'
21213 else $as_nop
21214   as_fn_append ()
21215   {
21216     eval $1=\$$1\$2
21217   }
21218 fi # as_fn_append
21219
21220 # as_fn_arith ARG...
21221 # ------------------
21222 # Perform arithmetic evaluation on the ARGs, and store the result in the
21223 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21224 # must be portable across $(()) and expr.
21225 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21226 then :
21227   eval 'as_fn_arith ()
21228   {
21229     as_val=$(( $* ))
21230   }'
21231 else $as_nop
21232   as_fn_arith ()
21233   {
21234     as_val=`expr "$@" || test $? -eq 1`
21235   }
21236 fi # as_fn_arith
21237
21238
21239 if expr a : '\(a\)' >/dev/null 2>&1 &&
21240    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21241   as_expr=expr
21242 else
21243   as_expr=false
21244 fi
21245
21246 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21247   as_basename=basename
21248 else
21249   as_basename=false
21250 fi
21251
21252 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21253   as_dirname=dirname
21254 else
21255   as_dirname=false
21256 fi
21257
21258 as_me=`$as_basename -- "$0" ||
21259 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21260          X"$0" : 'X\(//\)$' \| \
21261          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21262 printf "%s\n" X/"$0" |
21263     sed '/^.*\/\([^/][^/]*\)\/*$/{
21264             s//\1/
21265             q
21266           }
21267           /^X\/\(\/\/\)$/{
21268             s//\1/
21269             q
21270           }
21271           /^X\/\(\/\).*/{
21272             s//\1/
21273             q
21274           }
21275           s/.*/./; q'`
21276
21277 # Avoid depending upon Character Ranges.
21278 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21279 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21280 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21281 as_cr_digits='0123456789'
21282 as_cr_alnum=$as_cr_Letters$as_cr_digits
21283
21284
21285 # Determine whether it's possible to make 'echo' print without a newline.
21286 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21287 # for compatibility with existing Makefiles.
21288 ECHO_C= ECHO_N= ECHO_T=
21289 case `echo -n x` in #(((((
21290 -n*)
21291   case `echo 'xy\c'` in
21292   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21293   xy)  ECHO_C='\c';;
21294   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21295        ECHO_T=' ';;
21296   esac;;
21297 *)
21298   ECHO_N='-n';;
21299 esac
21300
21301 # For backward compatibility with old third-party macros, we provide
21302 # the shell variables $as_echo and $as_echo_n.  New code should use
21303 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21304 as_echo='printf %s\n'
21305 as_echo_n='printf %s'
21306
21307 rm -f conf$$ conf$$.exe conf$$.file
21308 if test -d conf$$.dir; then
21309   rm -f conf$$.dir/conf$$.file
21310 else
21311   rm -f conf$$.dir
21312   mkdir conf$$.dir 2>/dev/null
21313 fi
21314 if (echo >conf$$.file) 2>/dev/null; then
21315   if ln -s conf$$.file conf$$ 2>/dev/null; then
21316     as_ln_s='ln -s'
21317     # ... but there are two gotchas:
21318     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21319     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21320     # In both cases, we have to default to `cp -pR'.
21321     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21322       as_ln_s='cp -pR'
21323   elif ln conf$$.file conf$$ 2>/dev/null; then
21324     as_ln_s=ln
21325   else
21326     as_ln_s='cp -pR'
21327   fi
21328 else
21329   as_ln_s='cp -pR'
21330 fi
21331 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21332 rmdir conf$$.dir 2>/dev/null
21333
21334
21335 # as_fn_mkdir_p
21336 # -------------
21337 # Create "$as_dir" as a directory, including parents if necessary.
21338 as_fn_mkdir_p ()
21339 {
21340
21341   case $as_dir in #(
21342   -*) as_dir=./$as_dir;;
21343   esac
21344   test -d "$as_dir" || eval $as_mkdir_p || {
21345     as_dirs=
21346     while :; do
21347       case $as_dir in #(
21348       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21349       *) as_qdir=$as_dir;;
21350       esac
21351       as_dirs="'$as_qdir' $as_dirs"
21352       as_dir=`$as_dirname -- "$as_dir" ||
21353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21354          X"$as_dir" : 'X\(//\)[^/]' \| \
21355          X"$as_dir" : 'X\(//\)$' \| \
21356          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21357 printf "%s\n" X"$as_dir" |
21358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21359             s//\1/
21360             q
21361           }
21362           /^X\(\/\/\)[^/].*/{
21363             s//\1/
21364             q
21365           }
21366           /^X\(\/\/\)$/{
21367             s//\1/
21368             q
21369           }
21370           /^X\(\/\).*/{
21371             s//\1/
21372             q
21373           }
21374           s/.*/./; q'`
21375       test -d "$as_dir" && break
21376     done
21377     test -z "$as_dirs" || eval "mkdir $as_dirs"
21378   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21379
21380
21381 } # as_fn_mkdir_p
21382 if mkdir -p . 2>/dev/null; then
21383   as_mkdir_p='mkdir -p "$as_dir"'
21384 else
21385   test -d ./-p && rmdir ./-p
21386   as_mkdir_p=false
21387 fi
21388
21389
21390 # as_fn_executable_p FILE
21391 # -----------------------
21392 # Test if FILE is an executable regular file.
21393 as_fn_executable_p ()
21394 {
21395   test -f "$1" && test -x "$1"
21396 } # as_fn_executable_p
21397 as_test_x='test -x'
21398 as_executable_p=as_fn_executable_p
21399
21400 # Sed expression to map a string onto a valid CPP name.
21401 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21402
21403 # Sed expression to map a string onto a valid variable name.
21404 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21405
21406
21407 exec 6>&1
21408 ## ----------------------------------- ##
21409 ## Main body of $CONFIG_STATUS script. ##
21410 ## ----------------------------------- ##
21411 _ASEOF
21412 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21413
21414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21415 # Save the log message, to keep $0 and so on meaningful, and to
21416 # report actual input values of CONFIG_FILES etc. instead of their
21417 # values after options handling.
21418 ac_log="
21419 This file was extended by fontconfig $as_me 2.14.2, which was
21420 generated by GNU Autoconf 2.71.  Invocation command line was
21421
21422   CONFIG_FILES    = $CONFIG_FILES
21423   CONFIG_HEADERS  = $CONFIG_HEADERS
21424   CONFIG_LINKS    = $CONFIG_LINKS
21425   CONFIG_COMMANDS = $CONFIG_COMMANDS
21426   $ $0 $@
21427
21428 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21429 "
21430
21431 _ACEOF
21432
21433 case $ac_config_files in *"
21434 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21435 esac
21436
21437 case $ac_config_headers in *"
21438 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21439 esac
21440
21441
21442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21443 # Files that config.status was made for.
21444 config_files="$ac_config_files"
21445 config_headers="$ac_config_headers"
21446 config_commands="$ac_config_commands"
21447
21448 _ACEOF
21449
21450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21451 ac_cs_usage="\
21452 \`$as_me' instantiates files and other configuration actions
21453 from templates according to the current configuration.  Unless the files
21454 and actions are specified as TAGs, all are instantiated by default.
21455
21456 Usage: $0 [OPTION]... [TAG]...
21457
21458   -h, --help       print this help, then exit
21459   -V, --version    print version number and configuration settings, then exit
21460       --config     print configuration, then exit
21461   -q, --quiet, --silent
21462                    do not print progress messages
21463   -d, --debug      don't remove temporary files
21464       --recheck    update $as_me by reconfiguring in the same conditions
21465       --file=FILE[:TEMPLATE]
21466                    instantiate the configuration file FILE
21467       --header=FILE[:TEMPLATE]
21468                    instantiate the configuration header FILE
21469
21470 Configuration files:
21471 $config_files
21472
21473 Configuration headers:
21474 $config_headers
21475
21476 Configuration commands:
21477 $config_commands
21478
21479 Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>."
21480
21481 _ACEOF
21482 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21483 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21485 ac_cs_config='$ac_cs_config_escaped'
21486 ac_cs_version="\\
21487 fontconfig config.status 2.14.2
21488 configured by $0, generated by GNU Autoconf 2.71,
21489   with options \\"\$ac_cs_config\\"
21490
21491 Copyright (C) 2021 Free Software Foundation, Inc.
21492 This config.status script is free software; the Free Software Foundation
21493 gives unlimited permission to copy, distribute and modify it."
21494
21495 ac_pwd='$ac_pwd'
21496 srcdir='$srcdir'
21497 INSTALL='$INSTALL'
21498 MKDIR_P='$MKDIR_P'
21499 AWK='$AWK'
21500 test -n "\$AWK" || AWK=awk
21501 _ACEOF
21502
21503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21504 # The default lists apply if the user does not specify any file.
21505 ac_need_defaults=:
21506 while test $# != 0
21507 do
21508   case $1 in
21509   --*=?*)
21510     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21511     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21512     ac_shift=:
21513     ;;
21514   --*=)
21515     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21516     ac_optarg=
21517     ac_shift=:
21518     ;;
21519   *)
21520     ac_option=$1
21521     ac_optarg=$2
21522     ac_shift=shift
21523     ;;
21524   esac
21525
21526   case $ac_option in
21527   # Handling of the options.
21528   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21529     ac_cs_recheck=: ;;
21530   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21531     printf "%s\n" "$ac_cs_version"; exit ;;
21532   --config | --confi | --conf | --con | --co | --c )
21533     printf "%s\n" "$ac_cs_config"; exit ;;
21534   --debug | --debu | --deb | --de | --d | -d )
21535     debug=: ;;
21536   --file | --fil | --fi | --f )
21537     $ac_shift
21538     case $ac_optarg in
21539     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21540     '') as_fn_error $? "missing file argument" ;;
21541     esac
21542     as_fn_append CONFIG_FILES " '$ac_optarg'"
21543     ac_need_defaults=false;;
21544   --header | --heade | --head | --hea )
21545     $ac_shift
21546     case $ac_optarg in
21547     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21548     esac
21549     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21550     ac_need_defaults=false;;
21551   --he | --h)
21552     # Conflict between --help and --header
21553     as_fn_error $? "ambiguous option: \`$1'
21554 Try \`$0 --help' for more information.";;
21555   --help | --hel | -h )
21556     printf "%s\n" "$ac_cs_usage"; exit ;;
21557   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21558   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21559     ac_cs_silent=: ;;
21560
21561   # This is an error.
21562   -*) as_fn_error $? "unrecognized option: \`$1'
21563 Try \`$0 --help' for more information." ;;
21564
21565   *) as_fn_append ac_config_targets " $1"
21566      ac_need_defaults=false ;;
21567
21568   esac
21569   shift
21570 done
21571
21572 ac_configure_extra_args=
21573
21574 if $ac_cs_silent; then
21575   exec 6>/dev/null
21576   ac_configure_extra_args="$ac_configure_extra_args --silent"
21577 fi
21578
21579 _ACEOF
21580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21581 if \$ac_cs_recheck; then
21582   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21583   shift
21584   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21585   CONFIG_SHELL='$SHELL'
21586   export CONFIG_SHELL
21587   exec "\$@"
21588 fi
21589
21590 _ACEOF
21591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21592 exec 5>>config.log
21593 {
21594   echo
21595   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21596 ## Running $as_me. ##
21597 _ASBOX
21598   printf "%s\n" "$ac_log"
21599 } >&5
21600
21601 _ACEOF
21602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21603 #
21604 # INIT-COMMANDS
21605 #
21606 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21607
21608
21609 # The HP-UX ksh and POSIX shell print the target directory to stdout
21610 # if CDPATH is set.
21611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21612
21613 sed_quote_subst='$sed_quote_subst'
21614 double_quote_subst='$double_quote_subst'
21615 delay_variable_subst='$delay_variable_subst'
21616 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21617 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21618 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21619 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21620 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21621 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21622 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21623 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21624 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21625 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21626 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21627 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21628 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21629 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21630 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21631 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21632 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21633 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21634 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21635 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21636 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21637 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21638 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21639 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21640 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21641 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21642 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21643 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21644 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21645 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21646 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21647 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21648 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21649 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21650 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21651 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21652 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21653 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21654 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21655 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21656 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21657 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21658 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21659 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21660 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21661 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21662 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21663 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21664 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21665 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21666 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21667 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21668 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21669 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21670 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21671 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21672 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21673 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21674 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21675 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21676 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21677 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"`'
21678 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21679 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21680 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21681 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21682 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21683 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21684 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21685 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21686 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21687 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21688 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21689 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21690 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21691 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21692 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21693 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21694 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21695 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21696 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21697 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21698 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21699 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21700 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21701 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21702 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21703 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21704 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21705 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21706 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21707 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21708 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21709 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21710 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21711 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21712 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21713 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21714 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21715 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21716 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21717 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21718 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21719 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21720 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21721 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21722 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21723 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21724 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21725 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21726 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21727 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21728 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21729 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21730 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21731 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21732 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21733 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21734 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21735 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21736 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21737 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21738 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21739 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21740 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21741 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21742 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21743 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21744 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21745 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21746 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21747 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21748 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21749 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21750 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21751 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21752 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21753 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21754
21755 LTCC='$LTCC'
21756 LTCFLAGS='$LTCFLAGS'
21757 compiler='$compiler_DEFAULT'
21758
21759 # A function that is used when there is no print builtin or printf.
21760 func_fallback_echo ()
21761 {
21762   eval 'cat <<_LTECHO_EOF
21763 \$1
21764 _LTECHO_EOF'
21765 }
21766
21767 # Quote evaled strings.
21768 for var in AS \
21769 DLLTOOL \
21770 OBJDUMP \
21771 SHELL \
21772 ECHO \
21773 PATH_SEPARATOR \
21774 SED \
21775 GREP \
21776 EGREP \
21777 FGREP \
21778 LD \
21779 NM \
21780 LN_S \
21781 lt_SP2NL \
21782 lt_NL2SP \
21783 reload_flag \
21784 FILECMD \
21785 deplibs_check_method \
21786 file_magic_cmd \
21787 file_magic_glob \
21788 want_nocaseglob \
21789 sharedlib_from_linklib_cmd \
21790 AR \
21791 archiver_list_spec \
21792 STRIP \
21793 RANLIB \
21794 CC \
21795 CFLAGS \
21796 compiler \
21797 lt_cv_sys_global_symbol_pipe \
21798 lt_cv_sys_global_symbol_to_cdecl \
21799 lt_cv_sys_global_symbol_to_import \
21800 lt_cv_sys_global_symbol_to_c_name_address \
21801 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21802 lt_cv_nm_interface \
21803 nm_file_list_spec \
21804 lt_cv_truncate_bin \
21805 lt_prog_compiler_no_builtin_flag \
21806 lt_prog_compiler_pic \
21807 lt_prog_compiler_wl \
21808 lt_prog_compiler_static \
21809 lt_cv_prog_compiler_c_o \
21810 need_locks \
21811 MANIFEST_TOOL \
21812 DSYMUTIL \
21813 NMEDIT \
21814 LIPO \
21815 OTOOL \
21816 OTOOL64 \
21817 shrext_cmds \
21818 export_dynamic_flag_spec \
21819 whole_archive_flag_spec \
21820 compiler_needs_object \
21821 with_gnu_ld \
21822 allow_undefined_flag \
21823 no_undefined_flag \
21824 hardcode_libdir_flag_spec \
21825 hardcode_libdir_separator \
21826 exclude_expsyms \
21827 include_expsyms \
21828 file_list_spec \
21829 variables_saved_for_relink \
21830 libname_spec \
21831 library_names_spec \
21832 soname_spec \
21833 install_override_mode \
21834 finish_eval \
21835 old_striplib \
21836 striplib; do
21837     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21838     *[\\\\\\\`\\"\\\$]*)
21839       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21840       ;;
21841     *)
21842       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21843       ;;
21844     esac
21845 done
21846
21847 # Double-quote double-evaled strings.
21848 for var in reload_cmds \
21849 old_postinstall_cmds \
21850 old_postuninstall_cmds \
21851 old_archive_cmds \
21852 extract_expsyms_cmds \
21853 old_archive_from_new_cmds \
21854 old_archive_from_expsyms_cmds \
21855 archive_cmds \
21856 archive_expsym_cmds \
21857 module_cmds \
21858 module_expsym_cmds \
21859 export_symbols_cmds \
21860 prelink_cmds \
21861 postlink_cmds \
21862 postinstall_cmds \
21863 postuninstall_cmds \
21864 finish_cmds \
21865 sys_lib_search_path_spec \
21866 configure_time_dlsearch_path \
21867 configure_time_lt_sys_library_path; do
21868     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21869     *[\\\\\\\`\\"\\\$]*)
21870       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21871       ;;
21872     *)
21873       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21874       ;;
21875     esac
21876 done
21877
21878 ac_aux_dir='$ac_aux_dir'
21879
21880 # See if we are running on zsh, and set the options that allow our
21881 # commands through without removal of \ escapes INIT.
21882 if test -n "\${ZSH_VERSION+set}"; then
21883    setopt NO_GLOB_SUBST
21884 fi
21885
21886
21887     PACKAGE='$PACKAGE'
21888     VERSION='$VERSION'
21889     RM='$RM'
21890     ofile='$ofile'
21891
21892
21893
21894 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21895     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21896     # from automake < 1.5.
21897     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21898     # Capture the value of LINGUAS because we need it to compute CATALOGS.
21899     LINGUAS="${LINGUAS-%UNSET%}"
21900
21901 # variables for create stdint.h replacement
21902 PACKAGE="$PACKAGE"
21903 VERSION="$VERSION"
21904 ac_stdint_h="$ac_stdint_h"
21905 _ac_stdint_h=`printf "%s\n" "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
21906 ac_cv_stdint_message="$ac_cv_stdint_message"
21907 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
21908 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
21909 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
21910 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
21911 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21912 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21913 ac_cv_char_data_model="$ac_cv_char_data_model"
21914 ac_cv_long_data_model="$ac_cv_long_data_model"
21915 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21916 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21917 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
21918
21919
21920 _ACEOF
21921
21922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21923
21924 # Handling of arguments.
21925 for ac_config_target in $ac_config_targets
21926 do
21927   case $ac_config_target in
21928     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21929     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21930     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21931     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21932     "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
21933     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21934     "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
21935     "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
21936     "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
21937     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21938     "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
21939     "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
21940     "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
21941     "fc-conflist/Makefile") CONFIG_FILES="$CONFIG_FILES fc-conflist/Makefile" ;;
21942     "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
21943     "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
21944     "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
21945     "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
21946     "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
21947     "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
21948     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21949     "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
21950     "its/Makefile") CONFIG_FILES="$CONFIG_FILES its/Makefile" ;;
21951     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21952     "po-conf/Makefile.in") CONFIG_FILES="$CONFIG_FILES po-conf/Makefile.in" ;;
21953     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21954     "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
21955     "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
21956
21957   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21958   esac
21959 done
21960
21961
21962 # If the user did not use the arguments to specify the items to instantiate,
21963 # then the envvar interface is used.  Set only those that are not.
21964 # We use the long form for the default assignment because of an extremely
21965 # bizarre bug on SunOS 4.1.3.
21966 if $ac_need_defaults; then
21967   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21968   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21969   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21970 fi
21971
21972 # Have a temporary directory for convenience.  Make it in the build tree
21973 # simply because there is no reason against having it here, and in addition,
21974 # creating and moving files from /tmp can sometimes cause problems.
21975 # Hook for its removal unless debugging.
21976 # Note that there is a small window in which the directory will not be cleaned:
21977 # after its creation but before its name has been assigned to `$tmp'.
21978 $debug ||
21979 {
21980   tmp= ac_tmp=
21981   trap 'exit_status=$?
21982   : "${ac_tmp:=$tmp}"
21983   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21984 ' 0
21985   trap 'as_fn_exit 1' 1 2 13 15
21986 }
21987 # Create a (secure) tmp directory for tmp files.
21988
21989 {
21990   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21991   test -d "$tmp"
21992 }  ||
21993 {
21994   tmp=./conf$$-$RANDOM
21995   (umask 077 && mkdir "$tmp")
21996 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21997 ac_tmp=$tmp
21998
21999 # Set up the scripts for CONFIG_FILES section.
22000 # No need to generate them if there are no CONFIG_FILES.
22001 # This happens for instance with `./config.status config.h'.
22002 if test -n "$CONFIG_FILES"; then
22003
22004
22005 ac_cr=`echo X | tr X '\015'`
22006 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22007 # But we know of no other shell where ac_cr would be empty at this
22008 # point, so we can use a bashism as a fallback.
22009 if test "x$ac_cr" = x; then
22010   eval ac_cr=\$\'\\r\'
22011 fi
22012 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22013 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22014   ac_cs_awk_cr='\\r'
22015 else
22016   ac_cs_awk_cr=$ac_cr
22017 fi
22018
22019 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22020 _ACEOF
22021
22022
22023 {
22024   echo "cat >conf$$subs.awk <<_ACEOF" &&
22025   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22026   echo "_ACEOF"
22027 } >conf$$subs.sh ||
22028   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22029 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22030 ac_delim='%!_!# '
22031 for ac_last_try in false false false false false :; do
22032   . ./conf$$subs.sh ||
22033     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22034
22035   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22036   if test $ac_delim_n = $ac_delim_num; then
22037     break
22038   elif $ac_last_try; then
22039     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22040   else
22041     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22042   fi
22043 done
22044 rm -f conf$$subs.sh
22045
22046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22047 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22048 _ACEOF
22049 sed -n '
22050 h
22051 s/^/S["/; s/!.*/"]=/
22052 p
22053 g
22054 s/^[^!]*!//
22055 :repl
22056 t repl
22057 s/'"$ac_delim"'$//
22058 t delim
22059 :nl
22060 h
22061 s/\(.\{148\}\)..*/\1/
22062 t more1
22063 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22064 p
22065 n
22066 b repl
22067 :more1
22068 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22069 p
22070 g
22071 s/.\{148\}//
22072 t nl
22073 :delim
22074 h
22075 s/\(.\{148\}\)..*/\1/
22076 t more2
22077 s/["\\]/\\&/g; s/^/"/; s/$/"/
22078 p
22079 b
22080 :more2
22081 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22082 p
22083 g
22084 s/.\{148\}//
22085 t delim
22086 ' <conf$$subs.awk | sed '
22087 /^[^""]/{
22088   N
22089   s/\n//
22090 }
22091 ' >>$CONFIG_STATUS || ac_write_fail=1
22092 rm -f conf$$subs.awk
22093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22094 _ACAWK
22095 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22096   for (key in S) S_is_set[key] = 1
22097   FS = "\a"
22098
22099 }
22100 {
22101   line = $ 0
22102   nfields = split(line, field, "@")
22103   substed = 0
22104   len = length(field[1])
22105   for (i = 2; i < nfields; i++) {
22106     key = field[i]
22107     keylen = length(key)
22108     if (S_is_set[key]) {
22109       value = S[key]
22110       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22111       len += length(value) + length(field[++i])
22112       substed = 1
22113     } else
22114       len += 1 + keylen
22115   }
22116
22117   print line
22118 }
22119
22120 _ACAWK
22121 _ACEOF
22122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22123 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22124   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22125 else
22126   cat
22127 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22128   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22129 _ACEOF
22130
22131 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22132 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22133 # trailing colons and then remove the whole line if VPATH becomes empty
22134 # (actually we leave an empty line to preserve line numbers).
22135 if test "x$srcdir" = x.; then
22136   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22137 h
22138 s///
22139 s/^/:/
22140 s/[      ]*$/:/
22141 s/:\$(srcdir):/:/g
22142 s/:\${srcdir}:/:/g
22143 s/:@srcdir@:/:/g
22144 s/^:*//
22145 s/:*$//
22146 x
22147 s/\(=[   ]*\).*/\1/
22148 G
22149 s/\n//
22150 s/^[^=]*=[       ]*$//
22151 }'
22152 fi
22153
22154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22155 fi # test -n "$CONFIG_FILES"
22156
22157 # Set up the scripts for CONFIG_HEADERS section.
22158 # No need to generate them if there are no CONFIG_HEADERS.
22159 # This happens for instance with `./config.status Makefile'.
22160 if test -n "$CONFIG_HEADERS"; then
22161 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22162 BEGIN {
22163 _ACEOF
22164
22165 # Transform confdefs.h into an awk script `defines.awk', embedded as
22166 # here-document in config.status, that substitutes the proper values into
22167 # config.h.in to produce config.h.
22168
22169 # Create a delimiter string that does not exist in confdefs.h, to ease
22170 # handling of long lines.
22171 ac_delim='%!_!# '
22172 for ac_last_try in false false :; do
22173   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22174   if test -z "$ac_tt"; then
22175     break
22176   elif $ac_last_try; then
22177     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22178   else
22179     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22180   fi
22181 done
22182
22183 # For the awk script, D is an array of macro values keyed by name,
22184 # likewise P contains macro parameters if any.  Preserve backslash
22185 # newline sequences.
22186
22187 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22188 sed -n '
22189 s/.\{148\}/&'"$ac_delim"'/g
22190 t rset
22191 :rset
22192 s/^[     ]*#[    ]*define[       ][      ]*/ /
22193 t def
22194 d
22195 :def
22196 s/\\$//
22197 t bsnl
22198 s/["\\]/\\&/g
22199 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22200 D["\1"]=" \3"/p
22201 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22202 d
22203 :bsnl
22204 s/["\\]/\\&/g
22205 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22206 D["\1"]=" \3\\\\\\n"\\/p
22207 t cont
22208 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22209 t cont
22210 d
22211 :cont
22212 n
22213 s/.\{148\}/&'"$ac_delim"'/g
22214 t clear
22215 :clear
22216 s/\\$//
22217 t bsnlc
22218 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22219 d
22220 :bsnlc
22221 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22222 b cont
22223 ' <confdefs.h | sed '
22224 s/'"$ac_delim"'/"\\\
22225 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22226
22227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22228   for (key in D) D_is_set[key] = 1
22229   FS = "\a"
22230 }
22231 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22232   line = \$ 0
22233   split(line, arg, " ")
22234   if (arg[1] == "#") {
22235     defundef = arg[2]
22236     mac1 = arg[3]
22237   } else {
22238     defundef = substr(arg[1], 2)
22239     mac1 = arg[2]
22240   }
22241   split(mac1, mac2, "(") #)
22242   macro = mac2[1]
22243   prefix = substr(line, 1, index(line, defundef) - 1)
22244   if (D_is_set[macro]) {
22245     # Preserve the white space surrounding the "#".
22246     print prefix "define", macro P[macro] D[macro]
22247     next
22248   } else {
22249     # Replace #undef with comments.  This is necessary, for example,
22250     # in the case of _POSIX_SOURCE, which is predefined and required
22251     # on some systems where configure will not decide to define it.
22252     if (defundef == "undef") {
22253       print "/*", prefix defundef, macro, "*/"
22254       next
22255     }
22256   }
22257 }
22258 { print }
22259 _ACAWK
22260 _ACEOF
22261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22262   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22263 fi # test -n "$CONFIG_HEADERS"
22264
22265
22266 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22267 shift
22268 for ac_tag
22269 do
22270   case $ac_tag in
22271   :[FHLC]) ac_mode=$ac_tag; continue;;
22272   esac
22273   case $ac_mode$ac_tag in
22274   :[FHL]*:*);;
22275   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22276   :[FH]-) ac_tag=-:-;;
22277   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22278   esac
22279   ac_save_IFS=$IFS
22280   IFS=:
22281   set x $ac_tag
22282   IFS=$ac_save_IFS
22283   shift
22284   ac_file=$1
22285   shift
22286
22287   case $ac_mode in
22288   :L) ac_source=$1;;
22289   :[FH])
22290     ac_file_inputs=
22291     for ac_f
22292     do
22293       case $ac_f in
22294       -) ac_f="$ac_tmp/stdin";;
22295       *) # Look for the file first in the build tree, then in the source tree
22296          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22297          # because $ac_f cannot contain `:'.
22298          test -f "$ac_f" ||
22299            case $ac_f in
22300            [\\/$]*) false;;
22301            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22302            esac ||
22303            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22304       esac
22305       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22306       as_fn_append ac_file_inputs " '$ac_f'"
22307     done
22308
22309     # Let's still pretend it is `configure' which instantiates (i.e., don't
22310     # use $as_me), people would be surprised to read:
22311     #    /* config.h.  Generated by config.status.  */
22312     configure_input='Generated from '`
22313           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22314         `' by configure.'
22315     if test x"$ac_file" != x-; then
22316       configure_input="$ac_file.  $configure_input"
22317       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22318 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22319     fi
22320     # Neutralize special characters interpreted by sed in replacement strings.
22321     case $configure_input in #(
22322     *\&* | *\|* | *\\* )
22323        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22324        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22325     *) ac_sed_conf_input=$configure_input;;
22326     esac
22327
22328     case $ac_tag in
22329     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22330       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22331     esac
22332     ;;
22333   esac
22334
22335   ac_dir=`$as_dirname -- "$ac_file" ||
22336 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22337          X"$ac_file" : 'X\(//\)[^/]' \| \
22338          X"$ac_file" : 'X\(//\)$' \| \
22339          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22340 printf "%s\n" X"$ac_file" |
22341     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22342             s//\1/
22343             q
22344           }
22345           /^X\(\/\/\)[^/].*/{
22346             s//\1/
22347             q
22348           }
22349           /^X\(\/\/\)$/{
22350             s//\1/
22351             q
22352           }
22353           /^X\(\/\).*/{
22354             s//\1/
22355             q
22356           }
22357           s/.*/./; q'`
22358   as_dir="$ac_dir"; as_fn_mkdir_p
22359   ac_builddir=.
22360
22361 case "$ac_dir" in
22362 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22363 *)
22364   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22365   # A ".." for each directory in $ac_dir_suffix.
22366   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22367   case $ac_top_builddir_sub in
22368   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22369   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22370   esac ;;
22371 esac
22372 ac_abs_top_builddir=$ac_pwd
22373 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22374 # for backward compatibility:
22375 ac_top_builddir=$ac_top_build_prefix
22376
22377 case $srcdir in
22378   .)  # We are building in place.
22379     ac_srcdir=.
22380     ac_top_srcdir=$ac_top_builddir_sub
22381     ac_abs_top_srcdir=$ac_pwd ;;
22382   [\\/]* | ?:[\\/]* )  # Absolute name.
22383     ac_srcdir=$srcdir$ac_dir_suffix;
22384     ac_top_srcdir=$srcdir
22385     ac_abs_top_srcdir=$srcdir ;;
22386   *) # Relative name.
22387     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22388     ac_top_srcdir=$ac_top_build_prefix$srcdir
22389     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22390 esac
22391 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22392
22393
22394   case $ac_mode in
22395   :F)
22396   #
22397   # CONFIG_FILE
22398   #
22399
22400   case $INSTALL in
22401   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22402   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22403   esac
22404   ac_MKDIR_P=$MKDIR_P
22405   case $MKDIR_P in
22406   [\\/$]* | ?:[\\/]* ) ;;
22407   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22408   esac
22409 _ACEOF
22410
22411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22412 # If the template does not know about datarootdir, expand it.
22413 # FIXME: This hack should be removed a few years after 2.60.
22414 ac_datarootdir_hack=; ac_datarootdir_seen=
22415 ac_sed_dataroot='
22416 /datarootdir/ {
22417   p
22418   q
22419 }
22420 /@datadir@/p
22421 /@docdir@/p
22422 /@infodir@/p
22423 /@localedir@/p
22424 /@mandir@/p'
22425 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22426 *datarootdir*) ac_datarootdir_seen=yes;;
22427 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22429 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22430 _ACEOF
22431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22432   ac_datarootdir_hack='
22433   s&@datadir@&$datadir&g
22434   s&@docdir@&$docdir&g
22435   s&@infodir@&$infodir&g
22436   s&@localedir@&$localedir&g
22437   s&@mandir@&$mandir&g
22438   s&\\\${datarootdir}&$datarootdir&g' ;;
22439 esac
22440 _ACEOF
22441
22442 # Neutralize VPATH when `$srcdir' = `.'.
22443 # Shell code in configure.ac might set extrasub.
22444 # FIXME: do we really want to maintain this feature?
22445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22446 ac_sed_extra="$ac_vpsub
22447 $extrasub
22448 _ACEOF
22449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22450 :t
22451 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22452 s|@configure_input@|$ac_sed_conf_input|;t t
22453 s&@top_builddir@&$ac_top_builddir_sub&;t t
22454 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22455 s&@srcdir@&$ac_srcdir&;t t
22456 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22457 s&@top_srcdir@&$ac_top_srcdir&;t t
22458 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22459 s&@builddir@&$ac_builddir&;t t
22460 s&@abs_builddir@&$ac_abs_builddir&;t t
22461 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22462 s&@INSTALL@&$ac_INSTALL&;t t
22463 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22464 $ac_datarootdir_hack
22465 "
22466 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22467   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22468
22469 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22470   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22471   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22472       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22473   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22474 which seems to be undefined.  Please make sure it is defined" >&5
22475 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22476 which seems to be undefined.  Please make sure it is defined" >&2;}
22477
22478   rm -f "$ac_tmp/stdin"
22479   case $ac_file in
22480   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22481   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22482   esac \
22483   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22484  ;;
22485   :H)
22486   #
22487   # CONFIG_HEADER
22488   #
22489   if test x"$ac_file" != x-; then
22490     {
22491       printf "%s\n" "/* $configure_input  */" >&1 \
22492       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22493     } >"$ac_tmp/config.h" \
22494       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22495     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22496       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22497 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22498     else
22499       rm -f "$ac_file"
22500       mv "$ac_tmp/config.h" "$ac_file" \
22501         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22502     fi
22503   else
22504     printf "%s\n" "/* $configure_input  */" >&1 \
22505       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22506       || as_fn_error $? "could not create -" "$LINENO" 5
22507   fi
22508 # Compute "$ac_file"'s index in $config_headers.
22509 _am_arg="$ac_file"
22510 _am_stamp_count=1
22511 for _am_header in $config_headers :; do
22512   case $_am_header in
22513     $_am_arg | $_am_arg:* )
22514       break ;;
22515     * )
22516       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22517   esac
22518 done
22519 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22520 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22521          X"$_am_arg" : 'X\(//\)[^/]' \| \
22522          X"$_am_arg" : 'X\(//\)$' \| \
22523          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22524 printf "%s\n" X"$_am_arg" |
22525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22526             s//\1/
22527             q
22528           }
22529           /^X\(\/\/\)[^/].*/{
22530             s//\1/
22531             q
22532           }
22533           /^X\(\/\/\)$/{
22534             s//\1/
22535             q
22536           }
22537           /^X\(\/\).*/{
22538             s//\1/
22539             q
22540           }
22541           s/.*/./; q'`/stamp-h$_am_stamp_count
22542  ;;
22543
22544   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22545 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22546  ;;
22547   esac
22548
22549
22550   case $ac_file$ac_mode in
22551     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22552   # Older Autoconf quotes --file arguments for eval, but not when files
22553   # are listed without --file.  Let's play safe and only enable the eval
22554   # if we detect the quoting.
22555   # TODO: see whether this extra hack can be removed once we start
22556   # requiring Autoconf 2.70 or later.
22557   case $CONFIG_FILES in #(
22558   *\'*) :
22559     eval set x "$CONFIG_FILES" ;; #(
22560   *) :
22561     set x $CONFIG_FILES ;; #(
22562   *) :
22563      ;;
22564 esac
22565   shift
22566   # Used to flag and report bootstrapping failures.
22567   am_rc=0
22568   for am_mf
22569   do
22570     # Strip MF so we end up with the name of the file.
22571     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22572     # Check whether this is an Automake generated Makefile which includes
22573     # dependency-tracking related rules and includes.
22574     # Grep'ing the whole file directly is not great: AIX grep has a line
22575     # limit of 2048, but all sed's we know have understand at least 4000.
22576     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22577       || continue
22578     am_dirpart=`$as_dirname -- "$am_mf" ||
22579 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22580          X"$am_mf" : 'X\(//\)[^/]' \| \
22581          X"$am_mf" : 'X\(//\)$' \| \
22582          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22583 printf "%s\n" X"$am_mf" |
22584     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22585             s//\1/
22586             q
22587           }
22588           /^X\(\/\/\)[^/].*/{
22589             s//\1/
22590             q
22591           }
22592           /^X\(\/\/\)$/{
22593             s//\1/
22594             q
22595           }
22596           /^X\(\/\).*/{
22597             s//\1/
22598             q
22599           }
22600           s/.*/./; q'`
22601     am_filepart=`$as_basename -- "$am_mf" ||
22602 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22603          X"$am_mf" : 'X\(//\)$' \| \
22604          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22605 printf "%s\n" X/"$am_mf" |
22606     sed '/^.*\/\([^/][^/]*\)\/*$/{
22607             s//\1/
22608             q
22609           }
22610           /^X\/\(\/\/\)$/{
22611             s//\1/
22612             q
22613           }
22614           /^X\/\(\/\).*/{
22615             s//\1/
22616             q
22617           }
22618           s/.*/./; q'`
22619     { echo "$as_me:$LINENO: cd "$am_dirpart" \
22620       && sed -e '/# am--include-marker/d' "$am_filepart" \
22621         | $MAKE -f - am--depfiles" >&5
22622    (cd "$am_dirpart" \
22623       && sed -e '/# am--include-marker/d' "$am_filepart" \
22624         | $MAKE -f - am--depfiles) >&5 2>&5
22625    ac_status=$?
22626    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627    (exit $ac_status); } || am_rc=$?
22628   done
22629   if test $am_rc -ne 0; then
22630     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22631 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22632 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22633     for automatic dependency tracking.  If GNU make was not used, consider
22634     re-running the configure script with MAKE=\"gmake\" (or whatever is
22635     necessary).  You can also try re-running configure with the
22636     '--disable-dependency-tracking' option to at least be able to build
22637     the package (albeit without support for automatic dependency tracking).
22638 See \`config.log' for more details" "$LINENO" 5; }
22639   fi
22640   { am_dirpart=; unset am_dirpart;}
22641   { am_filepart=; unset am_filepart;}
22642   { am_mf=; unset am_mf;}
22643   { am_rc=; unset am_rc;}
22644   rm -f conftest-deps.mk
22645 }
22646  ;;
22647     "libtool":C)
22648
22649     # See if we are running on zsh, and set the options that allow our
22650     # commands through without removal of \ escapes.
22651     if test -n "${ZSH_VERSION+set}"; then
22652       setopt NO_GLOB_SUBST
22653     fi
22654
22655     cfgfile=${ofile}T
22656     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22657     $RM "$cfgfile"
22658
22659     cat <<_LT_EOF >> "$cfgfile"
22660 #! $SHELL
22661 # Generated automatically by $as_me ($PACKAGE) $VERSION
22662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22663 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22664
22665 # Provide generalized library-building support services.
22666 # Written by Gordon Matzigkeit, 1996
22667
22668 # Copyright (C) 2014 Free Software Foundation, Inc.
22669 # This is free software; see the source for copying conditions.  There is NO
22670 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22671
22672 # GNU Libtool is free software; you can redistribute it and/or modify
22673 # it under the terms of the GNU General Public License as published by
22674 # the Free Software Foundation; either version 2 of of the License, or
22675 # (at your option) any later version.
22676 #
22677 # As a special exception to the GNU General Public License, if you
22678 # distribute this file as part of a program or library that is built
22679 # using GNU Libtool, you may include this file under the  same
22680 # distribution terms that you use for the rest of that program.
22681 #
22682 # GNU Libtool is distributed in the hope that it will be useful, but
22683 # WITHOUT ANY WARRANTY; without even the implied warranty of
22684 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22685 # GNU General Public License for more details.
22686 #
22687 # You should have received a copy of the GNU General Public License
22688 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22689
22690
22691 # The names of the tagged configurations supported by this script.
22692 available_tags=''
22693
22694 # Configured defaults for sys_lib_dlsearch_path munging.
22695 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22696
22697 # ### BEGIN LIBTOOL CONFIG
22698
22699 # Which release of libtool.m4 was used?
22700 macro_version=$macro_version
22701 macro_revision=$macro_revision
22702
22703 # Whether or not to build static libraries.
22704 build_old_libs=$enable_static
22705
22706 # Assembler program.
22707 AS=$lt_AS
22708
22709 # DLL creation program.
22710 DLLTOOL=$lt_DLLTOOL
22711
22712 # Object dumper program.
22713 OBJDUMP=$lt_OBJDUMP
22714
22715 # Whether or not to build shared libraries.
22716 build_libtool_libs=$enable_shared
22717
22718 # What type of objects to build.
22719 pic_mode=$pic_mode
22720
22721 # Whether or not to optimize for fast installation.
22722 fast_install=$enable_fast_install
22723
22724 # Shared archive member basename,for filename based shared library versioning on AIX.
22725 shared_archive_member_spec=$shared_archive_member_spec
22726
22727 # Shell to use when invoking shell scripts.
22728 SHELL=$lt_SHELL
22729
22730 # An echo program that protects backslashes.
22731 ECHO=$lt_ECHO
22732
22733 # The PATH separator for the build system.
22734 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22735
22736 # The host system.
22737 host_alias=$host_alias
22738 host=$host
22739 host_os=$host_os
22740
22741 # The build system.
22742 build_alias=$build_alias
22743 build=$build
22744 build_os=$build_os
22745
22746 # A sed program that does not truncate output.
22747 SED=$lt_SED
22748
22749 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22750 Xsed="\$SED -e 1s/^X//"
22751
22752 # A grep program that handles long lines.
22753 GREP=$lt_GREP
22754
22755 # An ERE matcher.
22756 EGREP=$lt_EGREP
22757
22758 # A literal string matcher.
22759 FGREP=$lt_FGREP
22760
22761 # A BSD- or MS-compatible name lister.
22762 NM=$lt_NM
22763
22764 # Whether we need soft or hard links.
22765 LN_S=$lt_LN_S
22766
22767 # What is the maximum length of a command?
22768 max_cmd_len=$max_cmd_len
22769
22770 # Object file suffix (normally "o").
22771 objext=$ac_objext
22772
22773 # Executable file suffix (normally "").
22774 exeext=$exeext
22775
22776 # whether the shell understands "unset".
22777 lt_unset=$lt_unset
22778
22779 # turn spaces into newlines.
22780 SP2NL=$lt_lt_SP2NL
22781
22782 # turn newlines into spaces.
22783 NL2SP=$lt_lt_NL2SP
22784
22785 # convert \$build file names to \$host format.
22786 to_host_file_cmd=$lt_cv_to_host_file_cmd
22787
22788 # convert \$build files to toolchain format.
22789 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22790
22791 # A file(cmd) program that detects file types.
22792 FILECMD=$lt_FILECMD
22793
22794 # Method to check whether dependent libraries are shared objects.
22795 deplibs_check_method=$lt_deplibs_check_method
22796
22797 # Command to use when deplibs_check_method = "file_magic".
22798 file_magic_cmd=$lt_file_magic_cmd
22799
22800 # How to find potential files when deplibs_check_method = "file_magic".
22801 file_magic_glob=$lt_file_magic_glob
22802
22803 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22804 want_nocaseglob=$lt_want_nocaseglob
22805
22806 # Command to associate shared and link libraries.
22807 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22808
22809 # The archiver.
22810 AR=$lt_AR
22811
22812 # Flags to create an archive (by configure).
22813 lt_ar_flags=$lt_ar_flags
22814
22815 # Flags to create an archive.
22816 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22817
22818 # How to feed a file listing to the archiver.
22819 archiver_list_spec=$lt_archiver_list_spec
22820
22821 # A symbol stripping program.
22822 STRIP=$lt_STRIP
22823
22824 # Commands used to install an old-style archive.
22825 RANLIB=$lt_RANLIB
22826 old_postinstall_cmds=$lt_old_postinstall_cmds
22827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22828
22829 # Whether to use a lock for old archive extraction.
22830 lock_old_archive_extraction=$lock_old_archive_extraction
22831
22832 # A C compiler.
22833 LTCC=$lt_CC
22834
22835 # LTCC compiler flags.
22836 LTCFLAGS=$lt_CFLAGS
22837
22838 # Take the output of nm and produce a listing of raw symbols and C names.
22839 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22840
22841 # Transform the output of nm in a proper C declaration.
22842 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22843
22844 # Transform the output of nm into a list of symbols to manually relocate.
22845 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22846
22847 # Transform the output of nm in a C name address pair.
22848 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22849
22850 # Transform the output of nm in a C name address pair when lib prefix is needed.
22851 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22852
22853 # The name lister interface.
22854 nm_interface=$lt_lt_cv_nm_interface
22855
22856 # Specify filename containing input files for \$NM.
22857 nm_file_list_spec=$lt_nm_file_list_spec
22858
22859 # The root where to search for dependent libraries,and where our libraries should be installed.
22860 lt_sysroot=$lt_sysroot
22861
22862 # Command to truncate a binary pipe.
22863 lt_truncate_bin=$lt_lt_cv_truncate_bin
22864
22865 # The name of the directory that contains temporary libtool files.
22866 objdir=$objdir
22867
22868 # Used to examine libraries when file_magic_cmd begins with "file".
22869 MAGIC_CMD=$MAGIC_CMD
22870
22871 # Must we lock files when doing compilation?
22872 need_locks=$lt_need_locks
22873
22874 # Manifest tool.
22875 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22876
22877 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22878 DSYMUTIL=$lt_DSYMUTIL
22879
22880 # Tool to change global to local symbols on Mac OS X.
22881 NMEDIT=$lt_NMEDIT
22882
22883 # Tool to manipulate fat objects and archives on Mac OS X.
22884 LIPO=$lt_LIPO
22885
22886 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22887 OTOOL=$lt_OTOOL
22888
22889 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22890 OTOOL64=$lt_OTOOL64
22891
22892 # Old archive suffix (normally "a").
22893 libext=$libext
22894
22895 # Shared library suffix (normally ".so").
22896 shrext_cmds=$lt_shrext_cmds
22897
22898 # The commands to extract the exported symbol list from a shared archive.
22899 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22900
22901 # Variables whose values should be saved in libtool wrapper scripts and
22902 # restored at link time.
22903 variables_saved_for_relink=$lt_variables_saved_for_relink
22904
22905 # Do we need the "lib" prefix for modules?
22906 need_lib_prefix=$need_lib_prefix
22907
22908 # Do we need a version for libraries?
22909 need_version=$need_version
22910
22911 # Library versioning type.
22912 version_type=$version_type
22913
22914 # Shared library runtime path variable.
22915 runpath_var=$runpath_var
22916
22917 # Shared library path variable.
22918 shlibpath_var=$shlibpath_var
22919
22920 # Is shlibpath searched before the hard-coded library search path?
22921 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22922
22923 # Format of library name prefix.
22924 libname_spec=$lt_libname_spec
22925
22926 # List of archive names.  First name is the real one, the rest are links.
22927 # The last name is the one that the linker finds with -lNAME
22928 library_names_spec=$lt_library_names_spec
22929
22930 # The coded name of the library, if different from the real name.
22931 soname_spec=$lt_soname_spec
22932
22933 # Permission mode override for installation of shared libraries.
22934 install_override_mode=$lt_install_override_mode
22935
22936 # Command to use after installation of a shared archive.
22937 postinstall_cmds=$lt_postinstall_cmds
22938
22939 # Command to use after uninstallation of a shared archive.
22940 postuninstall_cmds=$lt_postuninstall_cmds
22941
22942 # Commands used to finish a libtool library installation in a directory.
22943 finish_cmds=$lt_finish_cmds
22944
22945 # As "finish_cmds", except a single script fragment to be evaled but
22946 # not shown.
22947 finish_eval=$lt_finish_eval
22948
22949 # Whether we should hardcode library paths into libraries.
22950 hardcode_into_libs=$hardcode_into_libs
22951
22952 # Compile-time system search path for libraries.
22953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22954
22955 # Detected run-time system search path for libraries.
22956 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22957
22958 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22959 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22960
22961 # Whether dlopen is supported.
22962 dlopen_support=$enable_dlopen
22963
22964 # Whether dlopen of programs is supported.
22965 dlopen_self=$enable_dlopen_self
22966
22967 # Whether dlopen of statically linked programs is supported.
22968 dlopen_self_static=$enable_dlopen_self_static
22969
22970 # Commands to strip libraries.
22971 old_striplib=$lt_old_striplib
22972 striplib=$lt_striplib
22973
22974
22975 # The linker used to build libraries.
22976 LD=$lt_LD
22977
22978 # How to create reloadable object files.
22979 reload_flag=$lt_reload_flag
22980 reload_cmds=$lt_reload_cmds
22981
22982 # Commands used to build an old-style archive.
22983 old_archive_cmds=$lt_old_archive_cmds
22984
22985 # A language specific compiler.
22986 CC=$lt_compiler
22987
22988 # Is the compiler the GNU compiler?
22989 with_gcc=$GCC
22990
22991 # Compiler flag to turn off builtin functions.
22992 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22993
22994 # Additional compiler flags for building library objects.
22995 pic_flag=$lt_lt_prog_compiler_pic
22996
22997 # How to pass a linker flag through the compiler.
22998 wl=$lt_lt_prog_compiler_wl
22999
23000 # Compiler flag to prevent dynamic linking.
23001 link_static_flag=$lt_lt_prog_compiler_static
23002
23003 # Does compiler simultaneously support -c and -o options?
23004 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23005
23006 # Whether or not to add -lc for building shared libraries.
23007 build_libtool_need_lc=$archive_cmds_need_lc
23008
23009 # Whether or not to disallow shared libs when runtime libs are static.
23010 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23011
23012 # Compiler flag to allow reflexive dlopens.
23013 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23014
23015 # Compiler flag to generate shared objects directly from archives.
23016 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23017
23018 # Whether the compiler copes with passing no objects directly.
23019 compiler_needs_object=$lt_compiler_needs_object
23020
23021 # Create an old-style archive from a shared archive.
23022 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23023
23024 # Create a temporary old-style archive to link instead of a shared archive.
23025 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23026
23027 # Commands used to build a shared archive.
23028 archive_cmds=$lt_archive_cmds
23029 archive_expsym_cmds=$lt_archive_expsym_cmds
23030
23031 # Commands used to build a loadable module if different from building
23032 # a shared archive.
23033 module_cmds=$lt_module_cmds
23034 module_expsym_cmds=$lt_module_expsym_cmds
23035
23036 # Whether we are building with GNU ld or not.
23037 with_gnu_ld=$lt_with_gnu_ld
23038
23039 # Flag that allows shared libraries with undefined symbols to be built.
23040 allow_undefined_flag=$lt_allow_undefined_flag
23041
23042 # Flag that enforces no undefined symbols.
23043 no_undefined_flag=$lt_no_undefined_flag
23044
23045 # Flag to hardcode \$libdir into a binary during linking.
23046 # This must work even if \$libdir does not exist
23047 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23048
23049 # Whether we need a single "-rpath" flag with a separated argument.
23050 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23051
23052 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23053 # DIR into the resulting binary.
23054 hardcode_direct=$hardcode_direct
23055
23056 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23057 # DIR into the resulting binary and the resulting library dependency is
23058 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23059 # library is relocated.
23060 hardcode_direct_absolute=$hardcode_direct_absolute
23061
23062 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23063 # into the resulting binary.
23064 hardcode_minus_L=$hardcode_minus_L
23065
23066 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23067 # into the resulting binary.
23068 hardcode_shlibpath_var=$hardcode_shlibpath_var
23069
23070 # Set to "yes" if building a shared library automatically hardcodes DIR
23071 # into the library and all subsequent libraries and executables linked
23072 # against it.
23073 hardcode_automatic=$hardcode_automatic
23074
23075 # Set to yes if linker adds runtime paths of dependent libraries
23076 # to runtime path list.
23077 inherit_rpath=$inherit_rpath
23078
23079 # Whether libtool must link a program against all its dependency libraries.
23080 link_all_deplibs=$link_all_deplibs
23081
23082 # Set to "yes" if exported symbols are required.
23083 always_export_symbols=$always_export_symbols
23084
23085 # The commands to list exported symbols.
23086 export_symbols_cmds=$lt_export_symbols_cmds
23087
23088 # Symbols that should not be listed in the preloaded symbols.
23089 exclude_expsyms=$lt_exclude_expsyms
23090
23091 # Symbols that must always be exported.
23092 include_expsyms=$lt_include_expsyms
23093
23094 # Commands necessary for linking programs (against libraries) with templates.
23095 prelink_cmds=$lt_prelink_cmds
23096
23097 # Commands necessary for finishing linking programs.
23098 postlink_cmds=$lt_postlink_cmds
23099
23100 # Specify filename containing input files.
23101 file_list_spec=$lt_file_list_spec
23102
23103 # How to hardcode a shared library path into an executable.
23104 hardcode_action=$hardcode_action
23105
23106 # ### END LIBTOOL CONFIG
23107
23108 _LT_EOF
23109
23110     cat <<'_LT_EOF' >> "$cfgfile"
23111
23112 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23113
23114 # func_munge_path_list VARIABLE PATH
23115 # -----------------------------------
23116 # VARIABLE is name of variable containing _space_ separated list of
23117 # directories to be munged by the contents of PATH, which is string
23118 # having a format:
23119 # "DIR[:DIR]:"
23120 #       string "DIR[ DIR]" will be prepended to VARIABLE
23121 # ":DIR[:DIR]"
23122 #       string "DIR[ DIR]" will be appended to VARIABLE
23123 # "DIRP[:DIRP]::[DIRA:]DIRA"
23124 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23125 #       "DIRA[ DIRA]" will be appended to VARIABLE
23126 # "DIR[:DIR]"
23127 #       VARIABLE will be replaced by "DIR[ DIR]"
23128 func_munge_path_list ()
23129 {
23130     case x$2 in
23131     x)
23132         ;;
23133     *:)
23134         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23135         ;;
23136     x:*)
23137         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23138         ;;
23139     *::*)
23140         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23141         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23142         ;;
23143     *)
23144         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23145         ;;
23146     esac
23147 }
23148
23149
23150 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23151 func_cc_basename ()
23152 {
23153     for cc_temp in $*""; do
23154       case $cc_temp in
23155         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23156         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23157         \-*) ;;
23158         *) break;;
23159       esac
23160     done
23161     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23162 }
23163
23164
23165 # ### END FUNCTIONS SHARED WITH CONFIGURE
23166
23167 _LT_EOF
23168
23169   case $host_os in
23170   aix3*)
23171     cat <<\_LT_EOF >> "$cfgfile"
23172 # AIX sometimes has problems with the GCC collect2 program.  For some
23173 # reason, if we set the COLLECT_NAMES environment variable, the problems
23174 # vanish in a puff of smoke.
23175 if test set != "${COLLECT_NAMES+set}"; then
23176   COLLECT_NAMES=
23177   export COLLECT_NAMES
23178 fi
23179 _LT_EOF
23180     ;;
23181   esac
23182
23183
23184
23185 ltmain=$ac_aux_dir/ltmain.sh
23186
23187
23188   # We use sed instead of cat because bash on DJGPP gets confused if
23189   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23190   # text mode, it properly converts lines to CR/LF.  This bash problem
23191   # is reportedly fixed, but why not run on old versions too?
23192   $SED '$q' "$ltmain" >> "$cfgfile" \
23193      || (rm -f "$cfgfile"; exit 1)
23194
23195    mv -f "$cfgfile" "$ofile" ||
23196     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23197   chmod +x "$ofile"
23198
23199  ;;
23200     "po-directories":C)
23201     for ac_file in $CONFIG_FILES; do
23202       # Support "outfile[:infile[:infile...]]"
23203       case "$ac_file" in
23204         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23205       esac
23206       # PO directories have a Makefile.in generated from Makefile.in.in.
23207       case "$ac_file" in */Makefile.in)
23208         # Adjust a relative srcdir.
23209         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23210         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
23211         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23212         # In autoconf-2.13 it is called $ac_given_srcdir.
23213         # In autoconf-2.50 it is called $srcdir.
23214         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23215         case "$ac_given_srcdir" in
23216           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23217           /*) top_srcdir="$ac_given_srcdir" ;;
23218           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23219         esac
23220         # Treat a directory as a PO directory if and only if it has a
23221         # POTFILES.in file. This allows packages to have multiple PO
23222         # directories under different names or in different locations.
23223         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23224           rm -f "$ac_dir/POTFILES"
23225           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23226           gt_tab=`printf '\t'`
23227           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23228           POMAKEFILEDEPS="POTFILES.in"
23229           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23230           # on $ac_dir but don't depend on user-specified configuration
23231           # parameters.
23232           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23233             # The LINGUAS file contains the set of available languages.
23234             if test -n "$OBSOLETE_ALL_LINGUAS"; then
23235               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23236             fi
23237             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23238             # Hide the ALL_LINGUAS assignment from automake < 1.5.
23239             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23240             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23241           else
23242             # The set of available languages was given in configure.in.
23243             # Hide the ALL_LINGUAS assignment from automake < 1.5.
23244             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23245           fi
23246           # Compute POFILES
23247           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23248           # Compute UPDATEPOFILES
23249           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23250           # Compute DUMMYPOFILES
23251           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23252           # Compute GMOFILES
23253           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23254           case "$ac_given_srcdir" in
23255             .) srcdirpre= ;;
23256             *) srcdirpre='$(srcdir)/' ;;
23257           esac
23258           POFILES=
23259           UPDATEPOFILES=
23260           DUMMYPOFILES=
23261           GMOFILES=
23262           for lang in $ALL_LINGUAS; do
23263             POFILES="$POFILES $srcdirpre$lang.po"
23264             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23265             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23266             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23267           done
23268           # CATALOGS depends on both $ac_dir and the user's LINGUAS
23269           # environment variable.
23270           INST_LINGUAS=
23271           if test -n "$ALL_LINGUAS"; then
23272             for presentlang in $ALL_LINGUAS; do
23273               useit=no
23274               if test "%UNSET%" != "$LINGUAS"; then
23275                 desiredlanguages="$LINGUAS"
23276               else
23277                 desiredlanguages="$ALL_LINGUAS"
23278               fi
23279               for desiredlang in $desiredlanguages; do
23280                 # Use the presentlang catalog if desiredlang is
23281                 #   a. equal to presentlang, or
23282                 #   b. a variant of presentlang (because in this case,
23283                 #      presentlang can be used as a fallback for messages
23284                 #      which are not translated in the desiredlang catalog).
23285                 case "$desiredlang" in
23286                   "$presentlang"*) useit=yes;;
23287                 esac
23288               done
23289               if test $useit = yes; then
23290                 INST_LINGUAS="$INST_LINGUAS $presentlang"
23291               fi
23292             done
23293           fi
23294           CATALOGS=
23295           if test -n "$INST_LINGUAS"; then
23296             for lang in $INST_LINGUAS; do
23297               CATALOGS="$CATALOGS $lang.gmo"
23298             done
23299           fi
23300           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23301           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23302           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23303             if test -f "$f"; then
23304               case "$f" in
23305                 *.orig | *.bak | *~) ;;
23306                 *) cat "$f" >> "$ac_dir/Makefile" ;;
23307               esac
23308             fi
23309           done
23310         fi
23311         ;;
23312       esac
23313     done ;;
23314     "$ac_stdint_h":C)
23315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
23316 printf "%s\n" "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
23317 ac_stdint=$tmp/_stdint.h
23318
23319 echo "#ifndef" $_ac_stdint_h >$ac_stdint
23320 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
23321 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
23322 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
23323 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
23324 if test "_$ac_cv_header_stdint_t" != "_" ; then
23325 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
23326 echo "#include <stdint.h>" >>$ac_stdint
23327 echo "#endif" >>$ac_stdint
23328 echo "#endif" >>$ac_stdint
23329 else
23330
23331 cat >>$ac_stdint <<STDINT_EOF
23332
23333 /* ................... shortcircuit part ........................... */
23334
23335 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
23336 #include <stdint.h>
23337 #else
23338 #include <stddef.h>
23339
23340 /* .................... configured part ............................ */
23341
23342 STDINT_EOF
23343
23344 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
23345 if test "_$ac_cv_header_stdint_x" != "_" ; then
23346   ac_header="$ac_cv_header_stdint_x"
23347   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
23348 else
23349   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
23350 fi
23351
23352 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
23353 if  test "_$ac_cv_header_stdint_o" != "_" ; then
23354   ac_header="$ac_cv_header_stdint_o"
23355   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
23356 else
23357   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
23358 fi
23359
23360 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
23361 if  test "_$ac_cv_header_stdint_u" != "_" ; then
23362   ac_header="$ac_cv_header_stdint_u"
23363   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
23364 else
23365   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
23366 fi
23367
23368 echo "" >>$ac_stdint
23369
23370 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
23371   echo "#include <$ac_header>" >>$ac_stdint
23372   echo "" >>$ac_stdint
23373 fi fi
23374
23375 echo "/* which 64bit typedef has been found */" >>$ac_stdint
23376 if test "$ac_cv_type_uint64_t" = "yes" ; then
23377 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
23378 else
23379 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
23380 fi
23381 if test "$ac_cv_type_u_int64_t" = "yes" ; then
23382 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
23383 else
23384 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
23385 fi
23386 echo "" >>$ac_stdint
23387
23388 echo "/* which type model has been detected */" >>$ac_stdint
23389 if test "_$ac_cv_char_data_model" != "_" ; then
23390 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
23391 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
23392 else
23393 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
23394 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
23395 fi
23396 echo "" >>$ac_stdint
23397
23398 echo "/* whether int_least types were detected */" >>$ac_stdint
23399 if test "$ac_cv_type_int_least32_t" = "yes"; then
23400 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
23401 else
23402 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
23403 fi
23404 echo "/* whether int_fast types were detected */" >>$ac_stdint
23405 if test "$ac_cv_type_int_fast32_t" = "yes"; then
23406 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
23407 else
23408 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
23409 fi
23410 echo "/* whether intmax_t type was detected */" >>$ac_stdint
23411 if test "$ac_cv_type_intmax_t" = "yes"; then
23412 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
23413 else
23414 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
23415 fi
23416 echo "" >>$ac_stdint
23417
23418   cat >>$ac_stdint <<STDINT_EOF
23419 /* .................... detections part ............................ */
23420
23421 /* whether we need to define bitspecific types from compiler base types */
23422 #ifndef _STDINT_HEADER_INTPTR
23423 #ifndef _STDINT_HEADER_UINT32
23424 #ifndef _STDINT_HEADER_U_INT32
23425 #define _STDINT_NEED_INT_MODEL_T
23426 #else
23427 #define _STDINT_HAVE_U_INT_TYPES
23428 #endif
23429 #endif
23430 #endif
23431
23432 #ifdef _STDINT_HAVE_U_INT_TYPES
23433 #undef _STDINT_NEED_INT_MODEL_T
23434 #endif
23435
23436 #ifdef  _STDINT_CHAR_MODEL
23437 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
23438 #ifndef _STDINT_BYTE_MODEL
23439 #define _STDINT_BYTE_MODEL 12
23440 #endif
23441 #endif
23442 #endif
23443
23444 #ifndef _STDINT_HAVE_INT_LEAST32_T
23445 #define _STDINT_NEED_INT_LEAST_T
23446 #endif
23447
23448 #ifndef _STDINT_HAVE_INT_FAST32_T
23449 #define _STDINT_NEED_INT_FAST_T
23450 #endif
23451
23452 #ifndef _STDINT_HEADER_INTPTR
23453 #define _STDINT_NEED_INTPTR_T
23454 #ifndef _STDINT_HAVE_INTMAX_T
23455 #define _STDINT_NEED_INTMAX_T
23456 #endif
23457 #endif
23458
23459
23460 /* .................... definition part ............................ */
23461
23462 /* some system headers have good uint64_t */
23463 #ifndef _HAVE_UINT64_T
23464 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
23465 #define _HAVE_UINT64_T
23466 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
23467 #define _HAVE_UINT64_T
23468 typedef u_int64_t uint64_t;
23469 #endif
23470 #endif
23471
23472 #ifndef _HAVE_UINT64_T
23473 /* .. here are some common heuristics using compiler runtime specifics */
23474 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
23475 #define _HAVE_UINT64_T
23476 #define _HAVE_LONGLONG_UINT64_T
23477 typedef long long int64_t;
23478 typedef unsigned long long uint64_t;
23479
23480 #elif !defined __STRICT_ANSI__
23481 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23482 #define _HAVE_UINT64_T
23483 typedef __int64 int64_t;
23484 typedef unsigned __int64 uint64_t;
23485
23486 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
23487 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
23488 #if !defined _NO_LONGLONG
23489 #define _HAVE_UINT64_T
23490 #define _HAVE_LONGLONG_UINT64_T
23491 typedef long long int64_t;
23492 typedef unsigned long long uint64_t;
23493 #endif
23494
23495 #elif defined __alpha || (defined __mips && defined _ABIN32)
23496 #if !defined _NO_LONGLONG
23497 typedef long int64_t;
23498 typedef unsigned long uint64_t;
23499 #endif
23500   /* compiler/cpu type to define int64_t */
23501 #endif
23502 #endif
23503 #endif
23504
23505 #if defined _STDINT_HAVE_U_INT_TYPES
23506 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
23507 typedef u_int8_t uint8_t;
23508 typedef u_int16_t uint16_t;
23509 typedef u_int32_t uint32_t;
23510
23511 /* glibc compatibility */
23512 #ifndef __int8_t_defined
23513 #define __int8_t_defined
23514 #endif
23515 #endif
23516
23517 #ifdef _STDINT_NEED_INT_MODEL_T
23518 /* we must guess all the basic types. Apart from byte-adressable system, */
23519 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
23520 /* (btw, those nibble-addressable systems are way off, or so we assume) */
23521
23522
23523 #if defined _STDINT_BYTE_MODEL
23524 #if _STDINT_LONG_MODEL+0 == 242
23525 /* 2:4:2 =  IP16 = a normal 16-bit system                */
23526 typedef unsigned char   uint8_t;
23527 typedef unsigned short  uint16_t;
23528 typedef unsigned long   uint32_t;
23529 #ifndef __int8_t_defined
23530 #define __int8_t_defined
23531 typedef          char    int8_t;
23532 typedef          short   int16_t;
23533 typedef          long    int32_t;
23534 #endif
23535 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
23536 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
23537 /* 4:4:4 = ILP32 = a normal 32-bit system                */
23538 typedef unsigned char   uint8_t;
23539 typedef unsigned short  uint16_t;
23540 typedef unsigned int    uint32_t;
23541 #ifndef __int8_t_defined
23542 #define __int8_t_defined
23543 typedef          char    int8_t;
23544 typedef          short   int16_t;
23545 typedef          int     int32_t;
23546 #endif
23547 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
23548 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
23549 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
23550 typedef unsigned char   uint8_t;
23551 typedef unsigned short  uint16_t;
23552 typedef unsigned int    uint32_t;
23553 #ifndef __int8_t_defined
23554 #define __int8_t_defined
23555 typedef          char    int8_t;
23556 typedef          short   int16_t;
23557 typedef          int     int32_t;
23558 #endif
23559 /* this system has a "long" of 64bit */
23560 #ifndef _HAVE_UINT64_T
23561 #define _HAVE_UINT64_T
23562 typedef unsigned long   uint64_t;
23563 typedef          long    int64_t;
23564 #endif
23565 #elif _STDINT_LONG_MODEL+0 == 448
23566 /*      LLP64   a 64-bit system derived from a 32-bit system */
23567 typedef unsigned char   uint8_t;
23568 typedef unsigned short  uint16_t;
23569 typedef unsigned int    uint32_t;
23570 #ifndef __int8_t_defined
23571 #define __int8_t_defined
23572 typedef          char    int8_t;
23573 typedef          short   int16_t;
23574 typedef          int     int32_t;
23575 #endif
23576 /* assuming the system has a "long long" */
23577 #ifndef _HAVE_UINT64_T
23578 #define _HAVE_UINT64_T
23579 #define _HAVE_LONGLONG_UINT64_T
23580 typedef unsigned long long uint64_t;
23581 typedef          long long  int64_t;
23582 #endif
23583 #else
23584 #define _STDINT_NO_INT32_T
23585 #endif
23586 #else
23587 #define _STDINT_NO_INT8_T
23588 #define _STDINT_NO_INT32_T
23589 #endif
23590 #endif
23591
23592 /*
23593  * quote from SunOS-5.8 sys/inttypes.h:
23594  * Use at your own risk.  As of February 1996, the committee is squarely
23595  * behind the fixed sized types; the "least" and "fast" types are still being
23596  * discussed.  The probability that the "fast" types may be removed before
23597  * the standard is finalized is high enough that they are not currently
23598  * implemented.
23599  */
23600
23601 #if defined _STDINT_NEED_INT_LEAST_T
23602 typedef  int8_t    int_least8_t;
23603 typedef  int16_t   int_least16_t;
23604 typedef  int32_t   int_least32_t;
23605 #ifdef _HAVE_UINT64_T
23606 typedef  int64_t   int_least64_t;
23607 #endif
23608
23609 typedef uint8_t   uint_least8_t;
23610 typedef uint16_t  uint_least16_t;
23611 typedef uint32_t  uint_least32_t;
23612 #ifdef _HAVE_UINT64_T
23613 typedef uint64_t  uint_least64_t;
23614 #endif
23615   /* least types */
23616 #endif
23617
23618 #if defined _STDINT_NEED_INT_FAST_T
23619 typedef  int8_t    int_fast8_t;
23620 typedef  int       int_fast16_t;
23621 typedef  int32_t   int_fast32_t;
23622 #ifdef _HAVE_UINT64_T
23623 typedef  int64_t   int_fast64_t;
23624 #endif
23625
23626 typedef uint8_t   uint_fast8_t;
23627 typedef unsigned  uint_fast16_t;
23628 typedef uint32_t  uint_fast32_t;
23629 #ifdef _HAVE_UINT64_T
23630 typedef uint64_t  uint_fast64_t;
23631 #endif
23632   /* fast types */
23633 #endif
23634
23635 #ifdef _STDINT_NEED_INTMAX_T
23636 #ifdef _HAVE_UINT64_T
23637 typedef  int64_t       intmax_t;
23638 typedef uint64_t      uintmax_t;
23639 #else
23640 typedef          long  intmax_t;
23641 typedef unsigned long uintmax_t;
23642 #endif
23643 #endif
23644
23645 #ifdef _STDINT_NEED_INTPTR_T
23646 #ifndef __intptr_t_defined
23647 #define __intptr_t_defined
23648 /* we encourage using "long" to store pointer values, never use "int" ! */
23649 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
23650 typedef  unsigned int   uintptr_t;
23651 typedef           int    intptr_t;
23652 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
23653 typedef  unsigned long  uintptr_t;
23654 typedef           long   intptr_t;
23655 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
23656 typedef        uint64_t uintptr_t;
23657 typedef         int64_t  intptr_t;
23658 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
23659 typedef  unsigned long  uintptr_t;
23660 typedef           long   intptr_t;
23661 #endif
23662 #endif
23663 #endif
23664
23665 /* The ISO C99 standard specifies that in C++ implementations these
23666    should only be defined if explicitly requested.  */
23667 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
23668 #ifndef UINT32_C
23669
23670 /* Signed.  */
23671 # define INT8_C(c)      c
23672 # define INT16_C(c)     c
23673 # define INT32_C(c)     c
23674 # ifdef _HAVE_LONGLONG_UINT64_T
23675 #  define INT64_C(c)    c ## L
23676 # else
23677 #  define INT64_C(c)    c ## LL
23678 # endif
23679
23680 /* Unsigned.  */
23681 # define UINT8_C(c)     c ## U
23682 # define UINT16_C(c)    c ## U
23683 # define UINT32_C(c)    c ## U
23684 # ifdef _HAVE_LONGLONG_UINT64_T
23685 #  define UINT64_C(c)   c ## UL
23686 # else
23687 #  define UINT64_C(c)   c ## ULL
23688 # endif
23689
23690 /* Maximal type.  */
23691 # ifdef _HAVE_LONGLONG_UINT64_T
23692 #  define INTMAX_C(c)   c ## L
23693 #  define UINTMAX_C(c)  c ## UL
23694 # else
23695 #  define INTMAX_C(c)   c ## LL
23696 #  define UINTMAX_C(c)  c ## ULL
23697 # endif
23698
23699   /* literalnumbers */
23700 #endif
23701 #endif
23702
23703 /* These limits are merily those of a two complement byte-oriented system */
23704
23705 /* Minimum of signed integral types.  */
23706 # define INT8_MIN               (-128)
23707 # define INT16_MIN              (-32767-1)
23708 # define INT32_MIN              (-2147483647-1)
23709 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
23710 /* Maximum of signed integral types.  */
23711 # define INT8_MAX               (127)
23712 # define INT16_MAX              (32767)
23713 # define INT32_MAX              (2147483647)
23714 # define INT64_MAX              (__INT64_C(9223372036854775807))
23715
23716 /* Maximum of unsigned integral types.  */
23717 # define UINT8_MAX              (255)
23718 # define UINT16_MAX             (65535)
23719 # define UINT32_MAX             (4294967295U)
23720 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
23721
23722 /* Minimum of signed integral types having a minimum size.  */
23723 # define INT_LEAST8_MIN         INT8_MIN
23724 # define INT_LEAST16_MIN        INT16_MIN
23725 # define INT_LEAST32_MIN        INT32_MIN
23726 # define INT_LEAST64_MIN        INT64_MIN
23727 /* Maximum of signed integral types having a minimum size.  */
23728 # define INT_LEAST8_MAX         INT8_MAX
23729 # define INT_LEAST16_MAX        INT16_MAX
23730 # define INT_LEAST32_MAX        INT32_MAX
23731 # define INT_LEAST64_MAX        INT64_MAX
23732
23733 /* Maximum of unsigned integral types having a minimum size.  */
23734 # define UINT_LEAST8_MAX        UINT8_MAX
23735 # define UINT_LEAST16_MAX       UINT16_MAX
23736 # define UINT_LEAST32_MAX       UINT32_MAX
23737 # define UINT_LEAST64_MAX       UINT64_MAX
23738
23739   /* shortcircuit*/
23740 #endif
23741   /* once */
23742 #endif
23743 #endif
23744 STDINT_EOF
23745 fi
23746     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
23747       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
23748 printf "%s\n" "$as_me: $ac_stdint_h is unchanged" >&6;}
23749     else
23750       ac_dir=`$as_dirname -- "$ac_stdint_h" ||
23751 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23752          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
23753          X"$ac_stdint_h" : 'X\(//\)$' \| \
23754          X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
23755 printf "%s\n" X"$ac_stdint_h" |
23756     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23757             s//\1/
23758             q
23759           }
23760           /^X\(\/\/\)[^/].*/{
23761             s//\1/
23762             q
23763           }
23764           /^X\(\/\/\)$/{
23765             s//\1/
23766             q
23767           }
23768           /^X\(\/\).*/{
23769             s//\1/
23770             q
23771           }
23772           s/.*/./; q'`
23773       as_dir="$ac_dir"; as_fn_mkdir_p
23774       rm -f $ac_stdint_h
23775       mv $ac_stdint $ac_stdint_h
23776     fi
23777  ;;
23778
23779   esac
23780 done # for ac_tag
23781
23782
23783 as_fn_exit 0
23784 _ACEOF
23785 ac_clean_files=$ac_clean_files_save
23786
23787 test $ac_write_fail = 0 ||
23788   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23789
23790
23791 # configure is writing to config.log, and then calls config.status.
23792 # config.status does its own redirection, appending to config.log.
23793 # Unfortunately, on DOS this fails, as config.log is still kept open
23794 # by configure, so config.status won't be able to write to it; its
23795 # output is simply discarded.  So we exec the FD to /dev/null,
23796 # effectively closing config.log, so it can be properly (re)opened and
23797 # appended to by config.status.  When coming back to configure, we
23798 # need to make the FD available again.
23799 if test "$no_create" != yes; then
23800   ac_cs_success=:
23801   ac_config_status_args=
23802   test "$silent" = yes &&
23803     ac_config_status_args="$ac_config_status_args --quiet"
23804   exec 5>/dev/null
23805   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23806   exec 5>>config.log
23807   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23808   # would make configure fail if this is the last instruction.
23809   $ac_cs_success || as_fn_exit 1
23810 fi
23811 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23812   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23813 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23814 fi
23815
23816