Imported Upstream version 2.13.2
[platform/upstream/freetype2.git] / builds / unix / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for FreeType 2.13.2.
4 #
5 # Report bugs to <freetype@nongnu.org>.
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: freetype@nongnu.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312   return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320   set +e
321   as_fn_set_status $1
322   exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329   return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339   case $as_dir in #(
340   -*) as_dir=./$as_dir;;
341   esac
342   test -d "$as_dir" || eval $as_mkdir_p || {
343     as_dirs=
344     while :; do
345       case $as_dir in #(
346       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347       *) as_qdir=$as_dir;;
348       esac
349       as_dirs="'$as_qdir' $as_dirs"
350       as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352          X"$as_dir" : 'X\(//\)[^/]' \| \
353          X"$as_dir" : 'X\(//\)$' \| \
354          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357             s//\1/
358             q
359           }
360           /^X\(\/\/\)[^/].*/{
361             s//\1/
362             q
363           }
364           /^X\(\/\/\)$/{
365             s//\1/
366             q
367           }
368           /^X\(\/\).*/{
369             s//\1/
370             q
371           }
372           s/.*/./; q'`
373       test -d "$as_dir" && break
374     done
375     test -z "$as_dirs" || eval "mkdir $as_dirs"
376   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386   test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396   eval 'as_fn_append ()
397   {
398     eval $1+=\$2
399   }'
400 else $as_nop
401   as_fn_append ()
402   {
403     eval $1=\$$1\$2
404   }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414   eval 'as_fn_arith ()
415   {
416     as_val=$(( $* ))
417   }'
418 else $as_nop
419   as_fn_arith ()
420   {
421     as_val=`expr "$@" || test $? -eq 1`
422   }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430   return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441   as_status=$1; test $as_status -eq 0 && as_status=1
442   if test "$4"; then
443     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445   fi
446   printf "%s\n" "$as_me: error: $2" >&2
447   as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451    test "X`expr 00001 : '.*\(...\)'`" = X001; then
452   as_expr=expr
453 else
454   as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458   as_basename=basename
459 else
460   as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464   as_dirname=dirname
465 else
466   as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471          X"$0" : 'X\(//\)$' \| \
472          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474     sed '/^.*\/\([^/][^/]*\)\/*$/{
475             s//\1/
476             q
477           }
478           /^X\/\(\/\/\)$/{
479             s//\1/
480             q
481           }
482           /^X\/\(\/\).*/{
483             s//\1/
484             q
485           }
486           s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496   as_lineno_1=$LINENO as_lineno_1a=$LINENO
497   as_lineno_2=$LINENO as_lineno_2a=$LINENO
498   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501   sed -n '
502     p
503     /[$]LINENO/=
504   ' <$as_myself |
505     sed '
506       s/[$]LINENO.*/&-/
507       t lineno
508       b
509       :lineno
510       N
511       :loop
512       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513       t loop
514       s/-\n.*//
515     ' >$as_me.lineno &&
516   chmod +x "$as_me.lineno" ||
517     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520   # already done that, so ensure we don't try to do so again and fall
521   # in an infinite loop.  This has already happened in practice.
522   _as_can_reexec=no; export _as_can_reexec
523   # Don't try to exec as it changes $[0], causing all sort of problems
524   # (the dirname of $[0] is not the place where we might find the
525   # original and so on.  Autoconf is especially sensitive to this).
526   . "./$as_me.lineno"
527   # Exit status is that of the last command.
528   exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538   case `echo 'xy\c'` in
539   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
540   xy)  ECHO_C='\c';;
541   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542        ECHO_T=' ';;
543   esac;;
544 *)
545   ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n.  New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557   rm -f conf$$.dir/conf$$.file
558 else
559   rm -f conf$$.dir
560   mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563   if ln -s conf$$.file conf$$ 2>/dev/null; then
564     as_ln_s='ln -s'
565     # ... but there are two gotchas:
566     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568     # In both cases, we have to default to `cp -pR'.
569     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570       as_ln_s='cp -pR'
571   elif ln conf$$.file conf$$ 2>/dev/null; then
572     as_ln_s=ln
573   else
574     as_ln_s='cp -pR'
575   fi
576 else
577   as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583   as_mkdir_p='mkdir -p "$as_dir"'
584 else
585   test -d ./-p && rmdir ./-p
586   as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='FreeType'
623 PACKAGE_TARNAME='freetype'
624 PACKAGE_VERSION='2.13.2'
625 PACKAGE_STRING='FreeType 2.13.2'
626 PACKAGE_BUGREPORT='freetype@nongnu.org'
627 PACKAGE_URL=''
628
629 ac_unique_file="ftconfig.h.in"
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 ac_func_c_list=
663 ac_subst_vars='LTLIBOBJS
664 LIBOBJS
665 build_libtool_libs
666 wl
667 hardcode_libdir_flag_spec
668 LIBSSTATIC_CONFIG
669 PKGCONFIG_LIBS_PRIVATE
670 PKGCONFIG_REQUIRES_PRIVATE
671 PKGCONFIG_LIBS
672 PKGCONFIG_REQUIRES
673 ftmac_c
674 PYTHON_VERSION
675 PYTHON
676 PTHREAD_CFLAGS
677 PTHREAD_LIBS
678 PTHREAD_CXX
679 PTHREAD_CC
680 ax_pthread_config
681 target_os
682 target_vendor
683 target_cpu
684 target
685 FT_DEMO_LDFLAGS
686 FT_DEMO_CFLAGS
687 LIBRSVG_LIBS
688 LIBRSVG_CFLAGS
689 BROTLI_LIBS
690 BROTLI_CFLAGS
691 HARFBUZZ_LIBS
692 HARFBUZZ_CFLAGS
693 have_libpng
694 LIBPNG_LIBS
695 LIBPNG_CFLAGS
696 BZIP2_LIBS
697 BZIP2_CFLAGS
698 SYSTEM_ZLIB
699 ZLIB_LIBS
700 ZLIB_CFLAGS
701 XX_ANSIFLAGS
702 XX_CFLAGS
703 FTSYS_SRC
704 INSTALL_FT2_CONFIG
705 MKDIR_P
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 EXEEXT_BUILD
710 CC_BUILD
711 RC
712 LT_SYS_LIBRARY_PATH
713 OTOOL64
714 OTOOL
715 LIPO
716 NMEDIT
717 DSYMUTIL
718 MANIFEST_TOOL
719 AWK
720 RANLIB
721 STRIP
722 ac_ct_AR
723 AR
724 FILECMD
725 LN_S
726 NM
727 ac_ct_DUMPBIN
728 DUMPBIN
729 LD
730 FGREP
731 EGREP
732 GREP
733 SED
734 LIBTOOL
735 OBJDUMP
736 DLLTOOL
737 AS
738 PKG_CONFIG_LIBDIR
739 PKG_CONFIG_PATH
740 PKG_CONFIG
741 CPP
742 OBJEXT
743 EXEEXT
744 ac_ct_CC
745 CPPFLAGS
746 LDFLAGS
747 CFLAGS
748 CC
749 host_os
750 host_vendor
751 host_cpu
752 host
753 build_os
754 build_vendor
755 build_cpu
756 build
757 ft_version
758 version_info
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 runstatedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 enable_shared
802 enable_static
803 with_pic
804 enable_fast_install
805 with_aix_soname
806 with_gnu_ld
807 with_sysroot
808 enable_libtool_lock
809 enable_freetype_config
810 enable_largefile
811 enable_mmap
812 with_zlib
813 with_bzip2
814 with_png
815 with_harfbuzz
816 with_brotli
817 with_librsvg
818 with_old_mac_fonts
819 with_fsspec
820 with_fsref
821 with_quickdraw_toolbox
822 with_quickdraw_carbon
823 with_ats
824 '
825       ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 CPP
834 PKG_CONFIG
835 PKG_CONFIG_PATH
836 PKG_CONFIG_LIBDIR
837 LT_SYS_LIBRARY_PATH
838 ZLIB_CFLAGS
839 ZLIB_LIBS
840 BZIP2_CFLAGS
841 BZIP2_LIBS
842 LIBPNG_CFLAGS
843 LIBPNG_LIBS
844 HARFBUZZ_CFLAGS
845 HARFBUZZ_LIBS
846 BROTLI_CFLAGS
847 BROTLI_LIBS
848 LIBRSVG_CFLAGS
849 LIBRSVG_LIBS'
850
851
852 # Initialize some variables set by options.
853 ac_init_help=
854 ac_init_version=false
855 ac_unrecognized_opts=
856 ac_unrecognized_sep=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
873
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 runstatedir='${localstatedir}/run'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
900
901 ac_prev=
902 ac_dashdash=
903 for ac_option
904 do
905   # If the previous option needs an argument, assign it.
906   if test -n "$ac_prev"; then
907     eval $ac_prev=\$ac_option
908     ac_prev=
909     continue
910   fi
911
912   case $ac_option in
913   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914   *=)   ac_optarg= ;;
915   *)    ac_optarg=yes ;;
916   esac
917
918   case $ac_dashdash$ac_option in
919   --)
920     ac_dashdash=yes ;;
921
922   -bindir | --bindir | --bindi | --bind | --bin | --bi)
923     ac_prev=bindir ;;
924   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925     bindir=$ac_optarg ;;
926
927   -build | --build | --buil | --bui | --bu)
928     ac_prev=build_alias ;;
929   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930     build_alias=$ac_optarg ;;
931
932   -cache-file | --cache-file | --cache-fil | --cache-fi \
933   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934     ac_prev=cache_file ;;
935   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937     cache_file=$ac_optarg ;;
938
939   --config-cache | -C)
940     cache_file=config.cache ;;
941
942   -datadir | --datadir | --datadi | --datad)
943     ac_prev=datadir ;;
944   -datadir=* | --datadir=* | --datadi=* | --datad=*)
945     datadir=$ac_optarg ;;
946
947   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948   | --dataroo | --dataro | --datar)
949     ac_prev=datarootdir ;;
950   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952     datarootdir=$ac_optarg ;;
953
954   -disable-* | --disable-*)
955     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958       as_fn_error $? "invalid feature name: \`$ac_useropt'"
959     ac_useropt_orig=$ac_useropt
960     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
961     case $ac_user_opts in
962       *"
963 "enable_$ac_useropt"
964 "*) ;;
965       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966          ac_unrecognized_sep=', ';;
967     esac
968     eval enable_$ac_useropt=no ;;
969
970   -docdir | --docdir | --docdi | --doc | --do)
971     ac_prev=docdir ;;
972   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973     docdir=$ac_optarg ;;
974
975   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976     ac_prev=dvidir ;;
977   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978     dvidir=$ac_optarg ;;
979
980   -enable-* | --enable-*)
981     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982     # Reject names that are not valid shell variable names.
983     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984       as_fn_error $? "invalid feature name: \`$ac_useropt'"
985     ac_useropt_orig=$ac_useropt
986     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
987     case $ac_user_opts in
988       *"
989 "enable_$ac_useropt"
990 "*) ;;
991       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992          ac_unrecognized_sep=', ';;
993     esac
994     eval enable_$ac_useropt=\$ac_optarg ;;
995
996   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998   | --exec | --exe | --ex)
999     ac_prev=exec_prefix ;;
1000   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002   | --exec=* | --exe=* | --ex=*)
1003     exec_prefix=$ac_optarg ;;
1004
1005   -gas | --gas | --ga | --g)
1006     # Obsolete; use --with-gas.
1007     with_gas=yes ;;
1008
1009   -help | --help | --hel | --he | -h)
1010     ac_init_help=long ;;
1011   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012     ac_init_help=recursive ;;
1013   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014     ac_init_help=short ;;
1015
1016   -host | --host | --hos | --ho)
1017     ac_prev=host_alias ;;
1018   -host=* | --host=* | --hos=* | --ho=*)
1019     host_alias=$ac_optarg ;;
1020
1021   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022     ac_prev=htmldir ;;
1023   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024   | --ht=*)
1025     htmldir=$ac_optarg ;;
1026
1027   -includedir | --includedir | --includedi | --included | --include \
1028   | --includ | --inclu | --incl | --inc)
1029     ac_prev=includedir ;;
1030   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031   | --includ=* | --inclu=* | --incl=* | --inc=*)
1032     includedir=$ac_optarg ;;
1033
1034   -infodir | --infodir | --infodi | --infod | --info | --inf)
1035     ac_prev=infodir ;;
1036   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037     infodir=$ac_optarg ;;
1038
1039   -libdir | --libdir | --libdi | --libd)
1040     ac_prev=libdir ;;
1041   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042     libdir=$ac_optarg ;;
1043
1044   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045   | --libexe | --libex | --libe)
1046     ac_prev=libexecdir ;;
1047   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048   | --libexe=* | --libex=* | --libe=*)
1049     libexecdir=$ac_optarg ;;
1050
1051   -localedir | --localedir | --localedi | --localed | --locale)
1052     ac_prev=localedir ;;
1053   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054     localedir=$ac_optarg ;;
1055
1056   -localstatedir | --localstatedir | --localstatedi | --localstated \
1057   | --localstate | --localstat | --localsta | --localst | --locals)
1058     ac_prev=localstatedir ;;
1059   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061     localstatedir=$ac_optarg ;;
1062
1063   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064     ac_prev=mandir ;;
1065   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066     mandir=$ac_optarg ;;
1067
1068   -nfp | --nfp | --nf)
1069     # Obsolete; use --without-fp.
1070     with_fp=no ;;
1071
1072   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073   | --no-cr | --no-c | -n)
1074     no_create=yes ;;
1075
1076   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078     no_recursion=yes ;;
1079
1080   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082   | --oldin | --oldi | --old | --ol | --o)
1083     ac_prev=oldincludedir ;;
1084   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087     oldincludedir=$ac_optarg ;;
1088
1089   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090     ac_prev=prefix ;;
1091   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092     prefix=$ac_optarg ;;
1093
1094   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095   | --program-pre | --program-pr | --program-p)
1096     ac_prev=program_prefix ;;
1097   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099     program_prefix=$ac_optarg ;;
1100
1101   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102   | --program-suf | --program-su | --program-s)
1103     ac_prev=program_suffix ;;
1104   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106     program_suffix=$ac_optarg ;;
1107
1108   -program-transform-name | --program-transform-name \
1109   | --program-transform-nam | --program-transform-na \
1110   | --program-transform-n | --program-transform- \
1111   | --program-transform | --program-transfor \
1112   | --program-transfo | --program-transf \
1113   | --program-trans | --program-tran \
1114   | --progr-tra | --program-tr | --program-t)
1115     ac_prev=program_transform_name ;;
1116   -program-transform-name=* | --program-transform-name=* \
1117   | --program-transform-nam=* | --program-transform-na=* \
1118   | --program-transform-n=* | --program-transform-=* \
1119   | --program-transform=* | --program-transfor=* \
1120   | --program-transfo=* | --program-transf=* \
1121   | --program-trans=* | --program-tran=* \
1122   | --progr-tra=* | --program-tr=* | --program-t=*)
1123     program_transform_name=$ac_optarg ;;
1124
1125   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126     ac_prev=pdfdir ;;
1127   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128     pdfdir=$ac_optarg ;;
1129
1130   -psdir | --psdir | --psdi | --psd | --ps)
1131     ac_prev=psdir ;;
1132   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133     psdir=$ac_optarg ;;
1134
1135   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136   | -silent | --silent | --silen | --sile | --sil)
1137     silent=yes ;;
1138
1139   -runstatedir | --runstatedir | --runstatedi | --runstated \
1140   | --runstate | --runstat | --runsta | --runst | --runs \
1141   | --run | --ru | --r)
1142     ac_prev=runstatedir ;;
1143   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145   | --run=* | --ru=* | --r=*)
1146     runstatedir=$ac_optarg ;;
1147
1148   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149     ac_prev=sbindir ;;
1150   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151   | --sbi=* | --sb=*)
1152     sbindir=$ac_optarg ;;
1153
1154   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156   | --sharedst | --shareds | --shared | --share | --shar \
1157   | --sha | --sh)
1158     ac_prev=sharedstatedir ;;
1159   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162   | --sha=* | --sh=*)
1163     sharedstatedir=$ac_optarg ;;
1164
1165   -site | --site | --sit)
1166     ac_prev=site ;;
1167   -site=* | --site=* | --sit=*)
1168     site=$ac_optarg ;;
1169
1170   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171     ac_prev=srcdir ;;
1172   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173     srcdir=$ac_optarg ;;
1174
1175   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176   | --syscon | --sysco | --sysc | --sys | --sy)
1177     ac_prev=sysconfdir ;;
1178   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180     sysconfdir=$ac_optarg ;;
1181
1182   -target | --target | --targe | --targ | --tar | --ta | --t)
1183     ac_prev=target_alias ;;
1184   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185     target_alias=$ac_optarg ;;
1186
1187   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188     verbose=yes ;;
1189
1190   -version | --version | --versio | --versi | --vers | -V)
1191     ac_init_version=: ;;
1192
1193   -with-* | --with-*)
1194     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197       as_fn_error $? "invalid package name: \`$ac_useropt'"
1198     ac_useropt_orig=$ac_useropt
1199     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200     case $ac_user_opts in
1201       *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205          ac_unrecognized_sep=', ';;
1206     esac
1207     eval with_$ac_useropt=\$ac_optarg ;;
1208
1209   -without-* | --without-*)
1210     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213       as_fn_error $? "invalid package name: \`$ac_useropt'"
1214     ac_useropt_orig=$ac_useropt
1215     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216     case $ac_user_opts in
1217       *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221          ac_unrecognized_sep=', ';;
1222     esac
1223     eval with_$ac_useropt=no ;;
1224
1225   --x)
1226     # Obsolete; use --with-x.
1227     with_x=yes ;;
1228
1229   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230   | --x-incl | --x-inc | --x-in | --x-i)
1231     ac_prev=x_includes ;;
1232   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234     x_includes=$ac_optarg ;;
1235
1236   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238     ac_prev=x_libraries ;;
1239   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241     x_libraries=$ac_optarg ;;
1242
1243   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245     ;;
1246
1247   *=*)
1248     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249     # Reject names that are not valid shell variable names.
1250     case $ac_envvar in #(
1251       '' | [0-9]* | *[!_$as_cr_alnum]* )
1252       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253     esac
1254     eval $ac_envvar=\$ac_optarg
1255     export $ac_envvar ;;
1256
1257   *)
1258     # FIXME: should be removed in autoconf 3.0.
1259     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1260     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1262     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263     ;;
1264
1265   esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270   as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274   case $enable_option_checking in
1275     no) ;;
1276     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278   esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283                 datadir sysconfdir sharedstatedir localstatedir includedir \
1284                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285                 libdir localedir mandir runstatedir
1286 do
1287   eval ac_val=\$$ac_var
1288   # Remove trailing slashes.
1289   case $ac_val in
1290     */ )
1291       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292       eval $ac_var=\$ac_val;;
1293   esac
1294   # Be sure to have absolute directory names.
1295   case $ac_val in
1296     [\\/$]* | ?:[\\/]* )  continue;;
1297     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298   esac
1299   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311   if test "x$build_alias" = x; then
1312     cross_compiling=maybe
1313   elif test "x$build_alias" != "x$host_alias"; then
1314     cross_compiling=yes
1315   fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327   as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329   as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334   ac_srcdir_defaulted=yes
1335   # Try the directory containing this script, then the parent directory.
1336   ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338          X"$as_myself" : 'X\(//\)[^/]' \| \
1339          X"$as_myself" : 'X\(//\)$' \| \
1340          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 printf "%s\n" X"$as_myself" |
1342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\/\)[^/].*/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\/\)$/{
1351             s//\1/
1352             q
1353           }
1354           /^X\(\/\).*/{
1355             s//\1/
1356             q
1357           }
1358           s/.*/./; q'`
1359   srcdir=$ac_confdir
1360   if test ! -r "$srcdir/$ac_unique_file"; then
1361     srcdir=..
1362   fi
1363 else
1364   ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373         pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376   srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386   eval ac_env_${ac_var}_value=\$${ac_var}
1387   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395   # Omit some internal or obsolete options to make the list less imposing.
1396   # This message is too long to be a string in the A/UX 3.1 sh.
1397   cat <<_ACEOF
1398 \`configure' configures FreeType 2.13.2 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE.  See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408   -h, --help              display this help and exit
1409       --help=short        display options specific to this package
1410       --help=recursive    display the short help of all the included packages
1411   -V, --version           display version information and exit
1412   -q, --quiet, --silent   do not print \`checking ...' messages
1413       --cache-file=FILE   cache test results in FILE [disabled]
1414   -C, --config-cache      alias for \`--cache-file=config.cache'
1415   -n, --no-create         do not create output files
1416       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419   --prefix=PREFIX         install architecture-independent files in PREFIX
1420                           [$ac_default_prefix]
1421   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1422                           [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432   --bindir=DIR            user executables [EPREFIX/bin]
1433   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1434   --libexecdir=DIR        program executables [EPREFIX/libexec]
1435   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1436   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1437   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1438   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1439   --libdir=DIR            object code libraries [EPREFIX/lib]
1440   --includedir=DIR        C header files [PREFIX/include]
1441   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1442   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1443   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1444   --infodir=DIR           info documentation [DATAROOTDIR/info]
1445   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1446   --mandir=DIR            man documentation [DATAROOTDIR/man]
1447   --docdir=DIR            documentation root [DATAROOTDIR/doc/freetype]
1448   --htmldir=DIR           html documentation [DOCDIR]
1449   --dvidir=DIR            dvi documentation [DOCDIR]
1450   --pdfdir=DIR            pdf documentation [DOCDIR]
1451   --psdir=DIR             ps documentation [DOCDIR]
1452 _ACEOF
1453
1454   cat <<\_ACEOF
1455
1456 System types:
1457   --build=BUILD     configure for building on BUILD [guessed]
1458   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459   --target=TARGET   configure for building compilers for TARGET [HOST]
1460 _ACEOF
1461 fi
1462
1463 if test -n "$ac_init_help"; then
1464   case $ac_init_help in
1465      short | recursive ) echo "Configuration of FreeType 2.13.2:";;
1466    esac
1467   cat <<\_ACEOF
1468
1469 Optional Features:
1470   --disable-option-checking  ignore unrecognized --enable/--with options
1471   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1472   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1473   --enable-shared[=PKGS]  build shared libraries [default=yes]
1474   --enable-static[=PKGS]  build static libraries [default=yes]
1475   --enable-fast-install[=PKGS]
1476                           optimize for fast installation [default=yes]
1477   --disable-libtool-lock  avoid locking (might break parallel builds)
1478   --enable-freetype-config
1479                           install freetype-config
1480   --disable-largefile     omit support for large files
1481   --disable-mmap          do not check mmap() and do not use
1482
1483 Optional Packages:
1484   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1485   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1486   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1487                           both]
1488   --with-aix-soname=aix|svr4|both
1489                           shared library versioning (aka "SONAME") variant to
1490                           provide on AIX, [default=aix].
1491   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1492   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1493                           compiler's sysroot if not specified).
1494   --with-zlib=[yes|no|auto]
1495                           use system zlib instead of internal library
1496                           [default=auto]
1497   --with-bzip2=[yes|no|auto]
1498                           support bzip2 compressed fonts [default=auto]
1499   --with-png=[yes|no|auto]
1500                           support png compressed OpenType embedded bitmaps
1501                           [default=auto]
1502   --with-harfbuzz=[yes|no|auto]
1503                           improve auto-hinting of OpenType fonts
1504                           [default=auto]
1505   --with-brotli=[yes|no|auto]
1506                           support decompression of WOFF2 streams
1507                           [default=auto]
1508   --with-librsvg=[yes|no|auto]
1509                           support OpenType SVG fonts in FreeType demo programs
1510                           [default=auto]
1511   --with-old-mac-fonts    allow Mac resource-based fonts to be used
1512   --with-fsspec           use obsolete FSSpec API of MacOS, if available
1513                           (default=yes)
1514   --with-fsref            use Carbon FSRef API of MacOS, if available
1515                           (default=yes)
1516   --with-quickdraw-toolbox
1517                           use MacOS QuickDraw in ToolBox, if available
1518                           (default=yes)
1519   --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1520                           (default=yes)
1521   --with-ats              use AppleTypeService, if available (default=yes)
1522
1523 Some influential environment variables:
1524   CC          C compiler command
1525   CFLAGS      C compiler flags
1526   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1527               nonstandard directory <lib dir>
1528   LIBS        libraries to pass to the linker, e.g. -l<library>
1529   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1530               you have headers in a nonstandard directory <include dir>
1531   CPP         C preprocessor
1532   PKG_CONFIG  path to pkg-config utility
1533   PKG_CONFIG_PATH
1534               directories to add to pkg-config's search path
1535   PKG_CONFIG_LIBDIR
1536               path overriding pkg-config's built-in search path
1537   LT_SYS_LIBRARY_PATH
1538               User-defined run-time library search path.
1539   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1540   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1541   BZIP2_CFLAGS
1542               C compiler flags for BZIP2, overriding pkg-config
1543   BZIP2_LIBS  linker flags for BZIP2, overriding pkg-config
1544   LIBPNG_CFLAGS
1545               C compiler flags for LIBPNG, overriding pkg-config
1546   LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1547   HARFBUZZ_CFLAGS
1548               C compiler flags for HARFBUZZ, overriding pkg-config
1549   HARFBUZZ_LIBS
1550               linker flags for HARFBUZZ, overriding pkg-config
1551   BROTLI_CFLAGS
1552               C compiler flags for BROTLI, overriding pkg-config
1553   BROTLI_LIBS linker flags for BROTLI, overriding pkg-config
1554   LIBRSVG_CFLAGS
1555               C compiler flags for LIBRSVG, overriding pkg-config
1556   LIBRSVG_LIBS
1557               linker flags for LIBRSVG, overriding pkg-config
1558
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 Report bugs to <freetype@nongnu.org>.
1563 _ACEOF
1564 ac_status=$?
1565 fi
1566
1567 if test "$ac_init_help" = "recursive"; then
1568   # If there are subdirs, report their specific --help.
1569   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570     test -d "$ac_dir" ||
1571       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572       continue
1573     ac_builddir=.
1574
1575 case "$ac_dir" in
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *)
1578   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1579   # A ".." for each directory in $ac_dir_suffix.
1580   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581   case $ac_top_builddir_sub in
1582   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584   esac ;;
1585 esac
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1590
1591 case $srcdir in
1592   .)  # We are building in place.
1593     ac_srcdir=.
1594     ac_top_srcdir=$ac_top_builddir_sub
1595     ac_abs_top_srcdir=$ac_pwd ;;
1596   [\\/]* | ?:[\\/]* )  # Absolute name.
1597     ac_srcdir=$srcdir$ac_dir_suffix;
1598     ac_top_srcdir=$srcdir
1599     ac_abs_top_srcdir=$srcdir ;;
1600   *) # Relative name.
1601     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602     ac_top_srcdir=$ac_top_build_prefix$srcdir
1603     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 esac
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606
1607     cd "$ac_dir" || { ac_status=$?; continue; }
1608     # Check for configure.gnu first; this name is used for a wrapper for
1609     # Metaconfig's "Configure" on case-insensitive file systems.
1610     if test -f "$ac_srcdir/configure.gnu"; then
1611       echo &&
1612       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613     elif test -f "$ac_srcdir/configure"; then
1614       echo &&
1615       $SHELL "$ac_srcdir/configure" --help=recursive
1616     else
1617       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618     fi || ac_status=$?
1619     cd "$ac_pwd" || { ac_status=$?; break; }
1620   done
1621 fi
1622
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625   cat <<\_ACEOF
1626 FreeType configure 2.13.2
1627 generated by GNU Autoconf 2.71
1628
1629 Copyright (C) 2021 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1632 _ACEOF
1633   exit
1634 fi
1635
1636 ## ------------------------ ##
1637 ## Autoconf initialization. ##
1638 ## ------------------------ ##
1639
1640 # ac_fn_c_try_compile LINENO
1641 # --------------------------
1642 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_compile ()
1644 {
1645   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646   rm -f conftest.$ac_objext conftest.beam
1647   if { { ac_try="$ac_compile"
1648 case "(($ac_try" in
1649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650   *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 printf "%s\n" "$ac_try_echo"; } >&5
1654   (eval "$ac_compile") 2>conftest.err
1655   ac_status=$?
1656   if test -s conftest.err; then
1657     grep -v '^ *+' conftest.err >conftest.er1
1658     cat conftest.er1 >&5
1659     mv -f conftest.er1 conftest.err
1660   fi
1661   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662   test $ac_status = 0; } && {
1663          test -z "$ac_c_werror_flag" ||
1664          test ! -s conftest.err
1665        } && test -s conftest.$ac_objext
1666 then :
1667   ac_retval=0
1668 else $as_nop
1669   printf "%s\n" "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672         ac_retval=1
1673 fi
1674   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675   as_fn_set_status $ac_retval
1676
1677 } # ac_fn_c_try_compile
1678
1679 # ac_fn_c_try_cpp LINENO
1680 # ----------------------
1681 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_cpp ()
1683 {
1684   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685   if { { ac_try="$ac_cpp conftest.$ac_ext"
1686 case "(($ac_try" in
1687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688   *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 printf "%s\n" "$ac_try_echo"; } >&5
1692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693   ac_status=$?
1694   if test -s conftest.err; then
1695     grep -v '^ *+' conftest.err >conftest.er1
1696     cat conftest.er1 >&5
1697     mv -f conftest.er1 conftest.err
1698   fi
1699   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700   test $ac_status = 0; } > conftest.i && {
1701          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1702          test ! -s conftest.err
1703        }
1704 then :
1705   ac_retval=0
1706 else $as_nop
1707   printf "%s\n" "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710     ac_retval=1
1711 fi
1712   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713   as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_cpp
1716
1717 # ac_fn_c_try_link LINENO
1718 # -----------------------
1719 # Try to link conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_link ()
1721 {
1722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1724   if { { ac_try="$ac_link"
1725 case "(($ac_try" in
1726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727   *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 printf "%s\n" "$ac_try_echo"; } >&5
1731   (eval "$ac_link") 2>conftest.err
1732   ac_status=$?
1733   if test -s conftest.err; then
1734     grep -v '^ *+' conftest.err >conftest.er1
1735     cat conftest.er1 >&5
1736     mv -f conftest.er1 conftest.err
1737   fi
1738   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739   test $ac_status = 0; } && {
1740          test -z "$ac_c_werror_flag" ||
1741          test ! -s conftest.err
1742        } && test -s conftest$ac_exeext && {
1743          test "$cross_compiling" = yes ||
1744          test -x conftest$ac_exeext
1745        }
1746 then :
1747   ac_retval=0
1748 else $as_nop
1749   printf "%s\n" "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752         ac_retval=1
1753 fi
1754   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756   # interfere with the next link command; also delete a directory that is
1757   # left behind by Apple's compiler.  We do this before executing the actions.
1758   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760   as_fn_set_status $ac_retval
1761
1762 } # ac_fn_c_try_link
1763
1764 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists and can be compiled using the include files in
1767 # INCLUDES, setting the cache variable VAR accordingly.
1768 ac_fn_c_check_header_compile ()
1769 {
1770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 printf %s "checking for $2... " >&6; }
1773 if eval test \${$3+y}
1774 then :
1775   printf %s "(cached) " >&6
1776 else $as_nop
1777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h.  */
1779 $4
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"
1783 then :
1784   eval "$3=yes"
1785 else $as_nop
1786   eval "$3=no"
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 printf "%s\n" "$ac_res" >&6; }
1793   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_header_compile
1796
1797 # ac_fn_c_check_func LINENO FUNC VAR
1798 # ----------------------------------
1799 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1800 ac_fn_c_check_func ()
1801 {
1802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 printf %s "checking for $2... " >&6; }
1805 if eval test \${$3+y}
1806 then :
1807   printf %s "(cached) " >&6
1808 else $as_nop
1809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1813 #define $2 innocuous_$2
1814
1815 /* System header to define __stub macros and hopefully few prototypes,
1816    which can conflict with char $2 (); below.  */
1817
1818 #include <limits.h>
1819 #undef $2
1820
1821 /* Override any GCC internal prototype to avoid an error.
1822    Use char because int might match the return type of a GCC
1823    builtin and then its argument prototype would still apply.  */
1824 #ifdef __cplusplus
1825 extern "C"
1826 #endif
1827 char $2 ();
1828 /* The GNU C library defines this for functions which it implements
1829     to always fail with ENOSYS.  Some functions are actually named
1830     something starting with __ and the normal name is an alias.  */
1831 #if defined __stub_$2 || defined __stub___$2
1832 choke me
1833 #endif
1834
1835 int
1836 main (void)
1837 {
1838 return $2 ();
1839   ;
1840   return 0;
1841 }
1842 _ACEOF
1843 if ac_fn_c_try_link "$LINENO"
1844 then :
1845   eval "$3=yes"
1846 else $as_nop
1847   eval "$3=no"
1848 fi
1849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1850     conftest$ac_exeext conftest.$ac_ext
1851 fi
1852 eval ac_res=\$$3
1853                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 printf "%s\n" "$ac_res" >&6; }
1855   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856
1857 } # ac_fn_c_check_func
1858
1859 # ac_fn_c_try_run LINENO
1860 # ----------------------
1861 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1862 # executables *can* be run.
1863 ac_fn_c_try_run ()
1864 {
1865   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866   if { { ac_try="$ac_link"
1867 case "(($ac_try" in
1868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869   *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 printf "%s\n" "$ac_try_echo"; } >&5
1873   (eval "$ac_link") 2>&5
1874   ac_status=$?
1875   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1877   { { case "(($ac_try" in
1878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879   *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 printf "%s\n" "$ac_try_echo"; } >&5
1883   (eval "$ac_try") 2>&5
1884   ac_status=$?
1885   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886   test $ac_status = 0; }; }
1887 then :
1888   ac_retval=0
1889 else $as_nop
1890   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1891        printf "%s\n" "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894        ac_retval=$ac_status
1895 fi
1896   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898   as_fn_set_status $ac_retval
1899
1900 } # ac_fn_c_try_run
1901
1902 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1903 # ------------------------------------------------------------------
1904 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1905 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1906 ac_fn_check_decl ()
1907 {
1908   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909   as_decl_name=`echo $2|sed 's/ *(.*//'`
1910   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1911 printf %s "checking whether $as_decl_name is declared... " >&6; }
1912 if eval test \${$3+y}
1913 then :
1914   printf %s "(cached) " >&6
1915 else $as_nop
1916   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1917   eval ac_save_FLAGS=\$$6
1918   as_fn_append $6 " $5"
1919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h.  */
1921 $4
1922 int
1923 main (void)
1924 {
1925 #ifndef $as_decl_name
1926 #ifdef __cplusplus
1927   (void) $as_decl_use;
1928 #else
1929   (void) $as_decl_name;
1930 #endif
1931 #endif
1932
1933   ;
1934   return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"
1938 then :
1939   eval "$3=yes"
1940 else $as_nop
1941   eval "$3=no"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1944   eval $6=\$ac_save_FLAGS
1945
1946 fi
1947 eval ac_res=\$$3
1948                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 printf "%s\n" "$ac_res" >&6; }
1950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952 } # ac_fn_check_decl
1953 ac_configure_args_raw=
1954 for ac_arg
1955 do
1956   case $ac_arg in
1957   *\'*)
1958     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959   esac
1960   as_fn_append ac_configure_args_raw " '$ac_arg'"
1961 done
1962
1963 case $ac_configure_args_raw in
1964   *$as_nl*)
1965     ac_safe_unquote= ;;
1966   *)
1967     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
1968     ac_unsafe_a="$ac_unsafe_z#~"
1969     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1970     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1971 esac
1972
1973 cat >config.log <<_ACEOF
1974 This file contains any messages produced by compilers while
1975 running configure, to aid debugging if configure makes a mistake.
1976
1977 It was created by FreeType $as_me 2.13.2, which was
1978 generated by GNU Autoconf 2.71.  Invocation command line was
1979
1980   $ $0$ac_configure_args_raw
1981
1982 _ACEOF
1983 exec 5>>config.log
1984 {
1985 cat <<_ASUNAME
1986 ## --------- ##
1987 ## Platform. ##
1988 ## --------- ##
1989
1990 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1991 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1992 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1993 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1994 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1995
1996 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1997 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1998
1999 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2000 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2001 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2002 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2003 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2004 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2005 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2006
2007 _ASUNAME
2008
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   case $as_dir in #(((
2014     '') as_dir=./ ;;
2015     */) ;;
2016     *) as_dir=$as_dir/ ;;
2017   esac
2018     printf "%s\n" "PATH: $as_dir"
2019   done
2020 IFS=$as_save_IFS
2021
2022 } >&5
2023
2024 cat >&5 <<_ACEOF
2025
2026
2027 ## ----------- ##
2028 ## Core tests. ##
2029 ## ----------- ##
2030
2031 _ACEOF
2032
2033
2034 # Keep a trace of the command line.
2035 # Strip out --no-create and --no-recursion so they do not pile up.
2036 # Strip out --silent because we don't want to record it for future runs.
2037 # Also quote any args containing shell meta-characters.
2038 # Make two passes to allow for proper duplicate-argument suppression.
2039 ac_configure_args=
2040 ac_configure_args0=
2041 ac_configure_args1=
2042 ac_must_keep_next=false
2043 for ac_pass in 1 2
2044 do
2045   for ac_arg
2046   do
2047     case $ac_arg in
2048     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2049     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2050     | -silent | --silent | --silen | --sile | --sil)
2051       continue ;;
2052     *\'*)
2053       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2054     esac
2055     case $ac_pass in
2056     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2057     2)
2058       as_fn_append ac_configure_args1 " '$ac_arg'"
2059       if test $ac_must_keep_next = true; then
2060         ac_must_keep_next=false # Got value, back to normal.
2061       else
2062         case $ac_arg in
2063           *=* | --config-cache | -C | -disable-* | --disable-* \
2064           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2065           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2066           | -with-* | --with-* | -without-* | --without-* | --x)
2067             case "$ac_configure_args0 " in
2068               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2069             esac
2070             ;;
2071           -* ) ac_must_keep_next=true ;;
2072         esac
2073       fi
2074       as_fn_append ac_configure_args " '$ac_arg'"
2075       ;;
2076     esac
2077   done
2078 done
2079 { ac_configure_args0=; unset ac_configure_args0;}
2080 { ac_configure_args1=; unset ac_configure_args1;}
2081
2082 # When interrupted or exit'd, cleanup temporary files, and complete
2083 # config.log.  We remove comments because anyway the quotes in there
2084 # would cause problems or look ugly.
2085 # WARNING: Use '\'' to represent an apostrophe within the trap.
2086 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2087 trap 'exit_status=$?
2088   # Sanitize IFS.
2089   IFS=" ""      $as_nl"
2090   # Save into config.log some information that might help in debugging.
2091   {
2092     echo
2093
2094     printf "%s\n" "## ---------------- ##
2095 ## Cache variables. ##
2096 ## ---------------- ##"
2097     echo
2098     # The following way of writing the cache mishandles newlines in values,
2099 (
2100   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2101     eval ac_val=\$$ac_var
2102     case $ac_val in #(
2103     *${as_nl}*)
2104       case $ac_var in #(
2105       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2106 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2107       esac
2108       case $ac_var in #(
2109       _ | IFS | as_nl) ;; #(
2110       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2111       *) { eval $ac_var=; unset $ac_var;} ;;
2112       esac ;;
2113     esac
2114   done
2115   (set) 2>&1 |
2116     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2117     *${as_nl}ac_space=\ *)
2118       sed -n \
2119         "s/'\''/'\''\\\\'\'''\''/g;
2120           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2121       ;; #(
2122     *)
2123       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2124       ;;
2125     esac |
2126     sort
2127 )
2128     echo
2129
2130     printf "%s\n" "## ----------------- ##
2131 ## Output variables. ##
2132 ## ----------------- ##"
2133     echo
2134     for ac_var in $ac_subst_vars
2135     do
2136       eval ac_val=\$$ac_var
2137       case $ac_val in
2138       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139       esac
2140       printf "%s\n" "$ac_var='\''$ac_val'\''"
2141     done | sort
2142     echo
2143
2144     if test -n "$ac_subst_files"; then
2145       printf "%s\n" "## ------------------- ##
2146 ## File substitutions. ##
2147 ## ------------------- ##"
2148       echo
2149       for ac_var in $ac_subst_files
2150       do
2151         eval ac_val=\$$ac_var
2152         case $ac_val in
2153         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2154         esac
2155         printf "%s\n" "$ac_var='\''$ac_val'\''"
2156       done | sort
2157       echo
2158     fi
2159
2160     if test -s confdefs.h; then
2161       printf "%s\n" "## ----------- ##
2162 ## confdefs.h. ##
2163 ## ----------- ##"
2164       echo
2165       cat confdefs.h
2166       echo
2167     fi
2168     test "$ac_signal" != 0 &&
2169       printf "%s\n" "$as_me: caught signal $ac_signal"
2170     printf "%s\n" "$as_me: exit $exit_status"
2171   } >&5
2172   rm -f core *.core core.conftest.* &&
2173     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2174     exit $exit_status
2175 ' 0
2176 for ac_signal in 1 2 13 15; do
2177   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2178 done
2179 ac_signal=0
2180
2181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2182 rm -f -r conftest* confdefs.h
2183
2184 printf "%s\n" "/* confdefs.h */" > confdefs.h
2185
2186 # Predefined preprocessor variables.
2187
2188 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2189
2190 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2191
2192 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2193
2194 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2195
2196 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2197
2198 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2199
2200
2201 # Let the site file select an alternate cache file if it wants to.
2202 # Prefer an explicitly selected file to automatically selected ones.
2203 if test -n "$CONFIG_SITE"; then
2204   ac_site_files="$CONFIG_SITE"
2205 elif test "x$prefix" != xNONE; then
2206   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2207 else
2208   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2209 fi
2210
2211 for ac_site_file in $ac_site_files
2212 do
2213   case $ac_site_file in #(
2214   */*) :
2215      ;; #(
2216   *) :
2217     ac_site_file=./$ac_site_file ;;
2218 esac
2219   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2220     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2221 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2222     sed 's/^/| /' "$ac_site_file" >&5
2223     . "$ac_site_file" \
2224       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2226 as_fn_error $? "failed to load site script $ac_site_file
2227 See \`config.log' for more details" "$LINENO" 5; }
2228   fi
2229 done
2230
2231 if test -r "$cache_file"; then
2232   # Some versions of bash will fail to source /dev/null (special files
2233   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2234   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2235     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2236 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2237     case $cache_file in
2238       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2239       *)                      . "./$cache_file";;
2240     esac
2241   fi
2242 else
2243   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2244 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2245   >$cache_file
2246 fi
2247
2248 # Test code for whether the C compiler supports C89 (global declarations)
2249 ac_c_conftest_c89_globals='
2250 /* Does the compiler advertise C89 conformance?
2251    Do not test the value of __STDC__, because some compilers set it to 0
2252    while being otherwise adequately conformant. */
2253 #if !defined __STDC__
2254 # error "Compiler does not advertise C89 conformance"
2255 #endif
2256
2257 #include <stddef.h>
2258 #include <stdarg.h>
2259 struct stat;
2260 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2261 struct buf { int x; };
2262 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2263 static char *e (p, i)
2264      char **p;
2265      int i;
2266 {
2267   return p[i];
2268 }
2269 static char *f (char * (*g) (char **, int), char **p, ...)
2270 {
2271   char *s;
2272   va_list v;
2273   va_start (v,p);
2274   s = g (p, va_arg (v,int));
2275   va_end (v);
2276   return s;
2277 }
2278
2279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2280    function prototypes and stuff, but not \xHH hex character constants.
2281    These do not provoke an error unfortunately, instead are silently treated
2282    as an "x".  The following induces an error, until -std is added to get
2283    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2284    array size at least.  It is necessary to write \x00 == 0 to get something
2285    that is true only with -std.  */
2286 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2287
2288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2289    inside strings and character constants.  */
2290 #define FOO(x) '\''x'\''
2291 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2292
2293 int test (int i, double x);
2294 struct s1 {int (*f) (int a);};
2295 struct s2 {int (*f) (double a);};
2296 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2297                int, int);'
2298
2299 # Test code for whether the C compiler supports C89 (body of main).
2300 ac_c_conftest_c89_main='
2301 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2302 '
2303
2304 # Test code for whether the C compiler supports C99 (global declarations)
2305 ac_c_conftest_c99_globals='
2306 // Does the compiler advertise C99 conformance?
2307 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2308 # error "Compiler does not advertise C99 conformance"
2309 #endif
2310
2311 #include <stdbool.h>
2312 extern int puts (const char *);
2313 extern int printf (const char *, ...);
2314 extern int dprintf (int, const char *, ...);
2315 extern void *malloc (size_t);
2316
2317 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2318 // dprintf is used instead of fprintf to avoid needing to declare
2319 // FILE and stderr.
2320 #define debug(...) dprintf (2, __VA_ARGS__)
2321 #define showlist(...) puts (#__VA_ARGS__)
2322 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2323 static void
2324 test_varargs_macros (void)
2325 {
2326   int x = 1234;
2327   int y = 5678;
2328   debug ("Flag");
2329   debug ("X = %d\n", x);
2330   showlist (The first, second, and third items.);
2331   report (x>y, "x is %d but y is %d", x, y);
2332 }
2333
2334 // Check long long types.
2335 #define BIG64 18446744073709551615ull
2336 #define BIG32 4294967295ul
2337 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2338 #if !BIG_OK
2339   #error "your preprocessor is broken"
2340 #endif
2341 #if BIG_OK
2342 #else
2343   #error "your preprocessor is broken"
2344 #endif
2345 static long long int bignum = -9223372036854775807LL;
2346 static unsigned long long int ubignum = BIG64;
2347
2348 struct incomplete_array
2349 {
2350   int datasize;
2351   double data[];
2352 };
2353
2354 struct named_init {
2355   int number;
2356   const wchar_t *name;
2357   double average;
2358 };
2359
2360 typedef const char *ccp;
2361
2362 static inline int
2363 test_restrict (ccp restrict text)
2364 {
2365   // See if C++-style comments work.
2366   // Iterate through items via the restricted pointer.
2367   // Also check for declarations in for loops.
2368   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2369     continue;
2370   return 0;
2371 }
2372
2373 // Check varargs and va_copy.
2374 static bool
2375 test_varargs (const char *format, ...)
2376 {
2377   va_list args;
2378   va_start (args, format);
2379   va_list args_copy;
2380   va_copy (args_copy, args);
2381
2382   const char *str = "";
2383   int number = 0;
2384   float fnumber = 0;
2385
2386   while (*format)
2387     {
2388       switch (*format++)
2389         {
2390         case '\''s'\'': // string
2391           str = va_arg (args_copy, const char *);
2392           break;
2393         case '\''d'\'': // int
2394           number = va_arg (args_copy, int);
2395           break;
2396         case '\''f'\'': // float
2397           fnumber = va_arg (args_copy, double);
2398           break;
2399         default:
2400           break;
2401         }
2402     }
2403   va_end (args_copy);
2404   va_end (args);
2405
2406   return *str && number && fnumber;
2407 }
2408 '
2409
2410 # Test code for whether the C compiler supports C99 (body of main).
2411 ac_c_conftest_c99_main='
2412   // Check bool.
2413   _Bool success = false;
2414   success |= (argc != 0);
2415
2416   // Check restrict.
2417   if (test_restrict ("String literal") == 0)
2418     success = true;
2419   char *restrict newvar = "Another string";
2420
2421   // Check varargs.
2422   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2423   test_varargs_macros ();
2424
2425   // Check flexible array members.
2426   struct incomplete_array *ia =
2427     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2428   ia->datasize = 10;
2429   for (int i = 0; i < ia->datasize; ++i)
2430     ia->data[i] = i * 1.234;
2431
2432   // Check named initializers.
2433   struct named_init ni = {
2434     .number = 34,
2435     .name = L"Test wide string",
2436     .average = 543.34343,
2437   };
2438
2439   ni.number = 58;
2440
2441   int dynamic_array[ni.number];
2442   dynamic_array[0] = argv[0][0];
2443   dynamic_array[ni.number - 1] = 543;
2444
2445   // work around unused variable warnings
2446   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2447          || dynamic_array[ni.number - 1] != 543);
2448 '
2449
2450 # Test code for whether the C compiler supports C11 (global declarations)
2451 ac_c_conftest_c11_globals='
2452 // Does the compiler advertise C11 conformance?
2453 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2454 # error "Compiler does not advertise C11 conformance"
2455 #endif
2456
2457 // Check _Alignas.
2458 char _Alignas (double) aligned_as_double;
2459 char _Alignas (0) no_special_alignment;
2460 extern char aligned_as_int;
2461 char _Alignas (0) _Alignas (int) aligned_as_int;
2462
2463 // Check _Alignof.
2464 enum
2465 {
2466   int_alignment = _Alignof (int),
2467   int_array_alignment = _Alignof (int[100]),
2468   char_alignment = _Alignof (char)
2469 };
2470 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2471
2472 // Check _Noreturn.
2473 int _Noreturn does_not_return (void) { for (;;) continue; }
2474
2475 // Check _Static_assert.
2476 struct test_static_assert
2477 {
2478   int x;
2479   _Static_assert (sizeof (int) <= sizeof (long int),
2480                   "_Static_assert does not work in struct");
2481   long int y;
2482 };
2483
2484 // Check UTF-8 literals.
2485 #define u8 syntax error!
2486 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2487
2488 // Check duplicate typedefs.
2489 typedef long *long_ptr;
2490 typedef long int *long_ptr;
2491 typedef long_ptr long_ptr;
2492
2493 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2494 struct anonymous
2495 {
2496   union {
2497     struct { int i; int j; };
2498     struct { int k; long int l; } w;
2499   };
2500   int m;
2501 } v1;
2502 '
2503
2504 # Test code for whether the C compiler supports C11 (body of main).
2505 ac_c_conftest_c11_main='
2506   _Static_assert ((offsetof (struct anonymous, i)
2507                    == offsetof (struct anonymous, w.k)),
2508                   "Anonymous union alignment botch");
2509   v1.i = 2;
2510   v1.w.k = 5;
2511   ok |= v1.i != 5;
2512 '
2513
2514 # Test code for whether the C compiler supports C11 (complete).
2515 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2516 ${ac_c_conftest_c99_globals}
2517 ${ac_c_conftest_c11_globals}
2518
2519 int
2520 main (int argc, char **argv)
2521 {
2522   int ok = 0;
2523   ${ac_c_conftest_c89_main}
2524   ${ac_c_conftest_c99_main}
2525   ${ac_c_conftest_c11_main}
2526   return ok;
2527 }
2528 "
2529
2530 # Test code for whether the C compiler supports C99 (complete).
2531 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2532 ${ac_c_conftest_c99_globals}
2533
2534 int
2535 main (int argc, char **argv)
2536 {
2537   int ok = 0;
2538   ${ac_c_conftest_c89_main}
2539   ${ac_c_conftest_c99_main}
2540   return ok;
2541 }
2542 "
2543
2544 # Test code for whether the C compiler supports C89 (complete).
2545 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2546
2547 int
2548 main (int argc, char **argv)
2549 {
2550   int ok = 0;
2551   ${ac_c_conftest_c89_main}
2552   return ok;
2553 }
2554 "
2555
2556 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2557 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2558 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2559 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2560 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2561 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2562 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2563 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2564 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2565 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2566 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2567
2568 # Auxiliary files required by this configure script.
2569 ac_aux_files="install-sh ltmain.sh config.guess config.sub"
2570
2571 # Locations in which to look for auxiliary files.
2572 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2573
2574 # Search for a directory containing all of the required auxiliary files,
2575 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2576 # If we don't find one directory that contains all the files we need,
2577 # we report the set of missing files from the *first* directory in
2578 # $ac_aux_dir_candidates and give up.
2579 ac_missing_aux_files=""
2580 ac_first_candidate=:
2581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 as_found=false
2584 for as_dir in $ac_aux_dir_candidates
2585 do
2586   IFS=$as_save_IFS
2587   case $as_dir in #(((
2588     '') as_dir=./ ;;
2589     */) ;;
2590     *) as_dir=$as_dir/ ;;
2591   esac
2592   as_found=:
2593
2594   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2595   ac_aux_dir_found=yes
2596   ac_install_sh=
2597   for ac_aux in $ac_aux_files
2598   do
2599     # As a special case, if "install-sh" is required, that requirement
2600     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2601     # and $ac_install_sh is set appropriately for whichever one is found.
2602     if test x"$ac_aux" = x"install-sh"
2603     then
2604       if test -f "${as_dir}install-sh"; then
2605         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2606         ac_install_sh="${as_dir}install-sh -c"
2607       elif test -f "${as_dir}install.sh"; then
2608         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2609         ac_install_sh="${as_dir}install.sh -c"
2610       elif test -f "${as_dir}shtool"; then
2611         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2612         ac_install_sh="${as_dir}shtool install -c"
2613       else
2614         ac_aux_dir_found=no
2615         if $ac_first_candidate; then
2616           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2617         else
2618           break
2619         fi
2620       fi
2621     else
2622       if test -f "${as_dir}${ac_aux}"; then
2623         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2624       else
2625         ac_aux_dir_found=no
2626         if $ac_first_candidate; then
2627           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2628         else
2629           break
2630         fi
2631       fi
2632     fi
2633   done
2634   if test "$ac_aux_dir_found" = yes; then
2635     ac_aux_dir="$as_dir"
2636     break
2637   fi
2638   ac_first_candidate=false
2639
2640   as_found=false
2641 done
2642 IFS=$as_save_IFS
2643 if $as_found
2644 then :
2645
2646 else $as_nop
2647   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2648 fi
2649
2650
2651 # These three variables are undocumented and unsupported,
2652 # and are intended to be withdrawn in a future Autoconf release.
2653 # They can cause serious problems if a builder's source tree is in a directory
2654 # whose full name contains unusual characters.
2655 if test -f "${ac_aux_dir}config.guess"; then
2656   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2657 fi
2658 if test -f "${ac_aux_dir}config.sub"; then
2659   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2660 fi
2661 if test -f "$ac_aux_dir/configure"; then
2662   ac_configure="$SHELL ${ac_aux_dir}configure"
2663 fi
2664
2665 # Check that the precious variables saved in the cache have kept the same
2666 # value.
2667 ac_cache_corrupted=false
2668 for ac_var in $ac_precious_vars; do
2669   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2670   eval ac_new_set=\$ac_env_${ac_var}_set
2671   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2672   eval ac_new_val=\$ac_env_${ac_var}_value
2673   case $ac_old_set,$ac_new_set in
2674     set,)
2675       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2676 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2677       ac_cache_corrupted=: ;;
2678     ,set)
2679       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2680 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2681       ac_cache_corrupted=: ;;
2682     ,);;
2683     *)
2684       if test "x$ac_old_val" != "x$ac_new_val"; then
2685         # differences in whitespace do not lead to failure.
2686         ac_old_val_w=`echo x $ac_old_val`
2687         ac_new_val_w=`echo x $ac_new_val`
2688         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2689           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2690 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2691           ac_cache_corrupted=:
2692         else
2693           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2694 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2695           eval $ac_var=\$ac_old_val
2696         fi
2697         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2698 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2699         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2700 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2701       fi;;
2702   esac
2703   # Pass precious variables to config.status.
2704   if test "$ac_new_set" = set; then
2705     case $ac_new_val in
2706     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2707     *) ac_arg=$ac_var=$ac_new_val ;;
2708     esac
2709     case " $ac_configure_args " in
2710       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2711       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2712     esac
2713   fi
2714 done
2715 if $ac_cache_corrupted; then
2716   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2718   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2719 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2720   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2721             and start over" "$LINENO" 5
2722 fi
2723 ## -------------------- ##
2724 ## Main body of script. ##
2725 ## -------------------- ##
2726
2727 ac_ext=c
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733
2734
2735
2736
2737 # Don't forget to update `docs/VERSIONS.TXT'!
2738
2739 version_info='26:1:20'
2740
2741 ft_version=`echo $version_info | tr : .`
2742
2743
2744
2745 # checks for system type
2746
2747
2748
2749
2750   # Make sure we can run config.sub.
2751 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2752   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2753
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2755 printf %s "checking build system type... " >&6; }
2756 if test ${ac_cv_build+y}
2757 then :
2758   printf %s "(cached) " >&6
2759 else $as_nop
2760   ac_build_alias=$build_alias
2761 test "x$ac_build_alias" = x &&
2762   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2763 test "x$ac_build_alias" = x &&
2764   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2765 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2766   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2767
2768 fi
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2770 printf "%s\n" "$ac_cv_build" >&6; }
2771 case $ac_cv_build in
2772 *-*-*) ;;
2773 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2774 esac
2775 build=$ac_cv_build
2776 ac_save_IFS=$IFS; IFS='-'
2777 set x $ac_cv_build
2778 shift
2779 build_cpu=$1
2780 build_vendor=$2
2781 shift; shift
2782 # Remember, the first character of IFS is used to create $*,
2783 # except with old shells:
2784 build_os=$*
2785 IFS=$ac_save_IFS
2786 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2787
2788
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2790 printf %s "checking host system type... " >&6; }
2791 if test ${ac_cv_host+y}
2792 then :
2793   printf %s "(cached) " >&6
2794 else $as_nop
2795   if test "x$host_alias" = x; then
2796   ac_cv_host=$ac_cv_build
2797 else
2798   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2799     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2800 fi
2801
2802 fi
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2804 printf "%s\n" "$ac_cv_host" >&6; }
2805 case $ac_cv_host in
2806 *-*-*) ;;
2807 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2808 esac
2809 host=$ac_cv_host
2810 ac_save_IFS=$IFS; IFS='-'
2811 set x $ac_cv_host
2812 shift
2813 host_cpu=$1
2814 host_vendor=$2
2815 shift; shift
2816 # Remember, the first character of IFS is used to create $*,
2817 # except with old shells:
2818 host_os=$*
2819 IFS=$ac_save_IFS
2820 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2821
2822
2823
2824
2825 # checks for programs
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836 ac_ext=c
2837 ac_cpp='$CPP $CPPFLAGS'
2838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841 if test -n "$ac_tool_prefix"; then
2842   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2843 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 printf %s "checking for $ac_word... " >&6; }
2846 if test ${ac_cv_prog_CC+y}
2847 then :
2848   printf %s "(cached) " >&6
2849 else $as_nop
2850   if test -n "$CC"; then
2851   ac_cv_prog_CC="$CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856   IFS=$as_save_IFS
2857   case $as_dir in #(((
2858     '') as_dir=./ ;;
2859     */) ;;
2860     *) as_dir=$as_dir/ ;;
2861   esac
2862     for ac_exec_ext in '' $ac_executable_extensions; do
2863   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2864     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2865     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2866     break 2
2867   fi
2868 done
2869   done
2870 IFS=$as_save_IFS
2871
2872 fi
2873 fi
2874 CC=$ac_cv_prog_CC
2875 if test -n "$CC"; then
2876   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877 printf "%s\n" "$CC" >&6; }
2878 else
2879   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 printf "%s\n" "no" >&6; }
2881 fi
2882
2883
2884 fi
2885 if test -z "$ac_cv_prog_CC"; then
2886   ac_ct_CC=$CC
2887   # Extract the first word of "gcc", so it can be a program name with args.
2888 set dummy gcc; ac_word=$2
2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 printf %s "checking for $ac_word... " >&6; }
2891 if test ${ac_cv_prog_ac_ct_CC+y}
2892 then :
2893   printf %s "(cached) " >&6
2894 else $as_nop
2895   if test -n "$ac_ct_CC"; then
2896   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901   IFS=$as_save_IFS
2902   case $as_dir in #(((
2903     '') as_dir=./ ;;
2904     */) ;;
2905     *) as_dir=$as_dir/ ;;
2906   esac
2907     for ac_exec_ext in '' $ac_executable_extensions; do
2908   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2909     ac_cv_prog_ac_ct_CC="gcc"
2910     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914   done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
2919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920 if test -n "$ac_ct_CC"; then
2921   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2922 printf "%s\n" "$ac_ct_CC" >&6; }
2923 else
2924   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 printf "%s\n" "no" >&6; }
2926 fi
2927
2928   if test "x$ac_ct_CC" = x; then
2929     CC=""
2930   else
2931     case $cross_compiling:$ac_tool_warned in
2932 yes:)
2933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2934 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2935 ac_tool_warned=yes ;;
2936 esac
2937     CC=$ac_ct_CC
2938   fi
2939 else
2940   CC="$ac_cv_prog_CC"
2941 fi
2942
2943 if test -z "$CC"; then
2944           if test -n "$ac_tool_prefix"; then
2945     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}cc; ac_word=$2
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 printf %s "checking for $ac_word... " >&6; }
2949 if test ${ac_cv_prog_CC+y}
2950 then :
2951   printf %s "(cached) " >&6
2952 else $as_nop
2953   if test -n "$CC"; then
2954   ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959   IFS=$as_save_IFS
2960   case $as_dir in #(((
2961     '') as_dir=./ ;;
2962     */) ;;
2963     *) as_dir=$as_dir/ ;;
2964   esac
2965     for ac_exec_ext in '' $ac_executable_extensions; do
2966   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2967     ac_cv_prog_CC="${ac_tool_prefix}cc"
2968     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2969     break 2
2970   fi
2971 done
2972   done
2973 IFS=$as_save_IFS
2974
2975 fi
2976 fi
2977 CC=$ac_cv_prog_CC
2978 if test -n "$CC"; then
2979   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2980 printf "%s\n" "$CC" >&6; }
2981 else
2982   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 printf "%s\n" "no" >&6; }
2984 fi
2985
2986
2987   fi
2988 fi
2989 if test -z "$CC"; then
2990   # Extract the first word of "cc", so it can be a program name with args.
2991 set dummy cc; ac_word=$2
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 printf %s "checking for $ac_word... " >&6; }
2994 if test ${ac_cv_prog_CC+y}
2995 then :
2996   printf %s "(cached) " >&6
2997 else $as_nop
2998   if test -n "$CC"; then
2999   ac_cv_prog_CC="$CC" # Let the user override the test.
3000 else
3001   ac_prog_rejected=no
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3004 do
3005   IFS=$as_save_IFS
3006   case $as_dir in #(((
3007     '') as_dir=./ ;;
3008     */) ;;
3009     *) as_dir=$as_dir/ ;;
3010   esac
3011     for ac_exec_ext in '' $ac_executable_extensions; do
3012   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3013     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3014        ac_prog_rejected=yes
3015        continue
3016      fi
3017     ac_cv_prog_CC="cc"
3018     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3019     break 2
3020   fi
3021 done
3022   done
3023 IFS=$as_save_IFS
3024
3025 if test $ac_prog_rejected = yes; then
3026   # We found a bogon in the path, so make sure we never use it.
3027   set dummy $ac_cv_prog_CC
3028   shift
3029   if test $# != 0; then
3030     # We chose a different compiler from the bogus one.
3031     # However, it has the same basename, so the bogon will be chosen
3032     # first if we set CC to just the basename; use the full file name.
3033     shift
3034     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3035   fi
3036 fi
3037 fi
3038 fi
3039 CC=$ac_cv_prog_CC
3040 if test -n "$CC"; then
3041   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042 printf "%s\n" "$CC" >&6; }
3043 else
3044   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 printf "%s\n" "no" >&6; }
3046 fi
3047
3048
3049 fi
3050 if test -z "$CC"; then
3051   if test -n "$ac_tool_prefix"; then
3052   for ac_prog in cl.exe
3053   do
3054     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 printf %s "checking for $ac_word... " >&6; }
3058 if test ${ac_cv_prog_CC+y}
3059 then :
3060   printf %s "(cached) " >&6
3061 else $as_nop
3062   if test -n "$CC"; then
3063   ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068   IFS=$as_save_IFS
3069   case $as_dir in #(((
3070     '') as_dir=./ ;;
3071     */) ;;
3072     *) as_dir=$as_dir/ ;;
3073   esac
3074     for ac_exec_ext in '' $ac_executable_extensions; do
3075   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3076     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3077     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3078     break 2
3079   fi
3080 done
3081   done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 CC=$ac_cv_prog_CC
3087 if test -n "$CC"; then
3088   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089 printf "%s\n" "$CC" >&6; }
3090 else
3091   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 printf "%s\n" "no" >&6; }
3093 fi
3094
3095
3096     test -n "$CC" && break
3097   done
3098 fi
3099 if test -z "$CC"; then
3100   ac_ct_CC=$CC
3101   for ac_prog in cl.exe
3102 do
3103   # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 printf %s "checking for $ac_word... " >&6; }
3107 if test ${ac_cv_prog_ac_ct_CC+y}
3108 then :
3109   printf %s "(cached) " >&6
3110 else $as_nop
3111   if test -n "$ac_ct_CC"; then
3112   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117   IFS=$as_save_IFS
3118   case $as_dir in #(((
3119     '') as_dir=./ ;;
3120     */) ;;
3121     *) as_dir=$as_dir/ ;;
3122   esac
3123     for ac_exec_ext in '' $ac_executable_extensions; do
3124   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3125     ac_cv_prog_ac_ct_CC="$ac_prog"
3126     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3127     break 2
3128   fi
3129 done
3130   done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3136 if test -n "$ac_ct_CC"; then
3137   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3138 printf "%s\n" "$ac_ct_CC" >&6; }
3139 else
3140   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 printf "%s\n" "no" >&6; }
3142 fi
3143
3144
3145   test -n "$ac_ct_CC" && break
3146 done
3147
3148   if test "x$ac_ct_CC" = x; then
3149     CC=""
3150   else
3151     case $cross_compiling:$ac_tool_warned in
3152 yes:)
3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3154 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3155 ac_tool_warned=yes ;;
3156 esac
3157     CC=$ac_ct_CC
3158   fi
3159 fi
3160
3161 fi
3162 if test -z "$CC"; then
3163   if test -n "$ac_tool_prefix"; then
3164   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}clang; ac_word=$2
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 printf %s "checking for $ac_word... " >&6; }
3168 if test ${ac_cv_prog_CC+y}
3169 then :
3170   printf %s "(cached) " >&6
3171 else $as_nop
3172   if test -n "$CC"; then
3173   ac_cv_prog_CC="$CC" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178   IFS=$as_save_IFS
3179   case $as_dir in #(((
3180     '') as_dir=./ ;;
3181     */) ;;
3182     *) as_dir=$as_dir/ ;;
3183   esac
3184     for ac_exec_ext in '' $ac_executable_extensions; do
3185   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3186     ac_cv_prog_CC="${ac_tool_prefix}clang"
3187     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3188     break 2
3189   fi
3190 done
3191   done
3192 IFS=$as_save_IFS
3193
3194 fi
3195 fi
3196 CC=$ac_cv_prog_CC
3197 if test -n "$CC"; then
3198   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199 printf "%s\n" "$CC" >&6; }
3200 else
3201   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 printf "%s\n" "no" >&6; }
3203 fi
3204
3205
3206 fi
3207 if test -z "$ac_cv_prog_CC"; then
3208   ac_ct_CC=$CC
3209   # Extract the first word of "clang", so it can be a program name with args.
3210 set dummy clang; ac_word=$2
3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 printf %s "checking for $ac_word... " >&6; }
3213 if test ${ac_cv_prog_ac_ct_CC+y}
3214 then :
3215   printf %s "(cached) " >&6
3216 else $as_nop
3217   if test -n "$ac_ct_CC"; then
3218   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223   IFS=$as_save_IFS
3224   case $as_dir in #(((
3225     '') as_dir=./ ;;
3226     */) ;;
3227     *) as_dir=$as_dir/ ;;
3228   esac
3229     for ac_exec_ext in '' $ac_executable_extensions; do
3230   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3231     ac_cv_prog_ac_ct_CC="clang"
3232     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3233     break 2
3234   fi
3235 done
3236   done
3237 IFS=$as_save_IFS
3238
3239 fi
3240 fi
3241 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3242 if test -n "$ac_ct_CC"; then
3243   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3244 printf "%s\n" "$ac_ct_CC" >&6; }
3245 else
3246   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 printf "%s\n" "no" >&6; }
3248 fi
3249
3250   if test "x$ac_ct_CC" = x; then
3251     CC=""
3252   else
3253     case $cross_compiling:$ac_tool_warned in
3254 yes:)
3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3256 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3257 ac_tool_warned=yes ;;
3258 esac
3259     CC=$ac_ct_CC
3260   fi
3261 else
3262   CC="$ac_cv_prog_CC"
3263 fi
3264
3265 fi
3266
3267
3268 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error $? "no acceptable C compiler found in \$PATH
3271 See \`config.log' for more details" "$LINENO" 5; }
3272
3273 # Provide some information about the compiler.
3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3275 set X $ac_compile
3276 ac_compiler=$2
3277 for ac_option in --version -v -V -qversion -version; do
3278   { { ac_try="$ac_compiler $ac_option >&5"
3279 case "(($ac_try" in
3280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281   *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 printf "%s\n" "$ac_try_echo"; } >&5
3285   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3286   ac_status=$?
3287   if test -s conftest.err; then
3288     sed '10a\
3289 ... rest of stderr output deleted ...
3290          10q' conftest.err >conftest.er1
3291     cat conftest.er1 >&5
3292   fi
3293   rm -f conftest.er1 conftest.err
3294   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295   test $ac_status = 0; }
3296 done
3297
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h.  */
3300
3301 int
3302 main (void)
3303 {
3304
3305   ;
3306   return 0;
3307 }
3308 _ACEOF
3309 ac_clean_files_save=$ac_clean_files
3310 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3311 # Try to create an executable without -o first, disregard a.out.
3312 # It will help us diagnose broken compilers, and finding out an intuition
3313 # of exeext.
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3315 printf %s "checking whether the C compiler works... " >&6; }
3316 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3317
3318 # The possible output files:
3319 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3320
3321 ac_rmfiles=
3322 for ac_file in $ac_files
3323 do
3324   case $ac_file in
3325     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3327   esac
3328 done
3329 rm -f $ac_rmfiles
3330
3331 if { { ac_try="$ac_link_default"
3332 case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 printf "%s\n" "$ac_try_echo"; } >&5
3338   (eval "$ac_link_default") 2>&5
3339   ac_status=$?
3340   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341   test $ac_status = 0; }
3342 then :
3343   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3344 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3345 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3346 # so that the user can short-circuit this test for compilers unknown to
3347 # Autoconf.
3348 for ac_file in $ac_files ''
3349 do
3350   test -f "$ac_file" || continue
3351   case $ac_file in
3352     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3353         ;;
3354     [ab].out )
3355         # We found the default executable, but exeext='' is most
3356         # certainly right.
3357         break;;
3358     *.* )
3359         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3360         then :; else
3361            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3362         fi
3363         # We set ac_cv_exeext here because the later test for it is not
3364         # safe: cross compilers may not add the suffix if given an `-o'
3365         # argument, so we may need to know it at that point already.
3366         # Even if this section looks crufty: it has the advantage of
3367         # actually working.
3368         break;;
3369     * )
3370         break;;
3371   esac
3372 done
3373 test "$ac_cv_exeext" = no && ac_cv_exeext=
3374
3375 else $as_nop
3376   ac_file=''
3377 fi
3378 if test -z "$ac_file"
3379 then :
3380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 printf "%s\n" "no" >&6; }
3382 printf "%s\n" "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error 77 "C compiler cannot create executables
3388 See \`config.log' for more details" "$LINENO" 5; }
3389 else $as_nop
3390   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3391 printf "%s\n" "yes" >&6; }
3392 fi
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3394 printf %s "checking for C compiler default output file name... " >&6; }
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3396 printf "%s\n" "$ac_file" >&6; }
3397 ac_exeext=$ac_cv_exeext
3398
3399 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3400 ac_clean_files=$ac_clean_files_save
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3402 printf %s "checking for suffix of executables... " >&6; }
3403 if { { ac_try="$ac_link"
3404 case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 printf "%s\n" "$ac_try_echo"; } >&5
3410   (eval "$ac_link") 2>&5
3411   ac_status=$?
3412   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413   test $ac_status = 0; }
3414 then :
3415   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3416 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3417 # work properly (i.e., refer to `conftest.exe'), while it won't with
3418 # `rm'.
3419 for ac_file in conftest.exe conftest conftest.*; do
3420   test -f "$ac_file" || continue
3421   case $ac_file in
3422     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3423     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3424           break;;
3425     * ) break;;
3426   esac
3427 done
3428 else $as_nop
3429   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3432 See \`config.log' for more details" "$LINENO" 5; }
3433 fi
3434 rm -f conftest conftest$ac_cv_exeext
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3436 printf "%s\n" "$ac_cv_exeext" >&6; }
3437
3438 rm -f conftest.$ac_ext
3439 EXEEXT=$ac_cv_exeext
3440 ac_exeext=$EXEEXT
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h.  */
3443 #include <stdio.h>
3444 int
3445 main (void)
3446 {
3447 FILE *f = fopen ("conftest.out", "w");
3448  return ferror (f) || fclose (f) != 0;
3449
3450   ;
3451   return 0;
3452 }
3453 _ACEOF
3454 ac_clean_files="$ac_clean_files conftest.out"
3455 # Check that the compiler produces executables we can run.  If not, either
3456 # the compiler is broken, or we cross compile.
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3458 printf %s "checking whether we are cross compiling... " >&6; }
3459 if test "$cross_compiling" != yes; then
3460   { { ac_try="$ac_link"
3461 case "(($ac_try" in
3462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463   *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 printf "%s\n" "$ac_try_echo"; } >&5
3467   (eval "$ac_link") 2>&5
3468   ac_status=$?
3469   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470   test $ac_status = 0; }
3471   if { ac_try='./conftest$ac_cv_exeext'
3472   { { case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 printf "%s\n" "$ac_try_echo"; } >&5
3478   (eval "$ac_try") 2>&5
3479   ac_status=$?
3480   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481   test $ac_status = 0; }; }; then
3482     cross_compiling=no
3483   else
3484     if test "$cross_compiling" = maybe; then
3485         cross_compiling=yes
3486     else
3487         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error 77 "cannot run C compiled programs.
3490 If you meant to cross compile, use \`--host'.
3491 See \`config.log' for more details" "$LINENO" 5; }
3492     fi
3493   fi
3494 fi
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3496 printf "%s\n" "$cross_compiling" >&6; }
3497
3498 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3499 ac_clean_files=$ac_clean_files_save
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3501 printf %s "checking for suffix of object files... " >&6; }
3502 if test ${ac_cv_objext+y}
3503 then :
3504   printf %s "(cached) " >&6
3505 else $as_nop
3506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h.  */
3508
3509 int
3510 main (void)
3511 {
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 rm -f conftest.o conftest.obj
3518 if { { ac_try="$ac_compile"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 printf "%s\n" "$ac_try_echo"; } >&5
3525   (eval "$ac_compile") 2>&5
3526   ac_status=$?
3527   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528   test $ac_status = 0; }
3529 then :
3530   for ac_file in conftest.o conftest.obj conftest.*; do
3531   test -f "$ac_file" || continue;
3532   case $ac_file in
3533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3534     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3535        break;;
3536   esac
3537 done
3538 else $as_nop
3539   printf "%s\n" "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3543 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3544 as_fn_error $? "cannot compute suffix of object files: cannot compile
3545 See \`config.log' for more details" "$LINENO" 5; }
3546 fi
3547 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3548 fi
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3550 printf "%s\n" "$ac_cv_objext" >&6; }
3551 OBJEXT=$ac_cv_objext
3552 ac_objext=$OBJEXT
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3554 printf %s "checking whether the compiler supports GNU C... " >&6; }
3555 if test ${ac_cv_c_compiler_gnu+y}
3556 then :
3557   printf %s "(cached) " >&6
3558 else $as_nop
3559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h.  */
3561
3562 int
3563 main (void)
3564 {
3565 #ifndef __GNUC__
3566        choke me
3567 #endif
3568
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 if ac_fn_c_try_compile "$LINENO"
3574 then :
3575   ac_compiler_gnu=yes
3576 else $as_nop
3577   ac_compiler_gnu=no
3578 fi
3579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3581
3582 fi
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3584 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
3587 if test $ac_compiler_gnu = yes; then
3588   GCC=yes
3589 else
3590   GCC=
3591 fi
3592 ac_test_CFLAGS=${CFLAGS+y}
3593 ac_save_CFLAGS=$CFLAGS
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3595 printf %s "checking whether $CC accepts -g... " >&6; }
3596 if test ${ac_cv_prog_cc_g+y}
3597 then :
3598   printf %s "(cached) " >&6
3599 else $as_nop
3600   ac_save_c_werror_flag=$ac_c_werror_flag
3601    ac_c_werror_flag=yes
3602    ac_cv_prog_cc_g=no
3603    CFLAGS="-g"
3604    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h.  */
3606
3607 int
3608 main (void)
3609 {
3610
3611   ;
3612   return 0;
3613 }
3614 _ACEOF
3615 if ac_fn_c_try_compile "$LINENO"
3616 then :
3617   ac_cv_prog_cc_g=yes
3618 else $as_nop
3619   CFLAGS=""
3620       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h.  */
3622
3623 int
3624 main (void)
3625 {
3626
3627   ;
3628   return 0;
3629 }
3630 _ACEOF
3631 if ac_fn_c_try_compile "$LINENO"
3632 then :
3633
3634 else $as_nop
3635   ac_c_werror_flag=$ac_save_c_werror_flag
3636          CFLAGS="-g"
3637          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h.  */
3639
3640 int
3641 main (void)
3642 {
3643
3644   ;
3645   return 0;
3646 }
3647 _ACEOF
3648 if ac_fn_c_try_compile "$LINENO"
3649 then :
3650   ac_cv_prog_cc_g=yes
3651 fi
3652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3653 fi
3654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3655 fi
3656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3657    ac_c_werror_flag=$ac_save_c_werror_flag
3658 fi
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3660 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3661 if test $ac_test_CFLAGS; then
3662   CFLAGS=$ac_save_CFLAGS
3663 elif test $ac_cv_prog_cc_g = yes; then
3664   if test "$GCC" = yes; then
3665     CFLAGS="-g -O2"
3666   else
3667     CFLAGS="-g"
3668   fi
3669 else
3670   if test "$GCC" = yes; then
3671     CFLAGS="-O2"
3672   else
3673     CFLAGS=
3674   fi
3675 fi
3676 ac_prog_cc_stdc=no
3677 if test x$ac_prog_cc_stdc = xno
3678 then :
3679   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3680 printf %s "checking for $CC option to enable C11 features... " >&6; }
3681 if test ${ac_cv_prog_cc_c11+y}
3682 then :
3683   printf %s "(cached) " >&6
3684 else $as_nop
3685   ac_cv_prog_cc_c11=no
3686 ac_save_CC=$CC
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h.  */
3689 $ac_c_conftest_c11_program
3690 _ACEOF
3691 for ac_arg in '' -std=gnu11
3692 do
3693   CC="$ac_save_CC $ac_arg"
3694   if ac_fn_c_try_compile "$LINENO"
3695 then :
3696   ac_cv_prog_cc_c11=$ac_arg
3697 fi
3698 rm -f core conftest.err conftest.$ac_objext conftest.beam
3699   test "x$ac_cv_prog_cc_c11" != "xno" && break
3700 done
3701 rm -f conftest.$ac_ext
3702 CC=$ac_save_CC
3703 fi
3704
3705 if test "x$ac_cv_prog_cc_c11" = xno
3706 then :
3707   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3708 printf "%s\n" "unsupported" >&6; }
3709 else $as_nop
3710   if test "x$ac_cv_prog_cc_c11" = x
3711 then :
3712   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3713 printf "%s\n" "none needed" >&6; }
3714 else $as_nop
3715   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3716 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3717      CC="$CC $ac_cv_prog_cc_c11"
3718 fi
3719   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3720   ac_prog_cc_stdc=c11
3721 fi
3722 fi
3723 if test x$ac_prog_cc_stdc = xno
3724 then :
3725   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3726 printf %s "checking for $CC option to enable C99 features... " >&6; }
3727 if test ${ac_cv_prog_cc_c99+y}
3728 then :
3729   printf %s "(cached) " >&6
3730 else $as_nop
3731   ac_cv_prog_cc_c99=no
3732 ac_save_CC=$CC
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h.  */
3735 $ac_c_conftest_c99_program
3736 _ACEOF
3737 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3738 do
3739   CC="$ac_save_CC $ac_arg"
3740   if ac_fn_c_try_compile "$LINENO"
3741 then :
3742   ac_cv_prog_cc_c99=$ac_arg
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.beam
3745   test "x$ac_cv_prog_cc_c99" != "xno" && break
3746 done
3747 rm -f conftest.$ac_ext
3748 CC=$ac_save_CC
3749 fi
3750
3751 if test "x$ac_cv_prog_cc_c99" = xno
3752 then :
3753   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3754 printf "%s\n" "unsupported" >&6; }
3755 else $as_nop
3756   if test "x$ac_cv_prog_cc_c99" = x
3757 then :
3758   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3759 printf "%s\n" "none needed" >&6; }
3760 else $as_nop
3761   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3762 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3763      CC="$CC $ac_cv_prog_cc_c99"
3764 fi
3765   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3766   ac_prog_cc_stdc=c99
3767 fi
3768 fi
3769 if test x$ac_prog_cc_stdc = xno
3770 then :
3771   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3772 printf %s "checking for $CC option to enable C89 features... " >&6; }
3773 if test ${ac_cv_prog_cc_c89+y}
3774 then :
3775   printf %s "(cached) " >&6
3776 else $as_nop
3777   ac_cv_prog_cc_c89=no
3778 ac_save_CC=$CC
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h.  */
3781 $ac_c_conftest_c89_program
3782 _ACEOF
3783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3784 do
3785   CC="$ac_save_CC $ac_arg"
3786   if ac_fn_c_try_compile "$LINENO"
3787 then :
3788   ac_cv_prog_cc_c89=$ac_arg
3789 fi
3790 rm -f core conftest.err conftest.$ac_objext conftest.beam
3791   test "x$ac_cv_prog_cc_c89" != "xno" && break
3792 done
3793 rm -f conftest.$ac_ext
3794 CC=$ac_save_CC
3795 fi
3796
3797 if test "x$ac_cv_prog_cc_c89" = xno
3798 then :
3799   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3800 printf "%s\n" "unsupported" >&6; }
3801 else $as_nop
3802   if test "x$ac_cv_prog_cc_c89" = x
3803 then :
3804   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3805 printf "%s\n" "none needed" >&6; }
3806 else $as_nop
3807   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3808 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3809      CC="$CC $ac_cv_prog_cc_c89"
3810 fi
3811   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3812   ac_prog_cc_stdc=c89
3813 fi
3814 fi
3815
3816 ac_ext=c
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821
3822 ac_ext=c
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3828 printf %s "checking how to run the C preprocessor... " >&6; }
3829 # On Suns, sometimes $CPP names a directory.
3830 if test -n "$CPP" && test -d "$CPP"; then
3831   CPP=
3832 fi
3833 if test -z "$CPP"; then
3834   if test ${ac_cv_prog_CPP+y}
3835 then :
3836   printf %s "(cached) " >&6
3837 else $as_nop
3838       # Double quotes because $CC needs to be expanded
3839     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3840     do
3841       ac_preproc_ok=false
3842 for ac_c_preproc_warn_flag in '' yes
3843 do
3844   # Use a header file that comes with gcc, so configuring glibc
3845   # with a fresh cross-compiler works.
3846   # On the NeXT, cc -E runs the code through the compiler's parser,
3847   # not just through cpp. "Syntax error" is here to catch this case.
3848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h.  */
3850 #include <limits.h>
3851                      Syntax error
3852 _ACEOF
3853 if ac_fn_c_try_cpp "$LINENO"
3854 then :
3855
3856 else $as_nop
3857   # Broken: fails on valid input.
3858 continue
3859 fi
3860 rm -f conftest.err conftest.i conftest.$ac_ext
3861
3862   # OK, works on sane cases.  Now check whether nonexistent headers
3863   # can be detected and how.
3864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h.  */
3866 #include <ac_nonexistent.h>
3867 _ACEOF
3868 if ac_fn_c_try_cpp "$LINENO"
3869 then :
3870   # Broken: success on invalid input.
3871 continue
3872 else $as_nop
3873   # Passes both tests.
3874 ac_preproc_ok=:
3875 break
3876 fi
3877 rm -f conftest.err conftest.i conftest.$ac_ext
3878
3879 done
3880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881 rm -f conftest.i conftest.err conftest.$ac_ext
3882 if $ac_preproc_ok
3883 then :
3884   break
3885 fi
3886
3887     done
3888     ac_cv_prog_CPP=$CPP
3889
3890 fi
3891   CPP=$ac_cv_prog_CPP
3892 else
3893   ac_cv_prog_CPP=$CPP
3894 fi
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3896 printf "%s\n" "$CPP" >&6; }
3897 ac_preproc_ok=false
3898 for ac_c_preproc_warn_flag in '' yes
3899 do
3900   # Use a header file that comes with gcc, so configuring glibc
3901   # with a fresh cross-compiler works.
3902   # On the NeXT, cc -E runs the code through the compiler's parser,
3903   # not just through cpp. "Syntax error" is here to catch this case.
3904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h.  */
3906 #include <limits.h>
3907                      Syntax error
3908 _ACEOF
3909 if ac_fn_c_try_cpp "$LINENO"
3910 then :
3911
3912 else $as_nop
3913   # Broken: fails on valid input.
3914 continue
3915 fi
3916 rm -f conftest.err conftest.i conftest.$ac_ext
3917
3918   # OK, works on sane cases.  Now check whether nonexistent headers
3919   # can be detected and how.
3920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h.  */
3922 #include <ac_nonexistent.h>
3923 _ACEOF
3924 if ac_fn_c_try_cpp "$LINENO"
3925 then :
3926   # Broken: success on invalid input.
3927 continue
3928 else $as_nop
3929   # Passes both tests.
3930 ac_preproc_ok=:
3931 break
3932 fi
3933 rm -f conftest.err conftest.i conftest.$ac_ext
3934
3935 done
3936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3937 rm -f conftest.i conftest.err conftest.$ac_ext
3938 if $ac_preproc_ok
3939 then :
3940
3941 else $as_nop
3942   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3945 See \`config.log' for more details" "$LINENO" 5; }
3946 fi
3947
3948 ac_ext=c
3949 ac_cpp='$CPP $CPPFLAGS'
3950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3964         if test -n "$ac_tool_prefix"; then
3965   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3966 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968 printf %s "checking for $ac_word... " >&6; }
3969 if test ${ac_cv_path_PKG_CONFIG+y}
3970 then :
3971   printf %s "(cached) " >&6
3972 else $as_nop
3973   case $PKG_CONFIG in
3974   [\\/]* | ?:[\\/]*)
3975   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3976   ;;
3977   *)
3978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981   IFS=$as_save_IFS
3982   case $as_dir in #(((
3983     '') as_dir=./ ;;
3984     */) ;;
3985     *) as_dir=$as_dir/ ;;
3986   esac
3987     for ac_exec_ext in '' $ac_executable_extensions; do
3988   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3989     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3990     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3991     break 2
3992   fi
3993 done
3994   done
3995 IFS=$as_save_IFS
3996
3997   ;;
3998 esac
3999 fi
4000 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4001 if test -n "$PKG_CONFIG"; then
4002   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4003 printf "%s\n" "$PKG_CONFIG" >&6; }
4004 else
4005   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 printf "%s\n" "no" >&6; }
4007 fi
4008
4009
4010 fi
4011 if test -z "$ac_cv_path_PKG_CONFIG"; then
4012   ac_pt_PKG_CONFIG=$PKG_CONFIG
4013   # Extract the first word of "pkg-config", so it can be a program name with args.
4014 set dummy pkg-config; ac_word=$2
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 printf %s "checking for $ac_word... " >&6; }
4017 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4018 then :
4019   printf %s "(cached) " >&6
4020 else $as_nop
4021   case $ac_pt_PKG_CONFIG in
4022   [\\/]* | ?:[\\/]*)
4023   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4024   ;;
4025   *)
4026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4028 do
4029   IFS=$as_save_IFS
4030   case $as_dir in #(((
4031     '') as_dir=./ ;;
4032     */) ;;
4033     *) as_dir=$as_dir/ ;;
4034   esac
4035     for ac_exec_ext in '' $ac_executable_extensions; do
4036   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4037     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4038     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4039     break 2
4040   fi
4041 done
4042   done
4043 IFS=$as_save_IFS
4044
4045   ;;
4046 esac
4047 fi
4048 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4049 if test -n "$ac_pt_PKG_CONFIG"; then
4050   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4051 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4052 else
4053   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 printf "%s\n" "no" >&6; }
4055 fi
4056
4057   if test "x$ac_pt_PKG_CONFIG" = x; then
4058     PKG_CONFIG=""
4059   else
4060     case $cross_compiling:$ac_tool_warned in
4061 yes:)
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4063 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4064 ac_tool_warned=yes ;;
4065 esac
4066     PKG_CONFIG=$ac_pt_PKG_CONFIG
4067   fi
4068 else
4069   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4070 fi
4071
4072 fi
4073 if test -n "$PKG_CONFIG"; then
4074         _pkg_min_version=0.24
4075         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4076 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4077         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4078                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4079 printf "%s\n" "yes" >&6; }
4080         else
4081                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082 printf "%s\n" "no" >&6; }
4083                 PKG_CONFIG=""
4084         fi
4085 fi
4086
4087
4088 case `pwd` in
4089   *\ * | *\     *)
4090     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4091 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4092 esac
4093
4094
4095
4096 macro_version='2.4.7'
4097 macro_revision='2.4.7'
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112 ltmain=$ac_aux_dir/ltmain.sh
4113
4114 # Backslashify metacharacters that are still active within
4115 # double-quoted strings.
4116 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4117
4118 # Same as above, but do not quote variable references.
4119 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4120
4121 # Sed substitution to delay expansion of an escaped shell variable in a
4122 # double_quote_subst'ed string.
4123 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4124
4125 # Sed substitution to delay expansion of an escaped single quote.
4126 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4127
4128 # Sed substitution to avoid accidental globbing in evaled expressions
4129 no_glob_subst='s/\*/\\\*/g'
4130
4131 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4132 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4133 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4134
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4136 printf %s "checking how to print strings... " >&6; }
4137 # Test print first, because it will be a builtin if present.
4138 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4139    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4140   ECHO='print -r --'
4141 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4142   ECHO='printf %s\n'
4143 else
4144   # Use this function as a fallback that always works.
4145   func_fallback_echo ()
4146   {
4147     eval 'cat <<_LTECHO_EOF
4148 $1
4149 _LTECHO_EOF'
4150   }
4151   ECHO='func_fallback_echo'
4152 fi
4153
4154 # func_echo_all arg...
4155 # Invoke $ECHO with all args, space-separated.
4156 func_echo_all ()
4157 {
4158     $ECHO ""
4159 }
4160
4161 case $ECHO in
4162   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4163 printf "%s\n" "printf" >&6; } ;;
4164   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4165 printf "%s\n" "print -r" >&6; } ;;
4166   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4167 printf "%s\n" "cat" >&6; } ;;
4168 esac
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4184 printf %s "checking for a sed that does not truncate output... " >&6; }
4185 if test ${ac_cv_path_SED+y}
4186 then :
4187   printf %s "(cached) " >&6
4188 else $as_nop
4189             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4190      for ac_i in 1 2 3 4 5 6 7; do
4191        ac_script="$ac_script$as_nl$ac_script"
4192      done
4193      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4194      { ac_script=; unset ac_script;}
4195      if test -z "$SED"; then
4196   ac_path_SED_found=false
4197   # Loop through the user's path and test for each of PROGNAME-LIST
4198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4200 do
4201   IFS=$as_save_IFS
4202   case $as_dir in #(((
4203     '') as_dir=./ ;;
4204     */) ;;
4205     *) as_dir=$as_dir/ ;;
4206   esac
4207     for ac_prog in sed gsed
4208    do
4209     for ac_exec_ext in '' $ac_executable_extensions; do
4210       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4211       as_fn_executable_p "$ac_path_SED" || continue
4212 # Check for GNU ac_path_SED and select it if it is found.
4213   # Check for GNU $ac_path_SED
4214 case `"$ac_path_SED" --version 2>&1` in
4215 *GNU*)
4216   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4217 *)
4218   ac_count=0
4219   printf %s 0123456789 >"conftest.in"
4220   while :
4221   do
4222     cat "conftest.in" "conftest.in" >"conftest.tmp"
4223     mv "conftest.tmp" "conftest.in"
4224     cp "conftest.in" "conftest.nl"
4225     printf "%s\n" '' >> "conftest.nl"
4226     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4227     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4228     as_fn_arith $ac_count + 1 && ac_count=$as_val
4229     if test $ac_count -gt ${ac_path_SED_max-0}; then
4230       # Best one so far, save it but keep looking for a better one
4231       ac_cv_path_SED="$ac_path_SED"
4232       ac_path_SED_max=$ac_count
4233     fi
4234     # 10*(2^10) chars as input seems more than enough
4235     test $ac_count -gt 10 && break
4236   done
4237   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4238 esac
4239
4240       $ac_path_SED_found && break 3
4241     done
4242   done
4243   done
4244 IFS=$as_save_IFS
4245   if test -z "$ac_cv_path_SED"; then
4246     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4247   fi
4248 else
4249   ac_cv_path_SED=$SED
4250 fi
4251
4252 fi
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4254 printf "%s\n" "$ac_cv_path_SED" >&6; }
4255  SED="$ac_cv_path_SED"
4256   rm -f conftest.sed
4257
4258 test -z "$SED" && SED=sed
4259 Xsed="$SED -e 1s/^X//"
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4272 printf %s "checking for grep that handles long lines and -e... " >&6; }
4273 if test ${ac_cv_path_GREP+y}
4274 then :
4275   printf %s "(cached) " >&6
4276 else $as_nop
4277   if test -z "$GREP"; then
4278   ac_path_GREP_found=false
4279   # Loop through the user's path and test for each of PROGNAME-LIST
4280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4282 do
4283   IFS=$as_save_IFS
4284   case $as_dir in #(((
4285     '') as_dir=./ ;;
4286     */) ;;
4287     *) as_dir=$as_dir/ ;;
4288   esac
4289     for ac_prog in grep ggrep
4290    do
4291     for ac_exec_ext in '' $ac_executable_extensions; do
4292       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4293       as_fn_executable_p "$ac_path_GREP" || continue
4294 # Check for GNU ac_path_GREP and select it if it is found.
4295   # Check for GNU $ac_path_GREP
4296 case `"$ac_path_GREP" --version 2>&1` in
4297 *GNU*)
4298   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4299 *)
4300   ac_count=0
4301   printf %s 0123456789 >"conftest.in"
4302   while :
4303   do
4304     cat "conftest.in" "conftest.in" >"conftest.tmp"
4305     mv "conftest.tmp" "conftest.in"
4306     cp "conftest.in" "conftest.nl"
4307     printf "%s\n" 'GREP' >> "conftest.nl"
4308     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4309     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4310     as_fn_arith $ac_count + 1 && ac_count=$as_val
4311     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4312       # Best one so far, save it but keep looking for a better one
4313       ac_cv_path_GREP="$ac_path_GREP"
4314       ac_path_GREP_max=$ac_count
4315     fi
4316     # 10*(2^10) chars as input seems more than enough
4317     test $ac_count -gt 10 && break
4318   done
4319   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4320 esac
4321
4322       $ac_path_GREP_found && break 3
4323     done
4324   done
4325   done
4326 IFS=$as_save_IFS
4327   if test -z "$ac_cv_path_GREP"; then
4328     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4329   fi
4330 else
4331   ac_cv_path_GREP=$GREP
4332 fi
4333
4334 fi
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4336 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4337  GREP="$ac_cv_path_GREP"
4338
4339
4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4341 printf %s "checking for egrep... " >&6; }
4342 if test ${ac_cv_path_EGREP+y}
4343 then :
4344   printf %s "(cached) " >&6
4345 else $as_nop
4346   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4347    then ac_cv_path_EGREP="$GREP -E"
4348    else
4349      if test -z "$EGREP"; then
4350   ac_path_EGREP_found=false
4351   # Loop through the user's path and test for each of PROGNAME-LIST
4352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354 do
4355   IFS=$as_save_IFS
4356   case $as_dir in #(((
4357     '') as_dir=./ ;;
4358     */) ;;
4359     *) as_dir=$as_dir/ ;;
4360   esac
4361     for ac_prog in egrep
4362    do
4363     for ac_exec_ext in '' $ac_executable_extensions; do
4364       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4365       as_fn_executable_p "$ac_path_EGREP" || continue
4366 # Check for GNU ac_path_EGREP and select it if it is found.
4367   # Check for GNU $ac_path_EGREP
4368 case `"$ac_path_EGREP" --version 2>&1` in
4369 *GNU*)
4370   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4371 *)
4372   ac_count=0
4373   printf %s 0123456789 >"conftest.in"
4374   while :
4375   do
4376     cat "conftest.in" "conftest.in" >"conftest.tmp"
4377     mv "conftest.tmp" "conftest.in"
4378     cp "conftest.in" "conftest.nl"
4379     printf "%s\n" 'EGREP' >> "conftest.nl"
4380     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4381     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4382     as_fn_arith $ac_count + 1 && ac_count=$as_val
4383     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4384       # Best one so far, save it but keep looking for a better one
4385       ac_cv_path_EGREP="$ac_path_EGREP"
4386       ac_path_EGREP_max=$ac_count
4387     fi
4388     # 10*(2^10) chars as input seems more than enough
4389     test $ac_count -gt 10 && break
4390   done
4391   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4392 esac
4393
4394       $ac_path_EGREP_found && break 3
4395     done
4396   done
4397   done
4398 IFS=$as_save_IFS
4399   if test -z "$ac_cv_path_EGREP"; then
4400     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4401   fi
4402 else
4403   ac_cv_path_EGREP=$EGREP
4404 fi
4405
4406    fi
4407 fi
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4409 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4410  EGREP="$ac_cv_path_EGREP"
4411
4412
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4414 printf %s "checking for fgrep... " >&6; }
4415 if test ${ac_cv_path_FGREP+y}
4416 then :
4417   printf %s "(cached) " >&6
4418 else $as_nop
4419   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4420    then ac_cv_path_FGREP="$GREP -F"
4421    else
4422      if test -z "$FGREP"; then
4423   ac_path_FGREP_found=false
4424   # Loop through the user's path and test for each of PROGNAME-LIST
4425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4427 do
4428   IFS=$as_save_IFS
4429   case $as_dir in #(((
4430     '') as_dir=./ ;;
4431     */) ;;
4432     *) as_dir=$as_dir/ ;;
4433   esac
4434     for ac_prog in fgrep
4435    do
4436     for ac_exec_ext in '' $ac_executable_extensions; do
4437       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4438       as_fn_executable_p "$ac_path_FGREP" || continue
4439 # Check for GNU ac_path_FGREP and select it if it is found.
4440   # Check for GNU $ac_path_FGREP
4441 case `"$ac_path_FGREP" --version 2>&1` in
4442 *GNU*)
4443   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4444 *)
4445   ac_count=0
4446   printf %s 0123456789 >"conftest.in"
4447   while :
4448   do
4449     cat "conftest.in" "conftest.in" >"conftest.tmp"
4450     mv "conftest.tmp" "conftest.in"
4451     cp "conftest.in" "conftest.nl"
4452     printf "%s\n" 'FGREP' >> "conftest.nl"
4453     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4454     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4455     as_fn_arith $ac_count + 1 && ac_count=$as_val
4456     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4457       # Best one so far, save it but keep looking for a better one
4458       ac_cv_path_FGREP="$ac_path_FGREP"
4459       ac_path_FGREP_max=$ac_count
4460     fi
4461     # 10*(2^10) chars as input seems more than enough
4462     test $ac_count -gt 10 && break
4463   done
4464   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4465 esac
4466
4467       $ac_path_FGREP_found && break 3
4468     done
4469   done
4470   done
4471 IFS=$as_save_IFS
4472   if test -z "$ac_cv_path_FGREP"; then
4473     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4474   fi
4475 else
4476   ac_cv_path_FGREP=$FGREP
4477 fi
4478
4479    fi
4480 fi
4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4482 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4483  FGREP="$ac_cv_path_FGREP"
4484
4485
4486 test -z "$GREP" && GREP=grep
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506 # Check whether --with-gnu-ld was given.
4507 if test ${with_gnu_ld+y}
4508 then :
4509   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4510 else $as_nop
4511   with_gnu_ld=no
4512 fi
4513
4514 ac_prog=ld
4515 if test yes = "$GCC"; then
4516   # Check if gcc -print-prog-name=ld gives a path.
4517   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4518 printf %s "checking for ld used by $CC... " >&6; }
4519   case $host in
4520   *-*-mingw*)
4521     # gcc leaves a trailing carriage return, which upsets mingw
4522     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4523   *)
4524     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4525   esac
4526   case $ac_prog in
4527     # Accept absolute paths.
4528     [\\/]* | ?:[\\/]*)
4529       re_direlt='/[^/][^/]*/\.\./'
4530       # Canonicalize the pathname of ld
4531       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4532       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4533         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4534       done
4535       test -z "$LD" && LD=$ac_prog
4536       ;;
4537   "")
4538     # If it fails, then pretend we aren't using GCC.
4539     ac_prog=ld
4540     ;;
4541   *)
4542     # If it is relative, then search for the first ld in PATH.
4543     with_gnu_ld=unknown
4544     ;;
4545   esac
4546 elif test yes = "$with_gnu_ld"; then
4547   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4548 printf %s "checking for GNU ld... " >&6; }
4549 else
4550   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4551 printf %s "checking for non-GNU ld... " >&6; }
4552 fi
4553 if test ${lt_cv_path_LD+y}
4554 then :
4555   printf %s "(cached) " >&6
4556 else $as_nop
4557   if test -z "$LD"; then
4558   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4559   for ac_dir in $PATH; do
4560     IFS=$lt_save_ifs
4561     test -z "$ac_dir" && ac_dir=.
4562     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4563       lt_cv_path_LD=$ac_dir/$ac_prog
4564       # Check to see if the program is GNU ld.  I'd rather use --version,
4565       # but apparently some variants of GNU ld only accept -v.
4566       # Break only if it was the GNU/non-GNU ld that we prefer.
4567       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4568       *GNU* | *'with BFD'*)
4569         test no != "$with_gnu_ld" && break
4570         ;;
4571       *)
4572         test yes != "$with_gnu_ld" && break
4573         ;;
4574       esac
4575     fi
4576   done
4577   IFS=$lt_save_ifs
4578 else
4579   lt_cv_path_LD=$LD # Let the user override the test with a path.
4580 fi
4581 fi
4582
4583 LD=$lt_cv_path_LD
4584 if test -n "$LD"; then
4585   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4586 printf "%s\n" "$LD" >&6; }
4587 else
4588   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 printf "%s\n" "no" >&6; }
4590 fi
4591 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4593 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4594 if test ${lt_cv_prog_gnu_ld+y}
4595 then :
4596   printf %s "(cached) " >&6
4597 else $as_nop
4598   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4599 case `$LD -v 2>&1 </dev/null` in
4600 *GNU* | *'with BFD'*)
4601   lt_cv_prog_gnu_ld=yes
4602   ;;
4603 *)
4604   lt_cv_prog_gnu_ld=no
4605   ;;
4606 esac
4607 fi
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4609 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4610 with_gnu_ld=$lt_cv_prog_gnu_ld
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4621 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4622 if test ${lt_cv_path_NM+y}
4623 then :
4624   printf %s "(cached) " >&6
4625 else $as_nop
4626   if test -n "$NM"; then
4627   # Let the user override the test.
4628   lt_cv_path_NM=$NM
4629 else
4630   lt_nm_to_check=${ac_tool_prefix}nm
4631   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4632     lt_nm_to_check="$lt_nm_to_check nm"
4633   fi
4634   for lt_tmp_nm in $lt_nm_to_check; do
4635     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4636     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4637       IFS=$lt_save_ifs
4638       test -z "$ac_dir" && ac_dir=.
4639       tmp_nm=$ac_dir/$lt_tmp_nm
4640       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4641         # Check to see if the nm accepts a BSD-compat flag.
4642         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4643         #   nm: unknown option "B" ignored
4644         # Tru64's nm complains that /dev/null is an invalid object file
4645         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4646         case $build_os in
4647         mingw*) lt_bad_file=conftest.nm/nofile ;;
4648         *) lt_bad_file=/dev/null ;;
4649         esac
4650         case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
4651         *$lt_bad_file* | *'Invalid file or object type'*)
4652           lt_cv_path_NM="$tmp_nm -B"
4653           break 2
4654           ;;
4655         *)
4656           case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
4657           */dev/null*)
4658             lt_cv_path_NM="$tmp_nm -p"
4659             break 2
4660             ;;
4661           *)
4662             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4663             continue # so that we can try to find one that supports BSD flags
4664             ;;
4665           esac
4666           ;;
4667         esac
4668       fi
4669     done
4670     IFS=$lt_save_ifs
4671   done
4672   : ${lt_cv_path_NM=no}
4673 fi
4674 fi
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4676 printf "%s\n" "$lt_cv_path_NM" >&6; }
4677 if test no != "$lt_cv_path_NM"; then
4678   NM=$lt_cv_path_NM
4679 else
4680   # Didn't find any BSD compatible name lister, look for dumpbin.
4681   if test -n "$DUMPBIN"; then :
4682     # Let the user override the test.
4683   else
4684     if test -n "$ac_tool_prefix"; then
4685   for ac_prog in dumpbin "link -dump"
4686   do
4687     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 printf %s "checking for $ac_word... " >&6; }
4691 if test ${ac_cv_prog_DUMPBIN+y}
4692 then :
4693   printf %s "(cached) " >&6
4694 else $as_nop
4695   if test -n "$DUMPBIN"; then
4696   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701   IFS=$as_save_IFS
4702   case $as_dir in #(((
4703     '') as_dir=./ ;;
4704     */) ;;
4705     *) as_dir=$as_dir/ ;;
4706   esac
4707     for ac_exec_ext in '' $ac_executable_extensions; do
4708   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4709     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4710     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4711     break 2
4712   fi
4713 done
4714   done
4715 IFS=$as_save_IFS
4716
4717 fi
4718 fi
4719 DUMPBIN=$ac_cv_prog_DUMPBIN
4720 if test -n "$DUMPBIN"; then
4721   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4722 printf "%s\n" "$DUMPBIN" >&6; }
4723 else
4724   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 printf "%s\n" "no" >&6; }
4726 fi
4727
4728
4729     test -n "$DUMPBIN" && break
4730   done
4731 fi
4732 if test -z "$DUMPBIN"; then
4733   ac_ct_DUMPBIN=$DUMPBIN
4734   for ac_prog in dumpbin "link -dump"
4735 do
4736   # Extract the first word of "$ac_prog", so it can be a program name with args.
4737 set dummy $ac_prog; ac_word=$2
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 printf %s "checking for $ac_word... " >&6; }
4740 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4741 then :
4742   printf %s "(cached) " >&6
4743 else $as_nop
4744   if test -n "$ac_ct_DUMPBIN"; then
4745   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4746 else
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750   IFS=$as_save_IFS
4751   case $as_dir in #(((
4752     '') as_dir=./ ;;
4753     */) ;;
4754     *) as_dir=$as_dir/ ;;
4755   esac
4756     for ac_exec_ext in '' $ac_executable_extensions; do
4757   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4758     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4759     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4760     break 2
4761   fi
4762 done
4763   done
4764 IFS=$as_save_IFS
4765
4766 fi
4767 fi
4768 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4769 if test -n "$ac_ct_DUMPBIN"; then
4770   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4771 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4772 else
4773   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 printf "%s\n" "no" >&6; }
4775 fi
4776
4777
4778   test -n "$ac_ct_DUMPBIN" && break
4779 done
4780
4781   if test "x$ac_ct_DUMPBIN" = x; then
4782     DUMPBIN=":"
4783   else
4784     case $cross_compiling:$ac_tool_warned in
4785 yes:)
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4787 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4788 ac_tool_warned=yes ;;
4789 esac
4790     DUMPBIN=$ac_ct_DUMPBIN
4791   fi
4792 fi
4793
4794     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
4795     *COFF*)
4796       DUMPBIN="$DUMPBIN -symbols -headers"
4797       ;;
4798     *)
4799       DUMPBIN=:
4800       ;;
4801     esac
4802   fi
4803
4804   if test : != "$DUMPBIN"; then
4805     NM=$DUMPBIN
4806   fi
4807 fi
4808 test -z "$NM" && NM=nm
4809
4810
4811
4812
4813
4814
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4816 printf %s "checking the name lister ($NM) interface... " >&6; }
4817 if test ${lt_cv_nm_interface+y}
4818 then :
4819   printf %s "(cached) " >&6
4820 else $as_nop
4821   lt_cv_nm_interface="BSD nm"
4822   echo "int some_variable = 0;" > conftest.$ac_ext
4823   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4824   (eval "$ac_compile" 2>conftest.err)
4825   cat conftest.err >&5
4826   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4827   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4828   cat conftest.err >&5
4829   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4830   cat conftest.out >&5
4831   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4832     lt_cv_nm_interface="MS dumpbin"
4833   fi
4834   rm -f conftest*
4835 fi
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4837 printf "%s\n" "$lt_cv_nm_interface" >&6; }
4838
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4840 printf %s "checking whether ln -s works... " >&6; }
4841 LN_S=$as_ln_s
4842 if test "$LN_S" = "ln -s"; then
4843   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4844 printf "%s\n" "yes" >&6; }
4845 else
4846   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4847 printf "%s\n" "no, using $LN_S" >&6; }
4848 fi
4849
4850 # find the maximum length of command line arguments
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4852 printf %s "checking the maximum length of command line arguments... " >&6; }
4853 if test ${lt_cv_sys_max_cmd_len+y}
4854 then :
4855   printf %s "(cached) " >&6
4856 else $as_nop
4857     i=0
4858   teststring=ABCD
4859
4860   case $build_os in
4861   msdosdjgpp*)
4862     # On DJGPP, this test can blow up pretty badly due to problems in libc
4863     # (any single argument exceeding 2000 bytes causes a buffer overrun
4864     # during glob expansion).  Even if it were fixed, the result of this
4865     # check would be larger than it should be.
4866     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4867     ;;
4868
4869   gnu*)
4870     # Under GNU Hurd, this test is not required because there is
4871     # no limit to the length of command line arguments.
4872     # Libtool will interpret -1 as no limit whatsoever
4873     lt_cv_sys_max_cmd_len=-1;
4874     ;;
4875
4876   cygwin* | mingw* | cegcc*)
4877     # On Win9x/ME, this test blows up -- it succeeds, but takes
4878     # about 5 minutes as the teststring grows exponentially.
4879     # Worse, since 9x/ME are not pre-emptively multitasking,
4880     # you end up with a "frozen" computer, even though with patience
4881     # the test eventually succeeds (with a max line length of 256k).
4882     # Instead, let's just punt: use the minimum linelength reported by
4883     # all of the supported platforms: 8192 (on NT/2K/XP).
4884     lt_cv_sys_max_cmd_len=8192;
4885     ;;
4886
4887   mint*)
4888     # On MiNT this can take a long time and run out of memory.
4889     lt_cv_sys_max_cmd_len=8192;
4890     ;;
4891
4892   amigaos*)
4893     # On AmigaOS with pdksh, this test takes hours, literally.
4894     # So we just punt and use a minimum line length of 8192.
4895     lt_cv_sys_max_cmd_len=8192;
4896     ;;
4897
4898   bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
4899     # This has been around since 386BSD, at least.  Likely further.
4900     if test -x /sbin/sysctl; then
4901       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4902     elif test -x /usr/sbin/sysctl; then
4903       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4904     else
4905       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4906     fi
4907     # And add a safety zone
4908     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4909     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4910     ;;
4911
4912   interix*)
4913     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4914     lt_cv_sys_max_cmd_len=196608
4915     ;;
4916
4917   os2*)
4918     # The test takes a long time on OS/2.
4919     lt_cv_sys_max_cmd_len=8192
4920     ;;
4921
4922   osf*)
4923     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4924     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4925     # nice to cause kernel panics so lets avoid the loop below.
4926     # First set a reasonable default.
4927     lt_cv_sys_max_cmd_len=16384
4928     #
4929     if test -x /sbin/sysconfig; then
4930       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4931         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4932       esac
4933     fi
4934     ;;
4935   sco3.2v5*)
4936     lt_cv_sys_max_cmd_len=102400
4937     ;;
4938   sysv5* | sco5v6* | sysv4.2uw2*)
4939     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4940     if test -n "$kargmax"; then
4941       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[         ]//'`
4942     else
4943       lt_cv_sys_max_cmd_len=32768
4944     fi
4945     ;;
4946   *)
4947     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4948     if test -n "$lt_cv_sys_max_cmd_len" && \
4949        test undefined != "$lt_cv_sys_max_cmd_len"; then
4950       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4951       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4952     else
4953       # Make teststring a little bigger before we do anything with it.
4954       # a 1K string should be a reasonable start.
4955       for i in 1 2 3 4 5 6 7 8; do
4956         teststring=$teststring$teststring
4957       done
4958       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4959       # If test is not a shell built-in, we'll probably end up computing a
4960       # maximum length that is only half of the actual maximum length, but
4961       # we can't tell.
4962       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4963                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4964               test 17 != "$i" # 1/2 MB should be enough
4965       do
4966         i=`expr $i + 1`
4967         teststring=$teststring$teststring
4968       done
4969       # Only check the string length outside the loop.
4970       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4971       teststring=
4972       # Add a significant safety factor because C++ compilers can tack on
4973       # massive amounts of additional arguments before passing them to the
4974       # linker.  It appears as though 1/2 is a usable value.
4975       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4976     fi
4977     ;;
4978   esac
4979
4980 fi
4981
4982 if test -n "$lt_cv_sys_max_cmd_len"; then
4983   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4984 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
4985 else
4986   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
4987 printf "%s\n" "none" >&6; }
4988 fi
4989 max_cmd_len=$lt_cv_sys_max_cmd_len
4990
4991
4992
4993
4994
4995
4996 : ${CP="cp -f"}
4997 : ${MV="mv -f"}
4998 : ${RM="rm -f"}
4999
5000 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5001   lt_unset=unset
5002 else
5003   lt_unset=false
5004 fi
5005
5006
5007
5008
5009
5010 # test EBCDIC or ASCII
5011 case `echo X|tr X '\101'` in
5012  A) # ASCII based system
5013     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5014   lt_SP2NL='tr \040 \012'
5015   lt_NL2SP='tr \015\012 \040\040'
5016   ;;
5017  *) # EBCDIC based system
5018   lt_SP2NL='tr \100 \n'
5019   lt_NL2SP='tr \r\n \100\100'
5020   ;;
5021 esac
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5032 printf %s "checking how to convert $build file names to $host format... " >&6; }
5033 if test ${lt_cv_to_host_file_cmd+y}
5034 then :
5035   printf %s "(cached) " >&6
5036 else $as_nop
5037   case $host in
5038   *-*-mingw* )
5039     case $build in
5040       *-*-mingw* ) # actually msys
5041         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5042         ;;
5043       *-*-cygwin* )
5044         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5045         ;;
5046       * ) # otherwise, assume *nix
5047         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5048         ;;
5049     esac
5050     ;;
5051   *-*-cygwin* )
5052     case $build in
5053       *-*-mingw* ) # actually msys
5054         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5055         ;;
5056       *-*-cygwin* )
5057         lt_cv_to_host_file_cmd=func_convert_file_noop
5058         ;;
5059       * ) # otherwise, assume *nix
5060         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5061         ;;
5062     esac
5063     ;;
5064   * ) # unhandled hosts (and "normal" native builds)
5065     lt_cv_to_host_file_cmd=func_convert_file_noop
5066     ;;
5067 esac
5068
5069 fi
5070
5071 to_host_file_cmd=$lt_cv_to_host_file_cmd
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5073 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5074
5075
5076
5077
5078
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5080 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5081 if test ${lt_cv_to_tool_file_cmd+y}
5082 then :
5083   printf %s "(cached) " >&6
5084 else $as_nop
5085   #assume ordinary cross tools, or native build.
5086 lt_cv_to_tool_file_cmd=func_convert_file_noop
5087 case $host in
5088   *-*-mingw* )
5089     case $build in
5090       *-*-mingw* ) # actually msys
5091         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5092         ;;
5093     esac
5094     ;;
5095 esac
5096
5097 fi
5098
5099 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5101 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5102
5103
5104
5105
5106
5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5108 printf %s "checking for $LD option to reload object files... " >&6; }
5109 if test ${lt_cv_ld_reload_flag+y}
5110 then :
5111   printf %s "(cached) " >&6
5112 else $as_nop
5113   lt_cv_ld_reload_flag='-r'
5114 fi
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5116 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5117 reload_flag=$lt_cv_ld_reload_flag
5118 case $reload_flag in
5119 "" | " "*) ;;
5120 *) reload_flag=" $reload_flag" ;;
5121 esac
5122 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5123 case $host_os in
5124   cygwin* | mingw* | pw32* | cegcc*)
5125     if test yes != "$GCC"; then
5126       reload_cmds=false
5127     fi
5128     ;;
5129   darwin*)
5130     if test yes = "$GCC"; then
5131       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5132     else
5133       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5134     fi
5135     ;;
5136 esac
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146 if test -n "$ac_tool_prefix"; then
5147   # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}file; ac_word=$2
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 printf %s "checking for $ac_word... " >&6; }
5151 if test ${ac_cv_prog_FILECMD+y}
5152 then :
5153   printf %s "(cached) " >&6
5154 else $as_nop
5155   if test -n "$FILECMD"; then
5156   ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161   IFS=$as_save_IFS
5162   case $as_dir in #(((
5163     '') as_dir=./ ;;
5164     */) ;;
5165     *) as_dir=$as_dir/ ;;
5166   esac
5167     for ac_exec_ext in '' $ac_executable_extensions; do
5168   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5169     ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5170     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5171     break 2
5172   fi
5173 done
5174   done
5175 IFS=$as_save_IFS
5176
5177 fi
5178 fi
5179 FILECMD=$ac_cv_prog_FILECMD
5180 if test -n "$FILECMD"; then
5181   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5182 printf "%s\n" "$FILECMD" >&6; }
5183 else
5184   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 printf "%s\n" "no" >&6; }
5186 fi
5187
5188
5189 fi
5190 if test -z "$ac_cv_prog_FILECMD"; then
5191   ac_ct_FILECMD=$FILECMD
5192   # Extract the first word of "file", so it can be a program name with args.
5193 set dummy file; ac_word=$2
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 printf %s "checking for $ac_word... " >&6; }
5196 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5197 then :
5198   printf %s "(cached) " >&6
5199 else $as_nop
5200   if test -n "$ac_ct_FILECMD"; then
5201   ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206   IFS=$as_save_IFS
5207   case $as_dir in #(((
5208     '') as_dir=./ ;;
5209     */) ;;
5210     *) as_dir=$as_dir/ ;;
5211   esac
5212     for ac_exec_ext in '' $ac_executable_extensions; do
5213   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5214     ac_cv_prog_ac_ct_FILECMD="file"
5215     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5216     break 2
5217   fi
5218 done
5219   done
5220 IFS=$as_save_IFS
5221
5222 fi
5223 fi
5224 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5225 if test -n "$ac_ct_FILECMD"; then
5226   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5227 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5228 else
5229   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 printf "%s\n" "no" >&6; }
5231 fi
5232
5233   if test "x$ac_ct_FILECMD" = x; then
5234     FILECMD=":"
5235   else
5236     case $cross_compiling:$ac_tool_warned in
5237 yes:)
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5239 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5240 ac_tool_warned=yes ;;
5241 esac
5242     FILECMD=$ac_ct_FILECMD
5243   fi
5244 else
5245   FILECMD="$ac_cv_prog_FILECMD"
5246 fi
5247
5248
5249
5250
5251
5252
5253
5254 if test -n "$ac_tool_prefix"; then
5255   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5256 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 printf %s "checking for $ac_word... " >&6; }
5259 if test ${ac_cv_prog_OBJDUMP+y}
5260 then :
5261   printf %s "(cached) " >&6
5262 else $as_nop
5263   if test -n "$OBJDUMP"; then
5264   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5268 do
5269   IFS=$as_save_IFS
5270   case $as_dir in #(((
5271     '') as_dir=./ ;;
5272     */) ;;
5273     *) as_dir=$as_dir/ ;;
5274   esac
5275     for ac_exec_ext in '' $ac_executable_extensions; do
5276   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5277     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5278     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282   done
5283 IFS=$as_save_IFS
5284
5285 fi
5286 fi
5287 OBJDUMP=$ac_cv_prog_OBJDUMP
5288 if test -n "$OBJDUMP"; then
5289   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5290 printf "%s\n" "$OBJDUMP" >&6; }
5291 else
5292   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 printf "%s\n" "no" >&6; }
5294 fi
5295
5296
5297 fi
5298 if test -z "$ac_cv_prog_OBJDUMP"; then
5299   ac_ct_OBJDUMP=$OBJDUMP
5300   # Extract the first word of "objdump", so it can be a program name with args.
5301 set dummy objdump; ac_word=$2
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 printf %s "checking for $ac_word... " >&6; }
5304 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5305 then :
5306   printf %s "(cached) " >&6
5307 else $as_nop
5308   if test -n "$ac_ct_OBJDUMP"; then
5309   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5310 else
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314   IFS=$as_save_IFS
5315   case $as_dir in #(((
5316     '') as_dir=./ ;;
5317     */) ;;
5318     *) as_dir=$as_dir/ ;;
5319   esac
5320     for ac_exec_ext in '' $ac_executable_extensions; do
5321   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5322     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5323     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5324     break 2
5325   fi
5326 done
5327   done
5328 IFS=$as_save_IFS
5329
5330 fi
5331 fi
5332 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5333 if test -n "$ac_ct_OBJDUMP"; then
5334   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5335 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5336 else
5337   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 printf "%s\n" "no" >&6; }
5339 fi
5340
5341   if test "x$ac_ct_OBJDUMP" = x; then
5342     OBJDUMP="false"
5343   else
5344     case $cross_compiling:$ac_tool_warned in
5345 yes:)
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5347 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5348 ac_tool_warned=yes ;;
5349 esac
5350     OBJDUMP=$ac_ct_OBJDUMP
5351   fi
5352 else
5353   OBJDUMP="$ac_cv_prog_OBJDUMP"
5354 fi
5355
5356 test -z "$OBJDUMP" && OBJDUMP=objdump
5357
5358
5359
5360
5361
5362
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5364 printf %s "checking how to recognize dependent libraries... " >&6; }
5365 if test ${lt_cv_deplibs_check_method+y}
5366 then :
5367   printf %s "(cached) " >&6
5368 else $as_nop
5369   lt_cv_file_magic_cmd='$MAGIC_CMD'
5370 lt_cv_file_magic_test_file=
5371 lt_cv_deplibs_check_method='unknown'
5372 # Need to set the preceding variable on all platforms that support
5373 # interlibrary dependencies.
5374 # 'none' -- dependencies not supported.
5375 # 'unknown' -- same as none, but documents that we really don't know.
5376 # 'pass_all' -- all dependencies passed with no checks.
5377 # 'test_compile' -- check by making test program.
5378 # 'file_magic [[regex]]' -- check by looking for files in library path
5379 # that responds to the $file_magic_cmd with a given extended regex.
5380 # If you have 'file' or equivalent on your system and you're not sure
5381 # whether 'pass_all' will *always* work, you probably want this one.
5382
5383 case $host_os in
5384 aix[4-9]*)
5385   lt_cv_deplibs_check_method=pass_all
5386   ;;
5387
5388 beos*)
5389   lt_cv_deplibs_check_method=pass_all
5390   ;;
5391
5392 bsdi[45]*)
5393   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5394   lt_cv_file_magic_cmd='$FILECMD -L'
5395   lt_cv_file_magic_test_file=/shlib/libc.so
5396   ;;
5397
5398 cygwin*)
5399   # func_win32_libid is a shell function defined in ltmain.sh
5400   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5401   lt_cv_file_magic_cmd='func_win32_libid'
5402   ;;
5403
5404 mingw* | pw32*)
5405   # Base MSYS/MinGW do not provide the 'file' command needed by
5406   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5407   # unless we find 'file', for example because we are cross-compiling.
5408   if ( file / ) >/dev/null 2>&1; then
5409     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5410     lt_cv_file_magic_cmd='func_win32_libid'
5411   else
5412     # Keep this pattern in sync with the one in func_win32_libid.
5413     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5414     lt_cv_file_magic_cmd='$OBJDUMP -f'
5415   fi
5416   ;;
5417
5418 cegcc*)
5419   # use the weaker test based on 'objdump'. See mingw*.
5420   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5421   lt_cv_file_magic_cmd='$OBJDUMP -f'
5422   ;;
5423
5424 darwin* | rhapsody*)
5425   lt_cv_deplibs_check_method=pass_all
5426   ;;
5427
5428 freebsd* | dragonfly* | midnightbsd*)
5429   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5430     case $host_cpu in
5431     i*86 )
5432       # Not sure whether the presence of OpenBSD here was a mistake.
5433       # Let's accept both of them until this is cleared up.
5434       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5435       lt_cv_file_magic_cmd=$FILECMD
5436       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5437       ;;
5438     esac
5439   else
5440     lt_cv_deplibs_check_method=pass_all
5441   fi
5442   ;;
5443
5444 haiku*)
5445   lt_cv_deplibs_check_method=pass_all
5446   ;;
5447
5448 hpux10.20* | hpux11*)
5449   lt_cv_file_magic_cmd=$FILECMD
5450   case $host_cpu in
5451   ia64*)
5452     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5453     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5454     ;;
5455   hppa*64*)
5456     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]'
5457     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5458     ;;
5459   *)
5460     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5461     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5462     ;;
5463   esac
5464   ;;
5465
5466 interix[3-9]*)
5467   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5468   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5469   ;;
5470
5471 irix5* | irix6* | nonstopux*)
5472   case $LD in
5473   *-32|*"-32 ") libmagic=32-bit;;
5474   *-n32|*"-n32 ") libmagic=N32;;
5475   *-64|*"-64 ") libmagic=64-bit;;
5476   *) libmagic=never-match;;
5477   esac
5478   lt_cv_deplibs_check_method=pass_all
5479   ;;
5480
5481 # This must be glibc/ELF.
5482 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5483   lt_cv_deplibs_check_method=pass_all
5484   ;;
5485
5486 netbsd*)
5487   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5488     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5489   else
5490     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5491   fi
5492   ;;
5493
5494 newos6*)
5495   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5496   lt_cv_file_magic_cmd=$FILECMD
5497   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5498   ;;
5499
5500 *nto* | *qnx*)
5501   lt_cv_deplibs_check_method=pass_all
5502   ;;
5503
5504 openbsd* | bitrig*)
5505   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5506     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5507   else
5508     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5509   fi
5510   ;;
5511
5512 osf3* | osf4* | osf5*)
5513   lt_cv_deplibs_check_method=pass_all
5514   ;;
5515
5516 rdos*)
5517   lt_cv_deplibs_check_method=pass_all
5518   ;;
5519
5520 solaris*)
5521   lt_cv_deplibs_check_method=pass_all
5522   ;;
5523
5524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5525   lt_cv_deplibs_check_method=pass_all
5526   ;;
5527
5528 sysv4 | sysv4.3*)
5529   case $host_vendor in
5530   motorola)
5531     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]'
5532     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5533     ;;
5534   ncr)
5535     lt_cv_deplibs_check_method=pass_all
5536     ;;
5537   sequent)
5538     lt_cv_file_magic_cmd='/bin/file'
5539     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5540     ;;
5541   sni)
5542     lt_cv_file_magic_cmd='/bin/file'
5543     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5544     lt_cv_file_magic_test_file=/lib/libc.so
5545     ;;
5546   siemens)
5547     lt_cv_deplibs_check_method=pass_all
5548     ;;
5549   pc)
5550     lt_cv_deplibs_check_method=pass_all
5551     ;;
5552   esac
5553   ;;
5554
5555 tpf*)
5556   lt_cv_deplibs_check_method=pass_all
5557   ;;
5558 os2*)
5559   lt_cv_deplibs_check_method=pass_all
5560   ;;
5561 esac
5562
5563 fi
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5565 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5566
5567 file_magic_glob=
5568 want_nocaseglob=no
5569 if test "$build" = "$host"; then
5570   case $host_os in
5571   mingw* | pw32*)
5572     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5573       want_nocaseglob=yes
5574     else
5575       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5576     fi
5577     ;;
5578   esac
5579 fi
5580
5581 file_magic_cmd=$lt_cv_file_magic_cmd
5582 deplibs_check_method=$lt_cv_deplibs_check_method
5583 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606 if test -n "$ac_tool_prefix"; then
5607   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5608 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 printf %s "checking for $ac_word... " >&6; }
5611 if test ${ac_cv_prog_DLLTOOL+y}
5612 then :
5613   printf %s "(cached) " >&6
5614 else $as_nop
5615   if test -n "$DLLTOOL"; then
5616   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5617 else
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5620 do
5621   IFS=$as_save_IFS
5622   case $as_dir in #(((
5623     '') as_dir=./ ;;
5624     */) ;;
5625     *) as_dir=$as_dir/ ;;
5626   esac
5627     for ac_exec_ext in '' $ac_executable_extensions; do
5628   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5629     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5630     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5631     break 2
5632   fi
5633 done
5634   done
5635 IFS=$as_save_IFS
5636
5637 fi
5638 fi
5639 DLLTOOL=$ac_cv_prog_DLLTOOL
5640 if test -n "$DLLTOOL"; then
5641   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5642 printf "%s\n" "$DLLTOOL" >&6; }
5643 else
5644   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 printf "%s\n" "no" >&6; }
5646 fi
5647
5648
5649 fi
5650 if test -z "$ac_cv_prog_DLLTOOL"; then
5651   ac_ct_DLLTOOL=$DLLTOOL
5652   # Extract the first word of "dlltool", so it can be a program name with args.
5653 set dummy dlltool; ac_word=$2
5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 printf %s "checking for $ac_word... " >&6; }
5656 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5657 then :
5658   printf %s "(cached) " >&6
5659 else $as_nop
5660   if test -n "$ac_ct_DLLTOOL"; then
5661   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5665 do
5666   IFS=$as_save_IFS
5667   case $as_dir in #(((
5668     '') as_dir=./ ;;
5669     */) ;;
5670     *) as_dir=$as_dir/ ;;
5671   esac
5672     for ac_exec_ext in '' $ac_executable_extensions; do
5673   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5674     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5675     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5676     break 2
5677   fi
5678 done
5679   done
5680 IFS=$as_save_IFS
5681
5682 fi
5683 fi
5684 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5685 if test -n "$ac_ct_DLLTOOL"; then
5686   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5687 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5688 else
5689   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 printf "%s\n" "no" >&6; }
5691 fi
5692
5693   if test "x$ac_ct_DLLTOOL" = x; then
5694     DLLTOOL="false"
5695   else
5696     case $cross_compiling:$ac_tool_warned in
5697 yes:)
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5699 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5700 ac_tool_warned=yes ;;
5701 esac
5702     DLLTOOL=$ac_ct_DLLTOOL
5703   fi
5704 else
5705   DLLTOOL="$ac_cv_prog_DLLTOOL"
5706 fi
5707
5708 test -z "$DLLTOOL" && DLLTOOL=dlltool
5709
5710
5711
5712
5713
5714
5715
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5717 printf %s "checking how to associate runtime and link libraries... " >&6; }
5718 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5719 then :
5720   printf %s "(cached) " >&6
5721 else $as_nop
5722   lt_cv_sharedlib_from_linklib_cmd='unknown'
5723
5724 case $host_os in
5725 cygwin* | mingw* | pw32* | cegcc*)
5726   # two different shell functions defined in ltmain.sh;
5727   # decide which one to use based on capabilities of $DLLTOOL
5728   case `$DLLTOOL --help 2>&1` in
5729   *--identify-strict*)
5730     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5731     ;;
5732   *)
5733     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5734     ;;
5735   esac
5736   ;;
5737 *)
5738   # fallback: assume linklib IS sharedlib
5739   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5740   ;;
5741 esac
5742
5743 fi
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5745 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5746 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5747 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5748
5749
5750
5751
5752
5753
5754
5755
5756 if test -n "$ac_tool_prefix"; then
5757   for ac_prog in ar
5758   do
5759     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5760 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 printf %s "checking for $ac_word... " >&6; }
5763 if test ${ac_cv_prog_AR+y}
5764 then :
5765   printf %s "(cached) " >&6
5766 else $as_nop
5767   if test -n "$AR"; then
5768   ac_cv_prog_AR="$AR" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773   IFS=$as_save_IFS
5774   case $as_dir in #(((
5775     '') as_dir=./ ;;
5776     */) ;;
5777     *) as_dir=$as_dir/ ;;
5778   esac
5779     for ac_exec_ext in '' $ac_executable_extensions; do
5780   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5781     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5782     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5783     break 2
5784   fi
5785 done
5786   done
5787 IFS=$as_save_IFS
5788
5789 fi
5790 fi
5791 AR=$ac_cv_prog_AR
5792 if test -n "$AR"; then
5793   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5794 printf "%s\n" "$AR" >&6; }
5795 else
5796   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 printf "%s\n" "no" >&6; }
5798 fi
5799
5800
5801     test -n "$AR" && break
5802   done
5803 fi
5804 if test -z "$AR"; then
5805   ac_ct_AR=$AR
5806   for ac_prog in ar
5807 do
5808   # Extract the first word of "$ac_prog", so it can be a program name with args.
5809 set dummy $ac_prog; ac_word=$2
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 printf %s "checking for $ac_word... " >&6; }
5812 if test ${ac_cv_prog_ac_ct_AR+y}
5813 then :
5814   printf %s "(cached) " >&6
5815 else $as_nop
5816   if test -n "$ac_ct_AR"; then
5817   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822   IFS=$as_save_IFS
5823   case $as_dir in #(((
5824     '') as_dir=./ ;;
5825     */) ;;
5826     *) as_dir=$as_dir/ ;;
5827   esac
5828     for ac_exec_ext in '' $ac_executable_extensions; do
5829   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5830     ac_cv_prog_ac_ct_AR="$ac_prog"
5831     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5832     break 2
5833   fi
5834 done
5835   done
5836 IFS=$as_save_IFS
5837
5838 fi
5839 fi
5840 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5841 if test -n "$ac_ct_AR"; then
5842   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5843 printf "%s\n" "$ac_ct_AR" >&6; }
5844 else
5845   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 printf "%s\n" "no" >&6; }
5847 fi
5848
5849
5850   test -n "$ac_ct_AR" && break
5851 done
5852
5853   if test "x$ac_ct_AR" = x; then
5854     AR="false"
5855   else
5856     case $cross_compiling:$ac_tool_warned in
5857 yes:)
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5859 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5860 ac_tool_warned=yes ;;
5861 esac
5862     AR=$ac_ct_AR
5863   fi
5864 fi
5865
5866 : ${AR=ar}
5867
5868
5869
5870
5871
5872
5873 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
5874 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
5875 # higher priority because thats what people were doing historically (setting
5876 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
5877 # variable obsoleted/removed.
5878
5879 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
5880 lt_ar_flags=$AR_FLAGS
5881
5882
5883
5884
5885
5886
5887 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
5888 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
5889
5890
5891
5892
5893
5894
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5896 printf %s "checking for archiver @FILE support... " >&6; }
5897 if test ${lt_cv_ar_at_file+y}
5898 then :
5899   printf %s "(cached) " >&6
5900 else $as_nop
5901   lt_cv_ar_at_file=no
5902    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h.  */
5904
5905 int
5906 main (void)
5907 {
5908
5909   ;
5910   return 0;
5911 }
5912 _ACEOF
5913 if ac_fn_c_try_compile "$LINENO"
5914 then :
5915   echo conftest.$ac_objext > conftest.lst
5916       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5917       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5918   (eval $lt_ar_try) 2>&5
5919   ac_status=$?
5920   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921   test $ac_status = 0; }
5922       if test 0 -eq "$ac_status"; then
5923         # Ensure the archiver fails upon bogus file names.
5924         rm -f conftest.$ac_objext libconftest.a
5925         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5926   (eval $lt_ar_try) 2>&5
5927   ac_status=$?
5928   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5929   test $ac_status = 0; }
5930         if test 0 -ne "$ac_status"; then
5931           lt_cv_ar_at_file=@
5932         fi
5933       fi
5934       rm -f conftest.* libconftest.a
5935
5936 fi
5937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5938
5939 fi
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5941 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
5942
5943 if test no = "$lt_cv_ar_at_file"; then
5944   archiver_list_spec=
5945 else
5946   archiver_list_spec=$lt_cv_ar_at_file
5947 fi
5948
5949
5950
5951
5952
5953
5954
5955 if test -n "$ac_tool_prefix"; then
5956   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5957 set dummy ${ac_tool_prefix}strip; ac_word=$2
5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 printf %s "checking for $ac_word... " >&6; }
5960 if test ${ac_cv_prog_STRIP+y}
5961 then :
5962   printf %s "(cached) " >&6
5963 else $as_nop
5964   if test -n "$STRIP"; then
5965   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5966 else
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5969 do
5970   IFS=$as_save_IFS
5971   case $as_dir in #(((
5972     '') as_dir=./ ;;
5973     */) ;;
5974     *) as_dir=$as_dir/ ;;
5975   esac
5976     for ac_exec_ext in '' $ac_executable_extensions; do
5977   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5978     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5979     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5980     break 2
5981   fi
5982 done
5983   done
5984 IFS=$as_save_IFS
5985
5986 fi
5987 fi
5988 STRIP=$ac_cv_prog_STRIP
5989 if test -n "$STRIP"; then
5990   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5991 printf "%s\n" "$STRIP" >&6; }
5992 else
5993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 printf "%s\n" "no" >&6; }
5995 fi
5996
5997
5998 fi
5999 if test -z "$ac_cv_prog_STRIP"; then
6000   ac_ct_STRIP=$STRIP
6001   # Extract the first word of "strip", so it can be a program name with args.
6002 set dummy strip; ac_word=$2
6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6004 printf %s "checking for $ac_word... " >&6; }
6005 if test ${ac_cv_prog_ac_ct_STRIP+y}
6006 then :
6007   printf %s "(cached) " >&6
6008 else $as_nop
6009   if test -n "$ac_ct_STRIP"; then
6010   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6011 else
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6014 do
6015   IFS=$as_save_IFS
6016   case $as_dir in #(((
6017     '') as_dir=./ ;;
6018     */) ;;
6019     *) as_dir=$as_dir/ ;;
6020   esac
6021     for ac_exec_ext in '' $ac_executable_extensions; do
6022   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6023     ac_cv_prog_ac_ct_STRIP="strip"
6024     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6025     break 2
6026   fi
6027 done
6028   done
6029 IFS=$as_save_IFS
6030
6031 fi
6032 fi
6033 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6034 if test -n "$ac_ct_STRIP"; then
6035   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6036 printf "%s\n" "$ac_ct_STRIP" >&6; }
6037 else
6038   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 printf "%s\n" "no" >&6; }
6040 fi
6041
6042   if test "x$ac_ct_STRIP" = x; then
6043     STRIP=":"
6044   else
6045     case $cross_compiling:$ac_tool_warned in
6046 yes:)
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6048 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6049 ac_tool_warned=yes ;;
6050 esac
6051     STRIP=$ac_ct_STRIP
6052   fi
6053 else
6054   STRIP="$ac_cv_prog_STRIP"
6055 fi
6056
6057 test -z "$STRIP" && STRIP=:
6058
6059
6060
6061
6062
6063
6064 if test -n "$ac_tool_prefix"; then
6065   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6066 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 printf %s "checking for $ac_word... " >&6; }
6069 if test ${ac_cv_prog_RANLIB+y}
6070 then :
6071   printf %s "(cached) " >&6
6072 else $as_nop
6073   if test -n "$RANLIB"; then
6074   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079   IFS=$as_save_IFS
6080   case $as_dir in #(((
6081     '') as_dir=./ ;;
6082     */) ;;
6083     *) as_dir=$as_dir/ ;;
6084   esac
6085     for ac_exec_ext in '' $ac_executable_extensions; do
6086   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6087     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6088     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6089     break 2
6090   fi
6091 done
6092   done
6093 IFS=$as_save_IFS
6094
6095 fi
6096 fi
6097 RANLIB=$ac_cv_prog_RANLIB
6098 if test -n "$RANLIB"; then
6099   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6100 printf "%s\n" "$RANLIB" >&6; }
6101 else
6102   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 printf "%s\n" "no" >&6; }
6104 fi
6105
6106
6107 fi
6108 if test -z "$ac_cv_prog_RANLIB"; then
6109   ac_ct_RANLIB=$RANLIB
6110   # Extract the first word of "ranlib", so it can be a program name with args.
6111 set dummy ranlib; ac_word=$2
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 printf %s "checking for $ac_word... " >&6; }
6114 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6115 then :
6116   printf %s "(cached) " >&6
6117 else $as_nop
6118   if test -n "$ac_ct_RANLIB"; then
6119   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124   IFS=$as_save_IFS
6125   case $as_dir in #(((
6126     '') as_dir=./ ;;
6127     */) ;;
6128     *) as_dir=$as_dir/ ;;
6129   esac
6130     for ac_exec_ext in '' $ac_executable_extensions; do
6131   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6132     ac_cv_prog_ac_ct_RANLIB="ranlib"
6133     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6134     break 2
6135   fi
6136 done
6137   done
6138 IFS=$as_save_IFS
6139
6140 fi
6141 fi
6142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6143 if test -n "$ac_ct_RANLIB"; then
6144   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6145 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6146 else
6147   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 printf "%s\n" "no" >&6; }
6149 fi
6150
6151   if test "x$ac_ct_RANLIB" = x; then
6152     RANLIB=":"
6153   else
6154     case $cross_compiling:$ac_tool_warned in
6155 yes:)
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6157 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6158 ac_tool_warned=yes ;;
6159 esac
6160     RANLIB=$ac_ct_RANLIB
6161   fi
6162 else
6163   RANLIB="$ac_cv_prog_RANLIB"
6164 fi
6165
6166 test -z "$RANLIB" && RANLIB=:
6167
6168
6169
6170
6171
6172
6173 # Determine commands to create old-style static archives.
6174 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6175 old_postinstall_cmds='chmod 644 $oldlib'
6176 old_postuninstall_cmds=
6177
6178 if test -n "$RANLIB"; then
6179   case $host_os in
6180   bitrig* | openbsd*)
6181     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6182     ;;
6183   *)
6184     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6185     ;;
6186   esac
6187   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6188 fi
6189
6190 case $host_os in
6191   darwin*)
6192     lock_old_archive_extraction=yes ;;
6193   *)
6194     lock_old_archive_extraction=no ;;
6195 esac
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217 for ac_prog in gawk mawk nawk awk
6218 do
6219   # Extract the first word of "$ac_prog", so it can be a program name with args.
6220 set dummy $ac_prog; ac_word=$2
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 printf %s "checking for $ac_word... " >&6; }
6223 if test ${ac_cv_prog_AWK+y}
6224 then :
6225   printf %s "(cached) " >&6
6226 else $as_nop
6227   if test -n "$AWK"; then
6228   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233   IFS=$as_save_IFS
6234   case $as_dir in #(((
6235     '') as_dir=./ ;;
6236     */) ;;
6237     *) as_dir=$as_dir/ ;;
6238   esac
6239     for ac_exec_ext in '' $ac_executable_extensions; do
6240   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6241     ac_cv_prog_AWK="$ac_prog"
6242     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6243     break 2
6244   fi
6245 done
6246   done
6247 IFS=$as_save_IFS
6248
6249 fi
6250 fi
6251 AWK=$ac_cv_prog_AWK
6252 if test -n "$AWK"; then
6253   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6254 printf "%s\n" "$AWK" >&6; }
6255 else
6256   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 printf "%s\n" "no" >&6; }
6258 fi
6259
6260
6261   test -n "$AWK" && break
6262 done
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282 # If no C compiler was specified, use CC.
6283 LTCC=${LTCC-"$CC"}
6284
6285 # If no C compiler flags were specified, use CFLAGS.
6286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6287
6288 # Allow CC to be a program name with arguments.
6289 compiler=$CC
6290
6291
6292 # Check for command to grab the raw symbol name followed by C symbol from nm.
6293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6294 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6295 if test ${lt_cv_sys_global_symbol_pipe+y}
6296 then :
6297   printf %s "(cached) " >&6
6298 else $as_nop
6299
6300 # These are sane defaults that work on at least a few old systems.
6301 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6302
6303 # Character class describing NM global symbol codes.
6304 symcode='[BCDEGRST]'
6305
6306 # Regexp to match symbols that can be accessed directly from C.
6307 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6308
6309 # Define system-specific variables.
6310 case $host_os in
6311 aix*)
6312   symcode='[BCDT]'
6313   ;;
6314 cygwin* | mingw* | pw32* | cegcc*)
6315   symcode='[ABCDGISTW]'
6316   ;;
6317 hpux*)
6318   if test ia64 = "$host_cpu"; then
6319     symcode='[ABCDEGRST]'
6320   fi
6321   ;;
6322 irix* | nonstopux*)
6323   symcode='[BCDEGRST]'
6324   ;;
6325 osf*)
6326   symcode='[BCDEGQRST]'
6327   ;;
6328 solaris*)
6329   symcode='[BDRT]'
6330   ;;
6331 sco3.2v5*)
6332   symcode='[DT]'
6333   ;;
6334 sysv4.2uw2*)
6335   symcode='[DT]'
6336   ;;
6337 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6338   symcode='[ABDT]'
6339   ;;
6340 sysv4)
6341   symcode='[DFNSTU]'
6342   ;;
6343 esac
6344
6345 # If we're using GNU nm, then use its standard symbol codes.
6346 case `$NM -V 2>&1` in
6347 *GNU* | *'with BFD'*)
6348   symcode='[ABCDGIRSTW]' ;;
6349 esac
6350
6351 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6352   # Gets list of data symbols to import.
6353   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6354   # Adjust the below global symbol transforms to fixup imported variables.
6355   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6356   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6357   lt_c_name_lib_hook="\
6358   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6359   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6360 else
6361   # Disable hooks by default.
6362   lt_cv_sys_global_symbol_to_import=
6363   lt_cdecl_hook=
6364   lt_c_name_hook=
6365   lt_c_name_lib_hook=
6366 fi
6367
6368 # Transform an extracted symbol line into a proper C declaration.
6369 # Some systems (esp. on ia64) link data and code symbols differently,
6370 # so use this general approach.
6371 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6372 $lt_cdecl_hook\
6373 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6374 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6375
6376 # Transform an extracted symbol line into symbol name and symbol address
6377 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6378 $lt_c_name_hook\
6379 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6380 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6381
6382 # Transform an extracted symbol line into symbol name with lib prefix and
6383 # symbol address.
6384 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6385 $lt_c_name_lib_hook\
6386 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6387 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6388 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6389
6390 # Handle CRLF in mingw tool chain
6391 opt_cr=
6392 case $build_os in
6393 mingw*)
6394   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6395   ;;
6396 esac
6397
6398 # Try without a prefix underscore, then with it.
6399 for ac_symprfx in "" "_"; do
6400
6401   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6402   symxfrm="\\1 $ac_symprfx\\2 \\2"
6403
6404   # Write the raw and C identifiers.
6405   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6406     # Fake it for dumpbin and say T for any non-static function,
6407     # D for any global variable and I for any imported variable.
6408     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6409     # which start with @ or ?.
6410     lt_cv_sys_global_symbol_pipe="$AWK '"\
6411 "     {last_section=section; section=\$ 3};"\
6412 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6413 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6414 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6415 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6416 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6417 "     \$ 0!~/External *\|/{next};"\
6418 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6419 "     {if(hide[section]) next};"\
6420 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6421 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6422 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6423 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6424 "     ' prfx=^$ac_symprfx"
6425   else
6426     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[     ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6427   fi
6428   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6429
6430   # Check to see that the pipe works correctly.
6431   pipe_works=no
6432
6433   rm -f conftest*
6434   cat > conftest.$ac_ext <<_LT_EOF
6435 #ifdef __cplusplus
6436 extern "C" {
6437 #endif
6438 char nm_test_var;
6439 void nm_test_func(void);
6440 void nm_test_func(void){}
6441 #ifdef __cplusplus
6442 }
6443 #endif
6444 int main(){nm_test_var='a';nm_test_func();return(0);}
6445 _LT_EOF
6446
6447   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6448   (eval $ac_compile) 2>&5
6449   ac_status=$?
6450   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6451   test $ac_status = 0; }; then
6452     # Now try to grab the symbols.
6453     nlist=conftest.nm
6454     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6455   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6456   ac_status=$?
6457   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6458   test $ac_status = 0; } && test -s "$nlist"; then
6459       # Try sorting and uniquifying the output.
6460       if sort "$nlist" | uniq > "$nlist"T; then
6461         mv -f "$nlist"T "$nlist"
6462       else
6463         rm -f "$nlist"T
6464       fi
6465
6466       # Make sure that we snagged all the symbols we need.
6467       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6468         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6469           cat <<_LT_EOF > conftest.$ac_ext
6470 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6471 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6472 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6473    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6474 # define LT_DLSYM_CONST
6475 #elif defined __osf__
6476 /* This system does not cope well with relocations in const data.  */
6477 # define LT_DLSYM_CONST
6478 #else
6479 # define LT_DLSYM_CONST const
6480 #endif
6481
6482 #ifdef __cplusplus
6483 extern "C" {
6484 #endif
6485
6486 _LT_EOF
6487           # Now generate the symbol file.
6488           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6489
6490           cat <<_LT_EOF >> conftest.$ac_ext
6491
6492 /* The mapping between symbol names and symbols.  */
6493 LT_DLSYM_CONST struct {
6494   const char *name;
6495   void       *address;
6496 }
6497 lt__PROGRAM__LTX_preloaded_symbols[] =
6498 {
6499   { "@PROGRAM@", (void *) 0 },
6500 _LT_EOF
6501           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6502           cat <<\_LT_EOF >> conftest.$ac_ext
6503   {0, (void *) 0}
6504 };
6505
6506 /* This works around a problem in FreeBSD linker */
6507 #ifdef FREEBSD_WORKAROUND
6508 static const void *lt_preloaded_setup() {
6509   return lt__PROGRAM__LTX_preloaded_symbols;
6510 }
6511 #endif
6512
6513 #ifdef __cplusplus
6514 }
6515 #endif
6516 _LT_EOF
6517           # Now try linking the two files.
6518           mv conftest.$ac_objext conftstm.$ac_objext
6519           lt_globsym_save_LIBS=$LIBS
6520           lt_globsym_save_CFLAGS=$CFLAGS
6521           LIBS=conftstm.$ac_objext
6522           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6523           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6524   (eval $ac_link) 2>&5
6525   ac_status=$?
6526   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6528             pipe_works=yes
6529           fi
6530           LIBS=$lt_globsym_save_LIBS
6531           CFLAGS=$lt_globsym_save_CFLAGS
6532         else
6533           echo "cannot find nm_test_func in $nlist" >&5
6534         fi
6535       else
6536         echo "cannot find nm_test_var in $nlist" >&5
6537       fi
6538     else
6539       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6540     fi
6541   else
6542     echo "$progname: failed program was:" >&5
6543     cat conftest.$ac_ext >&5
6544   fi
6545   rm -rf conftest* conftst*
6546
6547   # Do not use the global_symbol_pipe unless it works.
6548   if test yes = "$pipe_works"; then
6549     break
6550   else
6551     lt_cv_sys_global_symbol_pipe=
6552   fi
6553 done
6554
6555 fi
6556
6557 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6558   lt_cv_sys_global_symbol_to_cdecl=
6559 fi
6560 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6561   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6562 printf "%s\n" "failed" >&6; }
6563 else
6564   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6565 printf "%s\n" "ok" >&6; }
6566 fi
6567
6568 # Response file support.
6569 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6570   nm_file_list_spec='@'
6571 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6572   nm_file_list_spec='@'
6573 fi
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6612 printf %s "checking for sysroot... " >&6; }
6613
6614 # Check whether --with-sysroot was given.
6615 if test ${with_sysroot+y}
6616 then :
6617   withval=$with_sysroot;
6618 else $as_nop
6619   with_sysroot=no
6620 fi
6621
6622
6623 lt_sysroot=
6624 case $with_sysroot in #(
6625  yes)
6626    if test yes = "$GCC"; then
6627      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6628    fi
6629    ;; #(
6630  /*)
6631    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
6632    ;; #(
6633  no|'')
6634    ;; #(
6635  *)
6636    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6637 printf "%s\n" "$with_sysroot" >&6; }
6638    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6639    ;;
6640 esac
6641
6642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6643 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6644
6645
6646
6647
6648
6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6650 printf %s "checking for a working dd... " >&6; }
6651 if test ${ac_cv_path_lt_DD+y}
6652 then :
6653   printf %s "(cached) " >&6
6654 else $as_nop
6655   printf 0123456789abcdef0123456789abcdef >conftest.i
6656 cat conftest.i conftest.i >conftest2.i
6657 : ${lt_DD:=$DD}
6658 if test -z "$lt_DD"; then
6659   ac_path_lt_DD_found=false
6660   # Loop through the user's path and test for each of PROGNAME-LIST
6661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664   IFS=$as_save_IFS
6665   case $as_dir in #(((
6666     '') as_dir=./ ;;
6667     */) ;;
6668     *) as_dir=$as_dir/ ;;
6669   esac
6670     for ac_prog in dd
6671    do
6672     for ac_exec_ext in '' $ac_executable_extensions; do
6673       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6674       as_fn_executable_p "$ac_path_lt_DD" || continue
6675 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6676   cmp -s conftest.i conftest.out \
6677   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6678 fi
6679       $ac_path_lt_DD_found && break 3
6680     done
6681   done
6682   done
6683 IFS=$as_save_IFS
6684   if test -z "$ac_cv_path_lt_DD"; then
6685     :
6686   fi
6687 else
6688   ac_cv_path_lt_DD=$lt_DD
6689 fi
6690
6691 rm -f conftest.i conftest2.i conftest.out
6692 fi
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6694 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6695
6696
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6698 printf %s "checking how to truncate binary pipes... " >&6; }
6699 if test ${lt_cv_truncate_bin+y}
6700 then :
6701   printf %s "(cached) " >&6
6702 else $as_nop
6703   printf 0123456789abcdef0123456789abcdef >conftest.i
6704 cat conftest.i conftest.i >conftest2.i
6705 lt_cv_truncate_bin=
6706 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6707   cmp -s conftest.i conftest.out \
6708   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6709 fi
6710 rm -f conftest.i conftest2.i conftest.out
6711 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6712 fi
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6714 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6715
6716
6717
6718
6719
6720
6721
6722 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6723 func_cc_basename ()
6724 {
6725     for cc_temp in $*""; do
6726       case $cc_temp in
6727         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6728         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6729         \-*) ;;
6730         *) break;;
6731       esac
6732     done
6733     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6734 }
6735
6736 # Check whether --enable-libtool-lock was given.
6737 if test ${enable_libtool_lock+y}
6738 then :
6739   enableval=$enable_libtool_lock;
6740 fi
6741
6742 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6743
6744 # Some flags need to be propagated to the compiler or linker for good
6745 # libtool support.
6746 case $host in
6747 ia64-*-hpux*)
6748   # Find out what ABI is being produced by ac_compile, and set mode
6749   # options accordingly.
6750   echo 'int i;' > conftest.$ac_ext
6751   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6752   (eval $ac_compile) 2>&5
6753   ac_status=$?
6754   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6755   test $ac_status = 0; }; then
6756     case `$FILECMD conftest.$ac_objext` in
6757       *ELF-32*)
6758         HPUX_IA64_MODE=32
6759         ;;
6760       *ELF-64*)
6761         HPUX_IA64_MODE=64
6762         ;;
6763     esac
6764   fi
6765   rm -rf conftest*
6766   ;;
6767 *-*-irix6*)
6768   # Find out what ABI is being produced by ac_compile, and set linker
6769   # options accordingly.
6770   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6771   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6772   (eval $ac_compile) 2>&5
6773   ac_status=$?
6774   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6775   test $ac_status = 0; }; then
6776     if test yes = "$lt_cv_prog_gnu_ld"; then
6777       case `$FILECMD conftest.$ac_objext` in
6778         *32-bit*)
6779           LD="${LD-ld} -melf32bsmip"
6780           ;;
6781         *N32*)
6782           LD="${LD-ld} -melf32bmipn32"
6783           ;;
6784         *64-bit*)
6785           LD="${LD-ld} -melf64bmip"
6786         ;;
6787       esac
6788     else
6789       case `$FILECMD conftest.$ac_objext` in
6790         *32-bit*)
6791           LD="${LD-ld} -32"
6792           ;;
6793         *N32*)
6794           LD="${LD-ld} -n32"
6795           ;;
6796         *64-bit*)
6797           LD="${LD-ld} -64"
6798           ;;
6799       esac
6800     fi
6801   fi
6802   rm -rf conftest*
6803   ;;
6804
6805 mips64*-*linux*)
6806   # Find out what ABI is being produced by ac_compile, and set linker
6807   # options accordingly.
6808   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6809   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6810   (eval $ac_compile) 2>&5
6811   ac_status=$?
6812   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6813   test $ac_status = 0; }; then
6814     emul=elf
6815     case `$FILECMD conftest.$ac_objext` in
6816       *32-bit*)
6817         emul="${emul}32"
6818         ;;
6819       *64-bit*)
6820         emul="${emul}64"
6821         ;;
6822     esac
6823     case `$FILECMD conftest.$ac_objext` in
6824       *MSB*)
6825         emul="${emul}btsmip"
6826         ;;
6827       *LSB*)
6828         emul="${emul}ltsmip"
6829         ;;
6830     esac
6831     case `$FILECMD conftest.$ac_objext` in
6832       *N32*)
6833         emul="${emul}n32"
6834         ;;
6835     esac
6836     LD="${LD-ld} -m $emul"
6837   fi
6838   rm -rf conftest*
6839   ;;
6840
6841 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6842 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6843   # Find out what ABI is being produced by ac_compile, and set linker
6844   # options accordingly.  Note that the listed cases only cover the
6845   # situations where additional linker options are needed (such as when
6846   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6847   # vice versa); the common cases where no linker options are needed do
6848   # not appear in the list.
6849   echo 'int i;' > conftest.$ac_ext
6850   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6851   (eval $ac_compile) 2>&5
6852   ac_status=$?
6853   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854   test $ac_status = 0; }; then
6855     case `$FILECMD conftest.o` in
6856       *32-bit*)
6857         case $host in
6858           x86_64-*kfreebsd*-gnu)
6859             LD="${LD-ld} -m elf_i386_fbsd"
6860             ;;
6861           x86_64-*linux*)
6862             case `$FILECMD conftest.o` in
6863               *x86-64*)
6864                 LD="${LD-ld} -m elf32_x86_64"
6865                 ;;
6866               *)
6867                 LD="${LD-ld} -m elf_i386"
6868                 ;;
6869             esac
6870             ;;
6871           powerpc64le-*linux*)
6872             LD="${LD-ld} -m elf32lppclinux"
6873             ;;
6874           powerpc64-*linux*)
6875             LD="${LD-ld} -m elf32ppclinux"
6876             ;;
6877           s390x-*linux*)
6878             LD="${LD-ld} -m elf_s390"
6879             ;;
6880           sparc64-*linux*)
6881             LD="${LD-ld} -m elf32_sparc"
6882             ;;
6883         esac
6884         ;;
6885       *64-bit*)
6886         case $host in
6887           x86_64-*kfreebsd*-gnu)
6888             LD="${LD-ld} -m elf_x86_64_fbsd"
6889             ;;
6890           x86_64-*linux*)
6891             LD="${LD-ld} -m elf_x86_64"
6892             ;;
6893           powerpcle-*linux*)
6894             LD="${LD-ld} -m elf64lppc"
6895             ;;
6896           powerpc-*linux*)
6897             LD="${LD-ld} -m elf64ppc"
6898             ;;
6899           s390*-*linux*|s390*-*tpf*)
6900             LD="${LD-ld} -m elf64_s390"
6901             ;;
6902           sparc*-*linux*)
6903             LD="${LD-ld} -m elf64_sparc"
6904             ;;
6905         esac
6906         ;;
6907     esac
6908   fi
6909   rm -rf conftest*
6910   ;;
6911
6912 *-*-sco3.2v5*)
6913   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6914   SAVE_CFLAGS=$CFLAGS
6915   CFLAGS="$CFLAGS -belf"
6916   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6917 printf %s "checking whether the C compiler needs -belf... " >&6; }
6918 if test ${lt_cv_cc_needs_belf+y}
6919 then :
6920   printf %s "(cached) " >&6
6921 else $as_nop
6922   ac_ext=c
6923 ac_cpp='$CPP $CPPFLAGS'
6924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927
6928      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h.  */
6930
6931 int
6932 main (void)
6933 {
6934
6935   ;
6936   return 0;
6937 }
6938 _ACEOF
6939 if ac_fn_c_try_link "$LINENO"
6940 then :
6941   lt_cv_cc_needs_belf=yes
6942 else $as_nop
6943   lt_cv_cc_needs_belf=no
6944 fi
6945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6946     conftest$ac_exeext conftest.$ac_ext
6947      ac_ext=c
6948 ac_cpp='$CPP $CPPFLAGS'
6949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952
6953 fi
6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6955 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
6956   if test yes != "$lt_cv_cc_needs_belf"; then
6957     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6958     CFLAGS=$SAVE_CFLAGS
6959   fi
6960   ;;
6961 *-*solaris*)
6962   # Find out what ABI is being produced by ac_compile, and set linker
6963   # options accordingly.
6964   echo 'int i;' > conftest.$ac_ext
6965   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6966   (eval $ac_compile) 2>&5
6967   ac_status=$?
6968   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969   test $ac_status = 0; }; then
6970     case `$FILECMD conftest.o` in
6971     *64-bit*)
6972       case $lt_cv_prog_gnu_ld in
6973       yes*)
6974         case $host in
6975         i?86-*-solaris*|x86_64-*-solaris*)
6976           LD="${LD-ld} -m elf_x86_64"
6977           ;;
6978         sparc*-*-solaris*)
6979           LD="${LD-ld} -m elf64_sparc"
6980           ;;
6981         esac
6982         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6983         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6984           LD=${LD-ld}_sol2
6985         fi
6986         ;;
6987       *)
6988         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6989           LD="${LD-ld} -64"
6990         fi
6991         ;;
6992       esac
6993       ;;
6994     esac
6995   fi
6996   rm -rf conftest*
6997   ;;
6998 esac
6999
7000 need_locks=$enable_libtool_lock
7001
7002 if test -n "$ac_tool_prefix"; then
7003   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7004 set dummy ${ac_tool_prefix}mt; ac_word=$2
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 printf %s "checking for $ac_word... " >&6; }
7007 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7008 then :
7009   printf %s "(cached) " >&6
7010 else $as_nop
7011   if test -n "$MANIFEST_TOOL"; then
7012   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   case $as_dir in #(((
7019     '') as_dir=./ ;;
7020     */) ;;
7021     *) as_dir=$as_dir/ ;;
7022   esac
7023     for ac_exec_ext in '' $ac_executable_extensions; do
7024   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7025     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7026     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7027     break 2
7028   fi
7029 done
7030   done
7031 IFS=$as_save_IFS
7032
7033 fi
7034 fi
7035 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7036 if test -n "$MANIFEST_TOOL"; then
7037   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7038 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7039 else
7040   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 printf "%s\n" "no" >&6; }
7042 fi
7043
7044
7045 fi
7046 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7047   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7048   # Extract the first word of "mt", so it can be a program name with args.
7049 set dummy mt; ac_word=$2
7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 printf %s "checking for $ac_word... " >&6; }
7052 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7053 then :
7054   printf %s "(cached) " >&6
7055 else $as_nop
7056   if test -n "$ac_ct_MANIFEST_TOOL"; then
7057   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7058 else
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7061 do
7062   IFS=$as_save_IFS
7063   case $as_dir in #(((
7064     '') as_dir=./ ;;
7065     */) ;;
7066     *) as_dir=$as_dir/ ;;
7067   esac
7068     for ac_exec_ext in '' $ac_executable_extensions; do
7069   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7070     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7071     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7072     break 2
7073   fi
7074 done
7075   done
7076 IFS=$as_save_IFS
7077
7078 fi
7079 fi
7080 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7081 if test -n "$ac_ct_MANIFEST_TOOL"; then
7082   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7083 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7084 else
7085   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 printf "%s\n" "no" >&6; }
7087 fi
7088
7089   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7090     MANIFEST_TOOL=":"
7091   else
7092     case $cross_compiling:$ac_tool_warned in
7093 yes:)
7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7095 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7096 ac_tool_warned=yes ;;
7097 esac
7098     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7099   fi
7100 else
7101   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7102 fi
7103
7104 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7106 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7107 if test ${lt_cv_path_mainfest_tool+y}
7108 then :
7109   printf %s "(cached) " >&6
7110 else $as_nop
7111   lt_cv_path_mainfest_tool=no
7112   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7113   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7114   cat conftest.err >&5
7115   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7116     lt_cv_path_mainfest_tool=yes
7117   fi
7118   rm -f conftest*
7119 fi
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7121 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7122 if test yes != "$lt_cv_path_mainfest_tool"; then
7123   MANIFEST_TOOL=:
7124 fi
7125
7126
7127
7128
7129
7130
7131   case $host_os in
7132     rhapsody* | darwin*)
7133     if test -n "$ac_tool_prefix"; then
7134   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 printf %s "checking for $ac_word... " >&6; }
7138 if test ${ac_cv_prog_DSYMUTIL+y}
7139 then :
7140   printf %s "(cached) " >&6
7141 else $as_nop
7142   if test -n "$DSYMUTIL"; then
7143   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148   IFS=$as_save_IFS
7149   case $as_dir in #(((
7150     '') as_dir=./ ;;
7151     */) ;;
7152     *) as_dir=$as_dir/ ;;
7153   esac
7154     for ac_exec_ext in '' $ac_executable_extensions; do
7155   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7156     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7157     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7158     break 2
7159   fi
7160 done
7161   done
7162 IFS=$as_save_IFS
7163
7164 fi
7165 fi
7166 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7167 if test -n "$DSYMUTIL"; then
7168   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7169 printf "%s\n" "$DSYMUTIL" >&6; }
7170 else
7171   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 printf "%s\n" "no" >&6; }
7173 fi
7174
7175
7176 fi
7177 if test -z "$ac_cv_prog_DSYMUTIL"; then
7178   ac_ct_DSYMUTIL=$DSYMUTIL
7179   # Extract the first word of "dsymutil", so it can be a program name with args.
7180 set dummy dsymutil; ac_word=$2
7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 printf %s "checking for $ac_word... " >&6; }
7183 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7184 then :
7185   printf %s "(cached) " >&6
7186 else $as_nop
7187   if test -n "$ac_ct_DSYMUTIL"; then
7188   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193   IFS=$as_save_IFS
7194   case $as_dir in #(((
7195     '') as_dir=./ ;;
7196     */) ;;
7197     *) as_dir=$as_dir/ ;;
7198   esac
7199     for ac_exec_ext in '' $ac_executable_extensions; do
7200   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7201     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7202     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7203     break 2
7204   fi
7205 done
7206   done
7207 IFS=$as_save_IFS
7208
7209 fi
7210 fi
7211 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7212 if test -n "$ac_ct_DSYMUTIL"; then
7213   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7214 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7215 else
7216   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 printf "%s\n" "no" >&6; }
7218 fi
7219
7220   if test "x$ac_ct_DSYMUTIL" = x; then
7221     DSYMUTIL=":"
7222   else
7223     case $cross_compiling:$ac_tool_warned in
7224 yes:)
7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227 ac_tool_warned=yes ;;
7228 esac
7229     DSYMUTIL=$ac_ct_DSYMUTIL
7230   fi
7231 else
7232   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7233 fi
7234
7235     if test -n "$ac_tool_prefix"; then
7236   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7237 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 printf %s "checking for $ac_word... " >&6; }
7240 if test ${ac_cv_prog_NMEDIT+y}
7241 then :
7242   printf %s "(cached) " >&6
7243 else $as_nop
7244   if test -n "$NMEDIT"; then
7245   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250   IFS=$as_save_IFS
7251   case $as_dir in #(((
7252     '') as_dir=./ ;;
7253     */) ;;
7254     *) as_dir=$as_dir/ ;;
7255   esac
7256     for ac_exec_ext in '' $ac_executable_extensions; do
7257   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7258     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7259     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7260     break 2
7261   fi
7262 done
7263   done
7264 IFS=$as_save_IFS
7265
7266 fi
7267 fi
7268 NMEDIT=$ac_cv_prog_NMEDIT
7269 if test -n "$NMEDIT"; then
7270   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7271 printf "%s\n" "$NMEDIT" >&6; }
7272 else
7273   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 printf "%s\n" "no" >&6; }
7275 fi
7276
7277
7278 fi
7279 if test -z "$ac_cv_prog_NMEDIT"; then
7280   ac_ct_NMEDIT=$NMEDIT
7281   # Extract the first word of "nmedit", so it can be a program name with args.
7282 set dummy nmedit; ac_word=$2
7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 printf %s "checking for $ac_word... " >&6; }
7285 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7286 then :
7287   printf %s "(cached) " >&6
7288 else $as_nop
7289   if test -n "$ac_ct_NMEDIT"; then
7290   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295   IFS=$as_save_IFS
7296   case $as_dir in #(((
7297     '') as_dir=./ ;;
7298     */) ;;
7299     *) as_dir=$as_dir/ ;;
7300   esac
7301     for ac_exec_ext in '' $ac_executable_extensions; do
7302   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7303     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7304     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7305     break 2
7306   fi
7307 done
7308   done
7309 IFS=$as_save_IFS
7310
7311 fi
7312 fi
7313 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7314 if test -n "$ac_ct_NMEDIT"; then
7315   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7316 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7317 else
7318   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 printf "%s\n" "no" >&6; }
7320 fi
7321
7322   if test "x$ac_ct_NMEDIT" = x; then
7323     NMEDIT=":"
7324   else
7325     case $cross_compiling:$ac_tool_warned in
7326 yes:)
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7328 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7329 ac_tool_warned=yes ;;
7330 esac
7331     NMEDIT=$ac_ct_NMEDIT
7332   fi
7333 else
7334   NMEDIT="$ac_cv_prog_NMEDIT"
7335 fi
7336
7337     if test -n "$ac_tool_prefix"; then
7338   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7339 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 printf %s "checking for $ac_word... " >&6; }
7342 if test ${ac_cv_prog_LIPO+y}
7343 then :
7344   printf %s "(cached) " >&6
7345 else $as_nop
7346   if test -n "$LIPO"; then
7347   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352   IFS=$as_save_IFS
7353   case $as_dir in #(((
7354     '') as_dir=./ ;;
7355     */) ;;
7356     *) as_dir=$as_dir/ ;;
7357   esac
7358     for ac_exec_ext in '' $ac_executable_extensions; do
7359   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7360     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7361     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7362     break 2
7363   fi
7364 done
7365   done
7366 IFS=$as_save_IFS
7367
7368 fi
7369 fi
7370 LIPO=$ac_cv_prog_LIPO
7371 if test -n "$LIPO"; then
7372   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7373 printf "%s\n" "$LIPO" >&6; }
7374 else
7375   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 printf "%s\n" "no" >&6; }
7377 fi
7378
7379
7380 fi
7381 if test -z "$ac_cv_prog_LIPO"; then
7382   ac_ct_LIPO=$LIPO
7383   # Extract the first word of "lipo", so it can be a program name with args.
7384 set dummy lipo; ac_word=$2
7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 printf %s "checking for $ac_word... " >&6; }
7387 if test ${ac_cv_prog_ac_ct_LIPO+y}
7388 then :
7389   printf %s "(cached) " >&6
7390 else $as_nop
7391   if test -n "$ac_ct_LIPO"; then
7392   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397   IFS=$as_save_IFS
7398   case $as_dir in #(((
7399     '') as_dir=./ ;;
7400     */) ;;
7401     *) as_dir=$as_dir/ ;;
7402   esac
7403     for ac_exec_ext in '' $ac_executable_extensions; do
7404   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7405     ac_cv_prog_ac_ct_LIPO="lipo"
7406     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7407     break 2
7408   fi
7409 done
7410   done
7411 IFS=$as_save_IFS
7412
7413 fi
7414 fi
7415 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7416 if test -n "$ac_ct_LIPO"; then
7417   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7418 printf "%s\n" "$ac_ct_LIPO" >&6; }
7419 else
7420   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 printf "%s\n" "no" >&6; }
7422 fi
7423
7424   if test "x$ac_ct_LIPO" = x; then
7425     LIPO=":"
7426   else
7427     case $cross_compiling:$ac_tool_warned in
7428 yes:)
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431 ac_tool_warned=yes ;;
7432 esac
7433     LIPO=$ac_ct_LIPO
7434   fi
7435 else
7436   LIPO="$ac_cv_prog_LIPO"
7437 fi
7438
7439     if test -n "$ac_tool_prefix"; then
7440   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7441 set dummy ${ac_tool_prefix}otool; ac_word=$2
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 printf %s "checking for $ac_word... " >&6; }
7444 if test ${ac_cv_prog_OTOOL+y}
7445 then :
7446   printf %s "(cached) " >&6
7447 else $as_nop
7448   if test -n "$OTOOL"; then
7449   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   case $as_dir in #(((
7456     '') as_dir=./ ;;
7457     */) ;;
7458     *) as_dir=$as_dir/ ;;
7459   esac
7460     for ac_exec_ext in '' $ac_executable_extensions; do
7461   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7462     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7463     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7464     break 2
7465   fi
7466 done
7467   done
7468 IFS=$as_save_IFS
7469
7470 fi
7471 fi
7472 OTOOL=$ac_cv_prog_OTOOL
7473 if test -n "$OTOOL"; then
7474   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7475 printf "%s\n" "$OTOOL" >&6; }
7476 else
7477   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 printf "%s\n" "no" >&6; }
7479 fi
7480
7481
7482 fi
7483 if test -z "$ac_cv_prog_OTOOL"; then
7484   ac_ct_OTOOL=$OTOOL
7485   # Extract the first word of "otool", so it can be a program name with args.
7486 set dummy otool; ac_word=$2
7487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 printf %s "checking for $ac_word... " >&6; }
7489 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7490 then :
7491   printf %s "(cached) " >&6
7492 else $as_nop
7493   if test -n "$ac_ct_OTOOL"; then
7494   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499   IFS=$as_save_IFS
7500   case $as_dir in #(((
7501     '') as_dir=./ ;;
7502     */) ;;
7503     *) as_dir=$as_dir/ ;;
7504   esac
7505     for ac_exec_ext in '' $ac_executable_extensions; do
7506   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7507     ac_cv_prog_ac_ct_OTOOL="otool"
7508     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7509     break 2
7510   fi
7511 done
7512   done
7513 IFS=$as_save_IFS
7514
7515 fi
7516 fi
7517 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7518 if test -n "$ac_ct_OTOOL"; then
7519   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7520 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7521 else
7522   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 printf "%s\n" "no" >&6; }
7524 fi
7525
7526   if test "x$ac_ct_OTOOL" = x; then
7527     OTOOL=":"
7528   else
7529     case $cross_compiling:$ac_tool_warned in
7530 yes:)
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7533 ac_tool_warned=yes ;;
7534 esac
7535     OTOOL=$ac_ct_OTOOL
7536   fi
7537 else
7538   OTOOL="$ac_cv_prog_OTOOL"
7539 fi
7540
7541     if test -n "$ac_tool_prefix"; then
7542   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7543 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 printf %s "checking for $ac_word... " >&6; }
7546 if test ${ac_cv_prog_OTOOL64+y}
7547 then :
7548   printf %s "(cached) " >&6
7549 else $as_nop
7550   if test -n "$OTOOL64"; then
7551   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   case $as_dir in #(((
7558     '') as_dir=./ ;;
7559     */) ;;
7560     *) as_dir=$as_dir/ ;;
7561   esac
7562     for ac_exec_ext in '' $ac_executable_extensions; do
7563   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7564     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7565     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7566     break 2
7567   fi
7568 done
7569   done
7570 IFS=$as_save_IFS
7571
7572 fi
7573 fi
7574 OTOOL64=$ac_cv_prog_OTOOL64
7575 if test -n "$OTOOL64"; then
7576   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7577 printf "%s\n" "$OTOOL64" >&6; }
7578 else
7579   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 printf "%s\n" "no" >&6; }
7581 fi
7582
7583
7584 fi
7585 if test -z "$ac_cv_prog_OTOOL64"; then
7586   ac_ct_OTOOL64=$OTOOL64
7587   # Extract the first word of "otool64", so it can be a program name with args.
7588 set dummy otool64; ac_word=$2
7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 printf %s "checking for $ac_word... " >&6; }
7591 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7592 then :
7593   printf %s "(cached) " >&6
7594 else $as_nop
7595   if test -n "$ac_ct_OTOOL64"; then
7596   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   case $as_dir in #(((
7603     '') as_dir=./ ;;
7604     */) ;;
7605     *) as_dir=$as_dir/ ;;
7606   esac
7607     for ac_exec_ext in '' $ac_executable_extensions; do
7608   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7609     ac_cv_prog_ac_ct_OTOOL64="otool64"
7610     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7611     break 2
7612   fi
7613 done
7614   done
7615 IFS=$as_save_IFS
7616
7617 fi
7618 fi
7619 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7620 if test -n "$ac_ct_OTOOL64"; then
7621   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7622 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7623 else
7624   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 printf "%s\n" "no" >&6; }
7626 fi
7627
7628   if test "x$ac_ct_OTOOL64" = x; then
7629     OTOOL64=":"
7630   else
7631     case $cross_compiling:$ac_tool_warned in
7632 yes:)
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7634 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7635 ac_tool_warned=yes ;;
7636 esac
7637     OTOOL64=$ac_ct_OTOOL64
7638   fi
7639 else
7640   OTOOL64="$ac_cv_prog_OTOOL64"
7641 fi
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7670 printf %s "checking for -single_module linker flag... " >&6; }
7671 if test ${lt_cv_apple_cc_single_mod+y}
7672 then :
7673   printf %s "(cached) " >&6
7674 else $as_nop
7675   lt_cv_apple_cc_single_mod=no
7676       if test -z "$LT_MULTI_MODULE"; then
7677         # By default we will add the -single_module flag. You can override
7678         # by either setting the environment variable LT_MULTI_MODULE
7679         # non-empty at configure time, or by adding -multi_module to the
7680         # link flags.
7681         rm -rf libconftest.dylib*
7682         echo "int foo(void){return 1;}" > conftest.c
7683         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7684 -dynamiclib -Wl,-single_module conftest.c" >&5
7685         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7686           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7687         _lt_result=$?
7688         # If there is a non-empty error log, and "single_module"
7689         # appears in it, assume the flag caused a linker warning
7690         if test -s conftest.err && $GREP single_module conftest.err; then
7691           cat conftest.err >&5
7692         # Otherwise, if the output was created with a 0 exit code from
7693         # the compiler, it worked.
7694         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7695           lt_cv_apple_cc_single_mod=yes
7696         else
7697           cat conftest.err >&5
7698         fi
7699         rm -rf libconftest.dylib*
7700         rm -f conftest.*
7701       fi
7702 fi
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7704 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7705
7706     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7707 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7708 if test ${lt_cv_ld_exported_symbols_list+y}
7709 then :
7710   printf %s "(cached) " >&6
7711 else $as_nop
7712   lt_cv_ld_exported_symbols_list=no
7713       save_LDFLAGS=$LDFLAGS
7714       echo "_main" > conftest.sym
7715       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7716       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h.  */
7718
7719 int
7720 main (void)
7721 {
7722
7723   ;
7724   return 0;
7725 }
7726 _ACEOF
7727 if ac_fn_c_try_link "$LINENO"
7728 then :
7729   lt_cv_ld_exported_symbols_list=yes
7730 else $as_nop
7731   lt_cv_ld_exported_symbols_list=no
7732 fi
7733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7734     conftest$ac_exeext conftest.$ac_ext
7735         LDFLAGS=$save_LDFLAGS
7736
7737 fi
7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7739 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7740
7741     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7742 printf %s "checking for -force_load linker flag... " >&6; }
7743 if test ${lt_cv_ld_force_load+y}
7744 then :
7745   printf %s "(cached) " >&6
7746 else $as_nop
7747   lt_cv_ld_force_load=no
7748       cat > conftest.c << _LT_EOF
7749 int forced_loaded() { return 2;}
7750 _LT_EOF
7751       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7752       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7753       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
7754       $AR $AR_FLAGS libconftest.a conftest.o 2>&5
7755       echo "$RANLIB libconftest.a" >&5
7756       $RANLIB libconftest.a 2>&5
7757       cat > conftest.c << _LT_EOF
7758 int main() { return 0;}
7759 _LT_EOF
7760       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7761       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7762       _lt_result=$?
7763       if test -s conftest.err && $GREP force_load conftest.err; then
7764         cat conftest.err >&5
7765       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7766         lt_cv_ld_force_load=yes
7767       else
7768         cat conftest.err >&5
7769       fi
7770         rm -f conftest.err libconftest.a conftest conftest.c
7771         rm -rf conftest.dSYM
7772
7773 fi
7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7775 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7776     case $host_os in
7777     rhapsody* | darwin1.[012])
7778       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7779     darwin1.*)
7780       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7781     darwin*)
7782       case $MACOSX_DEPLOYMENT_TARGET,$host in
7783         10.[012],*|,*powerpc*-darwin[5-8]*)
7784           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7785         *)
7786           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7787       esac
7788     ;;
7789   esac
7790     if test yes = "$lt_cv_apple_cc_single_mod"; then
7791       _lt_dar_single_mod='$single_module'
7792     fi
7793     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7794       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7795     else
7796       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7797     fi
7798     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7799       _lt_dsymutil='~$DSYMUTIL $lib || :'
7800     else
7801       _lt_dsymutil=
7802     fi
7803     ;;
7804   esac
7805
7806 # func_munge_path_list VARIABLE PATH
7807 # -----------------------------------
7808 # VARIABLE is name of variable containing _space_ separated list of
7809 # directories to be munged by the contents of PATH, which is string
7810 # having a format:
7811 # "DIR[:DIR]:"
7812 #       string "DIR[ DIR]" will be prepended to VARIABLE
7813 # ":DIR[:DIR]"
7814 #       string "DIR[ DIR]" will be appended to VARIABLE
7815 # "DIRP[:DIRP]::[DIRA:]DIRA"
7816 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7817 #       "DIRA[ DIRA]" will be appended to VARIABLE
7818 # "DIR[:DIR]"
7819 #       VARIABLE will be replaced by "DIR[ DIR]"
7820 func_munge_path_list ()
7821 {
7822     case x$2 in
7823     x)
7824         ;;
7825     *:)
7826         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7827         ;;
7828     x:*)
7829         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7830         ;;
7831     *::*)
7832         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7833         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7834         ;;
7835     *)
7836         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7837         ;;
7838     esac
7839 }
7840
7841 ac_header= ac_cache=
7842 for ac_item in $ac_header_c_list
7843 do
7844   if test $ac_cache; then
7845     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7846     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7847       printf "%s\n" "#define $ac_item 1" >> confdefs.h
7848     fi
7849     ac_header= ac_cache=
7850   elif test $ac_header; then
7851     ac_cache=$ac_item
7852   else
7853     ac_header=$ac_item
7854   fi
7855 done
7856
7857
7858
7859
7860
7861
7862
7863
7864 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7865 then :
7866
7867 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7868
7869 fi
7870 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7871 "
7872 if test "x$ac_cv_header_dlfcn_h" = xyes
7873 then :
7874   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7875
7876 fi
7877
7878
7879
7880
7881
7882 # Set options
7883 enable_win32_dll=yes
7884
7885 case $host in
7886 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7887   if test -n "$ac_tool_prefix"; then
7888   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7889 set dummy ${ac_tool_prefix}as; ac_word=$2
7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 printf %s "checking for $ac_word... " >&6; }
7892 if test ${ac_cv_prog_AS+y}
7893 then :
7894   printf %s "(cached) " >&6
7895 else $as_nop
7896   if test -n "$AS"; then
7897   ac_cv_prog_AS="$AS" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902   IFS=$as_save_IFS
7903   case $as_dir in #(((
7904     '') as_dir=./ ;;
7905     */) ;;
7906     *) as_dir=$as_dir/ ;;
7907   esac
7908     for ac_exec_ext in '' $ac_executable_extensions; do
7909   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7910     ac_cv_prog_AS="${ac_tool_prefix}as"
7911     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7912     break 2
7913   fi
7914 done
7915   done
7916 IFS=$as_save_IFS
7917
7918 fi
7919 fi
7920 AS=$ac_cv_prog_AS
7921 if test -n "$AS"; then
7922   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7923 printf "%s\n" "$AS" >&6; }
7924 else
7925   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 printf "%s\n" "no" >&6; }
7927 fi
7928
7929
7930 fi
7931 if test -z "$ac_cv_prog_AS"; then
7932   ac_ct_AS=$AS
7933   # Extract the first word of "as", so it can be a program name with args.
7934 set dummy as; ac_word=$2
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 printf %s "checking for $ac_word... " >&6; }
7937 if test ${ac_cv_prog_ac_ct_AS+y}
7938 then :
7939   printf %s "(cached) " >&6
7940 else $as_nop
7941   if test -n "$ac_ct_AS"; then
7942   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7943 else
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7946 do
7947   IFS=$as_save_IFS
7948   case $as_dir in #(((
7949     '') as_dir=./ ;;
7950     */) ;;
7951     *) as_dir=$as_dir/ ;;
7952   esac
7953     for ac_exec_ext in '' $ac_executable_extensions; do
7954   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7955     ac_cv_prog_ac_ct_AS="as"
7956     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7957     break 2
7958   fi
7959 done
7960   done
7961 IFS=$as_save_IFS
7962
7963 fi
7964 fi
7965 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7966 if test -n "$ac_ct_AS"; then
7967   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7968 printf "%s\n" "$ac_ct_AS" >&6; }
7969 else
7970   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 printf "%s\n" "no" >&6; }
7972 fi
7973
7974   if test "x$ac_ct_AS" = x; then
7975     AS="false"
7976   else
7977     case $cross_compiling:$ac_tool_warned in
7978 yes:)
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981 ac_tool_warned=yes ;;
7982 esac
7983     AS=$ac_ct_AS
7984   fi
7985 else
7986   AS="$ac_cv_prog_AS"
7987 fi
7988
7989   if test -n "$ac_tool_prefix"; then
7990   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7991 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 printf %s "checking for $ac_word... " >&6; }
7994 if test ${ac_cv_prog_DLLTOOL+y}
7995 then :
7996   printf %s "(cached) " >&6
7997 else $as_nop
7998   if test -n "$DLLTOOL"; then
7999   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004   IFS=$as_save_IFS
8005   case $as_dir in #(((
8006     '') as_dir=./ ;;
8007     */) ;;
8008     *) as_dir=$as_dir/ ;;
8009   esac
8010     for ac_exec_ext in '' $ac_executable_extensions; do
8011   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8012     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8013     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8014     break 2
8015   fi
8016 done
8017   done
8018 IFS=$as_save_IFS
8019
8020 fi
8021 fi
8022 DLLTOOL=$ac_cv_prog_DLLTOOL
8023 if test -n "$DLLTOOL"; then
8024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8025 printf "%s\n" "$DLLTOOL" >&6; }
8026 else
8027   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 printf "%s\n" "no" >&6; }
8029 fi
8030
8031
8032 fi
8033 if test -z "$ac_cv_prog_DLLTOOL"; then
8034   ac_ct_DLLTOOL=$DLLTOOL
8035   # Extract the first word of "dlltool", so it can be a program name with args.
8036 set dummy dlltool; ac_word=$2
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 printf %s "checking for $ac_word... " >&6; }
8039 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8040 then :
8041   printf %s "(cached) " >&6
8042 else $as_nop
8043   if test -n "$ac_ct_DLLTOOL"; then
8044   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8045 else
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8048 do
8049   IFS=$as_save_IFS
8050   case $as_dir in #(((
8051     '') as_dir=./ ;;
8052     */) ;;
8053     *) as_dir=$as_dir/ ;;
8054   esac
8055     for ac_exec_ext in '' $ac_executable_extensions; do
8056   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8057     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8058     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8059     break 2
8060   fi
8061 done
8062   done
8063 IFS=$as_save_IFS
8064
8065 fi
8066 fi
8067 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8068 if test -n "$ac_ct_DLLTOOL"; then
8069   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8070 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8071 else
8072   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 printf "%s\n" "no" >&6; }
8074 fi
8075
8076   if test "x$ac_ct_DLLTOOL" = x; then
8077     DLLTOOL="false"
8078   else
8079     case $cross_compiling:$ac_tool_warned in
8080 yes:)
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8082 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8083 ac_tool_warned=yes ;;
8084 esac
8085     DLLTOOL=$ac_ct_DLLTOOL
8086   fi
8087 else
8088   DLLTOOL="$ac_cv_prog_DLLTOOL"
8089 fi
8090
8091   if test -n "$ac_tool_prefix"; then
8092   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8093 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095 printf %s "checking for $ac_word... " >&6; }
8096 if test ${ac_cv_prog_OBJDUMP+y}
8097 then :
8098   printf %s "(cached) " >&6
8099 else $as_nop
8100   if test -n "$OBJDUMP"; then
8101   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8102 else
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8105 do
8106   IFS=$as_save_IFS
8107   case $as_dir in #(((
8108     '') as_dir=./ ;;
8109     */) ;;
8110     *) as_dir=$as_dir/ ;;
8111   esac
8112     for ac_exec_ext in '' $ac_executable_extensions; do
8113   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8114     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8115     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8116     break 2
8117   fi
8118 done
8119   done
8120 IFS=$as_save_IFS
8121
8122 fi
8123 fi
8124 OBJDUMP=$ac_cv_prog_OBJDUMP
8125 if test -n "$OBJDUMP"; then
8126   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8127 printf "%s\n" "$OBJDUMP" >&6; }
8128 else
8129   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 printf "%s\n" "no" >&6; }
8131 fi
8132
8133
8134 fi
8135 if test -z "$ac_cv_prog_OBJDUMP"; then
8136   ac_ct_OBJDUMP=$OBJDUMP
8137   # Extract the first word of "objdump", so it can be a program name with args.
8138 set dummy objdump; ac_word=$2
8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140 printf %s "checking for $ac_word... " >&6; }
8141 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8142 then :
8143   printf %s "(cached) " >&6
8144 else $as_nop
8145   if test -n "$ac_ct_OBJDUMP"; then
8146   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8147 else
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 for as_dir in $PATH
8150 do
8151   IFS=$as_save_IFS
8152   case $as_dir in #(((
8153     '') as_dir=./ ;;
8154     */) ;;
8155     *) as_dir=$as_dir/ ;;
8156   esac
8157     for ac_exec_ext in '' $ac_executable_extensions; do
8158   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8159     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8160     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8161     break 2
8162   fi
8163 done
8164   done
8165 IFS=$as_save_IFS
8166
8167 fi
8168 fi
8169 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8170 if test -n "$ac_ct_OBJDUMP"; then
8171   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8172 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8173 else
8174   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 printf "%s\n" "no" >&6; }
8176 fi
8177
8178   if test "x$ac_ct_OBJDUMP" = x; then
8179     OBJDUMP="false"
8180   else
8181     case $cross_compiling:$ac_tool_warned in
8182 yes:)
8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8184 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8185 ac_tool_warned=yes ;;
8186 esac
8187     OBJDUMP=$ac_ct_OBJDUMP
8188   fi
8189 else
8190   OBJDUMP="$ac_cv_prog_OBJDUMP"
8191 fi
8192
8193   ;;
8194 esac
8195
8196 test -z "$AS" && AS=as
8197
8198
8199
8200
8201
8202 test -z "$DLLTOOL" && DLLTOOL=dlltool
8203
8204
8205
8206
8207
8208 test -z "$OBJDUMP" && OBJDUMP=objdump
8209
8210
8211
8212
8213
8214
8215
8216         enable_dlopen=no
8217
8218
8219
8220             # Check whether --enable-shared was given.
8221 if test ${enable_shared+y}
8222 then :
8223   enableval=$enable_shared; p=${PACKAGE-default}
8224     case $enableval in
8225     yes) enable_shared=yes ;;
8226     no) enable_shared=no ;;
8227     *)
8228       enable_shared=no
8229       # Look at the argument we got.  We use all the common list separators.
8230       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8231       for pkg in $enableval; do
8232         IFS=$lt_save_ifs
8233         if test "X$pkg" = "X$p"; then
8234           enable_shared=yes
8235         fi
8236       done
8237       IFS=$lt_save_ifs
8238       ;;
8239     esac
8240 else $as_nop
8241   enable_shared=yes
8242 fi
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252   # Check whether --enable-static was given.
8253 if test ${enable_static+y}
8254 then :
8255   enableval=$enable_static; p=${PACKAGE-default}
8256     case $enableval in
8257     yes) enable_static=yes ;;
8258     no) enable_static=no ;;
8259     *)
8260      enable_static=no
8261       # Look at the argument we got.  We use all the common list separators.
8262       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8263       for pkg in $enableval; do
8264         IFS=$lt_save_ifs
8265         if test "X$pkg" = "X$p"; then
8266           enable_static=yes
8267         fi
8268       done
8269       IFS=$lt_save_ifs
8270       ;;
8271     esac
8272 else $as_nop
8273   enable_static=yes
8274 fi
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285 # Check whether --with-pic was given.
8286 if test ${with_pic+y}
8287 then :
8288   withval=$with_pic; lt_p=${PACKAGE-default}
8289     case $withval in
8290     yes|no) pic_mode=$withval ;;
8291     *)
8292       pic_mode=default
8293       # Look at the argument we got.  We use all the common list separators.
8294       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8295       for lt_pkg in $withval; do
8296         IFS=$lt_save_ifs
8297         if test "X$lt_pkg" = "X$lt_p"; then
8298           pic_mode=yes
8299         fi
8300       done
8301       IFS=$lt_save_ifs
8302       ;;
8303     esac
8304 else $as_nop
8305   pic_mode=default
8306 fi
8307
8308
8309
8310
8311
8312
8313
8314
8315   # Check whether --enable-fast-install was given.
8316 if test ${enable_fast_install+y}
8317 then :
8318   enableval=$enable_fast_install; p=${PACKAGE-default}
8319     case $enableval in
8320     yes) enable_fast_install=yes ;;
8321     no) enable_fast_install=no ;;
8322     *)
8323       enable_fast_install=no
8324       # Look at the argument we got.  We use all the common list separators.
8325       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8326       for pkg in $enableval; do
8327         IFS=$lt_save_ifs
8328         if test "X$pkg" = "X$p"; then
8329           enable_fast_install=yes
8330         fi
8331       done
8332       IFS=$lt_save_ifs
8333       ;;
8334     esac
8335 else $as_nop
8336   enable_fast_install=yes
8337 fi
8338
8339
8340
8341
8342
8343
8344
8345
8346   shared_archive_member_spec=
8347 case $host,$enable_shared in
8348 power*-*-aix[5-9]*,yes)
8349   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8350 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8351
8352 # Check whether --with-aix-soname was given.
8353 if test ${with_aix_soname+y}
8354 then :
8355   withval=$with_aix_soname; case $withval in
8356     aix|svr4|both)
8357       ;;
8358     *)
8359       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8360       ;;
8361     esac
8362     lt_cv_with_aix_soname=$with_aix_soname
8363 else $as_nop
8364   if test ${lt_cv_with_aix_soname+y}
8365 then :
8366   printf %s "(cached) " >&6
8367 else $as_nop
8368   lt_cv_with_aix_soname=aix
8369 fi
8370
8371     with_aix_soname=$lt_cv_with_aix_soname
8372 fi
8373
8374   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8375 printf "%s\n" "$with_aix_soname" >&6; }
8376   if test aix != "$with_aix_soname"; then
8377     # For the AIX way of multilib, we name the shared archive member
8378     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8379     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8380     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8381     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8382     if test 64 = "${OBJECT_MODE-32}"; then
8383       shared_archive_member_spec=shr_64
8384     else
8385       shared_archive_member_spec=shr
8386     fi
8387   fi
8388   ;;
8389 *)
8390   with_aix_soname=aix
8391   ;;
8392 esac
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403 # This can be used to rebuild libtool when needed
8404 LIBTOOL_DEPS=$ltmain
8405
8406 # Always use our own libtool.
8407 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438 test -z "$LN_S" && LN_S="ln -s"
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453 if test -n "${ZSH_VERSION+set}"; then
8454    setopt NO_GLOB_SUBST
8455 fi
8456
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8458 printf %s "checking for objdir... " >&6; }
8459 if test ${lt_cv_objdir+y}
8460 then :
8461   printf %s "(cached) " >&6
8462 else $as_nop
8463   rm -f .libs 2>/dev/null
8464 mkdir .libs 2>/dev/null
8465 if test -d .libs; then
8466   lt_cv_objdir=.libs
8467 else
8468   # MS-DOS does not allow filenames that begin with a dot.
8469   lt_cv_objdir=_libs
8470 fi
8471 rmdir .libs 2>/dev/null
8472 fi
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8474 printf "%s\n" "$lt_cv_objdir" >&6; }
8475 objdir=$lt_cv_objdir
8476
8477
8478
8479
8480
8481 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8482
8483
8484
8485
8486 case $host_os in
8487 aix3*)
8488   # AIX sometimes has problems with the GCC collect2 program.  For some
8489   # reason, if we set the COLLECT_NAMES environment variable, the problems
8490   # vanish in a puff of smoke.
8491   if test set != "${COLLECT_NAMES+set}"; then
8492     COLLECT_NAMES=
8493     export COLLECT_NAMES
8494   fi
8495   ;;
8496 esac
8497
8498 # Global variables:
8499 ofile=libtool
8500 can_build_shared=yes
8501
8502 # All known linkers require a '.a' archive for static linking (except MSVC and
8503 # ICC, which need '.lib').
8504 libext=a
8505
8506 with_gnu_ld=$lt_cv_prog_gnu_ld
8507
8508 old_CC=$CC
8509 old_CFLAGS=$CFLAGS
8510
8511 # Set sane defaults for various variables
8512 test -z "$CC" && CC=cc
8513 test -z "$LTCC" && LTCC=$CC
8514 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8515 test -z "$LD" && LD=ld
8516 test -z "$ac_objext" && ac_objext=o
8517
8518 func_cc_basename $compiler
8519 cc_basename=$func_cc_basename_result
8520
8521
8522 # Only perform the check for file, if the check method requires it
8523 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8524 case $deplibs_check_method in
8525 file_magic*)
8526   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8527     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8528 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8529 if test ${lt_cv_path_MAGIC_CMD+y}
8530 then :
8531   printf %s "(cached) " >&6
8532 else $as_nop
8533   case $MAGIC_CMD in
8534 [\\/*] |  ?:[\\/]*)
8535   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8536   ;;
8537 *)
8538   lt_save_MAGIC_CMD=$MAGIC_CMD
8539   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8540   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8541   for ac_dir in $ac_dummy; do
8542     IFS=$lt_save_ifs
8543     test -z "$ac_dir" && ac_dir=.
8544     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8545       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8546       if test -n "$file_magic_test_file"; then
8547         case $deplibs_check_method in
8548         "file_magic "*)
8549           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8550           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8551           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8552             $EGREP "$file_magic_regex" > /dev/null; then
8553             :
8554           else
8555             cat <<_LT_EOF 1>&2
8556
8557 *** Warning: the command libtool uses to detect shared libraries,
8558 *** $file_magic_cmd, produces output that libtool cannot recognize.
8559 *** The result is that libtool may fail to recognize shared libraries
8560 *** as such.  This will affect the creation of libtool libraries that
8561 *** depend on shared libraries, but programs linked with such libtool
8562 *** libraries will work regardless of this problem.  Nevertheless, you
8563 *** may want to report the problem to your system manager and/or to
8564 *** bug-libtool@gnu.org
8565
8566 _LT_EOF
8567           fi ;;
8568         esac
8569       fi
8570       break
8571     fi
8572   done
8573   IFS=$lt_save_ifs
8574   MAGIC_CMD=$lt_save_MAGIC_CMD
8575   ;;
8576 esac
8577 fi
8578
8579 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8580 if test -n "$MAGIC_CMD"; then
8581   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8582 printf "%s\n" "$MAGIC_CMD" >&6; }
8583 else
8584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 printf "%s\n" "no" >&6; }
8586 fi
8587
8588
8589
8590
8591
8592 if test -z "$lt_cv_path_MAGIC_CMD"; then
8593   if test -n "$ac_tool_prefix"; then
8594     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8595 printf %s "checking for file... " >&6; }
8596 if test ${lt_cv_path_MAGIC_CMD+y}
8597 then :
8598   printf %s "(cached) " >&6
8599 else $as_nop
8600   case $MAGIC_CMD in
8601 [\\/*] |  ?:[\\/]*)
8602   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8603   ;;
8604 *)
8605   lt_save_MAGIC_CMD=$MAGIC_CMD
8606   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8607   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8608   for ac_dir in $ac_dummy; do
8609     IFS=$lt_save_ifs
8610     test -z "$ac_dir" && ac_dir=.
8611     if test -f "$ac_dir/file"; then
8612       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8613       if test -n "$file_magic_test_file"; then
8614         case $deplibs_check_method in
8615         "file_magic "*)
8616           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8617           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8618           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8619             $EGREP "$file_magic_regex" > /dev/null; then
8620             :
8621           else
8622             cat <<_LT_EOF 1>&2
8623
8624 *** Warning: the command libtool uses to detect shared libraries,
8625 *** $file_magic_cmd, produces output that libtool cannot recognize.
8626 *** The result is that libtool may fail to recognize shared libraries
8627 *** as such.  This will affect the creation of libtool libraries that
8628 *** depend on shared libraries, but programs linked with such libtool
8629 *** libraries will work regardless of this problem.  Nevertheless, you
8630 *** may want to report the problem to your system manager and/or to
8631 *** bug-libtool@gnu.org
8632
8633 _LT_EOF
8634           fi ;;
8635         esac
8636       fi
8637       break
8638     fi
8639   done
8640   IFS=$lt_save_ifs
8641   MAGIC_CMD=$lt_save_MAGIC_CMD
8642   ;;
8643 esac
8644 fi
8645
8646 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8647 if test -n "$MAGIC_CMD"; then
8648   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8649 printf "%s\n" "$MAGIC_CMD" >&6; }
8650 else
8651   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 printf "%s\n" "no" >&6; }
8653 fi
8654
8655
8656   else
8657     MAGIC_CMD=:
8658   fi
8659 fi
8660
8661   fi
8662   ;;
8663 esac
8664
8665 # Use C for the default configuration in the libtool script
8666
8667 lt_save_CC=$CC
8668 ac_ext=c
8669 ac_cpp='$CPP $CPPFLAGS'
8670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8673
8674
8675 # Source file extension for C test sources.
8676 ac_ext=c
8677
8678 # Object file extension for compiled C test sources.
8679 objext=o
8680 objext=$objext
8681
8682 # Code to be used in simple compile tests
8683 lt_simple_compile_test_code="int some_variable = 0;"
8684
8685 # Code to be used in simple link tests
8686 lt_simple_link_test_code='int main(){return(0);}'
8687
8688
8689
8690
8691
8692
8693
8694 # If no C compiler was specified, use CC.
8695 LTCC=${LTCC-"$CC"}
8696
8697 # If no C compiler flags were specified, use CFLAGS.
8698 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8699
8700 # Allow CC to be a program name with arguments.
8701 compiler=$CC
8702
8703 # Save the default compiler, since it gets overwritten when the other
8704 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8705 compiler_DEFAULT=$CC
8706
8707 # save warnings/boilerplate of simple test code
8708 ac_outfile=conftest.$ac_objext
8709 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8710 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8711 _lt_compiler_boilerplate=`cat conftest.err`
8712 $RM conftest*
8713
8714 ac_outfile=conftest.$ac_objext
8715 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8716 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8717 _lt_linker_boilerplate=`cat conftest.err`
8718 $RM -r conftest*
8719
8720
8721 if test -n "$compiler"; then
8722
8723 lt_prog_compiler_no_builtin_flag=
8724
8725 if test yes = "$GCC"; then
8726   case $cc_basename in
8727   nvcc*)
8728     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8729   *)
8730     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8731   esac
8732
8733   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8734 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8735 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8736 then :
8737   printf %s "(cached) " >&6
8738 else $as_nop
8739   lt_cv_prog_compiler_rtti_exceptions=no
8740    ac_outfile=conftest.$ac_objext
8741    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8742    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8743    # Insert the option either (1) after the last *FLAGS variable, or
8744    # (2) before a word containing "conftest.", or (3) at the end.
8745    # Note that $ac_compile itself does not contain backslashes and begins
8746    # with a dollar sign (not a hyphen), so the echo should work correctly.
8747    # The option is referenced via a variable to avoid confusing sed.
8748    lt_compile=`echo "$ac_compile" | $SED \
8749    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8750    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8751    -e 's:$: $lt_compiler_flag:'`
8752    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8753    (eval "$lt_compile" 2>conftest.err)
8754    ac_status=$?
8755    cat conftest.err >&5
8756    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757    if (exit $ac_status) && test -s "$ac_outfile"; then
8758      # The compiler can only warn and ignore the option if not recognized
8759      # So say no if there are warnings other than the usual output.
8760      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8761      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8762      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8763        lt_cv_prog_compiler_rtti_exceptions=yes
8764      fi
8765    fi
8766    $RM conftest*
8767
8768 fi
8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8770 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8771
8772 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8773     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8774 else
8775     :
8776 fi
8777
8778 fi
8779
8780
8781
8782
8783
8784
8785   lt_prog_compiler_wl=
8786 lt_prog_compiler_pic=
8787 lt_prog_compiler_static=
8788
8789
8790   if test yes = "$GCC"; then
8791     lt_prog_compiler_wl='-Wl,'
8792     lt_prog_compiler_static='-static'
8793
8794     case $host_os in
8795       aix*)
8796       # All AIX code is PIC.
8797       if test ia64 = "$host_cpu"; then
8798         # AIX 5 now supports IA64 processor
8799         lt_prog_compiler_static='-Bstatic'
8800       fi
8801       lt_prog_compiler_pic='-fPIC'
8802       ;;
8803
8804     amigaos*)
8805       case $host_cpu in
8806       powerpc)
8807             # see comment about AmigaOS4 .so support
8808             lt_prog_compiler_pic='-fPIC'
8809         ;;
8810       m68k)
8811             # FIXME: we need at least 68020 code to build shared libraries, but
8812             # adding the '-m68020' flag to GCC prevents building anything better,
8813             # like '-m68040'.
8814             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8815         ;;
8816       esac
8817       ;;
8818
8819     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8820       # PIC is the default for these OSes.
8821       ;;
8822
8823     mingw* | cygwin* | pw32* | os2* | cegcc*)
8824       # This hack is so that the source file can tell whether it is being
8825       # built for inclusion in a dll (and should export symbols for example).
8826       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8827       # (--disable-auto-import) libraries
8828       lt_prog_compiler_pic='-DDLL_EXPORT'
8829       case $host_os in
8830       os2*)
8831         lt_prog_compiler_static='$wl-static'
8832         ;;
8833       esac
8834       ;;
8835
8836     darwin* | rhapsody*)
8837       # PIC is the default on this platform
8838       # Common symbols not allowed in MH_DYLIB files
8839       lt_prog_compiler_pic='-fno-common'
8840       ;;
8841
8842     haiku*)
8843       # PIC is the default for Haiku.
8844       # The "-static" flag exists, but is broken.
8845       lt_prog_compiler_static=
8846       ;;
8847
8848     hpux*)
8849       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8850       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8851       # sets the default TLS model and affects inlining.
8852       case $host_cpu in
8853       hppa*64*)
8854         # +Z the default
8855         ;;
8856       *)
8857         lt_prog_compiler_pic='-fPIC'
8858         ;;
8859       esac
8860       ;;
8861
8862     interix[3-9]*)
8863       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8864       # Instead, we relocate shared libraries at runtime.
8865       ;;
8866
8867     msdosdjgpp*)
8868       # Just because we use GCC doesn't mean we suddenly get shared libraries
8869       # on systems that don't support them.
8870       lt_prog_compiler_can_build_shared=no
8871       enable_shared=no
8872       ;;
8873
8874     *nto* | *qnx*)
8875       # QNX uses GNU C++, but need to define -shared option too, otherwise
8876       # it will coredump.
8877       lt_prog_compiler_pic='-fPIC -shared'
8878       ;;
8879
8880     sysv4*MP*)
8881       if test -d /usr/nec; then
8882         lt_prog_compiler_pic=-Kconform_pic
8883       fi
8884       ;;
8885
8886     *)
8887       lt_prog_compiler_pic='-fPIC'
8888       ;;
8889     esac
8890
8891     case $cc_basename in
8892     nvcc*) # Cuda Compiler Driver 2.2
8893       lt_prog_compiler_wl='-Xlinker '
8894       if test -n "$lt_prog_compiler_pic"; then
8895         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8896       fi
8897       ;;
8898     esac
8899   else
8900     # PORTME Check for flag to pass linker flags through the system compiler.
8901     case $host_os in
8902     aix*)
8903       lt_prog_compiler_wl='-Wl,'
8904       if test ia64 = "$host_cpu"; then
8905         # AIX 5 now supports IA64 processor
8906         lt_prog_compiler_static='-Bstatic'
8907       else
8908         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8909       fi
8910       ;;
8911
8912     darwin* | rhapsody*)
8913       # PIC is the default on this platform
8914       # Common symbols not allowed in MH_DYLIB files
8915       lt_prog_compiler_pic='-fno-common'
8916       case $cc_basename in
8917       nagfor*)
8918         # NAG Fortran compiler
8919         lt_prog_compiler_wl='-Wl,-Wl,,'
8920         lt_prog_compiler_pic='-PIC'
8921         lt_prog_compiler_static='-Bstatic'
8922         ;;
8923       esac
8924       ;;
8925
8926     mingw* | cygwin* | pw32* | os2* | cegcc*)
8927       # This hack is so that the source file can tell whether it is being
8928       # built for inclusion in a dll (and should export symbols for example).
8929       lt_prog_compiler_pic='-DDLL_EXPORT'
8930       case $host_os in
8931       os2*)
8932         lt_prog_compiler_static='$wl-static'
8933         ;;
8934       esac
8935       ;;
8936
8937     hpux9* | hpux10* | hpux11*)
8938       lt_prog_compiler_wl='-Wl,'
8939       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8940       # not for PA HP-UX.
8941       case $host_cpu in
8942       hppa*64*|ia64*)
8943         # +Z the default
8944         ;;
8945       *)
8946         lt_prog_compiler_pic='+Z'
8947         ;;
8948       esac
8949       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8950       lt_prog_compiler_static='$wl-a ${wl}archive'
8951       ;;
8952
8953     irix5* | irix6* | nonstopux*)
8954       lt_prog_compiler_wl='-Wl,'
8955       # PIC (with -KPIC) is the default.
8956       lt_prog_compiler_static='-non_shared'
8957       ;;
8958
8959     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8960       case $cc_basename in
8961       # old Intel for x86_64, which still supported -KPIC.
8962       ecc*)
8963         lt_prog_compiler_wl='-Wl,'
8964         lt_prog_compiler_pic='-KPIC'
8965         lt_prog_compiler_static='-static'
8966         ;;
8967       # icc used to be incompatible with GCC.
8968       # ICC 10 doesn't accept -KPIC any more.
8969       icc* | ifort*)
8970         lt_prog_compiler_wl='-Wl,'
8971         lt_prog_compiler_pic='-fPIC'
8972         lt_prog_compiler_static='-static'
8973         ;;
8974       # Lahey Fortran 8.1.
8975       lf95*)
8976         lt_prog_compiler_wl='-Wl,'
8977         lt_prog_compiler_pic='--shared'
8978         lt_prog_compiler_static='--static'
8979         ;;
8980       nagfor*)
8981         # NAG Fortran compiler
8982         lt_prog_compiler_wl='-Wl,-Wl,,'
8983         lt_prog_compiler_pic='-PIC'
8984         lt_prog_compiler_static='-Bstatic'
8985         ;;
8986       tcc*)
8987         # Fabrice Bellard et al's Tiny C Compiler
8988         lt_prog_compiler_wl='-Wl,'
8989         lt_prog_compiler_pic='-fPIC'
8990         lt_prog_compiler_static='-static'
8991         ;;
8992       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8993         # Portland Group compilers (*not* the Pentium gcc compiler,
8994         # which looks to be a dead project)
8995         lt_prog_compiler_wl='-Wl,'
8996         lt_prog_compiler_pic='-fpic'
8997         lt_prog_compiler_static='-Bstatic'
8998         ;;
8999       ccc*)
9000         lt_prog_compiler_wl='-Wl,'
9001         # All Alpha code is PIC.
9002         lt_prog_compiler_static='-non_shared'
9003         ;;
9004       xl* | bgxl* | bgf* | mpixl*)
9005         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9006         lt_prog_compiler_wl='-Wl,'
9007         lt_prog_compiler_pic='-qpic'
9008         lt_prog_compiler_static='-qstaticlink'
9009         ;;
9010       *)
9011         case `$CC -V 2>&1 | $SED 5q` in
9012         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9013           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9014           lt_prog_compiler_pic='-KPIC'
9015           lt_prog_compiler_static='-Bstatic'
9016           lt_prog_compiler_wl=''
9017           ;;
9018         *Sun\ F* | *Sun*Fortran*)
9019           lt_prog_compiler_pic='-KPIC'
9020           lt_prog_compiler_static='-Bstatic'
9021           lt_prog_compiler_wl='-Qoption ld '
9022           ;;
9023         *Sun\ C*)
9024           # Sun C 5.9
9025           lt_prog_compiler_pic='-KPIC'
9026           lt_prog_compiler_static='-Bstatic'
9027           lt_prog_compiler_wl='-Wl,'
9028           ;;
9029         *Intel*\ [CF]*Compiler*)
9030           lt_prog_compiler_wl='-Wl,'
9031           lt_prog_compiler_pic='-fPIC'
9032           lt_prog_compiler_static='-static'
9033           ;;
9034         *Portland\ Group*)
9035           lt_prog_compiler_wl='-Wl,'
9036           lt_prog_compiler_pic='-fpic'
9037           lt_prog_compiler_static='-Bstatic'
9038           ;;
9039         esac
9040         ;;
9041       esac
9042       ;;
9043
9044     newsos6)
9045       lt_prog_compiler_pic='-KPIC'
9046       lt_prog_compiler_static='-Bstatic'
9047       ;;
9048
9049     *nto* | *qnx*)
9050       # QNX uses GNU C++, but need to define -shared option too, otherwise
9051       # it will coredump.
9052       lt_prog_compiler_pic='-fPIC -shared'
9053       ;;
9054
9055     osf3* | osf4* | osf5*)
9056       lt_prog_compiler_wl='-Wl,'
9057       # All OSF/1 code is PIC.
9058       lt_prog_compiler_static='-non_shared'
9059       ;;
9060
9061     rdos*)
9062       lt_prog_compiler_static='-non_shared'
9063       ;;
9064
9065     solaris*)
9066       lt_prog_compiler_pic='-KPIC'
9067       lt_prog_compiler_static='-Bstatic'
9068       case $cc_basename in
9069       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9070         lt_prog_compiler_wl='-Qoption ld ';;
9071       *)
9072         lt_prog_compiler_wl='-Wl,';;
9073       esac
9074       ;;
9075
9076     sunos4*)
9077       lt_prog_compiler_wl='-Qoption ld '
9078       lt_prog_compiler_pic='-PIC'
9079       lt_prog_compiler_static='-Bstatic'
9080       ;;
9081
9082     sysv4 | sysv4.2uw2* | sysv4.3*)
9083       lt_prog_compiler_wl='-Wl,'
9084       lt_prog_compiler_pic='-KPIC'
9085       lt_prog_compiler_static='-Bstatic'
9086       ;;
9087
9088     sysv4*MP*)
9089       if test -d /usr/nec; then
9090         lt_prog_compiler_pic='-Kconform_pic'
9091         lt_prog_compiler_static='-Bstatic'
9092       fi
9093       ;;
9094
9095     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9096       lt_prog_compiler_wl='-Wl,'
9097       lt_prog_compiler_pic='-KPIC'
9098       lt_prog_compiler_static='-Bstatic'
9099       ;;
9100
9101     unicos*)
9102       lt_prog_compiler_wl='-Wl,'
9103       lt_prog_compiler_can_build_shared=no
9104       ;;
9105
9106     uts4*)
9107       lt_prog_compiler_pic='-pic'
9108       lt_prog_compiler_static='-Bstatic'
9109       ;;
9110
9111     *)
9112       lt_prog_compiler_can_build_shared=no
9113       ;;
9114     esac
9115   fi
9116
9117 case $host_os in
9118   # For platforms that do not support PIC, -DPIC is meaningless:
9119   *djgpp*)
9120     lt_prog_compiler_pic=
9121     ;;
9122   *)
9123     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9124     ;;
9125 esac
9126
9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9128 printf %s "checking for $compiler option to produce PIC... " >&6; }
9129 if test ${lt_cv_prog_compiler_pic+y}
9130 then :
9131   printf %s "(cached) " >&6
9132 else $as_nop
9133   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9134 fi
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9136 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9137 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9138
9139 #
9140 # Check to make sure the PIC flag actually works.
9141 #
9142 if test -n "$lt_prog_compiler_pic"; then
9143   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9144 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9145 if test ${lt_cv_prog_compiler_pic_works+y}
9146 then :
9147   printf %s "(cached) " >&6
9148 else $as_nop
9149   lt_cv_prog_compiler_pic_works=no
9150    ac_outfile=conftest.$ac_objext
9151    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9152    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9153    # Insert the option either (1) after the last *FLAGS variable, or
9154    # (2) before a word containing "conftest.", or (3) at the end.
9155    # Note that $ac_compile itself does not contain backslashes and begins
9156    # with a dollar sign (not a hyphen), so the echo should work correctly.
9157    # The option is referenced via a variable to avoid confusing sed.
9158    lt_compile=`echo "$ac_compile" | $SED \
9159    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9160    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9161    -e 's:$: $lt_compiler_flag:'`
9162    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9163    (eval "$lt_compile" 2>conftest.err)
9164    ac_status=$?
9165    cat conftest.err >&5
9166    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167    if (exit $ac_status) && test -s "$ac_outfile"; then
9168      # The compiler can only warn and ignore the option if not recognized
9169      # So say no if there are warnings other than the usual output.
9170      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9171      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9172      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9173        lt_cv_prog_compiler_pic_works=yes
9174      fi
9175    fi
9176    $RM conftest*
9177
9178 fi
9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9180 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9181
9182 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9183     case $lt_prog_compiler_pic in
9184      "" | " "*) ;;
9185      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9186      esac
9187 else
9188     lt_prog_compiler_pic=
9189      lt_prog_compiler_can_build_shared=no
9190 fi
9191
9192 fi
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204 #
9205 # Check to make sure the static flag actually works.
9206 #
9207 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9209 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9210 if test ${lt_cv_prog_compiler_static_works+y}
9211 then :
9212   printf %s "(cached) " >&6
9213 else $as_nop
9214   lt_cv_prog_compiler_static_works=no
9215    save_LDFLAGS=$LDFLAGS
9216    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9217    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9218    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9219      # The linker can only warn and ignore the option if not recognized
9220      # So say no if there are warnings
9221      if test -s conftest.err; then
9222        # Append any errors to the config.log.
9223        cat conftest.err 1>&5
9224        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9225        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9226        if diff conftest.exp conftest.er2 >/dev/null; then
9227          lt_cv_prog_compiler_static_works=yes
9228        fi
9229      else
9230        lt_cv_prog_compiler_static_works=yes
9231      fi
9232    fi
9233    $RM -r conftest*
9234    LDFLAGS=$save_LDFLAGS
9235
9236 fi
9237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9238 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9239
9240 if test yes = "$lt_cv_prog_compiler_static_works"; then
9241     :
9242 else
9243     lt_prog_compiler_static=
9244 fi
9245
9246
9247
9248
9249
9250
9251
9252   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9253 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9254 if test ${lt_cv_prog_compiler_c_o+y}
9255 then :
9256   printf %s "(cached) " >&6
9257 else $as_nop
9258   lt_cv_prog_compiler_c_o=no
9259    $RM -r conftest 2>/dev/null
9260    mkdir conftest
9261    cd conftest
9262    mkdir out
9263    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9264
9265    lt_compiler_flag="-o out/conftest2.$ac_objext"
9266    # Insert the option either (1) after the last *FLAGS variable, or
9267    # (2) before a word containing "conftest.", or (3) at the end.
9268    # Note that $ac_compile itself does not contain backslashes and begins
9269    # with a dollar sign (not a hyphen), so the echo should work correctly.
9270    lt_compile=`echo "$ac_compile" | $SED \
9271    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9272    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9273    -e 's:$: $lt_compiler_flag:'`
9274    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9275    (eval "$lt_compile" 2>out/conftest.err)
9276    ac_status=$?
9277    cat out/conftest.err >&5
9278    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9280    then
9281      # The compiler can only warn and ignore the option if not recognized
9282      # So say no if there are warnings
9283      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9284      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9285      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9286        lt_cv_prog_compiler_c_o=yes
9287      fi
9288    fi
9289    chmod u+w . 2>&5
9290    $RM conftest*
9291    # SGI C++ compiler will create directory out/ii_files/ for
9292    # template instantiation
9293    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9294    $RM out/* && rmdir out
9295    cd ..
9296    $RM -r conftest
9297    $RM conftest*
9298
9299 fi
9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9301 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9302
9303
9304
9305
9306
9307
9308   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9309 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9310 if test ${lt_cv_prog_compiler_c_o+y}
9311 then :
9312   printf %s "(cached) " >&6
9313 else $as_nop
9314   lt_cv_prog_compiler_c_o=no
9315    $RM -r conftest 2>/dev/null
9316    mkdir conftest
9317    cd conftest
9318    mkdir out
9319    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9320
9321    lt_compiler_flag="-o out/conftest2.$ac_objext"
9322    # Insert the option either (1) after the last *FLAGS variable, or
9323    # (2) before a word containing "conftest.", or (3) at the end.
9324    # Note that $ac_compile itself does not contain backslashes and begins
9325    # with a dollar sign (not a hyphen), so the echo should work correctly.
9326    lt_compile=`echo "$ac_compile" | $SED \
9327    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9328    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9329    -e 's:$: $lt_compiler_flag:'`
9330    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9331    (eval "$lt_compile" 2>out/conftest.err)
9332    ac_status=$?
9333    cat out/conftest.err >&5
9334    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9336    then
9337      # The compiler can only warn and ignore the option if not recognized
9338      # So say no if there are warnings
9339      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9340      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9341      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9342        lt_cv_prog_compiler_c_o=yes
9343      fi
9344    fi
9345    chmod u+w . 2>&5
9346    $RM conftest*
9347    # SGI C++ compiler will create directory out/ii_files/ for
9348    # template instantiation
9349    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9350    $RM out/* && rmdir out
9351    cd ..
9352    $RM -r conftest
9353    $RM conftest*
9354
9355 fi
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9357 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9358
9359
9360
9361
9362 hard_links=nottested
9363 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9364   # do not overwrite the value of need_locks provided by the user
9365   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9366 printf %s "checking if we can lock with hard links... " >&6; }
9367   hard_links=yes
9368   $RM conftest*
9369   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9370   touch conftest.a
9371   ln conftest.a conftest.b 2>&5 || hard_links=no
9372   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9373   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9374 printf "%s\n" "$hard_links" >&6; }
9375   if test no = "$hard_links"; then
9376     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9377 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9378     need_locks=warn
9379   fi
9380 else
9381   need_locks=no
9382 fi
9383
9384
9385
9386
9387
9388
9389   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9390 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9391
9392   runpath_var=
9393   allow_undefined_flag=
9394   always_export_symbols=no
9395   archive_cmds=
9396   archive_expsym_cmds=
9397   compiler_needs_object=no
9398   enable_shared_with_static_runtimes=no
9399   export_dynamic_flag_spec=
9400   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9401   hardcode_automatic=no
9402   hardcode_direct=no
9403   hardcode_direct_absolute=no
9404   hardcode_libdir_flag_spec=
9405   hardcode_libdir_separator=
9406   hardcode_minus_L=no
9407   hardcode_shlibpath_var=unsupported
9408   inherit_rpath=no
9409   link_all_deplibs=unknown
9410   module_cmds=
9411   module_expsym_cmds=
9412   old_archive_from_new_cmds=
9413   old_archive_from_expsyms_cmds=
9414   thread_safe_flag_spec=
9415   whole_archive_flag_spec=
9416   # include_expsyms should be a list of space-separated symbols to be *always*
9417   # included in the symbol list
9418   include_expsyms=
9419   # exclude_expsyms can be an extended regexp of symbols to exclude
9420   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9421   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9422   # as well as any symbol that contains 'd'.
9423   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9424   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9425   # platforms (ab)use it in PIC code, but their linkers get confused if
9426   # the symbol is explicitly referenced.  Since portable code cannot
9427   # rely on this symbol name, it's probably fine to never include it in
9428   # preloaded symbol tables.
9429   # Exclude shared library initialization/finalization symbols.
9430   extract_expsyms_cmds=
9431
9432   case $host_os in
9433   cygwin* | mingw* | pw32* | cegcc*)
9434     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9435     # When not using gcc, we currently assume that we are using
9436     # Microsoft Visual C++ or Intel C++ Compiler.
9437     if test yes != "$GCC"; then
9438       with_gnu_ld=no
9439     fi
9440     ;;
9441   interix*)
9442     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9443     with_gnu_ld=yes
9444     ;;
9445   openbsd* | bitrig*)
9446     with_gnu_ld=no
9447     ;;
9448   esac
9449
9450   ld_shlibs=yes
9451
9452   # On some targets, GNU ld is compatible enough with the native linker
9453   # that we're better off using the native interface for both.
9454   lt_use_gnu_ld_interface=no
9455   if test yes = "$with_gnu_ld"; then
9456     case $host_os in
9457       aix*)
9458         # The AIX port of GNU ld has always aspired to compatibility
9459         # with the native linker.  However, as the warning in the GNU ld
9460         # block says, versions before 2.19.5* couldn't really create working
9461         # shared libraries, regardless of the interface used.
9462         case `$LD -v 2>&1` in
9463           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9464           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9465           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9466           *)
9467             lt_use_gnu_ld_interface=yes
9468             ;;
9469         esac
9470         ;;
9471       *)
9472         lt_use_gnu_ld_interface=yes
9473         ;;
9474     esac
9475   fi
9476
9477   if test yes = "$lt_use_gnu_ld_interface"; then
9478     # If archive_cmds runs LD, not CC, wlarc should be empty
9479     wlarc='$wl'
9480
9481     # Set some defaults for GNU ld with shared library support. These
9482     # are reset later if shared libraries are not supported. Putting them
9483     # here allows them to be overridden if necessary.
9484     runpath_var=LD_RUN_PATH
9485     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9486     export_dynamic_flag_spec='$wl--export-dynamic'
9487     # ancient GNU ld didn't support --whole-archive et. al.
9488     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9489       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9490     else
9491       whole_archive_flag_spec=
9492     fi
9493     supports_anon_versioning=no
9494     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9495       *GNU\ gold*) supports_anon_versioning=yes ;;
9496       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9497       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9498       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9499       *\ 2.11.*) ;; # other 2.11 versions
9500       *) supports_anon_versioning=yes ;;
9501     esac
9502
9503     # See if GNU ld supports shared libraries.
9504     case $host_os in
9505     aix[3-9]*)
9506       # On AIX/PPC, the GNU linker is very broken
9507       if test ia64 != "$host_cpu"; then
9508         ld_shlibs=no
9509         cat <<_LT_EOF 1>&2
9510
9511 *** Warning: the GNU linker, at least up to release 2.19, is reported
9512 *** to be unable to reliably create shared libraries on AIX.
9513 *** Therefore, libtool is disabling shared libraries support.  If you
9514 *** really care for shared libraries, you may want to install binutils
9515 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9516 *** You will then need to restart the configuration process.
9517
9518 _LT_EOF
9519       fi
9520       ;;
9521
9522     amigaos*)
9523       case $host_cpu in
9524       powerpc)
9525             # see comment about AmigaOS4 .so support
9526             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9527             archive_expsym_cmds=''
9528         ;;
9529       m68k)
9530             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)'
9531             hardcode_libdir_flag_spec='-L$libdir'
9532             hardcode_minus_L=yes
9533         ;;
9534       esac
9535       ;;
9536
9537     beos*)
9538       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9539         allow_undefined_flag=unsupported
9540         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9541         # support --undefined.  This deserves some investigation.  FIXME
9542         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9543       else
9544         ld_shlibs=no
9545       fi
9546       ;;
9547
9548     cygwin* | mingw* | pw32* | cegcc*)
9549       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9550       # as there is no search path for DLLs.
9551       hardcode_libdir_flag_spec='-L$libdir'
9552       export_dynamic_flag_spec='$wl--export-all-symbols'
9553       allow_undefined_flag=unsupported
9554       always_export_symbols=no
9555       enable_shared_with_static_runtimes=yes
9556       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'
9557       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9558
9559       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9560         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9561         # If the export-symbols file already is a .def file, use it as
9562         # is; otherwise, prepend EXPORTS...
9563         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9564           cp $export_symbols $output_objdir/$soname.def;
9565         else
9566           echo EXPORTS > $output_objdir/$soname.def;
9567           cat $export_symbols >> $output_objdir/$soname.def;
9568         fi~
9569         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9570       else
9571         ld_shlibs=no
9572       fi
9573       ;;
9574
9575     haiku*)
9576       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9577       link_all_deplibs=yes
9578       ;;
9579
9580     os2*)
9581       hardcode_libdir_flag_spec='-L$libdir'
9582       hardcode_minus_L=yes
9583       allow_undefined_flag=unsupported
9584       shrext_cmds=.dll
9585       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9586         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9587         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9588         $ECHO EXPORTS >> $output_objdir/$libname.def~
9589         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9590         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9591         emximp -o $lib $output_objdir/$libname.def'
9592       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9593         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9594         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9595         $ECHO EXPORTS >> $output_objdir/$libname.def~
9596         prefix_cmds="$SED"~
9597         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9598           prefix_cmds="$prefix_cmds -e 1d";
9599         fi~
9600         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9601         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9602         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9603         emximp -o $lib $output_objdir/$libname.def'
9604       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9605       enable_shared_with_static_runtimes=yes
9606       file_list_spec='@'
9607       ;;
9608
9609     interix[3-9]*)
9610       hardcode_direct=no
9611       hardcode_shlibpath_var=no
9612       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9613       export_dynamic_flag_spec='$wl-E'
9614       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9615       # Instead, shared libraries are loaded at an image base (0x10000000 by
9616       # default) and relocated if they conflict, which is a slow very memory
9617       # consuming and fragmenting process.  To avoid this, we pick a random,
9618       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9619       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9620       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9621       archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9622       ;;
9623
9624     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9625       tmp_diet=no
9626       if test linux-dietlibc = "$host_os"; then
9627         case $cc_basename in
9628           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9629         esac
9630       fi
9631       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9632          && test no = "$tmp_diet"
9633       then
9634         tmp_addflag=' $pic_flag'
9635         tmp_sharedflag='-shared'
9636         case $cc_basename,$host_cpu in
9637         pgcc*)                          # Portland Group C compiler
9638           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9639           tmp_addflag=' $pic_flag'
9640           ;;
9641         pgf77* | pgf90* | pgf95* | pgfortran*)
9642                                         # Portland Group f77 and f90 compilers
9643           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9644           tmp_addflag=' $pic_flag -Mnomain' ;;
9645         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9646           tmp_addflag=' -i_dynamic' ;;
9647         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9648           tmp_addflag=' -i_dynamic -nofor_main' ;;
9649         ifc* | ifort*)                  # Intel Fortran compiler
9650           tmp_addflag=' -nofor_main' ;;
9651         lf95*)                          # Lahey Fortran 8.1
9652           whole_archive_flag_spec=
9653           tmp_sharedflag='--shared' ;;
9654         nagfor*)                        # NAGFOR 5.3
9655           tmp_sharedflag='-Wl,-shared' ;;
9656         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9657           tmp_sharedflag='-qmkshrobj'
9658           tmp_addflag= ;;
9659         nvcc*)  # Cuda Compiler Driver 2.2
9660           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'
9661           compiler_needs_object=yes
9662           ;;
9663         esac
9664         case `$CC -V 2>&1 | $SED 5q` in
9665         *Sun\ C*)                       # Sun C 5.9
9666           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'
9667           compiler_needs_object=yes
9668           tmp_sharedflag='-G' ;;
9669         *Sun\ F*)                       # Sun Fortran 8.3
9670           tmp_sharedflag='-G' ;;
9671         esac
9672         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9673
9674         if test yes = "$supports_anon_versioning"; then
9675           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9676             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9677             echo "local: *; };" >> $output_objdir/$libname.ver~
9678             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9679         fi
9680
9681         case $cc_basename in
9682         tcc*)
9683           export_dynamic_flag_spec='-rdynamic'
9684           ;;
9685         xlf* | bgf* | bgxlf* | mpixlf*)
9686           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9687           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9688           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9689           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9690           if test yes = "$supports_anon_versioning"; then
9691             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9692               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9693               echo "local: *; };" >> $output_objdir/$libname.ver~
9694               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9695           fi
9696           ;;
9697         esac
9698       else
9699         ld_shlibs=no
9700       fi
9701       ;;
9702
9703     netbsd*)
9704       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9705         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9706         wlarc=
9707       else
9708         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9709         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9710       fi
9711       ;;
9712
9713     solaris*)
9714       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9715         ld_shlibs=no
9716         cat <<_LT_EOF 1>&2
9717
9718 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9719 *** create shared libraries on Solaris systems.  Therefore, libtool
9720 *** is disabling shared libraries support.  We urge you to upgrade GNU
9721 *** binutils to release 2.9.1 or newer.  Another option is to modify
9722 *** your PATH or compiler configuration so that the native linker is
9723 *** used, and then restart.
9724
9725 _LT_EOF
9726       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9727         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9728         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9729       else
9730         ld_shlibs=no
9731       fi
9732       ;;
9733
9734     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9735       case `$LD -v 2>&1` in
9736         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9737         ld_shlibs=no
9738         cat <<_LT_EOF 1>&2
9739
9740 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9741 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9742 *** is disabling shared libraries support.  We urge you to upgrade GNU
9743 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9744 *** your PATH or compiler configuration so that the native linker is
9745 *** used, and then restart.
9746
9747 _LT_EOF
9748         ;;
9749         *)
9750           # For security reasons, it is highly recommended that you always
9751           # use absolute paths for naming shared libraries, and exclude the
9752           # DT_RUNPATH tag from executables and libraries.  But doing so
9753           # requires that you compile everything twice, which is a pain.
9754           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9755             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9756             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9757             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9758           else
9759             ld_shlibs=no
9760           fi
9761         ;;
9762       esac
9763       ;;
9764
9765     sunos4*)
9766       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9767       wlarc=
9768       hardcode_direct=yes
9769       hardcode_shlibpath_var=no
9770       ;;
9771
9772     *)
9773       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9774         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9775         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9776       else
9777         ld_shlibs=no
9778       fi
9779       ;;
9780     esac
9781
9782     if test no = "$ld_shlibs"; then
9783       runpath_var=
9784       hardcode_libdir_flag_spec=
9785       export_dynamic_flag_spec=
9786       whole_archive_flag_spec=
9787     fi
9788   else
9789     # PORTME fill in a description of your system's linker (not GNU ld)
9790     case $host_os in
9791     aix3*)
9792       allow_undefined_flag=unsupported
9793       always_export_symbols=yes
9794       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'
9795       # Note: this linker hardcodes the directories in LIBPATH if there
9796       # are no directories specified by -L.
9797       hardcode_minus_L=yes
9798       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9799         # Neither direct hardcoding nor static linking is supported with a
9800         # broken collect2.
9801         hardcode_direct=unsupported
9802       fi
9803       ;;
9804
9805     aix[4-9]*)
9806       if test ia64 = "$host_cpu"; then
9807         # On IA64, the linker does run time linking by default, so we don't
9808         # have to do anything special.
9809         aix_use_runtimelinking=no
9810         exp_sym_flag='-Bexport'
9811         no_entry_flag=
9812       else
9813         # If we're using GNU nm, then we don't want the "-C" option.
9814         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9815         # Without the "-l" option, or with the "-B" option, AIX nm treats
9816         # weak defined symbols like other global defined symbols, whereas
9817         # GNU nm marks them as "W".
9818         # While the 'weak' keyword is ignored in the Export File, we need
9819         # it in the Import File for the 'aix-soname' feature, so we have
9820         # to replace the "-B" option with "-P" for AIX nm.
9821         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9822           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'
9823         else
9824           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'
9825         fi
9826         aix_use_runtimelinking=no
9827
9828         # Test if we are trying to use run time linking or normal
9829         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9830         # have runtime linking enabled, and use it for executables.
9831         # For shared libraries, we enable/disable runtime linking
9832         # depending on the kind of the shared library created -
9833         # when "with_aix_soname,aix_use_runtimelinking" is:
9834         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9835         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9836         #            lib.a           static archive
9837         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9838         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9839         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9840         #            lib.a(lib.so.V) shared, rtl:no
9841         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9842         #            lib.a           static archive
9843         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9844           for ld_flag in $LDFLAGS; do
9845           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9846             aix_use_runtimelinking=yes
9847             break
9848           fi
9849           done
9850           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9851             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9852             # so we don't have lib.a shared libs to link our executables.
9853             # We have to force runtime linking in this case.
9854             aix_use_runtimelinking=yes
9855             LDFLAGS="$LDFLAGS -Wl,-brtl"
9856           fi
9857           ;;
9858         esac
9859
9860         exp_sym_flag='-bexport'
9861         no_entry_flag='-bnoentry'
9862       fi
9863
9864       # When large executables or shared objects are built, AIX ld can
9865       # have problems creating the table of contents.  If linking a library
9866       # or program results in "error TOC overflow" add -mminimal-toc to
9867       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9868       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9869
9870       archive_cmds=''
9871       hardcode_direct=yes
9872       hardcode_direct_absolute=yes
9873       hardcode_libdir_separator=':'
9874       link_all_deplibs=yes
9875       file_list_spec='$wl-f,'
9876       case $with_aix_soname,$aix_use_runtimelinking in
9877       aix,*) ;; # traditional, no import file
9878       svr4,* | *,yes) # use import file
9879         # The Import File defines what to hardcode.
9880         hardcode_direct=no
9881         hardcode_direct_absolute=no
9882         ;;
9883       esac
9884
9885       if test yes = "$GCC"; then
9886         case $host_os in aix4.[012]|aix4.[012].*)
9887         # We only want to do this on AIX 4.2 and lower, the check
9888         # below for broken collect2 doesn't work under 4.3+
9889           collect2name=`$CC -print-prog-name=collect2`
9890           if test -f "$collect2name" &&
9891            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9892           then
9893           # We have reworked collect2
9894           :
9895           else
9896           # We have old collect2
9897           hardcode_direct=unsupported
9898           # It fails to find uninstalled libraries when the uninstalled
9899           # path is not listed in the libpath.  Setting hardcode_minus_L
9900           # to unsupported forces relinking
9901           hardcode_minus_L=yes
9902           hardcode_libdir_flag_spec='-L$libdir'
9903           hardcode_libdir_separator=
9904           fi
9905           ;;
9906         esac
9907         shared_flag='-shared'
9908         if test yes = "$aix_use_runtimelinking"; then
9909           shared_flag="$shared_flag "'$wl-G'
9910         fi
9911         # Need to ensure runtime linking is disabled for the traditional
9912         # shared library, or the linker may eventually find shared libraries
9913         # /with/ Import File - we do not want to mix them.
9914         shared_flag_aix='-shared'
9915         shared_flag_svr4='-shared $wl-G'
9916       else
9917         # not using gcc
9918         if test ia64 = "$host_cpu"; then
9919         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9920         # chokes on -Wl,-G. The following line is correct:
9921           shared_flag='-G'
9922         else
9923           if test yes = "$aix_use_runtimelinking"; then
9924             shared_flag='$wl-G'
9925           else
9926             shared_flag='$wl-bM:SRE'
9927           fi
9928           shared_flag_aix='$wl-bM:SRE'
9929           shared_flag_svr4='$wl-G'
9930         fi
9931       fi
9932
9933       export_dynamic_flag_spec='$wl-bexpall'
9934       # It seems that -bexpall does not export symbols beginning with
9935       # underscore (_), so it is better to generate a list of symbols to export.
9936       always_export_symbols=yes
9937       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9938         # Warning - without using the other runtime loading flags (-brtl),
9939         # -berok will link without error, but may produce a broken library.
9940         allow_undefined_flag='-berok'
9941         # Determine the default libpath from the value encoded in an
9942         # empty executable.
9943         if test set = "${lt_cv_aix_libpath+set}"; then
9944   aix_libpath=$lt_cv_aix_libpath
9945 else
9946   if test ${lt_cv_aix_libpath_+y}
9947 then :
9948   printf %s "(cached) " >&6
9949 else $as_nop
9950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h.  */
9952
9953 int
9954 main (void)
9955 {
9956
9957   ;
9958   return 0;
9959 }
9960 _ACEOF
9961 if ac_fn_c_try_link "$LINENO"
9962 then :
9963
9964   lt_aix_libpath_sed='
9965       /Import File Strings/,/^$/ {
9966           /^0/ {
9967               s/^0  *\([^ ]*\) *$/\1/
9968               p
9969           }
9970       }'
9971   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9972   # Check for a 64-bit object if we didn't find anything.
9973   if test -z "$lt_cv_aix_libpath_"; then
9974     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9975   fi
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9978     conftest$ac_exeext conftest.$ac_ext
9979   if test -z "$lt_cv_aix_libpath_"; then
9980     lt_cv_aix_libpath_=/usr/lib:/lib
9981   fi
9982
9983 fi
9984
9985   aix_libpath=$lt_cv_aix_libpath_
9986 fi
9987
9988         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9989         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
9990       else
9991         if test ia64 = "$host_cpu"; then
9992           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9993           allow_undefined_flag="-z nodefs"
9994           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"
9995         else
9996          # Determine the default libpath from the value encoded in an
9997          # empty executable.
9998          if test set = "${lt_cv_aix_libpath+set}"; then
9999   aix_libpath=$lt_cv_aix_libpath
10000 else
10001   if test ${lt_cv_aix_libpath_+y}
10002 then :
10003   printf %s "(cached) " >&6
10004 else $as_nop
10005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h.  */
10007
10008 int
10009 main (void)
10010 {
10011
10012   ;
10013   return 0;
10014 }
10015 _ACEOF
10016 if ac_fn_c_try_link "$LINENO"
10017 then :
10018
10019   lt_aix_libpath_sed='
10020       /Import File Strings/,/^$/ {
10021           /^0/ {
10022               s/^0  *\([^ ]*\) *$/\1/
10023               p
10024           }
10025       }'
10026   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10027   # Check for a 64-bit object if we didn't find anything.
10028   if test -z "$lt_cv_aix_libpath_"; then
10029     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10030   fi
10031 fi
10032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10033     conftest$ac_exeext conftest.$ac_ext
10034   if test -z "$lt_cv_aix_libpath_"; then
10035     lt_cv_aix_libpath_=/usr/lib:/lib
10036   fi
10037
10038 fi
10039
10040   aix_libpath=$lt_cv_aix_libpath_
10041 fi
10042
10043          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10044           # Warning - without using the other run time loading flags,
10045           # -berok will link without error, but may produce a broken library.
10046           no_undefined_flag=' $wl-bernotok'
10047           allow_undefined_flag=' $wl-berok'
10048           if test yes = "$with_gnu_ld"; then
10049             # We only use this code for GNU lds that support --whole-archive.
10050             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10051           else
10052             # Exported symbols can be pulled into shared objects from archives
10053             whole_archive_flag_spec='$convenience'
10054           fi
10055           archive_cmds_need_lc=yes
10056           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10057           # -brtl affects multiple linker settings, -berok does not and is overridden later
10058           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10059           if test svr4 != "$with_aix_soname"; then
10060             # This is similar to how AIX traditionally builds its shared libraries.
10061             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'
10062           fi
10063           if test aix != "$with_aix_soname"; then
10064             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'
10065           else
10066             # used by -dlpreopen to get the symbols
10067             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10068           fi
10069           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10070         fi
10071       fi
10072       ;;
10073
10074     amigaos*)
10075       case $host_cpu in
10076       powerpc)
10077             # see comment about AmigaOS4 .so support
10078             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10079             archive_expsym_cmds=''
10080         ;;
10081       m68k)
10082             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)'
10083             hardcode_libdir_flag_spec='-L$libdir'
10084             hardcode_minus_L=yes
10085         ;;
10086       esac
10087       ;;
10088
10089     bsdi[45]*)
10090       export_dynamic_flag_spec=-rdynamic
10091       ;;
10092
10093     cygwin* | mingw* | pw32* | cegcc*)
10094       # When not using gcc, we currently assume that we are using
10095       # Microsoft Visual C++ or Intel C++ Compiler.
10096       # hardcode_libdir_flag_spec is actually meaningless, as there is
10097       # no search path for DLLs.
10098       case $cc_basename in
10099       cl* | icl*)
10100         # Native MSVC or ICC
10101         hardcode_libdir_flag_spec=' '
10102         allow_undefined_flag=unsupported
10103         always_export_symbols=yes
10104         file_list_spec='@'
10105         # Tell ltmain to make .lib files, not .a files.
10106         libext=lib
10107         # Tell ltmain to make .dll files, not .so files.
10108         shrext_cmds=.dll
10109         # FIXME: Setting linknames here is a bad hack.
10110         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10111         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10112             cp "$export_symbols" "$output_objdir/$soname.def";
10113             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10114           else
10115             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10116           fi~
10117           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10118           linknames='
10119         # The linker will not automatically build a static lib if we build a DLL.
10120         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10121         enable_shared_with_static_runtimes=yes
10122         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10123         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10124         # Don't use ranlib
10125         old_postinstall_cmds='chmod 644 $oldlib'
10126         postlink_cmds='lt_outputfile="@OUTPUT@"~
10127           lt_tool_outputfile="@TOOL_OUTPUT@"~
10128           case $lt_outputfile in
10129             *.exe|*.EXE) ;;
10130             *)
10131               lt_outputfile=$lt_outputfile.exe
10132               lt_tool_outputfile=$lt_tool_outputfile.exe
10133               ;;
10134           esac~
10135           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10136             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10137             $RM "$lt_outputfile.manifest";
10138           fi'
10139         ;;
10140       *)
10141         # Assume MSVC and ICC wrapper
10142         hardcode_libdir_flag_spec=' '
10143         allow_undefined_flag=unsupported
10144         # Tell ltmain to make .lib files, not .a files.
10145         libext=lib
10146         # Tell ltmain to make .dll files, not .so files.
10147         shrext_cmds=.dll
10148         # FIXME: Setting linknames here is a bad hack.
10149         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10150         # The linker will automatically build a .lib file if we build a DLL.
10151         old_archive_from_new_cmds='true'
10152         # FIXME: Should let the user specify the lib program.
10153         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10154         enable_shared_with_static_runtimes=yes
10155         ;;
10156       esac
10157       ;;
10158
10159     darwin* | rhapsody*)
10160
10161
10162   archive_cmds_need_lc=no
10163   hardcode_direct=no
10164   hardcode_automatic=yes
10165   hardcode_shlibpath_var=unsupported
10166   if test yes = "$lt_cv_ld_force_load"; then
10167     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\"`'
10168
10169   else
10170     whole_archive_flag_spec=''
10171   fi
10172   link_all_deplibs=yes
10173   allow_undefined_flag=$_lt_dar_allow_undefined
10174   case $cc_basename in
10175      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10176      *) _lt_dar_can_shared=$GCC ;;
10177   esac
10178   if test yes = "$_lt_dar_can_shared"; then
10179     output_verbose_link_cmd=func_echo_all
10180     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10181     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10182     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"
10183     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"
10184
10185   else
10186   ld_shlibs=no
10187   fi
10188
10189       ;;
10190
10191     dgux*)
10192       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193       hardcode_libdir_flag_spec='-L$libdir'
10194       hardcode_shlibpath_var=no
10195       ;;
10196
10197     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10198     # support.  Future versions do this automatically, but an explicit c++rt0.o
10199     # does not break anything, and helps significantly (at the cost of a little
10200     # extra space).
10201     freebsd2.2*)
10202       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10203       hardcode_libdir_flag_spec='-R$libdir'
10204       hardcode_direct=yes
10205       hardcode_shlibpath_var=no
10206       ;;
10207
10208     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10209     freebsd2.*)
10210       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10211       hardcode_direct=yes
10212       hardcode_minus_L=yes
10213       hardcode_shlibpath_var=no
10214       ;;
10215
10216     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10217     freebsd* | dragonfly* | midnightbsd*)
10218       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10219       hardcode_libdir_flag_spec='-R$libdir'
10220       hardcode_direct=yes
10221       hardcode_shlibpath_var=no
10222       ;;
10223
10224     hpux9*)
10225       if test yes = "$GCC"; then
10226         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'
10227       else
10228         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'
10229       fi
10230       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10231       hardcode_libdir_separator=:
10232       hardcode_direct=yes
10233
10234       # hardcode_minus_L: Not really in the search PATH,
10235       # but as the default location of the library.
10236       hardcode_minus_L=yes
10237       export_dynamic_flag_spec='$wl-E'
10238       ;;
10239
10240     hpux10*)
10241       if test yes,no = "$GCC,$with_gnu_ld"; then
10242         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10243       else
10244         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10245       fi
10246       if test no = "$with_gnu_ld"; then
10247         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10248         hardcode_libdir_separator=:
10249         hardcode_direct=yes
10250         hardcode_direct_absolute=yes
10251         export_dynamic_flag_spec='$wl-E'
10252         # hardcode_minus_L: Not really in the search PATH,
10253         # but as the default location of the library.
10254         hardcode_minus_L=yes
10255       fi
10256       ;;
10257
10258     hpux11*)
10259       if test yes,no = "$GCC,$with_gnu_ld"; then
10260         case $host_cpu in
10261         hppa*64*)
10262           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10263           ;;
10264         ia64*)
10265           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10266           ;;
10267         *)
10268           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10269           ;;
10270         esac
10271       else
10272         case $host_cpu in
10273         hppa*64*)
10274           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10275           ;;
10276         ia64*)
10277           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10278           ;;
10279         *)
10280
10281           # Older versions of the 11.00 compiler do not understand -b yet
10282           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10283           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10284 printf %s "checking if $CC understands -b... " >&6; }
10285 if test ${lt_cv_prog_compiler__b+y}
10286 then :
10287   printf %s "(cached) " >&6
10288 else $as_nop
10289   lt_cv_prog_compiler__b=no
10290    save_LDFLAGS=$LDFLAGS
10291    LDFLAGS="$LDFLAGS -b"
10292    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10293    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10294      # The linker can only warn and ignore the option if not recognized
10295      # So say no if there are warnings
10296      if test -s conftest.err; then
10297        # Append any errors to the config.log.
10298        cat conftest.err 1>&5
10299        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10300        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10301        if diff conftest.exp conftest.er2 >/dev/null; then
10302          lt_cv_prog_compiler__b=yes
10303        fi
10304      else
10305        lt_cv_prog_compiler__b=yes
10306      fi
10307    fi
10308    $RM -r conftest*
10309    LDFLAGS=$save_LDFLAGS
10310
10311 fi
10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10313 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10314
10315 if test yes = "$lt_cv_prog_compiler__b"; then
10316     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10317 else
10318     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10319 fi
10320
10321           ;;
10322         esac
10323       fi
10324       if test no = "$with_gnu_ld"; then
10325         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10326         hardcode_libdir_separator=:
10327
10328         case $host_cpu in
10329         hppa*64*|ia64*)
10330           hardcode_direct=no
10331           hardcode_shlibpath_var=no
10332           ;;
10333         *)
10334           hardcode_direct=yes
10335           hardcode_direct_absolute=yes
10336           export_dynamic_flag_spec='$wl-E'
10337
10338           # hardcode_minus_L: Not really in the search PATH,
10339           # but as the default location of the library.
10340           hardcode_minus_L=yes
10341           ;;
10342         esac
10343       fi
10344       ;;
10345
10346     irix5* | irix6* | nonstopux*)
10347       if test yes = "$GCC"; then
10348         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'
10349         # Try to use the -exported_symbol ld option, if it does not
10350         # work, assume that -exports_file does not work either and
10351         # implicitly export all symbols.
10352         # This should be the same for all languages, so no per-tag cache variable.
10353         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10354 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10355 if test ${lt_cv_irix_exported_symbol+y}
10356 then :
10357   printf %s "(cached) " >&6
10358 else $as_nop
10359   save_LDFLAGS=$LDFLAGS
10360            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10361            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h.  */
10363 int foo (void) { return 0; }
10364 _ACEOF
10365 if ac_fn_c_try_link "$LINENO"
10366 then :
10367   lt_cv_irix_exported_symbol=yes
10368 else $as_nop
10369   lt_cv_irix_exported_symbol=no
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10372     conftest$ac_exeext conftest.$ac_ext
10373            LDFLAGS=$save_LDFLAGS
10374 fi
10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10376 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10377         if test yes = "$lt_cv_irix_exported_symbol"; then
10378           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'
10379         fi
10380       else
10381         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'
10382         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'
10383       fi
10384       archive_cmds_need_lc='no'
10385       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10386       hardcode_libdir_separator=:
10387       inherit_rpath=yes
10388       link_all_deplibs=yes
10389       ;;
10390
10391     linux*)
10392       case $cc_basename in
10393       tcc*)
10394         # Fabrice Bellard et al's Tiny C Compiler
10395         ld_shlibs=yes
10396         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10397         ;;
10398       esac
10399       ;;
10400
10401     netbsd*)
10402       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10403         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10404       else
10405         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10406       fi
10407       hardcode_libdir_flag_spec='-R$libdir'
10408       hardcode_direct=yes
10409       hardcode_shlibpath_var=no
10410       ;;
10411
10412     newsos6)
10413       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414       hardcode_direct=yes
10415       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10416       hardcode_libdir_separator=:
10417       hardcode_shlibpath_var=no
10418       ;;
10419
10420     *nto* | *qnx*)
10421       ;;
10422
10423     openbsd* | bitrig*)
10424       if test -f /usr/libexec/ld.so; then
10425         hardcode_direct=yes
10426         hardcode_shlibpath_var=no
10427         hardcode_direct_absolute=yes
10428         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10429           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10430           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10431           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10432           export_dynamic_flag_spec='$wl-E'
10433         else
10434           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10435           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10436         fi
10437       else
10438         ld_shlibs=no
10439       fi
10440       ;;
10441
10442     os2*)
10443       hardcode_libdir_flag_spec='-L$libdir'
10444       hardcode_minus_L=yes
10445       allow_undefined_flag=unsupported
10446       shrext_cmds=.dll
10447       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10448         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10449         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10450         $ECHO EXPORTS >> $output_objdir/$libname.def~
10451         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10452         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10453         emximp -o $lib $output_objdir/$libname.def'
10454       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10455         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10456         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10457         $ECHO EXPORTS >> $output_objdir/$libname.def~
10458         prefix_cmds="$SED"~
10459         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10460           prefix_cmds="$prefix_cmds -e 1d";
10461         fi~
10462         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10463         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10464         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10465         emximp -o $lib $output_objdir/$libname.def'
10466       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10467       enable_shared_with_static_runtimes=yes
10468       file_list_spec='@'
10469       ;;
10470
10471     osf3*)
10472       if test yes = "$GCC"; then
10473         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10474         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'
10475       else
10476         allow_undefined_flag=' -expect_unresolved \*'
10477         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'
10478       fi
10479       archive_cmds_need_lc='no'
10480       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10481       hardcode_libdir_separator=:
10482       ;;
10483
10484     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10485       if test yes = "$GCC"; then
10486         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10487         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'
10488         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10489       else
10490         allow_undefined_flag=' -expect_unresolved \*'
10491         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'
10492         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~
10493           $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'
10494
10495         # Both c and cxx compiler support -rpath directly
10496         hardcode_libdir_flag_spec='-rpath $libdir'
10497       fi
10498       archive_cmds_need_lc='no'
10499       hardcode_libdir_separator=:
10500       ;;
10501
10502     solaris*)
10503       no_undefined_flag=' -z defs'
10504       if test yes = "$GCC"; then
10505         wlarc='$wl'
10506         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10507         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10508           $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'
10509       else
10510         case `$CC -V 2>&1` in
10511         *"Compilers 5.0"*)
10512           wlarc=''
10513           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10515             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10516           ;;
10517         *)
10518           wlarc='$wl'
10519           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10520           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10521             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10522           ;;
10523         esac
10524       fi
10525       hardcode_libdir_flag_spec='-R$libdir'
10526       hardcode_shlibpath_var=no
10527       case $host_os in
10528       solaris2.[0-5] | solaris2.[0-5].*) ;;
10529       *)
10530         # The compiler driver will combine and reorder linker options,
10531         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10532         # but is careful enough not to reorder.
10533         # Supported since Solaris 2.6 (maybe 2.5.1?)
10534         if test yes = "$GCC"; then
10535           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10536         else
10537           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10538         fi
10539         ;;
10540       esac
10541       link_all_deplibs=yes
10542       ;;
10543
10544     sunos4*)
10545       if test sequent = "$host_vendor"; then
10546         # Use $CC to link under sequent, because it throws in some extra .o
10547         # files that make .init and .fini sections work.
10548         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10549       else
10550         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10551       fi
10552       hardcode_libdir_flag_spec='-L$libdir'
10553       hardcode_direct=yes
10554       hardcode_minus_L=yes
10555       hardcode_shlibpath_var=no
10556       ;;
10557
10558     sysv4)
10559       case $host_vendor in
10560         sni)
10561           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10562           hardcode_direct=yes # is this really true???
10563         ;;
10564         siemens)
10565           ## LD is ld it makes a PLAMLIB
10566           ## CC just makes a GrossModule.
10567           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10568           reload_cmds='$CC -r -o $output$reload_objs'
10569           hardcode_direct=no
10570         ;;
10571         motorola)
10572           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10574         ;;
10575       esac
10576       runpath_var='LD_RUN_PATH'
10577       hardcode_shlibpath_var=no
10578       ;;
10579
10580     sysv4.3*)
10581       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10582       hardcode_shlibpath_var=no
10583       export_dynamic_flag_spec='-Bexport'
10584       ;;
10585
10586     sysv4*MP*)
10587       if test -d /usr/nec; then
10588         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10589         hardcode_shlibpath_var=no
10590         runpath_var=LD_RUN_PATH
10591         hardcode_runpath_var=yes
10592         ld_shlibs=yes
10593       fi
10594       ;;
10595
10596     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10597       no_undefined_flag='$wl-z,text'
10598       archive_cmds_need_lc=no
10599       hardcode_shlibpath_var=no
10600       runpath_var='LD_RUN_PATH'
10601
10602       if test yes = "$GCC"; then
10603         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10604         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10605       else
10606         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10607         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10608       fi
10609       ;;
10610
10611     sysv5* | sco3.2v5* | sco5v6*)
10612       # Note: We CANNOT use -z defs as we might desire, because we do not
10613       # link with -lc, and that would cause any symbols used from libc to
10614       # always be unresolved, which means just about no library would
10615       # ever link correctly.  If we're not using GNU ld we use -z text
10616       # though, which does catch some bad symbols but isn't as heavy-handed
10617       # as -z defs.
10618       no_undefined_flag='$wl-z,text'
10619       allow_undefined_flag='$wl-z,nodefs'
10620       archive_cmds_need_lc=no
10621       hardcode_shlibpath_var=no
10622       hardcode_libdir_flag_spec='$wl-R,$libdir'
10623       hardcode_libdir_separator=':'
10624       link_all_deplibs=yes
10625       export_dynamic_flag_spec='$wl-Bexport'
10626       runpath_var='LD_RUN_PATH'
10627
10628       if test yes = "$GCC"; then
10629         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10631       else
10632         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10633         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10634       fi
10635       ;;
10636
10637     uts4*)
10638       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639       hardcode_libdir_flag_spec='-L$libdir'
10640       hardcode_shlibpath_var=no
10641       ;;
10642
10643     *)
10644       ld_shlibs=no
10645       ;;
10646     esac
10647
10648     if test sni = "$host_vendor"; then
10649       case $host in
10650       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10651         export_dynamic_flag_spec='$wl-Blargedynsym'
10652         ;;
10653       esac
10654     fi
10655   fi
10656
10657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10658 printf "%s\n" "$ld_shlibs" >&6; }
10659 test no = "$ld_shlibs" && can_build_shared=no
10660
10661 with_gnu_ld=$with_gnu_ld
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677 #
10678 # Do we need to explicitly link libc?
10679 #
10680 case "x$archive_cmds_need_lc" in
10681 x|xyes)
10682   # Assume -lc should be added
10683   archive_cmds_need_lc=yes
10684
10685   if test yes,yes = "$GCC,$enable_shared"; then
10686     case $archive_cmds in
10687     *'~'*)
10688       # FIXME: we may have to deal with multi-command sequences.
10689       ;;
10690     '$CC '*)
10691       # Test whether the compiler implicitly links with -lc since on some
10692       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10693       # to ld, don't add -lc before -lgcc.
10694       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10695 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10696 if test ${lt_cv_archive_cmds_need_lc+y}
10697 then :
10698   printf %s "(cached) " >&6
10699 else $as_nop
10700   $RM conftest*
10701         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10702
10703         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10704   (eval $ac_compile) 2>&5
10705   ac_status=$?
10706   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10707   test $ac_status = 0; } 2>conftest.err; then
10708           soname=conftest
10709           lib=conftest
10710           libobjs=conftest.$ac_objext
10711           deplibs=
10712           wl=$lt_prog_compiler_wl
10713           pic_flag=$lt_prog_compiler_pic
10714           compiler_flags=-v
10715           linker_flags=-v
10716           verstring=
10717           output_objdir=.
10718           libname=conftest
10719           lt_save_allow_undefined_flag=$allow_undefined_flag
10720           allow_undefined_flag=
10721           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10722   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10723   ac_status=$?
10724   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10725   test $ac_status = 0; }
10726           then
10727             lt_cv_archive_cmds_need_lc=no
10728           else
10729             lt_cv_archive_cmds_need_lc=yes
10730           fi
10731           allow_undefined_flag=$lt_save_allow_undefined_flag
10732         else
10733           cat conftest.err 1>&5
10734         fi
10735         $RM conftest*
10736
10737 fi
10738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10739 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10740       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10741       ;;
10742     esac
10743   fi
10744   ;;
10745 esac
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10899 printf %s "checking dynamic linker characteristics... " >&6; }
10900
10901 if test yes = "$GCC"; then
10902   case $host_os in
10903     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10904     *) lt_awk_arg='/^libraries:/' ;;
10905   esac
10906   case $host_os in
10907     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10908     *) lt_sed_strip_eq='s|=/|/|g' ;;
10909   esac
10910   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10911   case $lt_search_path_spec in
10912   *\;*)
10913     # if the path contains ";" then we assume it to be the separator
10914     # otherwise default to the standard path separator (i.e. ":") - it is
10915     # assumed that no part of a normal pathname contains ";" but that should
10916     # okay in the real world where ";" in dirpaths is itself problematic.
10917     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10918     ;;
10919   *)
10920     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10921     ;;
10922   esac
10923   # Ok, now we have the path, separated by spaces, we can step through it
10924   # and add multilib dir if necessary...
10925   lt_tmp_lt_search_path_spec=
10926   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10927   # ...but if some path component already ends with the multilib dir we assume
10928   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10929   case "$lt_multi_os_dir; $lt_search_path_spec " in
10930   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10931     lt_multi_os_dir=
10932     ;;
10933   esac
10934   for lt_sys_path in $lt_search_path_spec; do
10935     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10936       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10937     elif test -n "$lt_multi_os_dir"; then
10938       test -d "$lt_sys_path" && \
10939         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10940     fi
10941   done
10942   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10943 BEGIN {RS = " "; FS = "/|\n";} {
10944   lt_foo = "";
10945   lt_count = 0;
10946   for (lt_i = NF; lt_i > 0; lt_i--) {
10947     if ($lt_i != "" && $lt_i != ".") {
10948       if ($lt_i == "..") {
10949         lt_count++;
10950       } else {
10951         if (lt_count == 0) {
10952           lt_foo = "/" $lt_i lt_foo;
10953         } else {
10954           lt_count--;
10955         }
10956       }
10957     }
10958   }
10959   if (lt_foo != "") { lt_freq[lt_foo]++; }
10960   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10961 }'`
10962   # AWK program above erroneously prepends '/' to C:/dos/paths
10963   # for these hosts.
10964   case $host_os in
10965     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10966       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10967   esac
10968   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10969 else
10970   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10971 fi
10972 library_names_spec=
10973 libname_spec='lib$name'
10974 soname_spec=
10975 shrext_cmds=.so
10976 postinstall_cmds=
10977 postuninstall_cmds=
10978 finish_cmds=
10979 finish_eval=
10980 shlibpath_var=
10981 shlibpath_overrides_runpath=unknown
10982 version_type=none
10983 dynamic_linker="$host_os ld.so"
10984 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10985 need_lib_prefix=unknown
10986 hardcode_into_libs=no
10987
10988 # when you set need_version to no, make sure it does not cause -set_version
10989 # flags to be left without arguments
10990 need_version=unknown
10991
10992
10993
10994 case $host_os in
10995 aix3*)
10996   version_type=linux # correct to gnu/linux during the next big refactor
10997   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10998   shlibpath_var=LIBPATH
10999
11000   # AIX 3 has no versioning support, so we append a major version to the name.
11001   soname_spec='$libname$release$shared_ext$major'
11002   ;;
11003
11004 aix[4-9]*)
11005   version_type=linux # correct to gnu/linux during the next big refactor
11006   need_lib_prefix=no
11007   need_version=no
11008   hardcode_into_libs=yes
11009   if test ia64 = "$host_cpu"; then
11010     # AIX 5 supports IA64
11011     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11012     shlibpath_var=LD_LIBRARY_PATH
11013   else
11014     # With GCC up to 2.95.x, collect2 would create an import file
11015     # for dependence libraries.  The import file would start with
11016     # the line '#! .'.  This would cause the generated library to
11017     # depend on '.', always an invalid library.  This was fixed in
11018     # development snapshots of GCC prior to 3.0.
11019     case $host_os in
11020       aix4 | aix4.[01] | aix4.[01].*)
11021       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11022            echo ' yes '
11023            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11024         :
11025       else
11026         can_build_shared=no
11027       fi
11028       ;;
11029     esac
11030     # Using Import Files as archive members, it is possible to support
11031     # filename-based versioning of shared library archives on AIX. While
11032     # this would work for both with and without runtime linking, it will
11033     # prevent static linking of such archives. So we do filename-based
11034     # shared library versioning with .so extension only, which is used
11035     # when both runtime linking and shared linking is enabled.
11036     # Unfortunately, runtime linking may impact performance, so we do
11037     # not want this to be the default eventually. Also, we use the
11038     # versioned .so libs for executables only if there is the -brtl
11039     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11040     # To allow for filename-based versioning support, we need to create
11041     # libNAME.so.V as an archive file, containing:
11042     # *) an Import File, referring to the versioned filename of the
11043     #    archive as well as the shared archive member, telling the
11044     #    bitwidth (32 or 64) of that shared object, and providing the
11045     #    list of exported symbols of that shared object, eventually
11046     #    decorated with the 'weak' keyword
11047     # *) the shared object with the F_LOADONLY flag set, to really avoid
11048     #    it being seen by the linker.
11049     # At run time we better use the real file rather than another symlink,
11050     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11051
11052     case $with_aix_soname,$aix_use_runtimelinking in
11053     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11054     # soname into executable. Probably we can add versioning support to
11055     # collect2, so additional links can be useful in future.
11056     aix,yes) # traditional libtool
11057       dynamic_linker='AIX unversionable lib.so'
11058       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11059       # instead of lib<name>.a to let people know that these are not
11060       # typical AIX shared libraries.
11061       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11062       ;;
11063     aix,no) # traditional AIX only
11064       dynamic_linker='AIX lib.a(lib.so.V)'
11065       # We preserve .a as extension for shared libraries through AIX4.2
11066       # and later when we are not doing run time linking.
11067       library_names_spec='$libname$release.a $libname.a'
11068       soname_spec='$libname$release$shared_ext$major'
11069       ;;
11070     svr4,*) # full svr4 only
11071       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11072       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11073       # We do not specify a path in Import Files, so LIBPATH fires.
11074       shlibpath_overrides_runpath=yes
11075       ;;
11076     *,yes) # both, prefer svr4
11077       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11078       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11079       # unpreferred sharedlib libNAME.a needs extra handling
11080       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"'
11081       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"'
11082       # We do not specify a path in Import Files, so LIBPATH fires.
11083       shlibpath_overrides_runpath=yes
11084       ;;
11085     *,no) # both, prefer aix
11086       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11087       library_names_spec='$libname$release.a $libname.a'
11088       soname_spec='$libname$release$shared_ext$major'
11089       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11090       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)'
11091       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"'
11092       ;;
11093     esac
11094     shlibpath_var=LIBPATH
11095   fi
11096   ;;
11097
11098 amigaos*)
11099   case $host_cpu in
11100   powerpc)
11101     # Since July 2007 AmigaOS4 officially supports .so libraries.
11102     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11103     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11104     ;;
11105   m68k)
11106     library_names_spec='$libname.ixlibrary $libname.a'
11107     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11108     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'
11109     ;;
11110   esac
11111   ;;
11112
11113 beos*)
11114   library_names_spec='$libname$shared_ext'
11115   dynamic_linker="$host_os ld.so"
11116   shlibpath_var=LIBRARY_PATH
11117   ;;
11118
11119 bsdi[45]*)
11120   version_type=linux # correct to gnu/linux during the next big refactor
11121   need_version=no
11122   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11123   soname_spec='$libname$release$shared_ext$major'
11124   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11125   shlibpath_var=LD_LIBRARY_PATH
11126   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11127   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11128   # the default ld.so.conf also contains /usr/contrib/lib and
11129   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11130   # libtool to hard-code these into programs
11131   ;;
11132
11133 cygwin* | mingw* | pw32* | cegcc*)
11134   version_type=windows
11135   shrext_cmds=.dll
11136   need_version=no
11137   need_lib_prefix=no
11138
11139   case $GCC,$cc_basename in
11140   yes,*)
11141     # gcc
11142     library_names_spec='$libname.dll.a'
11143     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11144     postinstall_cmds='base_file=`basename \$file`~
11145       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11146       dldir=$destdir/`dirname \$dlpath`~
11147       test -d \$dldir || mkdir -p \$dldir~
11148       $install_prog $dir/$dlname \$dldir/$dlname~
11149       chmod a+x \$dldir/$dlname~
11150       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11151         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11152       fi'
11153     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11154       dlpath=$dir/\$dldll~
11155        $RM \$dlpath'
11156     shlibpath_overrides_runpath=yes
11157
11158     case $host_os in
11159     cygwin*)
11160       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11161       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11162
11163       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11164       ;;
11165     mingw* | cegcc*)
11166       # MinGW DLLs use traditional 'lib' prefix
11167       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11168       ;;
11169     pw32*)
11170       # pw32 DLLs use 'pw' prefix rather than 'lib'
11171       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11172       ;;
11173     esac
11174     dynamic_linker='Win32 ld.exe'
11175     ;;
11176
11177   *,cl* | *,icl*)
11178     # Native MSVC or ICC
11179     libname_spec='$name'
11180     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11181     library_names_spec='$libname.dll.lib'
11182
11183     case $build_os in
11184     mingw*)
11185       sys_lib_search_path_spec=
11186       lt_save_ifs=$IFS
11187       IFS=';'
11188       for lt_path in $LIB
11189       do
11190         IFS=$lt_save_ifs
11191         # Let DOS variable expansion print the short 8.3 style file name.
11192         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11193         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11194       done
11195       IFS=$lt_save_ifs
11196       # Convert to MSYS style.
11197       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11198       ;;
11199     cygwin*)
11200       # Convert to unix form, then to dos form, then back to unix form
11201       # but this time dos style (no spaces!) so that the unix form looks
11202       # like /cygdrive/c/PROGRA~1:/cygdr...
11203       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11204       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11205       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11206       ;;
11207     *)
11208       sys_lib_search_path_spec=$LIB
11209       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11210         # It is most probably a Windows format PATH.
11211         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11212       else
11213         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11214       fi
11215       # FIXME: find the short name or the path components, as spaces are
11216       # common. (e.g. "Program Files" -> "PROGRA~1")
11217       ;;
11218     esac
11219
11220     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11221     postinstall_cmds='base_file=`basename \$file`~
11222       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11223       dldir=$destdir/`dirname \$dlpath`~
11224       test -d \$dldir || mkdir -p \$dldir~
11225       $install_prog $dir/$dlname \$dldir/$dlname'
11226     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11227       dlpath=$dir/\$dldll~
11228        $RM \$dlpath'
11229     shlibpath_overrides_runpath=yes
11230     dynamic_linker='Win32 link.exe'
11231     ;;
11232
11233   *)
11234     # Assume MSVC and ICC wrapper
11235     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11236     dynamic_linker='Win32 ld.exe'
11237     ;;
11238   esac
11239   # FIXME: first we should search . and the directory the executable is in
11240   shlibpath_var=PATH
11241   ;;
11242
11243 darwin* | rhapsody*)
11244   dynamic_linker="$host_os dyld"
11245   version_type=darwin
11246   need_lib_prefix=no
11247   need_version=no
11248   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11249   soname_spec='$libname$release$major$shared_ext'
11250   shlibpath_overrides_runpath=yes
11251   shlibpath_var=DYLD_LIBRARY_PATH
11252   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11253
11254   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11255   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11256   ;;
11257
11258 dgux*)
11259   version_type=linux # correct to gnu/linux during the next big refactor
11260   need_lib_prefix=no
11261   need_version=no
11262   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11263   soname_spec='$libname$release$shared_ext$major'
11264   shlibpath_var=LD_LIBRARY_PATH
11265   ;;
11266
11267 freebsd* | dragonfly* | midnightbsd*)
11268   # DragonFly does not have aout.  When/if they implement a new
11269   # versioning mechanism, adjust this.
11270   if test -x /usr/bin/objformat; then
11271     objformat=`/usr/bin/objformat`
11272   else
11273     case $host_os in
11274     freebsd[23].*) objformat=aout ;;
11275     *) objformat=elf ;;
11276     esac
11277   fi
11278   version_type=freebsd-$objformat
11279   case $version_type in
11280     freebsd-elf*)
11281       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11282       soname_spec='$libname$release$shared_ext$major'
11283       need_version=no
11284       need_lib_prefix=no
11285       ;;
11286     freebsd-*)
11287       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11288       need_version=yes
11289       ;;
11290   esac
11291   shlibpath_var=LD_LIBRARY_PATH
11292   case $host_os in
11293   freebsd2.*)
11294     shlibpath_overrides_runpath=yes
11295     ;;
11296   freebsd3.[01]* | freebsdelf3.[01]*)
11297     shlibpath_overrides_runpath=yes
11298     hardcode_into_libs=yes
11299     ;;
11300   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11301   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11302     shlibpath_overrides_runpath=no
11303     hardcode_into_libs=yes
11304     ;;
11305   *) # from 4.6 on, and DragonFly
11306     shlibpath_overrides_runpath=yes
11307     hardcode_into_libs=yes
11308     ;;
11309   esac
11310   ;;
11311
11312 haiku*)
11313   version_type=linux # correct to gnu/linux during the next big refactor
11314   need_lib_prefix=no
11315   need_version=no
11316   dynamic_linker="$host_os runtime_loader"
11317   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11318   soname_spec='$libname$release$shared_ext$major'
11319   shlibpath_var=LIBRARY_PATH
11320   shlibpath_overrides_runpath=no
11321   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11322   hardcode_into_libs=yes
11323   ;;
11324
11325 hpux9* | hpux10* | hpux11*)
11326   # Give a soname corresponding to the major version so that dld.sl refuses to
11327   # link against other versions.
11328   version_type=sunos
11329   need_lib_prefix=no
11330   need_version=no
11331   case $host_cpu in
11332   ia64*)
11333     shrext_cmds='.so'
11334     hardcode_into_libs=yes
11335     dynamic_linker="$host_os dld.so"
11336     shlibpath_var=LD_LIBRARY_PATH
11337     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11338     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11339     soname_spec='$libname$release$shared_ext$major'
11340     if test 32 = "$HPUX_IA64_MODE"; then
11341       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11342       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11343     else
11344       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11345       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11346     fi
11347     ;;
11348   hppa*64*)
11349     shrext_cmds='.sl'
11350     hardcode_into_libs=yes
11351     dynamic_linker="$host_os dld.sl"
11352     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11353     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11354     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11355     soname_spec='$libname$release$shared_ext$major'
11356     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11357     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11358     ;;
11359   *)
11360     shrext_cmds='.sl'
11361     dynamic_linker="$host_os dld.sl"
11362     shlibpath_var=SHLIB_PATH
11363     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11364     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11365     soname_spec='$libname$release$shared_ext$major'
11366     ;;
11367   esac
11368   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11369   postinstall_cmds='chmod 555 $lib'
11370   # or fails outright, so override atomically:
11371   install_override_mode=555
11372   ;;
11373
11374 interix[3-9]*)
11375   version_type=linux # correct to gnu/linux during the next big refactor
11376   need_lib_prefix=no
11377   need_version=no
11378   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11379   soname_spec='$libname$release$shared_ext$major'
11380   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11381   shlibpath_var=LD_LIBRARY_PATH
11382   shlibpath_overrides_runpath=no
11383   hardcode_into_libs=yes
11384   ;;
11385
11386 irix5* | irix6* | nonstopux*)
11387   case $host_os in
11388     nonstopux*) version_type=nonstopux ;;
11389     *)
11390         if test yes = "$lt_cv_prog_gnu_ld"; then
11391                 version_type=linux # correct to gnu/linux during the next big refactor
11392         else
11393                 version_type=irix
11394         fi ;;
11395   esac
11396   need_lib_prefix=no
11397   need_version=no
11398   soname_spec='$libname$release$shared_ext$major'
11399   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11400   case $host_os in
11401   irix5* | nonstopux*)
11402     libsuff= shlibsuff=
11403     ;;
11404   *)
11405     case $LD in # libtool.m4 will add one of these switches to LD
11406     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11407       libsuff= shlibsuff= libmagic=32-bit;;
11408     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11409       libsuff=32 shlibsuff=N32 libmagic=N32;;
11410     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11411       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11412     *) libsuff= shlibsuff= libmagic=never-match;;
11413     esac
11414     ;;
11415   esac
11416   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11417   shlibpath_overrides_runpath=no
11418   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11419   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11420   hardcode_into_libs=yes
11421   ;;
11422
11423 # No shared lib support for Linux oldld, aout, or coff.
11424 linux*oldld* | linux*aout* | linux*coff*)
11425   dynamic_linker=no
11426   ;;
11427
11428 linux*android*)
11429   version_type=none # Android doesn't support versioned libraries.
11430   need_lib_prefix=no
11431   need_version=no
11432   library_names_spec='$libname$release$shared_ext'
11433   soname_spec='$libname$release$shared_ext'
11434   finish_cmds=
11435   shlibpath_var=LD_LIBRARY_PATH
11436   shlibpath_overrides_runpath=yes
11437
11438   # This implies no fast_install, which is unacceptable.
11439   # Some rework will be needed to allow for fast_install
11440   # before this can be enabled.
11441   hardcode_into_libs=yes
11442
11443   dynamic_linker='Android linker'
11444   # Don't embed -rpath directories since the linker doesn't support them.
11445   hardcode_libdir_flag_spec='-L$libdir'
11446   ;;
11447
11448 # This must be glibc/ELF.
11449 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11450   version_type=linux # correct to gnu/linux during the next big refactor
11451   need_lib_prefix=no
11452   need_version=no
11453   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11454   soname_spec='$libname$release$shared_ext$major'
11455   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11456   shlibpath_var=LD_LIBRARY_PATH
11457   shlibpath_overrides_runpath=no
11458
11459   # Some binutils ld are patched to set DT_RUNPATH
11460   if test ${lt_cv_shlibpath_overrides_runpath+y}
11461 then :
11462   printf %s "(cached) " >&6
11463 else $as_nop
11464   lt_cv_shlibpath_overrides_runpath=no
11465     save_LDFLAGS=$LDFLAGS
11466     save_libdir=$libdir
11467     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11468          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11469     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h.  */
11471
11472 int
11473 main (void)
11474 {
11475
11476   ;
11477   return 0;
11478 }
11479 _ACEOF
11480 if ac_fn_c_try_link "$LINENO"
11481 then :
11482   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11483 then :
11484   lt_cv_shlibpath_overrides_runpath=yes
11485 fi
11486 fi
11487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11488     conftest$ac_exeext conftest.$ac_ext
11489     LDFLAGS=$save_LDFLAGS
11490     libdir=$save_libdir
11491
11492 fi
11493
11494   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11495
11496   # This implies no fast_install, which is unacceptable.
11497   # Some rework will be needed to allow for fast_install
11498   # before this can be enabled.
11499   hardcode_into_libs=yes
11500
11501   # Ideally, we could use ldconfig to report *all* directores which are
11502   # searched for libraries, however this is still not possible.  Aside from not
11503   # being certain /sbin/ldconfig is available, command
11504   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11505   # even though it is searched at run-time.  Try to do the best guess by
11506   # appending ld.so.conf contents (and includes) to the search path.
11507   if test -f /etc/ld.so.conf; then
11508     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' ' '`
11509     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11510   fi
11511
11512   # We used to test for /lib/ld.so.1 and disable shared libraries on
11513   # powerpc, because MkLinux only supported shared libraries with the
11514   # GNU dynamic linker.  Since this was broken with cross compilers,
11515   # most powerpc-linux boxes support dynamic linking these days and
11516   # people can always --disable-shared, the test was removed, and we
11517   # assume the GNU/Linux dynamic linker is in use.
11518   dynamic_linker='GNU/Linux ld.so'
11519   ;;
11520
11521 netbsd*)
11522   version_type=sunos
11523   need_lib_prefix=no
11524   need_version=no
11525   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11526     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11527     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11528     dynamic_linker='NetBSD (a.out) ld.so'
11529   else
11530     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531     soname_spec='$libname$release$shared_ext$major'
11532     dynamic_linker='NetBSD ld.elf_so'
11533   fi
11534   shlibpath_var=LD_LIBRARY_PATH
11535   shlibpath_overrides_runpath=yes
11536   hardcode_into_libs=yes
11537   ;;
11538
11539 newsos6)
11540   version_type=linux # correct to gnu/linux during the next big refactor
11541   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11542   shlibpath_var=LD_LIBRARY_PATH
11543   shlibpath_overrides_runpath=yes
11544   ;;
11545
11546 *nto* | *qnx*)
11547   version_type=qnx
11548   need_lib_prefix=no
11549   need_version=no
11550   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11551   soname_spec='$libname$release$shared_ext$major'
11552   shlibpath_var=LD_LIBRARY_PATH
11553   shlibpath_overrides_runpath=no
11554   hardcode_into_libs=yes
11555   dynamic_linker='ldqnx.so'
11556   ;;
11557
11558 openbsd* | bitrig*)
11559   version_type=sunos
11560   sys_lib_dlsearch_path_spec=/usr/lib
11561   need_lib_prefix=no
11562   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11563     need_version=no
11564   else
11565     need_version=yes
11566   fi
11567   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11568   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11569   shlibpath_var=LD_LIBRARY_PATH
11570   shlibpath_overrides_runpath=yes
11571   ;;
11572
11573 os2*)
11574   libname_spec='$name'
11575   version_type=windows
11576   shrext_cmds=.dll
11577   need_version=no
11578   need_lib_prefix=no
11579   # OS/2 can only load a DLL with a base name of 8 characters or less.
11580   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11581     v=$($ECHO $release$versuffix | tr -d .-);
11582     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11583     $ECHO $n$v`$shared_ext'
11584   library_names_spec='${libname}_dll.$libext'
11585   dynamic_linker='OS/2 ld.exe'
11586   shlibpath_var=BEGINLIBPATH
11587   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11588   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11589   postinstall_cmds='base_file=`basename \$file`~
11590     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11591     dldir=$destdir/`dirname \$dlpath`~
11592     test -d \$dldir || mkdir -p \$dldir~
11593     $install_prog $dir/$dlname \$dldir/$dlname~
11594     chmod a+x \$dldir/$dlname~
11595     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11596       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11597     fi'
11598   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11599     dlpath=$dir/\$dldll~
11600     $RM \$dlpath'
11601   ;;
11602
11603 osf3* | osf4* | osf5*)
11604   version_type=osf
11605   need_lib_prefix=no
11606   need_version=no
11607   soname_spec='$libname$release$shared_ext$major'
11608   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11609   shlibpath_var=LD_LIBRARY_PATH
11610   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11611   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11612   ;;
11613
11614 rdos*)
11615   dynamic_linker=no
11616   ;;
11617
11618 solaris*)
11619   version_type=linux # correct to gnu/linux during the next big refactor
11620   need_lib_prefix=no
11621   need_version=no
11622   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623   soname_spec='$libname$release$shared_ext$major'
11624   shlibpath_var=LD_LIBRARY_PATH
11625   shlibpath_overrides_runpath=yes
11626   hardcode_into_libs=yes
11627   # ldd complains unless libraries are executable
11628   postinstall_cmds='chmod +x $lib'
11629   ;;
11630
11631 sunos4*)
11632   version_type=sunos
11633   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11634   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11635   shlibpath_var=LD_LIBRARY_PATH
11636   shlibpath_overrides_runpath=yes
11637   if test yes = "$with_gnu_ld"; then
11638     need_lib_prefix=no
11639   fi
11640   need_version=yes
11641   ;;
11642
11643 sysv4 | sysv4.3*)
11644   version_type=linux # correct to gnu/linux during the next big refactor
11645   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11646   soname_spec='$libname$release$shared_ext$major'
11647   shlibpath_var=LD_LIBRARY_PATH
11648   case $host_vendor in
11649     sni)
11650       shlibpath_overrides_runpath=no
11651       need_lib_prefix=no
11652       runpath_var=LD_RUN_PATH
11653       ;;
11654     siemens)
11655       need_lib_prefix=no
11656       ;;
11657     motorola)
11658       need_lib_prefix=no
11659       need_version=no
11660       shlibpath_overrides_runpath=no
11661       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11662       ;;
11663   esac
11664   ;;
11665
11666 sysv4*MP*)
11667   if test -d /usr/nec; then
11668     version_type=linux # correct to gnu/linux during the next big refactor
11669     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11670     soname_spec='$libname$shared_ext.$major'
11671     shlibpath_var=LD_LIBRARY_PATH
11672   fi
11673   ;;
11674
11675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11676   version_type=sco
11677   need_lib_prefix=no
11678   need_version=no
11679   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11680   soname_spec='$libname$release$shared_ext$major'
11681   shlibpath_var=LD_LIBRARY_PATH
11682   shlibpath_overrides_runpath=yes
11683   hardcode_into_libs=yes
11684   if test yes = "$with_gnu_ld"; then
11685     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11686   else
11687     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11688     case $host_os in
11689       sco3.2v5*)
11690         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11691         ;;
11692     esac
11693   fi
11694   sys_lib_dlsearch_path_spec='/usr/lib'
11695   ;;
11696
11697 tpf*)
11698   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11699   version_type=linux # correct to gnu/linux during the next big refactor
11700   need_lib_prefix=no
11701   need_version=no
11702   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11703   shlibpath_var=LD_LIBRARY_PATH
11704   shlibpath_overrides_runpath=no
11705   hardcode_into_libs=yes
11706   ;;
11707
11708 uts4*)
11709   version_type=linux # correct to gnu/linux during the next big refactor
11710   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11711   soname_spec='$libname$release$shared_ext$major'
11712   shlibpath_var=LD_LIBRARY_PATH
11713   ;;
11714
11715 *)
11716   dynamic_linker=no
11717   ;;
11718 esac
11719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11720 printf "%s\n" "$dynamic_linker" >&6; }
11721 test no = "$dynamic_linker" && can_build_shared=no
11722
11723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11724 if test yes = "$GCC"; then
11725   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11726 fi
11727
11728 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11729   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11730 fi
11731
11732 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11733   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11734 fi
11735
11736 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11737 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11738
11739 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11740 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11741
11742 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11743 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11842 printf %s "checking how to hardcode library paths into programs... " >&6; }
11843 hardcode_action=
11844 if test -n "$hardcode_libdir_flag_spec" ||
11845    test -n "$runpath_var" ||
11846    test yes = "$hardcode_automatic"; then
11847
11848   # We can hardcode non-existent directories.
11849   if test no != "$hardcode_direct" &&
11850      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11851      # have to relink, otherwise we might link with an installed library
11852      # when we should be linking with a yet-to-be-installed one
11853      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11854      test no != "$hardcode_minus_L"; then
11855     # Linking always hardcodes the temporary library directory.
11856     hardcode_action=relink
11857   else
11858     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11859     hardcode_action=immediate
11860   fi
11861 else
11862   # We cannot hardcode anything, or else we can only hardcode existing
11863   # directories.
11864   hardcode_action=unsupported
11865 fi
11866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11867 printf "%s\n" "$hardcode_action" >&6; }
11868
11869 if test relink = "$hardcode_action" ||
11870    test yes = "$inherit_rpath"; then
11871   # Fast installation is not supported
11872   enable_fast_install=no
11873 elif test yes = "$shlibpath_overrides_runpath" ||
11874      test no = "$enable_shared"; then
11875   # Fast installation is not necessary
11876   enable_fast_install=needless
11877 fi
11878
11879
11880
11881
11882
11883
11884   if test yes != "$enable_dlopen"; then
11885   enable_dlopen=unknown
11886   enable_dlopen_self=unknown
11887   enable_dlopen_self_static=unknown
11888 else
11889   lt_cv_dlopen=no
11890   lt_cv_dlopen_libs=
11891
11892   case $host_os in
11893   beos*)
11894     lt_cv_dlopen=load_add_on
11895     lt_cv_dlopen_libs=
11896     lt_cv_dlopen_self=yes
11897     ;;
11898
11899   mingw* | pw32* | cegcc*)
11900     lt_cv_dlopen=LoadLibrary
11901     lt_cv_dlopen_libs=
11902     ;;
11903
11904   cygwin*)
11905     lt_cv_dlopen=dlopen
11906     lt_cv_dlopen_libs=
11907     ;;
11908
11909   darwin*)
11910     # if libdl is installed we need to link against it
11911     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11912 printf %s "checking for dlopen in -ldl... " >&6; }
11913 if test ${ac_cv_lib_dl_dlopen+y}
11914 then :
11915   printf %s "(cached) " >&6
11916 else $as_nop
11917   ac_check_lib_save_LIBS=$LIBS
11918 LIBS="-ldl  $LIBS"
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h.  */
11921
11922 /* Override any GCC internal prototype to avoid an error.
11923    Use char because int might match the return type of a GCC
11924    builtin and then its argument prototype would still apply.  */
11925 char dlopen ();
11926 int
11927 main (void)
11928 {
11929 return dlopen ();
11930   ;
11931   return 0;
11932 }
11933 _ACEOF
11934 if ac_fn_c_try_link "$LINENO"
11935 then :
11936   ac_cv_lib_dl_dlopen=yes
11937 else $as_nop
11938   ac_cv_lib_dl_dlopen=no
11939 fi
11940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11941     conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11943 fi
11944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11945 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11946 if test "x$ac_cv_lib_dl_dlopen" = xyes
11947 then :
11948   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11949 else $as_nop
11950
11951     lt_cv_dlopen=dyld
11952     lt_cv_dlopen_libs=
11953     lt_cv_dlopen_self=yes
11954
11955 fi
11956
11957     ;;
11958
11959   tpf*)
11960     # Don't try to run any link tests for TPF.  We know it's impossible
11961     # because TPF is a cross-compiler, and we know how we open DSOs.
11962     lt_cv_dlopen=dlopen
11963     lt_cv_dlopen_libs=
11964     lt_cv_dlopen_self=no
11965     ;;
11966
11967   *)
11968     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11969 if test "x$ac_cv_func_shl_load" = xyes
11970 then :
11971   lt_cv_dlopen=shl_load
11972 else $as_nop
11973   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11974 printf %s "checking for shl_load in -ldld... " >&6; }
11975 if test ${ac_cv_lib_dld_shl_load+y}
11976 then :
11977   printf %s "(cached) " >&6
11978 else $as_nop
11979   ac_check_lib_save_LIBS=$LIBS
11980 LIBS="-ldld  $LIBS"
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h.  */
11983
11984 /* Override any GCC internal prototype to avoid an error.
11985    Use char because int might match the return type of a GCC
11986    builtin and then its argument prototype would still apply.  */
11987 char shl_load ();
11988 int
11989 main (void)
11990 {
11991 return shl_load ();
11992   ;
11993   return 0;
11994 }
11995 _ACEOF
11996 if ac_fn_c_try_link "$LINENO"
11997 then :
11998   ac_cv_lib_dld_shl_load=yes
11999 else $as_nop
12000   ac_cv_lib_dld_shl_load=no
12001 fi
12002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12003     conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12005 fi
12006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12007 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12008 if test "x$ac_cv_lib_dld_shl_load" = xyes
12009 then :
12010   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12011 else $as_nop
12012   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12013 if test "x$ac_cv_func_dlopen" = xyes
12014 then :
12015   lt_cv_dlopen=dlopen
12016 else $as_nop
12017   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12018 printf %s "checking for dlopen in -ldl... " >&6; }
12019 if test ${ac_cv_lib_dl_dlopen+y}
12020 then :
12021   printf %s "(cached) " >&6
12022 else $as_nop
12023   ac_check_lib_save_LIBS=$LIBS
12024 LIBS="-ldl  $LIBS"
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h.  */
12027
12028 /* Override any GCC internal prototype to avoid an error.
12029    Use char because int might match the return type of a GCC
12030    builtin and then its argument prototype would still apply.  */
12031 char dlopen ();
12032 int
12033 main (void)
12034 {
12035 return dlopen ();
12036   ;
12037   return 0;
12038 }
12039 _ACEOF
12040 if ac_fn_c_try_link "$LINENO"
12041 then :
12042   ac_cv_lib_dl_dlopen=yes
12043 else $as_nop
12044   ac_cv_lib_dl_dlopen=no
12045 fi
12046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12047     conftest$ac_exeext conftest.$ac_ext
12048 LIBS=$ac_check_lib_save_LIBS
12049 fi
12050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12051 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12052 if test "x$ac_cv_lib_dl_dlopen" = xyes
12053 then :
12054   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12055 else $as_nop
12056   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12057 printf %s "checking for dlopen in -lsvld... " >&6; }
12058 if test ${ac_cv_lib_svld_dlopen+y}
12059 then :
12060   printf %s "(cached) " >&6
12061 else $as_nop
12062   ac_check_lib_save_LIBS=$LIBS
12063 LIBS="-lsvld  $LIBS"
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h.  */
12066
12067 /* Override any GCC internal prototype to avoid an error.
12068    Use char because int might match the return type of a GCC
12069    builtin and then its argument prototype would still apply.  */
12070 char dlopen ();
12071 int
12072 main (void)
12073 {
12074 return dlopen ();
12075   ;
12076   return 0;
12077 }
12078 _ACEOF
12079 if ac_fn_c_try_link "$LINENO"
12080 then :
12081   ac_cv_lib_svld_dlopen=yes
12082 else $as_nop
12083   ac_cv_lib_svld_dlopen=no
12084 fi
12085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12086     conftest$ac_exeext conftest.$ac_ext
12087 LIBS=$ac_check_lib_save_LIBS
12088 fi
12089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12090 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12091 if test "x$ac_cv_lib_svld_dlopen" = xyes
12092 then :
12093   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12094 else $as_nop
12095   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12096 printf %s "checking for dld_link in -ldld... " >&6; }
12097 if test ${ac_cv_lib_dld_dld_link+y}
12098 then :
12099   printf %s "(cached) " >&6
12100 else $as_nop
12101   ac_check_lib_save_LIBS=$LIBS
12102 LIBS="-ldld  $LIBS"
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h.  */
12105
12106 /* Override any GCC internal prototype to avoid an error.
12107    Use char because int might match the return type of a GCC
12108    builtin and then its argument prototype would still apply.  */
12109 char dld_link ();
12110 int
12111 main (void)
12112 {
12113 return dld_link ();
12114   ;
12115   return 0;
12116 }
12117 _ACEOF
12118 if ac_fn_c_try_link "$LINENO"
12119 then :
12120   ac_cv_lib_dld_dld_link=yes
12121 else $as_nop
12122   ac_cv_lib_dld_dld_link=no
12123 fi
12124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12125     conftest$ac_exeext conftest.$ac_ext
12126 LIBS=$ac_check_lib_save_LIBS
12127 fi
12128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12129 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12130 if test "x$ac_cv_lib_dld_dld_link" = xyes
12131 then :
12132   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12133 fi
12134
12135
12136 fi
12137
12138
12139 fi
12140
12141
12142 fi
12143
12144
12145 fi
12146
12147
12148 fi
12149
12150     ;;
12151   esac
12152
12153   if test no = "$lt_cv_dlopen"; then
12154     enable_dlopen=no
12155   else
12156     enable_dlopen=yes
12157   fi
12158
12159   case $lt_cv_dlopen in
12160   dlopen)
12161     save_CPPFLAGS=$CPPFLAGS
12162     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12163
12164     save_LDFLAGS=$LDFLAGS
12165     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12166
12167     save_LIBS=$LIBS
12168     LIBS="$lt_cv_dlopen_libs $LIBS"
12169
12170     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12171 printf %s "checking whether a program can dlopen itself... " >&6; }
12172 if test ${lt_cv_dlopen_self+y}
12173 then :
12174   printf %s "(cached) " >&6
12175 else $as_nop
12176           if test yes = "$cross_compiling"; then :
12177   lt_cv_dlopen_self=cross
12178 else
12179   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12180   lt_status=$lt_dlunknown
12181   cat > conftest.$ac_ext <<_LT_EOF
12182 #line $LINENO "configure"
12183 #include "confdefs.h"
12184
12185 #if HAVE_DLFCN_H
12186 #include <dlfcn.h>
12187 #endif
12188
12189 #include <stdio.h>
12190
12191 #ifdef RTLD_GLOBAL
12192 #  define LT_DLGLOBAL           RTLD_GLOBAL
12193 #else
12194 #  ifdef DL_GLOBAL
12195 #    define LT_DLGLOBAL         DL_GLOBAL
12196 #  else
12197 #    define LT_DLGLOBAL         0
12198 #  endif
12199 #endif
12200
12201 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12202    find out it does not work in some platform. */
12203 #ifndef LT_DLLAZY_OR_NOW
12204 #  ifdef RTLD_LAZY
12205 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12206 #  else
12207 #    ifdef DL_LAZY
12208 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12209 #    else
12210 #      ifdef RTLD_NOW
12211 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12212 #      else
12213 #        ifdef DL_NOW
12214 #          define LT_DLLAZY_OR_NOW      DL_NOW
12215 #        else
12216 #          define LT_DLLAZY_OR_NOW      0
12217 #        endif
12218 #      endif
12219 #    endif
12220 #  endif
12221 #endif
12222
12223 /* When -fvisibility=hidden is used, assume the code has been annotated
12224    correspondingly for the symbols needed.  */
12225 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12226 int fnord () __attribute__((visibility("default")));
12227 #endif
12228
12229 int fnord () { return 42; }
12230 int main ()
12231 {
12232   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12233   int status = $lt_dlunknown;
12234
12235   if (self)
12236     {
12237       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12238       else
12239         {
12240           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12241           else puts (dlerror ());
12242         }
12243       /* dlclose (self); */
12244     }
12245   else
12246     puts (dlerror ());
12247
12248   return status;
12249 }
12250 _LT_EOF
12251   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12252   (eval $ac_link) 2>&5
12253   ac_status=$?
12254   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12255   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12256     (./conftest; exit; ) >&5 2>/dev/null
12257     lt_status=$?
12258     case x$lt_status in
12259       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12260       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12261       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12262     esac
12263   else :
12264     # compilation failed
12265     lt_cv_dlopen_self=no
12266   fi
12267 fi
12268 rm -fr conftest*
12269
12270
12271 fi
12272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12273 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12274
12275     if test yes = "$lt_cv_dlopen_self"; then
12276       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12277       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12278 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12279 if test ${lt_cv_dlopen_self_static+y}
12280 then :
12281   printf %s "(cached) " >&6
12282 else $as_nop
12283           if test yes = "$cross_compiling"; then :
12284   lt_cv_dlopen_self_static=cross
12285 else
12286   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12287   lt_status=$lt_dlunknown
12288   cat > conftest.$ac_ext <<_LT_EOF
12289 #line $LINENO "configure"
12290 #include "confdefs.h"
12291
12292 #if HAVE_DLFCN_H
12293 #include <dlfcn.h>
12294 #endif
12295
12296 #include <stdio.h>
12297
12298 #ifdef RTLD_GLOBAL
12299 #  define LT_DLGLOBAL           RTLD_GLOBAL
12300 #else
12301 #  ifdef DL_GLOBAL
12302 #    define LT_DLGLOBAL         DL_GLOBAL
12303 #  else
12304 #    define LT_DLGLOBAL         0
12305 #  endif
12306 #endif
12307
12308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12309    find out it does not work in some platform. */
12310 #ifndef LT_DLLAZY_OR_NOW
12311 #  ifdef RTLD_LAZY
12312 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12313 #  else
12314 #    ifdef DL_LAZY
12315 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12316 #    else
12317 #      ifdef RTLD_NOW
12318 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12319 #      else
12320 #        ifdef DL_NOW
12321 #          define LT_DLLAZY_OR_NOW      DL_NOW
12322 #        else
12323 #          define LT_DLLAZY_OR_NOW      0
12324 #        endif
12325 #      endif
12326 #    endif
12327 #  endif
12328 #endif
12329
12330 /* When -fvisibility=hidden is used, assume the code has been annotated
12331    correspondingly for the symbols needed.  */
12332 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12333 int fnord () __attribute__((visibility("default")));
12334 #endif
12335
12336 int fnord () { return 42; }
12337 int main ()
12338 {
12339   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12340   int status = $lt_dlunknown;
12341
12342   if (self)
12343     {
12344       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12345       else
12346         {
12347           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12348           else puts (dlerror ());
12349         }
12350       /* dlclose (self); */
12351     }
12352   else
12353     puts (dlerror ());
12354
12355   return status;
12356 }
12357 _LT_EOF
12358   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12359   (eval $ac_link) 2>&5
12360   ac_status=$?
12361   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12362   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12363     (./conftest; exit; ) >&5 2>/dev/null
12364     lt_status=$?
12365     case x$lt_status in
12366       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12367       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12368       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12369     esac
12370   else :
12371     # compilation failed
12372     lt_cv_dlopen_self_static=no
12373   fi
12374 fi
12375 rm -fr conftest*
12376
12377
12378 fi
12379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12380 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12381     fi
12382
12383     CPPFLAGS=$save_CPPFLAGS
12384     LDFLAGS=$save_LDFLAGS
12385     LIBS=$save_LIBS
12386     ;;
12387   esac
12388
12389   case $lt_cv_dlopen_self in
12390   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12391   *) enable_dlopen_self=unknown ;;
12392   esac
12393
12394   case $lt_cv_dlopen_self_static in
12395   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12396   *) enable_dlopen_self_static=unknown ;;
12397   esac
12398 fi
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416 striplib=
12417 old_striplib=
12418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12419 printf %s "checking whether stripping libraries is possible... " >&6; }
12420 if test -z "$STRIP"; then
12421   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 printf "%s\n" "no" >&6; }
12423 else
12424   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12425     old_striplib="$STRIP --strip-debug"
12426     striplib="$STRIP --strip-unneeded"
12427     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12428 printf "%s\n" "yes" >&6; }
12429   else
12430     case $host_os in
12431     darwin*)
12432       # FIXME - insert some real tests, host_os isn't really good enough
12433       striplib="$STRIP -x"
12434       old_striplib="$STRIP -S"
12435       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12436 printf "%s\n" "yes" >&6; }
12437       ;;
12438     freebsd*)
12439       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12440         old_striplib="$STRIP --strip-debug"
12441         striplib="$STRIP --strip-unneeded"
12442         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12443 printf "%s\n" "yes" >&6; }
12444       else
12445         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 printf "%s\n" "no" >&6; }
12447       fi
12448       ;;
12449     *)
12450       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451 printf "%s\n" "no" >&6; }
12452       ;;
12453     esac
12454   fi
12455 fi
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468   # Report what library types will actually be built
12469   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12470 printf %s "checking if libtool supports shared libraries... " >&6; }
12471   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12472 printf "%s\n" "$can_build_shared" >&6; }
12473
12474   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12475 printf %s "checking whether to build shared libraries... " >&6; }
12476   test no = "$can_build_shared" && enable_shared=no
12477
12478   # On AIX, shared libraries and static libraries use the same namespace, and
12479   # are all built from PIC.
12480   case $host_os in
12481   aix3*)
12482     test yes = "$enable_shared" && enable_static=no
12483     if test -n "$RANLIB"; then
12484       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12485       postinstall_cmds='$RANLIB $lib'
12486     fi
12487     ;;
12488
12489   aix[4-9]*)
12490     if test ia64 != "$host_cpu"; then
12491       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12492       yes,aix,yes) ;;                   # shared object as lib.so file only
12493       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12494       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12495       esac
12496     fi
12497     ;;
12498   esac
12499   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12500 printf "%s\n" "$enable_shared" >&6; }
12501
12502   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12503 printf %s "checking whether to build static libraries... " >&6; }
12504   # Make sure either enable_shared or enable_static is yes.
12505   test yes = "$enable_shared" || enable_static=yes
12506   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12507 printf "%s\n" "$enable_static" >&6; }
12508
12509
12510
12511
12512 fi
12513 ac_ext=c
12514 ac_cpp='$CPP $CPPFLAGS'
12515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12518
12519 CC=$lt_save_CC
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535         ac_config_commands="$ac_config_commands libtool"
12536
12537
12538
12539
12540 # Only expand once:
12541
12542
12543 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12544 if test "x$ac_cv_header_windows_h" = xyes
12545 then :
12546   if test -n "$ac_tool_prefix"; then
12547   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12548 set dummy ${ac_tool_prefix}windres; ac_word=$2
12549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12550 printf %s "checking for $ac_word... " >&6; }
12551 if test ${ac_cv_prog_RC+y}
12552 then :
12553   printf %s "(cached) " >&6
12554 else $as_nop
12555   if test -n "$RC"; then
12556   ac_cv_prog_RC="$RC" # Let the user override the test.
12557 else
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559 for as_dir in $PATH
12560 do
12561   IFS=$as_save_IFS
12562   case $as_dir in #(((
12563     '') as_dir=./ ;;
12564     */) ;;
12565     *) as_dir=$as_dir/ ;;
12566   esac
12567     for ac_exec_ext in '' $ac_executable_extensions; do
12568   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12569     ac_cv_prog_RC="${ac_tool_prefix}windres"
12570     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12571     break 2
12572   fi
12573 done
12574   done
12575 IFS=$as_save_IFS
12576
12577 fi
12578 fi
12579 RC=$ac_cv_prog_RC
12580 if test -n "$RC"; then
12581   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12582 printf "%s\n" "$RC" >&6; }
12583 else
12584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 printf "%s\n" "no" >&6; }
12586 fi
12587
12588
12589 fi
12590 if test -z "$ac_cv_prog_RC"; then
12591   ac_ct_RC=$RC
12592   # Extract the first word of "windres", so it can be a program name with args.
12593 set dummy windres; ac_word=$2
12594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595 printf %s "checking for $ac_word... " >&6; }
12596 if test ${ac_cv_prog_ac_ct_RC+y}
12597 then :
12598   printf %s "(cached) " >&6
12599 else $as_nop
12600   if test -n "$ac_ct_RC"; then
12601   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12602 else
12603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $PATH
12605 do
12606   IFS=$as_save_IFS
12607   case $as_dir in #(((
12608     '') as_dir=./ ;;
12609     */) ;;
12610     *) as_dir=$as_dir/ ;;
12611   esac
12612     for ac_exec_ext in '' $ac_executable_extensions; do
12613   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12614     ac_cv_prog_ac_ct_RC="windres"
12615     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12616     break 2
12617   fi
12618 done
12619   done
12620 IFS=$as_save_IFS
12621
12622 fi
12623 fi
12624 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12625 if test -n "$ac_ct_RC"; then
12626   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12627 printf "%s\n" "$ac_ct_RC" >&6; }
12628 else
12629   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 printf "%s\n" "no" >&6; }
12631 fi
12632
12633   if test "x$ac_ct_RC" = x; then
12634     RC=""
12635   else
12636     case $cross_compiling:$ac_tool_warned in
12637 yes:)
12638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12639 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12640 ac_tool_warned=yes ;;
12641 esac
12642     RC=$ac_ct_RC
12643   fi
12644 else
12645   RC="$ac_cv_prog_RC"
12646 fi
12647
12648
12649
12650 # Source file extension for RC test sources.
12651 ac_ext=rc
12652
12653 # Object file extension for compiled RC test sources.
12654 objext=o
12655 objext_RC=$objext
12656
12657 # Code to be used in simple compile tests
12658 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12659
12660 # Code to be used in simple link tests
12661 lt_simple_link_test_code=$lt_simple_compile_test_code
12662
12663 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12664
12665
12666
12667
12668
12669
12670 # If no C compiler was specified, use CC.
12671 LTCC=${LTCC-"$CC"}
12672
12673 # If no C compiler flags were specified, use CFLAGS.
12674 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12675
12676 # Allow CC to be a program name with arguments.
12677 compiler=$CC
12678
12679
12680 # save warnings/boilerplate of simple test code
12681 ac_outfile=conftest.$ac_objext
12682 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12683 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12684 _lt_compiler_boilerplate=`cat conftest.err`
12685 $RM conftest*
12686
12687 ac_outfile=conftest.$ac_objext
12688 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12689 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12690 _lt_linker_boilerplate=`cat conftest.err`
12691 $RM -r conftest*
12692
12693
12694 # Allow CC to be a program name with arguments.
12695 lt_save_CC=$CC
12696 lt_save_CFLAGS=$CFLAGS
12697 lt_save_GCC=$GCC
12698 GCC=
12699 CC=${RC-"windres"}
12700 CFLAGS=
12701 compiler=$CC
12702 compiler_RC=$CC
12703 func_cc_basename $compiler
12704 cc_basename=$func_cc_basename_result
12705
12706 lt_cv_prog_compiler_c_o_RC=yes
12707
12708 if test -n "$compiler"; then
12709   :
12710
12711
12712
12713 fi
12714
12715 GCC=$lt_save_GCC
12716 ac_ext=c
12717 ac_cpp='$CPP $CPPFLAGS'
12718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12721
12722 CC=$lt_save_CC
12723 CFLAGS=$lt_save_CFLAGS
12724
12725 fi
12726
12727
12728
12729 # checks for native programs to generate building tool
12730
12731 if test ${cross_compiling} = yes; then
12732   # Extract the first word of "${build}-gcc", so it can be a program name with args.
12733 set dummy ${build}-gcc; ac_word=$2
12734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12735 printf %s "checking for $ac_word... " >&6; }
12736 if test ${ac_cv_prog_CC_BUILD+y}
12737 then :
12738   printf %s "(cached) " >&6
12739 else $as_nop
12740   if test -n "$CC_BUILD"; then
12741   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12742 else
12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744 for as_dir in $PATH
12745 do
12746   IFS=$as_save_IFS
12747   case $as_dir in #(((
12748     '') as_dir=./ ;;
12749     */) ;;
12750     *) as_dir=$as_dir/ ;;
12751   esac
12752     for ac_exec_ext in '' $ac_executable_extensions; do
12753   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12754     ac_cv_prog_CC_BUILD="${build}-gcc"
12755     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12756     break 2
12757   fi
12758 done
12759   done
12760 IFS=$as_save_IFS
12761
12762 fi
12763 fi
12764 CC_BUILD=$ac_cv_prog_CC_BUILD
12765 if test -n "$CC_BUILD"; then
12766   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12767 printf "%s\n" "$CC_BUILD" >&6; }
12768 else
12769   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 printf "%s\n" "no" >&6; }
12771 fi
12772
12773
12774   test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
12775 set dummy gcc; ac_word=$2
12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 printf %s "checking for $ac_word... " >&6; }
12778 if test ${ac_cv_prog_CC_BUILD+y}
12779 then :
12780   printf %s "(cached) " >&6
12781 else $as_nop
12782   if test -n "$CC_BUILD"; then
12783   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12784 else
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12787 do
12788   IFS=$as_save_IFS
12789   case $as_dir in #(((
12790     '') as_dir=./ ;;
12791     */) ;;
12792     *) as_dir=$as_dir/ ;;
12793   esac
12794     for ac_exec_ext in '' $ac_executable_extensions; do
12795   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12796     ac_cv_prog_CC_BUILD="gcc"
12797     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12798     break 2
12799   fi
12800 done
12801   done
12802 IFS=$as_save_IFS
12803
12804 fi
12805 fi
12806 CC_BUILD=$ac_cv_prog_CC_BUILD
12807 if test -n "$CC_BUILD"; then
12808   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12809 printf "%s\n" "$CC_BUILD" >&6; }
12810 else
12811   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 printf "%s\n" "no" >&6; }
12813 fi
12814
12815
12816   test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
12817 set dummy cc; ac_word=$2
12818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819 printf %s "checking for $ac_word... " >&6; }
12820 if test ${ac_cv_prog_CC_BUILD+y}
12821 then :
12822   printf %s "(cached) " >&6
12823 else $as_nop
12824   if test -n "$CC_BUILD"; then
12825   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12826 else
12827   ac_prog_rejected=no
12828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829 for as_dir in $PATH
12830 do
12831   IFS=$as_save_IFS
12832   case $as_dir in #(((
12833     '') as_dir=./ ;;
12834     */) ;;
12835     *) as_dir=$as_dir/ ;;
12836   esac
12837     for ac_exec_ext in '' $ac_executable_extensions; do
12838   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12839     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12840        ac_prog_rejected=yes
12841        continue
12842      fi
12843     ac_cv_prog_CC_BUILD="cc"
12844     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12845     break 2
12846   fi
12847 done
12848   done
12849 IFS=$as_save_IFS
12850
12851 if test $ac_prog_rejected = yes; then
12852   # We found a bogon in the path, so make sure we never use it.
12853   set dummy $ac_cv_prog_CC_BUILD
12854   shift
12855   if test $# != 0; then
12856     # We chose a different compiler from the bogus one.
12857     # However, it has the same basename, so the bogon will be chosen
12858     # first if we set CC_BUILD to just the basename; use the full file name.
12859     shift
12860     ac_cv_prog_CC_BUILD="$as_dir$ac_word${1+' '}$@"
12861   fi
12862 fi
12863 fi
12864 fi
12865 CC_BUILD=$ac_cv_prog_CC_BUILD
12866 if test -n "$CC_BUILD"; then
12867   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12868 printf "%s\n" "$CC_BUILD" >&6; }
12869 else
12870   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871 printf "%s\n" "no" >&6; }
12872 fi
12873
12874
12875   test -z "${CC_BUILD}" && as_fn_error $? "cannot find native C compiler" "$LINENO" 5
12876
12877   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of native executables" >&5
12878 printf %s "checking for suffix of native executables... " >&6; }
12879   rm -f a.* b.* a_out.exe conftest.*
12880   echo > conftest.c "int main(void) { return 0;}"
12881   ${CC_BUILD} conftest.c || as_fn_error $? "native C compiler is not working" "$LINENO" 5
12882   rm -f conftest.c
12883   if test -x a.out -o -x b.out -o -x conftest; then
12884     EXEEXT_BUILD=""
12885   elif test -x a_out.exe -o -x conftest.exe; then
12886     EXEEXT_BUILD=".exe"
12887   elif test -x conftest.*; then
12888     EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
12889   fi
12890   rm -f a.* b.* a_out.exe conftest.*
12891   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT_BUILD" >&5
12892 printf "%s\n" "$EXEEXT_BUILD" >&6; }
12893 else
12894   CC_BUILD=${CC}
12895   EXEEXT_BUILD=${EXEEXT}
12896 fi
12897
12898
12899
12900
12901
12902 # Since these files will be eventually called from another directory (namely
12903 # from the top level) we make the path of the scripts absolute.
12904 #
12905 # This small code snippet has been taken from automake's `ylwrap' script.
12906
12907
12908   # Find a good install program.  We prefer a C program (faster),
12909 # so one script is as good as another.  But avoid the broken or
12910 # incompatible versions:
12911 # SysV /etc/install, /usr/sbin/install
12912 # SunOS /usr/etc/install
12913 # IRIX /sbin/install
12914 # AIX /bin/install
12915 # AmigaOS /C/install, which installs bootblocks on floppy discs
12916 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12917 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12918 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12919 # OS/2's system install, which has a completely different semantic
12920 # ./install, which can be erroneously created by make from ./install.sh.
12921 # Reject install programs that cannot install multiple files.
12922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12923 printf %s "checking for a BSD-compatible install... " >&6; }
12924 if test -z "$INSTALL"; then
12925 if test ${ac_cv_path_install+y}
12926 then :
12927   printf %s "(cached) " >&6
12928 else $as_nop
12929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12930 for as_dir in $PATH
12931 do
12932   IFS=$as_save_IFS
12933   case $as_dir in #(((
12934     '') as_dir=./ ;;
12935     */) ;;
12936     *) as_dir=$as_dir/ ;;
12937   esac
12938     # Account for fact that we put trailing slashes in our PATH walk.
12939 case $as_dir in #((
12940   ./ | /[cC]/* | \
12941   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12942   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12943   /usr/ucb/* ) ;;
12944   *)
12945     # OSF1 and SCO ODT 3.0 have their own names for install.
12946     # Don't use installbsd from OSF since it installs stuff as root
12947     # by default.
12948     for ac_prog in ginstall scoinst install; do
12949       for ac_exec_ext in '' $ac_executable_extensions; do
12950         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
12951           if test $ac_prog = install &&
12952             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12953             # AIX install.  It has an incompatible calling convention.
12954             :
12955           elif test $ac_prog = install &&
12956             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12957             # program-specific install script used by HP pwplus--don't use.
12958             :
12959           else
12960             rm -rf conftest.one conftest.two conftest.dir
12961             echo one > conftest.one
12962             echo two > conftest.two
12963             mkdir conftest.dir
12964             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
12965               test -s conftest.one && test -s conftest.two &&
12966               test -s conftest.dir/conftest.one &&
12967               test -s conftest.dir/conftest.two
12968             then
12969               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
12970               break 3
12971             fi
12972           fi
12973         fi
12974       done
12975     done
12976     ;;
12977 esac
12978
12979   done
12980 IFS=$as_save_IFS
12981
12982 rm -rf conftest.one conftest.two conftest.dir
12983
12984 fi
12985   if test ${ac_cv_path_install+y}; then
12986     INSTALL=$ac_cv_path_install
12987   else
12988     # As a last resort, use the slow shell script.  Don't cache a
12989     # value for INSTALL within a source directory, because that will
12990     # break other packages using the cache if that directory is
12991     # removed, or if the value is a relative name.
12992     INSTALL=$ac_install_sh
12993   fi
12994 fi
12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12996 printf "%s\n" "$INSTALL" >&6; }
12997
12998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12999 # It thinks the first close brace ends the variable substitution.
13000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13001
13002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13003
13004 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13005
13006 case "$INSTALL" in
13007 [\\/]* | ?:[\\/]*)
13008   ;;
13009 *[\\/]*)
13010   INSTALL="`pwd`/$INSTALL"
13011   ;;
13012 esac
13013
13014
13015   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
13016 printf %s "checking for a race-free mkdir -p... " >&6; }
13017 if test -z "$MKDIR_P"; then
13018   if test ${ac_cv_path_mkdir+y}
13019 then :
13020   printf %s "(cached) " >&6
13021 else $as_nop
13022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13024 do
13025   IFS=$as_save_IFS
13026   case $as_dir in #(((
13027     '') as_dir=./ ;;
13028     */) ;;
13029     *) as_dir=$as_dir/ ;;
13030   esac
13031     for ac_prog in mkdir gmkdir; do
13032          for ac_exec_ext in '' $ac_executable_extensions; do
13033            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
13034            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
13035              'mkdir ('*'coreutils) '* | \
13036              'BusyBox '* | \
13037              'mkdir (fileutils) '4.1*)
13038                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
13039                break 3;;
13040            esac
13041          done
13042        done
13043   done
13044 IFS=$as_save_IFS
13045
13046 fi
13047
13048   test -d ./--version && rmdir ./--version
13049   if test ${ac_cv_path_mkdir+y}; then
13050     MKDIR_P="$ac_cv_path_mkdir -p"
13051   else
13052     # As a last resort, use the slow shell script.  Don't cache a
13053     # value for MKDIR_P within a source directory, because that will
13054     # break other packages using the cache if that directory is
13055     # removed, or if the value is a relative name.
13056     MKDIR_P="$ac_install_sh -d"
13057   fi
13058 fi
13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13060 printf "%s\n" "$MKDIR_P" >&6; }
13061
13062 case "$MKDIR_P" in
13063 [\\/]* | ?:[\\/]*)
13064   ;;
13065 *[\\/]*)
13066   MKDIR_P="`pwd`/$MKDIR_P"
13067   ;;
13068 esac
13069
13070
13071 # checks for header files
13072
13073 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13074 if test "x$ac_cv_header_fcntl_h" = xyes
13075 then :
13076   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
13077
13078 fi
13079 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13080 if test "x$ac_cv_header_unistd_h" = xyes
13081 then :
13082   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13083
13084 fi
13085
13086
13087
13088 # checks for typedefs, structures, and compiler characteristics
13089
13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13091 printf %s "checking for an ANSI C-conforming const... " >&6; }
13092 if test ${ac_cv_c_const+y}
13093 then :
13094   printf %s "(cached) " >&6
13095 else $as_nop
13096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h.  */
13098
13099 int
13100 main (void)
13101 {
13102
13103 #ifndef __cplusplus
13104   /* Ultrix mips cc rejects this sort of thing.  */
13105   typedef int charset[2];
13106   const charset cs = { 0, 0 };
13107   /* SunOS 4.1.1 cc rejects this.  */
13108   char const *const *pcpcc;
13109   char **ppc;
13110   /* NEC SVR4.0.2 mips cc rejects this.  */
13111   struct point {int x, y;};
13112   static struct point const zero = {0,0};
13113   /* IBM XL C 1.02.0.0 rejects this.
13114      It does not let you subtract one const X* pointer from another in
13115      an arm of an if-expression whose if-part is not a constant
13116      expression */
13117   const char *g = "string";
13118   pcpcc = &g + (g ? g-g : 0);
13119   /* HPUX 7.0 cc rejects these. */
13120   ++pcpcc;
13121   ppc = (char**) pcpcc;
13122   pcpcc = (char const *const *) ppc;
13123   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13124     char tx;
13125     char *t = &tx;
13126     char const *s = 0 ? (char *) 0 : (char const *) 0;
13127
13128     *t++ = 0;
13129     if (s) return 0;
13130   }
13131   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13132     int x[] = {25, 17};
13133     const int *foo = &x[0];
13134     ++foo;
13135   }
13136   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13137     typedef const int *iptr;
13138     iptr p = 0;
13139     ++p;
13140   }
13141   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13142        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13143     struct s { int j; const int *ap[3]; } bx;
13144     struct s *b = &bx; b->j = 5;
13145   }
13146   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13147     const int foo = 10;
13148     if (!foo) return 0;
13149   }
13150   return !cs[0] && !zero.x;
13151 #endif
13152
13153   ;
13154   return 0;
13155 }
13156 _ACEOF
13157 if ac_fn_c_try_compile "$LINENO"
13158 then :
13159   ac_cv_c_const=yes
13160 else $as_nop
13161   ac_cv_c_const=no
13162 fi
13163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13164 fi
13165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13166 printf "%s\n" "$ac_cv_c_const" >&6; }
13167 if test $ac_cv_c_const = no; then
13168
13169 printf "%s\n" "#define const /**/" >>confdefs.h
13170
13171 fi
13172
13173
13174 # Check whether --enable-freetype-config was given.
13175 if test ${enable_freetype_config+y}
13176 then :
13177   enableval=$enable_freetype_config; case "${enableval}" in
13178     yes) enable_freetype_config="TRUE" ;;
13179     no)  enable_freetype_config="FALSE" ;;
13180     *)   as_fn_error $? "unknown value '${enableval}' passed with --enable-freetype-config" "$LINENO" 5 ;;
13181    esac
13182 else $as_nop
13183   enable_freetype_config="FALSE"
13184 fi
13185
13186
13187 INSTALL_FT2_CONFIG=$enable_freetype_config
13188
13189
13190 # checks for library functions
13191
13192 # Check whether --enable-largefile was given.
13193 if test ${enable_largefile+y}
13194 then :
13195   enableval=$enable_largefile;
13196 fi
13197
13198 if test "$enable_largefile" != no; then
13199
13200   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13201 printf %s "checking for special C compiler options needed for large files... " >&6; }
13202 if test ${ac_cv_sys_largefile_CC+y}
13203 then :
13204   printf %s "(cached) " >&6
13205 else $as_nop
13206   ac_cv_sys_largefile_CC=no
13207      if test "$GCC" != yes; then
13208        ac_save_CC=$CC
13209        while :; do
13210          # IRIX 6.2 and later do not support large files by default,
13211          # so use the C compiler's -n32 option if that helps.
13212          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h.  */
13214 #include <sys/types.h>
13215  /* Check that off_t can represent 2**63 - 1 correctly.
13216     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13217     since some C++ compilers masquerading as C compilers
13218     incorrectly reject 9223372036854775807.  */
13219 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13220   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13221                        && LARGE_OFF_T % 2147483647 == 1)
13222                       ? 1 : -1];
13223 int
13224 main (void)
13225 {
13226
13227   ;
13228   return 0;
13229 }
13230 _ACEOF
13231          if ac_fn_c_try_compile "$LINENO"
13232 then :
13233   break
13234 fi
13235 rm -f core conftest.err conftest.$ac_objext conftest.beam
13236          CC="$CC -n32"
13237          if ac_fn_c_try_compile "$LINENO"
13238 then :
13239   ac_cv_sys_largefile_CC=' -n32'; break
13240 fi
13241 rm -f core conftest.err conftest.$ac_objext conftest.beam
13242          break
13243        done
13244        CC=$ac_save_CC
13245        rm -f conftest.$ac_ext
13246     fi
13247 fi
13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13249 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
13250   if test "$ac_cv_sys_largefile_CC" != no; then
13251     CC=$CC$ac_cv_sys_largefile_CC
13252   fi
13253
13254   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13255 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13256 if test ${ac_cv_sys_file_offset_bits+y}
13257 then :
13258   printf %s "(cached) " >&6
13259 else $as_nop
13260   while :; do
13261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h.  */
13263 #include <sys/types.h>
13264  /* Check that off_t can represent 2**63 - 1 correctly.
13265     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13266     since some C++ compilers masquerading as C compilers
13267     incorrectly reject 9223372036854775807.  */
13268 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13269   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13270                        && LARGE_OFF_T % 2147483647 == 1)
13271                       ? 1 : -1];
13272 int
13273 main (void)
13274 {
13275
13276   ;
13277   return 0;
13278 }
13279 _ACEOF
13280 if ac_fn_c_try_compile "$LINENO"
13281 then :
13282   ac_cv_sys_file_offset_bits=no; break
13283 fi
13284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h.  */
13287 #define _FILE_OFFSET_BITS 64
13288 #include <sys/types.h>
13289  /* Check that off_t can represent 2**63 - 1 correctly.
13290     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13291     since some C++ compilers masquerading as C compilers
13292     incorrectly reject 9223372036854775807.  */
13293 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13294   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13295                        && LARGE_OFF_T % 2147483647 == 1)
13296                       ? 1 : -1];
13297 int
13298 main (void)
13299 {
13300
13301   ;
13302   return 0;
13303 }
13304 _ACEOF
13305 if ac_fn_c_try_compile "$LINENO"
13306 then :
13307   ac_cv_sys_file_offset_bits=64; break
13308 fi
13309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13310   ac_cv_sys_file_offset_bits=unknown
13311   break
13312 done
13313 fi
13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13315 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
13316 case $ac_cv_sys_file_offset_bits in #(
13317   no | unknown) ;;
13318   *)
13319 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
13320 ;;
13321 esac
13322 rm -rf conftest*
13323   if test $ac_cv_sys_file_offset_bits = unknown; then
13324     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13325 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
13326 if test ${ac_cv_sys_large_files+y}
13327 then :
13328   printf %s "(cached) " >&6
13329 else $as_nop
13330   while :; do
13331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h.  */
13333 #include <sys/types.h>
13334  /* Check that off_t can represent 2**63 - 1 correctly.
13335     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13336     since some C++ compilers masquerading as C compilers
13337     incorrectly reject 9223372036854775807.  */
13338 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13339   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13340                        && LARGE_OFF_T % 2147483647 == 1)
13341                       ? 1 : -1];
13342 int
13343 main (void)
13344 {
13345
13346   ;
13347   return 0;
13348 }
13349 _ACEOF
13350 if ac_fn_c_try_compile "$LINENO"
13351 then :
13352   ac_cv_sys_large_files=no; break
13353 fi
13354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h.  */
13357 #define _LARGE_FILES 1
13358 #include <sys/types.h>
13359  /* Check that off_t can represent 2**63 - 1 correctly.
13360     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13361     since some C++ compilers masquerading as C compilers
13362     incorrectly reject 9223372036854775807.  */
13363 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13364   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13365                        && LARGE_OFF_T % 2147483647 == 1)
13366                       ? 1 : -1];
13367 int
13368 main (void)
13369 {
13370
13371   ;
13372   return 0;
13373 }
13374 _ACEOF
13375 if ac_fn_c_try_compile "$LINENO"
13376 then :
13377   ac_cv_sys_large_files=1; break
13378 fi
13379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13380   ac_cv_sys_large_files=unknown
13381   break
13382 done
13383 fi
13384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13385 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
13386 case $ac_cv_sys_large_files in #(
13387   no | unknown) ;;
13388   *)
13389 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
13390 ;;
13391 esac
13392 rm -rf conftest*
13393   fi
13394 fi
13395
13396
13397 # Here we check whether we can use our mmap file component.
13398 #
13399 # Note that `ftsystem.c` for Windows has its own mmap-like implementation
13400 # not covered by `AC_FUNC_MMAP` and/or `FT_UNMAP_PARAM`.
13401
13402 # Check whether --enable-mmap was given.
13403 if test ${enable_mmap+y}
13404 then :
13405   enableval=$enable_mmap; enable_mmap="no"
13406 else $as_nop
13407   enable_mmap="yes"
13408 fi
13409
13410 if test "x${enable_mmap}" != "xno"; then
13411   case "$host" in
13412   *-*-mingw*)
13413     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13414 printf %s "checking for working mmap... " >&6; }
13415     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using MapViewOfFile in Windows" >&5
13416 printf "%s\n" "using MapViewOfFile in Windows" >&6; }
13417     FTSYS_SRC='$(TOP_DIR)/builds/windows/ftsystem.c'
13418     ;;
13419   *)
13420
13421 ac_func=
13422 for ac_item in $ac_func_c_list
13423 do
13424   if test $ac_func; then
13425     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
13426     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
13427       echo "#define $ac_item 1" >> confdefs.h
13428     fi
13429     ac_func=
13430   else
13431     ac_func=$ac_item
13432   fi
13433 done
13434
13435
13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13437 printf %s "checking for working mmap... " >&6; }
13438 if test ${ac_cv_func_mmap_fixed_mapped+y}
13439 then :
13440   printf %s "(cached) " >&6
13441 else $as_nop
13442   if test "$cross_compiling" = yes
13443 then :
13444   case "$host_os" in # ((
13445                           # Guess yes on platforms where we know the result.
13446                   linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
13447                           # If we don't know, assume the worst.
13448                   *)      ac_cv_func_mmap_fixed_mapped=no ;;
13449                 esac
13450 else $as_nop
13451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h.  */
13453 $ac_includes_default
13454 /* malloc might have been renamed as rpl_malloc. */
13455 #undef malloc
13456
13457 /* Thanks to Mike Haertel and Jim Avera for this test.
13458    Here is a matrix of mmap possibilities:
13459         mmap private not fixed
13460         mmap private fixed at somewhere currently unmapped
13461         mmap private fixed at somewhere already mapped
13462         mmap shared not fixed
13463         mmap shared fixed at somewhere currently unmapped
13464         mmap shared fixed at somewhere already mapped
13465    For private mappings, we should verify that changes cannot be read()
13466    back from the file, nor mmap's back from the file at a different
13467    address.  (There have been systems where private was not correctly
13468    implemented like the infamous i386 svr4.0, and systems where the
13469    VM page cache was not coherent with the file system buffer cache
13470    like early versions of FreeBSD and possibly contemporary NetBSD.)
13471    For shared mappings, we should conversely verify that changes get
13472    propagated back to all the places they're supposed to be.
13473
13474    Grep wants private fixed already mapped.
13475    The main things grep needs to know about mmap are:
13476    * does it exist and is it safe to write into the mmap'd area
13477    * how to use it (BSD variants)  */
13478
13479 #include <fcntl.h>
13480 #include <sys/mman.h>
13481
13482 /* This mess was copied from the GNU getpagesize.h.  */
13483 #ifndef HAVE_GETPAGESIZE
13484 # ifdef _SC_PAGESIZE
13485 #  define getpagesize() sysconf(_SC_PAGESIZE)
13486 # else /* no _SC_PAGESIZE */
13487 #  ifdef HAVE_SYS_PARAM_H
13488 #   include <sys/param.h>
13489 #   ifdef EXEC_PAGESIZE
13490 #    define getpagesize() EXEC_PAGESIZE
13491 #   else /* no EXEC_PAGESIZE */
13492 #    ifdef NBPG
13493 #     define getpagesize() NBPG * CLSIZE
13494 #     ifndef CLSIZE
13495 #      define CLSIZE 1
13496 #     endif /* no CLSIZE */
13497 #    else /* no NBPG */
13498 #     ifdef NBPC
13499 #      define getpagesize() NBPC
13500 #     else /* no NBPC */
13501 #      ifdef PAGESIZE
13502 #       define getpagesize() PAGESIZE
13503 #      endif /* PAGESIZE */
13504 #     endif /* no NBPC */
13505 #    endif /* no NBPG */
13506 #   endif /* no EXEC_PAGESIZE */
13507 #  else /* no HAVE_SYS_PARAM_H */
13508 #   define getpagesize() 8192   /* punt totally */
13509 #  endif /* no HAVE_SYS_PARAM_H */
13510 # endif /* no _SC_PAGESIZE */
13511
13512 #endif /* no HAVE_GETPAGESIZE */
13513
13514 int
13515 main (void)
13516 {
13517   char *data, *data2, *data3;
13518   const char *cdata2;
13519   int i, pagesize;
13520   int fd, fd2;
13521
13522   pagesize = getpagesize ();
13523
13524   /* First, make a file with some known garbage in it. */
13525   data = (char *) malloc (pagesize);
13526   if (!data)
13527     return 1;
13528   for (i = 0; i < pagesize; ++i)
13529     *(data + i) = rand ();
13530   umask (0);
13531   fd = creat ("conftest.mmap", 0600);
13532   if (fd < 0)
13533     return 2;
13534   if (write (fd, data, pagesize) != pagesize)
13535     return 3;
13536   close (fd);
13537
13538   /* Next, check that the tail of a page is zero-filled.  File must have
13539      non-zero length, otherwise we risk SIGBUS for entire page.  */
13540   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13541   if (fd2 < 0)
13542     return 4;
13543   cdata2 = "";
13544   if (write (fd2, cdata2, 1) != 1)
13545     return 5;
13546   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13547   if (data2 == MAP_FAILED)
13548     return 6;
13549   for (i = 0; i < pagesize; ++i)
13550     if (*(data2 + i))
13551       return 7;
13552   close (fd2);
13553   if (munmap (data2, pagesize))
13554     return 8;
13555
13556   /* Next, try to mmap the file at a fixed address which already has
13557      something else allocated at it.  If we can, also make sure that
13558      we see the same garbage.  */
13559   fd = open ("conftest.mmap", O_RDWR);
13560   if (fd < 0)
13561     return 9;
13562   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13563                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
13564     return 10;
13565   for (i = 0; i < pagesize; ++i)
13566     if (*(data + i) != *(data2 + i))
13567       return 11;
13568
13569   /* Finally, make sure that changes to the mapped area do not
13570      percolate back to the file as seen by read().  (This is a bug on
13571      some variants of i386 svr4.0.)  */
13572   for (i = 0; i < pagesize; ++i)
13573     *(data2 + i) = *(data2 + i) + 1;
13574   data3 = (char *) malloc (pagesize);
13575   if (!data3)
13576     return 12;
13577   if (read (fd, data3, pagesize) != pagesize)
13578     return 13;
13579   for (i = 0; i < pagesize; ++i)
13580     if (*(data + i) != *(data3 + i))
13581       return 14;
13582   close (fd);
13583   free (data);
13584   free (data3);
13585   return 0;
13586 }
13587 _ACEOF
13588 if ac_fn_c_try_run "$LINENO"
13589 then :
13590   ac_cv_func_mmap_fixed_mapped=yes
13591 else $as_nop
13592   ac_cv_func_mmap_fixed_mapped=no
13593 fi
13594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13595   conftest.$ac_objext conftest.beam conftest.$ac_ext
13596 fi
13597
13598 fi
13599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13600 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
13601 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13602
13603 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13604
13605 fi
13606 rm -f conftest.mmap conftest.txt
13607
13608     if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
13609       FTSYS_SRC='$(PLATFORM_DIR)/ftsystem.c'
13610
13611       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13612 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13613 if test ${ac_cv_c_undeclared_builtin_options+y}
13614 then :
13615   printf %s "(cached) " >&6
13616 else $as_nop
13617   ac_save_CFLAGS=$CFLAGS
13618    ac_cv_c_undeclared_builtin_options='cannot detect'
13619    for ac_arg in '' -fno-builtin; do
13620      CFLAGS="$ac_save_CFLAGS $ac_arg"
13621      # This test program should *not* compile successfully.
13622      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h.  */
13624
13625 int
13626 main (void)
13627 {
13628 (void) strchr;
13629   ;
13630   return 0;
13631 }
13632 _ACEOF
13633 if ac_fn_c_try_compile "$LINENO"
13634 then :
13635
13636 else $as_nop
13637   # This test program should compile successfully.
13638         # No library function is consistently available on
13639         # freestanding implementations, so test against a dummy
13640         # declaration.  Include always-available headers on the
13641         # off chance that they somehow elicit warnings.
13642         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h.  */
13644 #include <float.h>
13645 #include <limits.h>
13646 #include <stdarg.h>
13647 #include <stddef.h>
13648 extern void ac_decl (int, char *);
13649
13650 int
13651 main (void)
13652 {
13653 (void) ac_decl (0, (char *) 0);
13654   (void) ac_decl;
13655
13656   ;
13657   return 0;
13658 }
13659 _ACEOF
13660 if ac_fn_c_try_compile "$LINENO"
13661 then :
13662   if test x"$ac_arg" = x
13663 then :
13664   ac_cv_c_undeclared_builtin_options='none needed'
13665 else $as_nop
13666   ac_cv_c_undeclared_builtin_options=$ac_arg
13667 fi
13668           break
13669 fi
13670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13671 fi
13672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13673     done
13674     CFLAGS=$ac_save_CFLAGS
13675
13676 fi
13677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13678 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13679   case $ac_cv_c_undeclared_builtin_options in #(
13680   'cannot detect') :
13681     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13682 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13683 as_fn_error $? "cannot make $CC report undeclared builtins
13684 See \`config.log' for more details" "$LINENO" 5; } ;; #(
13685   'none needed') :
13686     ac_c_undeclared_builtin_options='' ;; #(
13687   *) :
13688     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13689 esac
13690
13691 ac_fn_check_decl "$LINENO" "munmap" "ac_cv_have_decl_munmap" "
13692
13693 #ifdef HAVE_UNISTD_H
13694 #include <unistd.h>
13695 #endif
13696 #include <sys/mman.h>
13697
13698
13699 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13700 if test "x$ac_cv_have_decl_munmap" = xyes
13701 then :
13702   ac_have_decl=1
13703 else $as_nop
13704   ac_have_decl=0
13705 fi
13706 printf "%s\n" "#define HAVE_DECL_MUNMAP $ac_have_decl" >>confdefs.h
13707
13708
13709       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for munmap's first parameter type" >&5
13710 printf %s "checking for munmap's first parameter type... " >&6; }
13711    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h.  */
13713
13714
13715
13716 #include <unistd.h>
13717 #include <sys/mman.h>
13718 int munmap(void *, size_t);
13719
13720
13721
13722 _ACEOF
13723 if ac_fn_c_try_compile "$LINENO"
13724 then :
13725   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: void *" >&5
13726 printf "%s\n" "void *" >&6; }
13727
13728 printf "%s\n" "#define MUNMAP_USES_VOIDP /**/" >>confdefs.h
13729
13730 else $as_nop
13731   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: char *" >&5
13732 printf "%s\n" "char *" >&6; }
13733 fi
13734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13735
13736     fi
13737     ;;
13738   esac
13739 fi
13740
13741 if test -z "$FTSYS_SRC"; then
13742   FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
13743 fi
13744
13745
13746
13747 # get compiler flags right
13748 #
13749 #   We try to make the compiler work for C99-strict source.  Even if the
13750 #   C compiler is gcc and C99 flags are available, some system headers
13751 #   might be broken in C99 mode.  We have to check whether compilation
13752 #   finishes successfully.
13753 #
13754 if test "x$GCC" = xyes; then
13755   XX_CFLAGS="-Wall"
13756   case "$host" in
13757   *-*-mingw*)
13758     XX_ANSIFLAGS="-pedantic"
13759     ;;
13760   *-*-aix*)
13761     XX_ANSIFLAGS="-pedantic"
13762     ;;
13763   *)
13764     XX_ANSIFLAGS=""
13765
13766     for a in "-pedantic" "-std=c99"
13767     do
13768       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CC compiler flag ${a} to assure ANSI C99 works correctly" >&5
13769 printf %s "checking $CC compiler flag ${a} to assure ANSI C99 works correctly... " >&6; }
13770       orig_CFLAGS="${CFLAGS}"
13771       CFLAGS="${CFLAGS} ${XX_ANSIFLAGS} ${a}"
13772       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h.  */
13774
13775
13776
13777 #include <stdio.h>
13778
13779
13780 int
13781 main (void)
13782 {
13783
13784
13785             {
13786               puts( "" );
13787               return 0;
13788             }
13789
13790
13791   ;
13792   return 0;
13793 }
13794 _ACEOF
13795 if ac_fn_c_try_compile "$LINENO"
13796 then :
13797   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok, adding to XX_ANSIFLAGS" >&5
13798 printf "%s\n" "ok, adding to XX_ANSIFLAGS" >&6; }
13799          XX_ANSIFLAGS="${XX_ANSIFLAGS} ${a}"
13800
13801 else $as_nop
13802   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 printf "%s\n" "no" >&6; }
13804 fi
13805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13806       CFLAGS="${orig_CFLAGS}"
13807     done
13808     ;;
13809   esac
13810 else
13811   case "$host" in
13812   *-dec-osf*)
13813     CFLAGS=
13814     XX_CFLAGS="-std1 -g3"
13815     XX_ANSIFLAGS=
13816     ;;
13817   *)
13818     XX_CFLAGS=
13819     XX_ANSIFLAGS=
13820     ;;
13821   esac
13822 fi
13823
13824
13825
13826
13827 # It is recommended that shared libraries hide symbols except those with
13828 # explicit __attribute__((visibility("default"))).
13829 #
13830 found_visibility_flag=no
13831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
13832 printf %s "checking for -fvisibility=hidden compiler flag... " >&6; }
13833 orig_CFLAGS="${CFLAGS}"
13834 CFLAGS="${CFLAGS} -fvisibility=hidden"
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h.  */
13837
13838 int
13839 main (void)
13840 {
13841
13842   ;
13843   return 0;
13844 }
13845 _ACEOF
13846 if ac_fn_c_try_link "$LINENO"
13847 then :
13848   found_visibility_flag=yes
13849                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13850 printf "%s\n" "yes" >&6; }
13851 else $as_nop
13852   CFLAGS="${orig_CFLAGS}"
13853                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854 printf "%s\n" "no" >&6; }
13855 fi
13856 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13857     conftest$ac_exeext conftest.$ac_ext
13858
13859 if test "${found_visibility_flag}" = "no"; then
13860   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -xldscope=hidden compiler flag" >&5
13861 printf %s "checking for -xldscope=hidden compiler flag... " >&6; }
13862   orig_CFLAGS="${CFLAGS}"
13863   CFLAGS="${CFLAGS} -xldscope=hidden"
13864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h.  */
13866
13867 int
13868 main (void)
13869 {
13870
13871   ;
13872   return 0;
13873 }
13874 _ACEOF
13875 if ac_fn_c_try_link "$LINENO"
13876 then :
13877   found_visibility_flag=yes
13878                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13879 printf "%s\n" "yes" >&6; }
13880 else $as_nop
13881   CFLAGS="${orig_CFLAGS}"
13882                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13883 printf "%s\n" "no" >&6; }
13884 fi
13885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13886     conftest$ac_exeext conftest.$ac_ext
13887 fi
13888
13889 # All library tests below try `pkg-config' first.  If that fails, a function
13890 # from the library is tested in the traditional autoconf way (zlib, bzip2),
13891 # or a config script is called (libpng).
13892 #
13893 # The `xxx_reqpriv' variables are for the `Requires.private' field in
13894 # `freetype2.pc'.  The `xxx_libspriv' variables are for the `Libs.private'
13895 # field in `freetype2.pc' if pkg-config doesn't find a proper .pc file.
13896 #
13897 # The `xxx_libsstaticconf' variables are for the `freetype-config' script.
13898 #
13899 # Note that a call to PKG_CHECK_MODULES(XXX, ...) sets and creates the
13900 # output variables `XXX_CFLAGS' and `XXX_LIBS'.  In case one or both are set
13901 # for a library by the user, no entry for this library is added to
13902 # `Requires.private'.  Instead, it gets added to `Libs.private'
13903
13904
13905 # check for system zlib
13906
13907
13908 # Check whether --with-zlib was given.
13909 if test ${with_zlib+y}
13910 then :
13911   withval=$with_zlib;
13912 else $as_nop
13913   with_zlib=auto
13914 fi
13915
13916
13917 have_zlib=no
13918 if test x"$with_zlib" = xyes -o x"$with_zlib" = xauto; then
13919   zlib_pkg="zlib"
13920   have_zlib_pkg=no
13921
13922   if test x"$ZLIB_CFLAGS" = x -a x"$ZLIB_LIBS" = x; then
13923     if test -n "$PKG_CONFIG" && \
13924     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13925   ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13926   ac_status=$?
13927   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928   test $ac_status = 0; }; then
13929   have_zlib_pkg=yes
13930 fi
13931   fi
13932
13933 pkg_failed=no
13934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
13935 printf %s "checking for ZLIB... " >&6; }
13936
13937 if test -n "$ZLIB_CFLAGS"; then
13938     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
13939  elif test -n "$PKG_CONFIG"; then
13940     if test -n "$PKG_CONFIG" && \
13941     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13942   ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13943   ac_status=$?
13944   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13945   test $ac_status = 0; }; then
13946   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "$zlib_pkg" 2>/dev/null`
13947                       test "x$?" != "x0" && pkg_failed=yes
13948 else
13949   pkg_failed=yes
13950 fi
13951  else
13952     pkg_failed=untried
13953 fi
13954 if test -n "$ZLIB_LIBS"; then
13955     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
13956  elif test -n "$PKG_CONFIG"; then
13957     if test -n "$PKG_CONFIG" && \
13958     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13959   ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13960   ac_status=$?
13961   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13962   test $ac_status = 0; }; then
13963   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "$zlib_pkg" 2>/dev/null`
13964                       test "x$?" != "x0" && pkg_failed=yes
13965 else
13966   pkg_failed=yes
13967 fi
13968  else
13969     pkg_failed=untried
13970 fi
13971
13972
13973
13974 if test $pkg_failed = yes; then
13975         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976 printf "%s\n" "no" >&6; }
13977
13978 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13979         _pkg_short_errors_supported=yes
13980 else
13981         _pkg_short_errors_supported=no
13982 fi
13983         if test $_pkg_short_errors_supported = yes; then
13984                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$zlib_pkg" 2>&1`
13985         else
13986                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$zlib_pkg" 2>&1`
13987         fi
13988         # Put the nasty error message in config.log where it belongs
13989         echo "$ZLIB_PKG_ERRORS" >&5
13990
13991         :
13992 elif test $pkg_failed = untried; then
13993         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994 printf "%s\n" "no" >&6; }
13995         :
13996 else
13997         ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
13998         ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
13999         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14000 printf "%s\n" "yes" >&6; }
14001         have_zlib="yes (pkg-config)"
14002 fi
14003
14004   if test $have_zlib_pkg = yes; then
14005     # we have zlib.pc
14006     zlib_reqpriv="$zlib_pkg"
14007     zlib_libspriv=
14008     zlib_libsstaticconf=`$PKG_CONFIG --static --libs "$zlib_pkg"`
14009   else
14010     zlib_reqpriv=
14011
14012     if test "$have_zlib" != no; then
14013       # ZLIB_CFLAGS and ZLIB_LIBS are set by the user
14014       zlib_libspriv="$ZLIB_LIBS"
14015       zlib_libsstaticconf="$ZLIB_LIBS"
14016       have_zlib="yes (ZLIB_CFLAGS and ZLIB_LIBS)"
14017     else
14018       # fall back to standard autoconf test
14019       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
14020 printf %s "checking for gzsetparams in -lz... " >&6; }
14021 if test ${ac_cv_lib_z_gzsetparams+y}
14022 then :
14023   printf %s "(cached) " >&6
14024 else $as_nop
14025   ac_check_lib_save_LIBS=$LIBS
14026 LIBS="-lz  $LIBS"
14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h.  */
14029
14030 /* Override any GCC internal prototype to avoid an error.
14031    Use char because int might match the return type of a GCC
14032    builtin and then its argument prototype would still apply.  */
14033 char gzsetparams ();
14034 int
14035 main (void)
14036 {
14037 return gzsetparams ();
14038   ;
14039   return 0;
14040 }
14041 _ACEOF
14042 if ac_fn_c_try_link "$LINENO"
14043 then :
14044   ac_cv_lib_z_gzsetparams=yes
14045 else $as_nop
14046   ac_cv_lib_z_gzsetparams=no
14047 fi
14048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14049     conftest$ac_exeext conftest.$ac_ext
14050 LIBS=$ac_check_lib_save_LIBS
14051 fi
14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
14053 printf "%s\n" "$ac_cv_lib_z_gzsetparams" >&6; }
14054 if test "x$ac_cv_lib_z_gzsetparams" = xyes
14055 then :
14056   ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14057 if test "x$ac_cv_header_zlib_h" = xyes
14058 then :
14059   have_zlib="yes (autoconf test)"
14060                                      zlib_libspriv="-lz"
14061                                      zlib_libsstaticconf="$zlib_libspriv"
14062                                      ZLIB_LIBS="$zlib_libspriv"
14063 fi
14064
14065 fi
14066
14067     fi
14068   fi
14069 fi
14070
14071 if test x"$with_zlib" = xyes -a "$have_zlib" = no; then
14072   as_fn_error $? "external zlib support requested but library not found" "$LINENO" 5
14073 fi
14074
14075 SYSTEM_ZLIB=
14076 if test "$have_zlib" != no; then
14077   SYSTEM_ZLIB=yes
14078 fi
14079
14080
14081
14082 # check for system libbz2
14083
14084
14085 # Check whether --with-bzip2 was given.
14086 if test ${with_bzip2+y}
14087 then :
14088   withval=$with_bzip2;
14089 else $as_nop
14090   with_bzip2=auto
14091 fi
14092
14093
14094 have_bzip2=no
14095 if test x"$with_bzip2" = xyes -o x"$with_bzip2" = xauto; then
14096   bzip2_pkg="bzip2"
14097   have_bzip2_pkg=no
14098
14099   if test x"$BZIP2_CFLAGS" = x -a x"$BZIP2_LIBS" = x; then
14100     if test -n "$PKG_CONFIG" && \
14101     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
14102   ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
14103   ac_status=$?
14104   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14105   test $ac_status = 0; }; then
14106   have_bzip2_pkg=yes
14107 fi
14108   fi
14109
14110 pkg_failed=no
14111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZIP2" >&5
14112 printf %s "checking for BZIP2... " >&6; }
14113
14114 if test -n "$BZIP2_CFLAGS"; then
14115     pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS"
14116  elif test -n "$PKG_CONFIG"; then
14117     if test -n "$PKG_CONFIG" && \
14118     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
14119   ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
14120   ac_status=$?
14121   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14122   test $ac_status = 0; }; then
14123   pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "$bzip2_pkg" 2>/dev/null`
14124                       test "x$?" != "x0" && pkg_failed=yes
14125 else
14126   pkg_failed=yes
14127 fi
14128  else
14129     pkg_failed=untried
14130 fi
14131 if test -n "$BZIP2_LIBS"; then
14132     pkg_cv_BZIP2_LIBS="$BZIP2_LIBS"
14133  elif test -n "$PKG_CONFIG"; then
14134     if test -n "$PKG_CONFIG" && \
14135     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
14136   ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
14137   ac_status=$?
14138   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14139   test $ac_status = 0; }; then
14140   pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "$bzip2_pkg" 2>/dev/null`
14141                       test "x$?" != "x0" && pkg_failed=yes
14142 else
14143   pkg_failed=yes
14144 fi
14145  else
14146     pkg_failed=untried
14147 fi
14148
14149
14150
14151 if test $pkg_failed = yes; then
14152         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14153 printf "%s\n" "no" >&6; }
14154
14155 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14156         _pkg_short_errors_supported=yes
14157 else
14158         _pkg_short_errors_supported=no
14159 fi
14160         if test $_pkg_short_errors_supported = yes; then
14161                 BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
14162         else
14163                 BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
14164         fi
14165         # Put the nasty error message in config.log where it belongs
14166         echo "$BZIP2_PKG_ERRORS" >&5
14167
14168         :
14169 elif test $pkg_failed = untried; then
14170         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14171 printf "%s\n" "no" >&6; }
14172         :
14173 else
14174         BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
14175         BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
14176         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14177 printf "%s\n" "yes" >&6; }
14178         have_bzip2="yes (pkg-config)"
14179 fi
14180
14181   if test $have_bzip2_pkg = yes; then
14182     # we have bzip2.pc
14183     bzip2_reqpriv="$bzip2_pkg"
14184     bzip2_libspriv=
14185     bzip2_libsstaticconf=`$PKG_CONFIG --static --libs "$bzip2_pkg"`
14186   else
14187     bzip2_reqpriv=
14188
14189     if test "$have_bzip2" != no; then
14190       # BZIP2_CFLAGS and BZIP2_LIBS are set by the user
14191       bzip2_libspriv="$BZIP2_LIBS"
14192       bzip2_libsstaticconf="$BZIP2_LIBS"
14193       have_bzip2="yes (BZIP2_CFLAGS and BZIP2_LIBS)"
14194     else
14195       # fall back to standard autoconf test
14196       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
14197 printf %s "checking for BZ2_bzDecompress in -lbz2... " >&6; }
14198 if test ${ac_cv_lib_bz2_BZ2_bzDecompress+y}
14199 then :
14200   printf %s "(cached) " >&6
14201 else $as_nop
14202   ac_check_lib_save_LIBS=$LIBS
14203 LIBS="-lbz2  $LIBS"
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h.  */
14206
14207 /* Override any GCC internal prototype to avoid an error.
14208    Use char because int might match the return type of a GCC
14209    builtin and then its argument prototype would still apply.  */
14210 char BZ2_bzDecompress ();
14211 int
14212 main (void)
14213 {
14214 return BZ2_bzDecompress ();
14215   ;
14216   return 0;
14217 }
14218 _ACEOF
14219 if ac_fn_c_try_link "$LINENO"
14220 then :
14221   ac_cv_lib_bz2_BZ2_bzDecompress=yes
14222 else $as_nop
14223   ac_cv_lib_bz2_BZ2_bzDecompress=no
14224 fi
14225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14226     conftest$ac_exeext conftest.$ac_ext
14227 LIBS=$ac_check_lib_save_LIBS
14228 fi
14229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
14230 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
14231 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes
14232 then :
14233   ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
14234 if test "x$ac_cv_header_bzlib_h" = xyes
14235 then :
14236   have_bzip2="yes (autoconf test)"
14237                                      bzip2_libspriv="-lbz2"
14238                                      bzip2_libsstaticconf="$bzip2_libspriv"
14239                                      BZIP2_LIBS="$bzip2_libspriv"
14240 fi
14241
14242 fi
14243
14244     fi
14245   fi
14246 fi
14247
14248 if test x"$with_bzip2" = xyes -a "$have_bzip2" = no; then
14249   as_fn_error $? "bzip2 support requested but library not found" "$LINENO" 5
14250 fi
14251
14252
14253 # check for system libpng
14254
14255
14256 # Check whether --with-png was given.
14257 if test ${with_png+y}
14258 then :
14259   withval=$with_png;
14260 else $as_nop
14261   with_png=auto
14262 fi
14263
14264
14265 have_libpng=no
14266 if test x"$with_png" = xyes -o x"$with_png" = xauto; then
14267   libpng_pkg="libpng"
14268   have_libpng_pkg=no
14269
14270   if test x"$LIBPNG_CFLAGS" = x -a x"$LIBPNG_LIBS" = x; then
14271     if test -n "$PKG_CONFIG" && \
14272     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
14273   ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
14274   ac_status=$?
14275   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14276   test $ac_status = 0; }; then
14277   have_libpng_pkg=yes
14278 fi
14279   fi
14280
14281 pkg_failed=no
14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
14283 printf %s "checking for LIBPNG... " >&6; }
14284
14285 if test -n "$LIBPNG_CFLAGS"; then
14286     pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
14287  elif test -n "$PKG_CONFIG"; then
14288     if test -n "$PKG_CONFIG" && \
14289     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
14290   ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
14291   ac_status=$?
14292   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14293   test $ac_status = 0; }; then
14294   pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "$libpng_pkg" 2>/dev/null`
14295                       test "x$?" != "x0" && pkg_failed=yes
14296 else
14297   pkg_failed=yes
14298 fi
14299  else
14300     pkg_failed=untried
14301 fi
14302 if test -n "$LIBPNG_LIBS"; then
14303     pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
14304  elif test -n "$PKG_CONFIG"; then
14305     if test -n "$PKG_CONFIG" && \
14306     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
14307   ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
14308   ac_status=$?
14309   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14310   test $ac_status = 0; }; then
14311   pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "$libpng_pkg" 2>/dev/null`
14312                       test "x$?" != "x0" && pkg_failed=yes
14313 else
14314   pkg_failed=yes
14315 fi
14316  else
14317     pkg_failed=untried
14318 fi
14319
14320
14321
14322 if test $pkg_failed = yes; then
14323         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14324 printf "%s\n" "no" >&6; }
14325
14326 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14327         _pkg_short_errors_supported=yes
14328 else
14329         _pkg_short_errors_supported=no
14330 fi
14331         if test $_pkg_short_errors_supported = yes; then
14332                 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$libpng_pkg" 2>&1`
14333         else
14334                 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$libpng_pkg" 2>&1`
14335         fi
14336         # Put the nasty error message in config.log where it belongs
14337         echo "$LIBPNG_PKG_ERRORS" >&5
14338
14339         :
14340 elif test $pkg_failed = untried; then
14341         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 printf "%s\n" "no" >&6; }
14343         :
14344 else
14345         LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
14346         LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
14347         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14348 printf "%s\n" "yes" >&6; }
14349         have_libpng="yes (pkg-config)"
14350 fi
14351
14352   if test $have_libpng_pkg = yes; then
14353     # we have libpng.pc
14354     libpng_reqpriv="$libpng_pkg"
14355     libpng_libspriv=
14356     libpng_libsstaticconf=`$PKG_CONFIG --static --libs "$libpng_pkg"`
14357   else
14358     libpng_reqpriv=
14359
14360     if test "$have_libpng" != no; then
14361       # LIBPNG_CFLAGS and LIBPNG_LIBS are set by the user
14362       libpng_libspriv="$LIBPNG_LIBS"
14363       libpng_libsstaticconf="$LIBPNG_LIBS"
14364       have_libpng="yes (LIBPNG_CFLAGS and LIBPNG_LIBS)"
14365     else
14366       # fall back to config script
14367       # Extract the first word of "libpng-config", so it can be a program name with args.
14368 set dummy libpng-config; ac_word=$2
14369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14370 printf %s "checking for $ac_word... " >&6; }
14371 if test ${ac_cv_prog_have_libpng+y}
14372 then :
14373   printf %s "(cached) " >&6
14374 else $as_nop
14375   if test -n "$have_libpng"; then
14376   ac_cv_prog_have_libpng="$have_libpng" # Let the user override the test.
14377 else
14378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379 for as_dir in $PATH
14380 do
14381   IFS=$as_save_IFS
14382   case $as_dir in #(((
14383     '') as_dir=./ ;;
14384     */) ;;
14385     *) as_dir=$as_dir/ ;;
14386   esac
14387     for ac_exec_ext in '' $ac_executable_extensions; do
14388   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14389     ac_cv_prog_have_libpng="yes (libpng-config)"
14390     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14391     break 2
14392   fi
14393 done
14394   done
14395 IFS=$as_save_IFS
14396
14397   test -z "$ac_cv_prog_have_libpng" && ac_cv_prog_have_libpng="no"
14398 fi
14399 fi
14400 have_libpng=$ac_cv_prog_have_libpng
14401 if test -n "$have_libpng"; then
14402   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libpng" >&5
14403 printf "%s\n" "$have_libpng" >&6; }
14404 else
14405   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14406 printf "%s\n" "no" >&6; }
14407 fi
14408
14409
14410       if test "$have_libpng" != no; then
14411         LIBPNG_CFLAGS=`libpng-config --cflags`
14412         LIBPNG_LIBS=`libpng-config --ldflags`
14413         libpng_libspriv=`libpng-config --static --ldflags`
14414         libpng_libsstaticconf="$libpng_libspriv"
14415       fi
14416     fi
14417   fi
14418 fi
14419
14420 if test x"$with_png" = xyes -a "$have_libpng" = no; then
14421   as_fn_error $? "libpng support requested but library not found" "$LINENO" 5
14422 fi
14423
14424
14425 # check for system libharfbuzz
14426
14427
14428 # Check whether --with-harfbuzz was given.
14429 if test ${with_harfbuzz+y}
14430 then :
14431   withval=$with_harfbuzz;
14432 else $as_nop
14433   with_harfbuzz=auto
14434 fi
14435
14436
14437 have_harfbuzz=no
14438 if test x"$with_harfbuzz" = xyes -o x"$with_harfbuzz" = xauto; then
14439   harfbuzz_pkg="harfbuzz >= 2.0.0"
14440   have_harfbuzz_pkg=no
14441
14442   if test x"$HARFBUZZ_CFLAGS" = x -a x"$HARFBUZZ_LIBS" = x; then
14443     if test -n "$PKG_CONFIG" && \
14444     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14445   ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14446   ac_status=$?
14447   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14448   test $ac_status = 0; }; then
14449   have_harfbuzz_pkg=yes
14450 fi
14451   fi
14452
14453 pkg_failed=no
14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HARFBUZZ" >&5
14455 printf %s "checking for HARFBUZZ... " >&6; }
14456
14457 if test -n "$HARFBUZZ_CFLAGS"; then
14458     pkg_cv_HARFBUZZ_CFLAGS="$HARFBUZZ_CFLAGS"
14459  elif test -n "$PKG_CONFIG"; then
14460     if test -n "$PKG_CONFIG" && \
14461     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14462   ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14463   ac_status=$?
14464   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14465   test $ac_status = 0; }; then
14466   pkg_cv_HARFBUZZ_CFLAGS=`$PKG_CONFIG --cflags "$harfbuzz_pkg" 2>/dev/null`
14467                       test "x$?" != "x0" && pkg_failed=yes
14468 else
14469   pkg_failed=yes
14470 fi
14471  else
14472     pkg_failed=untried
14473 fi
14474 if test -n "$HARFBUZZ_LIBS"; then
14475     pkg_cv_HARFBUZZ_LIBS="$HARFBUZZ_LIBS"
14476  elif test -n "$PKG_CONFIG"; then
14477     if test -n "$PKG_CONFIG" && \
14478     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14479   ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14480   ac_status=$?
14481   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14482   test $ac_status = 0; }; then
14483   pkg_cv_HARFBUZZ_LIBS=`$PKG_CONFIG --libs "$harfbuzz_pkg" 2>/dev/null`
14484                       test "x$?" != "x0" && pkg_failed=yes
14485 else
14486   pkg_failed=yes
14487 fi
14488  else
14489     pkg_failed=untried
14490 fi
14491
14492
14493
14494 if test $pkg_failed = yes; then
14495         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14496 printf "%s\n" "no" >&6; }
14497
14498 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14499         _pkg_short_errors_supported=yes
14500 else
14501         _pkg_short_errors_supported=no
14502 fi
14503         if test $_pkg_short_errors_supported = yes; then
14504                 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
14505         else
14506                 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
14507         fi
14508         # Put the nasty error message in config.log where it belongs
14509         echo "$HARFBUZZ_PKG_ERRORS" >&5
14510
14511         :
14512 elif test $pkg_failed = untried; then
14513         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 printf "%s\n" "no" >&6; }
14515         :
14516 else
14517         HARFBUZZ_CFLAGS=$pkg_cv_HARFBUZZ_CFLAGS
14518         HARFBUZZ_LIBS=$pkg_cv_HARFBUZZ_LIBS
14519         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14520 printf "%s\n" "yes" >&6; }
14521         have_harfbuzz="yes (pkg-config)"
14522 fi
14523
14524   if test $have_harfbuzz_pkg = yes; then
14525     # we have harfbuzz.pc
14526     harfbuzz_reqpriv="$harfbuzz_pkg"
14527     harfbuzz_libspriv=
14528     harfbuzz_libsstaticconf=`$PKG_CONFIG --static --libs "$harfbuzz_pkg"`
14529   else
14530     harfbuzz_reqpriv=
14531
14532     if test "$have_harfbuzz" != no; then
14533       # HARFBUZZ_CFLAGS and HARFBUZZ_LIBS are set by the user
14534       harfbuzz_libspriv="$HARFBUZZ_LIBS"
14535       harfbuzz_libsstaticconf="$HARFBUZZ_LIBS"
14536       have_harfbuzz="yes (HARFBUZZ_CFLAGS and HARFBUZZ_LIBS)"
14537     else
14538       # since HarfBuzz is quite a new library we don't fall back to a
14539       # different test; additionally, it has too many dependencies
14540       :
14541     fi
14542   fi
14543 fi
14544
14545 if test x"$with_harfbuzz" = xyes -a "$have_harfbuzz" = no; then
14546   as_fn_error $? "harfbuzz support requested but library not found" "$LINENO" 5
14547 fi
14548
14549
14550 # check for system libbrotlidec
14551
14552
14553 # Check whether --with-brotli was given.
14554 if test ${with_brotli+y}
14555 then :
14556   withval=$with_brotli;
14557 else $as_nop
14558   with_brotli=auto
14559 fi
14560
14561
14562 have_brotli=no
14563 if test x"$with_brotli" = xyes -o x"$with_brotli" = xauto; then
14564   brotli_pkg="libbrotlidec"
14565   have_brotli_pkg=no
14566
14567   if test x"$BROTLI_CFLAGS" = x -a x"$BROTLI_LIBS" = x; then
14568     if test -n "$PKG_CONFIG" && \
14569     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14570   ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14571   ac_status=$?
14572   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14573   test $ac_status = 0; }; then
14574   have_brotli_pkg=yes
14575 fi
14576   fi
14577
14578 pkg_failed=no
14579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BROTLI" >&5
14580 printf %s "checking for BROTLI... " >&6; }
14581
14582 if test -n "$BROTLI_CFLAGS"; then
14583     pkg_cv_BROTLI_CFLAGS="$BROTLI_CFLAGS"
14584  elif test -n "$PKG_CONFIG"; then
14585     if test -n "$PKG_CONFIG" && \
14586     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14587   ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14588   ac_status=$?
14589   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14590   test $ac_status = 0; }; then
14591   pkg_cv_BROTLI_CFLAGS=`$PKG_CONFIG --cflags "$brotli_pkg" 2>/dev/null`
14592                       test "x$?" != "x0" && pkg_failed=yes
14593 else
14594   pkg_failed=yes
14595 fi
14596  else
14597     pkg_failed=untried
14598 fi
14599 if test -n "$BROTLI_LIBS"; then
14600     pkg_cv_BROTLI_LIBS="$BROTLI_LIBS"
14601  elif test -n "$PKG_CONFIG"; then
14602     if test -n "$PKG_CONFIG" && \
14603     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14604   ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14605   ac_status=$?
14606   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14607   test $ac_status = 0; }; then
14608   pkg_cv_BROTLI_LIBS=`$PKG_CONFIG --libs "$brotli_pkg" 2>/dev/null`
14609                       test "x$?" != "x0" && pkg_failed=yes
14610 else
14611   pkg_failed=yes
14612 fi
14613  else
14614     pkg_failed=untried
14615 fi
14616
14617
14618
14619 if test $pkg_failed = yes; then
14620         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14621 printf "%s\n" "no" >&6; }
14622
14623 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14624         _pkg_short_errors_supported=yes
14625 else
14626         _pkg_short_errors_supported=no
14627 fi
14628         if test $_pkg_short_errors_supported = yes; then
14629                 BROTLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$brotli_pkg" 2>&1`
14630         else
14631                 BROTLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$brotli_pkg" 2>&1`
14632         fi
14633         # Put the nasty error message in config.log where it belongs
14634         echo "$BROTLI_PKG_ERRORS" >&5
14635
14636         :
14637 elif test $pkg_failed = untried; then
14638         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14639 printf "%s\n" "no" >&6; }
14640         :
14641 else
14642         BROTLI_CFLAGS=$pkg_cv_BROTLI_CFLAGS
14643         BROTLI_LIBS=$pkg_cv_BROTLI_LIBS
14644         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14645 printf "%s\n" "yes" >&6; }
14646         have_brotli="yes (pkg-config)"
14647 fi
14648
14649   if test $have_brotli_pkg = yes; then
14650     # we have libbrotlidec.pc
14651     brotli_reqpriv="$brotli_pkg"
14652     brotli_libspriv=
14653     brotli_libsstaticconf=`$PKG_CONFIG --static --libs "$brotli_pkg"`
14654   else
14655     brotli_reqpriv=
14656
14657     if test "$have_brotli" != no; then
14658       # BROTLI_CFLAGS and BROTLI_LIBS are set by the user
14659       brotli_libspriv="$BROTLI_LIBS"
14660       brotli_libsstaticconf="$BROTLI_LIBS"
14661       have_brotli="yes (BROTLI_CFLAGS and BROTLI_LIBS)"
14662     else
14663       # since Brotli is quite a new library we don't fall back to a
14664       # different test
14665       :
14666     fi
14667   fi
14668 fi
14669
14670 if test x"$with_brotli" = xyes -a "$have_brotli" = no; then
14671   as_fn_error $? "brotli support requested but library not found" "$LINENO" 5
14672 fi
14673
14674
14675 # Checks for the demo programs.
14676 #
14677 # FreeType doesn't need this.  However, since the demo program repository
14678 # doesn't come with a `configure` script of its own, we integrate the tests
14679 # here for simplicity.
14680
14681 # We need `clock_gettime` from 'librt' for the `ftbench` demo program.
14682 #
14683 # The code is modeled after gnulib's file `clock_time.m4`, ignoring
14684 # very old Solaris systems.
14685 LIB_CLOCK_GETTIME=
14686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14687 printf %s "checking for library containing clock_gettime... " >&6; }
14688 if test ${ac_cv_search_clock_gettime+y}
14689 then :
14690   printf %s "(cached) " >&6
14691 else $as_nop
14692   ac_func_search_save_LIBS=$LIBS
14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h.  */
14695
14696 /* Override any GCC internal prototype to avoid an error.
14697    Use char because int might match the return type of a GCC
14698    builtin and then its argument prototype would still apply.  */
14699 char clock_gettime ();
14700 int
14701 main (void)
14702 {
14703 return clock_gettime ();
14704   ;
14705   return 0;
14706 }
14707 _ACEOF
14708 for ac_lib in '' rt
14709 do
14710   if test -z "$ac_lib"; then
14711     ac_res="none required"
14712   else
14713     ac_res=-l$ac_lib
14714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14715   fi
14716   if ac_fn_c_try_link "$LINENO"
14717 then :
14718   ac_cv_search_clock_gettime=$ac_res
14719 fi
14720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14721     conftest$ac_exeext
14722   if test ${ac_cv_search_clock_gettime+y}
14723 then :
14724   break
14725 fi
14726 done
14727 if test ${ac_cv_search_clock_gettime+y}
14728 then :
14729
14730 else $as_nop
14731   ac_cv_search_clock_gettime=no
14732 fi
14733 rm conftest.$ac_ext
14734 LIBS=$ac_func_search_save_LIBS
14735 fi
14736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14737 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
14738 ac_res=$ac_cv_search_clock_gettime
14739 if test "$ac_res" != no
14740 then :
14741   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14742   test "$ac_cv_search_clock_gettime" = "none required" \
14743                 || LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
14744 fi
14745
14746
14747 FT_DEMO_CFLAGS=""
14748 FT_DEMO_LDFLAGS="$LIB_CLOCK_GETTIME"
14749
14750 # 'librsvg' is needed to demonstrate SVG support.
14751
14752 # Check whether --with-librsvg was given.
14753 if test ${with_librsvg+y}
14754 then :
14755   withval=$with_librsvg;
14756 else $as_nop
14757   with_librsvg=auto
14758 fi
14759
14760
14761 have_librsvg=no
14762 if test x"$with_librsvg" = xyes -o x"$with_librsvg" = xauto; then
14763
14764 pkg_failed=no
14765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBRSVG" >&5
14766 printf %s "checking for LIBRSVG... " >&6; }
14767
14768 if test -n "$LIBRSVG_CFLAGS"; then
14769     pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS"
14770  elif test -n "$PKG_CONFIG"; then
14771     if test -n "$PKG_CONFIG" && \
14772     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.46.0\""; } >&5
14773   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.46.0") 2>&5
14774   ac_status=$?
14775   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14776   test $ac_status = 0; }; then
14777   pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.46.0" 2>/dev/null`
14778                       test "x$?" != "x0" && pkg_failed=yes
14779 else
14780   pkg_failed=yes
14781 fi
14782  else
14783     pkg_failed=untried
14784 fi
14785 if test -n "$LIBRSVG_LIBS"; then
14786     pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS"
14787  elif test -n "$PKG_CONFIG"; then
14788     if test -n "$PKG_CONFIG" && \
14789     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.46.0\""; } >&5
14790   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.46.0") 2>&5
14791   ac_status=$?
14792   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14793   test $ac_status = 0; }; then
14794   pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.46.0" 2>/dev/null`
14795                       test "x$?" != "x0" && pkg_failed=yes
14796 else
14797   pkg_failed=yes
14798 fi
14799  else
14800     pkg_failed=untried
14801 fi
14802
14803
14804
14805 if test $pkg_failed = yes; then
14806         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807 printf "%s\n" "no" >&6; }
14808
14809 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14810         _pkg_short_errors_supported=yes
14811 else
14812         _pkg_short_errors_supported=no
14813 fi
14814         if test $_pkg_short_errors_supported = yes; then
14815                 LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.46.0" 2>&1`
14816         else
14817                 LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.46.0" 2>&1`
14818         fi
14819         # Put the nasty error message in config.log where it belongs
14820         echo "$LIBRSVG_PKG_ERRORS" >&5
14821
14822         :
14823 elif test $pkg_failed = untried; then
14824         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14825 printf "%s\n" "no" >&6; }
14826         :
14827 else
14828         LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS
14829         LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS
14830         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14831 printf "%s\n" "yes" >&6; }
14832         have_librsvg="yes (pkg-config)"
14833 fi
14834
14835   if test "$have_librsvg" != no; then
14836     FT_DEMO_CFLAGS="$FT_DEMO_CFLAGS $LIBRSVG_CFLAGS -DHAVE_LIBRSVG"
14837     FT_DEMO_LDFLAGS="$FT_DEMO_LDFLAGS $LIBRSVG_LIBS"
14838   fi
14839 fi
14840
14841 if test x"$with_librsvg" = xyes -a "$have_librsvg" = no; then
14842   as_fn_error $? "librsvg support requested but library not found" "$LINENO" 5
14843 fi
14844
14845
14846
14847
14848
14849 # Some options handling SDKs/archs in CFLAGS should be copied
14850 # to LDFLAGS. Apple TechNote 2137 recommends to include these
14851 # options in CFLAGS but not in LDFLAGS.
14852
14853 save_config_args=$*
14854 set dummy ${CFLAGS}
14855 i=1
14856 while test $i -le $#
14857 do
14858   c=$1
14859
14860   case "${c}" in
14861   -isysroot|-arch) # options taking 1 argument
14862     a=$2
14863     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
14864 printf %s "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
14865     if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
14866     then
14867       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14868 printf "%s\n" "yes" >&6; }
14869     else
14870       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
14871 printf "%s\n" "no, copy to LDFLAGS" >&6; }
14872       LDFLAGS="${LDFLAGS} ${c} ${a}"
14873     fi
14874     shift 1
14875     ;;
14876   -m32|-m64|-march=*|-mcpu=*) # options taking no argument
14877     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c}" >&5
14878 printf %s "checking whether CFLAGS and LDFLAGS share ${c}... " >&6; }
14879     if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
14880     then
14881       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14882 printf "%s\n" "yes" >&6; }
14883     else
14884       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
14885 printf "%s\n" "no, copy to LDFLAGS" >&6; }
14886       LDFLAGS="${LDFLAGS} ${c}"
14887     fi
14888     ;;
14889   # *)
14890   #   AC_MSG_RESULT([${c} is not copied to LDFLAGS])
14891   #   ;;
14892   esac
14893
14894   shift 1
14895 done
14896 set ${save_config_args}
14897
14898
14899 # Whether to use Mac OS resource-based fonts.
14900
14901 ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
14902
14903
14904 # Check whether --with-old-mac-fonts was given.
14905 if test ${with_old_mac_fonts+y}
14906 then :
14907   withval=$with_old_mac_fonts;
14908 fi
14909
14910 if test x$with_old_mac_fonts = xyes; then
14911   orig_LDFLAGS="${LDFLAGS}"
14912   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CoreServices & ApplicationServices of Mac OS X" >&5
14913 printf %s "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
14914   ft2_extra_libs="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
14915   LDFLAGS="$LDFLAGS $ft2_extra_libs"
14916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h.  */
14918
14919
14920
14921 #if defined(__GNUC__) && defined(__APPLE_CC__)
14922 # include <CoreServices/CoreServices.h>
14923 # include <ApplicationServices/ApplicationServices.h>
14924 #else
14925 # include <ConditionalMacros.h>
14926 # include <Files.h>
14927 #endif
14928
14929
14930 int
14931 main (void)
14932 {
14933
14934
14935         short res = 0;
14936
14937
14938         UseResFile( res );
14939
14940
14941   ;
14942   return 0;
14943 }
14944 _ACEOF
14945 if ac_fn_c_try_link "$LINENO"
14946 then :
14947   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14948 printf "%s\n" "ok" >&6; }
14949      ftmac_c='ftmac.c'
14950      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS_INLINE macro is ANSI compatible" >&5
14951 printf %s "checking whether OS_INLINE macro is ANSI compatible... " >&6; }
14952      orig_CFLAGS="$CFLAGS -DFT_MACINTOSH"
14953      CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
14954      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h.  */
14956
14957
14958
14959 #if defined(__GNUC__) && defined(__APPLE_CC__)
14960 # include <CoreServices/CoreServices.h>
14961 # include <ApplicationServices/ApplicationServices.h>
14962 #else
14963 # include <ConditionalMacros.h>
14964 # include <Files.h>
14965 #endif
14966
14967
14968 int
14969 main (void)
14970 {
14971
14972
14973            /* OSHostByteOrder() is typed as OS_INLINE */
14974            int32_t  os_byte_order = OSHostByteOrder();
14975
14976
14977            if ( OSBigEndian != os_byte_order )
14978              return 1;
14979
14980
14981   ;
14982   return 0;
14983 }
14984 _ACEOF
14985 if ac_fn_c_try_compile "$LINENO"
14986 then :
14987   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14988 printf "%s\n" "ok" >&6; }
14989         CFLAGS="$orig_CFLAGS"
14990         CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
14991
14992 else $as_nop
14993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, ANSI incompatible" >&5
14994 printf "%s\n" "no, ANSI incompatible" >&6; }
14995         CFLAGS="$orig_CFLAGS"
14996
14997 fi
14998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14999      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type ResourceIndex" >&5
15000 printf %s "checking type ResourceIndex... " >&6; }
15001      orig_CFLAGS="$CFLAGS"
15002      CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
15003      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h.  */
15005
15006
15007
15008 #if defined(__GNUC__) && defined(__APPLE_CC__)
15009 # include <CoreServices/CoreServices.h>
15010 # include <ApplicationServices/ApplicationServices.h>
15011 #else
15012 # include <ConditionalMacros.h>
15013 # include <Files.h>
15014 # include <Resources.h>
15015 #endif
15016
15017
15018 int
15019 main (void)
15020 {
15021
15022
15023            ResourceIndex i = 0;
15024            return i;
15025
15026
15027   ;
15028   return 0;
15029 }
15030 _ACEOF
15031 if ac_fn_c_try_compile "$LINENO"
15032 then :
15033   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15034 printf "%s\n" "ok" >&6; }
15035         CFLAGS="$orig_CFLAGS"
15036         CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
15037
15038 else $as_nop
15039   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040 printf "%s\n" "no" >&6; }
15041         CFLAGS="$orig_CFLAGS"
15042         CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
15043
15044 fi
15045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15046 else $as_nop
15047   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15048 printf "%s\n" "not found" >&6; }
15049      ft2_extra_libs=""
15050      LDFLAGS="${orig_LDFLAGS}"
15051      CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
15052 fi
15053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15054     conftest$ac_exeext conftest.$ac_ext
15055 else
15056   case x$host_os in
15057   xdarwin*)
15058         CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
15059     ;;
15060   *)
15061     ;;
15062   esac
15063 fi
15064
15065
15066 # Whether to use FileManager, which is deprecated since Mac OS X 10.4.
15067
15068
15069 # Check whether --with-fsspec was given.
15070 if test ${with_fsspec+y}
15071 then :
15072   withval=$with_fsspec;
15073 fi
15074
15075 if test x$with_fsspec = xno; then
15076   CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
15077 elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
15078   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FSSpec-based FileManager" >&5
15079 printf %s "checking FSSpec-based FileManager... " >&6; }
15080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h.  */
15082
15083
15084
15085 #if defined(__GNUC__) && defined(__APPLE_CC__)
15086 # include <CoreServices/CoreServices.h>
15087 # include <ApplicationServices/ApplicationServices.h>
15088 #else
15089 # include <ConditionalMacros.h>
15090 # include <Files.h>
15091 #endif
15092
15093
15094 int
15095 main (void)
15096 {
15097
15098
15099         FCBPBPtr          paramBlock;
15100         short             vRefNum;
15101         long              dirID;
15102         ConstStr255Param  fileName;
15103         FSSpec*           spec;
15104
15105
15106         /* FSSpec functions: deprecated since Mac OS X 10.4 */
15107         PBGetFCBInfoSync( paramBlock );
15108         FSMakeFSSpec( vRefNum, dirID, fileName, spec );
15109
15110
15111   ;
15112   return 0;
15113 }
15114 _ACEOF
15115 if ac_fn_c_try_link "$LINENO"
15116 then :
15117   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15118 printf "%s\n" "ok" >&6; }
15119      CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
15120 else $as_nop
15121   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15122 printf "%s\n" "not found" >&6; }
15123      CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
15124 fi
15125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15126     conftest$ac_exeext conftest.$ac_ext
15127 fi
15128
15129
15130 # Whether to use FileManager in Carbon since MacOS 9.x.
15131
15132
15133 # Check whether --with-fsref was given.
15134 if test ${with_fsref+y}
15135 then :
15136   withval=$with_fsref;
15137 fi
15138
15139 if test x$with_fsref = xno; then
15140   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15141 *** WARNING
15142     FreeType2 built without FSRef API cannot load
15143     data-fork fonts on MacOS, except of XXX.dfont.
15144     " >&5
15145 printf "%s\n" "$as_me: WARNING:
15146 *** WARNING
15147     FreeType2 built without FSRef API cannot load
15148     data-fork fonts on MacOS, except of XXX.dfont.
15149     " >&2;}
15150   CFLAGS="$CFLAGS -DHAVE_FSREF=0"
15151 elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
15152   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FSRef-based FileManager" >&5
15153 printf %s "checking FSRef-based FileManager... " >&6; }
15154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155 /* end confdefs.h.  */
15156
15157
15158
15159 #if defined(__GNUC__) && defined(__APPLE_CC__)
15160 # include <CoreServices/CoreServices.h>
15161 # include <ApplicationServices/ApplicationServices.h>
15162 #else
15163 # include <ConditionalMacros.h>
15164 # include <Files.h>
15165 #endif
15166
15167
15168 int
15169 main (void)
15170 {
15171
15172
15173         short                vRefNum;
15174         long                 dirID;
15175         ConstStr255Param     fileName;
15176
15177         Boolean*             isDirectory;
15178         UInt8*               path;
15179         SInt16               desiredRefNum;
15180         SInt16*              iterator;
15181         SInt16*              actualRefNum;
15182         HFSUniStr255*        outForkName;
15183         FSVolumeRefNum       volume;
15184         FSCatalogInfoBitmap  whichInfo;
15185         FSCatalogInfo*       catalogInfo;
15186         FSForkInfo*          forkInfo;
15187         FSRef*               ref;
15188
15189 #if HAVE_FSSPEC
15190         FSSpec*              spec;
15191 #endif
15192
15193         /* FSRef functions: no need to check? */
15194         FSGetForkCBInfo( desiredRefNum, volume, iterator,
15195                          actualRefNum, forkInfo, ref,
15196                          outForkName );
15197         FSPathMakeRef( path, ref, isDirectory );
15198
15199 #if HAVE_FSSPEC
15200         FSpMakeFSRef ( spec, ref );
15201         FSGetCatalogInfo( ref, whichInfo, catalogInfo,
15202                           outForkName, spec, ref );
15203 #endif
15204
15205   ;
15206   return 0;
15207 }
15208 _ACEOF
15209 if ac_fn_c_try_link "$LINENO"
15210 then :
15211   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15212 printf "%s\n" "ok" >&6; }
15213      CFLAGS="$CFLAGS -DHAVE_FSREF=1"
15214 else $as_nop
15215   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15216 printf "%s\n" "not found" >&6; }
15217      CFLAGS="$CFLAGS -DHAVE_FSREF=0"
15218 fi
15219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15220     conftest$ac_exeext conftest.$ac_ext
15221 fi
15222
15223
15224 # Whether to use QuickDraw API in ToolBox, which is deprecated since
15225 # Mac OS X 10.4.
15226
15227
15228 # Check whether --with-quickdraw-toolbox was given.
15229 if test ${with_quickdraw_toolbox+y}
15230 then :
15231   withval=$with_quickdraw_toolbox;
15232 fi
15233
15234 if test x$with_quickdraw_toolbox = xno; then
15235   CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
15236 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
15237   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in ToolBox" >&5
15238 printf %s "checking QuickDraw FontManager functions in ToolBox... " >&6; }
15239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h.  */
15241
15242
15243
15244 #if defined(__GNUC__) && defined(__APPLE_CC__)
15245 # include <CoreServices/CoreServices.h>
15246 # include <ApplicationServices/ApplicationServices.h>
15247 #else
15248 # include <ConditionalMacros.h>
15249 # include <Fonts.h>
15250 #endif
15251
15252
15253 int
15254 main (void)
15255 {
15256
15257
15258         Str255     familyName;
15259         SInt16     familyID   = 0;
15260         FMInput*   fmIn       = NULL;
15261         FMOutput*  fmOut      = NULL;
15262
15263
15264         GetFontName( familyID, familyName );
15265         GetFNum( familyName, &familyID );
15266         fmOut = FMSwapFont( fmIn );
15267
15268
15269   ;
15270   return 0;
15271 }
15272 _ACEOF
15273 if ac_fn_c_try_link "$LINENO"
15274 then :
15275   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15276 printf "%s\n" "ok" >&6; }
15277      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
15278 else $as_nop
15279   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15280 printf "%s\n" "not found" >&6; }
15281      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
15282 fi
15283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15284     conftest$ac_exeext conftest.$ac_ext
15285 fi
15286
15287
15288 # Whether to use QuickDraw API in Carbon, which is deprecated since
15289 # Mac OS X 10.4.
15290
15291
15292 # Check whether --with-quickdraw-carbon was given.
15293 if test ${with_quickdraw_carbon+y}
15294 then :
15295   withval=$with_quickdraw_carbon;
15296 fi
15297
15298 if test x$with_quickdraw_carbon = xno; then
15299   CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
15300 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
15301   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in Carbon" >&5
15302 printf %s "checking QuickDraw FontManager functions in Carbon... " >&6; }
15303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15304 /* end confdefs.h.  */
15305
15306
15307
15308 #if defined(__GNUC__) && defined(__APPLE_CC__)
15309 # include <CoreServices/CoreServices.h>
15310 # include <ApplicationServices/ApplicationServices.h>
15311 #else
15312 # include <ConditionalMacros.h>
15313 # include <Fonts.h>
15314 #endif
15315
15316
15317 int
15318 main (void)
15319 {
15320
15321
15322         FMFontFamilyIterator          famIter;
15323         FMFontFamily                  family;
15324         Str255                        famNameStr;
15325         FMFontFamilyInstanceIterator  instIter;
15326         FMFontStyle                   style;
15327         FMFontSize                    size;
15328         FMFont                        font;
15329         FSSpec*                       pathSpec;
15330
15331
15332         FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
15333                                     &famIter );
15334         FMGetNextFontFamily( &famIter, &family );
15335         FMGetFontFamilyName( family, famNameStr );
15336         FMCreateFontFamilyInstanceIterator( family, &instIter );
15337         FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
15338         FMDisposeFontFamilyInstanceIterator( &instIter );
15339         FMDisposeFontFamilyIterator( &famIter );
15340         FMGetFontContainer( font, pathSpec );
15341
15342
15343   ;
15344   return 0;
15345 }
15346 _ACEOF
15347 if ac_fn_c_try_link "$LINENO"
15348 then :
15349   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15350 printf "%s\n" "ok" >&6; }
15351      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
15352 else $as_nop
15353   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15354 printf "%s\n" "not found" >&6; }
15355      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
15356 fi
15357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15358     conftest$ac_exeext conftest.$ac_ext
15359 fi
15360
15361
15362 # Whether to use AppleTypeService since Mac OS X.
15363
15364
15365 # Check whether --with-ats was given.
15366 if test ${with_ats+y}
15367 then :
15368   withval=$with_ats;
15369 fi
15370
15371 if test x$with_ats = xno; then
15372   CFLAGS="$CFLAGS -DHAVE_ATS=0"
15373 elif test x$with_old_mac_fonts = xyes -a x$with_ats != x; then
15374   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking AppleTypeService functions" >&5
15375 printf %s "checking AppleTypeService functions... " >&6; }
15376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h.  */
15378
15379
15380
15381 #if defined(__GNUC__) && defined(__APPLE_CC__)
15382 # include <CoreServices/CoreServices.h>
15383 # include <ApplicationServices/ApplicationServices.h>
15384 #else
15385 # include <ConditionalMacros.h>
15386 # include <Files.h>
15387 #endif
15388
15389
15390 int
15391 main (void)
15392 {
15393
15394
15395         FSSpec*  pathSpec;
15396
15397
15398         ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
15399 #if HAVE_FSSPEC
15400         ATSFontGetFileSpecification( 0, pathSpec );
15401 #endif
15402
15403
15404   ;
15405   return 0;
15406 }
15407 _ACEOF
15408 if ac_fn_c_try_link "$LINENO"
15409 then :
15410   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15411 printf "%s\n" "ok" >&6; }
15412      CFLAGS="$CFLAGS -DHAVE_ATS=1"
15413 else $as_nop
15414   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15415 printf "%s\n" "not found" >&6; }
15416      CFLAGS="$CFLAGS -DHAVE_ATS=0"
15417 fi
15418 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15419     conftest$ac_exeext conftest.$ac_ext
15420 fi
15421
15422 case "$CFLAGS" in
15423   *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
15424     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15425 *** WARNING
15426     FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
15427     thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
15428     " >&5
15429 printf "%s\n" "$as_me: WARNING:
15430 *** WARNING
15431     FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
15432     thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
15433     " >&2;}
15434     CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
15435     ;;
15436   *)
15437     ;;
15438 esac
15439
15440 # Check for pthreads
15441
15442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15443 printf %s "checking target system type... " >&6; }
15444 if test ${ac_cv_target+y}
15445 then :
15446   printf %s "(cached) " >&6
15447 else $as_nop
15448   if test "x$target_alias" = x; then
15449   ac_cv_target=$ac_cv_host
15450 else
15451   ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
15452     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
15453 fi
15454
15455 fi
15456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15457 printf "%s\n" "$ac_cv_target" >&6; }
15458 case $ac_cv_target in
15459 *-*-*) ;;
15460 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15461 esac
15462 target=$ac_cv_target
15463 ac_save_IFS=$IFS; IFS='-'
15464 set x $ac_cv_target
15465 shift
15466 target_cpu=$1
15467 target_vendor=$2
15468 shift; shift
15469 # Remember, the first character of IFS is used to create $*,
15470 # except with old shells:
15471 target_os=$*
15472 IFS=$ac_save_IFS
15473 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15474
15475
15476 # The aliases save the names the user supplied, while $host etc.
15477 # will get canonicalized.
15478 test -n "$target_alias" &&
15479   test "$program_prefix$program_suffix$program_transform_name" = \
15480     NONENONEs,x,x, &&
15481   program_prefix=${target_alias}-
15482
15483
15484
15485
15486
15487 ac_ext=c
15488 ac_cpp='$CPP $CPPFLAGS'
15489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15492
15493 ax_pthread_ok=no
15494
15495 # We used to check for pthread.h first, but this fails if pthread.h
15496 # requires special compiler flags (e.g. on Tru64 or Sequent).
15497 # It gets checked for in the link test anyway.
15498
15499 # First of all, check if the user has set any of the PTHREAD_LIBS,
15500 # etcetera environment variables, and if threads linking works using
15501 # them:
15502 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15503         ax_pthread_save_CC="$CC"
15504         ax_pthread_save_CFLAGS="$CFLAGS"
15505         ax_pthread_save_LIBS="$LIBS"
15506         if test "x$PTHREAD_CC" != "x"
15507 then :
15508   CC="$PTHREAD_CC"
15509 fi
15510         if test "x$PTHREAD_CXX" != "x"
15511 then :
15512   CXX="$PTHREAD_CXX"
15513 fi
15514         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15515         LIBS="$PTHREAD_LIBS $LIBS"
15516         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15517 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15518         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h.  */
15520
15521 /* Override any GCC internal prototype to avoid an error.
15522    Use char because int might match the return type of a GCC
15523    builtin and then its argument prototype would still apply.  */
15524 char pthread_join ();
15525 int
15526 main (void)
15527 {
15528 return pthread_join ();
15529   ;
15530   return 0;
15531 }
15532 _ACEOF
15533 if ac_fn_c_try_link "$LINENO"
15534 then :
15535   ax_pthread_ok=yes
15536 fi
15537 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15538     conftest$ac_exeext conftest.$ac_ext
15539         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15540 printf "%s\n" "$ax_pthread_ok" >&6; }
15541         if test "x$ax_pthread_ok" = "xno"; then
15542                 PTHREAD_LIBS=""
15543                 PTHREAD_CFLAGS=""
15544         fi
15545         CC="$ax_pthread_save_CC"
15546         CFLAGS="$ax_pthread_save_CFLAGS"
15547         LIBS="$ax_pthread_save_LIBS"
15548 fi
15549
15550 # We must check for the threads library under a number of different
15551 # names; the ordering is very important because some systems
15552 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15553 # libraries is broken (non-POSIX).
15554
15555 # Create a list of thread flags to try. Items with a "," contain both
15556 # C compiler flags (before ",") and linker flags (after ","). Other items
15557 # starting with a "-" are C compiler flags, and remaining items are
15558 # library names, except for "none" which indicates that we try without
15559 # any flags at all, and "pthread-config" which is a program returning
15560 # the flags for the Pth emulation library.
15561
15562 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15563
15564 # The ordering *is* (sometimes) important.  Some notes on the
15565 # individual items follow:
15566
15567 # pthreads: AIX (must check this before -lpthread)
15568 # none: in case threads are in libc; should be tried before -Kthread and
15569 #       other compiler flags to prevent continual compiler warnings
15570 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15571 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15572 #           (Note: HP C rejects this with "bad form for `-t' option")
15573 # -pthreads: Solaris/gcc (Note: HP C also rejects)
15574 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15575 #      doesn't hurt to check since this sometimes defines pthreads and
15576 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
15577 #      is present but should not be used directly; and before -mthreads,
15578 #      because the compiler interprets this as "-mt" + "-hreads")
15579 # -mthreads: Mingw32/gcc, Lynx/gcc
15580 # pthread: Linux, etcetera
15581 # --thread-safe: KAI C++
15582 # pthread-config: use pthread-config program (for GNU Pth library)
15583
15584 case $target_os in
15585
15586         freebsd*)
15587
15588         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15589         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15590
15591         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15592         ;;
15593
15594         hpux*)
15595
15596         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15597         # multi-threading and also sets -lpthread."
15598
15599         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15600         ;;
15601
15602         openedition*)
15603
15604         # IBM z/OS requires a feature-test macro to be defined in order to
15605         # enable POSIX threads at all, so give the user a hint if this is
15606         # not set. (We don't define these ourselves, as they can affect
15607         # other portions of the system API in unpredictable ways.)
15608
15609         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h.  */
15611
15612 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15613              AX_PTHREAD_ZOS_MISSING
15614 #            endif
15615
15616 _ACEOF
15617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15618   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
15619 then :
15620   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15621 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15622 fi
15623 rm -rf conftest*
15624
15625         ;;
15626
15627         solaris*)
15628
15629         # On Solaris (at least, for some versions), libc contains stubbed
15630         # (non-functional) versions of the pthreads routines, so link-based
15631         # tests will erroneously succeed. (N.B.: The stubs are missing
15632         # pthread_cleanup_push, or rather a function called by this macro,
15633         # so we could check for that, but who knows whether they'll stub
15634         # that too in a future libc.)  So we'll check first for the
15635         # standard Solaris way of linking pthreads (-mt -lpthread).
15636
15637         ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
15638         ;;
15639 esac
15640
15641 # Are we compiling with Clang?
15642
15643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15644 printf %s "checking whether $CC is Clang... " >&6; }
15645 if test ${ax_cv_PTHREAD_CLANG+y}
15646 then :
15647   printf %s "(cached) " >&6
15648 else $as_nop
15649   ax_cv_PTHREAD_CLANG=no
15650      # Note that Autoconf sets GCC=yes for Clang as well as GCC
15651      if test "x$GCC" = "xyes"; then
15652         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653 /* end confdefs.h.  */
15654 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15655 #            if defined(__clang__) && defined(__llvm__)
15656              AX_PTHREAD_CC_IS_CLANG
15657 #            endif
15658
15659 _ACEOF
15660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15661   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
15662 then :
15663   ax_cv_PTHREAD_CLANG=yes
15664 fi
15665 rm -rf conftest*
15666
15667      fi
15668
15669 fi
15670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15671 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
15672 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15673
15674
15675 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15676
15677 # Note that for GCC and Clang -pthread generally implies -lpthread,
15678 # except when -nostdlib is passed.
15679 # This is problematic using libtool to build C++ shared libraries with pthread:
15680 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
15681 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
15682 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
15683 # To solve this, first try -pthread together with -lpthread for GCC
15684
15685 if test "x$GCC" = "xyes"
15686 then :
15687   ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
15688 fi
15689
15690 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
15691
15692 if test "x$ax_pthread_clang" = "xyes"
15693 then :
15694   ax_pthread_flags="-pthread,-lpthread -pthread"
15695 fi
15696
15697
15698 # The presence of a feature test macro requesting re-entrant function
15699 # definitions is, on some systems, a strong hint that pthreads support is
15700 # correctly enabled
15701
15702 case $target_os in
15703         darwin* | hpux* | linux* | osf* | solaris*)
15704         ax_pthread_check_macro="_REENTRANT"
15705         ;;
15706
15707         aix*)
15708         ax_pthread_check_macro="_THREAD_SAFE"
15709         ;;
15710
15711         *)
15712         ax_pthread_check_macro="--"
15713         ;;
15714 esac
15715 if test "x$ax_pthread_check_macro" = "x--"
15716 then :
15717   ax_pthread_check_cond=0
15718 else $as_nop
15719   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
15720 fi
15721
15722
15723 if test "x$ax_pthread_ok" = "xno"; then
15724 for ax_pthread_try_flag in $ax_pthread_flags; do
15725
15726         case $ax_pthread_try_flag in
15727                 none)
15728                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15729 printf %s "checking whether pthreads work without any flags... " >&6; }
15730                 ;;
15731
15732                 *,*)
15733                 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
15734                 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
15735                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
15736 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
15737                 ;;
15738
15739                 -*)
15740                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
15741 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
15742                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
15743                 ;;
15744
15745                 pthread-config)
15746                 # Extract the first word of "pthread-config", so it can be a program name with args.
15747 set dummy pthread-config; ac_word=$2
15748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15749 printf %s "checking for $ac_word... " >&6; }
15750 if test ${ac_cv_prog_ax_pthread_config+y}
15751 then :
15752   printf %s "(cached) " >&6
15753 else $as_nop
15754   if test -n "$ax_pthread_config"; then
15755   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15756 else
15757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15759 do
15760   IFS=$as_save_IFS
15761   case $as_dir in #(((
15762     '') as_dir=./ ;;
15763     */) ;;
15764     *) as_dir=$as_dir/ ;;
15765   esac
15766     for ac_exec_ext in '' $ac_executable_extensions; do
15767   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15768     ac_cv_prog_ax_pthread_config="yes"
15769     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15770     break 2
15771   fi
15772 done
15773   done
15774 IFS=$as_save_IFS
15775
15776   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15777 fi
15778 fi
15779 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15780 if test -n "$ax_pthread_config"; then
15781   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15782 printf "%s\n" "$ax_pthread_config" >&6; }
15783 else
15784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15785 printf "%s\n" "no" >&6; }
15786 fi
15787
15788
15789                 if test "x$ax_pthread_config" = "xno"
15790 then :
15791   continue
15792 fi
15793                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15794                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15795                 ;;
15796
15797                 *)
15798                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
15799 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
15800                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
15801                 ;;
15802         esac
15803
15804         ax_pthread_save_CFLAGS="$CFLAGS"
15805         ax_pthread_save_LIBS="$LIBS"
15806         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15807         LIBS="$PTHREAD_LIBS $LIBS"
15808
15809         # Check for various functions.  We must include pthread.h,
15810         # since some functions may be macros.  (On the Sequent, we
15811         # need a special flag -Kthread to make this header compile.)
15812         # We check for pthread_join because it is in -lpthread on IRIX
15813         # while pthread_create is in libc.  We check for pthread_attr_init
15814         # due to DEC craziness with -lpthreads.  We check for
15815         # pthread_cleanup_push because it is one of the few pthread
15816         # functions on Solaris that doesn't have a non-functional libc stub.
15817         # We try pthread_create on general principles.
15818
15819         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h.  */
15821 #include <pthread.h>
15822 #                       if $ax_pthread_check_cond
15823 #                        error "$ax_pthread_check_macro must be defined"
15824 #                       endif
15825                         static void *some_global = NULL;
15826                         static void routine(void *a)
15827                           {
15828                              /* To avoid any unused-parameter or
15829                                 unused-but-set-parameter warning.  */
15830                              some_global = a;
15831                           }
15832                         static void *start_routine(void *a) { return a; }
15833 int
15834 main (void)
15835 {
15836 pthread_t th; pthread_attr_t attr;
15837                         pthread_create(&th, 0, start_routine, 0);
15838                         pthread_join(th, 0);
15839                         pthread_attr_init(&attr);
15840                         pthread_cleanup_push(routine, 0);
15841                         pthread_cleanup_pop(0) /* ; */
15842   ;
15843   return 0;
15844 }
15845 _ACEOF
15846 if ac_fn_c_try_link "$LINENO"
15847 then :
15848   ax_pthread_ok=yes
15849 fi
15850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15851     conftest$ac_exeext conftest.$ac_ext
15852
15853         CFLAGS="$ax_pthread_save_CFLAGS"
15854         LIBS="$ax_pthread_save_LIBS"
15855
15856         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15857 printf "%s\n" "$ax_pthread_ok" >&6; }
15858         if test "x$ax_pthread_ok" = "xyes"
15859 then :
15860   break
15861 fi
15862
15863         PTHREAD_LIBS=""
15864         PTHREAD_CFLAGS=""
15865 done
15866 fi
15867
15868
15869 # Clang needs special handling, because older versions handle the -pthread
15870 # option in a rather... idiosyncratic way
15871
15872 if test "x$ax_pthread_clang" = "xyes"; then
15873
15874         # Clang takes -pthread; it has never supported any other flag
15875
15876         # (Note 1: This will need to be revisited if a system that Clang
15877         # supports has POSIX threads in a separate library.  This tends not
15878         # to be the way of modern systems, but it's conceivable.)
15879
15880         # (Note 2: On some systems, notably Darwin, -pthread is not needed
15881         # to get POSIX threads support; the API is always present and
15882         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
15883         # -pthread does define _REENTRANT, and while the Darwin headers
15884         # ignore this macro, third-party headers might not.)
15885
15886         # However, older versions of Clang make a point of warning the user
15887         # that, in an invocation where only linking and no compilation is
15888         # taking place, the -pthread option has no effect ("argument unused
15889         # during compilation").  They expect -pthread to be passed in only
15890         # when source code is being compiled.
15891         #
15892         # Problem is, this is at odds with the way Automake and most other
15893         # C build frameworks function, which is that the same flags used in
15894         # compilation (CFLAGS) are also used in linking.  Many systems
15895         # supported by AX_PTHREAD require exactly this for POSIX threads
15896         # support, and in fact it is often not straightforward to specify a
15897         # flag that is used only in the compilation phase and not in
15898         # linking.  Such a scenario is extremely rare in practice.
15899         #
15900         # Even though use of the -pthread flag in linking would only print
15901         # a warning, this can be a nuisance for well-run software projects
15902         # that build with -Werror.  So if the active version of Clang has
15903         # this misfeature, we search for an option to squash it.
15904
15905         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
15906 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
15907 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
15908 then :
15909   printf %s "(cached) " >&6
15910 else $as_nop
15911   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
15912              # Create an alternate version of $ac_link that compiles and
15913              # links in two steps (.c -> .o, .o -> exe) instead of one
15914              # (.c -> exe), because the warning occurs only in the second
15915              # step
15916              ax_pthread_save_ac_link="$ac_link"
15917              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
15918              ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
15919              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
15920              ax_pthread_save_CFLAGS="$CFLAGS"
15921              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
15922                 if test "x$ax_pthread_try" = "xunknown"
15923 then :
15924   break
15925 fi
15926                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
15927                 ac_link="$ax_pthread_save_ac_link"
15928                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h.  */
15930 int main(void){return 0;}
15931 _ACEOF
15932 if ac_fn_c_try_link "$LINENO"
15933 then :
15934   ac_link="$ax_pthread_2step_ac_link"
15935                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h.  */
15937 int main(void){return 0;}
15938 _ACEOF
15939 if ac_fn_c_try_link "$LINENO"
15940 then :
15941   break
15942 fi
15943 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15944     conftest$ac_exeext conftest.$ac_ext
15945
15946 fi
15947 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15948     conftest$ac_exeext conftest.$ac_ext
15949              done
15950              ac_link="$ax_pthread_save_ac_link"
15951              CFLAGS="$ax_pthread_save_CFLAGS"
15952              if test "x$ax_pthread_try" = "x"
15953 then :
15954   ax_pthread_try=no
15955 fi
15956              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
15957
15958 fi
15959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
15960 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
15961
15962         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
15963                 no | unknown) ;;
15964                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
15965         esac
15966
15967 fi # $ax_pthread_clang = yes
15968
15969
15970
15971 # Various other checks:
15972 if test "x$ax_pthread_ok" = "xyes"; then
15973         ax_pthread_save_CFLAGS="$CFLAGS"
15974         ax_pthread_save_LIBS="$LIBS"
15975         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15976         LIBS="$PTHREAD_LIBS $LIBS"
15977
15978         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15979         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15980 printf %s "checking for joinable pthread attribute... " >&6; }
15981 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
15982 then :
15983   printf %s "(cached) " >&6
15984 else $as_nop
15985   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
15986              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15987                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h.  */
15989 #include <pthread.h>
15990 int
15991 main (void)
15992 {
15993 int attr = $ax_pthread_attr; return attr /* ; */
15994   ;
15995   return 0;
15996 }
15997 _ACEOF
15998 if ac_fn_c_try_link "$LINENO"
15999 then :
16000   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
16001 fi
16002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16003     conftest$ac_exeext conftest.$ac_ext
16004              done
16005
16006 fi
16007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
16008 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
16009         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
16010                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
16011                test "x$ax_pthread_joinable_attr_defined" != "xyes"
16012 then :
16013
16014 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
16015
16016                ax_pthread_joinable_attr_defined=yes
16017
16018 fi
16019
16020         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
16021 printf %s "checking whether more special flags are required for pthreads... " >&6; }
16022 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
16023 then :
16024   printf %s "(cached) " >&6
16025 else $as_nop
16026   ax_cv_PTHREAD_SPECIAL_FLAGS=no
16027              case $target_os in
16028              solaris*)
16029              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
16030              ;;
16031              esac
16032
16033 fi
16034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
16035 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
16036         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
16037                test "x$ax_pthread_special_flags_added" != "xyes"
16038 then :
16039   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
16040                ax_pthread_special_flags_added=yes
16041 fi
16042
16043         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16044 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16045 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
16046 then :
16047   printf %s "(cached) " >&6
16048 else $as_nop
16049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h.  */
16051 #include <pthread.h>
16052 int
16053 main (void)
16054 {
16055 int i = PTHREAD_PRIO_INHERIT;
16056                                                return i;
16057   ;
16058   return 0;
16059 }
16060 _ACEOF
16061 if ac_fn_c_try_link "$LINENO"
16062 then :
16063   ax_cv_PTHREAD_PRIO_INHERIT=yes
16064 else $as_nop
16065   ax_cv_PTHREAD_PRIO_INHERIT=no
16066 fi
16067 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16068     conftest$ac_exeext conftest.$ac_ext
16069
16070 fi
16071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16072 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16073         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
16074                test "x$ax_pthread_prio_inherit_defined" != "xyes"
16075 then :
16076
16077 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16078
16079                ax_pthread_prio_inherit_defined=yes
16080
16081 fi
16082
16083         CFLAGS="$ax_pthread_save_CFLAGS"
16084         LIBS="$ax_pthread_save_LIBS"
16085
16086         # More AIX lossage: compile with *_r variant
16087         if test "x$GCC" != "xyes"; then
16088             case $target_os in
16089                 aix*)
16090                 case "x/$CC" in #(
16091   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16092     #handle absolute path differently from PATH based program lookup
16093                      case "x$CC" in #(
16094   x/*) :
16095
16096                            if as_fn_executable_p ${CC}_r
16097 then :
16098   PTHREAD_CC="${CC}_r"
16099 fi
16100                            if test "x${CXX}" != "x"
16101 then :
16102   if as_fn_executable_p ${CXX}_r
16103 then :
16104   PTHREAD_CXX="${CXX}_r"
16105 fi
16106 fi
16107                           ;; #(
16108   *) :
16109
16110                            for ac_prog in ${CC}_r
16111 do
16112   # Extract the first word of "$ac_prog", so it can be a program name with args.
16113 set dummy $ac_prog; ac_word=$2
16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115 printf %s "checking for $ac_word... " >&6; }
16116 if test ${ac_cv_prog_PTHREAD_CC+y}
16117 then :
16118   printf %s "(cached) " >&6
16119 else $as_nop
16120   if test -n "$PTHREAD_CC"; then
16121   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16122 else
16123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16124 for as_dir in $PATH
16125 do
16126   IFS=$as_save_IFS
16127   case $as_dir in #(((
16128     '') as_dir=./ ;;
16129     */) ;;
16130     *) as_dir=$as_dir/ ;;
16131   esac
16132     for ac_exec_ext in '' $ac_executable_extensions; do
16133   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16134     ac_cv_prog_PTHREAD_CC="$ac_prog"
16135     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16136     break 2
16137   fi
16138 done
16139   done
16140 IFS=$as_save_IFS
16141
16142 fi
16143 fi
16144 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16145 if test -n "$PTHREAD_CC"; then
16146   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16147 printf "%s\n" "$PTHREAD_CC" >&6; }
16148 else
16149   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16150 printf "%s\n" "no" >&6; }
16151 fi
16152
16153
16154   test -n "$PTHREAD_CC" && break
16155 done
16156 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16157
16158                            if test "x${CXX}" != "x"
16159 then :
16160   for ac_prog in ${CXX}_r
16161 do
16162   # Extract the first word of "$ac_prog", so it can be a program name with args.
16163 set dummy $ac_prog; ac_word=$2
16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16165 printf %s "checking for $ac_word... " >&6; }
16166 if test ${ac_cv_prog_PTHREAD_CXX+y}
16167 then :
16168   printf %s "(cached) " >&6
16169 else $as_nop
16170   if test -n "$PTHREAD_CXX"; then
16171   ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
16172 else
16173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16174 for as_dir in $PATH
16175 do
16176   IFS=$as_save_IFS
16177   case $as_dir in #(((
16178     '') as_dir=./ ;;
16179     */) ;;
16180     *) as_dir=$as_dir/ ;;
16181   esac
16182     for ac_exec_ext in '' $ac_executable_extensions; do
16183   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16184     ac_cv_prog_PTHREAD_CXX="$ac_prog"
16185     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16186     break 2
16187   fi
16188 done
16189   done
16190 IFS=$as_save_IFS
16191
16192 fi
16193 fi
16194 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
16195 if test -n "$PTHREAD_CXX"; then
16196   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
16197 printf "%s\n" "$PTHREAD_CXX" >&6; }
16198 else
16199   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16200 printf "%s\n" "no" >&6; }
16201 fi
16202
16203
16204   test -n "$PTHREAD_CXX" && break
16205 done
16206 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
16207
16208 fi
16209
16210                       ;;
16211 esac
16212                      ;; #(
16213   *) :
16214      ;;
16215 esac
16216                 ;;
16217             esac
16218         fi
16219 fi
16220
16221 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16222 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
16223
16224
16225
16226
16227
16228
16229 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16230 if test "x$ax_pthread_ok" = "xyes"; then
16231         have_pthread=yes
16232         :
16233 else
16234         ax_pthread_ok=no
16235         have_pthread=no
16236 fi
16237 ac_ext=c
16238 ac_cpp='$CPP $CPPFLAGS'
16239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16242
16243
16244
16245 # Check for Python and docwriter
16246 PYTHON_MIN_VERSION=3.5
16247 have_py3=no
16248 have_docwriter=no
16249 PIP=pip
16250
16251 for ac_prog in python3 python
16252 do
16253   # Extract the first word of "$ac_prog", so it can be a program name with args.
16254 set dummy $ac_prog; ac_word=$2
16255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16256 printf %s "checking for $ac_word... " >&6; }
16257 if test ${ac_cv_prog_PYTHON+y}
16258 then :
16259   printf %s "(cached) " >&6
16260 else $as_nop
16261   if test -n "$PYTHON"; then
16262   ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
16263 else
16264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16265 for as_dir in $PATH
16266 do
16267   IFS=$as_save_IFS
16268   case $as_dir in #(((
16269     '') as_dir=./ ;;
16270     */) ;;
16271     *) as_dir=$as_dir/ ;;
16272   esac
16273     for ac_exec_ext in '' $ac_executable_extensions; do
16274   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16275     ac_cv_prog_PYTHON="$ac_prog"
16276     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16277     break 2
16278   fi
16279 done
16280   done
16281 IFS=$as_save_IFS
16282
16283 fi
16284 fi
16285 PYTHON=$ac_cv_prog_PYTHON
16286 if test -n "$PYTHON"; then
16287   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16288 printf "%s\n" "$PYTHON" >&6; }
16289 else
16290   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16291 printf "%s\n" "no" >&6; }
16292 fi
16293
16294
16295   test -n "$PYTHON" && break
16296 done
16297 test -n "$PYTHON" || PYTHON="missing"
16298
16299 if test "x$PYTHON" != "xmissing"; then
16300
16301
16302
16303
16304     if test -n "$PYTHON"
16305 then :
16306
16307         ax_python_version="$PYTHON_MIN_VERSION"
16308
16309         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python version" >&5
16310 printf %s "checking for python version... " >&6; }
16311
16312         python_version=`$PYTHON -V 2>&1 | $GREP "^Python " | $SED -e 's/^.* \([0-9]*\.[0-9]*\.[0-9]*\)/\1/'`
16313
16314         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $python_version" >&5
16315 printf "%s\n" "$python_version" >&6; }
16316
16317         PYTHON_VERSION=$python_version
16318
16319
16320
16321
16322
16323   # Used to indicate true or false condition
16324   ax_compare_version=false
16325
16326   # Convert the two version strings to be compared into a format that
16327   # allows a simple string comparison.  The end result is that a version
16328   # string of the form 1.12.5-r617 will be converted to the form
16329   # 0001001200050617.  In other words, each number is zero padded to four
16330   # digits, and non digits are removed.
16331
16332   ax_compare_version_A=`echo "$ax_python_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16333                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16334                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16335                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16336                      -e 's/[^0-9]//g'`
16337
16338
16339   ax_compare_version_B=`echo "$python_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16340                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16341                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16342                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16343                      -e 's/[^0-9]//g'`
16344
16345
16346     ax_compare_version=`echo "x$ax_compare_version_A
16347 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
16348
16349
16350
16351     if test "$ax_compare_version" = "true" ; then
16352
16353             :
16354             have_py3=yes
16355
16356     else
16357             :
16358
16359
16360   fi
16361
16362
16363 else $as_nop
16364
16365         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find the python interpreter" >&5
16366 printf "%s\n" "$as_me: WARNING: could not find the python interpreter" >&2;}
16367
16368
16369 fi
16370
16371
16372   if test "x$have_py3" = "xyes"; then
16373     PIP="$PYTHON -m $PIP"
16374     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \`docwriter' Python module" >&5
16375 printf %s "checking for \`docwriter' Python module... " >&6; }
16376     $PYTHON -m docwriter -h > /dev/null 2>&1
16377     if test "x$?" = "x0"; then
16378       have_docwriter=yes
16379       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16380 printf "%s\n" "yes" >&6; }
16381     else
16382       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16383 printf "%s\n" "no" >&6; }
16384     fi
16385   fi
16386 fi
16387
16388
16389 # entries in Requires.private are separated by commas
16390 PKGCONFIG_REQUIRES_PRIVATE="$zlib_reqpriv,     \
16391                             $bzip2_reqpriv,    \
16392                             $libpng_reqpriv,   \
16393                             $harfbuzz_reqpriv, \
16394                             $brotli_reqpriv"
16395 # beautify
16396 PKGCONFIG_REQUIRES_PRIVATE=`echo "$PKGCONFIG_REQUIRES_PRIVATE" \
16397                             | sed -e 's/^  *//'      \
16398                                   -e 's/  *$//'      \
16399                                   -e 's/, */,/g'     \
16400                                   -e 's/,,*/,/g'     \
16401                                   -e 's/^,*//'       \
16402                                   -e 's/,*$//'       \
16403                                   -e 's/,/, /g'`
16404
16405 PKGCONFIG_LIBS_PRIVATE="$zlib_libspriv     \
16406                         $bzip2_libspriv    \
16407                         $libpng_libspriv   \
16408                         $harfbuzz_libspriv \
16409                         $brotli_libspriv   \
16410                         $ft2_extra_libs"
16411 # beautify
16412 PKGCONFIG_LIBS_PRIVATE=`echo "$PKGCONFIG_LIBS_PRIVATE"  \
16413                         | sed -e 's/^  *//'   \
16414                               -e 's/  *$//'   \
16415                               -e 's/  */ /g'`
16416
16417 LIBSSTATIC_CONFIG="-lfreetype               \
16418                    $zlib_libsstaticconf     \
16419                    $bzip2_libsstaticconf    \
16420                    $libpng_libsstaticconf   \
16421                    $harfbuzz_libsstaticconf \
16422                    $brotli_libsstaticconf   \
16423                    $ft2_extra_libs"
16424 # remove -L/usr/lib and -L/usr/lib64 since `freetype-config' adds them later
16425 # on if necessary; also beautify
16426 LIBSSTATIC_CONFIG=`echo "$LIBSSTATIC_CONFIG"          \
16427                    | sed -e 's|-L */usr/lib64/* | |g' \
16428                          -e 's|-L */usr/lib/* | |g'   \
16429                          -e 's/^  *//'                \
16430                          -e 's/  *$//'                \
16431                          -e 's/  */ /g'`
16432
16433 # If FreeType gets installed with `--disable-shared', don't use
16434 # 'private' fields.  `pkg-config' only looks into `.pc' files and is
16435 # completely agnostic to whether shared libraries are actually present
16436 # or not.  As a consequence, the user had to specify `--static' while
16437 # calling `pkg-config', which configure scripts are normally not
16438 # prepared for.
16439
16440 PKGCONFIG_REQUIRES=
16441 PKGCONFIG_LIBS='-L${libdir} -lfreetype'
16442
16443 if test $enable_shared = "no"; then
16444   PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES $PKGCONFIG_REQUIRES_PRIVATE"
16445   PKGCONFIG_REQUIRES_PRIVATE=
16446   PKGCONFIG_LIBS="$PKGCONFIG_LIBS $PKGCONFIG_LIBS_PRIVATE"
16447   PKGCONFIG_LIBS_PRIVATE=
16448 fi
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462 # changing LDFLAGS value should only be done after
16463 # lt_cv_prog_compiler_static_works test
16464
16465 ftoption_set()
16466 {
16467   regexp="-e \\\"s|.*#.*def.*$1.*|#define $1|\\\""
16468   FTOPTION_H_SED="$FTOPTION_H_SED $regexp"
16469 }
16470
16471 ftoption_unset()
16472 {
16473   regexp="-e \\\"s|.*#.*def.*$1.*|/* #undef $1 */|\\\""
16474   FTOPTION_H_SED="$FTOPTION_H_SED $regexp"
16475 }
16476
16477 if test "$have_zlib" != no; then
16478   CFLAGS="$CFLAGS $ZLIB_CFLAGS"
16479   LDFLAGS="$LDFLAGS $ZLIB_LIBS"
16480   ftoption_set FT_CONFIG_OPTION_SYSTEM_ZLIB
16481 else
16482   ftoption_unset FT_CONFIG_OPTION_SYSTEM_ZLIB
16483 fi
16484 if test "$have_bzip2" != no; then
16485   CFLAGS="$CFLAGS $BZIP2_CFLAGS"
16486   LDFLAGS="$LDFLAGS $BZIP2_LIBS"
16487   ftoption_set FT_CONFIG_OPTION_USE_BZIP2
16488 else
16489   ftoption_unset FT_CONFIG_OPTION_USE_BZIP2
16490 fi
16491 if test "$have_libpng" != no; then
16492   CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
16493   LDFLAGS="$LDFLAGS $LIBPNG_LIBS"
16494   ftoption_set FT_CONFIG_OPTION_USE_PNG
16495 else
16496   ftoption_unset FT_CONFIG_OPTION_USE_PNG
16497 fi
16498 if test "$have_harfbuzz" != no; then
16499   CFLAGS="$CFLAGS $HARFBUZZ_CFLAGS"
16500   LDFLAGS="$LDFLAGS $HARFBUZZ_LIBS"
16501   ftoption_set FT_CONFIG_OPTION_USE_HARFBUZZ
16502 else
16503   ftoption_unset FT_CONFIG_OPTION_USE_HARFBUZZ
16504 fi
16505 if test "$have_brotli" != no; then
16506   CFLAGS="$CFLAGS $BROTLI_CFLAGS"
16507   LDFLAGS="$LDFLAGS $BROTLI_LIBS"
16508   ftoption_set FT_CONFIG_OPTION_USE_BROTLI
16509 else
16510   ftoption_unset FT_CONFIG_OPTION_USE_BROTLI
16511 fi
16512
16513 if test "$have_pthread" != no; then
16514   CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16515   LDFLAGS="$LDFLAGS $PTHREAD_CFLAGS $PTHREAD_LIBS"
16516 fi
16517
16518
16519
16520
16521 # We don't want to use a template file for `ftoption.h', since compilation
16522 # should work without calling a configure script also.  For this reason, we
16523 # copy the `include/freetype/config/ftoption.h' file to the `unix/builds'
16524 # directory (using a dummy `AC_CONFIG_FILES' call) and apply the just
16525 # constructed $FTOPTION_H_SED regexp (using the post-action of
16526 # `AC_CONFIG_FILES'); this is also the version that gets installed later on.
16527 #
16528 ac_config_files="$ac_config_files ftoption.h:${srcdir}/../../include/freetype/config/ftoption.h"
16529
16530
16531 ac_config_headers="$ac_config_headers ftconfig.h"
16532
16533
16534 # create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
16535 # and `builds/unix/unix-cc.mk' that will be used by the build system
16536 #
16537 ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in"
16538
16539
16540 cat >confcache <<\_ACEOF
16541 # This file is a shell script that caches the results of configure
16542 # tests run on this system so they can be shared between configure
16543 # scripts and configure runs, see configure's option --config-cache.
16544 # It is not useful on other systems.  If it contains results you don't
16545 # want to keep, you may remove or edit it.
16546 #
16547 # config.status only pays attention to the cache file if you give it
16548 # the --recheck option to rerun configure.
16549 #
16550 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16551 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16552 # following values.
16553
16554 _ACEOF
16555
16556 # The following way of writing the cache mishandles newlines in values,
16557 # but we know of no workaround that is simple, portable, and efficient.
16558 # So, we kill variables containing newlines.
16559 # Ultrix sh set writes to stderr and can't be redirected directly,
16560 # and sets the high bit in the cache file unless we assign to the vars.
16561 (
16562   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16563     eval ac_val=\$$ac_var
16564     case $ac_val in #(
16565     *${as_nl}*)
16566       case $ac_var in #(
16567       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16568 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16569       esac
16570       case $ac_var in #(
16571       _ | IFS | as_nl) ;; #(
16572       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16573       *) { eval $ac_var=; unset $ac_var;} ;;
16574       esac ;;
16575     esac
16576   done
16577
16578   (set) 2>&1 |
16579     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16580     *${as_nl}ac_space=\ *)
16581       # `set' does not quote correctly, so add quotes: double-quote
16582       # substitution turns \\\\ into \\, and sed turns \\ into \.
16583       sed -n \
16584         "s/'/'\\\\''/g;
16585           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16586       ;; #(
16587     *)
16588       # `set' quotes correctly as required by POSIX, so do not add quotes.
16589       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16590       ;;
16591     esac |
16592     sort
16593 ) |
16594   sed '
16595      /^ac_cv_env_/b end
16596      t clear
16597      :clear
16598      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16599      t end
16600      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16601      :end' >>confcache
16602 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16603   if test -w "$cache_file"; then
16604     if test "x$cache_file" != "x/dev/null"; then
16605       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16606 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16607       if test ! -f "$cache_file" || test -h "$cache_file"; then
16608         cat confcache >"$cache_file"
16609       else
16610         case $cache_file in #(
16611         */* | ?:*)
16612           mv -f confcache "$cache_file"$$ &&
16613           mv -f "$cache_file"$$ "$cache_file" ;; #(
16614         *)
16615           mv -f confcache "$cache_file" ;;
16616         esac
16617       fi
16618     fi
16619   else
16620     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16621 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16622   fi
16623 fi
16624 rm -f confcache
16625
16626 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16627 # Let make expand exec_prefix.
16628 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16629
16630 DEFS=-DHAVE_CONFIG_H
16631
16632 ac_libobjs=
16633 ac_ltlibobjs=
16634 U=
16635 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16636   # 1. Remove the extension, and $U if already installed.
16637   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16638   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16639   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16640   #    will be set to the directory where LIBOBJS objects are built.
16641   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16642   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16643 done
16644 LIBOBJS=$ac_libobjs
16645
16646 LTLIBOBJS=$ac_ltlibobjs
16647
16648
16649
16650 : "${CONFIG_STATUS=./config.status}"
16651 ac_write_fail=0
16652 ac_clean_files_save=$ac_clean_files
16653 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16655 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16656 as_write_fail=0
16657 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16658 #! $SHELL
16659 # Generated by $as_me.
16660 # Run this file to recreate the current configuration.
16661 # Compiler output produced by configure, useful for debugging
16662 # configure, is in config.log if it exists.
16663
16664 debug=false
16665 ac_cs_recheck=false
16666 ac_cs_silent=false
16667
16668 SHELL=\${CONFIG_SHELL-$SHELL}
16669 export SHELL
16670 _ASEOF
16671 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16672 ## -------------------- ##
16673 ## M4sh Initialization. ##
16674 ## -------------------- ##
16675
16676 # Be more Bourne compatible
16677 DUALCASE=1; export DUALCASE # for MKS sh
16678 as_nop=:
16679 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16680 then :
16681   emulate sh
16682   NULLCMD=:
16683   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16684   # is contrary to our usage.  Disable this feature.
16685   alias -g '${1+"$@"}'='"$@"'
16686   setopt NO_GLOB_SUBST
16687 else $as_nop
16688   case `(set -o) 2>/dev/null` in #(
16689   *posix*) :
16690     set -o posix ;; #(
16691   *) :
16692      ;;
16693 esac
16694 fi
16695
16696
16697
16698 # Reset variables that may have inherited troublesome values from
16699 # the environment.
16700
16701 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16702 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16703 # side effect of setting IFS to empty, thus disabling word splitting.)
16704 # Quoting is to prevent editors from complaining about space-tab.
16705 as_nl='
16706 '
16707 export as_nl
16708 IFS=" ""        $as_nl"
16709
16710 PS1='$ '
16711 PS2='> '
16712 PS4='+ '
16713
16714 # Ensure predictable behavior from utilities with locale-dependent output.
16715 LC_ALL=C
16716 export LC_ALL
16717 LANGUAGE=C
16718 export LANGUAGE
16719
16720 # We cannot yet rely on "unset" to work, but we need these variables
16721 # to be unset--not just set to an empty or harmless value--now, to
16722 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
16723 # also avoids known problems related to "unset" and subshell syntax
16724 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16725 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16726 do eval test \${$as_var+y} \
16727   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16728 done
16729
16730 # Ensure that fds 0, 1, and 2 are open.
16731 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16732 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16733 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
16734
16735 # The user is always right.
16736 if ${PATH_SEPARATOR+false} :; then
16737   PATH_SEPARATOR=:
16738   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16739     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16740       PATH_SEPARATOR=';'
16741   }
16742 fi
16743
16744
16745 # Find who we are.  Look in the path if we contain no directory separator.
16746 as_myself=
16747 case $0 in #((
16748   *[\\/]* ) as_myself=$0 ;;
16749   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16750 for as_dir in $PATH
16751 do
16752   IFS=$as_save_IFS
16753   case $as_dir in #(((
16754     '') as_dir=./ ;;
16755     */) ;;
16756     *) as_dir=$as_dir/ ;;
16757   esac
16758     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16759   done
16760 IFS=$as_save_IFS
16761
16762      ;;
16763 esac
16764 # We did not find ourselves, most probably we were run as `sh COMMAND'
16765 # in which case we are not to be found in the path.
16766 if test "x$as_myself" = x; then
16767   as_myself=$0
16768 fi
16769 if test ! -f "$as_myself"; then
16770   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16771   exit 1
16772 fi
16773
16774
16775
16776 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16777 # ----------------------------------------
16778 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16779 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16780 # script with STATUS, using 1 if that was 0.
16781 as_fn_error ()
16782 {
16783   as_status=$1; test $as_status -eq 0 && as_status=1
16784   if test "$4"; then
16785     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16786     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16787   fi
16788   printf "%s\n" "$as_me: error: $2" >&2
16789   as_fn_exit $as_status
16790 } # as_fn_error
16791
16792
16793
16794 # as_fn_set_status STATUS
16795 # -----------------------
16796 # Set $? to STATUS, without forking.
16797 as_fn_set_status ()
16798 {
16799   return $1
16800 } # as_fn_set_status
16801
16802 # as_fn_exit STATUS
16803 # -----------------
16804 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16805 as_fn_exit ()
16806 {
16807   set +e
16808   as_fn_set_status $1
16809   exit $1
16810 } # as_fn_exit
16811
16812 # as_fn_unset VAR
16813 # ---------------
16814 # Portably unset VAR.
16815 as_fn_unset ()
16816 {
16817   { eval $1=; unset $1;}
16818 }
16819 as_unset=as_fn_unset
16820
16821 # as_fn_append VAR VALUE
16822 # ----------------------
16823 # Append the text in VALUE to the end of the definition contained in VAR. Take
16824 # advantage of any shell optimizations that allow amortized linear growth over
16825 # repeated appends, instead of the typical quadratic growth present in naive
16826 # implementations.
16827 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16828 then :
16829   eval 'as_fn_append ()
16830   {
16831     eval $1+=\$2
16832   }'
16833 else $as_nop
16834   as_fn_append ()
16835   {
16836     eval $1=\$$1\$2
16837   }
16838 fi # as_fn_append
16839
16840 # as_fn_arith ARG...
16841 # ------------------
16842 # Perform arithmetic evaluation on the ARGs, and store the result in the
16843 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16844 # must be portable across $(()) and expr.
16845 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16846 then :
16847   eval 'as_fn_arith ()
16848   {
16849     as_val=$(( $* ))
16850   }'
16851 else $as_nop
16852   as_fn_arith ()
16853   {
16854     as_val=`expr "$@" || test $? -eq 1`
16855   }
16856 fi # as_fn_arith
16857
16858
16859 if expr a : '\(a\)' >/dev/null 2>&1 &&
16860    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16861   as_expr=expr
16862 else
16863   as_expr=false
16864 fi
16865
16866 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16867   as_basename=basename
16868 else
16869   as_basename=false
16870 fi
16871
16872 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16873   as_dirname=dirname
16874 else
16875   as_dirname=false
16876 fi
16877
16878 as_me=`$as_basename -- "$0" ||
16879 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16880          X"$0" : 'X\(//\)$' \| \
16881          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16882 printf "%s\n" X/"$0" |
16883     sed '/^.*\/\([^/][^/]*\)\/*$/{
16884             s//\1/
16885             q
16886           }
16887           /^X\/\(\/\/\)$/{
16888             s//\1/
16889             q
16890           }
16891           /^X\/\(\/\).*/{
16892             s//\1/
16893             q
16894           }
16895           s/.*/./; q'`
16896
16897 # Avoid depending upon Character Ranges.
16898 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16899 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16900 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16901 as_cr_digits='0123456789'
16902 as_cr_alnum=$as_cr_Letters$as_cr_digits
16903
16904
16905 # Determine whether it's possible to make 'echo' print without a newline.
16906 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16907 # for compatibility with existing Makefiles.
16908 ECHO_C= ECHO_N= ECHO_T=
16909 case `echo -n x` in #(((((
16910 -n*)
16911   case `echo 'xy\c'` in
16912   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16913   xy)  ECHO_C='\c';;
16914   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16915        ECHO_T=' ';;
16916   esac;;
16917 *)
16918   ECHO_N='-n';;
16919 esac
16920
16921 # For backward compatibility with old third-party macros, we provide
16922 # the shell variables $as_echo and $as_echo_n.  New code should use
16923 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16924 as_echo='printf %s\n'
16925 as_echo_n='printf %s'
16926
16927 rm -f conf$$ conf$$.exe conf$$.file
16928 if test -d conf$$.dir; then
16929   rm -f conf$$.dir/conf$$.file
16930 else
16931   rm -f conf$$.dir
16932   mkdir conf$$.dir 2>/dev/null
16933 fi
16934 if (echo >conf$$.file) 2>/dev/null; then
16935   if ln -s conf$$.file conf$$ 2>/dev/null; then
16936     as_ln_s='ln -s'
16937     # ... but there are two gotchas:
16938     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16939     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16940     # In both cases, we have to default to `cp -pR'.
16941     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16942       as_ln_s='cp -pR'
16943   elif ln conf$$.file conf$$ 2>/dev/null; then
16944     as_ln_s=ln
16945   else
16946     as_ln_s='cp -pR'
16947   fi
16948 else
16949   as_ln_s='cp -pR'
16950 fi
16951 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16952 rmdir conf$$.dir 2>/dev/null
16953
16954
16955 # as_fn_mkdir_p
16956 # -------------
16957 # Create "$as_dir" as a directory, including parents if necessary.
16958 as_fn_mkdir_p ()
16959 {
16960
16961   case $as_dir in #(
16962   -*) as_dir=./$as_dir;;
16963   esac
16964   test -d "$as_dir" || eval $as_mkdir_p || {
16965     as_dirs=
16966     while :; do
16967       case $as_dir in #(
16968       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16969       *) as_qdir=$as_dir;;
16970       esac
16971       as_dirs="'$as_qdir' $as_dirs"
16972       as_dir=`$as_dirname -- "$as_dir" ||
16973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16974          X"$as_dir" : 'X\(//\)[^/]' \| \
16975          X"$as_dir" : 'X\(//\)$' \| \
16976          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16977 printf "%s\n" X"$as_dir" |
16978     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16979             s//\1/
16980             q
16981           }
16982           /^X\(\/\/\)[^/].*/{
16983             s//\1/
16984             q
16985           }
16986           /^X\(\/\/\)$/{
16987             s//\1/
16988             q
16989           }
16990           /^X\(\/\).*/{
16991             s//\1/
16992             q
16993           }
16994           s/.*/./; q'`
16995       test -d "$as_dir" && break
16996     done
16997     test -z "$as_dirs" || eval "mkdir $as_dirs"
16998   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16999
17000
17001 } # as_fn_mkdir_p
17002 if mkdir -p . 2>/dev/null; then
17003   as_mkdir_p='mkdir -p "$as_dir"'
17004 else
17005   test -d ./-p && rmdir ./-p
17006   as_mkdir_p=false
17007 fi
17008
17009
17010 # as_fn_executable_p FILE
17011 # -----------------------
17012 # Test if FILE is an executable regular file.
17013 as_fn_executable_p ()
17014 {
17015   test -f "$1" && test -x "$1"
17016 } # as_fn_executable_p
17017 as_test_x='test -x'
17018 as_executable_p=as_fn_executable_p
17019
17020 # Sed expression to map a string onto a valid CPP name.
17021 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17022
17023 # Sed expression to map a string onto a valid variable name.
17024 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17025
17026
17027 exec 6>&1
17028 ## ----------------------------------- ##
17029 ## Main body of $CONFIG_STATUS script. ##
17030 ## ----------------------------------- ##
17031 _ASEOF
17032 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17033
17034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17035 # Save the log message, to keep $0 and so on meaningful, and to
17036 # report actual input values of CONFIG_FILES etc. instead of their
17037 # values after options handling.
17038 ac_log="
17039 This file was extended by FreeType $as_me 2.13.2, which was
17040 generated by GNU Autoconf 2.71.  Invocation command line was
17041
17042   CONFIG_FILES    = $CONFIG_FILES
17043   CONFIG_HEADERS  = $CONFIG_HEADERS
17044   CONFIG_LINKS    = $CONFIG_LINKS
17045   CONFIG_COMMANDS = $CONFIG_COMMANDS
17046   $ $0 $@
17047
17048 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17049 "
17050
17051 _ACEOF
17052
17053 case $ac_config_files in *"
17054 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17055 esac
17056
17057 case $ac_config_headers in *"
17058 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17059 esac
17060
17061
17062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17063 # Files that config.status was made for.
17064 config_files="$ac_config_files"
17065 config_headers="$ac_config_headers"
17066 config_commands="$ac_config_commands"
17067
17068 _ACEOF
17069
17070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17071 ac_cs_usage="\
17072 \`$as_me' instantiates files and other configuration actions
17073 from templates according to the current configuration.  Unless the files
17074 and actions are specified as TAGs, all are instantiated by default.
17075
17076 Usage: $0 [OPTION]... [TAG]...
17077
17078   -h, --help       print this help, then exit
17079   -V, --version    print version number and configuration settings, then exit
17080       --config     print configuration, then exit
17081   -q, --quiet, --silent
17082                    do not print progress messages
17083   -d, --debug      don't remove temporary files
17084       --recheck    update $as_me by reconfiguring in the same conditions
17085       --file=FILE[:TEMPLATE]
17086                    instantiate the configuration file FILE
17087       --header=FILE[:TEMPLATE]
17088                    instantiate the configuration header FILE
17089
17090 Configuration files:
17091 $config_files
17092
17093 Configuration headers:
17094 $config_headers
17095
17096 Configuration commands:
17097 $config_commands
17098
17099 Report bugs to <freetype@nongnu.org>."
17100
17101 _ACEOF
17102 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17103 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17105 ac_cs_config='$ac_cs_config_escaped'
17106 ac_cs_version="\\
17107 FreeType config.status 2.13.2
17108 configured by $0, generated by GNU Autoconf 2.71,
17109   with options \\"\$ac_cs_config\\"
17110
17111 Copyright (C) 2021 Free Software Foundation, Inc.
17112 This config.status script is free software; the Free Software Foundation
17113 gives unlimited permission to copy, distribute and modify it."
17114
17115 ac_pwd='$ac_pwd'
17116 srcdir='$srcdir'
17117 INSTALL='$INSTALL'
17118 MKDIR_P='$MKDIR_P'
17119 AWK='$AWK'
17120 test -n "\$AWK" || AWK=awk
17121 _ACEOF
17122
17123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17124 # The default lists apply if the user does not specify any file.
17125 ac_need_defaults=:
17126 while test $# != 0
17127 do
17128   case $1 in
17129   --*=?*)
17130     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17131     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17132     ac_shift=:
17133     ;;
17134   --*=)
17135     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17136     ac_optarg=
17137     ac_shift=:
17138     ;;
17139   *)
17140     ac_option=$1
17141     ac_optarg=$2
17142     ac_shift=shift
17143     ;;
17144   esac
17145
17146   case $ac_option in
17147   # Handling of the options.
17148   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17149     ac_cs_recheck=: ;;
17150   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17151     printf "%s\n" "$ac_cs_version"; exit ;;
17152   --config | --confi | --conf | --con | --co | --c )
17153     printf "%s\n" "$ac_cs_config"; exit ;;
17154   --debug | --debu | --deb | --de | --d | -d )
17155     debug=: ;;
17156   --file | --fil | --fi | --f )
17157     $ac_shift
17158     case $ac_optarg in
17159     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17160     '') as_fn_error $? "missing file argument" ;;
17161     esac
17162     as_fn_append CONFIG_FILES " '$ac_optarg'"
17163     ac_need_defaults=false;;
17164   --header | --heade | --head | --hea )
17165     $ac_shift
17166     case $ac_optarg in
17167     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17168     esac
17169     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17170     ac_need_defaults=false;;
17171   --he | --h)
17172     # Conflict between --help and --header
17173     as_fn_error $? "ambiguous option: \`$1'
17174 Try \`$0 --help' for more information.";;
17175   --help | --hel | -h )
17176     printf "%s\n" "$ac_cs_usage"; exit ;;
17177   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17178   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17179     ac_cs_silent=: ;;
17180
17181   # This is an error.
17182   -*) as_fn_error $? "unrecognized option: \`$1'
17183 Try \`$0 --help' for more information." ;;
17184
17185   *) as_fn_append ac_config_targets " $1"
17186      ac_need_defaults=false ;;
17187
17188   esac
17189   shift
17190 done
17191
17192 ac_configure_extra_args=
17193
17194 if $ac_cs_silent; then
17195   exec 6>/dev/null
17196   ac_configure_extra_args="$ac_configure_extra_args --silent"
17197 fi
17198
17199 _ACEOF
17200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17201 if \$ac_cs_recheck; then
17202   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17203   shift
17204   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17205   CONFIG_SHELL='$SHELL'
17206   export CONFIG_SHELL
17207   exec "\$@"
17208 fi
17209
17210 _ACEOF
17211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17212 exec 5>>config.log
17213 {
17214   echo
17215   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17216 ## Running $as_me. ##
17217 _ASBOX
17218   printf "%s\n" "$ac_log"
17219 } >&5
17220
17221 _ACEOF
17222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17223 #
17224 # INIT-COMMANDS
17225 #
17226
17227
17228 # The HP-UX ksh and POSIX shell print the target directory to stdout
17229 # if CDPATH is set.
17230 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17231
17232 sed_quote_subst='$sed_quote_subst'
17233 double_quote_subst='$double_quote_subst'
17234 delay_variable_subst='$delay_variable_subst'
17235 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17236 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17237 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17238 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17239 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17240 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17241 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17242 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17243 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17244 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17245 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17246 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17247 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17248 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17249 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17250 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17251 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17252 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17253 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17254 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17255 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17256 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17257 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17258 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17259 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17260 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17261 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17262 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17263 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17264 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17265 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17266 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17267 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17268 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17269 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17270 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17271 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17272 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17273 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17274 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17275 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17276 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17277 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17278 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17279 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17280 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17281 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17282 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17283 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17284 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17285 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17286 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17287 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17288 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17289 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17290 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17291 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17292 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17293 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17294 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17295 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17296 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"`'
17297 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17298 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17299 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17300 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17301 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17302 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17303 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17304 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17305 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17306 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17307 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17308 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17309 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17310 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17311 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17312 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17313 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17314 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17315 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17316 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17317 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17318 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17319 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17320 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17321 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17322 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17323 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17324 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17325 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17326 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17327 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17328 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17329 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17330 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17331 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17332 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17333 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17334 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17335 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17336 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17337 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17338 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17339 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17340 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17341 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17342 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17343 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17344 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17345 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17346 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17347 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17348 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17349 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17350 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17351 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17352 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17353 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17354 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17355 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17356 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17357 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17358 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17359 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17360 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17361 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17362 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17363 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17364 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17365 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17366 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17367 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17368 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17369 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17370 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17371 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17372 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17373 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
17374 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
17375 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
17376 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17377 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
17378 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
17379 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
17380 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
17381 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
17382 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
17383 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
17384 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
17385 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
17386 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17387 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17388 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
17389 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
17390 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
17391 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17392 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17393 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
17394 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17395 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
17396 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17397 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17398 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17399 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
17400 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
17401 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
17402 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
17403 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
17404 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
17405 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
17406 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
17407 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
17408 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
17409 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17410 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17411 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17412 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17413 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
17414 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
17415
17416 LTCC='$LTCC'
17417 LTCFLAGS='$LTCFLAGS'
17418 compiler='$compiler_DEFAULT'
17419
17420 # A function that is used when there is no print builtin or printf.
17421 func_fallback_echo ()
17422 {
17423   eval 'cat <<_LTECHO_EOF
17424 \$1
17425 _LTECHO_EOF'
17426 }
17427
17428 # Quote evaled strings.
17429 for var in AS \
17430 DLLTOOL \
17431 OBJDUMP \
17432 SHELL \
17433 ECHO \
17434 PATH_SEPARATOR \
17435 SED \
17436 GREP \
17437 EGREP \
17438 FGREP \
17439 LD \
17440 NM \
17441 LN_S \
17442 lt_SP2NL \
17443 lt_NL2SP \
17444 reload_flag \
17445 FILECMD \
17446 deplibs_check_method \
17447 file_magic_cmd \
17448 file_magic_glob \
17449 want_nocaseglob \
17450 sharedlib_from_linklib_cmd \
17451 AR \
17452 archiver_list_spec \
17453 STRIP \
17454 RANLIB \
17455 CC \
17456 CFLAGS \
17457 compiler \
17458 lt_cv_sys_global_symbol_pipe \
17459 lt_cv_sys_global_symbol_to_cdecl \
17460 lt_cv_sys_global_symbol_to_import \
17461 lt_cv_sys_global_symbol_to_c_name_address \
17462 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17463 lt_cv_nm_interface \
17464 nm_file_list_spec \
17465 lt_cv_truncate_bin \
17466 lt_prog_compiler_no_builtin_flag \
17467 lt_prog_compiler_pic \
17468 lt_prog_compiler_wl \
17469 lt_prog_compiler_static \
17470 lt_cv_prog_compiler_c_o \
17471 need_locks \
17472 MANIFEST_TOOL \
17473 DSYMUTIL \
17474 NMEDIT \
17475 LIPO \
17476 OTOOL \
17477 OTOOL64 \
17478 shrext_cmds \
17479 export_dynamic_flag_spec \
17480 whole_archive_flag_spec \
17481 compiler_needs_object \
17482 with_gnu_ld \
17483 allow_undefined_flag \
17484 no_undefined_flag \
17485 hardcode_libdir_flag_spec \
17486 hardcode_libdir_separator \
17487 exclude_expsyms \
17488 include_expsyms \
17489 file_list_spec \
17490 variables_saved_for_relink \
17491 libname_spec \
17492 library_names_spec \
17493 soname_spec \
17494 install_override_mode \
17495 finish_eval \
17496 old_striplib \
17497 striplib \
17498 LD_RC \
17499 reload_flag_RC \
17500 compiler_RC \
17501 lt_prog_compiler_no_builtin_flag_RC \
17502 lt_prog_compiler_pic_RC \
17503 lt_prog_compiler_wl_RC \
17504 lt_prog_compiler_static_RC \
17505 lt_cv_prog_compiler_c_o_RC \
17506 export_dynamic_flag_spec_RC \
17507 whole_archive_flag_spec_RC \
17508 compiler_needs_object_RC \
17509 with_gnu_ld_RC \
17510 allow_undefined_flag_RC \
17511 no_undefined_flag_RC \
17512 hardcode_libdir_flag_spec_RC \
17513 hardcode_libdir_separator_RC \
17514 exclude_expsyms_RC \
17515 include_expsyms_RC \
17516 file_list_spec_RC; do
17517     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17518     *[\\\\\\\`\\"\\\$]*)
17519       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17520       ;;
17521     *)
17522       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17523       ;;
17524     esac
17525 done
17526
17527 # Double-quote double-evaled strings.
17528 for var in reload_cmds \
17529 old_postinstall_cmds \
17530 old_postuninstall_cmds \
17531 old_archive_cmds \
17532 extract_expsyms_cmds \
17533 old_archive_from_new_cmds \
17534 old_archive_from_expsyms_cmds \
17535 archive_cmds \
17536 archive_expsym_cmds \
17537 module_cmds \
17538 module_expsym_cmds \
17539 export_symbols_cmds \
17540 prelink_cmds \
17541 postlink_cmds \
17542 postinstall_cmds \
17543 postuninstall_cmds \
17544 finish_cmds \
17545 sys_lib_search_path_spec \
17546 configure_time_dlsearch_path \
17547 configure_time_lt_sys_library_path \
17548 reload_cmds_RC \
17549 old_archive_cmds_RC \
17550 old_archive_from_new_cmds_RC \
17551 old_archive_from_expsyms_cmds_RC \
17552 archive_cmds_RC \
17553 archive_expsym_cmds_RC \
17554 module_cmds_RC \
17555 module_expsym_cmds_RC \
17556 export_symbols_cmds_RC \
17557 prelink_cmds_RC \
17558 postlink_cmds_RC; do
17559     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17560     *[\\\\\\\`\\"\\\$]*)
17561       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17562       ;;
17563     *)
17564       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17565       ;;
17566     esac
17567 done
17568
17569 ac_aux_dir='$ac_aux_dir'
17570
17571 # See if we are running on zsh, and set the options that allow our
17572 # commands through without removal of \ escapes INIT.
17573 if test -n "\${ZSH_VERSION+set}"; then
17574    setopt NO_GLOB_SUBST
17575 fi
17576
17577
17578     PACKAGE='$PACKAGE'
17579     VERSION='$VERSION'
17580     RM='$RM'
17581     ofile='$ofile'
17582
17583
17584
17585
17586
17587 FTOPTION_H_SED="$FTOPTION_H_SED"
17588
17589 _ACEOF
17590
17591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17592
17593 # Handling of arguments.
17594 for ac_config_target in $ac_config_targets
17595 do
17596   case $ac_config_target in
17597     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17598     "ftoption.h") CONFIG_FILES="$CONFIG_FILES ftoption.h:${srcdir}/../../include/freetype/config/ftoption.h" ;;
17599     "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h" ;;
17600     "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
17601     "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
17602
17603   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17604   esac
17605 done
17606
17607
17608 # If the user did not use the arguments to specify the items to instantiate,
17609 # then the envvar interface is used.  Set only those that are not.
17610 # We use the long form for the default assignment because of an extremely
17611 # bizarre bug on SunOS 4.1.3.
17612 if $ac_need_defaults; then
17613   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17614   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17615   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17616 fi
17617
17618 # Have a temporary directory for convenience.  Make it in the build tree
17619 # simply because there is no reason against having it here, and in addition,
17620 # creating and moving files from /tmp can sometimes cause problems.
17621 # Hook for its removal unless debugging.
17622 # Note that there is a small window in which the directory will not be cleaned:
17623 # after its creation but before its name has been assigned to `$tmp'.
17624 $debug ||
17625 {
17626   tmp= ac_tmp=
17627   trap 'exit_status=$?
17628   : "${ac_tmp:=$tmp}"
17629   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17630 ' 0
17631   trap 'as_fn_exit 1' 1 2 13 15
17632 }
17633 # Create a (secure) tmp directory for tmp files.
17634
17635 {
17636   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17637   test -d "$tmp"
17638 }  ||
17639 {
17640   tmp=./conf$$-$RANDOM
17641   (umask 077 && mkdir "$tmp")
17642 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17643 ac_tmp=$tmp
17644
17645 # Set up the scripts for CONFIG_FILES section.
17646 # No need to generate them if there are no CONFIG_FILES.
17647 # This happens for instance with `./config.status config.h'.
17648 if test -n "$CONFIG_FILES"; then
17649
17650
17651 ac_cr=`echo X | tr X '\015'`
17652 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17653 # But we know of no other shell where ac_cr would be empty at this
17654 # point, so we can use a bashism as a fallback.
17655 if test "x$ac_cr" = x; then
17656   eval ac_cr=\$\'\\r\'
17657 fi
17658 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17659 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17660   ac_cs_awk_cr='\\r'
17661 else
17662   ac_cs_awk_cr=$ac_cr
17663 fi
17664
17665 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17666 _ACEOF
17667
17668
17669 {
17670   echo "cat >conf$$subs.awk <<_ACEOF" &&
17671   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17672   echo "_ACEOF"
17673 } >conf$$subs.sh ||
17674   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17675 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17676 ac_delim='%!_!# '
17677 for ac_last_try in false false false false false :; do
17678   . ./conf$$subs.sh ||
17679     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17680
17681   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17682   if test $ac_delim_n = $ac_delim_num; then
17683     break
17684   elif $ac_last_try; then
17685     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17686   else
17687     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17688   fi
17689 done
17690 rm -f conf$$subs.sh
17691
17692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17693 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17694 _ACEOF
17695 sed -n '
17696 h
17697 s/^/S["/; s/!.*/"]=/
17698 p
17699 g
17700 s/^[^!]*!//
17701 :repl
17702 t repl
17703 s/'"$ac_delim"'$//
17704 t delim
17705 :nl
17706 h
17707 s/\(.\{148\}\)..*/\1/
17708 t more1
17709 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17710 p
17711 n
17712 b repl
17713 :more1
17714 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17715 p
17716 g
17717 s/.\{148\}//
17718 t nl
17719 :delim
17720 h
17721 s/\(.\{148\}\)..*/\1/
17722 t more2
17723 s/["\\]/\\&/g; s/^/"/; s/$/"/
17724 p
17725 b
17726 :more2
17727 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17728 p
17729 g
17730 s/.\{148\}//
17731 t delim
17732 ' <conf$$subs.awk | sed '
17733 /^[^""]/{
17734   N
17735   s/\n//
17736 }
17737 ' >>$CONFIG_STATUS || ac_write_fail=1
17738 rm -f conf$$subs.awk
17739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17740 _ACAWK
17741 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17742   for (key in S) S_is_set[key] = 1
17743   FS = "\a"
17744
17745 }
17746 {
17747   line = $ 0
17748   nfields = split(line, field, "@")
17749   substed = 0
17750   len = length(field[1])
17751   for (i = 2; i < nfields; i++) {
17752     key = field[i]
17753     keylen = length(key)
17754     if (S_is_set[key]) {
17755       value = S[key]
17756       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17757       len += length(value) + length(field[++i])
17758       substed = 1
17759     } else
17760       len += 1 + keylen
17761   }
17762
17763   print line
17764 }
17765
17766 _ACAWK
17767 _ACEOF
17768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17769 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17770   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17771 else
17772   cat
17773 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17774   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17775 _ACEOF
17776
17777 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17778 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17779 # trailing colons and then remove the whole line if VPATH becomes empty
17780 # (actually we leave an empty line to preserve line numbers).
17781 if test "x$srcdir" = x.; then
17782   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17783 h
17784 s///
17785 s/^/:/
17786 s/[      ]*$/:/
17787 s/:\$(srcdir):/:/g
17788 s/:\${srcdir}:/:/g
17789 s/:@srcdir@:/:/g
17790 s/^:*//
17791 s/:*$//
17792 x
17793 s/\(=[   ]*\).*/\1/
17794 G
17795 s/\n//
17796 s/^[^=]*=[       ]*$//
17797 }'
17798 fi
17799
17800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17801 fi # test -n "$CONFIG_FILES"
17802
17803 # Set up the scripts for CONFIG_HEADERS section.
17804 # No need to generate them if there are no CONFIG_HEADERS.
17805 # This happens for instance with `./config.status Makefile'.
17806 if test -n "$CONFIG_HEADERS"; then
17807 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17808 BEGIN {
17809 _ACEOF
17810
17811 # Transform confdefs.h into an awk script `defines.awk', embedded as
17812 # here-document in config.status, that substitutes the proper values into
17813 # config.h.in to produce config.h.
17814
17815 # Create a delimiter string that does not exist in confdefs.h, to ease
17816 # handling of long lines.
17817 ac_delim='%!_!# '
17818 for ac_last_try in false false :; do
17819   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17820   if test -z "$ac_tt"; then
17821     break
17822   elif $ac_last_try; then
17823     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17824   else
17825     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17826   fi
17827 done
17828
17829 # For the awk script, D is an array of macro values keyed by name,
17830 # likewise P contains macro parameters if any.  Preserve backslash
17831 # newline sequences.
17832
17833 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17834 sed -n '
17835 s/.\{148\}/&'"$ac_delim"'/g
17836 t rset
17837 :rset
17838 s/^[     ]*#[    ]*define[       ][      ]*/ /
17839 t def
17840 d
17841 :def
17842 s/\\$//
17843 t bsnl
17844 s/["\\]/\\&/g
17845 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17846 D["\1"]=" \3"/p
17847 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17848 d
17849 :bsnl
17850 s/["\\]/\\&/g
17851 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17852 D["\1"]=" \3\\\\\\n"\\/p
17853 t cont
17854 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17855 t cont
17856 d
17857 :cont
17858 n
17859 s/.\{148\}/&'"$ac_delim"'/g
17860 t clear
17861 :clear
17862 s/\\$//
17863 t bsnlc
17864 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17865 d
17866 :bsnlc
17867 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17868 b cont
17869 ' <confdefs.h | sed '
17870 s/'"$ac_delim"'/"\\\
17871 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17872
17873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17874   for (key in D) D_is_set[key] = 1
17875   FS = "\a"
17876 }
17877 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17878   line = \$ 0
17879   split(line, arg, " ")
17880   if (arg[1] == "#") {
17881     defundef = arg[2]
17882     mac1 = arg[3]
17883   } else {
17884     defundef = substr(arg[1], 2)
17885     mac1 = arg[2]
17886   }
17887   split(mac1, mac2, "(") #)
17888   macro = mac2[1]
17889   prefix = substr(line, 1, index(line, defundef) - 1)
17890   if (D_is_set[macro]) {
17891     # Preserve the white space surrounding the "#".
17892     print prefix "define", macro P[macro] D[macro]
17893     next
17894   } else {
17895     # Replace #undef with comments.  This is necessary, for example,
17896     # in the case of _POSIX_SOURCE, which is predefined and required
17897     # on some systems where configure will not decide to define it.
17898     if (defundef == "undef") {
17899       print "/*", prefix defundef, macro, "*/"
17900       next
17901     }
17902   }
17903 }
17904 { print }
17905 _ACAWK
17906 _ACEOF
17907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17908   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17909 fi # test -n "$CONFIG_HEADERS"
17910
17911
17912 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17913 shift
17914 for ac_tag
17915 do
17916   case $ac_tag in
17917   :[FHLC]) ac_mode=$ac_tag; continue;;
17918   esac
17919   case $ac_mode$ac_tag in
17920   :[FHL]*:*);;
17921   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17922   :[FH]-) ac_tag=-:-;;
17923   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17924   esac
17925   ac_save_IFS=$IFS
17926   IFS=:
17927   set x $ac_tag
17928   IFS=$ac_save_IFS
17929   shift
17930   ac_file=$1
17931   shift
17932
17933   case $ac_mode in
17934   :L) ac_source=$1;;
17935   :[FH])
17936     ac_file_inputs=
17937     for ac_f
17938     do
17939       case $ac_f in
17940       -) ac_f="$ac_tmp/stdin";;
17941       *) # Look for the file first in the build tree, then in the source tree
17942          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17943          # because $ac_f cannot contain `:'.
17944          test -f "$ac_f" ||
17945            case $ac_f in
17946            [\\/$]*) false;;
17947            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17948            esac ||
17949            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17950       esac
17951       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17952       as_fn_append ac_file_inputs " '$ac_f'"
17953     done
17954
17955     # Let's still pretend it is `configure' which instantiates (i.e., don't
17956     # use $as_me), people would be surprised to read:
17957     #    /* config.h.  Generated by config.status.  */
17958     configure_input='Generated from '`
17959           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17960         `' by configure.'
17961     if test x"$ac_file" != x-; then
17962       configure_input="$ac_file.  $configure_input"
17963       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17964 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17965     fi
17966     # Neutralize special characters interpreted by sed in replacement strings.
17967     case $configure_input in #(
17968     *\&* | *\|* | *\\* )
17969        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17970        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17971     *) ac_sed_conf_input=$configure_input;;
17972     esac
17973
17974     case $ac_tag in
17975     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17976       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17977     esac
17978     ;;
17979   esac
17980
17981   ac_dir=`$as_dirname -- "$ac_file" ||
17982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17983          X"$ac_file" : 'X\(//\)[^/]' \| \
17984          X"$ac_file" : 'X\(//\)$' \| \
17985          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17986 printf "%s\n" X"$ac_file" |
17987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17988             s//\1/
17989             q
17990           }
17991           /^X\(\/\/\)[^/].*/{
17992             s//\1/
17993             q
17994           }
17995           /^X\(\/\/\)$/{
17996             s//\1/
17997             q
17998           }
17999           /^X\(\/\).*/{
18000             s//\1/
18001             q
18002           }
18003           s/.*/./; q'`
18004   as_dir="$ac_dir"; as_fn_mkdir_p
18005   ac_builddir=.
18006
18007 case "$ac_dir" in
18008 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18009 *)
18010   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18011   # A ".." for each directory in $ac_dir_suffix.
18012   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18013   case $ac_top_builddir_sub in
18014   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18015   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18016   esac ;;
18017 esac
18018 ac_abs_top_builddir=$ac_pwd
18019 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18020 # for backward compatibility:
18021 ac_top_builddir=$ac_top_build_prefix
18022
18023 case $srcdir in
18024   .)  # We are building in place.
18025     ac_srcdir=.
18026     ac_top_srcdir=$ac_top_builddir_sub
18027     ac_abs_top_srcdir=$ac_pwd ;;
18028   [\\/]* | ?:[\\/]* )  # Absolute name.
18029     ac_srcdir=$srcdir$ac_dir_suffix;
18030     ac_top_srcdir=$srcdir
18031     ac_abs_top_srcdir=$srcdir ;;
18032   *) # Relative name.
18033     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18034     ac_top_srcdir=$ac_top_build_prefix$srcdir
18035     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18036 esac
18037 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18038
18039
18040   case $ac_mode in
18041   :F)
18042   #
18043   # CONFIG_FILE
18044   #
18045
18046   case $INSTALL in
18047   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18048   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18049   esac
18050   ac_MKDIR_P=$MKDIR_P
18051   case $MKDIR_P in
18052   [\\/$]* | ?:[\\/]* ) ;;
18053   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18054   esac
18055 _ACEOF
18056
18057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18058 # If the template does not know about datarootdir, expand it.
18059 # FIXME: This hack should be removed a few years after 2.60.
18060 ac_datarootdir_hack=; ac_datarootdir_seen=
18061 ac_sed_dataroot='
18062 /datarootdir/ {
18063   p
18064   q
18065 }
18066 /@datadir@/p
18067 /@docdir@/p
18068 /@infodir@/p
18069 /@localedir@/p
18070 /@mandir@/p'
18071 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18072 *datarootdir*) ac_datarootdir_seen=yes;;
18073 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18074   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18075 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18076 _ACEOF
18077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18078   ac_datarootdir_hack='
18079   s&@datadir@&$datadir&g
18080   s&@docdir@&$docdir&g
18081   s&@infodir@&$infodir&g
18082   s&@localedir@&$localedir&g
18083   s&@mandir@&$mandir&g
18084   s&\\\${datarootdir}&$datarootdir&g' ;;
18085 esac
18086 _ACEOF
18087
18088 # Neutralize VPATH when `$srcdir' = `.'.
18089 # Shell code in configure.ac might set extrasub.
18090 # FIXME: do we really want to maintain this feature?
18091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18092 ac_sed_extra="$ac_vpsub
18093 $extrasub
18094 _ACEOF
18095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18096 :t
18097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18098 s|@configure_input@|$ac_sed_conf_input|;t t
18099 s&@top_builddir@&$ac_top_builddir_sub&;t t
18100 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18101 s&@srcdir@&$ac_srcdir&;t t
18102 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18103 s&@top_srcdir@&$ac_top_srcdir&;t t
18104 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18105 s&@builddir@&$ac_builddir&;t t
18106 s&@abs_builddir@&$ac_abs_builddir&;t t
18107 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18108 s&@INSTALL@&$ac_INSTALL&;t t
18109 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18110 $ac_datarootdir_hack
18111 "
18112 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18113   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18114
18115 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18116   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18117   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18118       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18120 which seems to be undefined.  Please make sure it is defined" >&5
18121 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18122 which seems to be undefined.  Please make sure it is defined" >&2;}
18123
18124   rm -f "$ac_tmp/stdin"
18125   case $ac_file in
18126   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18127   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18128   esac \
18129   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18130  ;;
18131   :H)
18132   #
18133   # CONFIG_HEADER
18134   #
18135   if test x"$ac_file" != x-; then
18136     {
18137       printf "%s\n" "/* $configure_input  */" >&1 \
18138       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18139     } >"$ac_tmp/config.h" \
18140       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18141     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18142       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18143 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18144     else
18145       rm -f "$ac_file"
18146       mv "$ac_tmp/config.h" "$ac_file" \
18147         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18148     fi
18149   else
18150     printf "%s\n" "/* $configure_input  */" >&1 \
18151       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18152       || as_fn_error $? "could not create -" "$LINENO" 5
18153   fi
18154  ;;
18155
18156   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18157 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18158  ;;
18159   esac
18160
18161
18162   case $ac_file$ac_mode in
18163     "libtool":C)
18164
18165     # See if we are running on zsh, and set the options that allow our
18166     # commands through without removal of \ escapes.
18167     if test -n "${ZSH_VERSION+set}"; then
18168       setopt NO_GLOB_SUBST
18169     fi
18170
18171     cfgfile=${ofile}T
18172     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18173     $RM "$cfgfile"
18174
18175     cat <<_LT_EOF >> "$cfgfile"
18176 #! $SHELL
18177 # Generated automatically by $as_me ($PACKAGE) $VERSION
18178 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18179
18180 # Provide generalized library-building support services.
18181 # Written by Gordon Matzigkeit, 1996
18182
18183 # Copyright (C) 2014 Free Software Foundation, Inc.
18184 # This is free software; see the source for copying conditions.  There is NO
18185 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18186
18187 # GNU Libtool is free software; you can redistribute it and/or modify
18188 # it under the terms of the GNU General Public License as published by
18189 # the Free Software Foundation; either version 2 of of the License, or
18190 # (at your option) any later version.
18191 #
18192 # As a special exception to the GNU General Public License, if you
18193 # distribute this file as part of a program or library that is built
18194 # using GNU Libtool, you may include this file under the  same
18195 # distribution terms that you use for the rest of that program.
18196 #
18197 # GNU Libtool is distributed in the hope that it will be useful, but
18198 # WITHOUT ANY WARRANTY; without even the implied warranty of
18199 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18200 # GNU General Public License for more details.
18201 #
18202 # You should have received a copy of the GNU General Public License
18203 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18204
18205
18206 # The names of the tagged configurations supported by this script.
18207 available_tags='RC '
18208
18209 # Configured defaults for sys_lib_dlsearch_path munging.
18210 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18211
18212 # ### BEGIN LIBTOOL CONFIG
18213
18214 # Which release of libtool.m4 was used?
18215 macro_version=$macro_version
18216 macro_revision=$macro_revision
18217
18218 # Assembler program.
18219 AS=$lt_AS
18220
18221 # DLL creation program.
18222 DLLTOOL=$lt_DLLTOOL
18223
18224 # Object dumper program.
18225 OBJDUMP=$lt_OBJDUMP
18226
18227 # Whether or not to build shared libraries.
18228 build_libtool_libs=$enable_shared
18229
18230 # Whether or not to build static libraries.
18231 build_old_libs=$enable_static
18232
18233 # What type of objects to build.
18234 pic_mode=$pic_mode
18235
18236 # Whether or not to optimize for fast installation.
18237 fast_install=$enable_fast_install
18238
18239 # Shared archive member basename,for filename based shared library versioning on AIX.
18240 shared_archive_member_spec=$shared_archive_member_spec
18241
18242 # Shell to use when invoking shell scripts.
18243 SHELL=$lt_SHELL
18244
18245 # An echo program that protects backslashes.
18246 ECHO=$lt_ECHO
18247
18248 # The PATH separator for the build system.
18249 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18250
18251 # The host system.
18252 host_alias=$host_alias
18253 host=$host
18254 host_os=$host_os
18255
18256 # The build system.
18257 build_alias=$build_alias
18258 build=$build
18259 build_os=$build_os
18260
18261 # A sed program that does not truncate output.
18262 SED=$lt_SED
18263
18264 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18265 Xsed="\$SED -e 1s/^X//"
18266
18267 # A grep program that handles long lines.
18268 GREP=$lt_GREP
18269
18270 # An ERE matcher.
18271 EGREP=$lt_EGREP
18272
18273 # A literal string matcher.
18274 FGREP=$lt_FGREP
18275
18276 # A BSD- or MS-compatible name lister.
18277 NM=$lt_NM
18278
18279 # Whether we need soft or hard links.
18280 LN_S=$lt_LN_S
18281
18282 # What is the maximum length of a command?
18283 max_cmd_len=$max_cmd_len
18284
18285 # Object file suffix (normally "o").
18286 objext=$ac_objext
18287
18288 # Executable file suffix (normally "").
18289 exeext=$exeext
18290
18291 # whether the shell understands "unset".
18292 lt_unset=$lt_unset
18293
18294 # turn spaces into newlines.
18295 SP2NL=$lt_lt_SP2NL
18296
18297 # turn newlines into spaces.
18298 NL2SP=$lt_lt_NL2SP
18299
18300 # convert \$build file names to \$host format.
18301 to_host_file_cmd=$lt_cv_to_host_file_cmd
18302
18303 # convert \$build files to toolchain format.
18304 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18305
18306 # A file(cmd) program that detects file types.
18307 FILECMD=$lt_FILECMD
18308
18309 # Method to check whether dependent libraries are shared objects.
18310 deplibs_check_method=$lt_deplibs_check_method
18311
18312 # Command to use when deplibs_check_method = "file_magic".
18313 file_magic_cmd=$lt_file_magic_cmd
18314
18315 # How to find potential files when deplibs_check_method = "file_magic".
18316 file_magic_glob=$lt_file_magic_glob
18317
18318 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18319 want_nocaseglob=$lt_want_nocaseglob
18320
18321 # Command to associate shared and link libraries.
18322 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18323
18324 # The archiver.
18325 AR=$lt_AR
18326
18327 # Flags to create an archive (by configure).
18328 lt_ar_flags=$lt_ar_flags
18329
18330 # Flags to create an archive.
18331 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18332
18333 # How to feed a file listing to the archiver.
18334 archiver_list_spec=$lt_archiver_list_spec
18335
18336 # A symbol stripping program.
18337 STRIP=$lt_STRIP
18338
18339 # Commands used to install an old-style archive.
18340 RANLIB=$lt_RANLIB
18341 old_postinstall_cmds=$lt_old_postinstall_cmds
18342 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18343
18344 # Whether to use a lock for old archive extraction.
18345 lock_old_archive_extraction=$lock_old_archive_extraction
18346
18347 # A C compiler.
18348 LTCC=$lt_CC
18349
18350 # LTCC compiler flags.
18351 LTCFLAGS=$lt_CFLAGS
18352
18353 # Take the output of nm and produce a listing of raw symbols and C names.
18354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18355
18356 # Transform the output of nm in a proper C declaration.
18357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18358
18359 # Transform the output of nm into a list of symbols to manually relocate.
18360 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18361
18362 # Transform the output of nm in a C name address pair.
18363 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18364
18365 # Transform the output of nm in a C name address pair when lib prefix is needed.
18366 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18367
18368 # The name lister interface.
18369 nm_interface=$lt_lt_cv_nm_interface
18370
18371 # Specify filename containing input files for \$NM.
18372 nm_file_list_spec=$lt_nm_file_list_spec
18373
18374 # The root where to search for dependent libraries,and where our libraries should be installed.
18375 lt_sysroot=$lt_sysroot
18376
18377 # Command to truncate a binary pipe.
18378 lt_truncate_bin=$lt_lt_cv_truncate_bin
18379
18380 # The name of the directory that contains temporary libtool files.
18381 objdir=$objdir
18382
18383 # Used to examine libraries when file_magic_cmd begins with "file".
18384 MAGIC_CMD=$MAGIC_CMD
18385
18386 # Must we lock files when doing compilation?
18387 need_locks=$lt_need_locks
18388
18389 # Manifest tool.
18390 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18391
18392 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18393 DSYMUTIL=$lt_DSYMUTIL
18394
18395 # Tool to change global to local symbols on Mac OS X.
18396 NMEDIT=$lt_NMEDIT
18397
18398 # Tool to manipulate fat objects and archives on Mac OS X.
18399 LIPO=$lt_LIPO
18400
18401 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18402 OTOOL=$lt_OTOOL
18403
18404 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18405 OTOOL64=$lt_OTOOL64
18406
18407 # Old archive suffix (normally "a").
18408 libext=$libext
18409
18410 # Shared library suffix (normally ".so").
18411 shrext_cmds=$lt_shrext_cmds
18412
18413 # The commands to extract the exported symbol list from a shared archive.
18414 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18415
18416 # Variables whose values should be saved in libtool wrapper scripts and
18417 # restored at link time.
18418 variables_saved_for_relink=$lt_variables_saved_for_relink
18419
18420 # Do we need the "lib" prefix for modules?
18421 need_lib_prefix=$need_lib_prefix
18422
18423 # Do we need a version for libraries?
18424 need_version=$need_version
18425
18426 # Library versioning type.
18427 version_type=$version_type
18428
18429 # Shared library runtime path variable.
18430 runpath_var=$runpath_var
18431
18432 # Shared library path variable.
18433 shlibpath_var=$shlibpath_var
18434
18435 # Is shlibpath searched before the hard-coded library search path?
18436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18437
18438 # Format of library name prefix.
18439 libname_spec=$lt_libname_spec
18440
18441 # List of archive names.  First name is the real one, the rest are links.
18442 # The last name is the one that the linker finds with -lNAME
18443 library_names_spec=$lt_library_names_spec
18444
18445 # The coded name of the library, if different from the real name.
18446 soname_spec=$lt_soname_spec
18447
18448 # Permission mode override for installation of shared libraries.
18449 install_override_mode=$lt_install_override_mode
18450
18451 # Command to use after installation of a shared archive.
18452 postinstall_cmds=$lt_postinstall_cmds
18453
18454 # Command to use after uninstallation of a shared archive.
18455 postuninstall_cmds=$lt_postuninstall_cmds
18456
18457 # Commands used to finish a libtool library installation in a directory.
18458 finish_cmds=$lt_finish_cmds
18459
18460 # As "finish_cmds", except a single script fragment to be evaled but
18461 # not shown.
18462 finish_eval=$lt_finish_eval
18463
18464 # Whether we should hardcode library paths into libraries.
18465 hardcode_into_libs=$hardcode_into_libs
18466
18467 # Compile-time system search path for libraries.
18468 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18469
18470 # Detected run-time system search path for libraries.
18471 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18472
18473 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18474 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18475
18476 # Whether dlopen is supported.
18477 dlopen_support=$enable_dlopen
18478
18479 # Whether dlopen of programs is supported.
18480 dlopen_self=$enable_dlopen_self
18481
18482 # Whether dlopen of statically linked programs is supported.
18483 dlopen_self_static=$enable_dlopen_self_static
18484
18485 # Commands to strip libraries.
18486 old_striplib=$lt_old_striplib
18487 striplib=$lt_striplib
18488
18489
18490 # The linker used to build libraries.
18491 LD=$lt_LD
18492
18493 # How to create reloadable object files.
18494 reload_flag=$lt_reload_flag
18495 reload_cmds=$lt_reload_cmds
18496
18497 # Commands used to build an old-style archive.
18498 old_archive_cmds=$lt_old_archive_cmds
18499
18500 # A language specific compiler.
18501 CC=$lt_compiler
18502
18503 # Is the compiler the GNU compiler?
18504 with_gcc=$GCC
18505
18506 # Compiler flag to turn off builtin functions.
18507 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18508
18509 # Additional compiler flags for building library objects.
18510 pic_flag=$lt_lt_prog_compiler_pic
18511
18512 # How to pass a linker flag through the compiler.
18513 wl=$lt_lt_prog_compiler_wl
18514
18515 # Compiler flag to prevent dynamic linking.
18516 link_static_flag=$lt_lt_prog_compiler_static
18517
18518 # Does compiler simultaneously support -c and -o options?
18519 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18520
18521 # Whether or not to add -lc for building shared libraries.
18522 build_libtool_need_lc=$archive_cmds_need_lc
18523
18524 # Whether or not to disallow shared libs when runtime libs are static.
18525 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18526
18527 # Compiler flag to allow reflexive dlopens.
18528 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18529
18530 # Compiler flag to generate shared objects directly from archives.
18531 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18532
18533 # Whether the compiler copes with passing no objects directly.
18534 compiler_needs_object=$lt_compiler_needs_object
18535
18536 # Create an old-style archive from a shared archive.
18537 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18538
18539 # Create a temporary old-style archive to link instead of a shared archive.
18540 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18541
18542 # Commands used to build a shared archive.
18543 archive_cmds=$lt_archive_cmds
18544 archive_expsym_cmds=$lt_archive_expsym_cmds
18545
18546 # Commands used to build a loadable module if different from building
18547 # a shared archive.
18548 module_cmds=$lt_module_cmds
18549 module_expsym_cmds=$lt_module_expsym_cmds
18550
18551 # Whether we are building with GNU ld or not.
18552 with_gnu_ld=$lt_with_gnu_ld
18553
18554 # Flag that allows shared libraries with undefined symbols to be built.
18555 allow_undefined_flag=$lt_allow_undefined_flag
18556
18557 # Flag that enforces no undefined symbols.
18558 no_undefined_flag=$lt_no_undefined_flag
18559
18560 # Flag to hardcode \$libdir into a binary during linking.
18561 # This must work even if \$libdir does not exist
18562 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18563
18564 # Whether we need a single "-rpath" flag with a separated argument.
18565 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18566
18567 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18568 # DIR into the resulting binary.
18569 hardcode_direct=$hardcode_direct
18570
18571 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18572 # DIR into the resulting binary and the resulting library dependency is
18573 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18574 # library is relocated.
18575 hardcode_direct_absolute=$hardcode_direct_absolute
18576
18577 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18578 # into the resulting binary.
18579 hardcode_minus_L=$hardcode_minus_L
18580
18581 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18582 # into the resulting binary.
18583 hardcode_shlibpath_var=$hardcode_shlibpath_var
18584
18585 # Set to "yes" if building a shared library automatically hardcodes DIR
18586 # into the library and all subsequent libraries and executables linked
18587 # against it.
18588 hardcode_automatic=$hardcode_automatic
18589
18590 # Set to yes if linker adds runtime paths of dependent libraries
18591 # to runtime path list.
18592 inherit_rpath=$inherit_rpath
18593
18594 # Whether libtool must link a program against all its dependency libraries.
18595 link_all_deplibs=$link_all_deplibs
18596
18597 # Set to "yes" if exported symbols are required.
18598 always_export_symbols=$always_export_symbols
18599
18600 # The commands to list exported symbols.
18601 export_symbols_cmds=$lt_export_symbols_cmds
18602
18603 # Symbols that should not be listed in the preloaded symbols.
18604 exclude_expsyms=$lt_exclude_expsyms
18605
18606 # Symbols that must always be exported.
18607 include_expsyms=$lt_include_expsyms
18608
18609 # Commands necessary for linking programs (against libraries) with templates.
18610 prelink_cmds=$lt_prelink_cmds
18611
18612 # Commands necessary for finishing linking programs.
18613 postlink_cmds=$lt_postlink_cmds
18614
18615 # Specify filename containing input files.
18616 file_list_spec=$lt_file_list_spec
18617
18618 # How to hardcode a shared library path into an executable.
18619 hardcode_action=$hardcode_action
18620
18621 # ### END LIBTOOL CONFIG
18622
18623 _LT_EOF
18624
18625     cat <<'_LT_EOF' >> "$cfgfile"
18626
18627 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18628
18629 # func_munge_path_list VARIABLE PATH
18630 # -----------------------------------
18631 # VARIABLE is name of variable containing _space_ separated list of
18632 # directories to be munged by the contents of PATH, which is string
18633 # having a format:
18634 # "DIR[:DIR]:"
18635 #       string "DIR[ DIR]" will be prepended to VARIABLE
18636 # ":DIR[:DIR]"
18637 #       string "DIR[ DIR]" will be appended to VARIABLE
18638 # "DIRP[:DIRP]::[DIRA:]DIRA"
18639 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18640 #       "DIRA[ DIRA]" will be appended to VARIABLE
18641 # "DIR[:DIR]"
18642 #       VARIABLE will be replaced by "DIR[ DIR]"
18643 func_munge_path_list ()
18644 {
18645     case x$2 in
18646     x)
18647         ;;
18648     *:)
18649         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18650         ;;
18651     x:*)
18652         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18653         ;;
18654     *::*)
18655         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18656         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18657         ;;
18658     *)
18659         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18660         ;;
18661     esac
18662 }
18663
18664
18665 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18666 func_cc_basename ()
18667 {
18668     for cc_temp in $*""; do
18669       case $cc_temp in
18670         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18671         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18672         \-*) ;;
18673         *) break;;
18674       esac
18675     done
18676     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18677 }
18678
18679
18680 # ### END FUNCTIONS SHARED WITH CONFIGURE
18681
18682 _LT_EOF
18683
18684   case $host_os in
18685   aix3*)
18686     cat <<\_LT_EOF >> "$cfgfile"
18687 # AIX sometimes has problems with the GCC collect2 program.  For some
18688 # reason, if we set the COLLECT_NAMES environment variable, the problems
18689 # vanish in a puff of smoke.
18690 if test set != "${COLLECT_NAMES+set}"; then
18691   COLLECT_NAMES=
18692   export COLLECT_NAMES
18693 fi
18694 _LT_EOF
18695     ;;
18696   esac
18697
18698
18699
18700 ltmain=$ac_aux_dir/ltmain.sh
18701
18702
18703   # We use sed instead of cat because bash on DJGPP gets confused if
18704   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18705   # text mode, it properly converts lines to CR/LF.  This bash problem
18706   # is reportedly fixed, but why not run on old versions too?
18707   $SED '$q' "$ltmain" >> "$cfgfile" \
18708      || (rm -f "$cfgfile"; exit 1)
18709
18710    mv -f "$cfgfile" "$ofile" ||
18711     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18712   chmod +x "$ofile"
18713
18714
18715     cat <<_LT_EOF >> "$ofile"
18716
18717 # ### BEGIN LIBTOOL TAG CONFIG: RC
18718
18719 # The linker used to build libraries.
18720 LD=$lt_LD_RC
18721
18722 # How to create reloadable object files.
18723 reload_flag=$lt_reload_flag_RC
18724 reload_cmds=$lt_reload_cmds_RC
18725
18726 # Commands used to build an old-style archive.
18727 old_archive_cmds=$lt_old_archive_cmds_RC
18728
18729 # A language specific compiler.
18730 CC=$lt_compiler_RC
18731
18732 # Is the compiler the GNU compiler?
18733 with_gcc=$GCC_RC
18734
18735 # Compiler flag to turn off builtin functions.
18736 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18737
18738 # Additional compiler flags for building library objects.
18739 pic_flag=$lt_lt_prog_compiler_pic_RC
18740
18741 # How to pass a linker flag through the compiler.
18742 wl=$lt_lt_prog_compiler_wl_RC
18743
18744 # Compiler flag to prevent dynamic linking.
18745 link_static_flag=$lt_lt_prog_compiler_static_RC
18746
18747 # Does compiler simultaneously support -c and -o options?
18748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18749
18750 # Whether or not to add -lc for building shared libraries.
18751 build_libtool_need_lc=$archive_cmds_need_lc_RC
18752
18753 # Whether or not to disallow shared libs when runtime libs are static.
18754 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18755
18756 # Compiler flag to allow reflexive dlopens.
18757 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18758
18759 # Compiler flag to generate shared objects directly from archives.
18760 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18761
18762 # Whether the compiler copes with passing no objects directly.
18763 compiler_needs_object=$lt_compiler_needs_object_RC
18764
18765 # Create an old-style archive from a shared archive.
18766 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18767
18768 # Create a temporary old-style archive to link instead of a shared archive.
18769 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18770
18771 # Commands used to build a shared archive.
18772 archive_cmds=$lt_archive_cmds_RC
18773 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18774
18775 # Commands used to build a loadable module if different from building
18776 # a shared archive.
18777 module_cmds=$lt_module_cmds_RC
18778 module_expsym_cmds=$lt_module_expsym_cmds_RC
18779
18780 # Whether we are building with GNU ld or not.
18781 with_gnu_ld=$lt_with_gnu_ld_RC
18782
18783 # Flag that allows shared libraries with undefined symbols to be built.
18784 allow_undefined_flag=$lt_allow_undefined_flag_RC
18785
18786 # Flag that enforces no undefined symbols.
18787 no_undefined_flag=$lt_no_undefined_flag_RC
18788
18789 # Flag to hardcode \$libdir into a binary during linking.
18790 # This must work even if \$libdir does not exist
18791 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18792
18793 # Whether we need a single "-rpath" flag with a separated argument.
18794 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18795
18796 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18797 # DIR into the resulting binary.
18798 hardcode_direct=$hardcode_direct_RC
18799
18800 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18801 # DIR into the resulting binary and the resulting library dependency is
18802 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18803 # library is relocated.
18804 hardcode_direct_absolute=$hardcode_direct_absolute_RC
18805
18806 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18807 # into the resulting binary.
18808 hardcode_minus_L=$hardcode_minus_L_RC
18809
18810 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18811 # into the resulting binary.
18812 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18813
18814 # Set to "yes" if building a shared library automatically hardcodes DIR
18815 # into the library and all subsequent libraries and executables linked
18816 # against it.
18817 hardcode_automatic=$hardcode_automatic_RC
18818
18819 # Set to yes if linker adds runtime paths of dependent libraries
18820 # to runtime path list.
18821 inherit_rpath=$inherit_rpath_RC
18822
18823 # Whether libtool must link a program against all its dependency libraries.
18824 link_all_deplibs=$link_all_deplibs_RC
18825
18826 # Set to "yes" if exported symbols are required.
18827 always_export_symbols=$always_export_symbols_RC
18828
18829 # The commands to list exported symbols.
18830 export_symbols_cmds=$lt_export_symbols_cmds_RC
18831
18832 # Symbols that should not be listed in the preloaded symbols.
18833 exclude_expsyms=$lt_exclude_expsyms_RC
18834
18835 # Symbols that must always be exported.
18836 include_expsyms=$lt_include_expsyms_RC
18837
18838 # Commands necessary for linking programs (against libraries) with templates.
18839 prelink_cmds=$lt_prelink_cmds_RC
18840
18841 # Commands necessary for finishing linking programs.
18842 postlink_cmds=$lt_postlink_cmds_RC
18843
18844 # Specify filename containing input files.
18845 file_list_spec=$lt_file_list_spec_RC
18846
18847 # How to hardcode a shared library path into an executable.
18848 hardcode_action=$hardcode_action_RC
18849
18850 # ### END LIBTOOL TAG CONFIG: RC
18851 _LT_EOF
18852
18853  ;;
18854     "ftoption.h":F) mv ftoption.h ftoption.tmp
18855    eval "sed $FTOPTION_H_SED < ftoption.tmp > ftoption.h"
18856    rm ftoption.tmp ;;
18857
18858   esac
18859 done # for ac_tag
18860
18861
18862 as_fn_exit 0
18863 _ACEOF
18864 ac_clean_files=$ac_clean_files_save
18865
18866 test $ac_write_fail = 0 ||
18867   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18868
18869
18870 # configure is writing to config.log, and then calls config.status.
18871 # config.status does its own redirection, appending to config.log.
18872 # Unfortunately, on DOS this fails, as config.log is still kept open
18873 # by configure, so config.status won't be able to write to it; its
18874 # output is simply discarded.  So we exec the FD to /dev/null,
18875 # effectively closing config.log, so it can be properly (re)opened and
18876 # appended to by config.status.  When coming back to configure, we
18877 # need to make the FD available again.
18878 if test "$no_create" != yes; then
18879   ac_cs_success=:
18880   ac_config_status_args=
18881   test "$silent" = yes &&
18882     ac_config_status_args="$ac_config_status_args --quiet"
18883   exec 5>/dev/null
18884   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18885   exec 5>>config.log
18886   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18887   # would make configure fail if this is the last instruction.
18888   $ac_cs_success || as_fn_exit 1
18889 fi
18890 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18891   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18892 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18893 fi
18894
18895
18896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
18897
18898 Library configuration:
18899   external zlib: $have_zlib
18900   bzip2:         $have_bzip2
18901   libpng:        $have_libpng
18902   harfbuzz:      $have_harfbuzz
18903   brotli:        $have_brotli
18904   pthread:       $have_pthread
18905 " >&5
18906 printf "%s\n" "$as_me:
18907
18908 Library configuration:
18909   external zlib: $have_zlib
18910   bzip2:         $have_bzip2
18911   libpng:        $have_libpng
18912   harfbuzz:      $have_harfbuzz
18913   brotli:        $have_brotli
18914   pthread:       $have_pthread
18915 " >&6;}
18916
18917 # Warn if docwriter is not installed
18918
18919 if test $have_docwriter = no; then
18920   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
18921   \`make refdoc' will fail since pip package \`docwriter' is not installed.
18922   To install, run \`$PIP install docwriter', or to use a Python
18923   virtual environment, run \`make refdoc-venv' (requires pip package
18924   \`virtualenv').  These operations require Python >= $PYTHON_MIN_VERSION.
18925   " >&5
18926 printf "%s\n" "$as_me: WARNING:
18927   \`make refdoc' will fail since pip package \`docwriter' is not installed.
18928   To install, run \`$PIP install docwriter', or to use a Python
18929   virtual environment, run \`make refdoc-venv' (requires pip package
18930   \`virtualenv').  These operations require Python >= $PYTHON_MIN_VERSION.
18931   " >&2;}
18932 fi
18933
18934 # Warn if pthread is not available
18935
18936 if test $have_pthread = no; then
18937   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
18938   \`FT_DEBUG_LOGGING' will not work since the \`pthread' library is not
18939   available.  This warning can be safely ignored if you don't plan to use
18940   this configuration macro.
18941   " >&5
18942 printf "%s\n" "$as_me: WARNING:
18943   \`FT_DEBUG_LOGGING' will not work since the \`pthread' library is not
18944   available.  This warning can be safely ignored if you don't plan to use
18945   this configuration macro.
18946   " >&2;}
18947 fi
18948
18949 # end of configure.raw
18950