• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for FreeType 2.12.1.
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
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
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
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
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.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export 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).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${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  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
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
102IFS=$as_save_IFS
103
104     ;;
105esac
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.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if 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
114fi
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.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $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'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
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
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -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
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
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
223then :
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
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $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
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
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
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_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.
318as_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 $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_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 ||
355printf "%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.
384as_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.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # 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.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_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.
439as_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
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%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.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_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.
535ECHO_C= ECHO_N= ECHO_T=
536case `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';;
546esac
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.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (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
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_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.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 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.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='FreeType'
623PACKAGE_TARNAME='freetype'
624PACKAGE_VERSION='2.12.1'
625PACKAGE_STRING='FreeType 2.12.1'
626PACKAGE_BUGREPORT='freetype@nongnu.org'
627PACKAGE_URL=''
628
629ac_unique_file="ftconfig.h.in"
630# Factoring default headers for most tests.
631ac_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
661ac_header_c_list=
662ac_func_c_list=
663ac_subst_vars='LTLIBOBJS
664LIBOBJS
665build_libtool_libs
666wl
667hardcode_libdir_flag_spec
668LIBSSTATIC_CONFIG
669PKGCONFIG_LIBS_PRIVATE
670PKGCONFIG_REQUIRES_PRIVATE
671PKGCONFIG_LIBS
672PKGCONFIG_REQUIRES
673ftmac_c
674PYTHON_VERSION
675PYTHON
676PTHREAD_CFLAGS
677PTHREAD_LIBS
678PTHREAD_CXX
679PTHREAD_CC
680ax_pthread_config
681target_os
682target_vendor
683target_cpu
684target
685FT_DEMO_LDFLAGS
686FT_DEMO_CFLAGS
687LIBRSVG_LIBS
688LIBRSVG_CFLAGS
689BROTLI_LIBS
690BROTLI_CFLAGS
691HARFBUZZ_LIBS
692HARFBUZZ_CFLAGS
693LIBPNG_LIBS
694LIBPNG_CFLAGS
695BZIP2_LIBS
696BZIP2_CFLAGS
697SYSTEM_ZLIB
698ZLIB_LIBS
699ZLIB_CFLAGS
700XX_ANSIFLAGS
701XX_CFLAGS
702FTSYS_SRC
703INSTALL_FT2_CONFIG
704MKDIR_P
705INSTALL_DATA
706INSTALL_SCRIPT
707INSTALL_PROGRAM
708EXEEXT_BUILD
709CC_BUILD
710RC
711LT_SYS_LIBRARY_PATH
712OTOOL64
713OTOOL
714LIPO
715NMEDIT
716DSYMUTIL
717MANIFEST_TOOL
718AWK
719RANLIB
720STRIP
721ac_ct_AR
722AR
723FILECMD
724LN_S
725NM
726ac_ct_DUMPBIN
727DUMPBIN
728LD
729FGREP
730EGREP
731GREP
732SED
733LIBTOOL
734OBJDUMP
735DLLTOOL
736AS
737PKG_CONFIG_LIBDIR
738PKG_CONFIG_PATH
739PKG_CONFIG
740CPP
741OBJEXT
742EXEEXT
743ac_ct_CC
744CPPFLAGS
745LDFLAGS
746CFLAGS
747CC
748host_os
749host_vendor
750host_cpu
751host
752build_os
753build_vendor
754build_cpu
755build
756ft_version
757version_info
758target_alias
759host_alias
760build_alias
761LIBS
762ECHO_T
763ECHO_N
764ECHO_C
765DEFS
766mandir
767localedir
768libdir
769psdir
770pdfdir
771dvidir
772htmldir
773infodir
774docdir
775oldincludedir
776includedir
777runstatedir
778localstatedir
779sharedstatedir
780sysconfdir
781datadir
782datarootdir
783libexecdir
784sbindir
785bindir
786program_transform_name
787prefix
788exec_prefix
789PACKAGE_URL
790PACKAGE_BUGREPORT
791PACKAGE_STRING
792PACKAGE_VERSION
793PACKAGE_TARNAME
794PACKAGE_NAME
795PATH_SEPARATOR
796SHELL'
797ac_subst_files=''
798ac_user_opts='
799enable_option_checking
800enable_shared
801enable_static
802with_pic
803enable_fast_install
804with_aix_soname
805with_gnu_ld
806with_sysroot
807enable_libtool_lock
808enable_freetype_config
809enable_largefile
810enable_mmap
811with_zlib
812with_bzip2
813with_png
814with_harfbuzz
815with_brotli
816with_librsvg
817with_old_mac_fonts
818with_fsspec
819with_fsref
820with_quickdraw_toolbox
821with_quickdraw_carbon
822with_ats
823'
824      ac_precious_vars='build_alias
825host_alias
826target_alias
827CC
828CFLAGS
829LDFLAGS
830LIBS
831CPPFLAGS
832CPP
833PKG_CONFIG
834PKG_CONFIG_PATH
835PKG_CONFIG_LIBDIR
836LT_SYS_LIBRARY_PATH
837ZLIB_CFLAGS
838ZLIB_LIBS
839BZIP2_CFLAGS
840BZIP2_LIBS
841LIBPNG_CFLAGS
842LIBPNG_LIBS
843HARFBUZZ_CFLAGS
844HARFBUZZ_LIBS
845BROTLI_CFLAGS
846BROTLI_LIBS
847LIBRSVG_CFLAGS
848LIBRSVG_LIBS'
849
850
851# Initialize some variables set by options.
852ac_init_help=
853ac_init_version=false
854ac_unrecognized_opts=
855ac_unrecognized_sep=
856# The variables have the same names as the options, with
857# dashes changed to underlines.
858cache_file=/dev/null
859exec_prefix=NONE
860no_create=
861no_recursion=
862prefix=NONE
863program_prefix=NONE
864program_suffix=NONE
865program_transform_name=s,x,x,
866silent=
867site=
868srcdir=
869verbose=
870x_includes=NONE
871x_libraries=NONE
872
873# Installation directory options.
874# These are left unexpanded so users can "make install exec_prefix=/foo"
875# and all the variables that are supposed to be based on exec_prefix
876# by default will actually change.
877# Use braces instead of parens because sh, perl, etc. also accept them.
878# (The list follows the same order as the GNU Coding Standards.)
879bindir='${exec_prefix}/bin'
880sbindir='${exec_prefix}/sbin'
881libexecdir='${exec_prefix}/libexec'
882datarootdir='${prefix}/share'
883datadir='${datarootdir}'
884sysconfdir='${prefix}/etc'
885sharedstatedir='${prefix}/com'
886localstatedir='${prefix}/var'
887runstatedir='${localstatedir}/run'
888includedir='${prefix}/include'
889oldincludedir='/usr/include'
890docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891infodir='${datarootdir}/info'
892htmldir='${docdir}'
893dvidir='${docdir}'
894pdfdir='${docdir}'
895psdir='${docdir}'
896libdir='${exec_prefix}/lib'
897localedir='${datarootdir}/locale'
898mandir='${datarootdir}/man'
899
900ac_prev=
901ac_dashdash=
902for ac_option
903do
904  # If the previous option needs an argument, assign it.
905  if test -n "$ac_prev"; then
906    eval $ac_prev=\$ac_option
907    ac_prev=
908    continue
909  fi
910
911  case $ac_option in
912  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913  *=)   ac_optarg= ;;
914  *)    ac_optarg=yes ;;
915  esac
916
917  case $ac_dashdash$ac_option in
918  --)
919    ac_dashdash=yes ;;
920
921  -bindir | --bindir | --bindi | --bind | --bin | --bi)
922    ac_prev=bindir ;;
923  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924    bindir=$ac_optarg ;;
925
926  -build | --build | --buil | --bui | --bu)
927    ac_prev=build_alias ;;
928  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929    build_alias=$ac_optarg ;;
930
931  -cache-file | --cache-file | --cache-fil | --cache-fi \
932  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933    ac_prev=cache_file ;;
934  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936    cache_file=$ac_optarg ;;
937
938  --config-cache | -C)
939    cache_file=config.cache ;;
940
941  -datadir | --datadir | --datadi | --datad)
942    ac_prev=datadir ;;
943  -datadir=* | --datadir=* | --datadi=* | --datad=*)
944    datadir=$ac_optarg ;;
945
946  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947  | --dataroo | --dataro | --datar)
948    ac_prev=datarootdir ;;
949  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951    datarootdir=$ac_optarg ;;
952
953  -disable-* | --disable-*)
954    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955    # Reject names that are not valid shell variable names.
956    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957      as_fn_error $? "invalid feature name: \`$ac_useropt'"
958    ac_useropt_orig=$ac_useropt
959    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
960    case $ac_user_opts in
961      *"
962"enable_$ac_useropt"
963"*) ;;
964      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965	 ac_unrecognized_sep=', ';;
966    esac
967    eval enable_$ac_useropt=no ;;
968
969  -docdir | --docdir | --docdi | --doc | --do)
970    ac_prev=docdir ;;
971  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972    docdir=$ac_optarg ;;
973
974  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975    ac_prev=dvidir ;;
976  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977    dvidir=$ac_optarg ;;
978
979  -enable-* | --enable-*)
980    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981    # Reject names that are not valid shell variable names.
982    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983      as_fn_error $? "invalid feature name: \`$ac_useropt'"
984    ac_useropt_orig=$ac_useropt
985    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
986    case $ac_user_opts in
987      *"
988"enable_$ac_useropt"
989"*) ;;
990      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991	 ac_unrecognized_sep=', ';;
992    esac
993    eval enable_$ac_useropt=\$ac_optarg ;;
994
995  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997  | --exec | --exe | --ex)
998    ac_prev=exec_prefix ;;
999  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001  | --exec=* | --exe=* | --ex=*)
1002    exec_prefix=$ac_optarg ;;
1003
1004  -gas | --gas | --ga | --g)
1005    # Obsolete; use --with-gas.
1006    with_gas=yes ;;
1007
1008  -help | --help | --hel | --he | -h)
1009    ac_init_help=long ;;
1010  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011    ac_init_help=recursive ;;
1012  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013    ac_init_help=short ;;
1014
1015  -host | --host | --hos | --ho)
1016    ac_prev=host_alias ;;
1017  -host=* | --host=* | --hos=* | --ho=*)
1018    host_alias=$ac_optarg ;;
1019
1020  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021    ac_prev=htmldir ;;
1022  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023  | --ht=*)
1024    htmldir=$ac_optarg ;;
1025
1026  -includedir | --includedir | --includedi | --included | --include \
1027  | --includ | --inclu | --incl | --inc)
1028    ac_prev=includedir ;;
1029  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030  | --includ=* | --inclu=* | --incl=* | --inc=*)
1031    includedir=$ac_optarg ;;
1032
1033  -infodir | --infodir | --infodi | --infod | --info | --inf)
1034    ac_prev=infodir ;;
1035  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036    infodir=$ac_optarg ;;
1037
1038  -libdir | --libdir | --libdi | --libd)
1039    ac_prev=libdir ;;
1040  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041    libdir=$ac_optarg ;;
1042
1043  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044  | --libexe | --libex | --libe)
1045    ac_prev=libexecdir ;;
1046  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047  | --libexe=* | --libex=* | --libe=*)
1048    libexecdir=$ac_optarg ;;
1049
1050  -localedir | --localedir | --localedi | --localed | --locale)
1051    ac_prev=localedir ;;
1052  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053    localedir=$ac_optarg ;;
1054
1055  -localstatedir | --localstatedir | --localstatedi | --localstated \
1056  | --localstate | --localstat | --localsta | --localst | --locals)
1057    ac_prev=localstatedir ;;
1058  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060    localstatedir=$ac_optarg ;;
1061
1062  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063    ac_prev=mandir ;;
1064  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065    mandir=$ac_optarg ;;
1066
1067  -nfp | --nfp | --nf)
1068    # Obsolete; use --without-fp.
1069    with_fp=no ;;
1070
1071  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072  | --no-cr | --no-c | -n)
1073    no_create=yes ;;
1074
1075  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077    no_recursion=yes ;;
1078
1079  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081  | --oldin | --oldi | --old | --ol | --o)
1082    ac_prev=oldincludedir ;;
1083  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086    oldincludedir=$ac_optarg ;;
1087
1088  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089    ac_prev=prefix ;;
1090  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091    prefix=$ac_optarg ;;
1092
1093  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094  | --program-pre | --program-pr | --program-p)
1095    ac_prev=program_prefix ;;
1096  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098    program_prefix=$ac_optarg ;;
1099
1100  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101  | --program-suf | --program-su | --program-s)
1102    ac_prev=program_suffix ;;
1103  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105    program_suffix=$ac_optarg ;;
1106
1107  -program-transform-name | --program-transform-name \
1108  | --program-transform-nam | --program-transform-na \
1109  | --program-transform-n | --program-transform- \
1110  | --program-transform | --program-transfor \
1111  | --program-transfo | --program-transf \
1112  | --program-trans | --program-tran \
1113  | --progr-tra | --program-tr | --program-t)
1114    ac_prev=program_transform_name ;;
1115  -program-transform-name=* | --program-transform-name=* \
1116  | --program-transform-nam=* | --program-transform-na=* \
1117  | --program-transform-n=* | --program-transform-=* \
1118  | --program-transform=* | --program-transfor=* \
1119  | --program-transfo=* | --program-transf=* \
1120  | --program-trans=* | --program-tran=* \
1121  | --progr-tra=* | --program-tr=* | --program-t=*)
1122    program_transform_name=$ac_optarg ;;
1123
1124  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125    ac_prev=pdfdir ;;
1126  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127    pdfdir=$ac_optarg ;;
1128
1129  -psdir | --psdir | --psdi | --psd | --ps)
1130    ac_prev=psdir ;;
1131  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132    psdir=$ac_optarg ;;
1133
1134  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135  | -silent | --silent | --silen | --sile | --sil)
1136    silent=yes ;;
1137
1138  -runstatedir | --runstatedir | --runstatedi | --runstated \
1139  | --runstate | --runstat | --runsta | --runst | --runs \
1140  | --run | --ru | --r)
1141    ac_prev=runstatedir ;;
1142  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1143  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1144  | --run=* | --ru=* | --r=*)
1145    runstatedir=$ac_optarg ;;
1146
1147  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148    ac_prev=sbindir ;;
1149  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150  | --sbi=* | --sb=*)
1151    sbindir=$ac_optarg ;;
1152
1153  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155  | --sharedst | --shareds | --shared | --share | --shar \
1156  | --sha | --sh)
1157    ac_prev=sharedstatedir ;;
1158  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161  | --sha=* | --sh=*)
1162    sharedstatedir=$ac_optarg ;;
1163
1164  -site | --site | --sit)
1165    ac_prev=site ;;
1166  -site=* | --site=* | --sit=*)
1167    site=$ac_optarg ;;
1168
1169  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170    ac_prev=srcdir ;;
1171  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172    srcdir=$ac_optarg ;;
1173
1174  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175  | --syscon | --sysco | --sysc | --sys | --sy)
1176    ac_prev=sysconfdir ;;
1177  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179    sysconfdir=$ac_optarg ;;
1180
1181  -target | --target | --targe | --targ | --tar | --ta | --t)
1182    ac_prev=target_alias ;;
1183  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184    target_alias=$ac_optarg ;;
1185
1186  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187    verbose=yes ;;
1188
1189  -version | --version | --versio | --versi | --vers | -V)
1190    ac_init_version=: ;;
1191
1192  -with-* | --with-*)
1193    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194    # Reject names that are not valid shell variable names.
1195    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196      as_fn_error $? "invalid package name: \`$ac_useropt'"
1197    ac_useropt_orig=$ac_useropt
1198    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1199    case $ac_user_opts in
1200      *"
1201"with_$ac_useropt"
1202"*) ;;
1203      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204	 ac_unrecognized_sep=', ';;
1205    esac
1206    eval with_$ac_useropt=\$ac_optarg ;;
1207
1208  -without-* | --without-*)
1209    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210    # Reject names that are not valid shell variable names.
1211    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212      as_fn_error $? "invalid package name: \`$ac_useropt'"
1213    ac_useropt_orig=$ac_useropt
1214    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215    case $ac_user_opts in
1216      *"
1217"with_$ac_useropt"
1218"*) ;;
1219      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220	 ac_unrecognized_sep=', ';;
1221    esac
1222    eval with_$ac_useropt=no ;;
1223
1224  --x)
1225    # Obsolete; use --with-x.
1226    with_x=yes ;;
1227
1228  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229  | --x-incl | --x-inc | --x-in | --x-i)
1230    ac_prev=x_includes ;;
1231  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233    x_includes=$ac_optarg ;;
1234
1235  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237    ac_prev=x_libraries ;;
1238  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240    x_libraries=$ac_optarg ;;
1241
1242  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243Try \`$0 --help' for more information"
1244    ;;
1245
1246  *=*)
1247    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248    # Reject names that are not valid shell variable names.
1249    case $ac_envvar in #(
1250      '' | [0-9]* | *[!_$as_cr_alnum]* )
1251      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252    esac
1253    eval $ac_envvar=\$ac_optarg
1254    export $ac_envvar ;;
1255
1256  *)
1257    # FIXME: should be removed in autoconf 3.0.
1258    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1259    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1261    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262    ;;
1263
1264  esac
1265done
1266
1267if test -n "$ac_prev"; then
1268  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269  as_fn_error $? "missing argument to $ac_option"
1270fi
1271
1272if test -n "$ac_unrecognized_opts"; then
1273  case $enable_option_checking in
1274    no) ;;
1275    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277  esac
1278fi
1279
1280# Check all directory arguments for consistency.
1281for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282		datadir sysconfdir sharedstatedir localstatedir includedir \
1283		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284		libdir localedir mandir runstatedir
1285do
1286  eval ac_val=\$$ac_var
1287  # Remove trailing slashes.
1288  case $ac_val in
1289    */ )
1290      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291      eval $ac_var=\$ac_val;;
1292  esac
1293  # Be sure to have absolute directory names.
1294  case $ac_val in
1295    [\\/$]* | ?:[\\/]* )  continue;;
1296    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297  esac
1298  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299done
1300
1301# There might be people who depend on the old broken behavior: `$host'
1302# used to hold the argument of --host etc.
1303# FIXME: To remove some day.
1304build=$build_alias
1305host=$host_alias
1306target=$target_alias
1307
1308# FIXME: To remove some day.
1309if test "x$host_alias" != x; then
1310  if test "x$build_alias" = x; then
1311    cross_compiling=maybe
1312  elif test "x$build_alias" != "x$host_alias"; then
1313    cross_compiling=yes
1314  fi
1315fi
1316
1317ac_tool_prefix=
1318test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320test "$silent" = yes && exec 6>/dev/null
1321
1322
1323ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324ac_ls_di=`ls -di .` &&
1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326  as_fn_error $? "working directory cannot be determined"
1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328  as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331# Find the source files, if location was not specified.
1332if test -z "$srcdir"; then
1333  ac_srcdir_defaulted=yes
1334  # Try the directory containing this script, then the parent directory.
1335  ac_confdir=`$as_dirname -- "$as_myself" ||
1336$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337	 X"$as_myself" : 'X\(//\)[^/]' \| \
1338	 X"$as_myself" : 'X\(//\)$' \| \
1339	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340printf "%s\n" X"$as_myself" |
1341    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\/\)[^/].*/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\/\)$/{
1350	    s//\1/
1351	    q
1352	  }
1353	  /^X\(\/\).*/{
1354	    s//\1/
1355	    q
1356	  }
1357	  s/.*/./; q'`
1358  srcdir=$ac_confdir
1359  if test ! -r "$srcdir/$ac_unique_file"; then
1360    srcdir=..
1361  fi
1362else
1363  ac_srcdir_defaulted=no
1364fi
1365if test ! -r "$srcdir/$ac_unique_file"; then
1366  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368fi
1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370ac_abs_confdir=`(
1371	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372	pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375  srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_env_${ac_var}_value=\$${ac_var}
1386  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394  # Omit some internal or obsolete options to make the list less imposing.
1395  # This message is too long to be a string in the A/UX 3.1 sh.
1396  cat <<_ACEOF
1397\`configure' configures FreeType 2.12.1 to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407  -h, --help              display this help and exit
1408      --help=short        display options specific to this package
1409      --help=recursive    display the short help of all the included packages
1410  -V, --version           display version information and exit
1411  -q, --quiet, --silent   do not print \`checking ...' messages
1412      --cache-file=FILE   cache test results in FILE [disabled]
1413  -C, --config-cache      alias for \`--cache-file=config.cache'
1414  -n, --no-create         do not create output files
1415      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417Installation directories:
1418  --prefix=PREFIX         install architecture-independent files in PREFIX
1419                          [$ac_default_prefix]
1420  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421                          [PREFIX]
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431  --bindir=DIR            user executables [EPREFIX/bin]
1432  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1433  --libexecdir=DIR        program executables [EPREFIX/libexec]
1434  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1435  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1436  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1437  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1438  --libdir=DIR            object code libraries [EPREFIX/lib]
1439  --includedir=DIR        C header files [PREFIX/include]
1440  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1441  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1442  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1443  --infodir=DIR           info documentation [DATAROOTDIR/info]
1444  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1445  --mandir=DIR            man documentation [DATAROOTDIR/man]
1446  --docdir=DIR            documentation root [DATAROOTDIR/doc/freetype]
1447  --htmldir=DIR           html documentation [DOCDIR]
1448  --dvidir=DIR            dvi documentation [DOCDIR]
1449  --pdfdir=DIR            pdf documentation [DOCDIR]
1450  --psdir=DIR             ps documentation [DOCDIR]
1451_ACEOF
1452
1453  cat <<\_ACEOF
1454
1455System types:
1456  --build=BUILD     configure for building on BUILD [guessed]
1457  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1458  --target=TARGET   configure for building compilers for TARGET [HOST]
1459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
1463  case $ac_init_help in
1464     short | recursive ) echo "Configuration of FreeType 2.12.1:";;
1465   esac
1466  cat <<\_ACEOF
1467
1468Optional Features:
1469  --disable-option-checking  ignore unrecognized --enable/--with options
1470  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1471  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1472  --enable-shared[=PKGS]  build shared libraries [default=yes]
1473  --enable-static[=PKGS]  build static libraries [default=yes]
1474  --enable-fast-install[=PKGS]
1475                          optimize for fast installation [default=yes]
1476  --disable-libtool-lock  avoid locking (might break parallel builds)
1477  --enable-freetype-config
1478                          install freetype-config
1479  --disable-largefile     omit support for large files
1480  --disable-mmap          do not check mmap() and do not use
1481
1482Optional Packages:
1483  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1484  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1485  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1486                          both]
1487  --with-aix-soname=aix|svr4|both
1488                          shared library versioning (aka "SONAME") variant to
1489                          provide on AIX, [default=aix].
1490  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1491  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1492                          compiler's sysroot if not specified).
1493  --with-zlib=[yes|no|auto]
1494                          use system zlib instead of internal library
1495                          [default=auto]
1496  --with-bzip2=[yes|no|auto]
1497                          support bzip2 compressed fonts [default=auto]
1498  --with-png=[yes|no|auto]
1499                          support png compressed OpenType embedded bitmaps
1500                          [default=auto]
1501  --with-harfbuzz=[yes|no|auto]
1502                          improve auto-hinting of OpenType fonts
1503                          [default=auto]
1504  --with-brotli=[yes|no|auto]
1505                          support decompression of WOFF2 streams
1506                          [default=auto]
1507  --with-librsvg=[yes|no|auto]
1508                          support OpenType SVG fonts in FreeType demo programs
1509                          [default=auto]
1510  --with-old-mac-fonts    allow Mac resource-based fonts to be used
1511  --with-fsspec           use obsolete FSSpec API of MacOS, if available
1512                          (default=yes)
1513  --with-fsref            use Carbon FSRef API of MacOS, if available
1514                          (default=yes)
1515  --with-quickdraw-toolbox
1516                          use MacOS QuickDraw in ToolBox, if available
1517                          (default=yes)
1518  --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1519                          (default=yes)
1520  --with-ats              use AppleTypeService, if available (default=yes)
1521
1522Some influential environment variables:
1523  CC          C compiler command
1524  CFLAGS      C compiler flags
1525  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1526              nonstandard directory <lib dir>
1527  LIBS        libraries to pass to the linker, e.g. -l<library>
1528  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1529              you have headers in a nonstandard directory <include dir>
1530  CPP         C preprocessor
1531  PKG_CONFIG  path to pkg-config utility
1532  PKG_CONFIG_PATH
1533              directories to add to pkg-config's search path
1534  PKG_CONFIG_LIBDIR
1535              path overriding pkg-config's built-in search path
1536  LT_SYS_LIBRARY_PATH
1537              User-defined run-time library search path.
1538  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1539  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1540  BZIP2_CFLAGS
1541              C compiler flags for BZIP2, overriding pkg-config
1542  BZIP2_LIBS  linker flags for BZIP2, overriding pkg-config
1543  LIBPNG_CFLAGS
1544              C compiler flags for LIBPNG, overriding pkg-config
1545  LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1546  HARFBUZZ_CFLAGS
1547              C compiler flags for HARFBUZZ, overriding pkg-config
1548  HARFBUZZ_LIBS
1549              linker flags for HARFBUZZ, overriding pkg-config
1550  BROTLI_CFLAGS
1551              C compiler flags for BROTLI, overriding pkg-config
1552  BROTLI_LIBS linker flags for BROTLI, overriding pkg-config
1553  LIBRSVG_CFLAGS
1554              C compiler flags for LIBRSVG, overriding pkg-config
1555  LIBRSVG_LIBS
1556              linker flags for LIBRSVG, overriding pkg-config
1557
1558Use these variables to override the choices made by `configure' or to help
1559it to find libraries and programs with nonstandard names/locations.
1560
1561Report bugs to <freetype@nongnu.org>.
1562_ACEOF
1563ac_status=$?
1564fi
1565
1566if test "$ac_init_help" = "recursive"; then
1567  # If there are subdirs, report their specific --help.
1568  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569    test -d "$ac_dir" ||
1570      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571      continue
1572    ac_builddir=.
1573
1574case "$ac_dir" in
1575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576*)
1577  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1578  # A ".." for each directory in $ac_dir_suffix.
1579  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580  case $ac_top_builddir_sub in
1581  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583  esac ;;
1584esac
1585ac_abs_top_builddir=$ac_pwd
1586ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587# for backward compatibility:
1588ac_top_builddir=$ac_top_build_prefix
1589
1590case $srcdir in
1591  .)  # We are building in place.
1592    ac_srcdir=.
1593    ac_top_srcdir=$ac_top_builddir_sub
1594    ac_abs_top_srcdir=$ac_pwd ;;
1595  [\\/]* | ?:[\\/]* )  # Absolute name.
1596    ac_srcdir=$srcdir$ac_dir_suffix;
1597    ac_top_srcdir=$srcdir
1598    ac_abs_top_srcdir=$srcdir ;;
1599  *) # Relative name.
1600    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601    ac_top_srcdir=$ac_top_build_prefix$srcdir
1602    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603esac
1604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606    cd "$ac_dir" || { ac_status=$?; continue; }
1607    # Check for configure.gnu first; this name is used for a wrapper for
1608    # Metaconfig's "Configure" on case-insensitive file systems.
1609    if test -f "$ac_srcdir/configure.gnu"; then
1610      echo &&
1611      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612    elif test -f "$ac_srcdir/configure"; then
1613      echo &&
1614      $SHELL "$ac_srcdir/configure" --help=recursive
1615    else
1616      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617    fi || ac_status=$?
1618    cd "$ac_pwd" || { ac_status=$?; break; }
1619  done
1620fi
1621
1622test -n "$ac_init_help" && exit $ac_status
1623if $ac_init_version; then
1624  cat <<\_ACEOF
1625FreeType configure 2.12.1
1626generated by GNU Autoconf 2.71
1627
1628Copyright (C) 2021 Free Software Foundation, Inc.
1629This configure script is free software; the Free Software Foundation
1630gives unlimited permission to copy, distribute and modify it.
1631_ACEOF
1632  exit
1633fi
1634
1635## ------------------------ ##
1636## Autoconf initialization. ##
1637## ------------------------ ##
1638
1639# ac_fn_c_try_compile LINENO
1640# --------------------------
1641# Try to compile conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_compile ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  rm -f conftest.$ac_objext conftest.beam
1646  if { { ac_try="$ac_compile"
1647case "(($ac_try" in
1648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649  *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652printf "%s\n" "$ac_try_echo"; } >&5
1653  (eval "$ac_compile") 2>conftest.err
1654  ac_status=$?
1655  if test -s conftest.err; then
1656    grep -v '^ *+' conftest.err >conftest.er1
1657    cat conftest.er1 >&5
1658    mv -f conftest.er1 conftest.err
1659  fi
1660  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; } && {
1662	 test -z "$ac_c_werror_flag" ||
1663	 test ! -s conftest.err
1664       } && test -s conftest.$ac_objext
1665then :
1666  ac_retval=0
1667else $as_nop
1668  printf "%s\n" "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671	ac_retval=1
1672fi
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674  as_fn_set_status $ac_retval
1675
1676} # ac_fn_c_try_compile
1677
1678# ac_fn_c_try_cpp LINENO
1679# ----------------------
1680# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_cpp ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  if { { ac_try="$ac_cpp conftest.$ac_ext"
1685case "(($ac_try" in
1686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687  *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690printf "%s\n" "$ac_try_echo"; } >&5
1691  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692  ac_status=$?
1693  if test -s conftest.err; then
1694    grep -v '^ *+' conftest.err >conftest.er1
1695    cat conftest.er1 >&5
1696    mv -f conftest.er1 conftest.err
1697  fi
1698  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; } > conftest.i && {
1700	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701	 test ! -s conftest.err
1702       }
1703then :
1704  ac_retval=0
1705else $as_nop
1706  printf "%s\n" "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709    ac_retval=1
1710fi
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_cpp
1715
1716# ac_fn_c_try_link LINENO
1717# -----------------------
1718# Try to link conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_link ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1723  if { { ac_try="$ac_link"
1724case "(($ac_try" in
1725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726  *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729printf "%s\n" "$ac_try_echo"; } >&5
1730  (eval "$ac_link") 2>conftest.err
1731  ac_status=$?
1732  if test -s conftest.err; then
1733    grep -v '^ *+' conftest.err >conftest.er1
1734    cat conftest.er1 >&5
1735    mv -f conftest.er1 conftest.err
1736  fi
1737  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } && {
1739	 test -z "$ac_c_werror_flag" ||
1740	 test ! -s conftest.err
1741       } && test -s conftest$ac_exeext && {
1742	 test "$cross_compiling" = yes ||
1743	 test -x conftest$ac_exeext
1744       }
1745then :
1746  ac_retval=0
1747else $as_nop
1748  printf "%s\n" "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751	ac_retval=1
1752fi
1753  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1754  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1755  # interfere with the next link command; also delete a directory that is
1756  # left behind by Apple's compiler.  We do this before executing the actions.
1757  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759  as_fn_set_status $ac_retval
1760
1761} # ac_fn_c_try_link
1762
1763# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764# -------------------------------------------------------
1765# Tests whether HEADER exists and can be compiled using the include files in
1766# INCLUDES, setting the cache variable VAR accordingly.
1767ac_fn_c_check_header_compile ()
1768{
1769  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771printf %s "checking for $2... " >&6; }
1772if eval test \${$3+y}
1773then :
1774  printf %s "(cached) " >&6
1775else $as_nop
1776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h.  */
1778$4
1779#include <$2>
1780_ACEOF
1781if ac_fn_c_try_compile "$LINENO"
1782then :
1783  eval "$3=yes"
1784else $as_nop
1785  eval "$3=no"
1786fi
1787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1788fi
1789eval ac_res=\$$3
1790	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791printf "%s\n" "$ac_res" >&6; }
1792  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1794} # ac_fn_c_check_header_compile
1795
1796# ac_fn_c_check_func LINENO FUNC VAR
1797# ----------------------------------
1798# Tests whether FUNC exists, setting the cache variable VAR accordingly
1799ac_fn_c_check_func ()
1800{
1801  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803printf %s "checking for $2... " >&6; }
1804if eval test \${$3+y}
1805then :
1806  printf %s "(cached) " >&6
1807else $as_nop
1808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h.  */
1810/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1811   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1812#define $2 innocuous_$2
1813
1814/* System header to define __stub macros and hopefully few prototypes,
1815   which can conflict with char $2 (); below.  */
1816
1817#include <limits.h>
1818#undef $2
1819
1820/* Override any GCC internal prototype to avoid an error.
1821   Use char because int might match the return type of a GCC
1822   builtin and then its argument prototype would still apply.  */
1823#ifdef __cplusplus
1824extern "C"
1825#endif
1826char $2 ();
1827/* The GNU C library defines this for functions which it implements
1828    to always fail with ENOSYS.  Some functions are actually named
1829    something starting with __ and the normal name is an alias.  */
1830#if defined __stub_$2 || defined __stub___$2
1831choke me
1832#endif
1833
1834int
1835main (void)
1836{
1837return $2 ();
1838  ;
1839  return 0;
1840}
1841_ACEOF
1842if ac_fn_c_try_link "$LINENO"
1843then :
1844  eval "$3=yes"
1845else $as_nop
1846  eval "$3=no"
1847fi
1848rm -f core conftest.err conftest.$ac_objext conftest.beam \
1849    conftest$ac_exeext conftest.$ac_ext
1850fi
1851eval ac_res=\$$3
1852	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853printf "%s\n" "$ac_res" >&6; }
1854  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855
1856} # ac_fn_c_check_func
1857
1858# ac_fn_c_try_run LINENO
1859# ----------------------
1860# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1861# executables *can* be run.
1862ac_fn_c_try_run ()
1863{
1864  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865  if { { ac_try="$ac_link"
1866case "(($ac_try" in
1867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868  *) ac_try_echo=$ac_try;;
1869esac
1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871printf "%s\n" "$ac_try_echo"; } >&5
1872  (eval "$ac_link") 2>&5
1873  ac_status=$?
1874  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1876  { { case "(($ac_try" in
1877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878  *) ac_try_echo=$ac_try;;
1879esac
1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881printf "%s\n" "$ac_try_echo"; } >&5
1882  (eval "$ac_try") 2>&5
1883  ac_status=$?
1884  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885  test $ac_status = 0; }; }
1886then :
1887  ac_retval=0
1888else $as_nop
1889  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1890       printf "%s\n" "$as_me: failed program was:" >&5
1891sed 's/^/| /' conftest.$ac_ext >&5
1892
1893       ac_retval=$ac_status
1894fi
1895  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897  as_fn_set_status $ac_retval
1898
1899} # ac_fn_c_try_run
1900
1901# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1902# ------------------------------------------------------------------
1903# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1904# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1905ac_fn_check_decl ()
1906{
1907  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908  as_decl_name=`echo $2|sed 's/ *(.*//'`
1909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1910printf %s "checking whether $as_decl_name is declared... " >&6; }
1911if eval test \${$3+y}
1912then :
1913  printf %s "(cached) " >&6
1914else $as_nop
1915  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1916  eval ac_save_FLAGS=\$$6
1917  as_fn_append $6 " $5"
1918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920$4
1921int
1922main (void)
1923{
1924#ifndef $as_decl_name
1925#ifdef __cplusplus
1926  (void) $as_decl_use;
1927#else
1928  (void) $as_decl_name;
1929#endif
1930#endif
1931
1932  ;
1933  return 0;
1934}
1935_ACEOF
1936if ac_fn_c_try_compile "$LINENO"
1937then :
1938  eval "$3=yes"
1939else $as_nop
1940  eval "$3=no"
1941fi
1942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1943  eval $6=\$ac_save_FLAGS
1944
1945fi
1946eval ac_res=\$$3
1947	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948printf "%s\n" "$ac_res" >&6; }
1949  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950
1951} # ac_fn_check_decl
1952ac_configure_args_raw=
1953for ac_arg
1954do
1955  case $ac_arg in
1956  *\'*)
1957    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958  esac
1959  as_fn_append ac_configure_args_raw " '$ac_arg'"
1960done
1961
1962case $ac_configure_args_raw in
1963  *$as_nl*)
1964    ac_safe_unquote= ;;
1965  *)
1966    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1967    ac_unsafe_a="$ac_unsafe_z#~"
1968    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1969    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1970esac
1971
1972cat >config.log <<_ACEOF
1973This file contains any messages produced by compilers while
1974running configure, to aid debugging if configure makes a mistake.
1975
1976It was created by FreeType $as_me 2.12.1, which was
1977generated by GNU Autoconf 2.71.  Invocation command line was
1978
1979  $ $0$ac_configure_args_raw
1980
1981_ACEOF
1982exec 5>>config.log
1983{
1984cat <<_ASUNAME
1985## --------- ##
1986## Platform. ##
1987## --------- ##
1988
1989hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994
1995/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1997
1998/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1999/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2000/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2002/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2003/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2004/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2005
2006_ASUNAME
2007
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011  IFS=$as_save_IFS
2012  case $as_dir in #(((
2013    '') as_dir=./ ;;
2014    */) ;;
2015    *) as_dir=$as_dir/ ;;
2016  esac
2017    printf "%s\n" "PATH: $as_dir"
2018  done
2019IFS=$as_save_IFS
2020
2021} >&5
2022
2023cat >&5 <<_ACEOF
2024
2025
2026## ----------- ##
2027## Core tests. ##
2028## ----------- ##
2029
2030_ACEOF
2031
2032
2033# Keep a trace of the command line.
2034# Strip out --no-create and --no-recursion so they do not pile up.
2035# Strip out --silent because we don't want to record it for future runs.
2036# Also quote any args containing shell meta-characters.
2037# Make two passes to allow for proper duplicate-argument suppression.
2038ac_configure_args=
2039ac_configure_args0=
2040ac_configure_args1=
2041ac_must_keep_next=false
2042for ac_pass in 1 2
2043do
2044  for ac_arg
2045  do
2046    case $ac_arg in
2047    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2048    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2049    | -silent | --silent | --silen | --sile | --sil)
2050      continue ;;
2051    *\'*)
2052      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2053    esac
2054    case $ac_pass in
2055    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2056    2)
2057      as_fn_append ac_configure_args1 " '$ac_arg'"
2058      if test $ac_must_keep_next = true; then
2059	ac_must_keep_next=false # Got value, back to normal.
2060      else
2061	case $ac_arg in
2062	  *=* | --config-cache | -C | -disable-* | --disable-* \
2063	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2064	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2065	  | -with-* | --with-* | -without-* | --without-* | --x)
2066	    case "$ac_configure_args0 " in
2067	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2068	    esac
2069	    ;;
2070	  -* ) ac_must_keep_next=true ;;
2071	esac
2072      fi
2073      as_fn_append ac_configure_args " '$ac_arg'"
2074      ;;
2075    esac
2076  done
2077done
2078{ ac_configure_args0=; unset ac_configure_args0;}
2079{ ac_configure_args1=; unset ac_configure_args1;}
2080
2081# When interrupted or exit'd, cleanup temporary files, and complete
2082# config.log.  We remove comments because anyway the quotes in there
2083# would cause problems or look ugly.
2084# WARNING: Use '\'' to represent an apostrophe within the trap.
2085# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2086trap 'exit_status=$?
2087  # Sanitize IFS.
2088  IFS=" ""	$as_nl"
2089  # Save into config.log some information that might help in debugging.
2090  {
2091    echo
2092
2093    printf "%s\n" "## ---------------- ##
2094## Cache variables. ##
2095## ---------------- ##"
2096    echo
2097    # The following way of writing the cache mishandles newlines in values,
2098(
2099  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2100    eval ac_val=\$$ac_var
2101    case $ac_val in #(
2102    *${as_nl}*)
2103      case $ac_var in #(
2104      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2105printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2106      esac
2107      case $ac_var in #(
2108      _ | IFS | as_nl) ;; #(
2109      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2110      *) { eval $ac_var=; unset $ac_var;} ;;
2111      esac ;;
2112    esac
2113  done
2114  (set) 2>&1 |
2115    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2116    *${as_nl}ac_space=\ *)
2117      sed -n \
2118	"s/'\''/'\''\\\\'\'''\''/g;
2119	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2120      ;; #(
2121    *)
2122      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2123      ;;
2124    esac |
2125    sort
2126)
2127    echo
2128
2129    printf "%s\n" "## ----------------- ##
2130## Output variables. ##
2131## ----------------- ##"
2132    echo
2133    for ac_var in $ac_subst_vars
2134    do
2135      eval ac_val=\$$ac_var
2136      case $ac_val in
2137      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2138      esac
2139      printf "%s\n" "$ac_var='\''$ac_val'\''"
2140    done | sort
2141    echo
2142
2143    if test -n "$ac_subst_files"; then
2144      printf "%s\n" "## ------------------- ##
2145## File substitutions. ##
2146## ------------------- ##"
2147      echo
2148      for ac_var in $ac_subst_files
2149      do
2150	eval ac_val=\$$ac_var
2151	case $ac_val in
2152	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2153	esac
2154	printf "%s\n" "$ac_var='\''$ac_val'\''"
2155      done | sort
2156      echo
2157    fi
2158
2159    if test -s confdefs.h; then
2160      printf "%s\n" "## ----------- ##
2161## confdefs.h. ##
2162## ----------- ##"
2163      echo
2164      cat confdefs.h
2165      echo
2166    fi
2167    test "$ac_signal" != 0 &&
2168      printf "%s\n" "$as_me: caught signal $ac_signal"
2169    printf "%s\n" "$as_me: exit $exit_status"
2170  } >&5
2171  rm -f core *.core core.conftest.* &&
2172    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2173    exit $exit_status
2174' 0
2175for ac_signal in 1 2 13 15; do
2176  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2177done
2178ac_signal=0
2179
2180# confdefs.h avoids OS command line length limits that DEFS can exceed.
2181rm -f -r conftest* confdefs.h
2182
2183printf "%s\n" "/* confdefs.h */" > confdefs.h
2184
2185# Predefined preprocessor variables.
2186
2187printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2188
2189printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2190
2191printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2192
2193printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2194
2195printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2196
2197printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2198
2199
2200# Let the site file select an alternate cache file if it wants to.
2201# Prefer an explicitly selected file to automatically selected ones.
2202if test -n "$CONFIG_SITE"; then
2203  ac_site_files="$CONFIG_SITE"
2204elif test "x$prefix" != xNONE; then
2205  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2206else
2207  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2208fi
2209
2210for ac_site_file in $ac_site_files
2211do
2212  case $ac_site_file in #(
2213  */*) :
2214     ;; #(
2215  *) :
2216    ac_site_file=./$ac_site_file ;;
2217esac
2218  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2219    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2220printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2221    sed 's/^/| /' "$ac_site_file" >&5
2222    . "$ac_site_file" \
2223      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2224printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2225as_fn_error $? "failed to load site script $ac_site_file
2226See \`config.log' for more details" "$LINENO" 5; }
2227  fi
2228done
2229
2230if test -r "$cache_file"; then
2231  # Some versions of bash will fail to source /dev/null (special files
2232  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2233  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2234    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2235printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2236    case $cache_file in
2237      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2238      *)                      . "./$cache_file";;
2239    esac
2240  fi
2241else
2242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2243printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2244  >$cache_file
2245fi
2246
2247# Test code for whether the C compiler supports C89 (global declarations)
2248ac_c_conftest_c89_globals='
2249/* Does the compiler advertise C89 conformance?
2250   Do not test the value of __STDC__, because some compilers set it to 0
2251   while being otherwise adequately conformant. */
2252#if !defined __STDC__
2253# error "Compiler does not advertise C89 conformance"
2254#endif
2255
2256#include <stddef.h>
2257#include <stdarg.h>
2258struct stat;
2259/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2260struct buf { int x; };
2261struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2262static char *e (p, i)
2263     char **p;
2264     int i;
2265{
2266  return p[i];
2267}
2268static char *f (char * (*g) (char **, int), char **p, ...)
2269{
2270  char *s;
2271  va_list v;
2272  va_start (v,p);
2273  s = g (p, va_arg (v,int));
2274  va_end (v);
2275  return s;
2276}
2277
2278/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2279   function prototypes and stuff, but not \xHH hex character constants.
2280   These do not provoke an error unfortunately, instead are silently treated
2281   as an "x".  The following induces an error, until -std is added to get
2282   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2283   array size at least.  It is necessary to write \x00 == 0 to get something
2284   that is true only with -std.  */
2285int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2286
2287/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2288   inside strings and character constants.  */
2289#define FOO(x) '\''x'\''
2290int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2291
2292int test (int i, double x);
2293struct s1 {int (*f) (int a);};
2294struct s2 {int (*f) (double a);};
2295int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2296               int, int);'
2297
2298# Test code for whether the C compiler supports C89 (body of main).
2299ac_c_conftest_c89_main='
2300ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2301'
2302
2303# Test code for whether the C compiler supports C99 (global declarations)
2304ac_c_conftest_c99_globals='
2305// Does the compiler advertise C99 conformance?
2306#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2307# error "Compiler does not advertise C99 conformance"
2308#endif
2309
2310#include <stdbool.h>
2311extern int puts (const char *);
2312extern int printf (const char *, ...);
2313extern int dprintf (int, const char *, ...);
2314extern void *malloc (size_t);
2315
2316// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2317// dprintf is used instead of fprintf to avoid needing to declare
2318// FILE and stderr.
2319#define debug(...) dprintf (2, __VA_ARGS__)
2320#define showlist(...) puts (#__VA_ARGS__)
2321#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2322static void
2323test_varargs_macros (void)
2324{
2325  int x = 1234;
2326  int y = 5678;
2327  debug ("Flag");
2328  debug ("X = %d\n", x);
2329  showlist (The first, second, and third items.);
2330  report (x>y, "x is %d but y is %d", x, y);
2331}
2332
2333// Check long long types.
2334#define BIG64 18446744073709551615ull
2335#define BIG32 4294967295ul
2336#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2337#if !BIG_OK
2338  #error "your preprocessor is broken"
2339#endif
2340#if BIG_OK
2341#else
2342  #error "your preprocessor is broken"
2343#endif
2344static long long int bignum = -9223372036854775807LL;
2345static unsigned long long int ubignum = BIG64;
2346
2347struct incomplete_array
2348{
2349  int datasize;
2350  double data[];
2351};
2352
2353struct named_init {
2354  int number;
2355  const wchar_t *name;
2356  double average;
2357};
2358
2359typedef const char *ccp;
2360
2361static inline int
2362test_restrict (ccp restrict text)
2363{
2364  // See if C++-style comments work.
2365  // Iterate through items via the restricted pointer.
2366  // Also check for declarations in for loops.
2367  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2368    continue;
2369  return 0;
2370}
2371
2372// Check varargs and va_copy.
2373static bool
2374test_varargs (const char *format, ...)
2375{
2376  va_list args;
2377  va_start (args, format);
2378  va_list args_copy;
2379  va_copy (args_copy, args);
2380
2381  const char *str = "";
2382  int number = 0;
2383  float fnumber = 0;
2384
2385  while (*format)
2386    {
2387      switch (*format++)
2388	{
2389	case '\''s'\'': // string
2390	  str = va_arg (args_copy, const char *);
2391	  break;
2392	case '\''d'\'': // int
2393	  number = va_arg (args_copy, int);
2394	  break;
2395	case '\''f'\'': // float
2396	  fnumber = va_arg (args_copy, double);
2397	  break;
2398	default:
2399	  break;
2400	}
2401    }
2402  va_end (args_copy);
2403  va_end (args);
2404
2405  return *str && number && fnumber;
2406}
2407'
2408
2409# Test code for whether the C compiler supports C99 (body of main).
2410ac_c_conftest_c99_main='
2411  // Check bool.
2412  _Bool success = false;
2413  success |= (argc != 0);
2414
2415  // Check restrict.
2416  if (test_restrict ("String literal") == 0)
2417    success = true;
2418  char *restrict newvar = "Another string";
2419
2420  // Check varargs.
2421  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2422  test_varargs_macros ();
2423
2424  // Check flexible array members.
2425  struct incomplete_array *ia =
2426    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2427  ia->datasize = 10;
2428  for (int i = 0; i < ia->datasize; ++i)
2429    ia->data[i] = i * 1.234;
2430
2431  // Check named initializers.
2432  struct named_init ni = {
2433    .number = 34,
2434    .name = L"Test wide string",
2435    .average = 543.34343,
2436  };
2437
2438  ni.number = 58;
2439
2440  int dynamic_array[ni.number];
2441  dynamic_array[0] = argv[0][0];
2442  dynamic_array[ni.number - 1] = 543;
2443
2444  // work around unused variable warnings
2445  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2446	 || dynamic_array[ni.number - 1] != 543);
2447'
2448
2449# Test code for whether the C compiler supports C11 (global declarations)
2450ac_c_conftest_c11_globals='
2451// Does the compiler advertise C11 conformance?
2452#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2453# error "Compiler does not advertise C11 conformance"
2454#endif
2455
2456// Check _Alignas.
2457char _Alignas (double) aligned_as_double;
2458char _Alignas (0) no_special_alignment;
2459extern char aligned_as_int;
2460char _Alignas (0) _Alignas (int) aligned_as_int;
2461
2462// Check _Alignof.
2463enum
2464{
2465  int_alignment = _Alignof (int),
2466  int_array_alignment = _Alignof (int[100]),
2467  char_alignment = _Alignof (char)
2468};
2469_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2470
2471// Check _Noreturn.
2472int _Noreturn does_not_return (void) { for (;;) continue; }
2473
2474// Check _Static_assert.
2475struct test_static_assert
2476{
2477  int x;
2478  _Static_assert (sizeof (int) <= sizeof (long int),
2479                  "_Static_assert does not work in struct");
2480  long int y;
2481};
2482
2483// Check UTF-8 literals.
2484#define u8 syntax error!
2485char const utf8_literal[] = u8"happens to be ASCII" "another string";
2486
2487// Check duplicate typedefs.
2488typedef long *long_ptr;
2489typedef long int *long_ptr;
2490typedef long_ptr long_ptr;
2491
2492// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2493struct anonymous
2494{
2495  union {
2496    struct { int i; int j; };
2497    struct { int k; long int l; } w;
2498  };
2499  int m;
2500} v1;
2501'
2502
2503# Test code for whether the C compiler supports C11 (body of main).
2504ac_c_conftest_c11_main='
2505  _Static_assert ((offsetof (struct anonymous, i)
2506		   == offsetof (struct anonymous, w.k)),
2507		  "Anonymous union alignment botch");
2508  v1.i = 2;
2509  v1.w.k = 5;
2510  ok |= v1.i != 5;
2511'
2512
2513# Test code for whether the C compiler supports C11 (complete).
2514ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2515${ac_c_conftest_c99_globals}
2516${ac_c_conftest_c11_globals}
2517
2518int
2519main (int argc, char **argv)
2520{
2521  int ok = 0;
2522  ${ac_c_conftest_c89_main}
2523  ${ac_c_conftest_c99_main}
2524  ${ac_c_conftest_c11_main}
2525  return ok;
2526}
2527"
2528
2529# Test code for whether the C compiler supports C99 (complete).
2530ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2531${ac_c_conftest_c99_globals}
2532
2533int
2534main (int argc, char **argv)
2535{
2536  int ok = 0;
2537  ${ac_c_conftest_c89_main}
2538  ${ac_c_conftest_c99_main}
2539  return ok;
2540}
2541"
2542
2543# Test code for whether the C compiler supports C89 (complete).
2544ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2545
2546int
2547main (int argc, char **argv)
2548{
2549  int ok = 0;
2550  ${ac_c_conftest_c89_main}
2551  return ok;
2552}
2553"
2554
2555as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2556as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2557as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2558as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2559as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2560as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2561as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2562as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2563as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2564as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2565as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2566
2567# Auxiliary files required by this configure script.
2568ac_aux_files="install-sh ltmain.sh config.guess config.sub"
2569
2570# Locations in which to look for auxiliary files.
2571ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2572
2573# Search for a directory containing all of the required auxiliary files,
2574# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2575# If we don't find one directory that contains all the files we need,
2576# we report the set of missing files from the *first* directory in
2577# $ac_aux_dir_candidates and give up.
2578ac_missing_aux_files=""
2579ac_first_candidate=:
2580printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582as_found=false
2583for as_dir in $ac_aux_dir_candidates
2584do
2585  IFS=$as_save_IFS
2586  case $as_dir in #(((
2587    '') as_dir=./ ;;
2588    */) ;;
2589    *) as_dir=$as_dir/ ;;
2590  esac
2591  as_found=:
2592
2593  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2594  ac_aux_dir_found=yes
2595  ac_install_sh=
2596  for ac_aux in $ac_aux_files
2597  do
2598    # As a special case, if "install-sh" is required, that requirement
2599    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2600    # and $ac_install_sh is set appropriately for whichever one is found.
2601    if test x"$ac_aux" = x"install-sh"
2602    then
2603      if test -f "${as_dir}install-sh"; then
2604        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2605        ac_install_sh="${as_dir}install-sh -c"
2606      elif test -f "${as_dir}install.sh"; then
2607        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2608        ac_install_sh="${as_dir}install.sh -c"
2609      elif test -f "${as_dir}shtool"; then
2610        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2611        ac_install_sh="${as_dir}shtool install -c"
2612      else
2613        ac_aux_dir_found=no
2614        if $ac_first_candidate; then
2615          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2616        else
2617          break
2618        fi
2619      fi
2620    else
2621      if test -f "${as_dir}${ac_aux}"; then
2622        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2623      else
2624        ac_aux_dir_found=no
2625        if $ac_first_candidate; then
2626          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2627        else
2628          break
2629        fi
2630      fi
2631    fi
2632  done
2633  if test "$ac_aux_dir_found" = yes; then
2634    ac_aux_dir="$as_dir"
2635    break
2636  fi
2637  ac_first_candidate=false
2638
2639  as_found=false
2640done
2641IFS=$as_save_IFS
2642if $as_found
2643then :
2644
2645else $as_nop
2646  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2647fi
2648
2649
2650# These three variables are undocumented and unsupported,
2651# and are intended to be withdrawn in a future Autoconf release.
2652# They can cause serious problems if a builder's source tree is in a directory
2653# whose full name contains unusual characters.
2654if test -f "${ac_aux_dir}config.guess"; then
2655  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2656fi
2657if test -f "${ac_aux_dir}config.sub"; then
2658  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2659fi
2660if test -f "$ac_aux_dir/configure"; then
2661  ac_configure="$SHELL ${ac_aux_dir}configure"
2662fi
2663
2664# Check that the precious variables saved in the cache have kept the same
2665# value.
2666ac_cache_corrupted=false
2667for ac_var in $ac_precious_vars; do
2668  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2669  eval ac_new_set=\$ac_env_${ac_var}_set
2670  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2671  eval ac_new_val=\$ac_env_${ac_var}_value
2672  case $ac_old_set,$ac_new_set in
2673    set,)
2674      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2675printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2676      ac_cache_corrupted=: ;;
2677    ,set)
2678      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2679printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2680      ac_cache_corrupted=: ;;
2681    ,);;
2682    *)
2683      if test "x$ac_old_val" != "x$ac_new_val"; then
2684	# differences in whitespace do not lead to failure.
2685	ac_old_val_w=`echo x $ac_old_val`
2686	ac_new_val_w=`echo x $ac_new_val`
2687	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2688	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2689printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2690	  ac_cache_corrupted=:
2691	else
2692	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2693printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2694	  eval $ac_var=\$ac_old_val
2695	fi
2696	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2697printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2698	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2699printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2700      fi;;
2701  esac
2702  # Pass precious variables to config.status.
2703  if test "$ac_new_set" = set; then
2704    case $ac_new_val in
2705    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2706    *) ac_arg=$ac_var=$ac_new_val ;;
2707    esac
2708    case " $ac_configure_args " in
2709      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2710      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2711    esac
2712  fi
2713done
2714if $ac_cache_corrupted; then
2715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2718printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2719  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2720	    and start over" "$LINENO" 5
2721fi
2722## -------------------- ##
2723## Main body of script. ##
2724## -------------------- ##
2725
2726ac_ext=c
2727ac_cpp='$CPP $CPPFLAGS'
2728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731
2732
2733
2734
2735
2736# Don't forget to update `docs/VERSIONS.TXT'!
2737
2738version_info='24:3:18'
2739
2740ft_version=`echo $version_info | tr : .`
2741
2742
2743
2744# checks for system type
2745
2746
2747
2748
2749  # Make sure we can run config.sub.
2750$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2751  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2752
2753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2754printf %s "checking build system type... " >&6; }
2755if test ${ac_cv_build+y}
2756then :
2757  printf %s "(cached) " >&6
2758else $as_nop
2759  ac_build_alias=$build_alias
2760test "x$ac_build_alias" = x &&
2761  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2762test "x$ac_build_alias" = x &&
2763  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2764ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2765  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2766
2767fi
2768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2769printf "%s\n" "$ac_cv_build" >&6; }
2770case $ac_cv_build in
2771*-*-*) ;;
2772*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2773esac
2774build=$ac_cv_build
2775ac_save_IFS=$IFS; IFS='-'
2776set x $ac_cv_build
2777shift
2778build_cpu=$1
2779build_vendor=$2
2780shift; shift
2781# Remember, the first character of IFS is used to create $*,
2782# except with old shells:
2783build_os=$*
2784IFS=$ac_save_IFS
2785case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2786
2787
2788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2789printf %s "checking host system type... " >&6; }
2790if test ${ac_cv_host+y}
2791then :
2792  printf %s "(cached) " >&6
2793else $as_nop
2794  if test "x$host_alias" = x; then
2795  ac_cv_host=$ac_cv_build
2796else
2797  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2798    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2799fi
2800
2801fi
2802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2803printf "%s\n" "$ac_cv_host" >&6; }
2804case $ac_cv_host in
2805*-*-*) ;;
2806*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2807esac
2808host=$ac_cv_host
2809ac_save_IFS=$IFS; IFS='-'
2810set x $ac_cv_host
2811shift
2812host_cpu=$1
2813host_vendor=$2
2814shift; shift
2815# Remember, the first character of IFS is used to create $*,
2816# except with old shells:
2817host_os=$*
2818IFS=$ac_save_IFS
2819case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2820
2821
2822
2823
2824# checks for programs
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835ac_ext=c
2836ac_cpp='$CPP $CPPFLAGS'
2837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839ac_compiler_gnu=$ac_cv_c_compiler_gnu
2840if test -n "$ac_tool_prefix"; then
2841  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2842set dummy ${ac_tool_prefix}gcc; ac_word=$2
2843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844printf %s "checking for $ac_word... " >&6; }
2845if test ${ac_cv_prog_CC+y}
2846then :
2847  printf %s "(cached) " >&6
2848else $as_nop
2849  if test -n "$CC"; then
2850  ac_cv_prog_CC="$CC" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855  IFS=$as_save_IFS
2856  case $as_dir in #(((
2857    '') as_dir=./ ;;
2858    */) ;;
2859    *) as_dir=$as_dir/ ;;
2860  esac
2861    for ac_exec_ext in '' $ac_executable_extensions; do
2862  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2863    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2864    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2865    break 2
2866  fi
2867done
2868  done
2869IFS=$as_save_IFS
2870
2871fi
2872fi
2873CC=$ac_cv_prog_CC
2874if test -n "$CC"; then
2875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876printf "%s\n" "$CC" >&6; }
2877else
2878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879printf "%s\n" "no" >&6; }
2880fi
2881
2882
2883fi
2884if test -z "$ac_cv_prog_CC"; then
2885  ac_ct_CC=$CC
2886  # Extract the first word of "gcc", so it can be a program name with args.
2887set dummy gcc; ac_word=$2
2888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889printf %s "checking for $ac_word... " >&6; }
2890if test ${ac_cv_prog_ac_ct_CC+y}
2891then :
2892  printf %s "(cached) " >&6
2893else $as_nop
2894  if test -n "$ac_ct_CC"; then
2895  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896else
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900  IFS=$as_save_IFS
2901  case $as_dir in #(((
2902    '') as_dir=./ ;;
2903    */) ;;
2904    *) as_dir=$as_dir/ ;;
2905  esac
2906    for ac_exec_ext in '' $ac_executable_extensions; do
2907  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2908    ac_cv_prog_ac_ct_CC="gcc"
2909    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2910    break 2
2911  fi
2912done
2913  done
2914IFS=$as_save_IFS
2915
2916fi
2917fi
2918ac_ct_CC=$ac_cv_prog_ac_ct_CC
2919if test -n "$ac_ct_CC"; then
2920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2921printf "%s\n" "$ac_ct_CC" >&6; }
2922else
2923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924printf "%s\n" "no" >&6; }
2925fi
2926
2927  if test "x$ac_ct_CC" = x; then
2928    CC=""
2929  else
2930    case $cross_compiling:$ac_tool_warned in
2931yes:)
2932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934ac_tool_warned=yes ;;
2935esac
2936    CC=$ac_ct_CC
2937  fi
2938else
2939  CC="$ac_cv_prog_CC"
2940fi
2941
2942if test -z "$CC"; then
2943          if test -n "$ac_tool_prefix"; then
2944    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2945set dummy ${ac_tool_prefix}cc; ac_word=$2
2946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947printf %s "checking for $ac_word... " >&6; }
2948if test ${ac_cv_prog_CC+y}
2949then :
2950  printf %s "(cached) " >&6
2951else $as_nop
2952  if test -n "$CC"; then
2953  ac_cv_prog_CC="$CC" # Let the user override the test.
2954else
2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958  IFS=$as_save_IFS
2959  case $as_dir in #(((
2960    '') as_dir=./ ;;
2961    */) ;;
2962    *) as_dir=$as_dir/ ;;
2963  esac
2964    for ac_exec_ext in '' $ac_executable_extensions; do
2965  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2966    ac_cv_prog_CC="${ac_tool_prefix}cc"
2967    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2968    break 2
2969  fi
2970done
2971  done
2972IFS=$as_save_IFS
2973
2974fi
2975fi
2976CC=$ac_cv_prog_CC
2977if test -n "$CC"; then
2978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979printf "%s\n" "$CC" >&6; }
2980else
2981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982printf "%s\n" "no" >&6; }
2983fi
2984
2985
2986  fi
2987fi
2988if test -z "$CC"; then
2989  # Extract the first word of "cc", so it can be a program name with args.
2990set dummy cc; ac_word=$2
2991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992printf %s "checking for $ac_word... " >&6; }
2993if test ${ac_cv_prog_CC+y}
2994then :
2995  printf %s "(cached) " >&6
2996else $as_nop
2997  if test -n "$CC"; then
2998  ac_cv_prog_CC="$CC" # Let the user override the test.
2999else
3000  ac_prog_rejected=no
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004  IFS=$as_save_IFS
3005  case $as_dir in #(((
3006    '') as_dir=./ ;;
3007    */) ;;
3008    *) as_dir=$as_dir/ ;;
3009  esac
3010    for ac_exec_ext in '' $ac_executable_extensions; do
3011  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3012    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3013       ac_prog_rejected=yes
3014       continue
3015     fi
3016    ac_cv_prog_CC="cc"
3017    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3018    break 2
3019  fi
3020done
3021  done
3022IFS=$as_save_IFS
3023
3024if test $ac_prog_rejected = yes; then
3025  # We found a bogon in the path, so make sure we never use it.
3026  set dummy $ac_cv_prog_CC
3027  shift
3028  if test $# != 0; then
3029    # We chose a different compiler from the bogus one.
3030    # However, it has the same basename, so the bogon will be chosen
3031    # first if we set CC to just the basename; use the full file name.
3032    shift
3033    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3034  fi
3035fi
3036fi
3037fi
3038CC=$ac_cv_prog_CC
3039if test -n "$CC"; then
3040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041printf "%s\n" "$CC" >&6; }
3042else
3043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044printf "%s\n" "no" >&6; }
3045fi
3046
3047
3048fi
3049if test -z "$CC"; then
3050  if test -n "$ac_tool_prefix"; then
3051  for ac_prog in cl.exe
3052  do
3053    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3054set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056printf %s "checking for $ac_word... " >&6; }
3057if test ${ac_cv_prog_CC+y}
3058then :
3059  printf %s "(cached) " >&6
3060else $as_nop
3061  if test -n "$CC"; then
3062  ac_cv_prog_CC="$CC" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  case $as_dir in #(((
3069    '') as_dir=./ ;;
3070    */) ;;
3071    *) as_dir=$as_dir/ ;;
3072  esac
3073    for ac_exec_ext in '' $ac_executable_extensions; do
3074  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3075    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3076    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3077    break 2
3078  fi
3079done
3080  done
3081IFS=$as_save_IFS
3082
3083fi
3084fi
3085CC=$ac_cv_prog_CC
3086if test -n "$CC"; then
3087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3088printf "%s\n" "$CC" >&6; }
3089else
3090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091printf "%s\n" "no" >&6; }
3092fi
3093
3094
3095    test -n "$CC" && break
3096  done
3097fi
3098if test -z "$CC"; then
3099  ac_ct_CC=$CC
3100  for ac_prog in cl.exe
3101do
3102  # Extract the first word of "$ac_prog", so it can be a program name with args.
3103set dummy $ac_prog; ac_word=$2
3104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105printf %s "checking for $ac_word... " >&6; }
3106if test ${ac_cv_prog_ac_ct_CC+y}
3107then :
3108  printf %s "(cached) " >&6
3109else $as_nop
3110  if test -n "$ac_ct_CC"; then
3111  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3112else
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116  IFS=$as_save_IFS
3117  case $as_dir in #(((
3118    '') as_dir=./ ;;
3119    */) ;;
3120    *) as_dir=$as_dir/ ;;
3121  esac
3122    for ac_exec_ext in '' $ac_executable_extensions; do
3123  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3124    ac_cv_prog_ac_ct_CC="$ac_prog"
3125    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3126    break 2
3127  fi
3128done
3129  done
3130IFS=$as_save_IFS
3131
3132fi
3133fi
3134ac_ct_CC=$ac_cv_prog_ac_ct_CC
3135if test -n "$ac_ct_CC"; then
3136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3137printf "%s\n" "$ac_ct_CC" >&6; }
3138else
3139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140printf "%s\n" "no" >&6; }
3141fi
3142
3143
3144  test -n "$ac_ct_CC" && break
3145done
3146
3147  if test "x$ac_ct_CC" = x; then
3148    CC=""
3149  else
3150    case $cross_compiling:$ac_tool_warned in
3151yes:)
3152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154ac_tool_warned=yes ;;
3155esac
3156    CC=$ac_ct_CC
3157  fi
3158fi
3159
3160fi
3161if test -z "$CC"; then
3162  if test -n "$ac_tool_prefix"; then
3163  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3164set dummy ${ac_tool_prefix}clang; ac_word=$2
3165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166printf %s "checking for $ac_word... " >&6; }
3167if test ${ac_cv_prog_CC+y}
3168then :
3169  printf %s "(cached) " >&6
3170else $as_nop
3171  if test -n "$CC"; then
3172  ac_cv_prog_CC="$CC" # Let the user override the test.
3173else
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177  IFS=$as_save_IFS
3178  case $as_dir in #(((
3179    '') as_dir=./ ;;
3180    */) ;;
3181    *) as_dir=$as_dir/ ;;
3182  esac
3183    for ac_exec_ext in '' $ac_executable_extensions; do
3184  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3185    ac_cv_prog_CC="${ac_tool_prefix}clang"
3186    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3187    break 2
3188  fi
3189done
3190  done
3191IFS=$as_save_IFS
3192
3193fi
3194fi
3195CC=$ac_cv_prog_CC
3196if test -n "$CC"; then
3197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3198printf "%s\n" "$CC" >&6; }
3199else
3200  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201printf "%s\n" "no" >&6; }
3202fi
3203
3204
3205fi
3206if test -z "$ac_cv_prog_CC"; then
3207  ac_ct_CC=$CC
3208  # Extract the first word of "clang", so it can be a program name with args.
3209set dummy clang; ac_word=$2
3210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211printf %s "checking for $ac_word... " >&6; }
3212if test ${ac_cv_prog_ac_ct_CC+y}
3213then :
3214  printf %s "(cached) " >&6
3215else $as_nop
3216  if test -n "$ac_ct_CC"; then
3217  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3218else
3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220for as_dir in $PATH
3221do
3222  IFS=$as_save_IFS
3223  case $as_dir in #(((
3224    '') as_dir=./ ;;
3225    */) ;;
3226    *) as_dir=$as_dir/ ;;
3227  esac
3228    for ac_exec_ext in '' $ac_executable_extensions; do
3229  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3230    ac_cv_prog_ac_ct_CC="clang"
3231    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3232    break 2
3233  fi
3234done
3235  done
3236IFS=$as_save_IFS
3237
3238fi
3239fi
3240ac_ct_CC=$ac_cv_prog_ac_ct_CC
3241if test -n "$ac_ct_CC"; then
3242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3243printf "%s\n" "$ac_ct_CC" >&6; }
3244else
3245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246printf "%s\n" "no" >&6; }
3247fi
3248
3249  if test "x$ac_ct_CC" = x; then
3250    CC=""
3251  else
3252    case $cross_compiling:$ac_tool_warned in
3253yes:)
3254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3255printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3256ac_tool_warned=yes ;;
3257esac
3258    CC=$ac_ct_CC
3259  fi
3260else
3261  CC="$ac_cv_prog_CC"
3262fi
3263
3264fi
3265
3266
3267test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3269as_fn_error $? "no acceptable C compiler found in \$PATH
3270See \`config.log' for more details" "$LINENO" 5; }
3271
3272# Provide some information about the compiler.
3273printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3274set X $ac_compile
3275ac_compiler=$2
3276for ac_option in --version -v -V -qversion -version; do
3277  { { ac_try="$ac_compiler $ac_option >&5"
3278case "(($ac_try" in
3279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280  *) ac_try_echo=$ac_try;;
3281esac
3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283printf "%s\n" "$ac_try_echo"; } >&5
3284  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3285  ac_status=$?
3286  if test -s conftest.err; then
3287    sed '10a\
3288... rest of stderr output deleted ...
3289         10q' conftest.err >conftest.er1
3290    cat conftest.er1 >&5
3291  fi
3292  rm -f conftest.er1 conftest.err
3293  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294  test $ac_status = 0; }
3295done
3296
3297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298/* end confdefs.h.  */
3299
3300int
3301main (void)
3302{
3303
3304  ;
3305  return 0;
3306}
3307_ACEOF
3308ac_clean_files_save=$ac_clean_files
3309ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3310# Try to create an executable without -o first, disregard a.out.
3311# It will help us diagnose broken compilers, and finding out an intuition
3312# of exeext.
3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3314printf %s "checking whether the C compiler works... " >&6; }
3315ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3316
3317# The possible output files:
3318ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3319
3320ac_rmfiles=
3321for ac_file in $ac_files
3322do
3323  case $ac_file in
3324    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3326  esac
3327done
3328rm -f $ac_rmfiles
3329
3330if { { ac_try="$ac_link_default"
3331case "(($ac_try" in
3332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333  *) ac_try_echo=$ac_try;;
3334esac
3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336printf "%s\n" "$ac_try_echo"; } >&5
3337  (eval "$ac_link_default") 2>&5
3338  ac_status=$?
3339  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340  test $ac_status = 0; }
3341then :
3342  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3343# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3344# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3345# so that the user can short-circuit this test for compilers unknown to
3346# Autoconf.
3347for ac_file in $ac_files ''
3348do
3349  test -f "$ac_file" || continue
3350  case $ac_file in
3351    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3352	;;
3353    [ab].out )
3354	# We found the default executable, but exeext='' is most
3355	# certainly right.
3356	break;;
3357    *.* )
3358	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3359	then :; else
3360	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361	fi
3362	# We set ac_cv_exeext here because the later test for it is not
3363	# safe: cross compilers may not add the suffix if given an `-o'
3364	# argument, so we may need to know it at that point already.
3365	# Even if this section looks crufty: it has the advantage of
3366	# actually working.
3367	break;;
3368    * )
3369	break;;
3370  esac
3371done
3372test "$ac_cv_exeext" = no && ac_cv_exeext=
3373
3374else $as_nop
3375  ac_file=''
3376fi
3377if test -z "$ac_file"
3378then :
3379  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380printf "%s\n" "no" >&6; }
3381printf "%s\n" "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3386as_fn_error 77 "C compiler cannot create executables
3387See \`config.log' for more details" "$LINENO" 5; }
3388else $as_nop
3389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3390printf "%s\n" "yes" >&6; }
3391fi
3392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3393printf %s "checking for C compiler default output file name... " >&6; }
3394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3395printf "%s\n" "$ac_file" >&6; }
3396ac_exeext=$ac_cv_exeext
3397
3398rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3399ac_clean_files=$ac_clean_files_save
3400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3401printf %s "checking for suffix of executables... " >&6; }
3402if { { ac_try="$ac_link"
3403case "(($ac_try" in
3404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405  *) ac_try_echo=$ac_try;;
3406esac
3407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408printf "%s\n" "$ac_try_echo"; } >&5
3409  (eval "$ac_link") 2>&5
3410  ac_status=$?
3411  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412  test $ac_status = 0; }
3413then :
3414  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3415# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3416# work properly (i.e., refer to `conftest.exe'), while it won't with
3417# `rm'.
3418for ac_file in conftest.exe conftest conftest.*; do
3419  test -f "$ac_file" || continue
3420  case $ac_file in
3421    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3422    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3423	  break;;
3424    * ) break;;
3425  esac
3426done
3427else $as_nop
3428  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3430as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3431See \`config.log' for more details" "$LINENO" 5; }
3432fi
3433rm -f conftest conftest$ac_cv_exeext
3434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3435printf "%s\n" "$ac_cv_exeext" >&6; }
3436
3437rm -f conftest.$ac_ext
3438EXEEXT=$ac_cv_exeext
3439ac_exeext=$EXEEXT
3440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441/* end confdefs.h.  */
3442#include <stdio.h>
3443int
3444main (void)
3445{
3446FILE *f = fopen ("conftest.out", "w");
3447 return ferror (f) || fclose (f) != 0;
3448
3449  ;
3450  return 0;
3451}
3452_ACEOF
3453ac_clean_files="$ac_clean_files conftest.out"
3454# Check that the compiler produces executables we can run.  If not, either
3455# the compiler is broken, or we cross compile.
3456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3457printf %s "checking whether we are cross compiling... " >&6; }
3458if test "$cross_compiling" != yes; then
3459  { { ac_try="$ac_link"
3460case "(($ac_try" in
3461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462  *) ac_try_echo=$ac_try;;
3463esac
3464eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465printf "%s\n" "$ac_try_echo"; } >&5
3466  (eval "$ac_link") 2>&5
3467  ac_status=$?
3468  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469  test $ac_status = 0; }
3470  if { ac_try='./conftest$ac_cv_exeext'
3471  { { case "(($ac_try" in
3472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473  *) ac_try_echo=$ac_try;;
3474esac
3475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476printf "%s\n" "$ac_try_echo"; } >&5
3477  (eval "$ac_try") 2>&5
3478  ac_status=$?
3479  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480  test $ac_status = 0; }; }; then
3481    cross_compiling=no
3482  else
3483    if test "$cross_compiling" = maybe; then
3484	cross_compiling=yes
3485    else
3486	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3488as_fn_error 77 "cannot run C compiled programs.
3489If you meant to cross compile, use \`--host'.
3490See \`config.log' for more details" "$LINENO" 5; }
3491    fi
3492  fi
3493fi
3494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3495printf "%s\n" "$cross_compiling" >&6; }
3496
3497rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3498ac_clean_files=$ac_clean_files_save
3499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3500printf %s "checking for suffix of object files... " >&6; }
3501if test ${ac_cv_objext+y}
3502then :
3503  printf %s "(cached) " >&6
3504else $as_nop
3505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506/* end confdefs.h.  */
3507
3508int
3509main (void)
3510{
3511
3512  ;
3513  return 0;
3514}
3515_ACEOF
3516rm -f conftest.o conftest.obj
3517if { { ac_try="$ac_compile"
3518case "(($ac_try" in
3519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520  *) ac_try_echo=$ac_try;;
3521esac
3522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523printf "%s\n" "$ac_try_echo"; } >&5
3524  (eval "$ac_compile") 2>&5
3525  ac_status=$?
3526  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527  test $ac_status = 0; }
3528then :
3529  for ac_file in conftest.o conftest.obj conftest.*; do
3530  test -f "$ac_file" || continue;
3531  case $ac_file in
3532    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3533    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3534       break;;
3535  esac
3536done
3537else $as_nop
3538  printf "%s\n" "$as_me: failed program was:" >&5
3539sed 's/^/| /' conftest.$ac_ext >&5
3540
3541{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3543as_fn_error $? "cannot compute suffix of object files: cannot compile
3544See \`config.log' for more details" "$LINENO" 5; }
3545fi
3546rm -f conftest.$ac_cv_objext conftest.$ac_ext
3547fi
3548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3549printf "%s\n" "$ac_cv_objext" >&6; }
3550OBJEXT=$ac_cv_objext
3551ac_objext=$OBJEXT
3552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3553printf %s "checking whether the compiler supports GNU C... " >&6; }
3554if test ${ac_cv_c_compiler_gnu+y}
3555then :
3556  printf %s "(cached) " >&6
3557else $as_nop
3558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h.  */
3560
3561int
3562main (void)
3563{
3564#ifndef __GNUC__
3565       choke me
3566#endif
3567
3568  ;
3569  return 0;
3570}
3571_ACEOF
3572if ac_fn_c_try_compile "$LINENO"
3573then :
3574  ac_compiler_gnu=yes
3575else $as_nop
3576  ac_compiler_gnu=no
3577fi
3578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3579ac_cv_c_compiler_gnu=$ac_compiler_gnu
3580
3581fi
3582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3583printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3584ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585
3586if test $ac_compiler_gnu = yes; then
3587  GCC=yes
3588else
3589  GCC=
3590fi
3591ac_test_CFLAGS=${CFLAGS+y}
3592ac_save_CFLAGS=$CFLAGS
3593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3594printf %s "checking whether $CC accepts -g... " >&6; }
3595if test ${ac_cv_prog_cc_g+y}
3596then :
3597  printf %s "(cached) " >&6
3598else $as_nop
3599  ac_save_c_werror_flag=$ac_c_werror_flag
3600   ac_c_werror_flag=yes
3601   ac_cv_prog_cc_g=no
3602   CFLAGS="-g"
3603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h.  */
3605
3606int
3607main (void)
3608{
3609
3610  ;
3611  return 0;
3612}
3613_ACEOF
3614if ac_fn_c_try_compile "$LINENO"
3615then :
3616  ac_cv_prog_cc_g=yes
3617else $as_nop
3618  CFLAGS=""
3619      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620/* end confdefs.h.  */
3621
3622int
3623main (void)
3624{
3625
3626  ;
3627  return 0;
3628}
3629_ACEOF
3630if ac_fn_c_try_compile "$LINENO"
3631then :
3632
3633else $as_nop
3634  ac_c_werror_flag=$ac_save_c_werror_flag
3635	 CFLAGS="-g"
3636	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637/* end confdefs.h.  */
3638
3639int
3640main (void)
3641{
3642
3643  ;
3644  return 0;
3645}
3646_ACEOF
3647if ac_fn_c_try_compile "$LINENO"
3648then :
3649  ac_cv_prog_cc_g=yes
3650fi
3651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3652fi
3653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3654fi
3655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3656   ac_c_werror_flag=$ac_save_c_werror_flag
3657fi
3658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3659printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3660if test $ac_test_CFLAGS; then
3661  CFLAGS=$ac_save_CFLAGS
3662elif test $ac_cv_prog_cc_g = yes; then
3663  if test "$GCC" = yes; then
3664    CFLAGS="-g -O2"
3665  else
3666    CFLAGS="-g"
3667  fi
3668else
3669  if test "$GCC" = yes; then
3670    CFLAGS="-O2"
3671  else
3672    CFLAGS=
3673  fi
3674fi
3675ac_prog_cc_stdc=no
3676if test x$ac_prog_cc_stdc = xno
3677then :
3678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3679printf %s "checking for $CC option to enable C11 features... " >&6; }
3680if test ${ac_cv_prog_cc_c11+y}
3681then :
3682  printf %s "(cached) " >&6
3683else $as_nop
3684  ac_cv_prog_cc_c11=no
3685ac_save_CC=$CC
3686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687/* end confdefs.h.  */
3688$ac_c_conftest_c11_program
3689_ACEOF
3690for ac_arg in '' -std=gnu11
3691do
3692  CC="$ac_save_CC $ac_arg"
3693  if ac_fn_c_try_compile "$LINENO"
3694then :
3695  ac_cv_prog_cc_c11=$ac_arg
3696fi
3697rm -f core conftest.err conftest.$ac_objext conftest.beam
3698  test "x$ac_cv_prog_cc_c11" != "xno" && break
3699done
3700rm -f conftest.$ac_ext
3701CC=$ac_save_CC
3702fi
3703
3704if test "x$ac_cv_prog_cc_c11" = xno
3705then :
3706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707printf "%s\n" "unsupported" >&6; }
3708else $as_nop
3709  if test "x$ac_cv_prog_cc_c11" = x
3710then :
3711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3712printf "%s\n" "none needed" >&6; }
3713else $as_nop
3714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3715printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3716     CC="$CC $ac_cv_prog_cc_c11"
3717fi
3718  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3719  ac_prog_cc_stdc=c11
3720fi
3721fi
3722if test x$ac_prog_cc_stdc = xno
3723then :
3724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3725printf %s "checking for $CC option to enable C99 features... " >&6; }
3726if test ${ac_cv_prog_cc_c99+y}
3727then :
3728  printf %s "(cached) " >&6
3729else $as_nop
3730  ac_cv_prog_cc_c99=no
3731ac_save_CC=$CC
3732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h.  */
3734$ac_c_conftest_c99_program
3735_ACEOF
3736for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3737do
3738  CC="$ac_save_CC $ac_arg"
3739  if ac_fn_c_try_compile "$LINENO"
3740then :
3741  ac_cv_prog_cc_c99=$ac_arg
3742fi
3743rm -f core conftest.err conftest.$ac_objext conftest.beam
3744  test "x$ac_cv_prog_cc_c99" != "xno" && break
3745done
3746rm -f conftest.$ac_ext
3747CC=$ac_save_CC
3748fi
3749
3750if test "x$ac_cv_prog_cc_c99" = xno
3751then :
3752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3753printf "%s\n" "unsupported" >&6; }
3754else $as_nop
3755  if test "x$ac_cv_prog_cc_c99" = x
3756then :
3757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3758printf "%s\n" "none needed" >&6; }
3759else $as_nop
3760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3761printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3762     CC="$CC $ac_cv_prog_cc_c99"
3763fi
3764  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3765  ac_prog_cc_stdc=c99
3766fi
3767fi
3768if test x$ac_prog_cc_stdc = xno
3769then :
3770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3771printf %s "checking for $CC option to enable C89 features... " >&6; }
3772if test ${ac_cv_prog_cc_c89+y}
3773then :
3774  printf %s "(cached) " >&6
3775else $as_nop
3776  ac_cv_prog_cc_c89=no
3777ac_save_CC=$CC
3778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779/* end confdefs.h.  */
3780$ac_c_conftest_c89_program
3781_ACEOF
3782for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3783do
3784  CC="$ac_save_CC $ac_arg"
3785  if ac_fn_c_try_compile "$LINENO"
3786then :
3787  ac_cv_prog_cc_c89=$ac_arg
3788fi
3789rm -f core conftest.err conftest.$ac_objext conftest.beam
3790  test "x$ac_cv_prog_cc_c89" != "xno" && break
3791done
3792rm -f conftest.$ac_ext
3793CC=$ac_save_CC
3794fi
3795
3796if test "x$ac_cv_prog_cc_c89" = xno
3797then :
3798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3799printf "%s\n" "unsupported" >&6; }
3800else $as_nop
3801  if test "x$ac_cv_prog_cc_c89" = x
3802then :
3803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3804printf "%s\n" "none needed" >&6; }
3805else $as_nop
3806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3807printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3808     CC="$CC $ac_cv_prog_cc_c89"
3809fi
3810  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3811  ac_prog_cc_stdc=c89
3812fi
3813fi
3814
3815ac_ext=c
3816ac_cpp='$CPP $CPPFLAGS'
3817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820
3821ac_ext=c
3822ac_cpp='$CPP $CPPFLAGS'
3823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3827printf %s "checking how to run the C preprocessor... " >&6; }
3828# On Suns, sometimes $CPP names a directory.
3829if test -n "$CPP" && test -d "$CPP"; then
3830  CPP=
3831fi
3832if test -z "$CPP"; then
3833  if test ${ac_cv_prog_CPP+y}
3834then :
3835  printf %s "(cached) " >&6
3836else $as_nop
3837      # Double quotes because $CC needs to be expanded
3838    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3839    do
3840      ac_preproc_ok=false
3841for ac_c_preproc_warn_flag in '' yes
3842do
3843  # Use a header file that comes with gcc, so configuring glibc
3844  # with a fresh cross-compiler works.
3845  # On the NeXT, cc -E runs the code through the compiler's parser,
3846  # not just through cpp. "Syntax error" is here to catch this case.
3847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h.  */
3849#include <limits.h>
3850		     Syntax error
3851_ACEOF
3852if ac_fn_c_try_cpp "$LINENO"
3853then :
3854
3855else $as_nop
3856  # Broken: fails on valid input.
3857continue
3858fi
3859rm -f conftest.err conftest.i conftest.$ac_ext
3860
3861  # OK, works on sane cases.  Now check whether nonexistent headers
3862  # can be detected and how.
3863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h.  */
3865#include <ac_nonexistent.h>
3866_ACEOF
3867if ac_fn_c_try_cpp "$LINENO"
3868then :
3869  # Broken: success on invalid input.
3870continue
3871else $as_nop
3872  # Passes both tests.
3873ac_preproc_ok=:
3874break
3875fi
3876rm -f conftest.err conftest.i conftest.$ac_ext
3877
3878done
3879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3880rm -f conftest.i conftest.err conftest.$ac_ext
3881if $ac_preproc_ok
3882then :
3883  break
3884fi
3885
3886    done
3887    ac_cv_prog_CPP=$CPP
3888
3889fi
3890  CPP=$ac_cv_prog_CPP
3891else
3892  ac_cv_prog_CPP=$CPP
3893fi
3894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3895printf "%s\n" "$CPP" >&6; }
3896ac_preproc_ok=false
3897for ac_c_preproc_warn_flag in '' yes
3898do
3899  # Use a header file that comes with gcc, so configuring glibc
3900  # with a fresh cross-compiler works.
3901  # On the NeXT, cc -E runs the code through the compiler's parser,
3902  # not just through cpp. "Syntax error" is here to catch this case.
3903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904/* end confdefs.h.  */
3905#include <limits.h>
3906		     Syntax error
3907_ACEOF
3908if ac_fn_c_try_cpp "$LINENO"
3909then :
3910
3911else $as_nop
3912  # Broken: fails on valid input.
3913continue
3914fi
3915rm -f conftest.err conftest.i conftest.$ac_ext
3916
3917  # OK, works on sane cases.  Now check whether nonexistent headers
3918  # can be detected and how.
3919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920/* end confdefs.h.  */
3921#include <ac_nonexistent.h>
3922_ACEOF
3923if ac_fn_c_try_cpp "$LINENO"
3924then :
3925  # Broken: success on invalid input.
3926continue
3927else $as_nop
3928  # Passes both tests.
3929ac_preproc_ok=:
3930break
3931fi
3932rm -f conftest.err conftest.i conftest.$ac_ext
3933
3934done
3935# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3936rm -f conftest.i conftest.err conftest.$ac_ext
3937if $ac_preproc_ok
3938then :
3939
3940else $as_nop
3941  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3943as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3944See \`config.log' for more details" "$LINENO" 5; }
3945fi
3946
3947ac_ext=c
3948ac_cpp='$CPP $CPPFLAGS'
3949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3963	if test -n "$ac_tool_prefix"; then
3964  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3965set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967printf %s "checking for $ac_word... " >&6; }
3968if test ${ac_cv_path_PKG_CONFIG+y}
3969then :
3970  printf %s "(cached) " >&6
3971else $as_nop
3972  case $PKG_CONFIG in
3973  [\\/]* | ?:[\\/]*)
3974  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3975  ;;
3976  *)
3977  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978for as_dir in $PATH
3979do
3980  IFS=$as_save_IFS
3981  case $as_dir in #(((
3982    '') as_dir=./ ;;
3983    */) ;;
3984    *) as_dir=$as_dir/ ;;
3985  esac
3986    for ac_exec_ext in '' $ac_executable_extensions; do
3987  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3988    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3989    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3990    break 2
3991  fi
3992done
3993  done
3994IFS=$as_save_IFS
3995
3996  ;;
3997esac
3998fi
3999PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4000if test -n "$PKG_CONFIG"; then
4001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4002printf "%s\n" "$PKG_CONFIG" >&6; }
4003else
4004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005printf "%s\n" "no" >&6; }
4006fi
4007
4008
4009fi
4010if test -z "$ac_cv_path_PKG_CONFIG"; then
4011  ac_pt_PKG_CONFIG=$PKG_CONFIG
4012  # Extract the first word of "pkg-config", so it can be a program name with args.
4013set dummy pkg-config; ac_word=$2
4014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015printf %s "checking for $ac_word... " >&6; }
4016if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4017then :
4018  printf %s "(cached) " >&6
4019else $as_nop
4020  case $ac_pt_PKG_CONFIG in
4021  [\\/]* | ?:[\\/]*)
4022  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4023  ;;
4024  *)
4025  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028  IFS=$as_save_IFS
4029  case $as_dir in #(((
4030    '') as_dir=./ ;;
4031    */) ;;
4032    *) as_dir=$as_dir/ ;;
4033  esac
4034    for ac_exec_ext in '' $ac_executable_extensions; do
4035  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4036    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4037    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4038    break 2
4039  fi
4040done
4041  done
4042IFS=$as_save_IFS
4043
4044  ;;
4045esac
4046fi
4047ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4048if test -n "$ac_pt_PKG_CONFIG"; then
4049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4050printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4051else
4052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053printf "%s\n" "no" >&6; }
4054fi
4055
4056  if test "x$ac_pt_PKG_CONFIG" = x; then
4057    PKG_CONFIG=""
4058  else
4059    case $cross_compiling:$ac_tool_warned in
4060yes:)
4061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4062printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4063ac_tool_warned=yes ;;
4064esac
4065    PKG_CONFIG=$ac_pt_PKG_CONFIG
4066  fi
4067else
4068  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4069fi
4070
4071fi
4072if test -n "$PKG_CONFIG"; then
4073	_pkg_min_version=0.24
4074	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4075printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4076	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4077		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4078printf "%s\n" "yes" >&6; }
4079	else
4080		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081printf "%s\n" "no" >&6; }
4082		PKG_CONFIG=""
4083	fi
4084fi
4085
4086
4087case `pwd` in
4088  *\ * | *\	*)
4089    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4090printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4091esac
4092
4093
4094
4095macro_version='2.4.7'
4096macro_revision='2.4.7'
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111ltmain=$ac_aux_dir/ltmain.sh
4112
4113# Backslashify metacharacters that are still active within
4114# double-quoted strings.
4115sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4116
4117# Same as above, but do not quote variable references.
4118double_quote_subst='s/\(["`\\]\)/\\\1/g'
4119
4120# Sed substitution to delay expansion of an escaped shell variable in a
4121# double_quote_subst'ed string.
4122delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4123
4124# Sed substitution to delay expansion of an escaped single quote.
4125delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4126
4127# Sed substitution to avoid accidental globbing in evaled expressions
4128no_glob_subst='s/\*/\\\*/g'
4129
4130ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4131ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4132ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4133
4134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4135printf %s "checking how to print strings... " >&6; }
4136# Test print first, because it will be a builtin if present.
4137if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4138   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4139  ECHO='print -r --'
4140elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4141  ECHO='printf %s\n'
4142else
4143  # Use this function as a fallback that always works.
4144  func_fallback_echo ()
4145  {
4146    eval 'cat <<_LTECHO_EOF
4147$1
4148_LTECHO_EOF'
4149  }
4150  ECHO='func_fallback_echo'
4151fi
4152
4153# func_echo_all arg...
4154# Invoke $ECHO with all args, space-separated.
4155func_echo_all ()
4156{
4157    $ECHO ""
4158}
4159
4160case $ECHO in
4161  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4162printf "%s\n" "printf" >&6; } ;;
4163  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4164printf "%s\n" "print -r" >&6; } ;;
4165  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4166printf "%s\n" "cat" >&6; } ;;
4167esac
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4183printf %s "checking for a sed that does not truncate output... " >&6; }
4184if test ${ac_cv_path_SED+y}
4185then :
4186  printf %s "(cached) " >&6
4187else $as_nop
4188            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4189     for ac_i in 1 2 3 4 5 6 7; do
4190       ac_script="$ac_script$as_nl$ac_script"
4191     done
4192     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4193     { ac_script=; unset ac_script;}
4194     if test -z "$SED"; then
4195  ac_path_SED_found=false
4196  # Loop through the user's path and test for each of PROGNAME-LIST
4197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200  IFS=$as_save_IFS
4201  case $as_dir in #(((
4202    '') as_dir=./ ;;
4203    */) ;;
4204    *) as_dir=$as_dir/ ;;
4205  esac
4206    for ac_prog in sed gsed
4207   do
4208    for ac_exec_ext in '' $ac_executable_extensions; do
4209      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4210      as_fn_executable_p "$ac_path_SED" || continue
4211# Check for GNU ac_path_SED and select it if it is found.
4212  # Check for GNU $ac_path_SED
4213case `"$ac_path_SED" --version 2>&1` in
4214*GNU*)
4215  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4216*)
4217  ac_count=0
4218  printf %s 0123456789 >"conftest.in"
4219  while :
4220  do
4221    cat "conftest.in" "conftest.in" >"conftest.tmp"
4222    mv "conftest.tmp" "conftest.in"
4223    cp "conftest.in" "conftest.nl"
4224    printf "%s\n" '' >> "conftest.nl"
4225    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4226    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4227    as_fn_arith $ac_count + 1 && ac_count=$as_val
4228    if test $ac_count -gt ${ac_path_SED_max-0}; then
4229      # Best one so far, save it but keep looking for a better one
4230      ac_cv_path_SED="$ac_path_SED"
4231      ac_path_SED_max=$ac_count
4232    fi
4233    # 10*(2^10) chars as input seems more than enough
4234    test $ac_count -gt 10 && break
4235  done
4236  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4237esac
4238
4239      $ac_path_SED_found && break 3
4240    done
4241  done
4242  done
4243IFS=$as_save_IFS
4244  if test -z "$ac_cv_path_SED"; then
4245    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4246  fi
4247else
4248  ac_cv_path_SED=$SED
4249fi
4250
4251fi
4252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4253printf "%s\n" "$ac_cv_path_SED" >&6; }
4254 SED="$ac_cv_path_SED"
4255  rm -f conftest.sed
4256
4257test -z "$SED" && SED=sed
4258Xsed="$SED -e 1s/^X//"
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4271printf %s "checking for grep that handles long lines and -e... " >&6; }
4272if test ${ac_cv_path_GREP+y}
4273then :
4274  printf %s "(cached) " >&6
4275else $as_nop
4276  if test -z "$GREP"; then
4277  ac_path_GREP_found=false
4278  # Loop through the user's path and test for each of PROGNAME-LIST
4279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4281do
4282  IFS=$as_save_IFS
4283  case $as_dir in #(((
4284    '') as_dir=./ ;;
4285    */) ;;
4286    *) as_dir=$as_dir/ ;;
4287  esac
4288    for ac_prog in grep ggrep
4289   do
4290    for ac_exec_ext in '' $ac_executable_extensions; do
4291      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4292      as_fn_executable_p "$ac_path_GREP" || continue
4293# Check for GNU ac_path_GREP and select it if it is found.
4294  # Check for GNU $ac_path_GREP
4295case `"$ac_path_GREP" --version 2>&1` in
4296*GNU*)
4297  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4298*)
4299  ac_count=0
4300  printf %s 0123456789 >"conftest.in"
4301  while :
4302  do
4303    cat "conftest.in" "conftest.in" >"conftest.tmp"
4304    mv "conftest.tmp" "conftest.in"
4305    cp "conftest.in" "conftest.nl"
4306    printf "%s\n" 'GREP' >> "conftest.nl"
4307    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309    as_fn_arith $ac_count + 1 && ac_count=$as_val
4310    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4311      # Best one so far, save it but keep looking for a better one
4312      ac_cv_path_GREP="$ac_path_GREP"
4313      ac_path_GREP_max=$ac_count
4314    fi
4315    # 10*(2^10) chars as input seems more than enough
4316    test $ac_count -gt 10 && break
4317  done
4318  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319esac
4320
4321      $ac_path_GREP_found && break 3
4322    done
4323  done
4324  done
4325IFS=$as_save_IFS
4326  if test -z "$ac_cv_path_GREP"; then
4327    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4328  fi
4329else
4330  ac_cv_path_GREP=$GREP
4331fi
4332
4333fi
4334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4335printf "%s\n" "$ac_cv_path_GREP" >&6; }
4336 GREP="$ac_cv_path_GREP"
4337
4338
4339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4340printf %s "checking for egrep... " >&6; }
4341if test ${ac_cv_path_EGREP+y}
4342then :
4343  printf %s "(cached) " >&6
4344else $as_nop
4345  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4346   then ac_cv_path_EGREP="$GREP -E"
4347   else
4348     if test -z "$EGREP"; then
4349  ac_path_EGREP_found=false
4350  # Loop through the user's path and test for each of PROGNAME-LIST
4351  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4353do
4354  IFS=$as_save_IFS
4355  case $as_dir in #(((
4356    '') as_dir=./ ;;
4357    */) ;;
4358    *) as_dir=$as_dir/ ;;
4359  esac
4360    for ac_prog in egrep
4361   do
4362    for ac_exec_ext in '' $ac_executable_extensions; do
4363      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4364      as_fn_executable_p "$ac_path_EGREP" || continue
4365# Check for GNU ac_path_EGREP and select it if it is found.
4366  # Check for GNU $ac_path_EGREP
4367case `"$ac_path_EGREP" --version 2>&1` in
4368*GNU*)
4369  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4370*)
4371  ac_count=0
4372  printf %s 0123456789 >"conftest.in"
4373  while :
4374  do
4375    cat "conftest.in" "conftest.in" >"conftest.tmp"
4376    mv "conftest.tmp" "conftest.in"
4377    cp "conftest.in" "conftest.nl"
4378    printf "%s\n" 'EGREP' >> "conftest.nl"
4379    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381    as_fn_arith $ac_count + 1 && ac_count=$as_val
4382    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4383      # Best one so far, save it but keep looking for a better one
4384      ac_cv_path_EGREP="$ac_path_EGREP"
4385      ac_path_EGREP_max=$ac_count
4386    fi
4387    # 10*(2^10) chars as input seems more than enough
4388    test $ac_count -gt 10 && break
4389  done
4390  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391esac
4392
4393      $ac_path_EGREP_found && break 3
4394    done
4395  done
4396  done
4397IFS=$as_save_IFS
4398  if test -z "$ac_cv_path_EGREP"; then
4399    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4400  fi
4401else
4402  ac_cv_path_EGREP=$EGREP
4403fi
4404
4405   fi
4406fi
4407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4408printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4409 EGREP="$ac_cv_path_EGREP"
4410
4411
4412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4413printf %s "checking for fgrep... " >&6; }
4414if test ${ac_cv_path_FGREP+y}
4415then :
4416  printf %s "(cached) " >&6
4417else $as_nop
4418  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4419   then ac_cv_path_FGREP="$GREP -F"
4420   else
4421     if test -z "$FGREP"; then
4422  ac_path_FGREP_found=false
4423  # Loop through the user's path and test for each of PROGNAME-LIST
4424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4426do
4427  IFS=$as_save_IFS
4428  case $as_dir in #(((
4429    '') as_dir=./ ;;
4430    */) ;;
4431    *) as_dir=$as_dir/ ;;
4432  esac
4433    for ac_prog in fgrep
4434   do
4435    for ac_exec_ext in '' $ac_executable_extensions; do
4436      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4437      as_fn_executable_p "$ac_path_FGREP" || continue
4438# Check for GNU ac_path_FGREP and select it if it is found.
4439  # Check for GNU $ac_path_FGREP
4440case `"$ac_path_FGREP" --version 2>&1` in
4441*GNU*)
4442  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4443*)
4444  ac_count=0
4445  printf %s 0123456789 >"conftest.in"
4446  while :
4447  do
4448    cat "conftest.in" "conftest.in" >"conftest.tmp"
4449    mv "conftest.tmp" "conftest.in"
4450    cp "conftest.in" "conftest.nl"
4451    printf "%s\n" 'FGREP' >> "conftest.nl"
4452    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4453    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4454    as_fn_arith $ac_count + 1 && ac_count=$as_val
4455    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4456      # Best one so far, save it but keep looking for a better one
4457      ac_cv_path_FGREP="$ac_path_FGREP"
4458      ac_path_FGREP_max=$ac_count
4459    fi
4460    # 10*(2^10) chars as input seems more than enough
4461    test $ac_count -gt 10 && break
4462  done
4463  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4464esac
4465
4466      $ac_path_FGREP_found && break 3
4467    done
4468  done
4469  done
4470IFS=$as_save_IFS
4471  if test -z "$ac_cv_path_FGREP"; then
4472    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4473  fi
4474else
4475  ac_cv_path_FGREP=$FGREP
4476fi
4477
4478   fi
4479fi
4480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4481printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4482 FGREP="$ac_cv_path_FGREP"
4483
4484
4485test -z "$GREP" && GREP=grep
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505# Check whether --with-gnu-ld was given.
4506if test ${with_gnu_ld+y}
4507then :
4508  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4509else $as_nop
4510  with_gnu_ld=no
4511fi
4512
4513ac_prog=ld
4514if test yes = "$GCC"; then
4515  # Check if gcc -print-prog-name=ld gives a path.
4516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4517printf %s "checking for ld used by $CC... " >&6; }
4518  case $host in
4519  *-*-mingw*)
4520    # gcc leaves a trailing carriage return, which upsets mingw
4521    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4522  *)
4523    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4524  esac
4525  case $ac_prog in
4526    # Accept absolute paths.
4527    [\\/]* | ?:[\\/]*)
4528      re_direlt='/[^/][^/]*/\.\./'
4529      # Canonicalize the pathname of ld
4530      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4531      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4532	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4533      done
4534      test -z "$LD" && LD=$ac_prog
4535      ;;
4536  "")
4537    # If it fails, then pretend we aren't using GCC.
4538    ac_prog=ld
4539    ;;
4540  *)
4541    # If it is relative, then search for the first ld in PATH.
4542    with_gnu_ld=unknown
4543    ;;
4544  esac
4545elif test yes = "$with_gnu_ld"; then
4546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4547printf %s "checking for GNU ld... " >&6; }
4548else
4549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4550printf %s "checking for non-GNU ld... " >&6; }
4551fi
4552if test ${lt_cv_path_LD+y}
4553then :
4554  printf %s "(cached) " >&6
4555else $as_nop
4556  if test -z "$LD"; then
4557  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4558  for ac_dir in $PATH; do
4559    IFS=$lt_save_ifs
4560    test -z "$ac_dir" && ac_dir=.
4561    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4562      lt_cv_path_LD=$ac_dir/$ac_prog
4563      # Check to see if the program is GNU ld.  I'd rather use --version,
4564      # but apparently some variants of GNU ld only accept -v.
4565      # Break only if it was the GNU/non-GNU ld that we prefer.
4566      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4567      *GNU* | *'with BFD'*)
4568	test no != "$with_gnu_ld" && break
4569	;;
4570      *)
4571	test yes != "$with_gnu_ld" && break
4572	;;
4573      esac
4574    fi
4575  done
4576  IFS=$lt_save_ifs
4577else
4578  lt_cv_path_LD=$LD # Let the user override the test with a path.
4579fi
4580fi
4581
4582LD=$lt_cv_path_LD
4583if test -n "$LD"; then
4584  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4585printf "%s\n" "$LD" >&6; }
4586else
4587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588printf "%s\n" "no" >&6; }
4589fi
4590test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4592printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4593if test ${lt_cv_prog_gnu_ld+y}
4594then :
4595  printf %s "(cached) " >&6
4596else $as_nop
4597  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4598case `$LD -v 2>&1 </dev/null` in
4599*GNU* | *'with BFD'*)
4600  lt_cv_prog_gnu_ld=yes
4601  ;;
4602*)
4603  lt_cv_prog_gnu_ld=no
4604  ;;
4605esac
4606fi
4607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4608printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4609with_gnu_ld=$lt_cv_prog_gnu_ld
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4620printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4621if test ${lt_cv_path_NM+y}
4622then :
4623  printf %s "(cached) " >&6
4624else $as_nop
4625  if test -n "$NM"; then
4626  # Let the user override the test.
4627  lt_cv_path_NM=$NM
4628else
4629  lt_nm_to_check=${ac_tool_prefix}nm
4630  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4631    lt_nm_to_check="$lt_nm_to_check nm"
4632  fi
4633  for lt_tmp_nm in $lt_nm_to_check; do
4634    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4635    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4636      IFS=$lt_save_ifs
4637      test -z "$ac_dir" && ac_dir=.
4638      tmp_nm=$ac_dir/$lt_tmp_nm
4639      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4640	# Check to see if the nm accepts a BSD-compat flag.
4641	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4642	#   nm: unknown option "B" ignored
4643	# Tru64's nm complains that /dev/null is an invalid object file
4644	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4645	case $build_os in
4646	mingw*) lt_bad_file=conftest.nm/nofile ;;
4647	*) lt_bad_file=/dev/null ;;
4648	esac
4649	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
4650	*$lt_bad_file* | *'Invalid file or object type'*)
4651	  lt_cv_path_NM="$tmp_nm -B"
4652	  break 2
4653	  ;;
4654	*)
4655	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
4656	  */dev/null*)
4657	    lt_cv_path_NM="$tmp_nm -p"
4658	    break 2
4659	    ;;
4660	  *)
4661	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4662	    continue # so that we can try to find one that supports BSD flags
4663	    ;;
4664	  esac
4665	  ;;
4666	esac
4667      fi
4668    done
4669    IFS=$lt_save_ifs
4670  done
4671  : ${lt_cv_path_NM=no}
4672fi
4673fi
4674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4675printf "%s\n" "$lt_cv_path_NM" >&6; }
4676if test no != "$lt_cv_path_NM"; then
4677  NM=$lt_cv_path_NM
4678else
4679  # Didn't find any BSD compatible name lister, look for dumpbin.
4680  if test -n "$DUMPBIN"; then :
4681    # Let the user override the test.
4682  else
4683    if test -n "$ac_tool_prefix"; then
4684  for ac_prog in dumpbin "link -dump"
4685  do
4686    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4687set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689printf %s "checking for $ac_word... " >&6; }
4690if test ${ac_cv_prog_DUMPBIN+y}
4691then :
4692  printf %s "(cached) " >&6
4693else $as_nop
4694  if test -n "$DUMPBIN"; then
4695  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700  IFS=$as_save_IFS
4701  case $as_dir in #(((
4702    '') as_dir=./ ;;
4703    */) ;;
4704    *) as_dir=$as_dir/ ;;
4705  esac
4706    for ac_exec_ext in '' $ac_executable_extensions; do
4707  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4708    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4709    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4710    break 2
4711  fi
4712done
4713  done
4714IFS=$as_save_IFS
4715
4716fi
4717fi
4718DUMPBIN=$ac_cv_prog_DUMPBIN
4719if test -n "$DUMPBIN"; then
4720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4721printf "%s\n" "$DUMPBIN" >&6; }
4722else
4723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724printf "%s\n" "no" >&6; }
4725fi
4726
4727
4728    test -n "$DUMPBIN" && break
4729  done
4730fi
4731if test -z "$DUMPBIN"; then
4732  ac_ct_DUMPBIN=$DUMPBIN
4733  for ac_prog in dumpbin "link -dump"
4734do
4735  # Extract the first word of "$ac_prog", so it can be a program name with args.
4736set dummy $ac_prog; ac_word=$2
4737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738printf %s "checking for $ac_word... " >&6; }
4739if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4740then :
4741  printf %s "(cached) " >&6
4742else $as_nop
4743  if test -n "$ac_ct_DUMPBIN"; then
4744  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4745else
4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749  IFS=$as_save_IFS
4750  case $as_dir in #(((
4751    '') as_dir=./ ;;
4752    */) ;;
4753    *) as_dir=$as_dir/ ;;
4754  esac
4755    for ac_exec_ext in '' $ac_executable_extensions; do
4756  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4757    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4758    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4759    break 2
4760  fi
4761done
4762  done
4763IFS=$as_save_IFS
4764
4765fi
4766fi
4767ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4768if test -n "$ac_ct_DUMPBIN"; then
4769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4770printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4771else
4772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773printf "%s\n" "no" >&6; }
4774fi
4775
4776
4777  test -n "$ac_ct_DUMPBIN" && break
4778done
4779
4780  if test "x$ac_ct_DUMPBIN" = x; then
4781    DUMPBIN=":"
4782  else
4783    case $cross_compiling:$ac_tool_warned in
4784yes:)
4785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4786printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4787ac_tool_warned=yes ;;
4788esac
4789    DUMPBIN=$ac_ct_DUMPBIN
4790  fi
4791fi
4792
4793    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
4794    *COFF*)
4795      DUMPBIN="$DUMPBIN -symbols -headers"
4796      ;;
4797    *)
4798      DUMPBIN=:
4799      ;;
4800    esac
4801  fi
4802
4803  if test : != "$DUMPBIN"; then
4804    NM=$DUMPBIN
4805  fi
4806fi
4807test -z "$NM" && NM=nm
4808
4809
4810
4811
4812
4813
4814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4815printf %s "checking the name lister ($NM) interface... " >&6; }
4816if test ${lt_cv_nm_interface+y}
4817then :
4818  printf %s "(cached) " >&6
4819else $as_nop
4820  lt_cv_nm_interface="BSD nm"
4821  echo "int some_variable = 0;" > conftest.$ac_ext
4822  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4823  (eval "$ac_compile" 2>conftest.err)
4824  cat conftest.err >&5
4825  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4826  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4827  cat conftest.err >&5
4828  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4829  cat conftest.out >&5
4830  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4831    lt_cv_nm_interface="MS dumpbin"
4832  fi
4833  rm -f conftest*
4834fi
4835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4836printf "%s\n" "$lt_cv_nm_interface" >&6; }
4837
4838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4839printf %s "checking whether ln -s works... " >&6; }
4840LN_S=$as_ln_s
4841if test "$LN_S" = "ln -s"; then
4842  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4843printf "%s\n" "yes" >&6; }
4844else
4845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4846printf "%s\n" "no, using $LN_S" >&6; }
4847fi
4848
4849# find the maximum length of command line arguments
4850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4851printf %s "checking the maximum length of command line arguments... " >&6; }
4852if test ${lt_cv_sys_max_cmd_len+y}
4853then :
4854  printf %s "(cached) " >&6
4855else $as_nop
4856    i=0
4857  teststring=ABCD
4858
4859  case $build_os in
4860  msdosdjgpp*)
4861    # On DJGPP, this test can blow up pretty badly due to problems in libc
4862    # (any single argument exceeding 2000 bytes causes a buffer overrun
4863    # during glob expansion).  Even if it were fixed, the result of this
4864    # check would be larger than it should be.
4865    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4866    ;;
4867
4868  gnu*)
4869    # Under GNU Hurd, this test is not required because there is
4870    # no limit to the length of command line arguments.
4871    # Libtool will interpret -1 as no limit whatsoever
4872    lt_cv_sys_max_cmd_len=-1;
4873    ;;
4874
4875  cygwin* | mingw* | cegcc*)
4876    # On Win9x/ME, this test blows up -- it succeeds, but takes
4877    # about 5 minutes as the teststring grows exponentially.
4878    # Worse, since 9x/ME are not pre-emptively multitasking,
4879    # you end up with a "frozen" computer, even though with patience
4880    # the test eventually succeeds (with a max line length of 256k).
4881    # Instead, let's just punt: use the minimum linelength reported by
4882    # all of the supported platforms: 8192 (on NT/2K/XP).
4883    lt_cv_sys_max_cmd_len=8192;
4884    ;;
4885
4886  mint*)
4887    # On MiNT this can take a long time and run out of memory.
4888    lt_cv_sys_max_cmd_len=8192;
4889    ;;
4890
4891  amigaos*)
4892    # On AmigaOS with pdksh, this test takes hours, literally.
4893    # So we just punt and use a minimum line length of 8192.
4894    lt_cv_sys_max_cmd_len=8192;
4895    ;;
4896
4897  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
4898    # This has been around since 386BSD, at least.  Likely further.
4899    if test -x /sbin/sysctl; then
4900      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4901    elif test -x /usr/sbin/sysctl; then
4902      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4903    else
4904      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4905    fi
4906    # And add a safety zone
4907    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4908    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4909    ;;
4910
4911  interix*)
4912    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4913    lt_cv_sys_max_cmd_len=196608
4914    ;;
4915
4916  os2*)
4917    # The test takes a long time on OS/2.
4918    lt_cv_sys_max_cmd_len=8192
4919    ;;
4920
4921  osf*)
4922    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4923    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4924    # nice to cause kernel panics so lets avoid the loop below.
4925    # First set a reasonable default.
4926    lt_cv_sys_max_cmd_len=16384
4927    #
4928    if test -x /sbin/sysconfig; then
4929      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4930        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4931      esac
4932    fi
4933    ;;
4934  sco3.2v5*)
4935    lt_cv_sys_max_cmd_len=102400
4936    ;;
4937  sysv5* | sco5v6* | sysv4.2uw2*)
4938    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4939    if test -n "$kargmax"; then
4940      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
4941    else
4942      lt_cv_sys_max_cmd_len=32768
4943    fi
4944    ;;
4945  *)
4946    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4947    if test -n "$lt_cv_sys_max_cmd_len" && \
4948       test undefined != "$lt_cv_sys_max_cmd_len"; then
4949      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4950      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4951    else
4952      # Make teststring a little bigger before we do anything with it.
4953      # a 1K string should be a reasonable start.
4954      for i in 1 2 3 4 5 6 7 8; do
4955        teststring=$teststring$teststring
4956      done
4957      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4958      # If test is not a shell built-in, we'll probably end up computing a
4959      # maximum length that is only half of the actual maximum length, but
4960      # we can't tell.
4961      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4962	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4963	      test 17 != "$i" # 1/2 MB should be enough
4964      do
4965        i=`expr $i + 1`
4966        teststring=$teststring$teststring
4967      done
4968      # Only check the string length outside the loop.
4969      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4970      teststring=
4971      # Add a significant safety factor because C++ compilers can tack on
4972      # massive amounts of additional arguments before passing them to the
4973      # linker.  It appears as though 1/2 is a usable value.
4974      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4975    fi
4976    ;;
4977  esac
4978
4979fi
4980
4981if test -n "$lt_cv_sys_max_cmd_len"; then
4982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4983printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
4984else
4985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
4986printf "%s\n" "none" >&6; }
4987fi
4988max_cmd_len=$lt_cv_sys_max_cmd_len
4989
4990
4991
4992
4993
4994
4995: ${CP="cp -f"}
4996: ${MV="mv -f"}
4997: ${RM="rm -f"}
4998
4999if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5000  lt_unset=unset
5001else
5002  lt_unset=false
5003fi
5004
5005
5006
5007
5008
5009# test EBCDIC or ASCII
5010case `echo X|tr X '\101'` in
5011 A) # ASCII based system
5012    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5013  lt_SP2NL='tr \040 \012'
5014  lt_NL2SP='tr \015\012 \040\040'
5015  ;;
5016 *) # EBCDIC based system
5017  lt_SP2NL='tr \100 \n'
5018  lt_NL2SP='tr \r\n \100\100'
5019  ;;
5020esac
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5031printf %s "checking how to convert $build file names to $host format... " >&6; }
5032if test ${lt_cv_to_host_file_cmd+y}
5033then :
5034  printf %s "(cached) " >&6
5035else $as_nop
5036  case $host in
5037  *-*-mingw* )
5038    case $build in
5039      *-*-mingw* ) # actually msys
5040        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5041        ;;
5042      *-*-cygwin* )
5043        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5044        ;;
5045      * ) # otherwise, assume *nix
5046        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5047        ;;
5048    esac
5049    ;;
5050  *-*-cygwin* )
5051    case $build in
5052      *-*-mingw* ) # actually msys
5053        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5054        ;;
5055      *-*-cygwin* )
5056        lt_cv_to_host_file_cmd=func_convert_file_noop
5057        ;;
5058      * ) # otherwise, assume *nix
5059        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5060        ;;
5061    esac
5062    ;;
5063  * ) # unhandled hosts (and "normal" native builds)
5064    lt_cv_to_host_file_cmd=func_convert_file_noop
5065    ;;
5066esac
5067
5068fi
5069
5070to_host_file_cmd=$lt_cv_to_host_file_cmd
5071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5072printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5073
5074
5075
5076
5077
5078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5079printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5080if test ${lt_cv_to_tool_file_cmd+y}
5081then :
5082  printf %s "(cached) " >&6
5083else $as_nop
5084  #assume ordinary cross tools, or native build.
5085lt_cv_to_tool_file_cmd=func_convert_file_noop
5086case $host in
5087  *-*-mingw* )
5088    case $build in
5089      *-*-mingw* ) # actually msys
5090        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5091        ;;
5092    esac
5093    ;;
5094esac
5095
5096fi
5097
5098to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5100printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5101
5102
5103
5104
5105
5106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5107printf %s "checking for $LD option to reload object files... " >&6; }
5108if test ${lt_cv_ld_reload_flag+y}
5109then :
5110  printf %s "(cached) " >&6
5111else $as_nop
5112  lt_cv_ld_reload_flag='-r'
5113fi
5114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5115printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5116reload_flag=$lt_cv_ld_reload_flag
5117case $reload_flag in
5118"" | " "*) ;;
5119*) reload_flag=" $reload_flag" ;;
5120esac
5121reload_cmds='$LD$reload_flag -o $output$reload_objs'
5122case $host_os in
5123  cygwin* | mingw* | pw32* | cegcc*)
5124    if test yes != "$GCC"; then
5125      reload_cmds=false
5126    fi
5127    ;;
5128  darwin*)
5129    if test yes = "$GCC"; then
5130      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5131    else
5132      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5133    fi
5134    ;;
5135esac
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145if test -n "$ac_tool_prefix"; then
5146  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5147set dummy ${ac_tool_prefix}file; ac_word=$2
5148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149printf %s "checking for $ac_word... " >&6; }
5150if test ${ac_cv_prog_FILECMD+y}
5151then :
5152  printf %s "(cached) " >&6
5153else $as_nop
5154  if test -n "$FILECMD"; then
5155  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5156else
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160  IFS=$as_save_IFS
5161  case $as_dir in #(((
5162    '') as_dir=./ ;;
5163    */) ;;
5164    *) as_dir=$as_dir/ ;;
5165  esac
5166    for ac_exec_ext in '' $ac_executable_extensions; do
5167  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5168    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5169    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5170    break 2
5171  fi
5172done
5173  done
5174IFS=$as_save_IFS
5175
5176fi
5177fi
5178FILECMD=$ac_cv_prog_FILECMD
5179if test -n "$FILECMD"; then
5180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5181printf "%s\n" "$FILECMD" >&6; }
5182else
5183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184printf "%s\n" "no" >&6; }
5185fi
5186
5187
5188fi
5189if test -z "$ac_cv_prog_FILECMD"; then
5190  ac_ct_FILECMD=$FILECMD
5191  # Extract the first word of "file", so it can be a program name with args.
5192set dummy file; ac_word=$2
5193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194printf %s "checking for $ac_word... " >&6; }
5195if test ${ac_cv_prog_ac_ct_FILECMD+y}
5196then :
5197  printf %s "(cached) " >&6
5198else $as_nop
5199  if test -n "$ac_ct_FILECMD"; then
5200  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5201else
5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205  IFS=$as_save_IFS
5206  case $as_dir in #(((
5207    '') as_dir=./ ;;
5208    */) ;;
5209    *) as_dir=$as_dir/ ;;
5210  esac
5211    for ac_exec_ext in '' $ac_executable_extensions; do
5212  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5213    ac_cv_prog_ac_ct_FILECMD="file"
5214    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5215    break 2
5216  fi
5217done
5218  done
5219IFS=$as_save_IFS
5220
5221fi
5222fi
5223ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5224if test -n "$ac_ct_FILECMD"; then
5225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5226printf "%s\n" "$ac_ct_FILECMD" >&6; }
5227else
5228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229printf "%s\n" "no" >&6; }
5230fi
5231
5232  if test "x$ac_ct_FILECMD" = x; then
5233    FILECMD=":"
5234  else
5235    case $cross_compiling:$ac_tool_warned in
5236yes:)
5237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5238printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5239ac_tool_warned=yes ;;
5240esac
5241    FILECMD=$ac_ct_FILECMD
5242  fi
5243else
5244  FILECMD="$ac_cv_prog_FILECMD"
5245fi
5246
5247
5248
5249
5250
5251
5252
5253if test -n "$ac_tool_prefix"; then
5254  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5255set dummy ${ac_tool_prefix}objdump; ac_word=$2
5256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257printf %s "checking for $ac_word... " >&6; }
5258if test ${ac_cv_prog_OBJDUMP+y}
5259then :
5260  printf %s "(cached) " >&6
5261else $as_nop
5262  if test -n "$OBJDUMP"; then
5263  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5264else
5265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266for as_dir in $PATH
5267do
5268  IFS=$as_save_IFS
5269  case $as_dir in #(((
5270    '') as_dir=./ ;;
5271    */) ;;
5272    *) as_dir=$as_dir/ ;;
5273  esac
5274    for ac_exec_ext in '' $ac_executable_extensions; do
5275  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5276    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5277    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5278    break 2
5279  fi
5280done
5281  done
5282IFS=$as_save_IFS
5283
5284fi
5285fi
5286OBJDUMP=$ac_cv_prog_OBJDUMP
5287if test -n "$OBJDUMP"; then
5288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5289printf "%s\n" "$OBJDUMP" >&6; }
5290else
5291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292printf "%s\n" "no" >&6; }
5293fi
5294
5295
5296fi
5297if test -z "$ac_cv_prog_OBJDUMP"; then
5298  ac_ct_OBJDUMP=$OBJDUMP
5299  # Extract the first word of "objdump", so it can be a program name with args.
5300set dummy objdump; ac_word=$2
5301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302printf %s "checking for $ac_word... " >&6; }
5303if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5304then :
5305  printf %s "(cached) " >&6
5306else $as_nop
5307  if test -n "$ac_ct_OBJDUMP"; then
5308  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5309else
5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313  IFS=$as_save_IFS
5314  case $as_dir in #(((
5315    '') as_dir=./ ;;
5316    */) ;;
5317    *) as_dir=$as_dir/ ;;
5318  esac
5319    for ac_exec_ext in '' $ac_executable_extensions; do
5320  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5321    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5322    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5323    break 2
5324  fi
5325done
5326  done
5327IFS=$as_save_IFS
5328
5329fi
5330fi
5331ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5332if test -n "$ac_ct_OBJDUMP"; then
5333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5334printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5335else
5336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337printf "%s\n" "no" >&6; }
5338fi
5339
5340  if test "x$ac_ct_OBJDUMP" = x; then
5341    OBJDUMP="false"
5342  else
5343    case $cross_compiling:$ac_tool_warned in
5344yes:)
5345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5346printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5347ac_tool_warned=yes ;;
5348esac
5349    OBJDUMP=$ac_ct_OBJDUMP
5350  fi
5351else
5352  OBJDUMP="$ac_cv_prog_OBJDUMP"
5353fi
5354
5355test -z "$OBJDUMP" && OBJDUMP=objdump
5356
5357
5358
5359
5360
5361
5362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5363printf %s "checking how to recognize dependent libraries... " >&6; }
5364if test ${lt_cv_deplibs_check_method+y}
5365then :
5366  printf %s "(cached) " >&6
5367else $as_nop
5368  lt_cv_file_magic_cmd='$MAGIC_CMD'
5369lt_cv_file_magic_test_file=
5370lt_cv_deplibs_check_method='unknown'
5371# Need to set the preceding variable on all platforms that support
5372# interlibrary dependencies.
5373# 'none' -- dependencies not supported.
5374# 'unknown' -- same as none, but documents that we really don't know.
5375# 'pass_all' -- all dependencies passed with no checks.
5376# 'test_compile' -- check by making test program.
5377# 'file_magic [[regex]]' -- check by looking for files in library path
5378# that responds to the $file_magic_cmd with a given extended regex.
5379# If you have 'file' or equivalent on your system and you're not sure
5380# whether 'pass_all' will *always* work, you probably want this one.
5381
5382case $host_os in
5383aix[4-9]*)
5384  lt_cv_deplibs_check_method=pass_all
5385  ;;
5386
5387beos*)
5388  lt_cv_deplibs_check_method=pass_all
5389  ;;
5390
5391bsdi[45]*)
5392  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5393  lt_cv_file_magic_cmd='$FILECMD -L'
5394  lt_cv_file_magic_test_file=/shlib/libc.so
5395  ;;
5396
5397cygwin*)
5398  # func_win32_libid is a shell function defined in ltmain.sh
5399  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5400  lt_cv_file_magic_cmd='func_win32_libid'
5401  ;;
5402
5403mingw* | pw32*)
5404  # Base MSYS/MinGW do not provide the 'file' command needed by
5405  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5406  # unless we find 'file', for example because we are cross-compiling.
5407  if ( file / ) >/dev/null 2>&1; then
5408    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5409    lt_cv_file_magic_cmd='func_win32_libid'
5410  else
5411    # Keep this pattern in sync with the one in func_win32_libid.
5412    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5413    lt_cv_file_magic_cmd='$OBJDUMP -f'
5414  fi
5415  ;;
5416
5417cegcc*)
5418  # use the weaker test based on 'objdump'. See mingw*.
5419  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5420  lt_cv_file_magic_cmd='$OBJDUMP -f'
5421  ;;
5422
5423darwin* | rhapsody*)
5424  lt_cv_deplibs_check_method=pass_all
5425  ;;
5426
5427freebsd* | dragonfly* | midnightbsd*)
5428  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5429    case $host_cpu in
5430    i*86 )
5431      # Not sure whether the presence of OpenBSD here was a mistake.
5432      # Let's accept both of them until this is cleared up.
5433      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5434      lt_cv_file_magic_cmd=$FILECMD
5435      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5436      ;;
5437    esac
5438  else
5439    lt_cv_deplibs_check_method=pass_all
5440  fi
5441  ;;
5442
5443haiku*)
5444  lt_cv_deplibs_check_method=pass_all
5445  ;;
5446
5447hpux10.20* | hpux11*)
5448  lt_cv_file_magic_cmd=$FILECMD
5449  case $host_cpu in
5450  ia64*)
5451    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5452    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5453    ;;
5454  hppa*64*)
5455    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]'
5456    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5457    ;;
5458  *)
5459    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5460    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5461    ;;
5462  esac
5463  ;;
5464
5465interix[3-9]*)
5466  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5467  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5468  ;;
5469
5470irix5* | irix6* | nonstopux*)
5471  case $LD in
5472  *-32|*"-32 ") libmagic=32-bit;;
5473  *-n32|*"-n32 ") libmagic=N32;;
5474  *-64|*"-64 ") libmagic=64-bit;;
5475  *) libmagic=never-match;;
5476  esac
5477  lt_cv_deplibs_check_method=pass_all
5478  ;;
5479
5480# This must be glibc/ELF.
5481linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5482  lt_cv_deplibs_check_method=pass_all
5483  ;;
5484
5485netbsd*)
5486  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5487    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5488  else
5489    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5490  fi
5491  ;;
5492
5493newos6*)
5494  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5495  lt_cv_file_magic_cmd=$FILECMD
5496  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5497  ;;
5498
5499*nto* | *qnx*)
5500  lt_cv_deplibs_check_method=pass_all
5501  ;;
5502
5503openbsd* | bitrig*)
5504  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5505    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5506  else
5507    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5508  fi
5509  ;;
5510
5511osf3* | osf4* | osf5*)
5512  lt_cv_deplibs_check_method=pass_all
5513  ;;
5514
5515rdos*)
5516  lt_cv_deplibs_check_method=pass_all
5517  ;;
5518
5519solaris*)
5520  lt_cv_deplibs_check_method=pass_all
5521  ;;
5522
5523sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5524  lt_cv_deplibs_check_method=pass_all
5525  ;;
5526
5527sysv4 | sysv4.3*)
5528  case $host_vendor in
5529  motorola)
5530    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]'
5531    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5532    ;;
5533  ncr)
5534    lt_cv_deplibs_check_method=pass_all
5535    ;;
5536  sequent)
5537    lt_cv_file_magic_cmd='/bin/file'
5538    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5539    ;;
5540  sni)
5541    lt_cv_file_magic_cmd='/bin/file'
5542    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5543    lt_cv_file_magic_test_file=/lib/libc.so
5544    ;;
5545  siemens)
5546    lt_cv_deplibs_check_method=pass_all
5547    ;;
5548  pc)
5549    lt_cv_deplibs_check_method=pass_all
5550    ;;
5551  esac
5552  ;;
5553
5554tpf*)
5555  lt_cv_deplibs_check_method=pass_all
5556  ;;
5557os2*)
5558  lt_cv_deplibs_check_method=pass_all
5559  ;;
5560esac
5561
5562fi
5563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5564printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5565
5566file_magic_glob=
5567want_nocaseglob=no
5568if test "$build" = "$host"; then
5569  case $host_os in
5570  mingw* | pw32*)
5571    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5572      want_nocaseglob=yes
5573    else
5574      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5575    fi
5576    ;;
5577  esac
5578fi
5579
5580file_magic_cmd=$lt_cv_file_magic_cmd
5581deplibs_check_method=$lt_cv_deplibs_check_method
5582test -z "$deplibs_check_method" && deplibs_check_method=unknown
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605if test -n "$ac_tool_prefix"; then
5606  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5607set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609printf %s "checking for $ac_word... " >&6; }
5610if test ${ac_cv_prog_DLLTOOL+y}
5611then :
5612  printf %s "(cached) " >&6
5613else $as_nop
5614  if test -n "$DLLTOOL"; then
5615  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5616else
5617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618for as_dir in $PATH
5619do
5620  IFS=$as_save_IFS
5621  case $as_dir in #(((
5622    '') as_dir=./ ;;
5623    */) ;;
5624    *) as_dir=$as_dir/ ;;
5625  esac
5626    for ac_exec_ext in '' $ac_executable_extensions; do
5627  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5628    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5629    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5630    break 2
5631  fi
5632done
5633  done
5634IFS=$as_save_IFS
5635
5636fi
5637fi
5638DLLTOOL=$ac_cv_prog_DLLTOOL
5639if test -n "$DLLTOOL"; then
5640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5641printf "%s\n" "$DLLTOOL" >&6; }
5642else
5643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644printf "%s\n" "no" >&6; }
5645fi
5646
5647
5648fi
5649if test -z "$ac_cv_prog_DLLTOOL"; then
5650  ac_ct_DLLTOOL=$DLLTOOL
5651  # Extract the first word of "dlltool", so it can be a program name with args.
5652set dummy dlltool; ac_word=$2
5653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654printf %s "checking for $ac_word... " >&6; }
5655if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5656then :
5657  printf %s "(cached) " >&6
5658else $as_nop
5659  if test -n "$ac_ct_DLLTOOL"; then
5660  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5661else
5662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663for as_dir in $PATH
5664do
5665  IFS=$as_save_IFS
5666  case $as_dir in #(((
5667    '') as_dir=./ ;;
5668    */) ;;
5669    *) as_dir=$as_dir/ ;;
5670  esac
5671    for ac_exec_ext in '' $ac_executable_extensions; do
5672  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5673    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5674    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5675    break 2
5676  fi
5677done
5678  done
5679IFS=$as_save_IFS
5680
5681fi
5682fi
5683ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5684if test -n "$ac_ct_DLLTOOL"; then
5685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5686printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5687else
5688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689printf "%s\n" "no" >&6; }
5690fi
5691
5692  if test "x$ac_ct_DLLTOOL" = x; then
5693    DLLTOOL="false"
5694  else
5695    case $cross_compiling:$ac_tool_warned in
5696yes:)
5697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699ac_tool_warned=yes ;;
5700esac
5701    DLLTOOL=$ac_ct_DLLTOOL
5702  fi
5703else
5704  DLLTOOL="$ac_cv_prog_DLLTOOL"
5705fi
5706
5707test -z "$DLLTOOL" && DLLTOOL=dlltool
5708
5709
5710
5711
5712
5713
5714
5715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5716printf %s "checking how to associate runtime and link libraries... " >&6; }
5717if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5718then :
5719  printf %s "(cached) " >&6
5720else $as_nop
5721  lt_cv_sharedlib_from_linklib_cmd='unknown'
5722
5723case $host_os in
5724cygwin* | mingw* | pw32* | cegcc*)
5725  # two different shell functions defined in ltmain.sh;
5726  # decide which one to use based on capabilities of $DLLTOOL
5727  case `$DLLTOOL --help 2>&1` in
5728  *--identify-strict*)
5729    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5730    ;;
5731  *)
5732    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5733    ;;
5734  esac
5735  ;;
5736*)
5737  # fallback: assume linklib IS sharedlib
5738  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5739  ;;
5740esac
5741
5742fi
5743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5744printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5745sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5746test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5747
5748
5749
5750
5751
5752
5753
5754
5755if test -n "$ac_tool_prefix"; then
5756  for ac_prog in ar
5757  do
5758    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5759set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761printf %s "checking for $ac_word... " >&6; }
5762if test ${ac_cv_prog_AR+y}
5763then :
5764  printf %s "(cached) " >&6
5765else $as_nop
5766  if test -n "$AR"; then
5767  ac_cv_prog_AR="$AR" # Let the user override the test.
5768else
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772  IFS=$as_save_IFS
5773  case $as_dir in #(((
5774    '') as_dir=./ ;;
5775    */) ;;
5776    *) as_dir=$as_dir/ ;;
5777  esac
5778    for ac_exec_ext in '' $ac_executable_extensions; do
5779  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5780    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5781    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5782    break 2
5783  fi
5784done
5785  done
5786IFS=$as_save_IFS
5787
5788fi
5789fi
5790AR=$ac_cv_prog_AR
5791if test -n "$AR"; then
5792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5793printf "%s\n" "$AR" >&6; }
5794else
5795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796printf "%s\n" "no" >&6; }
5797fi
5798
5799
5800    test -n "$AR" && break
5801  done
5802fi
5803if test -z "$AR"; then
5804  ac_ct_AR=$AR
5805  for ac_prog in ar
5806do
5807  # Extract the first word of "$ac_prog", so it can be a program name with args.
5808set dummy $ac_prog; ac_word=$2
5809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810printf %s "checking for $ac_word... " >&6; }
5811if test ${ac_cv_prog_ac_ct_AR+y}
5812then :
5813  printf %s "(cached) " >&6
5814else $as_nop
5815  if test -n "$ac_ct_AR"; then
5816  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5817else
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821  IFS=$as_save_IFS
5822  case $as_dir in #(((
5823    '') as_dir=./ ;;
5824    */) ;;
5825    *) as_dir=$as_dir/ ;;
5826  esac
5827    for ac_exec_ext in '' $ac_executable_extensions; do
5828  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5829    ac_cv_prog_ac_ct_AR="$ac_prog"
5830    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5831    break 2
5832  fi
5833done
5834  done
5835IFS=$as_save_IFS
5836
5837fi
5838fi
5839ac_ct_AR=$ac_cv_prog_ac_ct_AR
5840if test -n "$ac_ct_AR"; then
5841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5842printf "%s\n" "$ac_ct_AR" >&6; }
5843else
5844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845printf "%s\n" "no" >&6; }
5846fi
5847
5848
5849  test -n "$ac_ct_AR" && break
5850done
5851
5852  if test "x$ac_ct_AR" = x; then
5853    AR="false"
5854  else
5855    case $cross_compiling:$ac_tool_warned in
5856yes:)
5857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5858printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5859ac_tool_warned=yes ;;
5860esac
5861    AR=$ac_ct_AR
5862  fi
5863fi
5864
5865: ${AR=ar}
5866
5867
5868
5869
5870
5871
5872# Use ARFLAGS variable as AR's operation code to sync the variable naming with
5873# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
5874# higher priority because thats what people were doing historically (setting
5875# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
5876# variable obsoleted/removed.
5877
5878test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
5879lt_ar_flags=$AR_FLAGS
5880
5881
5882
5883
5884
5885
5886# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
5887# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
5888
5889
5890
5891
5892
5893
5894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5895printf %s "checking for archiver @FILE support... " >&6; }
5896if test ${lt_cv_ar_at_file+y}
5897then :
5898  printf %s "(cached) " >&6
5899else $as_nop
5900  lt_cv_ar_at_file=no
5901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902/* end confdefs.h.  */
5903
5904int
5905main (void)
5906{
5907
5908  ;
5909  return 0;
5910}
5911_ACEOF
5912if ac_fn_c_try_compile "$LINENO"
5913then :
5914  echo conftest.$ac_objext > conftest.lst
5915      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5916      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5917  (eval $lt_ar_try) 2>&5
5918  ac_status=$?
5919  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5920  test $ac_status = 0; }
5921      if test 0 -eq "$ac_status"; then
5922	# Ensure the archiver fails upon bogus file names.
5923	rm -f conftest.$ac_objext libconftest.a
5924	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5925  (eval $lt_ar_try) 2>&5
5926  ac_status=$?
5927  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5928  test $ac_status = 0; }
5929	if test 0 -ne "$ac_status"; then
5930          lt_cv_ar_at_file=@
5931        fi
5932      fi
5933      rm -f conftest.* libconftest.a
5934
5935fi
5936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5937
5938fi
5939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5940printf "%s\n" "$lt_cv_ar_at_file" >&6; }
5941
5942if test no = "$lt_cv_ar_at_file"; then
5943  archiver_list_spec=
5944else
5945  archiver_list_spec=$lt_cv_ar_at_file
5946fi
5947
5948
5949
5950
5951
5952
5953
5954if test -n "$ac_tool_prefix"; then
5955  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5956set dummy ${ac_tool_prefix}strip; ac_word=$2
5957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958printf %s "checking for $ac_word... " >&6; }
5959if test ${ac_cv_prog_STRIP+y}
5960then :
5961  printf %s "(cached) " >&6
5962else $as_nop
5963  if test -n "$STRIP"; then
5964  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969  IFS=$as_save_IFS
5970  case $as_dir in #(((
5971    '') as_dir=./ ;;
5972    */) ;;
5973    *) as_dir=$as_dir/ ;;
5974  esac
5975    for ac_exec_ext in '' $ac_executable_extensions; do
5976  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5977    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5978    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5979    break 2
5980  fi
5981done
5982  done
5983IFS=$as_save_IFS
5984
5985fi
5986fi
5987STRIP=$ac_cv_prog_STRIP
5988if test -n "$STRIP"; then
5989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5990printf "%s\n" "$STRIP" >&6; }
5991else
5992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993printf "%s\n" "no" >&6; }
5994fi
5995
5996
5997fi
5998if test -z "$ac_cv_prog_STRIP"; then
5999  ac_ct_STRIP=$STRIP
6000  # Extract the first word of "strip", so it can be a program name with args.
6001set dummy strip; ac_word=$2
6002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003printf %s "checking for $ac_word... " >&6; }
6004if test ${ac_cv_prog_ac_ct_STRIP+y}
6005then :
6006  printf %s "(cached) " >&6
6007else $as_nop
6008  if test -n "$ac_ct_STRIP"; then
6009  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6010else
6011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012for as_dir in $PATH
6013do
6014  IFS=$as_save_IFS
6015  case $as_dir in #(((
6016    '') as_dir=./ ;;
6017    */) ;;
6018    *) as_dir=$as_dir/ ;;
6019  esac
6020    for ac_exec_ext in '' $ac_executable_extensions; do
6021  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6022    ac_cv_prog_ac_ct_STRIP="strip"
6023    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6024    break 2
6025  fi
6026done
6027  done
6028IFS=$as_save_IFS
6029
6030fi
6031fi
6032ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6033if test -n "$ac_ct_STRIP"; then
6034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6035printf "%s\n" "$ac_ct_STRIP" >&6; }
6036else
6037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038printf "%s\n" "no" >&6; }
6039fi
6040
6041  if test "x$ac_ct_STRIP" = x; then
6042    STRIP=":"
6043  else
6044    case $cross_compiling:$ac_tool_warned in
6045yes:)
6046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6047printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6048ac_tool_warned=yes ;;
6049esac
6050    STRIP=$ac_ct_STRIP
6051  fi
6052else
6053  STRIP="$ac_cv_prog_STRIP"
6054fi
6055
6056test -z "$STRIP" && STRIP=:
6057
6058
6059
6060
6061
6062
6063if test -n "$ac_tool_prefix"; then
6064  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6065set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067printf %s "checking for $ac_word... " >&6; }
6068if test ${ac_cv_prog_RANLIB+y}
6069then :
6070  printf %s "(cached) " >&6
6071else $as_nop
6072  if test -n "$RANLIB"; then
6073  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6074else
6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078  IFS=$as_save_IFS
6079  case $as_dir in #(((
6080    '') as_dir=./ ;;
6081    */) ;;
6082    *) as_dir=$as_dir/ ;;
6083  esac
6084    for ac_exec_ext in '' $ac_executable_extensions; do
6085  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6086    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6087    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6088    break 2
6089  fi
6090done
6091  done
6092IFS=$as_save_IFS
6093
6094fi
6095fi
6096RANLIB=$ac_cv_prog_RANLIB
6097if test -n "$RANLIB"; then
6098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6099printf "%s\n" "$RANLIB" >&6; }
6100else
6101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102printf "%s\n" "no" >&6; }
6103fi
6104
6105
6106fi
6107if test -z "$ac_cv_prog_RANLIB"; then
6108  ac_ct_RANLIB=$RANLIB
6109  # Extract the first word of "ranlib", so it can be a program name with args.
6110set dummy ranlib; ac_word=$2
6111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112printf %s "checking for $ac_word... " >&6; }
6113if test ${ac_cv_prog_ac_ct_RANLIB+y}
6114then :
6115  printf %s "(cached) " >&6
6116else $as_nop
6117  if test -n "$ac_ct_RANLIB"; then
6118  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6119else
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123  IFS=$as_save_IFS
6124  case $as_dir in #(((
6125    '') as_dir=./ ;;
6126    */) ;;
6127    *) as_dir=$as_dir/ ;;
6128  esac
6129    for ac_exec_ext in '' $ac_executable_extensions; do
6130  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6131    ac_cv_prog_ac_ct_RANLIB="ranlib"
6132    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6133    break 2
6134  fi
6135done
6136  done
6137IFS=$as_save_IFS
6138
6139fi
6140fi
6141ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6142if test -n "$ac_ct_RANLIB"; then
6143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6144printf "%s\n" "$ac_ct_RANLIB" >&6; }
6145else
6146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147printf "%s\n" "no" >&6; }
6148fi
6149
6150  if test "x$ac_ct_RANLIB" = x; then
6151    RANLIB=":"
6152  else
6153    case $cross_compiling:$ac_tool_warned in
6154yes:)
6155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157ac_tool_warned=yes ;;
6158esac
6159    RANLIB=$ac_ct_RANLIB
6160  fi
6161else
6162  RANLIB="$ac_cv_prog_RANLIB"
6163fi
6164
6165test -z "$RANLIB" && RANLIB=:
6166
6167
6168
6169
6170
6171
6172# Determine commands to create old-style static archives.
6173old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6174old_postinstall_cmds='chmod 644 $oldlib'
6175old_postuninstall_cmds=
6176
6177if test -n "$RANLIB"; then
6178  case $host_os in
6179  bitrig* | openbsd*)
6180    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6181    ;;
6182  *)
6183    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6184    ;;
6185  esac
6186  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6187fi
6188
6189case $host_os in
6190  darwin*)
6191    lock_old_archive_extraction=yes ;;
6192  *)
6193    lock_old_archive_extraction=no ;;
6194esac
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216for ac_prog in gawk mawk nawk awk
6217do
6218  # Extract the first word of "$ac_prog", so it can be a program name with args.
6219set dummy $ac_prog; ac_word=$2
6220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221printf %s "checking for $ac_word... " >&6; }
6222if test ${ac_cv_prog_AWK+y}
6223then :
6224  printf %s "(cached) " >&6
6225else $as_nop
6226  if test -n "$AWK"; then
6227  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232  IFS=$as_save_IFS
6233  case $as_dir in #(((
6234    '') as_dir=./ ;;
6235    */) ;;
6236    *) as_dir=$as_dir/ ;;
6237  esac
6238    for ac_exec_ext in '' $ac_executable_extensions; do
6239  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6240    ac_cv_prog_AWK="$ac_prog"
6241    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6242    break 2
6243  fi
6244done
6245  done
6246IFS=$as_save_IFS
6247
6248fi
6249fi
6250AWK=$ac_cv_prog_AWK
6251if test -n "$AWK"; then
6252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6253printf "%s\n" "$AWK" >&6; }
6254else
6255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256printf "%s\n" "no" >&6; }
6257fi
6258
6259
6260  test -n "$AWK" && break
6261done
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281# If no C compiler was specified, use CC.
6282LTCC=${LTCC-"$CC"}
6283
6284# If no C compiler flags were specified, use CFLAGS.
6285LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6286
6287# Allow CC to be a program name with arguments.
6288compiler=$CC
6289
6290
6291# Check for command to grab the raw symbol name followed by C symbol from nm.
6292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6293printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6294if test ${lt_cv_sys_global_symbol_pipe+y}
6295then :
6296  printf %s "(cached) " >&6
6297else $as_nop
6298
6299# These are sane defaults that work on at least a few old systems.
6300# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6301
6302# Character class describing NM global symbol codes.
6303symcode='[BCDEGRST]'
6304
6305# Regexp to match symbols that can be accessed directly from C.
6306sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6307
6308# Define system-specific variables.
6309case $host_os in
6310aix*)
6311  symcode='[BCDT]'
6312  ;;
6313cygwin* | mingw* | pw32* | cegcc*)
6314  symcode='[ABCDGISTW]'
6315  ;;
6316hpux*)
6317  if test ia64 = "$host_cpu"; then
6318    symcode='[ABCDEGRST]'
6319  fi
6320  ;;
6321irix* | nonstopux*)
6322  symcode='[BCDEGRST]'
6323  ;;
6324osf*)
6325  symcode='[BCDEGQRST]'
6326  ;;
6327solaris*)
6328  symcode='[BDRT]'
6329  ;;
6330sco3.2v5*)
6331  symcode='[DT]'
6332  ;;
6333sysv4.2uw2*)
6334  symcode='[DT]'
6335  ;;
6336sysv5* | sco5v6* | unixware* | OpenUNIX*)
6337  symcode='[ABDT]'
6338  ;;
6339sysv4)
6340  symcode='[DFNSTU]'
6341  ;;
6342esac
6343
6344# If we're using GNU nm, then use its standard symbol codes.
6345case `$NM -V 2>&1` in
6346*GNU* | *'with BFD'*)
6347  symcode='[ABCDGIRSTW]' ;;
6348esac
6349
6350if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6351  # Gets list of data symbols to import.
6352  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6353  # Adjust the below global symbol transforms to fixup imported variables.
6354  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6355  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6356  lt_c_name_lib_hook="\
6357  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6358  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6359else
6360  # Disable hooks by default.
6361  lt_cv_sys_global_symbol_to_import=
6362  lt_cdecl_hook=
6363  lt_c_name_hook=
6364  lt_c_name_lib_hook=
6365fi
6366
6367# Transform an extracted symbol line into a proper C declaration.
6368# Some systems (esp. on ia64) link data and code symbols differently,
6369# so use this general approach.
6370lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6371$lt_cdecl_hook\
6372" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6373" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6374
6375# Transform an extracted symbol line into symbol name and symbol address
6376lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6377$lt_c_name_hook\
6378" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6379" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6380
6381# Transform an extracted symbol line into symbol name with lib prefix and
6382# symbol address.
6383lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6384$lt_c_name_lib_hook\
6385" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6386" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6387" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6388
6389# Handle CRLF in mingw tool chain
6390opt_cr=
6391case $build_os in
6392mingw*)
6393  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6394  ;;
6395esac
6396
6397# Try without a prefix underscore, then with it.
6398for ac_symprfx in "" "_"; do
6399
6400  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6401  symxfrm="\\1 $ac_symprfx\\2 \\2"
6402
6403  # Write the raw and C identifiers.
6404  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6405    # Fake it for dumpbin and say T for any non-static function,
6406    # D for any global variable and I for any imported variable.
6407    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6408    # which start with @ or ?.
6409    lt_cv_sys_global_symbol_pipe="$AWK '"\
6410"     {last_section=section; section=\$ 3};"\
6411"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6412"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6413"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6414"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6415"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6416"     \$ 0!~/External *\|/{next};"\
6417"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6418"     {if(hide[section]) next};"\
6419"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6420"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6421"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6422"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6423"     ' prfx=^$ac_symprfx"
6424  else
6425    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6426  fi
6427  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6428
6429  # Check to see that the pipe works correctly.
6430  pipe_works=no
6431
6432  rm -f conftest*
6433  cat > conftest.$ac_ext <<_LT_EOF
6434#ifdef __cplusplus
6435extern "C" {
6436#endif
6437char nm_test_var;
6438void nm_test_func(void);
6439void nm_test_func(void){}
6440#ifdef __cplusplus
6441}
6442#endif
6443int main(){nm_test_var='a';nm_test_func();return(0);}
6444_LT_EOF
6445
6446  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6447  (eval $ac_compile) 2>&5
6448  ac_status=$?
6449  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6450  test $ac_status = 0; }; then
6451    # Now try to grab the symbols.
6452    nlist=conftest.nm
6453    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6454  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6455  ac_status=$?
6456  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6457  test $ac_status = 0; } && test -s "$nlist"; then
6458      # Try sorting and uniquifying the output.
6459      if sort "$nlist" | uniq > "$nlist"T; then
6460	mv -f "$nlist"T "$nlist"
6461      else
6462	rm -f "$nlist"T
6463      fi
6464
6465      # Make sure that we snagged all the symbols we need.
6466      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6467	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6468	  cat <<_LT_EOF > conftest.$ac_ext
6469/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6470#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6471/* DATA imports from DLLs on WIN32 can't be const, because runtime
6472   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6473# define LT_DLSYM_CONST
6474#elif defined __osf__
6475/* This system does not cope well with relocations in const data.  */
6476# define LT_DLSYM_CONST
6477#else
6478# define LT_DLSYM_CONST const
6479#endif
6480
6481#ifdef __cplusplus
6482extern "C" {
6483#endif
6484
6485_LT_EOF
6486	  # Now generate the symbol file.
6487	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6488
6489	  cat <<_LT_EOF >> conftest.$ac_ext
6490
6491/* The mapping between symbol names and symbols.  */
6492LT_DLSYM_CONST struct {
6493  const char *name;
6494  void       *address;
6495}
6496lt__PROGRAM__LTX_preloaded_symbols[] =
6497{
6498  { "@PROGRAM@", (void *) 0 },
6499_LT_EOF
6500	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6501	  cat <<\_LT_EOF >> conftest.$ac_ext
6502  {0, (void *) 0}
6503};
6504
6505/* This works around a problem in FreeBSD linker */
6506#ifdef FREEBSD_WORKAROUND
6507static const void *lt_preloaded_setup() {
6508  return lt__PROGRAM__LTX_preloaded_symbols;
6509}
6510#endif
6511
6512#ifdef __cplusplus
6513}
6514#endif
6515_LT_EOF
6516	  # Now try linking the two files.
6517	  mv conftest.$ac_objext conftstm.$ac_objext
6518	  lt_globsym_save_LIBS=$LIBS
6519	  lt_globsym_save_CFLAGS=$CFLAGS
6520	  LIBS=conftstm.$ac_objext
6521	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6522	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6523  (eval $ac_link) 2>&5
6524  ac_status=$?
6525  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6527	    pipe_works=yes
6528	  fi
6529	  LIBS=$lt_globsym_save_LIBS
6530	  CFLAGS=$lt_globsym_save_CFLAGS
6531	else
6532	  echo "cannot find nm_test_func in $nlist" >&5
6533	fi
6534      else
6535	echo "cannot find nm_test_var in $nlist" >&5
6536      fi
6537    else
6538      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6539    fi
6540  else
6541    echo "$progname: failed program was:" >&5
6542    cat conftest.$ac_ext >&5
6543  fi
6544  rm -rf conftest* conftst*
6545
6546  # Do not use the global_symbol_pipe unless it works.
6547  if test yes = "$pipe_works"; then
6548    break
6549  else
6550    lt_cv_sys_global_symbol_pipe=
6551  fi
6552done
6553
6554fi
6555
6556if test -z "$lt_cv_sys_global_symbol_pipe"; then
6557  lt_cv_sys_global_symbol_to_cdecl=
6558fi
6559if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6561printf "%s\n" "failed" >&6; }
6562else
6563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6564printf "%s\n" "ok" >&6; }
6565fi
6566
6567# Response file support.
6568if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6569  nm_file_list_spec='@'
6570elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6571  nm_file_list_spec='@'
6572fi
6573
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{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6611printf %s "checking for sysroot... " >&6; }
6612
6613# Check whether --with-sysroot was given.
6614if test ${with_sysroot+y}
6615then :
6616  withval=$with_sysroot;
6617else $as_nop
6618  with_sysroot=no
6619fi
6620
6621
6622lt_sysroot=
6623case $with_sysroot in #(
6624 yes)
6625   if test yes = "$GCC"; then
6626     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6627   fi
6628   ;; #(
6629 /*)
6630   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
6631   ;; #(
6632 no|'')
6633   ;; #(
6634 *)
6635   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6636printf "%s\n" "$with_sysroot" >&6; }
6637   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6638   ;;
6639esac
6640
6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6642printf "%s\n" "${lt_sysroot:-no}" >&6; }
6643
6644
6645
6646
6647
6648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6649printf %s "checking for a working dd... " >&6; }
6650if test ${ac_cv_path_lt_DD+y}
6651then :
6652  printf %s "(cached) " >&6
6653else $as_nop
6654  printf 0123456789abcdef0123456789abcdef >conftest.i
6655cat conftest.i conftest.i >conftest2.i
6656: ${lt_DD:=$DD}
6657if test -z "$lt_DD"; then
6658  ac_path_lt_DD_found=false
6659  # Loop through the user's path and test for each of PROGNAME-LIST
6660  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661for as_dir in $PATH
6662do
6663  IFS=$as_save_IFS
6664  case $as_dir in #(((
6665    '') as_dir=./ ;;
6666    */) ;;
6667    *) as_dir=$as_dir/ ;;
6668  esac
6669    for ac_prog in dd
6670   do
6671    for ac_exec_ext in '' $ac_executable_extensions; do
6672      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6673      as_fn_executable_p "$ac_path_lt_DD" || continue
6674if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6675  cmp -s conftest.i conftest.out \
6676  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6677fi
6678      $ac_path_lt_DD_found && break 3
6679    done
6680  done
6681  done
6682IFS=$as_save_IFS
6683  if test -z "$ac_cv_path_lt_DD"; then
6684    :
6685  fi
6686else
6687  ac_cv_path_lt_DD=$lt_DD
6688fi
6689
6690rm -f conftest.i conftest2.i conftest.out
6691fi
6692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6693printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6694
6695
6696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6697printf %s "checking how to truncate binary pipes... " >&6; }
6698if test ${lt_cv_truncate_bin+y}
6699then :
6700  printf %s "(cached) " >&6
6701else $as_nop
6702  printf 0123456789abcdef0123456789abcdef >conftest.i
6703cat conftest.i conftest.i >conftest2.i
6704lt_cv_truncate_bin=
6705if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6706  cmp -s conftest.i conftest.out \
6707  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6708fi
6709rm -f conftest.i conftest2.i conftest.out
6710test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6711fi
6712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6713printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6714
6715
6716
6717
6718
6719
6720
6721# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6722func_cc_basename ()
6723{
6724    for cc_temp in $*""; do
6725      case $cc_temp in
6726        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6727        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6728        \-*) ;;
6729        *) break;;
6730      esac
6731    done
6732    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6733}
6734
6735# Check whether --enable-libtool-lock was given.
6736if test ${enable_libtool_lock+y}
6737then :
6738  enableval=$enable_libtool_lock;
6739fi
6740
6741test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6742
6743# Some flags need to be propagated to the compiler or linker for good
6744# libtool support.
6745case $host in
6746ia64-*-hpux*)
6747  # Find out what ABI is being produced by ac_compile, and set mode
6748  # options accordingly.
6749  echo 'int i;' > conftest.$ac_ext
6750  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6751  (eval $ac_compile) 2>&5
6752  ac_status=$?
6753  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6754  test $ac_status = 0; }; then
6755    case `$FILECMD conftest.$ac_objext` in
6756      *ELF-32*)
6757	HPUX_IA64_MODE=32
6758	;;
6759      *ELF-64*)
6760	HPUX_IA64_MODE=64
6761	;;
6762    esac
6763  fi
6764  rm -rf conftest*
6765  ;;
6766*-*-irix6*)
6767  # Find out what ABI is being produced by ac_compile, and set linker
6768  # options accordingly.
6769  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6770  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6771  (eval $ac_compile) 2>&5
6772  ac_status=$?
6773  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774  test $ac_status = 0; }; then
6775    if test yes = "$lt_cv_prog_gnu_ld"; then
6776      case `$FILECMD conftest.$ac_objext` in
6777	*32-bit*)
6778	  LD="${LD-ld} -melf32bsmip"
6779	  ;;
6780	*N32*)
6781	  LD="${LD-ld} -melf32bmipn32"
6782	  ;;
6783	*64-bit*)
6784	  LD="${LD-ld} -melf64bmip"
6785	;;
6786      esac
6787    else
6788      case `$FILECMD conftest.$ac_objext` in
6789	*32-bit*)
6790	  LD="${LD-ld} -32"
6791	  ;;
6792	*N32*)
6793	  LD="${LD-ld} -n32"
6794	  ;;
6795	*64-bit*)
6796	  LD="${LD-ld} -64"
6797	  ;;
6798      esac
6799    fi
6800  fi
6801  rm -rf conftest*
6802  ;;
6803
6804mips64*-*linux*)
6805  # Find out what ABI is being produced by ac_compile, and set linker
6806  # options accordingly.
6807  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6808  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6809  (eval $ac_compile) 2>&5
6810  ac_status=$?
6811  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6812  test $ac_status = 0; }; then
6813    emul=elf
6814    case `$FILECMD conftest.$ac_objext` in
6815      *32-bit*)
6816	emul="${emul}32"
6817	;;
6818      *64-bit*)
6819	emul="${emul}64"
6820	;;
6821    esac
6822    case `$FILECMD conftest.$ac_objext` in
6823      *MSB*)
6824	emul="${emul}btsmip"
6825	;;
6826      *LSB*)
6827	emul="${emul}ltsmip"
6828	;;
6829    esac
6830    case `$FILECMD conftest.$ac_objext` in
6831      *N32*)
6832	emul="${emul}n32"
6833	;;
6834    esac
6835    LD="${LD-ld} -m $emul"
6836  fi
6837  rm -rf conftest*
6838  ;;
6839
6840x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6841s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6842  # Find out what ABI is being produced by ac_compile, and set linker
6843  # options accordingly.  Note that the listed cases only cover the
6844  # situations where additional linker options are needed (such as when
6845  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6846  # vice versa); the common cases where no linker options are needed do
6847  # not appear in the list.
6848  echo 'int i;' > conftest.$ac_ext
6849  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6850  (eval $ac_compile) 2>&5
6851  ac_status=$?
6852  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853  test $ac_status = 0; }; then
6854    case `$FILECMD conftest.o` in
6855      *32-bit*)
6856	case $host in
6857	  x86_64-*kfreebsd*-gnu)
6858	    LD="${LD-ld} -m elf_i386_fbsd"
6859	    ;;
6860	  x86_64-*linux*)
6861	    case `$FILECMD conftest.o` in
6862	      *x86-64*)
6863		LD="${LD-ld} -m elf32_x86_64"
6864		;;
6865	      *)
6866		LD="${LD-ld} -m elf_i386"
6867		;;
6868	    esac
6869	    ;;
6870	  powerpc64le-*linux*)
6871	    LD="${LD-ld} -m elf32lppclinux"
6872	    ;;
6873	  powerpc64-*linux*)
6874	    LD="${LD-ld} -m elf32ppclinux"
6875	    ;;
6876	  s390x-*linux*)
6877	    LD="${LD-ld} -m elf_s390"
6878	    ;;
6879	  sparc64-*linux*)
6880	    LD="${LD-ld} -m elf32_sparc"
6881	    ;;
6882	esac
6883	;;
6884      *64-bit*)
6885	case $host in
6886	  x86_64-*kfreebsd*-gnu)
6887	    LD="${LD-ld} -m elf_x86_64_fbsd"
6888	    ;;
6889	  x86_64-*linux*)
6890	    LD="${LD-ld} -m elf_x86_64"
6891	    ;;
6892	  powerpcle-*linux*)
6893	    LD="${LD-ld} -m elf64lppc"
6894	    ;;
6895	  powerpc-*linux*)
6896	    LD="${LD-ld} -m elf64ppc"
6897	    ;;
6898	  s390*-*linux*|s390*-*tpf*)
6899	    LD="${LD-ld} -m elf64_s390"
6900	    ;;
6901	  sparc*-*linux*)
6902	    LD="${LD-ld} -m elf64_sparc"
6903	    ;;
6904	esac
6905	;;
6906    esac
6907  fi
6908  rm -rf conftest*
6909  ;;
6910
6911*-*-sco3.2v5*)
6912  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6913  SAVE_CFLAGS=$CFLAGS
6914  CFLAGS="$CFLAGS -belf"
6915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6916printf %s "checking whether the C compiler needs -belf... " >&6; }
6917if test ${lt_cv_cc_needs_belf+y}
6918then :
6919  printf %s "(cached) " >&6
6920else $as_nop
6921  ac_ext=c
6922ac_cpp='$CPP $CPPFLAGS'
6923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925ac_compiler_gnu=$ac_cv_c_compiler_gnu
6926
6927     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928/* end confdefs.h.  */
6929
6930int
6931main (void)
6932{
6933
6934  ;
6935  return 0;
6936}
6937_ACEOF
6938if ac_fn_c_try_link "$LINENO"
6939then :
6940  lt_cv_cc_needs_belf=yes
6941else $as_nop
6942  lt_cv_cc_needs_belf=no
6943fi
6944rm -f core conftest.err conftest.$ac_objext conftest.beam \
6945    conftest$ac_exeext conftest.$ac_ext
6946     ac_ext=c
6947ac_cpp='$CPP $CPPFLAGS'
6948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950ac_compiler_gnu=$ac_cv_c_compiler_gnu
6951
6952fi
6953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6954printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
6955  if test yes != "$lt_cv_cc_needs_belf"; then
6956    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6957    CFLAGS=$SAVE_CFLAGS
6958  fi
6959  ;;
6960*-*solaris*)
6961  # Find out what ABI is being produced by ac_compile, and set linker
6962  # options accordingly.
6963  echo 'int i;' > conftest.$ac_ext
6964  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6965  (eval $ac_compile) 2>&5
6966  ac_status=$?
6967  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6968  test $ac_status = 0; }; then
6969    case `$FILECMD conftest.o` in
6970    *64-bit*)
6971      case $lt_cv_prog_gnu_ld in
6972      yes*)
6973        case $host in
6974        i?86-*-solaris*|x86_64-*-solaris*)
6975          LD="${LD-ld} -m elf_x86_64"
6976          ;;
6977        sparc*-*-solaris*)
6978          LD="${LD-ld} -m elf64_sparc"
6979          ;;
6980        esac
6981        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6982        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6983          LD=${LD-ld}_sol2
6984        fi
6985        ;;
6986      *)
6987	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6988	  LD="${LD-ld} -64"
6989	fi
6990	;;
6991      esac
6992      ;;
6993    esac
6994  fi
6995  rm -rf conftest*
6996  ;;
6997esac
6998
6999need_locks=$enable_libtool_lock
7000
7001if test -n "$ac_tool_prefix"; then
7002  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7003set dummy ${ac_tool_prefix}mt; ac_word=$2
7004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005printf %s "checking for $ac_word... " >&6; }
7006if test ${ac_cv_prog_MANIFEST_TOOL+y}
7007then :
7008  printf %s "(cached) " >&6
7009else $as_nop
7010  if test -n "$MANIFEST_TOOL"; then
7011  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7012else
7013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016  IFS=$as_save_IFS
7017  case $as_dir in #(((
7018    '') as_dir=./ ;;
7019    */) ;;
7020    *) as_dir=$as_dir/ ;;
7021  esac
7022    for ac_exec_ext in '' $ac_executable_extensions; do
7023  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7024    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7025    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7026    break 2
7027  fi
7028done
7029  done
7030IFS=$as_save_IFS
7031
7032fi
7033fi
7034MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7035if test -n "$MANIFEST_TOOL"; then
7036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7037printf "%s\n" "$MANIFEST_TOOL" >&6; }
7038else
7039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040printf "%s\n" "no" >&6; }
7041fi
7042
7043
7044fi
7045if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7046  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7047  # Extract the first word of "mt", so it can be a program name with args.
7048set dummy mt; ac_word=$2
7049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050printf %s "checking for $ac_word... " >&6; }
7051if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7052then :
7053  printf %s "(cached) " >&6
7054else $as_nop
7055  if test -n "$ac_ct_MANIFEST_TOOL"; then
7056  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7057else
7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061  IFS=$as_save_IFS
7062  case $as_dir in #(((
7063    '') as_dir=./ ;;
7064    */) ;;
7065    *) as_dir=$as_dir/ ;;
7066  esac
7067    for ac_exec_ext in '' $ac_executable_extensions; do
7068  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7069    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7070    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7071    break 2
7072  fi
7073done
7074  done
7075IFS=$as_save_IFS
7076
7077fi
7078fi
7079ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7080if test -n "$ac_ct_MANIFEST_TOOL"; then
7081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7082printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7083else
7084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085printf "%s\n" "no" >&6; }
7086fi
7087
7088  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7089    MANIFEST_TOOL=":"
7090  else
7091    case $cross_compiling:$ac_tool_warned in
7092yes:)
7093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7094printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7095ac_tool_warned=yes ;;
7096esac
7097    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7098  fi
7099else
7100  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7101fi
7102
7103test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7105printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7106if test ${lt_cv_path_mainfest_tool+y}
7107then :
7108  printf %s "(cached) " >&6
7109else $as_nop
7110  lt_cv_path_mainfest_tool=no
7111  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7112  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7113  cat conftest.err >&5
7114  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7115    lt_cv_path_mainfest_tool=yes
7116  fi
7117  rm -f conftest*
7118fi
7119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7120printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7121if test yes != "$lt_cv_path_mainfest_tool"; then
7122  MANIFEST_TOOL=:
7123fi
7124
7125
7126
7127
7128
7129
7130  case $host_os in
7131    rhapsody* | darwin*)
7132    if test -n "$ac_tool_prefix"; then
7133  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7134set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136printf %s "checking for $ac_word... " >&6; }
7137if test ${ac_cv_prog_DSYMUTIL+y}
7138then :
7139  printf %s "(cached) " >&6
7140else $as_nop
7141  if test -n "$DSYMUTIL"; then
7142  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7143else
7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145for as_dir in $PATH
7146do
7147  IFS=$as_save_IFS
7148  case $as_dir in #(((
7149    '') as_dir=./ ;;
7150    */) ;;
7151    *) as_dir=$as_dir/ ;;
7152  esac
7153    for ac_exec_ext in '' $ac_executable_extensions; do
7154  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7155    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7156    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7157    break 2
7158  fi
7159done
7160  done
7161IFS=$as_save_IFS
7162
7163fi
7164fi
7165DSYMUTIL=$ac_cv_prog_DSYMUTIL
7166if test -n "$DSYMUTIL"; then
7167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7168printf "%s\n" "$DSYMUTIL" >&6; }
7169else
7170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171printf "%s\n" "no" >&6; }
7172fi
7173
7174
7175fi
7176if test -z "$ac_cv_prog_DSYMUTIL"; then
7177  ac_ct_DSYMUTIL=$DSYMUTIL
7178  # Extract the first word of "dsymutil", so it can be a program name with args.
7179set dummy dsymutil; ac_word=$2
7180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181printf %s "checking for $ac_word... " >&6; }
7182if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7183then :
7184  printf %s "(cached) " >&6
7185else $as_nop
7186  if test -n "$ac_ct_DSYMUTIL"; then
7187  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7188else
7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192  IFS=$as_save_IFS
7193  case $as_dir in #(((
7194    '') as_dir=./ ;;
7195    */) ;;
7196    *) as_dir=$as_dir/ ;;
7197  esac
7198    for ac_exec_ext in '' $ac_executable_extensions; do
7199  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7200    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7201    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7202    break 2
7203  fi
7204done
7205  done
7206IFS=$as_save_IFS
7207
7208fi
7209fi
7210ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7211if test -n "$ac_ct_DSYMUTIL"; then
7212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7213printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7214else
7215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216printf "%s\n" "no" >&6; }
7217fi
7218
7219  if test "x$ac_ct_DSYMUTIL" = x; then
7220    DSYMUTIL=":"
7221  else
7222    case $cross_compiling:$ac_tool_warned in
7223yes:)
7224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7225printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7226ac_tool_warned=yes ;;
7227esac
7228    DSYMUTIL=$ac_ct_DSYMUTIL
7229  fi
7230else
7231  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7232fi
7233
7234    if test -n "$ac_tool_prefix"; then
7235  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7236set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238printf %s "checking for $ac_word... " >&6; }
7239if test ${ac_cv_prog_NMEDIT+y}
7240then :
7241  printf %s "(cached) " >&6
7242else $as_nop
7243  if test -n "$NMEDIT"; then
7244  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7245else
7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249  IFS=$as_save_IFS
7250  case $as_dir in #(((
7251    '') as_dir=./ ;;
7252    */) ;;
7253    *) as_dir=$as_dir/ ;;
7254  esac
7255    for ac_exec_ext in '' $ac_executable_extensions; do
7256  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7257    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7258    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7259    break 2
7260  fi
7261done
7262  done
7263IFS=$as_save_IFS
7264
7265fi
7266fi
7267NMEDIT=$ac_cv_prog_NMEDIT
7268if test -n "$NMEDIT"; then
7269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7270printf "%s\n" "$NMEDIT" >&6; }
7271else
7272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273printf "%s\n" "no" >&6; }
7274fi
7275
7276
7277fi
7278if test -z "$ac_cv_prog_NMEDIT"; then
7279  ac_ct_NMEDIT=$NMEDIT
7280  # Extract the first word of "nmedit", so it can be a program name with args.
7281set dummy nmedit; ac_word=$2
7282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283printf %s "checking for $ac_word... " >&6; }
7284if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7285then :
7286  printf %s "(cached) " >&6
7287else $as_nop
7288  if test -n "$ac_ct_NMEDIT"; then
7289  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7290else
7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294  IFS=$as_save_IFS
7295  case $as_dir in #(((
7296    '') as_dir=./ ;;
7297    */) ;;
7298    *) as_dir=$as_dir/ ;;
7299  esac
7300    for ac_exec_ext in '' $ac_executable_extensions; do
7301  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7302    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7303    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7304    break 2
7305  fi
7306done
7307  done
7308IFS=$as_save_IFS
7309
7310fi
7311fi
7312ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7313if test -n "$ac_ct_NMEDIT"; then
7314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7315printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7316else
7317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318printf "%s\n" "no" >&6; }
7319fi
7320
7321  if test "x$ac_ct_NMEDIT" = x; then
7322    NMEDIT=":"
7323  else
7324    case $cross_compiling:$ac_tool_warned in
7325yes:)
7326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328ac_tool_warned=yes ;;
7329esac
7330    NMEDIT=$ac_ct_NMEDIT
7331  fi
7332else
7333  NMEDIT="$ac_cv_prog_NMEDIT"
7334fi
7335
7336    if test -n "$ac_tool_prefix"; then
7337  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7338set dummy ${ac_tool_prefix}lipo; ac_word=$2
7339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340printf %s "checking for $ac_word... " >&6; }
7341if test ${ac_cv_prog_LIPO+y}
7342then :
7343  printf %s "(cached) " >&6
7344else $as_nop
7345  if test -n "$LIPO"; then
7346  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7347else
7348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351  IFS=$as_save_IFS
7352  case $as_dir in #(((
7353    '') as_dir=./ ;;
7354    */) ;;
7355    *) as_dir=$as_dir/ ;;
7356  esac
7357    for ac_exec_ext in '' $ac_executable_extensions; do
7358  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7359    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7360    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7361    break 2
7362  fi
7363done
7364  done
7365IFS=$as_save_IFS
7366
7367fi
7368fi
7369LIPO=$ac_cv_prog_LIPO
7370if test -n "$LIPO"; then
7371  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7372printf "%s\n" "$LIPO" >&6; }
7373else
7374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375printf "%s\n" "no" >&6; }
7376fi
7377
7378
7379fi
7380if test -z "$ac_cv_prog_LIPO"; then
7381  ac_ct_LIPO=$LIPO
7382  # Extract the first word of "lipo", so it can be a program name with args.
7383set dummy lipo; ac_word=$2
7384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385printf %s "checking for $ac_word... " >&6; }
7386if test ${ac_cv_prog_ac_ct_LIPO+y}
7387then :
7388  printf %s "(cached) " >&6
7389else $as_nop
7390  if test -n "$ac_ct_LIPO"; then
7391  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7392else
7393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394for as_dir in $PATH
7395do
7396  IFS=$as_save_IFS
7397  case $as_dir in #(((
7398    '') as_dir=./ ;;
7399    */) ;;
7400    *) as_dir=$as_dir/ ;;
7401  esac
7402    for ac_exec_ext in '' $ac_executable_extensions; do
7403  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7404    ac_cv_prog_ac_ct_LIPO="lipo"
7405    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7406    break 2
7407  fi
7408done
7409  done
7410IFS=$as_save_IFS
7411
7412fi
7413fi
7414ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7415if test -n "$ac_ct_LIPO"; then
7416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7417printf "%s\n" "$ac_ct_LIPO" >&6; }
7418else
7419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420printf "%s\n" "no" >&6; }
7421fi
7422
7423  if test "x$ac_ct_LIPO" = x; then
7424    LIPO=":"
7425  else
7426    case $cross_compiling:$ac_tool_warned in
7427yes:)
7428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430ac_tool_warned=yes ;;
7431esac
7432    LIPO=$ac_ct_LIPO
7433  fi
7434else
7435  LIPO="$ac_cv_prog_LIPO"
7436fi
7437
7438    if test -n "$ac_tool_prefix"; then
7439  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7440set dummy ${ac_tool_prefix}otool; ac_word=$2
7441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442printf %s "checking for $ac_word... " >&6; }
7443if test ${ac_cv_prog_OTOOL+y}
7444then :
7445  printf %s "(cached) " >&6
7446else $as_nop
7447  if test -n "$OTOOL"; then
7448  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7449else
7450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451for as_dir in $PATH
7452do
7453  IFS=$as_save_IFS
7454  case $as_dir in #(((
7455    '') as_dir=./ ;;
7456    */) ;;
7457    *) as_dir=$as_dir/ ;;
7458  esac
7459    for ac_exec_ext in '' $ac_executable_extensions; do
7460  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7461    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7462    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7463    break 2
7464  fi
7465done
7466  done
7467IFS=$as_save_IFS
7468
7469fi
7470fi
7471OTOOL=$ac_cv_prog_OTOOL
7472if test -n "$OTOOL"; then
7473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7474printf "%s\n" "$OTOOL" >&6; }
7475else
7476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477printf "%s\n" "no" >&6; }
7478fi
7479
7480
7481fi
7482if test -z "$ac_cv_prog_OTOOL"; then
7483  ac_ct_OTOOL=$OTOOL
7484  # Extract the first word of "otool", so it can be a program name with args.
7485set dummy otool; ac_word=$2
7486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487printf %s "checking for $ac_word... " >&6; }
7488if test ${ac_cv_prog_ac_ct_OTOOL+y}
7489then :
7490  printf %s "(cached) " >&6
7491else $as_nop
7492  if test -n "$ac_ct_OTOOL"; then
7493  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7494else
7495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496for as_dir in $PATH
7497do
7498  IFS=$as_save_IFS
7499  case $as_dir in #(((
7500    '') as_dir=./ ;;
7501    */) ;;
7502    *) as_dir=$as_dir/ ;;
7503  esac
7504    for ac_exec_ext in '' $ac_executable_extensions; do
7505  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7506    ac_cv_prog_ac_ct_OTOOL="otool"
7507    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7508    break 2
7509  fi
7510done
7511  done
7512IFS=$as_save_IFS
7513
7514fi
7515fi
7516ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7517if test -n "$ac_ct_OTOOL"; then
7518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7519printf "%s\n" "$ac_ct_OTOOL" >&6; }
7520else
7521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522printf "%s\n" "no" >&6; }
7523fi
7524
7525  if test "x$ac_ct_OTOOL" = x; then
7526    OTOOL=":"
7527  else
7528    case $cross_compiling:$ac_tool_warned in
7529yes:)
7530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7531printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7532ac_tool_warned=yes ;;
7533esac
7534    OTOOL=$ac_ct_OTOOL
7535  fi
7536else
7537  OTOOL="$ac_cv_prog_OTOOL"
7538fi
7539
7540    if test -n "$ac_tool_prefix"; then
7541  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7542set dummy ${ac_tool_prefix}otool64; ac_word=$2
7543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544printf %s "checking for $ac_word... " >&6; }
7545if test ${ac_cv_prog_OTOOL64+y}
7546then :
7547  printf %s "(cached) " >&6
7548else $as_nop
7549  if test -n "$OTOOL64"; then
7550  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7551else
7552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555  IFS=$as_save_IFS
7556  case $as_dir in #(((
7557    '') as_dir=./ ;;
7558    */) ;;
7559    *) as_dir=$as_dir/ ;;
7560  esac
7561    for ac_exec_ext in '' $ac_executable_extensions; do
7562  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7563    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7564    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7565    break 2
7566  fi
7567done
7568  done
7569IFS=$as_save_IFS
7570
7571fi
7572fi
7573OTOOL64=$ac_cv_prog_OTOOL64
7574if test -n "$OTOOL64"; then
7575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7576printf "%s\n" "$OTOOL64" >&6; }
7577else
7578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579printf "%s\n" "no" >&6; }
7580fi
7581
7582
7583fi
7584if test -z "$ac_cv_prog_OTOOL64"; then
7585  ac_ct_OTOOL64=$OTOOL64
7586  # Extract the first word of "otool64", so it can be a program name with args.
7587set dummy otool64; ac_word=$2
7588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589printf %s "checking for $ac_word... " >&6; }
7590if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7591then :
7592  printf %s "(cached) " >&6
7593else $as_nop
7594  if test -n "$ac_ct_OTOOL64"; then
7595  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7596else
7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600  IFS=$as_save_IFS
7601  case $as_dir in #(((
7602    '') as_dir=./ ;;
7603    */) ;;
7604    *) as_dir=$as_dir/ ;;
7605  esac
7606    for ac_exec_ext in '' $ac_executable_extensions; do
7607  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7608    ac_cv_prog_ac_ct_OTOOL64="otool64"
7609    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7610    break 2
7611  fi
7612done
7613  done
7614IFS=$as_save_IFS
7615
7616fi
7617fi
7618ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7619if test -n "$ac_ct_OTOOL64"; then
7620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7621printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7622else
7623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624printf "%s\n" "no" >&6; }
7625fi
7626
7627  if test "x$ac_ct_OTOOL64" = x; then
7628    OTOOL64=":"
7629  else
7630    case $cross_compiling:$ac_tool_warned in
7631yes:)
7632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7633printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7634ac_tool_warned=yes ;;
7635esac
7636    OTOOL64=$ac_ct_OTOOL64
7637  fi
7638else
7639  OTOOL64="$ac_cv_prog_OTOOL64"
7640fi
7641
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    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7669printf %s "checking for -single_module linker flag... " >&6; }
7670if test ${lt_cv_apple_cc_single_mod+y}
7671then :
7672  printf %s "(cached) " >&6
7673else $as_nop
7674  lt_cv_apple_cc_single_mod=no
7675      if test -z "$LT_MULTI_MODULE"; then
7676	# By default we will add the -single_module flag. You can override
7677	# by either setting the environment variable LT_MULTI_MODULE
7678	# non-empty at configure time, or by adding -multi_module to the
7679	# link flags.
7680	rm -rf libconftest.dylib*
7681	echo "int foo(void){return 1;}" > conftest.c
7682	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7683-dynamiclib -Wl,-single_module conftest.c" >&5
7684	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7685	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7686        _lt_result=$?
7687	# If there is a non-empty error log, and "single_module"
7688	# appears in it, assume the flag caused a linker warning
7689        if test -s conftest.err && $GREP single_module conftest.err; then
7690	  cat conftest.err >&5
7691	# Otherwise, if the output was created with a 0 exit code from
7692	# the compiler, it worked.
7693	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7694	  lt_cv_apple_cc_single_mod=yes
7695	else
7696	  cat conftest.err >&5
7697	fi
7698	rm -rf libconftest.dylib*
7699	rm -f conftest.*
7700      fi
7701fi
7702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7703printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7704
7705    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7706printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7707if test ${lt_cv_ld_exported_symbols_list+y}
7708then :
7709  printf %s "(cached) " >&6
7710else $as_nop
7711  lt_cv_ld_exported_symbols_list=no
7712      save_LDFLAGS=$LDFLAGS
7713      echo "_main" > conftest.sym
7714      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7715      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716/* end confdefs.h.  */
7717
7718int
7719main (void)
7720{
7721
7722  ;
7723  return 0;
7724}
7725_ACEOF
7726if ac_fn_c_try_link "$LINENO"
7727then :
7728  lt_cv_ld_exported_symbols_list=yes
7729else $as_nop
7730  lt_cv_ld_exported_symbols_list=no
7731fi
7732rm -f core conftest.err conftest.$ac_objext conftest.beam \
7733    conftest$ac_exeext conftest.$ac_ext
7734	LDFLAGS=$save_LDFLAGS
7735
7736fi
7737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7738printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7739
7740    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7741printf %s "checking for -force_load linker flag... " >&6; }
7742if test ${lt_cv_ld_force_load+y}
7743then :
7744  printf %s "(cached) " >&6
7745else $as_nop
7746  lt_cv_ld_force_load=no
7747      cat > conftest.c << _LT_EOF
7748int forced_loaded() { return 2;}
7749_LT_EOF
7750      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7751      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7752      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
7753      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
7754      echo "$RANLIB libconftest.a" >&5
7755      $RANLIB libconftest.a 2>&5
7756      cat > conftest.c << _LT_EOF
7757int main() { return 0;}
7758_LT_EOF
7759      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7760      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7761      _lt_result=$?
7762      if test -s conftest.err && $GREP force_load conftest.err; then
7763	cat conftest.err >&5
7764      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7765	lt_cv_ld_force_load=yes
7766      else
7767	cat conftest.err >&5
7768      fi
7769        rm -f conftest.err libconftest.a conftest conftest.c
7770        rm -rf conftest.dSYM
7771
7772fi
7773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7774printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7775    case $host_os in
7776    rhapsody* | darwin1.[012])
7777      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7778    darwin1.*)
7779      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7780    darwin*)
7781      case $MACOSX_DEPLOYMENT_TARGET,$host in
7782        10.[012],*|,*powerpc*-darwin[5-8]*)
7783          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7784        *)
7785          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7786      esac
7787    ;;
7788  esac
7789    if test yes = "$lt_cv_apple_cc_single_mod"; then
7790      _lt_dar_single_mod='$single_module'
7791    fi
7792    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7793      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7794    else
7795      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7796    fi
7797    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7798      _lt_dsymutil='~$DSYMUTIL $lib || :'
7799    else
7800      _lt_dsymutil=
7801    fi
7802    ;;
7803  esac
7804
7805# func_munge_path_list VARIABLE PATH
7806# -----------------------------------
7807# VARIABLE is name of variable containing _space_ separated list of
7808# directories to be munged by the contents of PATH, which is string
7809# having a format:
7810# "DIR[:DIR]:"
7811#       string "DIR[ DIR]" will be prepended to VARIABLE
7812# ":DIR[:DIR]"
7813#       string "DIR[ DIR]" will be appended to VARIABLE
7814# "DIRP[:DIRP]::[DIRA:]DIRA"
7815#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7816#       "DIRA[ DIRA]" will be appended to VARIABLE
7817# "DIR[:DIR]"
7818#       VARIABLE will be replaced by "DIR[ DIR]"
7819func_munge_path_list ()
7820{
7821    case x$2 in
7822    x)
7823        ;;
7824    *:)
7825        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7826        ;;
7827    x:*)
7828        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7829        ;;
7830    *::*)
7831        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7832        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7833        ;;
7834    *)
7835        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7836        ;;
7837    esac
7838}
7839
7840ac_header= ac_cache=
7841for ac_item in $ac_header_c_list
7842do
7843  if test $ac_cache; then
7844    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7845    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7846      printf "%s\n" "#define $ac_item 1" >> confdefs.h
7847    fi
7848    ac_header= ac_cache=
7849  elif test $ac_header; then
7850    ac_cache=$ac_item
7851  else
7852    ac_header=$ac_item
7853  fi
7854done
7855
7856
7857
7858
7859
7860
7861
7862
7863if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7864then :
7865
7866printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7867
7868fi
7869ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7870"
7871if test "x$ac_cv_header_dlfcn_h" = xyes
7872then :
7873  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7874
7875fi
7876
7877
7878
7879
7880
7881# Set options
7882enable_win32_dll=yes
7883
7884case $host in
7885*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7886  if test -n "$ac_tool_prefix"; then
7887  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7888set dummy ${ac_tool_prefix}as; ac_word=$2
7889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890printf %s "checking for $ac_word... " >&6; }
7891if test ${ac_cv_prog_AS+y}
7892then :
7893  printf %s "(cached) " >&6
7894else $as_nop
7895  if test -n "$AS"; then
7896  ac_cv_prog_AS="$AS" # Let the user override the test.
7897else
7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901  IFS=$as_save_IFS
7902  case $as_dir in #(((
7903    '') as_dir=./ ;;
7904    */) ;;
7905    *) as_dir=$as_dir/ ;;
7906  esac
7907    for ac_exec_ext in '' $ac_executable_extensions; do
7908  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7909    ac_cv_prog_AS="${ac_tool_prefix}as"
7910    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7911    break 2
7912  fi
7913done
7914  done
7915IFS=$as_save_IFS
7916
7917fi
7918fi
7919AS=$ac_cv_prog_AS
7920if test -n "$AS"; then
7921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7922printf "%s\n" "$AS" >&6; }
7923else
7924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925printf "%s\n" "no" >&6; }
7926fi
7927
7928
7929fi
7930if test -z "$ac_cv_prog_AS"; then
7931  ac_ct_AS=$AS
7932  # Extract the first word of "as", so it can be a program name with args.
7933set dummy as; ac_word=$2
7934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935printf %s "checking for $ac_word... " >&6; }
7936if test ${ac_cv_prog_ac_ct_AS+y}
7937then :
7938  printf %s "(cached) " >&6
7939else $as_nop
7940  if test -n "$ac_ct_AS"; then
7941  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7942else
7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946  IFS=$as_save_IFS
7947  case $as_dir in #(((
7948    '') as_dir=./ ;;
7949    */) ;;
7950    *) as_dir=$as_dir/ ;;
7951  esac
7952    for ac_exec_ext in '' $ac_executable_extensions; do
7953  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7954    ac_cv_prog_ac_ct_AS="as"
7955    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7956    break 2
7957  fi
7958done
7959  done
7960IFS=$as_save_IFS
7961
7962fi
7963fi
7964ac_ct_AS=$ac_cv_prog_ac_ct_AS
7965if test -n "$ac_ct_AS"; then
7966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7967printf "%s\n" "$ac_ct_AS" >&6; }
7968else
7969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970printf "%s\n" "no" >&6; }
7971fi
7972
7973  if test "x$ac_ct_AS" = x; then
7974    AS="false"
7975  else
7976    case $cross_compiling:$ac_tool_warned in
7977yes:)
7978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980ac_tool_warned=yes ;;
7981esac
7982    AS=$ac_ct_AS
7983  fi
7984else
7985  AS="$ac_cv_prog_AS"
7986fi
7987
7988  if test -n "$ac_tool_prefix"; then
7989  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7990set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992printf %s "checking for $ac_word... " >&6; }
7993if test ${ac_cv_prog_DLLTOOL+y}
7994then :
7995  printf %s "(cached) " >&6
7996else $as_nop
7997  if test -n "$DLLTOOL"; then
7998  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7999else
8000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001for as_dir in $PATH
8002do
8003  IFS=$as_save_IFS
8004  case $as_dir in #(((
8005    '') as_dir=./ ;;
8006    */) ;;
8007    *) as_dir=$as_dir/ ;;
8008  esac
8009    for ac_exec_ext in '' $ac_executable_extensions; do
8010  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8011    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8012    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8013    break 2
8014  fi
8015done
8016  done
8017IFS=$as_save_IFS
8018
8019fi
8020fi
8021DLLTOOL=$ac_cv_prog_DLLTOOL
8022if test -n "$DLLTOOL"; then
8023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8024printf "%s\n" "$DLLTOOL" >&6; }
8025else
8026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027printf "%s\n" "no" >&6; }
8028fi
8029
8030
8031fi
8032if test -z "$ac_cv_prog_DLLTOOL"; then
8033  ac_ct_DLLTOOL=$DLLTOOL
8034  # Extract the first word of "dlltool", so it can be a program name with args.
8035set dummy dlltool; ac_word=$2
8036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037printf %s "checking for $ac_word... " >&6; }
8038if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8039then :
8040  printf %s "(cached) " >&6
8041else $as_nop
8042  if test -n "$ac_ct_DLLTOOL"; then
8043  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8044else
8045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046for as_dir in $PATH
8047do
8048  IFS=$as_save_IFS
8049  case $as_dir in #(((
8050    '') as_dir=./ ;;
8051    */) ;;
8052    *) as_dir=$as_dir/ ;;
8053  esac
8054    for ac_exec_ext in '' $ac_executable_extensions; do
8055  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8056    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8057    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8058    break 2
8059  fi
8060done
8061  done
8062IFS=$as_save_IFS
8063
8064fi
8065fi
8066ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8067if test -n "$ac_ct_DLLTOOL"; then
8068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8069printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8070else
8071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072printf "%s\n" "no" >&6; }
8073fi
8074
8075  if test "x$ac_ct_DLLTOOL" = x; then
8076    DLLTOOL="false"
8077  else
8078    case $cross_compiling:$ac_tool_warned in
8079yes:)
8080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8081printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8082ac_tool_warned=yes ;;
8083esac
8084    DLLTOOL=$ac_ct_DLLTOOL
8085  fi
8086else
8087  DLLTOOL="$ac_cv_prog_DLLTOOL"
8088fi
8089
8090  if test -n "$ac_tool_prefix"; then
8091  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8092set dummy ${ac_tool_prefix}objdump; ac_word=$2
8093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094printf %s "checking for $ac_word... " >&6; }
8095if test ${ac_cv_prog_OBJDUMP+y}
8096then :
8097  printf %s "(cached) " >&6
8098else $as_nop
8099  if test -n "$OBJDUMP"; then
8100  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8101else
8102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103for as_dir in $PATH
8104do
8105  IFS=$as_save_IFS
8106  case $as_dir in #(((
8107    '') as_dir=./ ;;
8108    */) ;;
8109    *) as_dir=$as_dir/ ;;
8110  esac
8111    for ac_exec_ext in '' $ac_executable_extensions; do
8112  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8113    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8114    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8115    break 2
8116  fi
8117done
8118  done
8119IFS=$as_save_IFS
8120
8121fi
8122fi
8123OBJDUMP=$ac_cv_prog_OBJDUMP
8124if test -n "$OBJDUMP"; then
8125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8126printf "%s\n" "$OBJDUMP" >&6; }
8127else
8128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129printf "%s\n" "no" >&6; }
8130fi
8131
8132
8133fi
8134if test -z "$ac_cv_prog_OBJDUMP"; then
8135  ac_ct_OBJDUMP=$OBJDUMP
8136  # Extract the first word of "objdump", so it can be a program name with args.
8137set dummy objdump; ac_word=$2
8138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139printf %s "checking for $ac_word... " >&6; }
8140if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8141then :
8142  printf %s "(cached) " >&6
8143else $as_nop
8144  if test -n "$ac_ct_OBJDUMP"; then
8145  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8146else
8147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148for as_dir in $PATH
8149do
8150  IFS=$as_save_IFS
8151  case $as_dir in #(((
8152    '') as_dir=./ ;;
8153    */) ;;
8154    *) as_dir=$as_dir/ ;;
8155  esac
8156    for ac_exec_ext in '' $ac_executable_extensions; do
8157  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8158    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8159    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8160    break 2
8161  fi
8162done
8163  done
8164IFS=$as_save_IFS
8165
8166fi
8167fi
8168ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8169if test -n "$ac_ct_OBJDUMP"; then
8170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8171printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8172else
8173  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174printf "%s\n" "no" >&6; }
8175fi
8176
8177  if test "x$ac_ct_OBJDUMP" = x; then
8178    OBJDUMP="false"
8179  else
8180    case $cross_compiling:$ac_tool_warned in
8181yes:)
8182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8183printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8184ac_tool_warned=yes ;;
8185esac
8186    OBJDUMP=$ac_ct_OBJDUMP
8187  fi
8188else
8189  OBJDUMP="$ac_cv_prog_OBJDUMP"
8190fi
8191
8192  ;;
8193esac
8194
8195test -z "$AS" && AS=as
8196
8197
8198
8199
8200
8201test -z "$DLLTOOL" && DLLTOOL=dlltool
8202
8203
8204
8205
8206
8207test -z "$OBJDUMP" && OBJDUMP=objdump
8208
8209
8210
8211
8212
8213
8214
8215        enable_dlopen=no
8216
8217
8218
8219            # Check whether --enable-shared was given.
8220if test ${enable_shared+y}
8221then :
8222  enableval=$enable_shared; p=${PACKAGE-default}
8223    case $enableval in
8224    yes) enable_shared=yes ;;
8225    no) enable_shared=no ;;
8226    *)
8227      enable_shared=no
8228      # Look at the argument we got.  We use all the common list separators.
8229      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8230      for pkg in $enableval; do
8231	IFS=$lt_save_ifs
8232	if test "X$pkg" = "X$p"; then
8233	  enable_shared=yes
8234	fi
8235      done
8236      IFS=$lt_save_ifs
8237      ;;
8238    esac
8239else $as_nop
8240  enable_shared=yes
8241fi
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251  # Check whether --enable-static was given.
8252if test ${enable_static+y}
8253then :
8254  enableval=$enable_static; p=${PACKAGE-default}
8255    case $enableval in
8256    yes) enable_static=yes ;;
8257    no) enable_static=no ;;
8258    *)
8259     enable_static=no
8260      # Look at the argument we got.  We use all the common list separators.
8261      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8262      for pkg in $enableval; do
8263	IFS=$lt_save_ifs
8264	if test "X$pkg" = "X$p"; then
8265	  enable_static=yes
8266	fi
8267      done
8268      IFS=$lt_save_ifs
8269      ;;
8270    esac
8271else $as_nop
8272  enable_static=yes
8273fi
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284# Check whether --with-pic was given.
8285if test ${with_pic+y}
8286then :
8287  withval=$with_pic; lt_p=${PACKAGE-default}
8288    case $withval in
8289    yes|no) pic_mode=$withval ;;
8290    *)
8291      pic_mode=default
8292      # Look at the argument we got.  We use all the common list separators.
8293      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8294      for lt_pkg in $withval; do
8295	IFS=$lt_save_ifs
8296	if test "X$lt_pkg" = "X$lt_p"; then
8297	  pic_mode=yes
8298	fi
8299      done
8300      IFS=$lt_save_ifs
8301      ;;
8302    esac
8303else $as_nop
8304  pic_mode=default
8305fi
8306
8307
8308
8309
8310
8311
8312
8313
8314  # Check whether --enable-fast-install was given.
8315if test ${enable_fast_install+y}
8316then :
8317  enableval=$enable_fast_install; p=${PACKAGE-default}
8318    case $enableval in
8319    yes) enable_fast_install=yes ;;
8320    no) enable_fast_install=no ;;
8321    *)
8322      enable_fast_install=no
8323      # Look at the argument we got.  We use all the common list separators.
8324      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8325      for pkg in $enableval; do
8326	IFS=$lt_save_ifs
8327	if test "X$pkg" = "X$p"; then
8328	  enable_fast_install=yes
8329	fi
8330      done
8331      IFS=$lt_save_ifs
8332      ;;
8333    esac
8334else $as_nop
8335  enable_fast_install=yes
8336fi
8337
8338
8339
8340
8341
8342
8343
8344
8345  shared_archive_member_spec=
8346case $host,$enable_shared in
8347power*-*-aix[5-9]*,yes)
8348  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8349printf %s "checking which variant of shared library versioning to provide... " >&6; }
8350
8351# Check whether --with-aix-soname was given.
8352if test ${with_aix_soname+y}
8353then :
8354  withval=$with_aix_soname; case $withval in
8355    aix|svr4|both)
8356      ;;
8357    *)
8358      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8359      ;;
8360    esac
8361    lt_cv_with_aix_soname=$with_aix_soname
8362else $as_nop
8363  if test ${lt_cv_with_aix_soname+y}
8364then :
8365  printf %s "(cached) " >&6
8366else $as_nop
8367  lt_cv_with_aix_soname=aix
8368fi
8369
8370    with_aix_soname=$lt_cv_with_aix_soname
8371fi
8372
8373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8374printf "%s\n" "$with_aix_soname" >&6; }
8375  if test aix != "$with_aix_soname"; then
8376    # For the AIX way of multilib, we name the shared archive member
8377    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8378    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8379    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8380    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8381    if test 64 = "${OBJECT_MODE-32}"; then
8382      shared_archive_member_spec=shr_64
8383    else
8384      shared_archive_member_spec=shr
8385    fi
8386  fi
8387  ;;
8388*)
8389  with_aix_soname=aix
8390  ;;
8391esac
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402# This can be used to rebuild libtool when needed
8403LIBTOOL_DEPS=$ltmain
8404
8405# Always use our own libtool.
8406LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8407
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
8437test -z "$LN_S" && LN_S="ln -s"
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452if test -n "${ZSH_VERSION+set}"; then
8453   setopt NO_GLOB_SUBST
8454fi
8455
8456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8457printf %s "checking for objdir... " >&6; }
8458if test ${lt_cv_objdir+y}
8459then :
8460  printf %s "(cached) " >&6
8461else $as_nop
8462  rm -f .libs 2>/dev/null
8463mkdir .libs 2>/dev/null
8464if test -d .libs; then
8465  lt_cv_objdir=.libs
8466else
8467  # MS-DOS does not allow filenames that begin with a dot.
8468  lt_cv_objdir=_libs
8469fi
8470rmdir .libs 2>/dev/null
8471fi
8472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8473printf "%s\n" "$lt_cv_objdir" >&6; }
8474objdir=$lt_cv_objdir
8475
8476
8477
8478
8479
8480printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8481
8482
8483
8484
8485case $host_os in
8486aix3*)
8487  # AIX sometimes has problems with the GCC collect2 program.  For some
8488  # reason, if we set the COLLECT_NAMES environment variable, the problems
8489  # vanish in a puff of smoke.
8490  if test set != "${COLLECT_NAMES+set}"; then
8491    COLLECT_NAMES=
8492    export COLLECT_NAMES
8493  fi
8494  ;;
8495esac
8496
8497# Global variables:
8498ofile=libtool
8499can_build_shared=yes
8500
8501# All known linkers require a '.a' archive for static linking (except MSVC and
8502# ICC, which need '.lib').
8503libext=a
8504
8505with_gnu_ld=$lt_cv_prog_gnu_ld
8506
8507old_CC=$CC
8508old_CFLAGS=$CFLAGS
8509
8510# Set sane defaults for various variables
8511test -z "$CC" && CC=cc
8512test -z "$LTCC" && LTCC=$CC
8513test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8514test -z "$LD" && LD=ld
8515test -z "$ac_objext" && ac_objext=o
8516
8517func_cc_basename $compiler
8518cc_basename=$func_cc_basename_result
8519
8520
8521# Only perform the check for file, if the check method requires it
8522test -z "$MAGIC_CMD" && MAGIC_CMD=file
8523case $deplibs_check_method in
8524file_magic*)
8525  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8526    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8527printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8528if test ${lt_cv_path_MAGIC_CMD+y}
8529then :
8530  printf %s "(cached) " >&6
8531else $as_nop
8532  case $MAGIC_CMD in
8533[\\/*] |  ?:[\\/]*)
8534  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8535  ;;
8536*)
8537  lt_save_MAGIC_CMD=$MAGIC_CMD
8538  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8539  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8540  for ac_dir in $ac_dummy; do
8541    IFS=$lt_save_ifs
8542    test -z "$ac_dir" && ac_dir=.
8543    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8544      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8545      if test -n "$file_magic_test_file"; then
8546	case $deplibs_check_method in
8547	"file_magic "*)
8548	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8549	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8550	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8551	    $EGREP "$file_magic_regex" > /dev/null; then
8552	    :
8553	  else
8554	    cat <<_LT_EOF 1>&2
8555
8556*** Warning: the command libtool uses to detect shared libraries,
8557*** $file_magic_cmd, produces output that libtool cannot recognize.
8558*** The result is that libtool may fail to recognize shared libraries
8559*** as such.  This will affect the creation of libtool libraries that
8560*** depend on shared libraries, but programs linked with such libtool
8561*** libraries will work regardless of this problem.  Nevertheless, you
8562*** may want to report the problem to your system manager and/or to
8563*** bug-libtool@gnu.org
8564
8565_LT_EOF
8566	  fi ;;
8567	esac
8568      fi
8569      break
8570    fi
8571  done
8572  IFS=$lt_save_ifs
8573  MAGIC_CMD=$lt_save_MAGIC_CMD
8574  ;;
8575esac
8576fi
8577
8578MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8579if test -n "$MAGIC_CMD"; then
8580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8581printf "%s\n" "$MAGIC_CMD" >&6; }
8582else
8583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584printf "%s\n" "no" >&6; }
8585fi
8586
8587
8588
8589
8590
8591if test -z "$lt_cv_path_MAGIC_CMD"; then
8592  if test -n "$ac_tool_prefix"; then
8593    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8594printf %s "checking for file... " >&6; }
8595if test ${lt_cv_path_MAGIC_CMD+y}
8596then :
8597  printf %s "(cached) " >&6
8598else $as_nop
8599  case $MAGIC_CMD in
8600[\\/*] |  ?:[\\/]*)
8601  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8602  ;;
8603*)
8604  lt_save_MAGIC_CMD=$MAGIC_CMD
8605  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8606  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8607  for ac_dir in $ac_dummy; do
8608    IFS=$lt_save_ifs
8609    test -z "$ac_dir" && ac_dir=.
8610    if test -f "$ac_dir/file"; then
8611      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8612      if test -n "$file_magic_test_file"; then
8613	case $deplibs_check_method in
8614	"file_magic "*)
8615	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8616	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8617	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8618	    $EGREP "$file_magic_regex" > /dev/null; then
8619	    :
8620	  else
8621	    cat <<_LT_EOF 1>&2
8622
8623*** Warning: the command libtool uses to detect shared libraries,
8624*** $file_magic_cmd, produces output that libtool cannot recognize.
8625*** The result is that libtool may fail to recognize shared libraries
8626*** as such.  This will affect the creation of libtool libraries that
8627*** depend on shared libraries, but programs linked with such libtool
8628*** libraries will work regardless of this problem.  Nevertheless, you
8629*** may want to report the problem to your system manager and/or to
8630*** bug-libtool@gnu.org
8631
8632_LT_EOF
8633	  fi ;;
8634	esac
8635      fi
8636      break
8637    fi
8638  done
8639  IFS=$lt_save_ifs
8640  MAGIC_CMD=$lt_save_MAGIC_CMD
8641  ;;
8642esac
8643fi
8644
8645MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8646if test -n "$MAGIC_CMD"; then
8647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8648printf "%s\n" "$MAGIC_CMD" >&6; }
8649else
8650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651printf "%s\n" "no" >&6; }
8652fi
8653
8654
8655  else
8656    MAGIC_CMD=:
8657  fi
8658fi
8659
8660  fi
8661  ;;
8662esac
8663
8664# Use C for the default configuration in the libtool script
8665
8666lt_save_CC=$CC
8667ac_ext=c
8668ac_cpp='$CPP $CPPFLAGS'
8669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8671ac_compiler_gnu=$ac_cv_c_compiler_gnu
8672
8673
8674# Source file extension for C test sources.
8675ac_ext=c
8676
8677# Object file extension for compiled C test sources.
8678objext=o
8679objext=$objext
8680
8681# Code to be used in simple compile tests
8682lt_simple_compile_test_code="int some_variable = 0;"
8683
8684# Code to be used in simple link tests
8685lt_simple_link_test_code='int main(){return(0);}'
8686
8687
8688
8689
8690
8691
8692
8693# If no C compiler was specified, use CC.
8694LTCC=${LTCC-"$CC"}
8695
8696# If no C compiler flags were specified, use CFLAGS.
8697LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8698
8699# Allow CC to be a program name with arguments.
8700compiler=$CC
8701
8702# Save the default compiler, since it gets overwritten when the other
8703# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8704compiler_DEFAULT=$CC
8705
8706# save warnings/boilerplate of simple test code
8707ac_outfile=conftest.$ac_objext
8708echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8709eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8710_lt_compiler_boilerplate=`cat conftest.err`
8711$RM conftest*
8712
8713ac_outfile=conftest.$ac_objext
8714echo "$lt_simple_link_test_code" >conftest.$ac_ext
8715eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8716_lt_linker_boilerplate=`cat conftest.err`
8717$RM -r conftest*
8718
8719
8720if test -n "$compiler"; then
8721
8722lt_prog_compiler_no_builtin_flag=
8723
8724if test yes = "$GCC"; then
8725  case $cc_basename in
8726  nvcc*)
8727    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8728  *)
8729    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8730  esac
8731
8732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8733printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8734if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8735then :
8736  printf %s "(cached) " >&6
8737else $as_nop
8738  lt_cv_prog_compiler_rtti_exceptions=no
8739   ac_outfile=conftest.$ac_objext
8740   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8741   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8742   # Insert the option either (1) after the last *FLAGS variable, or
8743   # (2) before a word containing "conftest.", or (3) at the end.
8744   # Note that $ac_compile itself does not contain backslashes and begins
8745   # with a dollar sign (not a hyphen), so the echo should work correctly.
8746   # The option is referenced via a variable to avoid confusing sed.
8747   lt_compile=`echo "$ac_compile" | $SED \
8748   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8749   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8750   -e 's:$: $lt_compiler_flag:'`
8751   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8752   (eval "$lt_compile" 2>conftest.err)
8753   ac_status=$?
8754   cat conftest.err >&5
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   if (exit $ac_status) && test -s "$ac_outfile"; then
8757     # The compiler can only warn and ignore the option if not recognized
8758     # So say no if there are warnings other than the usual output.
8759     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8760     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8761     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8762       lt_cv_prog_compiler_rtti_exceptions=yes
8763     fi
8764   fi
8765   $RM conftest*
8766
8767fi
8768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8769printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8770
8771if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8772    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8773else
8774    :
8775fi
8776
8777fi
8778
8779
8780
8781
8782
8783
8784  lt_prog_compiler_wl=
8785lt_prog_compiler_pic=
8786lt_prog_compiler_static=
8787
8788
8789  if test yes = "$GCC"; then
8790    lt_prog_compiler_wl='-Wl,'
8791    lt_prog_compiler_static='-static'
8792
8793    case $host_os in
8794      aix*)
8795      # All AIX code is PIC.
8796      if test ia64 = "$host_cpu"; then
8797	# AIX 5 now supports IA64 processor
8798	lt_prog_compiler_static='-Bstatic'
8799      fi
8800      lt_prog_compiler_pic='-fPIC'
8801      ;;
8802
8803    amigaos*)
8804      case $host_cpu in
8805      powerpc)
8806            # see comment about AmigaOS4 .so support
8807            lt_prog_compiler_pic='-fPIC'
8808        ;;
8809      m68k)
8810            # FIXME: we need at least 68020 code to build shared libraries, but
8811            # adding the '-m68020' flag to GCC prevents building anything better,
8812            # like '-m68040'.
8813            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8814        ;;
8815      esac
8816      ;;
8817
8818    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8819      # PIC is the default for these OSes.
8820      ;;
8821
8822    mingw* | cygwin* | pw32* | os2* | cegcc*)
8823      # This hack is so that the source file can tell whether it is being
8824      # built for inclusion in a dll (and should export symbols for example).
8825      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8826      # (--disable-auto-import) libraries
8827      lt_prog_compiler_pic='-DDLL_EXPORT'
8828      case $host_os in
8829      os2*)
8830	lt_prog_compiler_static='$wl-static'
8831	;;
8832      esac
8833      ;;
8834
8835    darwin* | rhapsody*)
8836      # PIC is the default on this platform
8837      # Common symbols not allowed in MH_DYLIB files
8838      lt_prog_compiler_pic='-fno-common'
8839      ;;
8840
8841    haiku*)
8842      # PIC is the default for Haiku.
8843      # The "-static" flag exists, but is broken.
8844      lt_prog_compiler_static=
8845      ;;
8846
8847    hpux*)
8848      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8849      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8850      # sets the default TLS model and affects inlining.
8851      case $host_cpu in
8852      hppa*64*)
8853	# +Z the default
8854	;;
8855      *)
8856	lt_prog_compiler_pic='-fPIC'
8857	;;
8858      esac
8859      ;;
8860
8861    interix[3-9]*)
8862      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8863      # Instead, we relocate shared libraries at runtime.
8864      ;;
8865
8866    msdosdjgpp*)
8867      # Just because we use GCC doesn't mean we suddenly get shared libraries
8868      # on systems that don't support them.
8869      lt_prog_compiler_can_build_shared=no
8870      enable_shared=no
8871      ;;
8872
8873    *nto* | *qnx*)
8874      # QNX uses GNU C++, but need to define -shared option too, otherwise
8875      # it will coredump.
8876      lt_prog_compiler_pic='-fPIC -shared'
8877      ;;
8878
8879    sysv4*MP*)
8880      if test -d /usr/nec; then
8881	lt_prog_compiler_pic=-Kconform_pic
8882      fi
8883      ;;
8884
8885    *)
8886      lt_prog_compiler_pic='-fPIC'
8887      ;;
8888    esac
8889
8890    case $cc_basename in
8891    nvcc*) # Cuda Compiler Driver 2.2
8892      lt_prog_compiler_wl='-Xlinker '
8893      if test -n "$lt_prog_compiler_pic"; then
8894        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8895      fi
8896      ;;
8897    esac
8898  else
8899    # PORTME Check for flag to pass linker flags through the system compiler.
8900    case $host_os in
8901    aix*)
8902      lt_prog_compiler_wl='-Wl,'
8903      if test ia64 = "$host_cpu"; then
8904	# AIX 5 now supports IA64 processor
8905	lt_prog_compiler_static='-Bstatic'
8906      else
8907	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8908      fi
8909      ;;
8910
8911    darwin* | rhapsody*)
8912      # PIC is the default on this platform
8913      # Common symbols not allowed in MH_DYLIB files
8914      lt_prog_compiler_pic='-fno-common'
8915      case $cc_basename in
8916      nagfor*)
8917        # NAG Fortran compiler
8918        lt_prog_compiler_wl='-Wl,-Wl,,'
8919        lt_prog_compiler_pic='-PIC'
8920        lt_prog_compiler_static='-Bstatic'
8921        ;;
8922      esac
8923      ;;
8924
8925    mingw* | cygwin* | pw32* | os2* | cegcc*)
8926      # This hack is so that the source file can tell whether it is being
8927      # built for inclusion in a dll (and should export symbols for example).
8928      lt_prog_compiler_pic='-DDLL_EXPORT'
8929      case $host_os in
8930      os2*)
8931	lt_prog_compiler_static='$wl-static'
8932	;;
8933      esac
8934      ;;
8935
8936    hpux9* | hpux10* | hpux11*)
8937      lt_prog_compiler_wl='-Wl,'
8938      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8939      # not for PA HP-UX.
8940      case $host_cpu in
8941      hppa*64*|ia64*)
8942	# +Z the default
8943	;;
8944      *)
8945	lt_prog_compiler_pic='+Z'
8946	;;
8947      esac
8948      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8949      lt_prog_compiler_static='$wl-a ${wl}archive'
8950      ;;
8951
8952    irix5* | irix6* | nonstopux*)
8953      lt_prog_compiler_wl='-Wl,'
8954      # PIC (with -KPIC) is the default.
8955      lt_prog_compiler_static='-non_shared'
8956      ;;
8957
8958    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8959      case $cc_basename in
8960      # old Intel for x86_64, which still supported -KPIC.
8961      ecc*)
8962	lt_prog_compiler_wl='-Wl,'
8963	lt_prog_compiler_pic='-KPIC'
8964	lt_prog_compiler_static='-static'
8965        ;;
8966      # icc used to be incompatible with GCC.
8967      # ICC 10 doesn't accept -KPIC any more.
8968      icc* | ifort*)
8969	lt_prog_compiler_wl='-Wl,'
8970	lt_prog_compiler_pic='-fPIC'
8971	lt_prog_compiler_static='-static'
8972        ;;
8973      # Lahey Fortran 8.1.
8974      lf95*)
8975	lt_prog_compiler_wl='-Wl,'
8976	lt_prog_compiler_pic='--shared'
8977	lt_prog_compiler_static='--static'
8978	;;
8979      nagfor*)
8980	# NAG Fortran compiler
8981	lt_prog_compiler_wl='-Wl,-Wl,,'
8982	lt_prog_compiler_pic='-PIC'
8983	lt_prog_compiler_static='-Bstatic'
8984	;;
8985      tcc*)
8986	# Fabrice Bellard et al's Tiny C Compiler
8987	lt_prog_compiler_wl='-Wl,'
8988	lt_prog_compiler_pic='-fPIC'
8989	lt_prog_compiler_static='-static'
8990	;;
8991      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8992        # Portland Group compilers (*not* the Pentium gcc compiler,
8993	# which looks to be a dead project)
8994	lt_prog_compiler_wl='-Wl,'
8995	lt_prog_compiler_pic='-fpic'
8996	lt_prog_compiler_static='-Bstatic'
8997        ;;
8998      ccc*)
8999        lt_prog_compiler_wl='-Wl,'
9000        # All Alpha code is PIC.
9001        lt_prog_compiler_static='-non_shared'
9002        ;;
9003      xl* | bgxl* | bgf* | mpixl*)
9004	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9005	lt_prog_compiler_wl='-Wl,'
9006	lt_prog_compiler_pic='-qpic'
9007	lt_prog_compiler_static='-qstaticlink'
9008	;;
9009      *)
9010	case `$CC -V 2>&1 | $SED 5q` in
9011	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9012	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9013	  lt_prog_compiler_pic='-KPIC'
9014	  lt_prog_compiler_static='-Bstatic'
9015	  lt_prog_compiler_wl=''
9016	  ;;
9017	*Sun\ F* | *Sun*Fortran*)
9018	  lt_prog_compiler_pic='-KPIC'
9019	  lt_prog_compiler_static='-Bstatic'
9020	  lt_prog_compiler_wl='-Qoption ld '
9021	  ;;
9022	*Sun\ C*)
9023	  # Sun C 5.9
9024	  lt_prog_compiler_pic='-KPIC'
9025	  lt_prog_compiler_static='-Bstatic'
9026	  lt_prog_compiler_wl='-Wl,'
9027	  ;;
9028        *Intel*\ [CF]*Compiler*)
9029	  lt_prog_compiler_wl='-Wl,'
9030	  lt_prog_compiler_pic='-fPIC'
9031	  lt_prog_compiler_static='-static'
9032	  ;;
9033	*Portland\ Group*)
9034	  lt_prog_compiler_wl='-Wl,'
9035	  lt_prog_compiler_pic='-fpic'
9036	  lt_prog_compiler_static='-Bstatic'
9037	  ;;
9038	esac
9039	;;
9040      esac
9041      ;;
9042
9043    newsos6)
9044      lt_prog_compiler_pic='-KPIC'
9045      lt_prog_compiler_static='-Bstatic'
9046      ;;
9047
9048    *nto* | *qnx*)
9049      # QNX uses GNU C++, but need to define -shared option too, otherwise
9050      # it will coredump.
9051      lt_prog_compiler_pic='-fPIC -shared'
9052      ;;
9053
9054    osf3* | osf4* | osf5*)
9055      lt_prog_compiler_wl='-Wl,'
9056      # All OSF/1 code is PIC.
9057      lt_prog_compiler_static='-non_shared'
9058      ;;
9059
9060    rdos*)
9061      lt_prog_compiler_static='-non_shared'
9062      ;;
9063
9064    solaris*)
9065      lt_prog_compiler_pic='-KPIC'
9066      lt_prog_compiler_static='-Bstatic'
9067      case $cc_basename in
9068      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9069	lt_prog_compiler_wl='-Qoption ld ';;
9070      *)
9071	lt_prog_compiler_wl='-Wl,';;
9072      esac
9073      ;;
9074
9075    sunos4*)
9076      lt_prog_compiler_wl='-Qoption ld '
9077      lt_prog_compiler_pic='-PIC'
9078      lt_prog_compiler_static='-Bstatic'
9079      ;;
9080
9081    sysv4 | sysv4.2uw2* | sysv4.3*)
9082      lt_prog_compiler_wl='-Wl,'
9083      lt_prog_compiler_pic='-KPIC'
9084      lt_prog_compiler_static='-Bstatic'
9085      ;;
9086
9087    sysv4*MP*)
9088      if test -d /usr/nec; then
9089	lt_prog_compiler_pic='-Kconform_pic'
9090	lt_prog_compiler_static='-Bstatic'
9091      fi
9092      ;;
9093
9094    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9095      lt_prog_compiler_wl='-Wl,'
9096      lt_prog_compiler_pic='-KPIC'
9097      lt_prog_compiler_static='-Bstatic'
9098      ;;
9099
9100    unicos*)
9101      lt_prog_compiler_wl='-Wl,'
9102      lt_prog_compiler_can_build_shared=no
9103      ;;
9104
9105    uts4*)
9106      lt_prog_compiler_pic='-pic'
9107      lt_prog_compiler_static='-Bstatic'
9108      ;;
9109
9110    *)
9111      lt_prog_compiler_can_build_shared=no
9112      ;;
9113    esac
9114  fi
9115
9116case $host_os in
9117  # For platforms that do not support PIC, -DPIC is meaningless:
9118  *djgpp*)
9119    lt_prog_compiler_pic=
9120    ;;
9121  *)
9122    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9123    ;;
9124esac
9125
9126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9127printf %s "checking for $compiler option to produce PIC... " >&6; }
9128if test ${lt_cv_prog_compiler_pic+y}
9129then :
9130  printf %s "(cached) " >&6
9131else $as_nop
9132  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9133fi
9134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9135printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9136lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9137
9138#
9139# Check to make sure the PIC flag actually works.
9140#
9141if test -n "$lt_prog_compiler_pic"; then
9142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9143printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9144if test ${lt_cv_prog_compiler_pic_works+y}
9145then :
9146  printf %s "(cached) " >&6
9147else $as_nop
9148  lt_cv_prog_compiler_pic_works=no
9149   ac_outfile=conftest.$ac_objext
9150   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9151   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9152   # Insert the option either (1) after the last *FLAGS variable, or
9153   # (2) before a word containing "conftest.", or (3) at the end.
9154   # Note that $ac_compile itself does not contain backslashes and begins
9155   # with a dollar sign (not a hyphen), so the echo should work correctly.
9156   # The option is referenced via a variable to avoid confusing sed.
9157   lt_compile=`echo "$ac_compile" | $SED \
9158   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9159   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9160   -e 's:$: $lt_compiler_flag:'`
9161   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9162   (eval "$lt_compile" 2>conftest.err)
9163   ac_status=$?
9164   cat conftest.err >&5
9165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166   if (exit $ac_status) && test -s "$ac_outfile"; then
9167     # The compiler can only warn and ignore the option if not recognized
9168     # So say no if there are warnings other than the usual output.
9169     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9170     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9171     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9172       lt_cv_prog_compiler_pic_works=yes
9173     fi
9174   fi
9175   $RM conftest*
9176
9177fi
9178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9179printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9180
9181if test yes = "$lt_cv_prog_compiler_pic_works"; then
9182    case $lt_prog_compiler_pic in
9183     "" | " "*) ;;
9184     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9185     esac
9186else
9187    lt_prog_compiler_pic=
9188     lt_prog_compiler_can_build_shared=no
9189fi
9190
9191fi
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203#
9204# Check to make sure the static flag actually works.
9205#
9206wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9208printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9209if test ${lt_cv_prog_compiler_static_works+y}
9210then :
9211  printf %s "(cached) " >&6
9212else $as_nop
9213  lt_cv_prog_compiler_static_works=no
9214   save_LDFLAGS=$LDFLAGS
9215   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9216   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9217   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9218     # The linker can only warn and ignore the option if not recognized
9219     # So say no if there are warnings
9220     if test -s conftest.err; then
9221       # Append any errors to the config.log.
9222       cat conftest.err 1>&5
9223       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9224       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9225       if diff conftest.exp conftest.er2 >/dev/null; then
9226         lt_cv_prog_compiler_static_works=yes
9227       fi
9228     else
9229       lt_cv_prog_compiler_static_works=yes
9230     fi
9231   fi
9232   $RM -r conftest*
9233   LDFLAGS=$save_LDFLAGS
9234
9235fi
9236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9237printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9238
9239if test yes = "$lt_cv_prog_compiler_static_works"; then
9240    :
9241else
9242    lt_prog_compiler_static=
9243fi
9244
9245
9246
9247
9248
9249
9250
9251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9252printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9253if test ${lt_cv_prog_compiler_c_o+y}
9254then :
9255  printf %s "(cached) " >&6
9256else $as_nop
9257  lt_cv_prog_compiler_c_o=no
9258   $RM -r conftest 2>/dev/null
9259   mkdir conftest
9260   cd conftest
9261   mkdir out
9262   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9263
9264   lt_compiler_flag="-o out/conftest2.$ac_objext"
9265   # Insert the option either (1) after the last *FLAGS variable, or
9266   # (2) before a word containing "conftest.", or (3) at the end.
9267   # Note that $ac_compile itself does not contain backslashes and begins
9268   # with a dollar sign (not a hyphen), so the echo should work correctly.
9269   lt_compile=`echo "$ac_compile" | $SED \
9270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9272   -e 's:$: $lt_compiler_flag:'`
9273   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9274   (eval "$lt_compile" 2>out/conftest.err)
9275   ac_status=$?
9276   cat out/conftest.err >&5
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9279   then
9280     # The compiler can only warn and ignore the option if not recognized
9281     # So say no if there are warnings
9282     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9283     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9284     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9285       lt_cv_prog_compiler_c_o=yes
9286     fi
9287   fi
9288   chmod u+w . 2>&5
9289   $RM conftest*
9290   # SGI C++ compiler will create directory out/ii_files/ for
9291   # template instantiation
9292   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9293   $RM out/* && rmdir out
9294   cd ..
9295   $RM -r conftest
9296   $RM conftest*
9297
9298fi
9299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9300printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9301
9302
9303
9304
9305
9306
9307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9308printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9309if test ${lt_cv_prog_compiler_c_o+y}
9310then :
9311  printf %s "(cached) " >&6
9312else $as_nop
9313  lt_cv_prog_compiler_c_o=no
9314   $RM -r conftest 2>/dev/null
9315   mkdir conftest
9316   cd conftest
9317   mkdir out
9318   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9319
9320   lt_compiler_flag="-o out/conftest2.$ac_objext"
9321   # Insert the option either (1) after the last *FLAGS variable, or
9322   # (2) before a word containing "conftest.", or (3) at the end.
9323   # Note that $ac_compile itself does not contain backslashes and begins
9324   # with a dollar sign (not a hyphen), so the echo should work correctly.
9325   lt_compile=`echo "$ac_compile" | $SED \
9326   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9327   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9328   -e 's:$: $lt_compiler_flag:'`
9329   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9330   (eval "$lt_compile" 2>out/conftest.err)
9331   ac_status=$?
9332   cat out/conftest.err >&5
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9335   then
9336     # The compiler can only warn and ignore the option if not recognized
9337     # So say no if there are warnings
9338     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9339     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9340     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9341       lt_cv_prog_compiler_c_o=yes
9342     fi
9343   fi
9344   chmod u+w . 2>&5
9345   $RM conftest*
9346   # SGI C++ compiler will create directory out/ii_files/ for
9347   # template instantiation
9348   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9349   $RM out/* && rmdir out
9350   cd ..
9351   $RM -r conftest
9352   $RM conftest*
9353
9354fi
9355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9356printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9357
9358
9359
9360
9361hard_links=nottested
9362if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9363  # do not overwrite the value of need_locks provided by the user
9364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9365printf %s "checking if we can lock with hard links... " >&6; }
9366  hard_links=yes
9367  $RM conftest*
9368  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9369  touch conftest.a
9370  ln conftest.a conftest.b 2>&5 || hard_links=no
9371  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9373printf "%s\n" "$hard_links" >&6; }
9374  if test no = "$hard_links"; then
9375    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9376printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9377    need_locks=warn
9378  fi
9379else
9380  need_locks=no
9381fi
9382
9383
9384
9385
9386
9387
9388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9389printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9390
9391  runpath_var=
9392  allow_undefined_flag=
9393  always_export_symbols=no
9394  archive_cmds=
9395  archive_expsym_cmds=
9396  compiler_needs_object=no
9397  enable_shared_with_static_runtimes=no
9398  export_dynamic_flag_spec=
9399  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9400  hardcode_automatic=no
9401  hardcode_direct=no
9402  hardcode_direct_absolute=no
9403  hardcode_libdir_flag_spec=
9404  hardcode_libdir_separator=
9405  hardcode_minus_L=no
9406  hardcode_shlibpath_var=unsupported
9407  inherit_rpath=no
9408  link_all_deplibs=unknown
9409  module_cmds=
9410  module_expsym_cmds=
9411  old_archive_from_new_cmds=
9412  old_archive_from_expsyms_cmds=
9413  thread_safe_flag_spec=
9414  whole_archive_flag_spec=
9415  # include_expsyms should be a list of space-separated symbols to be *always*
9416  # included in the symbol list
9417  include_expsyms=
9418  # exclude_expsyms can be an extended regexp of symbols to exclude
9419  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9420  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9421  # as well as any symbol that contains 'd'.
9422  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9423  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9424  # platforms (ab)use it in PIC code, but their linkers get confused if
9425  # the symbol is explicitly referenced.  Since portable code cannot
9426  # rely on this symbol name, it's probably fine to never include it in
9427  # preloaded symbol tables.
9428  # Exclude shared library initialization/finalization symbols.
9429  extract_expsyms_cmds=
9430
9431  case $host_os in
9432  cygwin* | mingw* | pw32* | cegcc*)
9433    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9434    # When not using gcc, we currently assume that we are using
9435    # Microsoft Visual C++ or Intel C++ Compiler.
9436    if test yes != "$GCC"; then
9437      with_gnu_ld=no
9438    fi
9439    ;;
9440  interix*)
9441    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9442    with_gnu_ld=yes
9443    ;;
9444  openbsd* | bitrig*)
9445    with_gnu_ld=no
9446    ;;
9447  esac
9448
9449  ld_shlibs=yes
9450
9451  # On some targets, GNU ld is compatible enough with the native linker
9452  # that we're better off using the native interface for both.
9453  lt_use_gnu_ld_interface=no
9454  if test yes = "$with_gnu_ld"; then
9455    case $host_os in
9456      aix*)
9457	# The AIX port of GNU ld has always aspired to compatibility
9458	# with the native linker.  However, as the warning in the GNU ld
9459	# block says, versions before 2.19.5* couldn't really create working
9460	# shared libraries, regardless of the interface used.
9461	case `$LD -v 2>&1` in
9462	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9463	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9464	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9465	  *)
9466	    lt_use_gnu_ld_interface=yes
9467	    ;;
9468	esac
9469	;;
9470      *)
9471	lt_use_gnu_ld_interface=yes
9472	;;
9473    esac
9474  fi
9475
9476  if test yes = "$lt_use_gnu_ld_interface"; then
9477    # If archive_cmds runs LD, not CC, wlarc should be empty
9478    wlarc='$wl'
9479
9480    # Set some defaults for GNU ld with shared library support. These
9481    # are reset later if shared libraries are not supported. Putting them
9482    # here allows them to be overridden if necessary.
9483    runpath_var=LD_RUN_PATH
9484    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9485    export_dynamic_flag_spec='$wl--export-dynamic'
9486    # ancient GNU ld didn't support --whole-archive et. al.
9487    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9488      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9489    else
9490      whole_archive_flag_spec=
9491    fi
9492    supports_anon_versioning=no
9493    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9494      *GNU\ gold*) supports_anon_versioning=yes ;;
9495      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9496      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9497      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9498      *\ 2.11.*) ;; # other 2.11 versions
9499      *) supports_anon_versioning=yes ;;
9500    esac
9501
9502    # See if GNU ld supports shared libraries.
9503    case $host_os in
9504    aix[3-9]*)
9505      # On AIX/PPC, the GNU linker is very broken
9506      if test ia64 != "$host_cpu"; then
9507	ld_shlibs=no
9508	cat <<_LT_EOF 1>&2
9509
9510*** Warning: the GNU linker, at least up to release 2.19, is reported
9511*** to be unable to reliably create shared libraries on AIX.
9512*** Therefore, libtool is disabling shared libraries support.  If you
9513*** really care for shared libraries, you may want to install binutils
9514*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9515*** You will then need to restart the configuration process.
9516
9517_LT_EOF
9518      fi
9519      ;;
9520
9521    amigaos*)
9522      case $host_cpu in
9523      powerpc)
9524            # see comment about AmigaOS4 .so support
9525            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9526            archive_expsym_cmds=''
9527        ;;
9528      m68k)
9529            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)'
9530            hardcode_libdir_flag_spec='-L$libdir'
9531            hardcode_minus_L=yes
9532        ;;
9533      esac
9534      ;;
9535
9536    beos*)
9537      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9538	allow_undefined_flag=unsupported
9539	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9540	# support --undefined.  This deserves some investigation.  FIXME
9541	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9542      else
9543	ld_shlibs=no
9544      fi
9545      ;;
9546
9547    cygwin* | mingw* | pw32* | cegcc*)
9548      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9549      # as there is no search path for DLLs.
9550      hardcode_libdir_flag_spec='-L$libdir'
9551      export_dynamic_flag_spec='$wl--export-all-symbols'
9552      allow_undefined_flag=unsupported
9553      always_export_symbols=no
9554      enable_shared_with_static_runtimes=yes
9555      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'
9556      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9557
9558      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9559        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9560	# If the export-symbols file already is a .def file, use it as
9561	# is; otherwise, prepend EXPORTS...
9562	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9563          cp $export_symbols $output_objdir/$soname.def;
9564        else
9565          echo EXPORTS > $output_objdir/$soname.def;
9566          cat $export_symbols >> $output_objdir/$soname.def;
9567        fi~
9568        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9569      else
9570	ld_shlibs=no
9571      fi
9572      ;;
9573
9574    haiku*)
9575      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9576      link_all_deplibs=yes
9577      ;;
9578
9579    os2*)
9580      hardcode_libdir_flag_spec='-L$libdir'
9581      hardcode_minus_L=yes
9582      allow_undefined_flag=unsupported
9583      shrext_cmds=.dll
9584      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9585	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9586	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9587	$ECHO EXPORTS >> $output_objdir/$libname.def~
9588	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9589	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9590	emximp -o $lib $output_objdir/$libname.def'
9591      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9592	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9593	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9594	$ECHO EXPORTS >> $output_objdir/$libname.def~
9595	prefix_cmds="$SED"~
9596	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9597	  prefix_cmds="$prefix_cmds -e 1d";
9598	fi~
9599	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9600	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9601	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9602	emximp -o $lib $output_objdir/$libname.def'
9603      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9604      enable_shared_with_static_runtimes=yes
9605      file_list_spec='@'
9606      ;;
9607
9608    interix[3-9]*)
9609      hardcode_direct=no
9610      hardcode_shlibpath_var=no
9611      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9612      export_dynamic_flag_spec='$wl-E'
9613      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9614      # Instead, shared libraries are loaded at an image base (0x10000000 by
9615      # default) and relocated if they conflict, which is a slow very memory
9616      # consuming and fragmenting process.  To avoid this, we pick a random,
9617      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9618      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9619      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9620      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'
9621      ;;
9622
9623    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9624      tmp_diet=no
9625      if test linux-dietlibc = "$host_os"; then
9626	case $cc_basename in
9627	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9628	esac
9629      fi
9630      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9631	 && test no = "$tmp_diet"
9632      then
9633	tmp_addflag=' $pic_flag'
9634	tmp_sharedflag='-shared'
9635	case $cc_basename,$host_cpu in
9636        pgcc*)				# Portland Group C compiler
9637	  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'
9638	  tmp_addflag=' $pic_flag'
9639	  ;;
9640	pgf77* | pgf90* | pgf95* | pgfortran*)
9641					# Portland Group f77 and f90 compilers
9642	  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'
9643	  tmp_addflag=' $pic_flag -Mnomain' ;;
9644	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9645	  tmp_addflag=' -i_dynamic' ;;
9646	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9647	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9648	ifc* | ifort*)			# Intel Fortran compiler
9649	  tmp_addflag=' -nofor_main' ;;
9650	lf95*)				# Lahey Fortran 8.1
9651	  whole_archive_flag_spec=
9652	  tmp_sharedflag='--shared' ;;
9653        nagfor*)                        # NAGFOR 5.3
9654          tmp_sharedflag='-Wl,-shared' ;;
9655	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9656	  tmp_sharedflag='-qmkshrobj'
9657	  tmp_addflag= ;;
9658	nvcc*)	# Cuda Compiler Driver 2.2
9659	  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'
9660	  compiler_needs_object=yes
9661	  ;;
9662	esac
9663	case `$CC -V 2>&1 | $SED 5q` in
9664	*Sun\ C*)			# Sun C 5.9
9665	  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'
9666	  compiler_needs_object=yes
9667	  tmp_sharedflag='-G' ;;
9668	*Sun\ F*)			# Sun Fortran 8.3
9669	  tmp_sharedflag='-G' ;;
9670	esac
9671	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9672
9673        if test yes = "$supports_anon_versioning"; then
9674          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9675            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9676            echo "local: *; };" >> $output_objdir/$libname.ver~
9677            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9678        fi
9679
9680	case $cc_basename in
9681	tcc*)
9682	  export_dynamic_flag_spec='-rdynamic'
9683	  ;;
9684	xlf* | bgf* | bgxlf* | mpixlf*)
9685	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9686	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9687	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9688	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9689	  if test yes = "$supports_anon_versioning"; then
9690	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9691              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9692              echo "local: *; };" >> $output_objdir/$libname.ver~
9693              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9694	  fi
9695	  ;;
9696	esac
9697      else
9698        ld_shlibs=no
9699      fi
9700      ;;
9701
9702    netbsd*)
9703      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9704	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9705	wlarc=
9706      else
9707	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9708	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9709      fi
9710      ;;
9711
9712    solaris*)
9713      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9714	ld_shlibs=no
9715	cat <<_LT_EOF 1>&2
9716
9717*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9718*** create shared libraries on Solaris systems.  Therefore, libtool
9719*** is disabling shared libraries support.  We urge you to upgrade GNU
9720*** binutils to release 2.9.1 or newer.  Another option is to modify
9721*** your PATH or compiler configuration so that the native linker is
9722*** used, and then restart.
9723
9724_LT_EOF
9725      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9726	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9727	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9728      else
9729	ld_shlibs=no
9730      fi
9731      ;;
9732
9733    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9734      case `$LD -v 2>&1` in
9735        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9736	ld_shlibs=no
9737	cat <<_LT_EOF 1>&2
9738
9739*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9740*** reliably create shared libraries on SCO systems.  Therefore, libtool
9741*** is disabling shared libraries support.  We urge you to upgrade GNU
9742*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9743*** your PATH or compiler configuration so that the native linker is
9744*** used, and then restart.
9745
9746_LT_EOF
9747	;;
9748	*)
9749	  # For security reasons, it is highly recommended that you always
9750	  # use absolute paths for naming shared libraries, and exclude the
9751	  # DT_RUNPATH tag from executables and libraries.  But doing so
9752	  # requires that you compile everything twice, which is a pain.
9753	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9754	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9755	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9756	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9757	  else
9758	    ld_shlibs=no
9759	  fi
9760	;;
9761      esac
9762      ;;
9763
9764    sunos4*)
9765      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9766      wlarc=
9767      hardcode_direct=yes
9768      hardcode_shlibpath_var=no
9769      ;;
9770
9771    *)
9772      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9773	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9774	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9775      else
9776	ld_shlibs=no
9777      fi
9778      ;;
9779    esac
9780
9781    if test no = "$ld_shlibs"; then
9782      runpath_var=
9783      hardcode_libdir_flag_spec=
9784      export_dynamic_flag_spec=
9785      whole_archive_flag_spec=
9786    fi
9787  else
9788    # PORTME fill in a description of your system's linker (not GNU ld)
9789    case $host_os in
9790    aix3*)
9791      allow_undefined_flag=unsupported
9792      always_export_symbols=yes
9793      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'
9794      # Note: this linker hardcodes the directories in LIBPATH if there
9795      # are no directories specified by -L.
9796      hardcode_minus_L=yes
9797      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9798	# Neither direct hardcoding nor static linking is supported with a
9799	# broken collect2.
9800	hardcode_direct=unsupported
9801      fi
9802      ;;
9803
9804    aix[4-9]*)
9805      if test ia64 = "$host_cpu"; then
9806	# On IA64, the linker does run time linking by default, so we don't
9807	# have to do anything special.
9808	aix_use_runtimelinking=no
9809	exp_sym_flag='-Bexport'
9810	no_entry_flag=
9811      else
9812	# If we're using GNU nm, then we don't want the "-C" option.
9813	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9814	# Without the "-l" option, or with the "-B" option, AIX nm treats
9815	# weak defined symbols like other global defined symbols, whereas
9816	# GNU nm marks them as "W".
9817	# While the 'weak' keyword is ignored in the Export File, we need
9818	# it in the Import File for the 'aix-soname' feature, so we have
9819	# to replace the "-B" option with "-P" for AIX nm.
9820	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9821	  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'
9822	else
9823	  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'
9824	fi
9825	aix_use_runtimelinking=no
9826
9827	# Test if we are trying to use run time linking or normal
9828	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9829	# have runtime linking enabled, and use it for executables.
9830	# For shared libraries, we enable/disable runtime linking
9831	# depending on the kind of the shared library created -
9832	# when "with_aix_soname,aix_use_runtimelinking" is:
9833	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9834	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9835	#            lib.a           static archive
9836	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9837	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9838	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9839	#            lib.a(lib.so.V) shared, rtl:no
9840	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9841	#            lib.a           static archive
9842	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9843	  for ld_flag in $LDFLAGS; do
9844	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9845	    aix_use_runtimelinking=yes
9846	    break
9847	  fi
9848	  done
9849	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9850	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9851	    # so we don't have lib.a shared libs to link our executables.
9852	    # We have to force runtime linking in this case.
9853	    aix_use_runtimelinking=yes
9854	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9855	  fi
9856	  ;;
9857	esac
9858
9859	exp_sym_flag='-bexport'
9860	no_entry_flag='-bnoentry'
9861      fi
9862
9863      # When large executables or shared objects are built, AIX ld can
9864      # have problems creating the table of contents.  If linking a library
9865      # or program results in "error TOC overflow" add -mminimal-toc to
9866      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9867      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9868
9869      archive_cmds=''
9870      hardcode_direct=yes
9871      hardcode_direct_absolute=yes
9872      hardcode_libdir_separator=':'
9873      link_all_deplibs=yes
9874      file_list_spec='$wl-f,'
9875      case $with_aix_soname,$aix_use_runtimelinking in
9876      aix,*) ;; # traditional, no import file
9877      svr4,* | *,yes) # use import file
9878	# The Import File defines what to hardcode.
9879	hardcode_direct=no
9880	hardcode_direct_absolute=no
9881	;;
9882      esac
9883
9884      if test yes = "$GCC"; then
9885	case $host_os in aix4.[012]|aix4.[012].*)
9886	# We only want to do this on AIX 4.2 and lower, the check
9887	# below for broken collect2 doesn't work under 4.3+
9888	  collect2name=`$CC -print-prog-name=collect2`
9889	  if test -f "$collect2name" &&
9890	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9891	  then
9892	  # We have reworked collect2
9893	  :
9894	  else
9895	  # We have old collect2
9896	  hardcode_direct=unsupported
9897	  # It fails to find uninstalled libraries when the uninstalled
9898	  # path is not listed in the libpath.  Setting hardcode_minus_L
9899	  # to unsupported forces relinking
9900	  hardcode_minus_L=yes
9901	  hardcode_libdir_flag_spec='-L$libdir'
9902	  hardcode_libdir_separator=
9903	  fi
9904	  ;;
9905	esac
9906	shared_flag='-shared'
9907	if test yes = "$aix_use_runtimelinking"; then
9908	  shared_flag="$shared_flag "'$wl-G'
9909	fi
9910	# Need to ensure runtime linking is disabled for the traditional
9911	# shared library, or the linker may eventually find shared libraries
9912	# /with/ Import File - we do not want to mix them.
9913	shared_flag_aix='-shared'
9914	shared_flag_svr4='-shared $wl-G'
9915      else
9916	# not using gcc
9917	if test ia64 = "$host_cpu"; then
9918	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9919	# chokes on -Wl,-G. The following line is correct:
9920	  shared_flag='-G'
9921	else
9922	  if test yes = "$aix_use_runtimelinking"; then
9923	    shared_flag='$wl-G'
9924	  else
9925	    shared_flag='$wl-bM:SRE'
9926	  fi
9927	  shared_flag_aix='$wl-bM:SRE'
9928	  shared_flag_svr4='$wl-G'
9929	fi
9930      fi
9931
9932      export_dynamic_flag_spec='$wl-bexpall'
9933      # It seems that -bexpall does not export symbols beginning with
9934      # underscore (_), so it is better to generate a list of symbols to export.
9935      always_export_symbols=yes
9936      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9937	# Warning - without using the other runtime loading flags (-brtl),
9938	# -berok will link without error, but may produce a broken library.
9939	allow_undefined_flag='-berok'
9940        # Determine the default libpath from the value encoded in an
9941        # empty executable.
9942        if test set = "${lt_cv_aix_libpath+set}"; then
9943  aix_libpath=$lt_cv_aix_libpath
9944else
9945  if test ${lt_cv_aix_libpath_+y}
9946then :
9947  printf %s "(cached) " >&6
9948else $as_nop
9949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h.  */
9951
9952int
9953main (void)
9954{
9955
9956  ;
9957  return 0;
9958}
9959_ACEOF
9960if ac_fn_c_try_link "$LINENO"
9961then :
9962
9963  lt_aix_libpath_sed='
9964      /Import File Strings/,/^$/ {
9965	  /^0/ {
9966	      s/^0  *\([^ ]*\) *$/\1/
9967	      p
9968	  }
9969      }'
9970  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9971  # Check for a 64-bit object if we didn't find anything.
9972  if test -z "$lt_cv_aix_libpath_"; then
9973    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9974  fi
9975fi
9976rm -f core conftest.err conftest.$ac_objext conftest.beam \
9977    conftest$ac_exeext conftest.$ac_ext
9978  if test -z "$lt_cv_aix_libpath_"; then
9979    lt_cv_aix_libpath_=/usr/lib:/lib
9980  fi
9981
9982fi
9983
9984  aix_libpath=$lt_cv_aix_libpath_
9985fi
9986
9987        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9988        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
9989      else
9990	if test ia64 = "$host_cpu"; then
9991	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9992	  allow_undefined_flag="-z nodefs"
9993	  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"
9994	else
9995	 # Determine the default libpath from the value encoded in an
9996	 # empty executable.
9997	 if test set = "${lt_cv_aix_libpath+set}"; then
9998  aix_libpath=$lt_cv_aix_libpath
9999else
10000  if test ${lt_cv_aix_libpath_+y}
10001then :
10002  printf %s "(cached) " >&6
10003else $as_nop
10004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005/* end confdefs.h.  */
10006
10007int
10008main (void)
10009{
10010
10011  ;
10012  return 0;
10013}
10014_ACEOF
10015if ac_fn_c_try_link "$LINENO"
10016then :
10017
10018  lt_aix_libpath_sed='
10019      /Import File Strings/,/^$/ {
10020	  /^0/ {
10021	      s/^0  *\([^ ]*\) *$/\1/
10022	      p
10023	  }
10024      }'
10025  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10026  # Check for a 64-bit object if we didn't find anything.
10027  if test -z "$lt_cv_aix_libpath_"; then
10028    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10029  fi
10030fi
10031rm -f core conftest.err conftest.$ac_objext conftest.beam \
10032    conftest$ac_exeext conftest.$ac_ext
10033  if test -z "$lt_cv_aix_libpath_"; then
10034    lt_cv_aix_libpath_=/usr/lib:/lib
10035  fi
10036
10037fi
10038
10039  aix_libpath=$lt_cv_aix_libpath_
10040fi
10041
10042	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10043	  # Warning - without using the other run time loading flags,
10044	  # -berok will link without error, but may produce a broken library.
10045	  no_undefined_flag=' $wl-bernotok'
10046	  allow_undefined_flag=' $wl-berok'
10047	  if test yes = "$with_gnu_ld"; then
10048	    # We only use this code for GNU lds that support --whole-archive.
10049	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10050	  else
10051	    # Exported symbols can be pulled into shared objects from archives
10052	    whole_archive_flag_spec='$convenience'
10053	  fi
10054	  archive_cmds_need_lc=yes
10055	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10056	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10057	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10058	  if test svr4 != "$with_aix_soname"; then
10059	    # This is similar to how AIX traditionally builds its shared libraries.
10060	    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'
10061	  fi
10062	  if test aix != "$with_aix_soname"; then
10063	    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'
10064	  else
10065	    # used by -dlpreopen to get the symbols
10066	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10067	  fi
10068	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10069	fi
10070      fi
10071      ;;
10072
10073    amigaos*)
10074      case $host_cpu in
10075      powerpc)
10076            # see comment about AmigaOS4 .so support
10077            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10078            archive_expsym_cmds=''
10079        ;;
10080      m68k)
10081            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)'
10082            hardcode_libdir_flag_spec='-L$libdir'
10083            hardcode_minus_L=yes
10084        ;;
10085      esac
10086      ;;
10087
10088    bsdi[45]*)
10089      export_dynamic_flag_spec=-rdynamic
10090      ;;
10091
10092    cygwin* | mingw* | pw32* | cegcc*)
10093      # When not using gcc, we currently assume that we are using
10094      # Microsoft Visual C++ or Intel C++ Compiler.
10095      # hardcode_libdir_flag_spec is actually meaningless, as there is
10096      # no search path for DLLs.
10097      case $cc_basename in
10098      cl* | icl*)
10099	# Native MSVC or ICC
10100	hardcode_libdir_flag_spec=' '
10101	allow_undefined_flag=unsupported
10102	always_export_symbols=yes
10103	file_list_spec='@'
10104	# Tell ltmain to make .lib files, not .a files.
10105	libext=lib
10106	# Tell ltmain to make .dll files, not .so files.
10107	shrext_cmds=.dll
10108	# FIXME: Setting linknames here is a bad hack.
10109	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10110	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10111            cp "$export_symbols" "$output_objdir/$soname.def";
10112            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10113          else
10114            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10115          fi~
10116          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10117          linknames='
10118	# The linker will not automatically build a static lib if we build a DLL.
10119	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10120	enable_shared_with_static_runtimes=yes
10121	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10122	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10123	# Don't use ranlib
10124	old_postinstall_cmds='chmod 644 $oldlib'
10125	postlink_cmds='lt_outputfile="@OUTPUT@"~
10126          lt_tool_outputfile="@TOOL_OUTPUT@"~
10127          case $lt_outputfile in
10128            *.exe|*.EXE) ;;
10129            *)
10130              lt_outputfile=$lt_outputfile.exe
10131              lt_tool_outputfile=$lt_tool_outputfile.exe
10132              ;;
10133          esac~
10134          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10135            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10136            $RM "$lt_outputfile.manifest";
10137          fi'
10138	;;
10139      *)
10140	# Assume MSVC and ICC wrapper
10141	hardcode_libdir_flag_spec=' '
10142	allow_undefined_flag=unsupported
10143	# Tell ltmain to make .lib files, not .a files.
10144	libext=lib
10145	# Tell ltmain to make .dll files, not .so files.
10146	shrext_cmds=.dll
10147	# FIXME: Setting linknames here is a bad hack.
10148	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10149	# The linker will automatically build a .lib file if we build a DLL.
10150	old_archive_from_new_cmds='true'
10151	# FIXME: Should let the user specify the lib program.
10152	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10153	enable_shared_with_static_runtimes=yes
10154	;;
10155      esac
10156      ;;
10157
10158    darwin* | rhapsody*)
10159
10160
10161  archive_cmds_need_lc=no
10162  hardcode_direct=no
10163  hardcode_automatic=yes
10164  hardcode_shlibpath_var=unsupported
10165  if test yes = "$lt_cv_ld_force_load"; then
10166    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\"`'
10167
10168  else
10169    whole_archive_flag_spec=''
10170  fi
10171  link_all_deplibs=yes
10172  allow_undefined_flag=$_lt_dar_allow_undefined
10173  case $cc_basename in
10174     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10175     *) _lt_dar_can_shared=$GCC ;;
10176  esac
10177  if test yes = "$_lt_dar_can_shared"; then
10178    output_verbose_link_cmd=func_echo_all
10179    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10180    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10181    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"
10182    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"
10183
10184  else
10185  ld_shlibs=no
10186  fi
10187
10188      ;;
10189
10190    dgux*)
10191      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192      hardcode_libdir_flag_spec='-L$libdir'
10193      hardcode_shlibpath_var=no
10194      ;;
10195
10196    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10197    # support.  Future versions do this automatically, but an explicit c++rt0.o
10198    # does not break anything, and helps significantly (at the cost of a little
10199    # extra space).
10200    freebsd2.2*)
10201      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10202      hardcode_libdir_flag_spec='-R$libdir'
10203      hardcode_direct=yes
10204      hardcode_shlibpath_var=no
10205      ;;
10206
10207    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10208    freebsd2.*)
10209      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10210      hardcode_direct=yes
10211      hardcode_minus_L=yes
10212      hardcode_shlibpath_var=no
10213      ;;
10214
10215    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10216    freebsd* | dragonfly* | midnightbsd*)
10217      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10218      hardcode_libdir_flag_spec='-R$libdir'
10219      hardcode_direct=yes
10220      hardcode_shlibpath_var=no
10221      ;;
10222
10223    hpux9*)
10224      if test yes = "$GCC"; then
10225	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'
10226      else
10227	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'
10228      fi
10229      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10230      hardcode_libdir_separator=:
10231      hardcode_direct=yes
10232
10233      # hardcode_minus_L: Not really in the search PATH,
10234      # but as the default location of the library.
10235      hardcode_minus_L=yes
10236      export_dynamic_flag_spec='$wl-E'
10237      ;;
10238
10239    hpux10*)
10240      if test yes,no = "$GCC,$with_gnu_ld"; then
10241	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10242      else
10243	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10244      fi
10245      if test no = "$with_gnu_ld"; then
10246	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10247	hardcode_libdir_separator=:
10248	hardcode_direct=yes
10249	hardcode_direct_absolute=yes
10250	export_dynamic_flag_spec='$wl-E'
10251	# hardcode_minus_L: Not really in the search PATH,
10252	# but as the default location of the library.
10253	hardcode_minus_L=yes
10254      fi
10255      ;;
10256
10257    hpux11*)
10258      if test yes,no = "$GCC,$with_gnu_ld"; then
10259	case $host_cpu in
10260	hppa*64*)
10261	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10262	  ;;
10263	ia64*)
10264	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10265	  ;;
10266	*)
10267	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10268	  ;;
10269	esac
10270      else
10271	case $host_cpu in
10272	hppa*64*)
10273	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10274	  ;;
10275	ia64*)
10276	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10277	  ;;
10278	*)
10279
10280	  # Older versions of the 11.00 compiler do not understand -b yet
10281	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10282	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10283printf %s "checking if $CC understands -b... " >&6; }
10284if test ${lt_cv_prog_compiler__b+y}
10285then :
10286  printf %s "(cached) " >&6
10287else $as_nop
10288  lt_cv_prog_compiler__b=no
10289   save_LDFLAGS=$LDFLAGS
10290   LDFLAGS="$LDFLAGS -b"
10291   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10292   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10293     # The linker can only warn and ignore the option if not recognized
10294     # So say no if there are warnings
10295     if test -s conftest.err; then
10296       # Append any errors to the config.log.
10297       cat conftest.err 1>&5
10298       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10299       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10300       if diff conftest.exp conftest.er2 >/dev/null; then
10301         lt_cv_prog_compiler__b=yes
10302       fi
10303     else
10304       lt_cv_prog_compiler__b=yes
10305     fi
10306   fi
10307   $RM -r conftest*
10308   LDFLAGS=$save_LDFLAGS
10309
10310fi
10311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10312printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10313
10314if test yes = "$lt_cv_prog_compiler__b"; then
10315    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10316else
10317    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10318fi
10319
10320	  ;;
10321	esac
10322      fi
10323      if test no = "$with_gnu_ld"; then
10324	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10325	hardcode_libdir_separator=:
10326
10327	case $host_cpu in
10328	hppa*64*|ia64*)
10329	  hardcode_direct=no
10330	  hardcode_shlibpath_var=no
10331	  ;;
10332	*)
10333	  hardcode_direct=yes
10334	  hardcode_direct_absolute=yes
10335	  export_dynamic_flag_spec='$wl-E'
10336
10337	  # hardcode_minus_L: Not really in the search PATH,
10338	  # but as the default location of the library.
10339	  hardcode_minus_L=yes
10340	  ;;
10341	esac
10342      fi
10343      ;;
10344
10345    irix5* | irix6* | nonstopux*)
10346      if test yes = "$GCC"; then
10347	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'
10348	# Try to use the -exported_symbol ld option, if it does not
10349	# work, assume that -exports_file does not work either and
10350	# implicitly export all symbols.
10351	# This should be the same for all languages, so no per-tag cache variable.
10352	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10353printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10354if test ${lt_cv_irix_exported_symbol+y}
10355then :
10356  printf %s "(cached) " >&6
10357else $as_nop
10358  save_LDFLAGS=$LDFLAGS
10359	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10360	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361/* end confdefs.h.  */
10362int foo (void) { return 0; }
10363_ACEOF
10364if ac_fn_c_try_link "$LINENO"
10365then :
10366  lt_cv_irix_exported_symbol=yes
10367else $as_nop
10368  lt_cv_irix_exported_symbol=no
10369fi
10370rm -f core conftest.err conftest.$ac_objext conftest.beam \
10371    conftest$ac_exeext conftest.$ac_ext
10372           LDFLAGS=$save_LDFLAGS
10373fi
10374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10375printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10376	if test yes = "$lt_cv_irix_exported_symbol"; then
10377          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'
10378	fi
10379      else
10380	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'
10381	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'
10382      fi
10383      archive_cmds_need_lc='no'
10384      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10385      hardcode_libdir_separator=:
10386      inherit_rpath=yes
10387      link_all_deplibs=yes
10388      ;;
10389
10390    linux*)
10391      case $cc_basename in
10392      tcc*)
10393	# Fabrice Bellard et al's Tiny C Compiler
10394	ld_shlibs=yes
10395	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10396	;;
10397      esac
10398      ;;
10399
10400    netbsd*)
10401      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10402	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10403      else
10404	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10405      fi
10406      hardcode_libdir_flag_spec='-R$libdir'
10407      hardcode_direct=yes
10408      hardcode_shlibpath_var=no
10409      ;;
10410
10411    newsos6)
10412      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10413      hardcode_direct=yes
10414      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10415      hardcode_libdir_separator=:
10416      hardcode_shlibpath_var=no
10417      ;;
10418
10419    *nto* | *qnx*)
10420      ;;
10421
10422    openbsd* | bitrig*)
10423      if test -f /usr/libexec/ld.so; then
10424	hardcode_direct=yes
10425	hardcode_shlibpath_var=no
10426	hardcode_direct_absolute=yes
10427	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10428	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10429	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10430	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10431	  export_dynamic_flag_spec='$wl-E'
10432	else
10433	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10434	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10435	fi
10436      else
10437	ld_shlibs=no
10438      fi
10439      ;;
10440
10441    os2*)
10442      hardcode_libdir_flag_spec='-L$libdir'
10443      hardcode_minus_L=yes
10444      allow_undefined_flag=unsupported
10445      shrext_cmds=.dll
10446      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10447	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10448	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10449	$ECHO EXPORTS >> $output_objdir/$libname.def~
10450	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10451	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10452	emximp -o $lib $output_objdir/$libname.def'
10453      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10454	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10455	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10456	$ECHO EXPORTS >> $output_objdir/$libname.def~
10457	prefix_cmds="$SED"~
10458	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10459	  prefix_cmds="$prefix_cmds -e 1d";
10460	fi~
10461	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10462	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10463	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10464	emximp -o $lib $output_objdir/$libname.def'
10465      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10466      enable_shared_with_static_runtimes=yes
10467      file_list_spec='@'
10468      ;;
10469
10470    osf3*)
10471      if test yes = "$GCC"; then
10472	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10473	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'
10474      else
10475	allow_undefined_flag=' -expect_unresolved \*'
10476	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'
10477      fi
10478      archive_cmds_need_lc='no'
10479      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10480      hardcode_libdir_separator=:
10481      ;;
10482
10483    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10484      if test yes = "$GCC"; then
10485	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10486	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'
10487	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10488      else
10489	allow_undefined_flag=' -expect_unresolved \*'
10490	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'
10491	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~
10492          $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'
10493
10494	# Both c and cxx compiler support -rpath directly
10495	hardcode_libdir_flag_spec='-rpath $libdir'
10496      fi
10497      archive_cmds_need_lc='no'
10498      hardcode_libdir_separator=:
10499      ;;
10500
10501    solaris*)
10502      no_undefined_flag=' -z defs'
10503      if test yes = "$GCC"; then
10504	wlarc='$wl'
10505	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10506	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10507          $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'
10508      else
10509	case `$CC -V 2>&1` in
10510	*"Compilers 5.0"*)
10511	  wlarc=''
10512	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10514            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10515	  ;;
10516	*)
10517	  wlarc='$wl'
10518	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10519	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10520            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10521	  ;;
10522	esac
10523      fi
10524      hardcode_libdir_flag_spec='-R$libdir'
10525      hardcode_shlibpath_var=no
10526      case $host_os in
10527      solaris2.[0-5] | solaris2.[0-5].*) ;;
10528      *)
10529	# The compiler driver will combine and reorder linker options,
10530	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10531	# but is careful enough not to reorder.
10532	# Supported since Solaris 2.6 (maybe 2.5.1?)
10533	if test yes = "$GCC"; then
10534	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10535	else
10536	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10537	fi
10538	;;
10539      esac
10540      link_all_deplibs=yes
10541      ;;
10542
10543    sunos4*)
10544      if test sequent = "$host_vendor"; then
10545	# Use $CC to link under sequent, because it throws in some extra .o
10546	# files that make .init and .fini sections work.
10547	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10548      else
10549	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10550      fi
10551      hardcode_libdir_flag_spec='-L$libdir'
10552      hardcode_direct=yes
10553      hardcode_minus_L=yes
10554      hardcode_shlibpath_var=no
10555      ;;
10556
10557    sysv4)
10558      case $host_vendor in
10559	sni)
10560	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10561	  hardcode_direct=yes # is this really true???
10562	;;
10563	siemens)
10564	  ## LD is ld it makes a PLAMLIB
10565	  ## CC just makes a GrossModule.
10566	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10567	  reload_cmds='$CC -r -o $output$reload_objs'
10568	  hardcode_direct=no
10569        ;;
10570	motorola)
10571	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10572	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10573	;;
10574      esac
10575      runpath_var='LD_RUN_PATH'
10576      hardcode_shlibpath_var=no
10577      ;;
10578
10579    sysv4.3*)
10580      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581      hardcode_shlibpath_var=no
10582      export_dynamic_flag_spec='-Bexport'
10583      ;;
10584
10585    sysv4*MP*)
10586      if test -d /usr/nec; then
10587	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10588	hardcode_shlibpath_var=no
10589	runpath_var=LD_RUN_PATH
10590	hardcode_runpath_var=yes
10591	ld_shlibs=yes
10592      fi
10593      ;;
10594
10595    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10596      no_undefined_flag='$wl-z,text'
10597      archive_cmds_need_lc=no
10598      hardcode_shlibpath_var=no
10599      runpath_var='LD_RUN_PATH'
10600
10601      if test yes = "$GCC"; then
10602	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10603	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10604      else
10605	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10607      fi
10608      ;;
10609
10610    sysv5* | sco3.2v5* | sco5v6*)
10611      # Note: We CANNOT use -z defs as we might desire, because we do not
10612      # link with -lc, and that would cause any symbols used from libc to
10613      # always be unresolved, which means just about no library would
10614      # ever link correctly.  If we're not using GNU ld we use -z text
10615      # though, which does catch some bad symbols but isn't as heavy-handed
10616      # as -z defs.
10617      no_undefined_flag='$wl-z,text'
10618      allow_undefined_flag='$wl-z,nodefs'
10619      archive_cmds_need_lc=no
10620      hardcode_shlibpath_var=no
10621      hardcode_libdir_flag_spec='$wl-R,$libdir'
10622      hardcode_libdir_separator=':'
10623      link_all_deplibs=yes
10624      export_dynamic_flag_spec='$wl-Bexport'
10625      runpath_var='LD_RUN_PATH'
10626
10627      if test yes = "$GCC"; then
10628	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10629	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630      else
10631	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10632	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10633      fi
10634      ;;
10635
10636    uts4*)
10637      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10638      hardcode_libdir_flag_spec='-L$libdir'
10639      hardcode_shlibpath_var=no
10640      ;;
10641
10642    *)
10643      ld_shlibs=no
10644      ;;
10645    esac
10646
10647    if test sni = "$host_vendor"; then
10648      case $host in
10649      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10650	export_dynamic_flag_spec='$wl-Blargedynsym'
10651	;;
10652      esac
10653    fi
10654  fi
10655
10656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10657printf "%s\n" "$ld_shlibs" >&6; }
10658test no = "$ld_shlibs" && can_build_shared=no
10659
10660with_gnu_ld=$with_gnu_ld
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676#
10677# Do we need to explicitly link libc?
10678#
10679case "x$archive_cmds_need_lc" in
10680x|xyes)
10681  # Assume -lc should be added
10682  archive_cmds_need_lc=yes
10683
10684  if test yes,yes = "$GCC,$enable_shared"; then
10685    case $archive_cmds in
10686    *'~'*)
10687      # FIXME: we may have to deal with multi-command sequences.
10688      ;;
10689    '$CC '*)
10690      # Test whether the compiler implicitly links with -lc since on some
10691      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10692      # to ld, don't add -lc before -lgcc.
10693      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10694printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10695if test ${lt_cv_archive_cmds_need_lc+y}
10696then :
10697  printf %s "(cached) " >&6
10698else $as_nop
10699  $RM conftest*
10700	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10701
10702	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10703  (eval $ac_compile) 2>&5
10704  ac_status=$?
10705  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10706  test $ac_status = 0; } 2>conftest.err; then
10707	  soname=conftest
10708	  lib=conftest
10709	  libobjs=conftest.$ac_objext
10710	  deplibs=
10711	  wl=$lt_prog_compiler_wl
10712	  pic_flag=$lt_prog_compiler_pic
10713	  compiler_flags=-v
10714	  linker_flags=-v
10715	  verstring=
10716	  output_objdir=.
10717	  libname=conftest
10718	  lt_save_allow_undefined_flag=$allow_undefined_flag
10719	  allow_undefined_flag=
10720	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10721  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10722  ac_status=$?
10723  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10724  test $ac_status = 0; }
10725	  then
10726	    lt_cv_archive_cmds_need_lc=no
10727	  else
10728	    lt_cv_archive_cmds_need_lc=yes
10729	  fi
10730	  allow_undefined_flag=$lt_save_allow_undefined_flag
10731	else
10732	  cat conftest.err 1>&5
10733	fi
10734	$RM conftest*
10735
10736fi
10737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10738printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10739      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10740      ;;
10741    esac
10742  fi
10743  ;;
10744esac
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10898printf %s "checking dynamic linker characteristics... " >&6; }
10899
10900if test yes = "$GCC"; then
10901  case $host_os in
10902    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10903    *) lt_awk_arg='/^libraries:/' ;;
10904  esac
10905  case $host_os in
10906    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10907    *) lt_sed_strip_eq='s|=/|/|g' ;;
10908  esac
10909  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10910  case $lt_search_path_spec in
10911  *\;*)
10912    # if the path contains ";" then we assume it to be the separator
10913    # otherwise default to the standard path separator (i.e. ":") - it is
10914    # assumed that no part of a normal pathname contains ";" but that should
10915    # okay in the real world where ";" in dirpaths is itself problematic.
10916    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10917    ;;
10918  *)
10919    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10920    ;;
10921  esac
10922  # Ok, now we have the path, separated by spaces, we can step through it
10923  # and add multilib dir if necessary...
10924  lt_tmp_lt_search_path_spec=
10925  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10926  # ...but if some path component already ends with the multilib dir we assume
10927  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10928  case "$lt_multi_os_dir; $lt_search_path_spec " in
10929  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10930    lt_multi_os_dir=
10931    ;;
10932  esac
10933  for lt_sys_path in $lt_search_path_spec; do
10934    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10935      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10936    elif test -n "$lt_multi_os_dir"; then
10937      test -d "$lt_sys_path" && \
10938	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10939    fi
10940  done
10941  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10942BEGIN {RS = " "; FS = "/|\n";} {
10943  lt_foo = "";
10944  lt_count = 0;
10945  for (lt_i = NF; lt_i > 0; lt_i--) {
10946    if ($lt_i != "" && $lt_i != ".") {
10947      if ($lt_i == "..") {
10948        lt_count++;
10949      } else {
10950        if (lt_count == 0) {
10951          lt_foo = "/" $lt_i lt_foo;
10952        } else {
10953          lt_count--;
10954        }
10955      }
10956    }
10957  }
10958  if (lt_foo != "") { lt_freq[lt_foo]++; }
10959  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10960}'`
10961  # AWK program above erroneously prepends '/' to C:/dos/paths
10962  # for these hosts.
10963  case $host_os in
10964    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10965      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10966  esac
10967  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10968else
10969  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10970fi
10971library_names_spec=
10972libname_spec='lib$name'
10973soname_spec=
10974shrext_cmds=.so
10975postinstall_cmds=
10976postuninstall_cmds=
10977finish_cmds=
10978finish_eval=
10979shlibpath_var=
10980shlibpath_overrides_runpath=unknown
10981version_type=none
10982dynamic_linker="$host_os ld.so"
10983sys_lib_dlsearch_path_spec="/lib /usr/lib"
10984need_lib_prefix=unknown
10985hardcode_into_libs=no
10986
10987# when you set need_version to no, make sure it does not cause -set_version
10988# flags to be left without arguments
10989need_version=unknown
10990
10991
10992
10993case $host_os in
10994aix3*)
10995  version_type=linux # correct to gnu/linux during the next big refactor
10996  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10997  shlibpath_var=LIBPATH
10998
10999  # AIX 3 has no versioning support, so we append a major version to the name.
11000  soname_spec='$libname$release$shared_ext$major'
11001  ;;
11002
11003aix[4-9]*)
11004  version_type=linux # correct to gnu/linux during the next big refactor
11005  need_lib_prefix=no
11006  need_version=no
11007  hardcode_into_libs=yes
11008  if test ia64 = "$host_cpu"; then
11009    # AIX 5 supports IA64
11010    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11011    shlibpath_var=LD_LIBRARY_PATH
11012  else
11013    # With GCC up to 2.95.x, collect2 would create an import file
11014    # for dependence libraries.  The import file would start with
11015    # the line '#! .'.  This would cause the generated library to
11016    # depend on '.', always an invalid library.  This was fixed in
11017    # development snapshots of GCC prior to 3.0.
11018    case $host_os in
11019      aix4 | aix4.[01] | aix4.[01].*)
11020      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11021	   echo ' yes '
11022	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11023	:
11024      else
11025	can_build_shared=no
11026      fi
11027      ;;
11028    esac
11029    # Using Import Files as archive members, it is possible to support
11030    # filename-based versioning of shared library archives on AIX. While
11031    # this would work for both with and without runtime linking, it will
11032    # prevent static linking of such archives. So we do filename-based
11033    # shared library versioning with .so extension only, which is used
11034    # when both runtime linking and shared linking is enabled.
11035    # Unfortunately, runtime linking may impact performance, so we do
11036    # not want this to be the default eventually. Also, we use the
11037    # versioned .so libs for executables only if there is the -brtl
11038    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11039    # To allow for filename-based versioning support, we need to create
11040    # libNAME.so.V as an archive file, containing:
11041    # *) an Import File, referring to the versioned filename of the
11042    #    archive as well as the shared archive member, telling the
11043    #    bitwidth (32 or 64) of that shared object, and providing the
11044    #    list of exported symbols of that shared object, eventually
11045    #    decorated with the 'weak' keyword
11046    # *) the shared object with the F_LOADONLY flag set, to really avoid
11047    #    it being seen by the linker.
11048    # At run time we better use the real file rather than another symlink,
11049    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11050
11051    case $with_aix_soname,$aix_use_runtimelinking in
11052    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11053    # soname into executable. Probably we can add versioning support to
11054    # collect2, so additional links can be useful in future.
11055    aix,yes) # traditional libtool
11056      dynamic_linker='AIX unversionable lib.so'
11057      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11058      # instead of lib<name>.a to let people know that these are not
11059      # typical AIX shared libraries.
11060      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11061      ;;
11062    aix,no) # traditional AIX only
11063      dynamic_linker='AIX lib.a(lib.so.V)'
11064      # We preserve .a as extension for shared libraries through AIX4.2
11065      # and later when we are not doing run time linking.
11066      library_names_spec='$libname$release.a $libname.a'
11067      soname_spec='$libname$release$shared_ext$major'
11068      ;;
11069    svr4,*) # full svr4 only
11070      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11071      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11072      # We do not specify a path in Import Files, so LIBPATH fires.
11073      shlibpath_overrides_runpath=yes
11074      ;;
11075    *,yes) # both, prefer svr4
11076      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11077      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11078      # unpreferred sharedlib libNAME.a needs extra handling
11079      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"'
11080      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"'
11081      # We do not specify a path in Import Files, so LIBPATH fires.
11082      shlibpath_overrides_runpath=yes
11083      ;;
11084    *,no) # both, prefer aix
11085      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11086      library_names_spec='$libname$release.a $libname.a'
11087      soname_spec='$libname$release$shared_ext$major'
11088      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11089      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)'
11090      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"'
11091      ;;
11092    esac
11093    shlibpath_var=LIBPATH
11094  fi
11095  ;;
11096
11097amigaos*)
11098  case $host_cpu in
11099  powerpc)
11100    # Since July 2007 AmigaOS4 officially supports .so libraries.
11101    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11102    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11103    ;;
11104  m68k)
11105    library_names_spec='$libname.ixlibrary $libname.a'
11106    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11107    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'
11108    ;;
11109  esac
11110  ;;
11111
11112beos*)
11113  library_names_spec='$libname$shared_ext'
11114  dynamic_linker="$host_os ld.so"
11115  shlibpath_var=LIBRARY_PATH
11116  ;;
11117
11118bsdi[45]*)
11119  version_type=linux # correct to gnu/linux during the next big refactor
11120  need_version=no
11121  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11122  soname_spec='$libname$release$shared_ext$major'
11123  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11124  shlibpath_var=LD_LIBRARY_PATH
11125  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11126  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11127  # the default ld.so.conf also contains /usr/contrib/lib and
11128  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11129  # libtool to hard-code these into programs
11130  ;;
11131
11132cygwin* | mingw* | pw32* | cegcc*)
11133  version_type=windows
11134  shrext_cmds=.dll
11135  need_version=no
11136  need_lib_prefix=no
11137
11138  case $GCC,$cc_basename in
11139  yes,*)
11140    # gcc
11141    library_names_spec='$libname.dll.a'
11142    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11143    postinstall_cmds='base_file=`basename \$file`~
11144      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11145      dldir=$destdir/`dirname \$dlpath`~
11146      test -d \$dldir || mkdir -p \$dldir~
11147      $install_prog $dir/$dlname \$dldir/$dlname~
11148      chmod a+x \$dldir/$dlname~
11149      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11150        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11151      fi'
11152    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11153      dlpath=$dir/\$dldll~
11154       $RM \$dlpath'
11155    shlibpath_overrides_runpath=yes
11156
11157    case $host_os in
11158    cygwin*)
11159      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11160      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11161
11162      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11163      ;;
11164    mingw* | cegcc*)
11165      # MinGW DLLs use traditional 'lib' prefix
11166      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11167      ;;
11168    pw32*)
11169      # pw32 DLLs use 'pw' prefix rather than 'lib'
11170      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11171      ;;
11172    esac
11173    dynamic_linker='Win32 ld.exe'
11174    ;;
11175
11176  *,cl* | *,icl*)
11177    # Native MSVC or ICC
11178    libname_spec='$name'
11179    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11180    library_names_spec='$libname.dll.lib'
11181
11182    case $build_os in
11183    mingw*)
11184      sys_lib_search_path_spec=
11185      lt_save_ifs=$IFS
11186      IFS=';'
11187      for lt_path in $LIB
11188      do
11189        IFS=$lt_save_ifs
11190        # Let DOS variable expansion print the short 8.3 style file name.
11191        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11192        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11193      done
11194      IFS=$lt_save_ifs
11195      # Convert to MSYS style.
11196      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11197      ;;
11198    cygwin*)
11199      # Convert to unix form, then to dos form, then back to unix form
11200      # but this time dos style (no spaces!) so that the unix form looks
11201      # like /cygdrive/c/PROGRA~1:/cygdr...
11202      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11203      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11204      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11205      ;;
11206    *)
11207      sys_lib_search_path_spec=$LIB
11208      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11209        # It is most probably a Windows format PATH.
11210        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11211      else
11212        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11213      fi
11214      # FIXME: find the short name or the path components, as spaces are
11215      # common. (e.g. "Program Files" -> "PROGRA~1")
11216      ;;
11217    esac
11218
11219    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11220    postinstall_cmds='base_file=`basename \$file`~
11221      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11222      dldir=$destdir/`dirname \$dlpath`~
11223      test -d \$dldir || mkdir -p \$dldir~
11224      $install_prog $dir/$dlname \$dldir/$dlname'
11225    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11226      dlpath=$dir/\$dldll~
11227       $RM \$dlpath'
11228    shlibpath_overrides_runpath=yes
11229    dynamic_linker='Win32 link.exe'
11230    ;;
11231
11232  *)
11233    # Assume MSVC and ICC wrapper
11234    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11235    dynamic_linker='Win32 ld.exe'
11236    ;;
11237  esac
11238  # FIXME: first we should search . and the directory the executable is in
11239  shlibpath_var=PATH
11240  ;;
11241
11242darwin* | rhapsody*)
11243  dynamic_linker="$host_os dyld"
11244  version_type=darwin
11245  need_lib_prefix=no
11246  need_version=no
11247  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11248  soname_spec='$libname$release$major$shared_ext'
11249  shlibpath_overrides_runpath=yes
11250  shlibpath_var=DYLD_LIBRARY_PATH
11251  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11252
11253  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11254  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11255  ;;
11256
11257dgux*)
11258  version_type=linux # correct to gnu/linux during the next big refactor
11259  need_lib_prefix=no
11260  need_version=no
11261  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11262  soname_spec='$libname$release$shared_ext$major'
11263  shlibpath_var=LD_LIBRARY_PATH
11264  ;;
11265
11266freebsd* | dragonfly* | midnightbsd*)
11267  # DragonFly does not have aout.  When/if they implement a new
11268  # versioning mechanism, adjust this.
11269  if test -x /usr/bin/objformat; then
11270    objformat=`/usr/bin/objformat`
11271  else
11272    case $host_os in
11273    freebsd[23].*) objformat=aout ;;
11274    *) objformat=elf ;;
11275    esac
11276  fi
11277  version_type=freebsd-$objformat
11278  case $version_type in
11279    freebsd-elf*)
11280      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11281      soname_spec='$libname$release$shared_ext$major'
11282      need_version=no
11283      need_lib_prefix=no
11284      ;;
11285    freebsd-*)
11286      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11287      need_version=yes
11288      ;;
11289  esac
11290  shlibpath_var=LD_LIBRARY_PATH
11291  case $host_os in
11292  freebsd2.*)
11293    shlibpath_overrides_runpath=yes
11294    ;;
11295  freebsd3.[01]* | freebsdelf3.[01]*)
11296    shlibpath_overrides_runpath=yes
11297    hardcode_into_libs=yes
11298    ;;
11299  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11300  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11301    shlibpath_overrides_runpath=no
11302    hardcode_into_libs=yes
11303    ;;
11304  *) # from 4.6 on, and DragonFly
11305    shlibpath_overrides_runpath=yes
11306    hardcode_into_libs=yes
11307    ;;
11308  esac
11309  ;;
11310
11311haiku*)
11312  version_type=linux # correct to gnu/linux during the next big refactor
11313  need_lib_prefix=no
11314  need_version=no
11315  dynamic_linker="$host_os runtime_loader"
11316  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11317  soname_spec='$libname$release$shared_ext$major'
11318  shlibpath_var=LIBRARY_PATH
11319  shlibpath_overrides_runpath=no
11320  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11321  hardcode_into_libs=yes
11322  ;;
11323
11324hpux9* | hpux10* | hpux11*)
11325  # Give a soname corresponding to the major version so that dld.sl refuses to
11326  # link against other versions.
11327  version_type=sunos
11328  need_lib_prefix=no
11329  need_version=no
11330  case $host_cpu in
11331  ia64*)
11332    shrext_cmds='.so'
11333    hardcode_into_libs=yes
11334    dynamic_linker="$host_os dld.so"
11335    shlibpath_var=LD_LIBRARY_PATH
11336    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11337    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11338    soname_spec='$libname$release$shared_ext$major'
11339    if test 32 = "$HPUX_IA64_MODE"; then
11340      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11341      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11342    else
11343      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11344      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11345    fi
11346    ;;
11347  hppa*64*)
11348    shrext_cmds='.sl'
11349    hardcode_into_libs=yes
11350    dynamic_linker="$host_os dld.sl"
11351    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11352    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11353    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11354    soname_spec='$libname$release$shared_ext$major'
11355    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11356    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11357    ;;
11358  *)
11359    shrext_cmds='.sl'
11360    dynamic_linker="$host_os dld.sl"
11361    shlibpath_var=SHLIB_PATH
11362    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11363    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11364    soname_spec='$libname$release$shared_ext$major'
11365    ;;
11366  esac
11367  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11368  postinstall_cmds='chmod 555 $lib'
11369  # or fails outright, so override atomically:
11370  install_override_mode=555
11371  ;;
11372
11373interix[3-9]*)
11374  version_type=linux # correct to gnu/linux during the next big refactor
11375  need_lib_prefix=no
11376  need_version=no
11377  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11378  soname_spec='$libname$release$shared_ext$major'
11379  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11380  shlibpath_var=LD_LIBRARY_PATH
11381  shlibpath_overrides_runpath=no
11382  hardcode_into_libs=yes
11383  ;;
11384
11385irix5* | irix6* | nonstopux*)
11386  case $host_os in
11387    nonstopux*) version_type=nonstopux ;;
11388    *)
11389	if test yes = "$lt_cv_prog_gnu_ld"; then
11390		version_type=linux # correct to gnu/linux during the next big refactor
11391	else
11392		version_type=irix
11393	fi ;;
11394  esac
11395  need_lib_prefix=no
11396  need_version=no
11397  soname_spec='$libname$release$shared_ext$major'
11398  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11399  case $host_os in
11400  irix5* | nonstopux*)
11401    libsuff= shlibsuff=
11402    ;;
11403  *)
11404    case $LD in # libtool.m4 will add one of these switches to LD
11405    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11406      libsuff= shlibsuff= libmagic=32-bit;;
11407    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11408      libsuff=32 shlibsuff=N32 libmagic=N32;;
11409    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11410      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11411    *) libsuff= shlibsuff= libmagic=never-match;;
11412    esac
11413    ;;
11414  esac
11415  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11416  shlibpath_overrides_runpath=no
11417  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11418  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11419  hardcode_into_libs=yes
11420  ;;
11421
11422# No shared lib support for Linux oldld, aout, or coff.
11423linux*oldld* | linux*aout* | linux*coff*)
11424  dynamic_linker=no
11425  ;;
11426
11427linux*android*)
11428  version_type=none # Android doesn't support versioned libraries.
11429  need_lib_prefix=no
11430  need_version=no
11431  library_names_spec='$libname$release$shared_ext'
11432  soname_spec='$libname$release$shared_ext'
11433  finish_cmds=
11434  shlibpath_var=LD_LIBRARY_PATH
11435  shlibpath_overrides_runpath=yes
11436
11437  # This implies no fast_install, which is unacceptable.
11438  # Some rework will be needed to allow for fast_install
11439  # before this can be enabled.
11440  hardcode_into_libs=yes
11441
11442  dynamic_linker='Android linker'
11443  # Don't embed -rpath directories since the linker doesn't support them.
11444  hardcode_libdir_flag_spec='-L$libdir'
11445  ;;
11446
11447# This must be glibc/ELF.
11448linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11449  version_type=linux # correct to gnu/linux during the next big refactor
11450  need_lib_prefix=no
11451  need_version=no
11452  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11453  soname_spec='$libname$release$shared_ext$major'
11454  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11455  shlibpath_var=LD_LIBRARY_PATH
11456  shlibpath_overrides_runpath=no
11457
11458  # Some binutils ld are patched to set DT_RUNPATH
11459  if test ${lt_cv_shlibpath_overrides_runpath+y}
11460then :
11461  printf %s "(cached) " >&6
11462else $as_nop
11463  lt_cv_shlibpath_overrides_runpath=no
11464    save_LDFLAGS=$LDFLAGS
11465    save_libdir=$libdir
11466    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11467	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11468    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469/* end confdefs.h.  */
11470
11471int
11472main (void)
11473{
11474
11475  ;
11476  return 0;
11477}
11478_ACEOF
11479if ac_fn_c_try_link "$LINENO"
11480then :
11481  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11482then :
11483  lt_cv_shlibpath_overrides_runpath=yes
11484fi
11485fi
11486rm -f core conftest.err conftest.$ac_objext conftest.beam \
11487    conftest$ac_exeext conftest.$ac_ext
11488    LDFLAGS=$save_LDFLAGS
11489    libdir=$save_libdir
11490
11491fi
11492
11493  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11494
11495  # This implies no fast_install, which is unacceptable.
11496  # Some rework will be needed to allow for fast_install
11497  # before this can be enabled.
11498  hardcode_into_libs=yes
11499
11500  # Ideally, we could use ldconfig to report *all* directores which are
11501  # searched for libraries, however this is still not possible.  Aside from not
11502  # being certain /sbin/ldconfig is available, command
11503  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11504  # even though it is searched at run-time.  Try to do the best guess by
11505  # appending ld.so.conf contents (and includes) to the search path.
11506  if test -f /etc/ld.so.conf; then
11507    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' ' '`
11508    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11509  fi
11510
11511  # We used to test for /lib/ld.so.1 and disable shared libraries on
11512  # powerpc, because MkLinux only supported shared libraries with the
11513  # GNU dynamic linker.  Since this was broken with cross compilers,
11514  # most powerpc-linux boxes support dynamic linking these days and
11515  # people can always --disable-shared, the test was removed, and we
11516  # assume the GNU/Linux dynamic linker is in use.
11517  dynamic_linker='GNU/Linux ld.so'
11518  ;;
11519
11520netbsd*)
11521  version_type=sunos
11522  need_lib_prefix=no
11523  need_version=no
11524  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11525    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11526    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11527    dynamic_linker='NetBSD (a.out) ld.so'
11528  else
11529    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530    soname_spec='$libname$release$shared_ext$major'
11531    dynamic_linker='NetBSD ld.elf_so'
11532  fi
11533  shlibpath_var=LD_LIBRARY_PATH
11534  shlibpath_overrides_runpath=yes
11535  hardcode_into_libs=yes
11536  ;;
11537
11538newsos6)
11539  version_type=linux # correct to gnu/linux during the next big refactor
11540  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11541  shlibpath_var=LD_LIBRARY_PATH
11542  shlibpath_overrides_runpath=yes
11543  ;;
11544
11545*nto* | *qnx*)
11546  version_type=qnx
11547  need_lib_prefix=no
11548  need_version=no
11549  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11550  soname_spec='$libname$release$shared_ext$major'
11551  shlibpath_var=LD_LIBRARY_PATH
11552  shlibpath_overrides_runpath=no
11553  hardcode_into_libs=yes
11554  dynamic_linker='ldqnx.so'
11555  ;;
11556
11557openbsd* | bitrig*)
11558  version_type=sunos
11559  sys_lib_dlsearch_path_spec=/usr/lib
11560  need_lib_prefix=no
11561  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11562    need_version=no
11563  else
11564    need_version=yes
11565  fi
11566  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11567  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11568  shlibpath_var=LD_LIBRARY_PATH
11569  shlibpath_overrides_runpath=yes
11570  ;;
11571
11572os2*)
11573  libname_spec='$name'
11574  version_type=windows
11575  shrext_cmds=.dll
11576  need_version=no
11577  need_lib_prefix=no
11578  # OS/2 can only load a DLL with a base name of 8 characters or less.
11579  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11580    v=$($ECHO $release$versuffix | tr -d .-);
11581    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11582    $ECHO $n$v`$shared_ext'
11583  library_names_spec='${libname}_dll.$libext'
11584  dynamic_linker='OS/2 ld.exe'
11585  shlibpath_var=BEGINLIBPATH
11586  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11587  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11588  postinstall_cmds='base_file=`basename \$file`~
11589    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11590    dldir=$destdir/`dirname \$dlpath`~
11591    test -d \$dldir || mkdir -p \$dldir~
11592    $install_prog $dir/$dlname \$dldir/$dlname~
11593    chmod a+x \$dldir/$dlname~
11594    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11595      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11596    fi'
11597  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11598    dlpath=$dir/\$dldll~
11599    $RM \$dlpath'
11600  ;;
11601
11602osf3* | osf4* | osf5*)
11603  version_type=osf
11604  need_lib_prefix=no
11605  need_version=no
11606  soname_spec='$libname$release$shared_ext$major'
11607  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11608  shlibpath_var=LD_LIBRARY_PATH
11609  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11610  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11611  ;;
11612
11613rdos*)
11614  dynamic_linker=no
11615  ;;
11616
11617solaris*)
11618  version_type=linux # correct to gnu/linux during the next big refactor
11619  need_lib_prefix=no
11620  need_version=no
11621  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622  soname_spec='$libname$release$shared_ext$major'
11623  shlibpath_var=LD_LIBRARY_PATH
11624  shlibpath_overrides_runpath=yes
11625  hardcode_into_libs=yes
11626  # ldd complains unless libraries are executable
11627  postinstall_cmds='chmod +x $lib'
11628  ;;
11629
11630sunos4*)
11631  version_type=sunos
11632  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11633  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11634  shlibpath_var=LD_LIBRARY_PATH
11635  shlibpath_overrides_runpath=yes
11636  if test yes = "$with_gnu_ld"; then
11637    need_lib_prefix=no
11638  fi
11639  need_version=yes
11640  ;;
11641
11642sysv4 | sysv4.3*)
11643  version_type=linux # correct to gnu/linux during the next big refactor
11644  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11645  soname_spec='$libname$release$shared_ext$major'
11646  shlibpath_var=LD_LIBRARY_PATH
11647  case $host_vendor in
11648    sni)
11649      shlibpath_overrides_runpath=no
11650      need_lib_prefix=no
11651      runpath_var=LD_RUN_PATH
11652      ;;
11653    siemens)
11654      need_lib_prefix=no
11655      ;;
11656    motorola)
11657      need_lib_prefix=no
11658      need_version=no
11659      shlibpath_overrides_runpath=no
11660      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11661      ;;
11662  esac
11663  ;;
11664
11665sysv4*MP*)
11666  if test -d /usr/nec; then
11667    version_type=linux # correct to gnu/linux during the next big refactor
11668    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11669    soname_spec='$libname$shared_ext.$major'
11670    shlibpath_var=LD_LIBRARY_PATH
11671  fi
11672  ;;
11673
11674sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11675  version_type=sco
11676  need_lib_prefix=no
11677  need_version=no
11678  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11679  soname_spec='$libname$release$shared_ext$major'
11680  shlibpath_var=LD_LIBRARY_PATH
11681  shlibpath_overrides_runpath=yes
11682  hardcode_into_libs=yes
11683  if test yes = "$with_gnu_ld"; then
11684    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11685  else
11686    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11687    case $host_os in
11688      sco3.2v5*)
11689        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11690	;;
11691    esac
11692  fi
11693  sys_lib_dlsearch_path_spec='/usr/lib'
11694  ;;
11695
11696tpf*)
11697  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11698  version_type=linux # correct to gnu/linux during the next big refactor
11699  need_lib_prefix=no
11700  need_version=no
11701  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11702  shlibpath_var=LD_LIBRARY_PATH
11703  shlibpath_overrides_runpath=no
11704  hardcode_into_libs=yes
11705  ;;
11706
11707uts4*)
11708  version_type=linux # correct to gnu/linux during the next big refactor
11709  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11710  soname_spec='$libname$release$shared_ext$major'
11711  shlibpath_var=LD_LIBRARY_PATH
11712  ;;
11713
11714*)
11715  dynamic_linker=no
11716  ;;
11717esac
11718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11719printf "%s\n" "$dynamic_linker" >&6; }
11720test no = "$dynamic_linker" && can_build_shared=no
11721
11722variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11723if test yes = "$GCC"; then
11724  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11725fi
11726
11727if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11728  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11729fi
11730
11731if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11732  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11733fi
11734
11735# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11736configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11737
11738# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11739func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11740
11741# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11742configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11743
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11841printf %s "checking how to hardcode library paths into programs... " >&6; }
11842hardcode_action=
11843if test -n "$hardcode_libdir_flag_spec" ||
11844   test -n "$runpath_var" ||
11845   test yes = "$hardcode_automatic"; then
11846
11847  # We can hardcode non-existent directories.
11848  if test no != "$hardcode_direct" &&
11849     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11850     # have to relink, otherwise we might link with an installed library
11851     # when we should be linking with a yet-to-be-installed one
11852     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11853     test no != "$hardcode_minus_L"; then
11854    # Linking always hardcodes the temporary library directory.
11855    hardcode_action=relink
11856  else
11857    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11858    hardcode_action=immediate
11859  fi
11860else
11861  # We cannot hardcode anything, or else we can only hardcode existing
11862  # directories.
11863  hardcode_action=unsupported
11864fi
11865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11866printf "%s\n" "$hardcode_action" >&6; }
11867
11868if test relink = "$hardcode_action" ||
11869   test yes = "$inherit_rpath"; then
11870  # Fast installation is not supported
11871  enable_fast_install=no
11872elif test yes = "$shlibpath_overrides_runpath" ||
11873     test no = "$enable_shared"; then
11874  # Fast installation is not necessary
11875  enable_fast_install=needless
11876fi
11877
11878
11879
11880
11881
11882
11883  if test yes != "$enable_dlopen"; then
11884  enable_dlopen=unknown
11885  enable_dlopen_self=unknown
11886  enable_dlopen_self_static=unknown
11887else
11888  lt_cv_dlopen=no
11889  lt_cv_dlopen_libs=
11890
11891  case $host_os in
11892  beos*)
11893    lt_cv_dlopen=load_add_on
11894    lt_cv_dlopen_libs=
11895    lt_cv_dlopen_self=yes
11896    ;;
11897
11898  mingw* | pw32* | cegcc*)
11899    lt_cv_dlopen=LoadLibrary
11900    lt_cv_dlopen_libs=
11901    ;;
11902
11903  cygwin*)
11904    lt_cv_dlopen=dlopen
11905    lt_cv_dlopen_libs=
11906    ;;
11907
11908  darwin*)
11909    # if libdl is installed we need to link against it
11910    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11911printf %s "checking for dlopen in -ldl... " >&6; }
11912if test ${ac_cv_lib_dl_dlopen+y}
11913then :
11914  printf %s "(cached) " >&6
11915else $as_nop
11916  ac_check_lib_save_LIBS=$LIBS
11917LIBS="-ldl  $LIBS"
11918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919/* end confdefs.h.  */
11920
11921/* Override any GCC internal prototype to avoid an error.
11922   Use char because int might match the return type of a GCC
11923   builtin and then its argument prototype would still apply.  */
11924char dlopen ();
11925int
11926main (void)
11927{
11928return dlopen ();
11929  ;
11930  return 0;
11931}
11932_ACEOF
11933if ac_fn_c_try_link "$LINENO"
11934then :
11935  ac_cv_lib_dl_dlopen=yes
11936else $as_nop
11937  ac_cv_lib_dl_dlopen=no
11938fi
11939rm -f core conftest.err conftest.$ac_objext conftest.beam \
11940    conftest$ac_exeext conftest.$ac_ext
11941LIBS=$ac_check_lib_save_LIBS
11942fi
11943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11944printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11945if test "x$ac_cv_lib_dl_dlopen" = xyes
11946then :
11947  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11948else $as_nop
11949
11950    lt_cv_dlopen=dyld
11951    lt_cv_dlopen_libs=
11952    lt_cv_dlopen_self=yes
11953
11954fi
11955
11956    ;;
11957
11958  tpf*)
11959    # Don't try to run any link tests for TPF.  We know it's impossible
11960    # because TPF is a cross-compiler, and we know how we open DSOs.
11961    lt_cv_dlopen=dlopen
11962    lt_cv_dlopen_libs=
11963    lt_cv_dlopen_self=no
11964    ;;
11965
11966  *)
11967    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11968if test "x$ac_cv_func_shl_load" = xyes
11969then :
11970  lt_cv_dlopen=shl_load
11971else $as_nop
11972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11973printf %s "checking for shl_load in -ldld... " >&6; }
11974if test ${ac_cv_lib_dld_shl_load+y}
11975then :
11976  printf %s "(cached) " >&6
11977else $as_nop
11978  ac_check_lib_save_LIBS=$LIBS
11979LIBS="-ldld  $LIBS"
11980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981/* end confdefs.h.  */
11982
11983/* Override any GCC internal prototype to avoid an error.
11984   Use char because int might match the return type of a GCC
11985   builtin and then its argument prototype would still apply.  */
11986char shl_load ();
11987int
11988main (void)
11989{
11990return shl_load ();
11991  ;
11992  return 0;
11993}
11994_ACEOF
11995if ac_fn_c_try_link "$LINENO"
11996then :
11997  ac_cv_lib_dld_shl_load=yes
11998else $as_nop
11999  ac_cv_lib_dld_shl_load=no
12000fi
12001rm -f core conftest.err conftest.$ac_objext conftest.beam \
12002    conftest$ac_exeext conftest.$ac_ext
12003LIBS=$ac_check_lib_save_LIBS
12004fi
12005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12006printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12007if test "x$ac_cv_lib_dld_shl_load" = xyes
12008then :
12009  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12010else $as_nop
12011  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12012if test "x$ac_cv_func_dlopen" = xyes
12013then :
12014  lt_cv_dlopen=dlopen
12015else $as_nop
12016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12017printf %s "checking for dlopen in -ldl... " >&6; }
12018if test ${ac_cv_lib_dl_dlopen+y}
12019then :
12020  printf %s "(cached) " >&6
12021else $as_nop
12022  ac_check_lib_save_LIBS=$LIBS
12023LIBS="-ldl  $LIBS"
12024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025/* end confdefs.h.  */
12026
12027/* Override any GCC internal prototype to avoid an error.
12028   Use char because int might match the return type of a GCC
12029   builtin and then its argument prototype would still apply.  */
12030char dlopen ();
12031int
12032main (void)
12033{
12034return dlopen ();
12035  ;
12036  return 0;
12037}
12038_ACEOF
12039if ac_fn_c_try_link "$LINENO"
12040then :
12041  ac_cv_lib_dl_dlopen=yes
12042else $as_nop
12043  ac_cv_lib_dl_dlopen=no
12044fi
12045rm -f core conftest.err conftest.$ac_objext conftest.beam \
12046    conftest$ac_exeext conftest.$ac_ext
12047LIBS=$ac_check_lib_save_LIBS
12048fi
12049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12050printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12051if test "x$ac_cv_lib_dl_dlopen" = xyes
12052then :
12053  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12054else $as_nop
12055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12056printf %s "checking for dlopen in -lsvld... " >&6; }
12057if test ${ac_cv_lib_svld_dlopen+y}
12058then :
12059  printf %s "(cached) " >&6
12060else $as_nop
12061  ac_check_lib_save_LIBS=$LIBS
12062LIBS="-lsvld  $LIBS"
12063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064/* end confdefs.h.  */
12065
12066/* Override any GCC internal prototype to avoid an error.
12067   Use char because int might match the return type of a GCC
12068   builtin and then its argument prototype would still apply.  */
12069char dlopen ();
12070int
12071main (void)
12072{
12073return dlopen ();
12074  ;
12075  return 0;
12076}
12077_ACEOF
12078if ac_fn_c_try_link "$LINENO"
12079then :
12080  ac_cv_lib_svld_dlopen=yes
12081else $as_nop
12082  ac_cv_lib_svld_dlopen=no
12083fi
12084rm -f core conftest.err conftest.$ac_objext conftest.beam \
12085    conftest$ac_exeext conftest.$ac_ext
12086LIBS=$ac_check_lib_save_LIBS
12087fi
12088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12089printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12090if test "x$ac_cv_lib_svld_dlopen" = xyes
12091then :
12092  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12093else $as_nop
12094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12095printf %s "checking for dld_link in -ldld... " >&6; }
12096if test ${ac_cv_lib_dld_dld_link+y}
12097then :
12098  printf %s "(cached) " >&6
12099else $as_nop
12100  ac_check_lib_save_LIBS=$LIBS
12101LIBS="-ldld  $LIBS"
12102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103/* end confdefs.h.  */
12104
12105/* Override any GCC internal prototype to avoid an error.
12106   Use char because int might match the return type of a GCC
12107   builtin and then its argument prototype would still apply.  */
12108char dld_link ();
12109int
12110main (void)
12111{
12112return dld_link ();
12113  ;
12114  return 0;
12115}
12116_ACEOF
12117if ac_fn_c_try_link "$LINENO"
12118then :
12119  ac_cv_lib_dld_dld_link=yes
12120else $as_nop
12121  ac_cv_lib_dld_dld_link=no
12122fi
12123rm -f core conftest.err conftest.$ac_objext conftest.beam \
12124    conftest$ac_exeext conftest.$ac_ext
12125LIBS=$ac_check_lib_save_LIBS
12126fi
12127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12128printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12129if test "x$ac_cv_lib_dld_dld_link" = xyes
12130then :
12131  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12132fi
12133
12134
12135fi
12136
12137
12138fi
12139
12140
12141fi
12142
12143
12144fi
12145
12146
12147fi
12148
12149    ;;
12150  esac
12151
12152  if test no = "$lt_cv_dlopen"; then
12153    enable_dlopen=no
12154  else
12155    enable_dlopen=yes
12156  fi
12157
12158  case $lt_cv_dlopen in
12159  dlopen)
12160    save_CPPFLAGS=$CPPFLAGS
12161    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12162
12163    save_LDFLAGS=$LDFLAGS
12164    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12165
12166    save_LIBS=$LIBS
12167    LIBS="$lt_cv_dlopen_libs $LIBS"
12168
12169    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12170printf %s "checking whether a program can dlopen itself... " >&6; }
12171if test ${lt_cv_dlopen_self+y}
12172then :
12173  printf %s "(cached) " >&6
12174else $as_nop
12175  	  if test yes = "$cross_compiling"; then :
12176  lt_cv_dlopen_self=cross
12177else
12178  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12179  lt_status=$lt_dlunknown
12180  cat > conftest.$ac_ext <<_LT_EOF
12181#line $LINENO "configure"
12182#include "confdefs.h"
12183
12184#if HAVE_DLFCN_H
12185#include <dlfcn.h>
12186#endif
12187
12188#include <stdio.h>
12189
12190#ifdef RTLD_GLOBAL
12191#  define LT_DLGLOBAL		RTLD_GLOBAL
12192#else
12193#  ifdef DL_GLOBAL
12194#    define LT_DLGLOBAL		DL_GLOBAL
12195#  else
12196#    define LT_DLGLOBAL		0
12197#  endif
12198#endif
12199
12200/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12201   find out it does not work in some platform. */
12202#ifndef LT_DLLAZY_OR_NOW
12203#  ifdef RTLD_LAZY
12204#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12205#  else
12206#    ifdef DL_LAZY
12207#      define LT_DLLAZY_OR_NOW		DL_LAZY
12208#    else
12209#      ifdef RTLD_NOW
12210#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12211#      else
12212#        ifdef DL_NOW
12213#          define LT_DLLAZY_OR_NOW	DL_NOW
12214#        else
12215#          define LT_DLLAZY_OR_NOW	0
12216#        endif
12217#      endif
12218#    endif
12219#  endif
12220#endif
12221
12222/* When -fvisibility=hidden is used, assume the code has been annotated
12223   correspondingly for the symbols needed.  */
12224#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12225int fnord () __attribute__((visibility("default")));
12226#endif
12227
12228int fnord () { return 42; }
12229int main ()
12230{
12231  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12232  int status = $lt_dlunknown;
12233
12234  if (self)
12235    {
12236      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12237      else
12238        {
12239	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12240          else puts (dlerror ());
12241	}
12242      /* dlclose (self); */
12243    }
12244  else
12245    puts (dlerror ());
12246
12247  return status;
12248}
12249_LT_EOF
12250  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12251  (eval $ac_link) 2>&5
12252  ac_status=$?
12253  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12254  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12255    (./conftest; exit; ) >&5 2>/dev/null
12256    lt_status=$?
12257    case x$lt_status in
12258      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12259      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12260      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12261    esac
12262  else :
12263    # compilation failed
12264    lt_cv_dlopen_self=no
12265  fi
12266fi
12267rm -fr conftest*
12268
12269
12270fi
12271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12272printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12273
12274    if test yes = "$lt_cv_dlopen_self"; then
12275      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12276      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12277printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12278if test ${lt_cv_dlopen_self_static+y}
12279then :
12280  printf %s "(cached) " >&6
12281else $as_nop
12282  	  if test yes = "$cross_compiling"; then :
12283  lt_cv_dlopen_self_static=cross
12284else
12285  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12286  lt_status=$lt_dlunknown
12287  cat > conftest.$ac_ext <<_LT_EOF
12288#line $LINENO "configure"
12289#include "confdefs.h"
12290
12291#if HAVE_DLFCN_H
12292#include <dlfcn.h>
12293#endif
12294
12295#include <stdio.h>
12296
12297#ifdef RTLD_GLOBAL
12298#  define LT_DLGLOBAL		RTLD_GLOBAL
12299#else
12300#  ifdef DL_GLOBAL
12301#    define LT_DLGLOBAL		DL_GLOBAL
12302#  else
12303#    define LT_DLGLOBAL		0
12304#  endif
12305#endif
12306
12307/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12308   find out it does not work in some platform. */
12309#ifndef LT_DLLAZY_OR_NOW
12310#  ifdef RTLD_LAZY
12311#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12312#  else
12313#    ifdef DL_LAZY
12314#      define LT_DLLAZY_OR_NOW		DL_LAZY
12315#    else
12316#      ifdef RTLD_NOW
12317#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12318#      else
12319#        ifdef DL_NOW
12320#          define LT_DLLAZY_OR_NOW	DL_NOW
12321#        else
12322#          define LT_DLLAZY_OR_NOW	0
12323#        endif
12324#      endif
12325#    endif
12326#  endif
12327#endif
12328
12329/* When -fvisibility=hidden is used, assume the code has been annotated
12330   correspondingly for the symbols needed.  */
12331#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12332int fnord () __attribute__((visibility("default")));
12333#endif
12334
12335int fnord () { return 42; }
12336int main ()
12337{
12338  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12339  int status = $lt_dlunknown;
12340
12341  if (self)
12342    {
12343      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12344      else
12345        {
12346	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12347          else puts (dlerror ());
12348	}
12349      /* dlclose (self); */
12350    }
12351  else
12352    puts (dlerror ());
12353
12354  return status;
12355}
12356_LT_EOF
12357  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12358  (eval $ac_link) 2>&5
12359  ac_status=$?
12360  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12361  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12362    (./conftest; exit; ) >&5 2>/dev/null
12363    lt_status=$?
12364    case x$lt_status in
12365      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12366      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12367      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12368    esac
12369  else :
12370    # compilation failed
12371    lt_cv_dlopen_self_static=no
12372  fi
12373fi
12374rm -fr conftest*
12375
12376
12377fi
12378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12379printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12380    fi
12381
12382    CPPFLAGS=$save_CPPFLAGS
12383    LDFLAGS=$save_LDFLAGS
12384    LIBS=$save_LIBS
12385    ;;
12386  esac
12387
12388  case $lt_cv_dlopen_self in
12389  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12390  *) enable_dlopen_self=unknown ;;
12391  esac
12392
12393  case $lt_cv_dlopen_self_static in
12394  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12395  *) enable_dlopen_self_static=unknown ;;
12396  esac
12397fi
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415striplib=
12416old_striplib=
12417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12418printf %s "checking whether stripping libraries is possible... " >&6; }
12419if test -z "$STRIP"; then
12420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421printf "%s\n" "no" >&6; }
12422else
12423  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12424    old_striplib="$STRIP --strip-debug"
12425    striplib="$STRIP --strip-unneeded"
12426    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12427printf "%s\n" "yes" >&6; }
12428  else
12429    case $host_os in
12430    darwin*)
12431      # FIXME - insert some real tests, host_os isn't really good enough
12432      striplib="$STRIP -x"
12433      old_striplib="$STRIP -S"
12434      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12435printf "%s\n" "yes" >&6; }
12436      ;;
12437    freebsd*)
12438      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12439        old_striplib="$STRIP --strip-debug"
12440        striplib="$STRIP --strip-unneeded"
12441        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12442printf "%s\n" "yes" >&6; }
12443      else
12444        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445printf "%s\n" "no" >&6; }
12446      fi
12447      ;;
12448    *)
12449      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450printf "%s\n" "no" >&6; }
12451      ;;
12452    esac
12453  fi
12454fi
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467  # Report what library types will actually be built
12468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12469printf %s "checking if libtool supports shared libraries... " >&6; }
12470  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12471printf "%s\n" "$can_build_shared" >&6; }
12472
12473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12474printf %s "checking whether to build shared libraries... " >&6; }
12475  test no = "$can_build_shared" && enable_shared=no
12476
12477  # On AIX, shared libraries and static libraries use the same namespace, and
12478  # are all built from PIC.
12479  case $host_os in
12480  aix3*)
12481    test yes = "$enable_shared" && enable_static=no
12482    if test -n "$RANLIB"; then
12483      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12484      postinstall_cmds='$RANLIB $lib'
12485    fi
12486    ;;
12487
12488  aix[4-9]*)
12489    if test ia64 != "$host_cpu"; then
12490      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12491      yes,aix,yes) ;;			# shared object as lib.so file only
12492      yes,svr4,*) ;;			# shared object as lib.so archive member only
12493      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12494      esac
12495    fi
12496    ;;
12497  esac
12498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12499printf "%s\n" "$enable_shared" >&6; }
12500
12501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12502printf %s "checking whether to build static libraries... " >&6; }
12503  # Make sure either enable_shared or enable_static is yes.
12504  test yes = "$enable_shared" || enable_static=yes
12505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12506printf "%s\n" "$enable_static" >&6; }
12507
12508
12509
12510
12511fi
12512ac_ext=c
12513ac_cpp='$CPP $CPPFLAGS'
12514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516ac_compiler_gnu=$ac_cv_c_compiler_gnu
12517
12518CC=$lt_save_CC
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534        ac_config_commands="$ac_config_commands libtool"
12535
12536
12537
12538
12539# Only expand once:
12540
12541
12542ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12543if test "x$ac_cv_header_windows_h" = xyes
12544then :
12545  if test -n "$ac_tool_prefix"; then
12546  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12547set dummy ${ac_tool_prefix}windres; ac_word=$2
12548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549printf %s "checking for $ac_word... " >&6; }
12550if test ${ac_cv_prog_RC+y}
12551then :
12552  printf %s "(cached) " >&6
12553else $as_nop
12554  if test -n "$RC"; then
12555  ac_cv_prog_RC="$RC" # Let the user override the test.
12556else
12557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558for as_dir in $PATH
12559do
12560  IFS=$as_save_IFS
12561  case $as_dir in #(((
12562    '') as_dir=./ ;;
12563    */) ;;
12564    *) as_dir=$as_dir/ ;;
12565  esac
12566    for ac_exec_ext in '' $ac_executable_extensions; do
12567  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12568    ac_cv_prog_RC="${ac_tool_prefix}windres"
12569    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12570    break 2
12571  fi
12572done
12573  done
12574IFS=$as_save_IFS
12575
12576fi
12577fi
12578RC=$ac_cv_prog_RC
12579if test -n "$RC"; then
12580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12581printf "%s\n" "$RC" >&6; }
12582else
12583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584printf "%s\n" "no" >&6; }
12585fi
12586
12587
12588fi
12589if test -z "$ac_cv_prog_RC"; then
12590  ac_ct_RC=$RC
12591  # Extract the first word of "windres", so it can be a program name with args.
12592set dummy windres; ac_word=$2
12593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594printf %s "checking for $ac_word... " >&6; }
12595if test ${ac_cv_prog_ac_ct_RC+y}
12596then :
12597  printf %s "(cached) " >&6
12598else $as_nop
12599  if test -n "$ac_ct_RC"; then
12600  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12601else
12602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603for as_dir in $PATH
12604do
12605  IFS=$as_save_IFS
12606  case $as_dir in #(((
12607    '') as_dir=./ ;;
12608    */) ;;
12609    *) as_dir=$as_dir/ ;;
12610  esac
12611    for ac_exec_ext in '' $ac_executable_extensions; do
12612  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12613    ac_cv_prog_ac_ct_RC="windres"
12614    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12615    break 2
12616  fi
12617done
12618  done
12619IFS=$as_save_IFS
12620
12621fi
12622fi
12623ac_ct_RC=$ac_cv_prog_ac_ct_RC
12624if test -n "$ac_ct_RC"; then
12625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12626printf "%s\n" "$ac_ct_RC" >&6; }
12627else
12628  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629printf "%s\n" "no" >&6; }
12630fi
12631
12632  if test "x$ac_ct_RC" = x; then
12633    RC=""
12634  else
12635    case $cross_compiling:$ac_tool_warned in
12636yes:)
12637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12638printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12639ac_tool_warned=yes ;;
12640esac
12641    RC=$ac_ct_RC
12642  fi
12643else
12644  RC="$ac_cv_prog_RC"
12645fi
12646
12647
12648
12649# Source file extension for RC test sources.
12650ac_ext=rc
12651
12652# Object file extension for compiled RC test sources.
12653objext=o
12654objext_RC=$objext
12655
12656# Code to be used in simple compile tests
12657lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12658
12659# Code to be used in simple link tests
12660lt_simple_link_test_code=$lt_simple_compile_test_code
12661
12662# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12663
12664
12665
12666
12667
12668
12669# If no C compiler was specified, use CC.
12670LTCC=${LTCC-"$CC"}
12671
12672# If no C compiler flags were specified, use CFLAGS.
12673LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12674
12675# Allow CC to be a program name with arguments.
12676compiler=$CC
12677
12678
12679# save warnings/boilerplate of simple test code
12680ac_outfile=conftest.$ac_objext
12681echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12682eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12683_lt_compiler_boilerplate=`cat conftest.err`
12684$RM conftest*
12685
12686ac_outfile=conftest.$ac_objext
12687echo "$lt_simple_link_test_code" >conftest.$ac_ext
12688eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12689_lt_linker_boilerplate=`cat conftest.err`
12690$RM -r conftest*
12691
12692
12693# Allow CC to be a program name with arguments.
12694lt_save_CC=$CC
12695lt_save_CFLAGS=$CFLAGS
12696lt_save_GCC=$GCC
12697GCC=
12698CC=${RC-"windres"}
12699CFLAGS=
12700compiler=$CC
12701compiler_RC=$CC
12702func_cc_basename $compiler
12703cc_basename=$func_cc_basename_result
12704
12705lt_cv_prog_compiler_c_o_RC=yes
12706
12707if test -n "$compiler"; then
12708  :
12709
12710
12711
12712fi
12713
12714GCC=$lt_save_GCC
12715ac_ext=c
12716ac_cpp='$CPP $CPPFLAGS'
12717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12719ac_compiler_gnu=$ac_cv_c_compiler_gnu
12720
12721CC=$lt_save_CC
12722CFLAGS=$lt_save_CFLAGS
12723
12724fi
12725
12726
12727
12728# checks for native programs to generate building tool
12729
12730if test ${cross_compiling} = yes; then
12731  # Extract the first word of "${build}-gcc", so it can be a program name with args.
12732set dummy ${build}-gcc; ac_word=$2
12733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734printf %s "checking for $ac_word... " >&6; }
12735if test ${ac_cv_prog_CC_BUILD+y}
12736then :
12737  printf %s "(cached) " >&6
12738else $as_nop
12739  if test -n "$CC_BUILD"; then
12740  ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12741else
12742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12743for as_dir in $PATH
12744do
12745  IFS=$as_save_IFS
12746  case $as_dir in #(((
12747    '') as_dir=./ ;;
12748    */) ;;
12749    *) as_dir=$as_dir/ ;;
12750  esac
12751    for ac_exec_ext in '' $ac_executable_extensions; do
12752  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12753    ac_cv_prog_CC_BUILD="${build}-gcc"
12754    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12755    break 2
12756  fi
12757done
12758  done
12759IFS=$as_save_IFS
12760
12761fi
12762fi
12763CC_BUILD=$ac_cv_prog_CC_BUILD
12764if test -n "$CC_BUILD"; then
12765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12766printf "%s\n" "$CC_BUILD" >&6; }
12767else
12768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769printf "%s\n" "no" >&6; }
12770fi
12771
12772
12773  test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
12774set dummy gcc; ac_word=$2
12775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776printf %s "checking for $ac_word... " >&6; }
12777if test ${ac_cv_prog_CC_BUILD+y}
12778then :
12779  printf %s "(cached) " >&6
12780else $as_nop
12781  if test -n "$CC_BUILD"; then
12782  ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12783else
12784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785for as_dir in $PATH
12786do
12787  IFS=$as_save_IFS
12788  case $as_dir in #(((
12789    '') as_dir=./ ;;
12790    */) ;;
12791    *) as_dir=$as_dir/ ;;
12792  esac
12793    for ac_exec_ext in '' $ac_executable_extensions; do
12794  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12795    ac_cv_prog_CC_BUILD="gcc"
12796    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12797    break 2
12798  fi
12799done
12800  done
12801IFS=$as_save_IFS
12802
12803fi
12804fi
12805CC_BUILD=$ac_cv_prog_CC_BUILD
12806if test -n "$CC_BUILD"; then
12807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12808printf "%s\n" "$CC_BUILD" >&6; }
12809else
12810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811printf "%s\n" "no" >&6; }
12812fi
12813
12814
12815  test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
12816set dummy cc; ac_word=$2
12817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818printf %s "checking for $ac_word... " >&6; }
12819if test ${ac_cv_prog_CC_BUILD+y}
12820then :
12821  printf %s "(cached) " >&6
12822else $as_nop
12823  if test -n "$CC_BUILD"; then
12824  ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12825else
12826  ac_prog_rejected=no
12827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828for as_dir in $PATH
12829do
12830  IFS=$as_save_IFS
12831  case $as_dir in #(((
12832    '') as_dir=./ ;;
12833    */) ;;
12834    *) as_dir=$as_dir/ ;;
12835  esac
12836    for ac_exec_ext in '' $ac_executable_extensions; do
12837  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12838    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12839       ac_prog_rejected=yes
12840       continue
12841     fi
12842    ac_cv_prog_CC_BUILD="cc"
12843    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12844    break 2
12845  fi
12846done
12847  done
12848IFS=$as_save_IFS
12849
12850if test $ac_prog_rejected = yes; then
12851  # We found a bogon in the path, so make sure we never use it.
12852  set dummy $ac_cv_prog_CC_BUILD
12853  shift
12854  if test $# != 0; then
12855    # We chose a different compiler from the bogus one.
12856    # However, it has the same basename, so the bogon will be chosen
12857    # first if we set CC_BUILD to just the basename; use the full file name.
12858    shift
12859    ac_cv_prog_CC_BUILD="$as_dir$ac_word${1+' '}$@"
12860  fi
12861fi
12862fi
12863fi
12864CC_BUILD=$ac_cv_prog_CC_BUILD
12865if test -n "$CC_BUILD"; then
12866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12867printf "%s\n" "$CC_BUILD" >&6; }
12868else
12869  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870printf "%s\n" "no" >&6; }
12871fi
12872
12873
12874  test -z "${CC_BUILD}" && as_fn_error $? "cannot find native C compiler" "$LINENO" 5
12875
12876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of native executables" >&5
12877printf %s "checking for suffix of native executables... " >&6; }
12878  rm -f a.* b.* a_out.exe conftest.*
12879  echo > conftest.c "int main() { return 0;}"
12880  ${CC_BUILD} conftest.c || as_fn_error $? "native C compiler is not working" "$LINENO" 5
12881  rm -f conftest.c
12882  if test -x a.out -o -x b.out -o -x conftest; then
12883    EXEEXT_BUILD=""
12884  elif test -x a_out.exe -o -x conftest.exe; then
12885    EXEEXT_BUILD=".exe"
12886  elif test -x conftest.*; then
12887    EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
12888  fi
12889  rm -f a.* b.* a_out.exe conftest.*
12890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT_BUILD" >&5
12891printf "%s\n" "$EXEEXT_BUILD" >&6; }
12892else
12893  CC_BUILD=${CC}
12894  EXEEXT_BUILD=${EXEEXT}
12895fi
12896
12897
12898
12899
12900
12901# Since these files will be eventually called from another directory (namely
12902# from the top level) we make the path of the scripts absolute.
12903#
12904# This small code snippet has been taken from automake's `ylwrap' script.
12905
12906
12907  # Find a good install program.  We prefer a C program (faster),
12908# so one script is as good as another.  But avoid the broken or
12909# incompatible versions:
12910# SysV /etc/install, /usr/sbin/install
12911# SunOS /usr/etc/install
12912# IRIX /sbin/install
12913# AIX /bin/install
12914# AmigaOS /C/install, which installs bootblocks on floppy discs
12915# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12916# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12917# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12918# OS/2's system install, which has a completely different semantic
12919# ./install, which can be erroneously created by make from ./install.sh.
12920# Reject install programs that cannot install multiple files.
12921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12922printf %s "checking for a BSD-compatible install... " >&6; }
12923if test -z "$INSTALL"; then
12924if test ${ac_cv_path_install+y}
12925then :
12926  printf %s "(cached) " >&6
12927else $as_nop
12928  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929for as_dir in $PATH
12930do
12931  IFS=$as_save_IFS
12932  case $as_dir in #(((
12933    '') as_dir=./ ;;
12934    */) ;;
12935    *) as_dir=$as_dir/ ;;
12936  esac
12937    # Account for fact that we put trailing slashes in our PATH walk.
12938case $as_dir in #((
12939  ./ | /[cC]/* | \
12940  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12941  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12942  /usr/ucb/* ) ;;
12943  *)
12944    # OSF1 and SCO ODT 3.0 have their own names for install.
12945    # Don't use installbsd from OSF since it installs stuff as root
12946    # by default.
12947    for ac_prog in ginstall scoinst install; do
12948      for ac_exec_ext in '' $ac_executable_extensions; do
12949	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
12950	  if test $ac_prog = install &&
12951	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12952	    # AIX install.  It has an incompatible calling convention.
12953	    :
12954	  elif test $ac_prog = install &&
12955	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12956	    # program-specific install script used by HP pwplus--don't use.
12957	    :
12958	  else
12959	    rm -rf conftest.one conftest.two conftest.dir
12960	    echo one > conftest.one
12961	    echo two > conftest.two
12962	    mkdir conftest.dir
12963	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
12964	      test -s conftest.one && test -s conftest.two &&
12965	      test -s conftest.dir/conftest.one &&
12966	      test -s conftest.dir/conftest.two
12967	    then
12968	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
12969	      break 3
12970	    fi
12971	  fi
12972	fi
12973      done
12974    done
12975    ;;
12976esac
12977
12978  done
12979IFS=$as_save_IFS
12980
12981rm -rf conftest.one conftest.two conftest.dir
12982
12983fi
12984  if test ${ac_cv_path_install+y}; then
12985    INSTALL=$ac_cv_path_install
12986  else
12987    # As a last resort, use the slow shell script.  Don't cache a
12988    # value for INSTALL within a source directory, because that will
12989    # break other packages using the cache if that directory is
12990    # removed, or if the value is a relative name.
12991    INSTALL=$ac_install_sh
12992  fi
12993fi
12994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12995printf "%s\n" "$INSTALL" >&6; }
12996
12997# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12998# It thinks the first close brace ends the variable substitution.
12999test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13000
13001test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13002
13003test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13004
13005case "$INSTALL" in
13006[\\/]* | ?:[\\/]*)
13007  ;;
13008*[\\/]*)
13009  INSTALL="`pwd`/$INSTALL"
13010  ;;
13011esac
13012
13013
13014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
13015printf %s "checking for a race-free mkdir -p... " >&6; }
13016if test -z "$MKDIR_P"; then
13017  if test ${ac_cv_path_mkdir+y}
13018then :
13019  printf %s "(cached) " >&6
13020else $as_nop
13021  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13023do
13024  IFS=$as_save_IFS
13025  case $as_dir in #(((
13026    '') as_dir=./ ;;
13027    */) ;;
13028    *) as_dir=$as_dir/ ;;
13029  esac
13030    for ac_prog in mkdir gmkdir; do
13031	 for ac_exec_ext in '' $ac_executable_extensions; do
13032	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
13033	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
13034	     'mkdir ('*'coreutils) '* | \
13035	     'BusyBox '* | \
13036	     'mkdir (fileutils) '4.1*)
13037	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
13038	       break 3;;
13039	   esac
13040	 done
13041       done
13042  done
13043IFS=$as_save_IFS
13044
13045fi
13046
13047  test -d ./--version && rmdir ./--version
13048  if test ${ac_cv_path_mkdir+y}; then
13049    MKDIR_P="$ac_cv_path_mkdir -p"
13050  else
13051    # As a last resort, use the slow shell script.  Don't cache a
13052    # value for MKDIR_P within a source directory, because that will
13053    # break other packages using the cache if that directory is
13054    # removed, or if the value is a relative name.
13055    MKDIR_P="$ac_install_sh -d"
13056  fi
13057fi
13058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13059printf "%s\n" "$MKDIR_P" >&6; }
13060
13061case "$MKDIR_P" in
13062[\\/]* | ?:[\\/]*)
13063  ;;
13064*[\\/]*)
13065  MKDIR_P="`pwd`/$MKDIR_P"
13066  ;;
13067esac
13068
13069
13070# checks for header files
13071
13072ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13073if test "x$ac_cv_header_fcntl_h" = xyes
13074then :
13075  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
13076
13077fi
13078ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13079if test "x$ac_cv_header_unistd_h" = xyes
13080then :
13081  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13082
13083fi
13084
13085
13086
13087# checks for typedefs, structures, and compiler characteristics
13088
13089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13090printf %s "checking for an ANSI C-conforming const... " >&6; }
13091if test ${ac_cv_c_const+y}
13092then :
13093  printf %s "(cached) " >&6
13094else $as_nop
13095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096/* end confdefs.h.  */
13097
13098int
13099main (void)
13100{
13101
13102#ifndef __cplusplus
13103  /* Ultrix mips cc rejects this sort of thing.  */
13104  typedef int charset[2];
13105  const charset cs = { 0, 0 };
13106  /* SunOS 4.1.1 cc rejects this.  */
13107  char const *const *pcpcc;
13108  char **ppc;
13109  /* NEC SVR4.0.2 mips cc rejects this.  */
13110  struct point {int x, y;};
13111  static struct point const zero = {0,0};
13112  /* IBM XL C 1.02.0.0 rejects this.
13113     It does not let you subtract one const X* pointer from another in
13114     an arm of an if-expression whose if-part is not a constant
13115     expression */
13116  const char *g = "string";
13117  pcpcc = &g + (g ? g-g : 0);
13118  /* HPUX 7.0 cc rejects these. */
13119  ++pcpcc;
13120  ppc = (char**) pcpcc;
13121  pcpcc = (char const *const *) ppc;
13122  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13123    char tx;
13124    char *t = &tx;
13125    char const *s = 0 ? (char *) 0 : (char const *) 0;
13126
13127    *t++ = 0;
13128    if (s) return 0;
13129  }
13130  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13131    int x[] = {25, 17};
13132    const int *foo = &x[0];
13133    ++foo;
13134  }
13135  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13136    typedef const int *iptr;
13137    iptr p = 0;
13138    ++p;
13139  }
13140  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13141       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13142    struct s { int j; const int *ap[3]; } bx;
13143    struct s *b = &bx; b->j = 5;
13144  }
13145  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13146    const int foo = 10;
13147    if (!foo) return 0;
13148  }
13149  return !cs[0] && !zero.x;
13150#endif
13151
13152  ;
13153  return 0;
13154}
13155_ACEOF
13156if ac_fn_c_try_compile "$LINENO"
13157then :
13158  ac_cv_c_const=yes
13159else $as_nop
13160  ac_cv_c_const=no
13161fi
13162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13163fi
13164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13165printf "%s\n" "$ac_cv_c_const" >&6; }
13166if test $ac_cv_c_const = no; then
13167
13168printf "%s\n" "#define const /**/" >>confdefs.h
13169
13170fi
13171
13172
13173# Check whether --enable-freetype-config was given.
13174if test ${enable_freetype_config+y}
13175then :
13176  enableval=$enable_freetype_config; case "${enableval}" in
13177    yes) enable_freetype_config="TRUE" ;;
13178    no)  enable_freetype_config="FALSE" ;;
13179    *)   as_fn_error $? "unknown value '${enableval}' passed with --enable-freetype-config" "$LINENO" 5 ;;
13180   esac
13181else $as_nop
13182  enable_freetype_config="FALSE"
13183fi
13184
13185
13186INSTALL_FT2_CONFIG=$enable_freetype_config
13187
13188
13189# checks for library functions
13190
13191# Check whether --enable-largefile was given.
13192if test ${enable_largefile+y}
13193then :
13194  enableval=$enable_largefile;
13195fi
13196
13197if test "$enable_largefile" != no; then
13198
13199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13200printf %s "checking for special C compiler options needed for large files... " >&6; }
13201if test ${ac_cv_sys_largefile_CC+y}
13202then :
13203  printf %s "(cached) " >&6
13204else $as_nop
13205  ac_cv_sys_largefile_CC=no
13206     if test "$GCC" != yes; then
13207       ac_save_CC=$CC
13208       while :; do
13209	 # IRIX 6.2 and later do not support large files by default,
13210	 # so use the C compiler's -n32 option if that helps.
13211	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212/* end confdefs.h.  */
13213#include <sys/types.h>
13214 /* Check that off_t can represent 2**63 - 1 correctly.
13215    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13216    since some C++ compilers masquerading as C compilers
13217    incorrectly reject 9223372036854775807.  */
13218#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13219  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13220		       && LARGE_OFF_T % 2147483647 == 1)
13221		      ? 1 : -1];
13222int
13223main (void)
13224{
13225
13226  ;
13227  return 0;
13228}
13229_ACEOF
13230	 if ac_fn_c_try_compile "$LINENO"
13231then :
13232  break
13233fi
13234rm -f core conftest.err conftest.$ac_objext conftest.beam
13235	 CC="$CC -n32"
13236	 if ac_fn_c_try_compile "$LINENO"
13237then :
13238  ac_cv_sys_largefile_CC=' -n32'; break
13239fi
13240rm -f core conftest.err conftest.$ac_objext conftest.beam
13241	 break
13242       done
13243       CC=$ac_save_CC
13244       rm -f conftest.$ac_ext
13245    fi
13246fi
13247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13248printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
13249  if test "$ac_cv_sys_largefile_CC" != no; then
13250    CC=$CC$ac_cv_sys_largefile_CC
13251  fi
13252
13253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13254printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13255if test ${ac_cv_sys_file_offset_bits+y}
13256then :
13257  printf %s "(cached) " >&6
13258else $as_nop
13259  while :; do
13260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261/* end confdefs.h.  */
13262#include <sys/types.h>
13263 /* Check that off_t can represent 2**63 - 1 correctly.
13264    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13265    since some C++ compilers masquerading as C compilers
13266    incorrectly reject 9223372036854775807.  */
13267#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13268  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13269		       && LARGE_OFF_T % 2147483647 == 1)
13270		      ? 1 : -1];
13271int
13272main (void)
13273{
13274
13275  ;
13276  return 0;
13277}
13278_ACEOF
13279if ac_fn_c_try_compile "$LINENO"
13280then :
13281  ac_cv_sys_file_offset_bits=no; break
13282fi
13283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285/* end confdefs.h.  */
13286#define _FILE_OFFSET_BITS 64
13287#include <sys/types.h>
13288 /* Check that off_t can represent 2**63 - 1 correctly.
13289    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13290    since some C++ compilers masquerading as C compilers
13291    incorrectly reject 9223372036854775807.  */
13292#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13293  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13294		       && LARGE_OFF_T % 2147483647 == 1)
13295		      ? 1 : -1];
13296int
13297main (void)
13298{
13299
13300  ;
13301  return 0;
13302}
13303_ACEOF
13304if ac_fn_c_try_compile "$LINENO"
13305then :
13306  ac_cv_sys_file_offset_bits=64; break
13307fi
13308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13309  ac_cv_sys_file_offset_bits=unknown
13310  break
13311done
13312fi
13313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13314printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
13315case $ac_cv_sys_file_offset_bits in #(
13316  no | unknown) ;;
13317  *)
13318printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
13319;;
13320esac
13321rm -rf conftest*
13322  if test $ac_cv_sys_file_offset_bits = unknown; then
13323    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13324printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
13325if test ${ac_cv_sys_large_files+y}
13326then :
13327  printf %s "(cached) " >&6
13328else $as_nop
13329  while :; do
13330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331/* end confdefs.h.  */
13332#include <sys/types.h>
13333 /* Check that off_t can represent 2**63 - 1 correctly.
13334    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13335    since some C++ compilers masquerading as C compilers
13336    incorrectly reject 9223372036854775807.  */
13337#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13338  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13339		       && LARGE_OFF_T % 2147483647 == 1)
13340		      ? 1 : -1];
13341int
13342main (void)
13343{
13344
13345  ;
13346  return 0;
13347}
13348_ACEOF
13349if ac_fn_c_try_compile "$LINENO"
13350then :
13351  ac_cv_sys_large_files=no; break
13352fi
13353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355/* end confdefs.h.  */
13356#define _LARGE_FILES 1
13357#include <sys/types.h>
13358 /* Check that off_t can represent 2**63 - 1 correctly.
13359    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13360    since some C++ compilers masquerading as C compilers
13361    incorrectly reject 9223372036854775807.  */
13362#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13363  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13364		       && LARGE_OFF_T % 2147483647 == 1)
13365		      ? 1 : -1];
13366int
13367main (void)
13368{
13369
13370  ;
13371  return 0;
13372}
13373_ACEOF
13374if ac_fn_c_try_compile "$LINENO"
13375then :
13376  ac_cv_sys_large_files=1; break
13377fi
13378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13379  ac_cv_sys_large_files=unknown
13380  break
13381done
13382fi
13383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13384printf "%s\n" "$ac_cv_sys_large_files" >&6; }
13385case $ac_cv_sys_large_files in #(
13386  no | unknown) ;;
13387  *)
13388printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
13389;;
13390esac
13391rm -rf conftest*
13392  fi
13393fi
13394
13395
13396# Here we check whether we can use our mmap file component.
13397#
13398# Note that `ftsystem.c` for Windows has its own mmap-like implementation
13399# not covered by `AC_FUNC_MMAP` and/or `FT_UNMAP_PARAM`.
13400
13401# Check whether --enable-mmap was given.
13402if test ${enable_mmap+y}
13403then :
13404  enableval=$enable_mmap; enable_mmap="no"
13405else $as_nop
13406  enable_mmap="yes"
13407fi
13408
13409if test "x${enable_mmap}" != "xno"; then
13410  case "$host" in
13411  *-*-mingw*)
13412    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13413printf %s "checking for working mmap... " >&6; }
13414    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using MapViewOfFile in Windows" >&5
13415printf "%s\n" "using MapViewOfFile in Windows" >&6; }
13416    FTSYS_SRC='$(TOP_DIR)/builds/windows/ftsystem.c'
13417    ;;
13418  *)
13419
13420ac_func=
13421for ac_item in $ac_func_c_list
13422do
13423  if test $ac_func; then
13424    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
13425    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
13426      echo "#define $ac_item 1" >> confdefs.h
13427    fi
13428    ac_func=
13429  else
13430    ac_func=$ac_item
13431  fi
13432done
13433
13434
13435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13436printf %s "checking for working mmap... " >&6; }
13437if test ${ac_cv_func_mmap_fixed_mapped+y}
13438then :
13439  printf %s "(cached) " >&6
13440else $as_nop
13441  if test "$cross_compiling" = yes
13442then :
13443  case "$host_os" in # ((
13444			  # Guess yes on platforms where we know the result.
13445		  linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
13446			  # If we don't know, assume the worst.
13447		  *)      ac_cv_func_mmap_fixed_mapped=no ;;
13448		esac
13449else $as_nop
13450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451/* end confdefs.h.  */
13452$ac_includes_default
13453/* malloc might have been renamed as rpl_malloc. */
13454#undef malloc
13455
13456/* Thanks to Mike Haertel and Jim Avera for this test.
13457   Here is a matrix of mmap possibilities:
13458	mmap private not fixed
13459	mmap private fixed at somewhere currently unmapped
13460	mmap private fixed at somewhere already mapped
13461	mmap shared not fixed
13462	mmap shared fixed at somewhere currently unmapped
13463	mmap shared fixed at somewhere already mapped
13464   For private mappings, we should verify that changes cannot be read()
13465   back from the file, nor mmap's back from the file at a different
13466   address.  (There have been systems where private was not correctly
13467   implemented like the infamous i386 svr4.0, and systems where the
13468   VM page cache was not coherent with the file system buffer cache
13469   like early versions of FreeBSD and possibly contemporary NetBSD.)
13470   For shared mappings, we should conversely verify that changes get
13471   propagated back to all the places they're supposed to be.
13472
13473   Grep wants private fixed already mapped.
13474   The main things grep needs to know about mmap are:
13475   * does it exist and is it safe to write into the mmap'd area
13476   * how to use it (BSD variants)  */
13477
13478#include <fcntl.h>
13479#include <sys/mman.h>
13480
13481/* This mess was copied from the GNU getpagesize.h.  */
13482#ifndef HAVE_GETPAGESIZE
13483# ifdef _SC_PAGESIZE
13484#  define getpagesize() sysconf(_SC_PAGESIZE)
13485# else /* no _SC_PAGESIZE */
13486#  ifdef HAVE_SYS_PARAM_H
13487#   include <sys/param.h>
13488#   ifdef EXEC_PAGESIZE
13489#    define getpagesize() EXEC_PAGESIZE
13490#   else /* no EXEC_PAGESIZE */
13491#    ifdef NBPG
13492#     define getpagesize() NBPG * CLSIZE
13493#     ifndef CLSIZE
13494#      define CLSIZE 1
13495#     endif /* no CLSIZE */
13496#    else /* no NBPG */
13497#     ifdef NBPC
13498#      define getpagesize() NBPC
13499#     else /* no NBPC */
13500#      ifdef PAGESIZE
13501#       define getpagesize() PAGESIZE
13502#      endif /* PAGESIZE */
13503#     endif /* no NBPC */
13504#    endif /* no NBPG */
13505#   endif /* no EXEC_PAGESIZE */
13506#  else /* no HAVE_SYS_PARAM_H */
13507#   define getpagesize() 8192	/* punt totally */
13508#  endif /* no HAVE_SYS_PARAM_H */
13509# endif /* no _SC_PAGESIZE */
13510
13511#endif /* no HAVE_GETPAGESIZE */
13512
13513int
13514main (void)
13515{
13516  char *data, *data2, *data3;
13517  const char *cdata2;
13518  int i, pagesize;
13519  int fd, fd2;
13520
13521  pagesize = getpagesize ();
13522
13523  /* First, make a file with some known garbage in it. */
13524  data = (char *) malloc (pagesize);
13525  if (!data)
13526    return 1;
13527  for (i = 0; i < pagesize; ++i)
13528    *(data + i) = rand ();
13529  umask (0);
13530  fd = creat ("conftest.mmap", 0600);
13531  if (fd < 0)
13532    return 2;
13533  if (write (fd, data, pagesize) != pagesize)
13534    return 3;
13535  close (fd);
13536
13537  /* Next, check that the tail of a page is zero-filled.  File must have
13538     non-zero length, otherwise we risk SIGBUS for entire page.  */
13539  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13540  if (fd2 < 0)
13541    return 4;
13542  cdata2 = "";
13543  if (write (fd2, cdata2, 1) != 1)
13544    return 5;
13545  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13546  if (data2 == MAP_FAILED)
13547    return 6;
13548  for (i = 0; i < pagesize; ++i)
13549    if (*(data2 + i))
13550      return 7;
13551  close (fd2);
13552  if (munmap (data2, pagesize))
13553    return 8;
13554
13555  /* Next, try to mmap the file at a fixed address which already has
13556     something else allocated at it.  If we can, also make sure that
13557     we see the same garbage.  */
13558  fd = open ("conftest.mmap", O_RDWR);
13559  if (fd < 0)
13560    return 9;
13561  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13562		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
13563    return 10;
13564  for (i = 0; i < pagesize; ++i)
13565    if (*(data + i) != *(data2 + i))
13566      return 11;
13567
13568  /* Finally, make sure that changes to the mapped area do not
13569     percolate back to the file as seen by read().  (This is a bug on
13570     some variants of i386 svr4.0.)  */
13571  for (i = 0; i < pagesize; ++i)
13572    *(data2 + i) = *(data2 + i) + 1;
13573  data3 = (char *) malloc (pagesize);
13574  if (!data3)
13575    return 12;
13576  if (read (fd, data3, pagesize) != pagesize)
13577    return 13;
13578  for (i = 0; i < pagesize; ++i)
13579    if (*(data + i) != *(data3 + i))
13580      return 14;
13581  close (fd);
13582  free (data);
13583  free (data3);
13584  return 0;
13585}
13586_ACEOF
13587if ac_fn_c_try_run "$LINENO"
13588then :
13589  ac_cv_func_mmap_fixed_mapped=yes
13590else $as_nop
13591  ac_cv_func_mmap_fixed_mapped=no
13592fi
13593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13594  conftest.$ac_objext conftest.beam conftest.$ac_ext
13595fi
13596
13597fi
13598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13599printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
13600if test $ac_cv_func_mmap_fixed_mapped = yes; then
13601
13602printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13603
13604fi
13605rm -f conftest.mmap conftest.txt
13606
13607    if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
13608      FTSYS_SRC='$(PLATFORM_DIR)/ftsystem.c'
13609
13610      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13611printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13612if test ${ac_cv_c_undeclared_builtin_options+y}
13613then :
13614  printf %s "(cached) " >&6
13615else $as_nop
13616  ac_save_CFLAGS=$CFLAGS
13617   ac_cv_c_undeclared_builtin_options='cannot detect'
13618   for ac_arg in '' -fno-builtin; do
13619     CFLAGS="$ac_save_CFLAGS $ac_arg"
13620     # This test program should *not* compile successfully.
13621     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622/* end confdefs.h.  */
13623
13624int
13625main (void)
13626{
13627(void) strchr;
13628  ;
13629  return 0;
13630}
13631_ACEOF
13632if ac_fn_c_try_compile "$LINENO"
13633then :
13634
13635else $as_nop
13636  # This test program should compile successfully.
13637        # No library function is consistently available on
13638        # freestanding implementations, so test against a dummy
13639        # declaration.  Include always-available headers on the
13640        # off chance that they somehow elicit warnings.
13641        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642/* end confdefs.h.  */
13643#include <float.h>
13644#include <limits.h>
13645#include <stdarg.h>
13646#include <stddef.h>
13647extern void ac_decl (int, char *);
13648
13649int
13650main (void)
13651{
13652(void) ac_decl (0, (char *) 0);
13653  (void) ac_decl;
13654
13655  ;
13656  return 0;
13657}
13658_ACEOF
13659if ac_fn_c_try_compile "$LINENO"
13660then :
13661  if test x"$ac_arg" = x
13662then :
13663  ac_cv_c_undeclared_builtin_options='none needed'
13664else $as_nop
13665  ac_cv_c_undeclared_builtin_options=$ac_arg
13666fi
13667          break
13668fi
13669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13670fi
13671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13672    done
13673    CFLAGS=$ac_save_CFLAGS
13674
13675fi
13676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13677printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13678  case $ac_cv_c_undeclared_builtin_options in #(
13679  'cannot detect') :
13680    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13681printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13682as_fn_error $? "cannot make $CC report undeclared builtins
13683See \`config.log' for more details" "$LINENO" 5; } ;; #(
13684  'none needed') :
13685    ac_c_undeclared_builtin_options='' ;; #(
13686  *) :
13687    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13688esac
13689
13690ac_fn_check_decl "$LINENO" "munmap" "ac_cv_have_decl_munmap" "
13691
13692#ifdef HAVE_UNISTD_H
13693#include <unistd.h>
13694#endif
13695#include <sys/mman.h>
13696
13697
13698" "$ac_c_undeclared_builtin_options" "CFLAGS"
13699if test "x$ac_cv_have_decl_munmap" = xyes
13700then :
13701  ac_have_decl=1
13702else $as_nop
13703  ac_have_decl=0
13704fi
13705printf "%s\n" "#define HAVE_DECL_MUNMAP $ac_have_decl" >>confdefs.h
13706
13707
13708      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for munmap's first parameter type" >&5
13709printf %s "checking for munmap's first parameter type... " >&6; }
13710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711/* end confdefs.h.  */
13712
13713
13714
13715#include <unistd.h>
13716#include <sys/mman.h>
13717int munmap(void *, size_t);
13718
13719
13720
13721_ACEOF
13722if ac_fn_c_try_compile "$LINENO"
13723then :
13724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: void *" >&5
13725printf "%s\n" "void *" >&6; }
13726
13727printf "%s\n" "#define MUNMAP_USES_VOIDP /**/" >>confdefs.h
13728
13729else $as_nop
13730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: char *" >&5
13731printf "%s\n" "char *" >&6; }
13732fi
13733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13734
13735    fi
13736    ;;
13737  esac
13738fi
13739
13740if test -z "$FTSYS_SRC"; then
13741  FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
13742fi
13743
13744
13745
13746ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13747if test "x$ac_cv_func_memcpy" = xyes
13748then :
13749  printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
13750
13751fi
13752ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
13753if test "x$ac_cv_func_memmove" = xyes
13754then :
13755  printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
13756
13757fi
13758
13759
13760
13761# get compiler flags right
13762#
13763#   We try to make the compiler work for C99-strict source.  Even if the
13764#   C compiler is gcc and C99 flags are available, some system headers
13765#   might be broken in C99 mode.  We have to check whether compilation
13766#   finishes successfully.
13767#
13768if test "x$GCC" = xyes; then
13769  XX_CFLAGS="-Wall"
13770  case "$host" in
13771  *-*-mingw*)
13772    XX_ANSIFLAGS="-pedantic"
13773    ;;
13774  *-*-aix*)
13775    XX_ANSIFLAGS="-pedantic"
13776    ;;
13777  *)
13778    XX_ANSIFLAGS=""
13779
13780    for a in "-pedantic" "-std=c99"
13781    do
13782      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CC compiler flag ${a} to assure ANSI C99 works correctly" >&5
13783printf %s "checking $CC compiler flag ${a} to assure ANSI C99 works correctly... " >&6; }
13784      orig_CFLAGS="${CFLAGS}"
13785      CFLAGS="${CFLAGS} ${XX_ANSIFLAGS} ${a}"
13786      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787/* end confdefs.h.  */
13788
13789
13790
13791#include <stdio.h>
13792
13793
13794int
13795main (void)
13796{
13797
13798
13799            {
13800              puts( "" );
13801              return 0;
13802            }
13803
13804
13805  ;
13806  return 0;
13807}
13808_ACEOF
13809if ac_fn_c_try_compile "$LINENO"
13810then :
13811  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok, adding to XX_ANSIFLAGS" >&5
13812printf "%s\n" "ok, adding to XX_ANSIFLAGS" >&6; }
13813         XX_ANSIFLAGS="${XX_ANSIFLAGS} ${a}"
13814
13815else $as_nop
13816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13817printf "%s\n" "no" >&6; }
13818fi
13819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13820      CFLAGS="${orig_CFLAGS}"
13821    done
13822    ;;
13823  esac
13824else
13825  case "$host" in
13826  *-dec-osf*)
13827    CFLAGS=
13828    XX_CFLAGS="-std1 -g3"
13829    XX_ANSIFLAGS=
13830    ;;
13831  *)
13832    XX_CFLAGS=
13833    XX_ANSIFLAGS=
13834    ;;
13835  esac
13836fi
13837
13838
13839
13840
13841# It is recommended that shared libraries hide symbols except those with
13842# explicit __attribute__((visibility("default"))).
13843#
13844found_visibility_flag=no
13845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
13846printf %s "checking for -fvisibility=hidden compiler flag... " >&6; }
13847orig_CFLAGS="${CFLAGS}"
13848CFLAGS="${CFLAGS} -fvisibility=hidden"
13849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850/* end confdefs.h.  */
13851
13852int
13853main (void)
13854{
13855
13856  ;
13857  return 0;
13858}
13859_ACEOF
13860if ac_fn_c_try_link "$LINENO"
13861then :
13862  found_visibility_flag=yes
13863                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13864printf "%s\n" "yes" >&6; }
13865else $as_nop
13866  CFLAGS="${orig_CFLAGS}"
13867                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868printf "%s\n" "no" >&6; }
13869fi
13870rm -f core conftest.err conftest.$ac_objext conftest.beam \
13871    conftest$ac_exeext conftest.$ac_ext
13872
13873if test "${found_visibility_flag}" = "no"; then
13874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -xldscope=hidden compiler flag" >&5
13875printf %s "checking for -xldscope=hidden compiler flag... " >&6; }
13876  orig_CFLAGS="${CFLAGS}"
13877  CFLAGS="${CFLAGS} -xldscope=hidden"
13878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879/* end confdefs.h.  */
13880
13881int
13882main (void)
13883{
13884
13885  ;
13886  return 0;
13887}
13888_ACEOF
13889if ac_fn_c_try_link "$LINENO"
13890then :
13891  found_visibility_flag=yes
13892                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13893printf "%s\n" "yes" >&6; }
13894else $as_nop
13895  CFLAGS="${orig_CFLAGS}"
13896                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13897printf "%s\n" "no" >&6; }
13898fi
13899rm -f core conftest.err conftest.$ac_objext conftest.beam \
13900    conftest$ac_exeext conftest.$ac_ext
13901fi
13902
13903# All library tests below try `pkg-config' first.  If that fails, a function
13904# from the library is tested in the traditional autoconf way (zlib, bzip2),
13905# or a config script is called (libpng).
13906#
13907# The `xxx_reqpriv' variables are for the `Requires.private' field in
13908# `freetype2.pc'.  The `xxx_libspriv' variables are for the `Libs.private'
13909# field in `freetype2.pc' if pkg-config doesn't find a proper .pc file.
13910#
13911# The `xxx_libsstaticconf' variables are for the `freetype-config' script.
13912#
13913# Note that a call to PKG_CHECK_MODULES(XXX, ...) sets and creates the
13914# output variables `XXX_CFLAGS' and `XXX_LIBS'.  In case one or both are set
13915# for a library by the user, no entry for this library is added to
13916# `Requires.private'.  Instead, it gets added to `Libs.private'
13917
13918
13919# check for system zlib
13920
13921
13922# Check whether --with-zlib was given.
13923if test ${with_zlib+y}
13924then :
13925  withval=$with_zlib;
13926else $as_nop
13927  with_zlib=auto
13928fi
13929
13930
13931have_zlib=no
13932if test x"$with_zlib" = xyes -o x"$with_zlib" = xauto; then
13933  zlib_pkg="zlib"
13934  have_zlib_pkg=no
13935
13936  if test x"$ZLIB_CFLAGS" = x -a x"$ZLIB_LIBS" = x; then
13937    if test -n "$PKG_CONFIG" && \
13938    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13939  ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13940  ac_status=$?
13941  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13942  test $ac_status = 0; }; then
13943  have_zlib_pkg=yes
13944fi
13945  fi
13946
13947pkg_failed=no
13948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
13949printf %s "checking for ZLIB... " >&6; }
13950
13951if test -n "$ZLIB_CFLAGS"; then
13952    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
13953 elif test -n "$PKG_CONFIG"; then
13954    if test -n "$PKG_CONFIG" && \
13955    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13956  ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13957  ac_status=$?
13958  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13959  test $ac_status = 0; }; then
13960  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "$zlib_pkg" 2>/dev/null`
13961		      test "x$?" != "x0" && pkg_failed=yes
13962else
13963  pkg_failed=yes
13964fi
13965 else
13966    pkg_failed=untried
13967fi
13968if test -n "$ZLIB_LIBS"; then
13969    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
13970 elif test -n "$PKG_CONFIG"; then
13971    if test -n "$PKG_CONFIG" && \
13972    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13973  ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13974  ac_status=$?
13975  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13976  test $ac_status = 0; }; then
13977  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "$zlib_pkg" 2>/dev/null`
13978		      test "x$?" != "x0" && pkg_failed=yes
13979else
13980  pkg_failed=yes
13981fi
13982 else
13983    pkg_failed=untried
13984fi
13985
13986
13987
13988if test $pkg_failed = yes; then
13989   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990printf "%s\n" "no" >&6; }
13991
13992if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13993        _pkg_short_errors_supported=yes
13994else
13995        _pkg_short_errors_supported=no
13996fi
13997        if test $_pkg_short_errors_supported = yes; then
13998	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$zlib_pkg" 2>&1`
13999        else
14000	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$zlib_pkg" 2>&1`
14001        fi
14002	# Put the nasty error message in config.log where it belongs
14003	echo "$ZLIB_PKG_ERRORS" >&5
14004
14005	:
14006elif test $pkg_failed = untried; then
14007     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008printf "%s\n" "no" >&6; }
14009	:
14010else
14011	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
14012	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
14013        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14014printf "%s\n" "yes" >&6; }
14015	have_zlib="yes (pkg-config)"
14016fi
14017
14018  if test $have_zlib_pkg = yes; then
14019    # we have zlib.pc
14020    zlib_reqpriv="$zlib_pkg"
14021    zlib_libspriv=
14022    zlib_libsstaticconf=`$PKG_CONFIG --static --libs "$zlib_pkg"`
14023  else
14024    zlib_reqpriv=
14025
14026    if test "$have_zlib" != no; then
14027      # ZLIB_CFLAGS and ZLIB_LIBS are set by the user
14028      zlib_libspriv="$ZLIB_LIBS"
14029      zlib_libsstaticconf="$ZLIB_LIBS"
14030      have_zlib="yes (ZLIB_CFLAGS and ZLIB_LIBS)"
14031    else
14032      # fall back to standard autoconf test
14033      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
14034printf %s "checking for gzsetparams in -lz... " >&6; }
14035if test ${ac_cv_lib_z_gzsetparams+y}
14036then :
14037  printf %s "(cached) " >&6
14038else $as_nop
14039  ac_check_lib_save_LIBS=$LIBS
14040LIBS="-lz  $LIBS"
14041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042/* end confdefs.h.  */
14043
14044/* Override any GCC internal prototype to avoid an error.
14045   Use char because int might match the return type of a GCC
14046   builtin and then its argument prototype would still apply.  */
14047char gzsetparams ();
14048int
14049main (void)
14050{
14051return gzsetparams ();
14052  ;
14053  return 0;
14054}
14055_ACEOF
14056if ac_fn_c_try_link "$LINENO"
14057then :
14058  ac_cv_lib_z_gzsetparams=yes
14059else $as_nop
14060  ac_cv_lib_z_gzsetparams=no
14061fi
14062rm -f core conftest.err conftest.$ac_objext conftest.beam \
14063    conftest$ac_exeext conftest.$ac_ext
14064LIBS=$ac_check_lib_save_LIBS
14065fi
14066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
14067printf "%s\n" "$ac_cv_lib_z_gzsetparams" >&6; }
14068if test "x$ac_cv_lib_z_gzsetparams" = xyes
14069then :
14070  ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14071if test "x$ac_cv_header_zlib_h" = xyes
14072then :
14073  have_zlib="yes (autoconf test)"
14074                                     zlib_libspriv="-lz"
14075                                     zlib_libsstaticconf="$zlib_libspriv"
14076                                     ZLIB_LIBS="$zlib_libspriv"
14077fi
14078
14079fi
14080
14081    fi
14082  fi
14083fi
14084
14085if test x"$with_zlib" = xyes -a "$have_zlib" = no; then
14086  as_fn_error $? "external zlib support requested but library not found" "$LINENO" 5
14087fi
14088
14089SYSTEM_ZLIB=
14090if test "$have_zlib" != no; then
14091  SYSTEM_ZLIB=yes
14092fi
14093
14094
14095
14096# check for system libbz2
14097
14098
14099# Check whether --with-bzip2 was given.
14100if test ${with_bzip2+y}
14101then :
14102  withval=$with_bzip2;
14103else $as_nop
14104  with_bzip2=auto
14105fi
14106
14107
14108have_bzip2=no
14109if test x"$with_bzip2" = xyes -o x"$with_bzip2" = xauto; then
14110  bzip2_pkg="bzip2"
14111  have_bzip2_pkg=no
14112
14113  if test x"$BZIP2_CFLAGS" = x -a x"$BZIP2_LIBS" = x; then
14114    if test -n "$PKG_CONFIG" && \
14115    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
14116  ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
14117  ac_status=$?
14118  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14119  test $ac_status = 0; }; then
14120  have_bzip2_pkg=yes
14121fi
14122  fi
14123
14124pkg_failed=no
14125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZIP2" >&5
14126printf %s "checking for BZIP2... " >&6; }
14127
14128if test -n "$BZIP2_CFLAGS"; then
14129    pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS"
14130 elif test -n "$PKG_CONFIG"; then
14131    if test -n "$PKG_CONFIG" && \
14132    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
14133  ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
14134  ac_status=$?
14135  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14136  test $ac_status = 0; }; then
14137  pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "$bzip2_pkg" 2>/dev/null`
14138		      test "x$?" != "x0" && pkg_failed=yes
14139else
14140  pkg_failed=yes
14141fi
14142 else
14143    pkg_failed=untried
14144fi
14145if test -n "$BZIP2_LIBS"; then
14146    pkg_cv_BZIP2_LIBS="$BZIP2_LIBS"
14147 elif test -n "$PKG_CONFIG"; then
14148    if test -n "$PKG_CONFIG" && \
14149    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
14150  ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
14151  ac_status=$?
14152  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14153  test $ac_status = 0; }; then
14154  pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "$bzip2_pkg" 2>/dev/null`
14155		      test "x$?" != "x0" && pkg_failed=yes
14156else
14157  pkg_failed=yes
14158fi
14159 else
14160    pkg_failed=untried
14161fi
14162
14163
14164
14165if test $pkg_failed = yes; then
14166   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14167printf "%s\n" "no" >&6; }
14168
14169if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14170        _pkg_short_errors_supported=yes
14171else
14172        _pkg_short_errors_supported=no
14173fi
14174        if test $_pkg_short_errors_supported = yes; then
14175	        BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
14176        else
14177	        BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
14178        fi
14179	# Put the nasty error message in config.log where it belongs
14180	echo "$BZIP2_PKG_ERRORS" >&5
14181
14182	:
14183elif test $pkg_failed = untried; then
14184     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14185printf "%s\n" "no" >&6; }
14186	:
14187else
14188	BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
14189	BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
14190        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14191printf "%s\n" "yes" >&6; }
14192	have_bzip2="yes (pkg-config)"
14193fi
14194
14195  if test $have_bzip2_pkg = yes; then
14196    # we have bzip2.pc
14197    bzip2_reqpriv="$bzip2_pkg"
14198    bzip2_libspriv=
14199    bzip2_libsstaticconf=`$PKG_CONFIG --static --libs "$bzip2_pkg"`
14200  else
14201    bzip2_reqpriv=
14202
14203    if test "$have_bzip2" != no; then
14204      # BZIP2_CFLAGS and BZIP2_LIBS are set by the user
14205      bzip2_libspriv="$BZIP2_LIBS"
14206      bzip2_libsstaticconf="$BZIP2_LIBS"
14207      have_bzip2="yes (BZIP2_CFLAGS and BZIP2_LIBS)"
14208    else
14209      # fall back to standard autoconf test
14210      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
14211printf %s "checking for BZ2_bzDecompress in -lbz2... " >&6; }
14212if test ${ac_cv_lib_bz2_BZ2_bzDecompress+y}
14213then :
14214  printf %s "(cached) " >&6
14215else $as_nop
14216  ac_check_lib_save_LIBS=$LIBS
14217LIBS="-lbz2  $LIBS"
14218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219/* end confdefs.h.  */
14220
14221/* Override any GCC internal prototype to avoid an error.
14222   Use char because int might match the return type of a GCC
14223   builtin and then its argument prototype would still apply.  */
14224char BZ2_bzDecompress ();
14225int
14226main (void)
14227{
14228return BZ2_bzDecompress ();
14229  ;
14230  return 0;
14231}
14232_ACEOF
14233if ac_fn_c_try_link "$LINENO"
14234then :
14235  ac_cv_lib_bz2_BZ2_bzDecompress=yes
14236else $as_nop
14237  ac_cv_lib_bz2_BZ2_bzDecompress=no
14238fi
14239rm -f core conftest.err conftest.$ac_objext conftest.beam \
14240    conftest$ac_exeext conftest.$ac_ext
14241LIBS=$ac_check_lib_save_LIBS
14242fi
14243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
14244printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
14245if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes
14246then :
14247  ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
14248if test "x$ac_cv_header_bzlib_h" = xyes
14249then :
14250  have_bzip2="yes (autoconf test)"
14251                                     bzip2_libspriv="-lbz2"
14252                                     bzip2_libsstaticconf="$bzip2_libspriv"
14253                                     BZIP2_LIBS="$bzip2_libspriv"
14254fi
14255
14256fi
14257
14258    fi
14259  fi
14260fi
14261
14262if test x"$with_bzip2" = xyes -a "$have_bzip2" = no; then
14263  as_fn_error $? "bzip2 support requested but library not found" "$LINENO" 5
14264fi
14265
14266
14267# check for system libpng
14268
14269
14270# Check whether --with-png was given.
14271if test ${with_png+y}
14272then :
14273  withval=$with_png;
14274else $as_nop
14275  with_png=auto
14276fi
14277
14278
14279have_libpng=no
14280if test x"$with_png" = xyes -o x"$with_png" = xauto; then
14281  libpng_pkg="libpng"
14282  have_libpng_pkg=no
14283
14284  if test x"$LIBPNG_CFLAGS" = x -a x"$LIBPNG_LIBS" = x; then
14285    if test -n "$PKG_CONFIG" && \
14286    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
14287  ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
14288  ac_status=$?
14289  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14290  test $ac_status = 0; }; then
14291  have_libpng_pkg=yes
14292fi
14293  fi
14294
14295pkg_failed=no
14296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
14297printf %s "checking for LIBPNG... " >&6; }
14298
14299if test -n "$LIBPNG_CFLAGS"; then
14300    pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
14301 elif test -n "$PKG_CONFIG"; then
14302    if test -n "$PKG_CONFIG" && \
14303    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
14304  ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
14305  ac_status=$?
14306  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14307  test $ac_status = 0; }; then
14308  pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "$libpng_pkg" 2>/dev/null`
14309		      test "x$?" != "x0" && pkg_failed=yes
14310else
14311  pkg_failed=yes
14312fi
14313 else
14314    pkg_failed=untried
14315fi
14316if test -n "$LIBPNG_LIBS"; then
14317    pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
14318 elif test -n "$PKG_CONFIG"; then
14319    if test -n "$PKG_CONFIG" && \
14320    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
14321  ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
14322  ac_status=$?
14323  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14324  test $ac_status = 0; }; then
14325  pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "$libpng_pkg" 2>/dev/null`
14326		      test "x$?" != "x0" && pkg_failed=yes
14327else
14328  pkg_failed=yes
14329fi
14330 else
14331    pkg_failed=untried
14332fi
14333
14334
14335
14336if test $pkg_failed = yes; then
14337   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338printf "%s\n" "no" >&6; }
14339
14340if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14341        _pkg_short_errors_supported=yes
14342else
14343        _pkg_short_errors_supported=no
14344fi
14345        if test $_pkg_short_errors_supported = yes; then
14346	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$libpng_pkg" 2>&1`
14347        else
14348	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$libpng_pkg" 2>&1`
14349        fi
14350	# Put the nasty error message in config.log where it belongs
14351	echo "$LIBPNG_PKG_ERRORS" >&5
14352
14353	:
14354elif test $pkg_failed = untried; then
14355     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14356printf "%s\n" "no" >&6; }
14357	:
14358else
14359	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
14360	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
14361        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14362printf "%s\n" "yes" >&6; }
14363	have_libpng="yes (pkg-config)"
14364fi
14365
14366  if test $have_libpng_pkg = yes; then
14367    # we have libpng.pc
14368    libpng_reqpriv="$libpng_pkg"
14369    libpng_libspriv=
14370    libpng_libsstaticconf=`$PKG_CONFIG --static --libs "$libpng_pkg"`
14371  else
14372    libpng_reqpriv=
14373
14374    if test "$have_libpng" != no; then
14375      # LIBPNG_CFLAGS and LIBPNG_LIBS are set by the user
14376      libpng_libspriv="$LIBPNG_LIBS"
14377      libpng_libsstaticconf="$LIBPNG_LIBS"
14378      have_libpng="yes (LIBPNG_CFLAGS and LIBPNG_LIBS)"
14379    else
14380      # fall back to config script
14381      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
14382printf %s "checking for libpng-config... " >&6; }
14383      if which libpng-config > /dev/null 2>&1; then
14384        LIBPNG_CFLAGS=`libpng-config --cflags`
14385        LIBPNG_LIBS=`libpng-config --ldflags`
14386        libpng_libspriv=`libpng-config --static --ldflags`
14387        libpng_libsstaticconf="$libpng_libspriv"
14388        have_libpng="yes (libpng-config)"
14389        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14390printf "%s\n" "yes" >&6; }
14391      else
14392        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14393printf "%s\n" "no" >&6; }
14394      fi
14395    fi
14396  fi
14397fi
14398
14399if test x"$with_png" = xyes -a "$have_libpng" = no; then
14400  as_fn_error $? "libpng support requested but library not found" "$LINENO" 5
14401fi
14402
14403
14404# check for system libharfbuzz
14405
14406
14407# Check whether --with-harfbuzz was given.
14408if test ${with_harfbuzz+y}
14409then :
14410  withval=$with_harfbuzz;
14411else $as_nop
14412  with_harfbuzz=auto
14413fi
14414
14415
14416have_harfbuzz=no
14417if test x"$with_harfbuzz" = xyes -o x"$with_harfbuzz" = xauto; then
14418  harfbuzz_pkg="harfbuzz >= 2.0.0"
14419  have_harfbuzz_pkg=no
14420
14421  if test x"$HARFBUZZ_CFLAGS" = x -a x"$HARFBUZZ_LIBS" = x; then
14422    if test -n "$PKG_CONFIG" && \
14423    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14424  ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14425  ac_status=$?
14426  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14427  test $ac_status = 0; }; then
14428  have_harfbuzz_pkg=yes
14429fi
14430  fi
14431
14432pkg_failed=no
14433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HARFBUZZ" >&5
14434printf %s "checking for HARFBUZZ... " >&6; }
14435
14436if test -n "$HARFBUZZ_CFLAGS"; then
14437    pkg_cv_HARFBUZZ_CFLAGS="$HARFBUZZ_CFLAGS"
14438 elif test -n "$PKG_CONFIG"; then
14439    if test -n "$PKG_CONFIG" && \
14440    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14441  ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14442  ac_status=$?
14443  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14444  test $ac_status = 0; }; then
14445  pkg_cv_HARFBUZZ_CFLAGS=`$PKG_CONFIG --cflags "$harfbuzz_pkg" 2>/dev/null`
14446		      test "x$?" != "x0" && pkg_failed=yes
14447else
14448  pkg_failed=yes
14449fi
14450 else
14451    pkg_failed=untried
14452fi
14453if test -n "$HARFBUZZ_LIBS"; then
14454    pkg_cv_HARFBUZZ_LIBS="$HARFBUZZ_LIBS"
14455 elif test -n "$PKG_CONFIG"; then
14456    if test -n "$PKG_CONFIG" && \
14457    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14458  ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14459  ac_status=$?
14460  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14461  test $ac_status = 0; }; then
14462  pkg_cv_HARFBUZZ_LIBS=`$PKG_CONFIG --libs "$harfbuzz_pkg" 2>/dev/null`
14463		      test "x$?" != "x0" && pkg_failed=yes
14464else
14465  pkg_failed=yes
14466fi
14467 else
14468    pkg_failed=untried
14469fi
14470
14471
14472
14473if test $pkg_failed = yes; then
14474   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14475printf "%s\n" "no" >&6; }
14476
14477if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14478        _pkg_short_errors_supported=yes
14479else
14480        _pkg_short_errors_supported=no
14481fi
14482        if test $_pkg_short_errors_supported = yes; then
14483	        HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
14484        else
14485	        HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
14486        fi
14487	# Put the nasty error message in config.log where it belongs
14488	echo "$HARFBUZZ_PKG_ERRORS" >&5
14489
14490	:
14491elif test $pkg_failed = untried; then
14492     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14493printf "%s\n" "no" >&6; }
14494	:
14495else
14496	HARFBUZZ_CFLAGS=$pkg_cv_HARFBUZZ_CFLAGS
14497	HARFBUZZ_LIBS=$pkg_cv_HARFBUZZ_LIBS
14498        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14499printf "%s\n" "yes" >&6; }
14500	have_harfbuzz="yes (pkg-config)"
14501fi
14502
14503  if test $have_harfbuzz_pkg = yes; then
14504    # we have harfbuzz.pc
14505    harfbuzz_reqpriv="$harfbuzz_pkg"
14506    harfbuzz_libspriv=
14507    harfbuzz_libsstaticconf=`$PKG_CONFIG --static --libs "$harfbuzz_pkg"`
14508  else
14509    harfbuzz_reqpriv=
14510
14511    if test "$have_harfbuzz" != no; then
14512      # HARFBUZZ_CFLAGS and HARFBUZZ_LIBS are set by the user
14513      harfbuzz_libspriv="$HARFBUZZ_LIBS"
14514      harfbuzz_libsstaticconf="$HARFBUZZ_LIBS"
14515      have_harfbuzz="yes (HARFBUZZ_CFLAGS and HARFBUZZ_LIBS)"
14516    else
14517      # since HarfBuzz is quite a new library we don't fall back to a
14518      # different test; additionally, it has too many dependencies
14519      :
14520    fi
14521  fi
14522fi
14523
14524if test x"$with_harfbuzz" = xyes -a "$have_harfbuzz" = no; then
14525  as_fn_error $? "harfbuzz support requested but library not found" "$LINENO" 5
14526fi
14527
14528
14529# check for system libbrotlidec
14530
14531
14532# Check whether --with-brotli was given.
14533if test ${with_brotli+y}
14534then :
14535  withval=$with_brotli;
14536else $as_nop
14537  with_brotli=auto
14538fi
14539
14540
14541have_brotli=no
14542if test x"$with_brotli" = xyes -o x"$with_brotli" = xauto; then
14543  brotli_pkg="libbrotlidec"
14544  have_brotli_pkg=no
14545
14546  if test x"$BROTLI_CFLAGS" = x -a x"$BROTLI_LIBS" = x; then
14547    if test -n "$PKG_CONFIG" && \
14548    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14549  ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14550  ac_status=$?
14551  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14552  test $ac_status = 0; }; then
14553  have_brotli_pkg=yes
14554fi
14555  fi
14556
14557pkg_failed=no
14558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BROTLI" >&5
14559printf %s "checking for BROTLI... " >&6; }
14560
14561if test -n "$BROTLI_CFLAGS"; then
14562    pkg_cv_BROTLI_CFLAGS="$BROTLI_CFLAGS"
14563 elif test -n "$PKG_CONFIG"; then
14564    if test -n "$PKG_CONFIG" && \
14565    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14566  ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14567  ac_status=$?
14568  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14569  test $ac_status = 0; }; then
14570  pkg_cv_BROTLI_CFLAGS=`$PKG_CONFIG --cflags "$brotli_pkg" 2>/dev/null`
14571		      test "x$?" != "x0" && pkg_failed=yes
14572else
14573  pkg_failed=yes
14574fi
14575 else
14576    pkg_failed=untried
14577fi
14578if test -n "$BROTLI_LIBS"; then
14579    pkg_cv_BROTLI_LIBS="$BROTLI_LIBS"
14580 elif test -n "$PKG_CONFIG"; then
14581    if test -n "$PKG_CONFIG" && \
14582    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14583  ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14584  ac_status=$?
14585  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14586  test $ac_status = 0; }; then
14587  pkg_cv_BROTLI_LIBS=`$PKG_CONFIG --libs "$brotli_pkg" 2>/dev/null`
14588		      test "x$?" != "x0" && pkg_failed=yes
14589else
14590  pkg_failed=yes
14591fi
14592 else
14593    pkg_failed=untried
14594fi
14595
14596
14597
14598if test $pkg_failed = yes; then
14599   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14600printf "%s\n" "no" >&6; }
14601
14602if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14603        _pkg_short_errors_supported=yes
14604else
14605        _pkg_short_errors_supported=no
14606fi
14607        if test $_pkg_short_errors_supported = yes; then
14608	        BROTLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$brotli_pkg" 2>&1`
14609        else
14610	        BROTLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$brotli_pkg" 2>&1`
14611        fi
14612	# Put the nasty error message in config.log where it belongs
14613	echo "$BROTLI_PKG_ERRORS" >&5
14614
14615	:
14616elif test $pkg_failed = untried; then
14617     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14618printf "%s\n" "no" >&6; }
14619	:
14620else
14621	BROTLI_CFLAGS=$pkg_cv_BROTLI_CFLAGS
14622	BROTLI_LIBS=$pkg_cv_BROTLI_LIBS
14623        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14624printf "%s\n" "yes" >&6; }
14625	have_brotli="yes (pkg-config)"
14626fi
14627
14628  if test $have_brotli_pkg = yes; then
14629    # we have libbrotlidec.pc
14630    brotli_reqpriv="$brotli_pkg"
14631    brotli_libspriv=
14632    brotli_libsstaticconf=`$PKG_CONFIG --static --libs "$brotli_pkg"`
14633  else
14634    brotli_reqpriv=
14635
14636    if test "$have_brotli" != no; then
14637      # BROTLI_CFLAGS and BROTLI_LIBS are set by the user
14638      brotli_libspriv="$BROTLI_LIBS"
14639      brotli_libsstaticconf="$BROTLI_LIBS"
14640      have_brotli="yes (BROTLI_CFLAGS and BROTLI_LIBS)"
14641    else
14642      # since Brotli is quite a new library we don't fall back to a
14643      # different test
14644      :
14645    fi
14646  fi
14647fi
14648
14649if test x"$with_brotli" = xyes -a "$have_brotli" = no; then
14650  as_fn_error $? "brotli support requested but library not found" "$LINENO" 5
14651fi
14652
14653
14654# Checks for the demo programs.
14655#
14656# FreeType doesn't need this.  However, since the demo program repository
14657# doesn't come with a `configure` script of its own, we integrate the tests
14658# here for simplicity.
14659
14660# We need `clock_gettime` from 'librt' for the `ftbench` demo program.
14661#
14662# The code is modeled after gnulib's file `clock_time.m4`, ignoring
14663# very old Solaris systems.
14664LIB_CLOCK_GETTIME=
14665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14666printf %s "checking for library containing clock_gettime... " >&6; }
14667if test ${ac_cv_search_clock_gettime+y}
14668then :
14669  printf %s "(cached) " >&6
14670else $as_nop
14671  ac_func_search_save_LIBS=$LIBS
14672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673/* end confdefs.h.  */
14674
14675/* Override any GCC internal prototype to avoid an error.
14676   Use char because int might match the return type of a GCC
14677   builtin and then its argument prototype would still apply.  */
14678char clock_gettime ();
14679int
14680main (void)
14681{
14682return clock_gettime ();
14683  ;
14684  return 0;
14685}
14686_ACEOF
14687for ac_lib in '' rt
14688do
14689  if test -z "$ac_lib"; then
14690    ac_res="none required"
14691  else
14692    ac_res=-l$ac_lib
14693    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14694  fi
14695  if ac_fn_c_try_link "$LINENO"
14696then :
14697  ac_cv_search_clock_gettime=$ac_res
14698fi
14699rm -f core conftest.err conftest.$ac_objext conftest.beam \
14700    conftest$ac_exeext
14701  if test ${ac_cv_search_clock_gettime+y}
14702then :
14703  break
14704fi
14705done
14706if test ${ac_cv_search_clock_gettime+y}
14707then :
14708
14709else $as_nop
14710  ac_cv_search_clock_gettime=no
14711fi
14712rm conftest.$ac_ext
14713LIBS=$ac_func_search_save_LIBS
14714fi
14715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14716printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
14717ac_res=$ac_cv_search_clock_gettime
14718if test "$ac_res" != no
14719then :
14720  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14721  test "$ac_cv_search_clock_gettime" = "none required" \
14722                || LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
14723fi
14724
14725
14726FT_DEMO_CFLAGS=""
14727FT_DEMO_LDFLAGS="$LIB_CLOCK_GETTIME"
14728
14729# 'librsvg' is needed to demonstrate SVG support.
14730
14731# Check whether --with-librsvg was given.
14732if test ${with_librsvg+y}
14733then :
14734  withval=$with_librsvg;
14735else $as_nop
14736  with_librsvg=auto
14737fi
14738
14739
14740have_librsvg=no
14741if test x"$with_librsvg" = xyes -o x"$with_librsvg" = xauto; then
14742
14743pkg_failed=no
14744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBRSVG" >&5
14745printf %s "checking for LIBRSVG... " >&6; }
14746
14747if test -n "$LIBRSVG_CFLAGS"; then
14748    pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS"
14749 elif test -n "$PKG_CONFIG"; then
14750    if test -n "$PKG_CONFIG" && \
14751    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.46.0\""; } >&5
14752  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.46.0") 2>&5
14753  ac_status=$?
14754  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14755  test $ac_status = 0; }; then
14756  pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.46.0" 2>/dev/null`
14757		      test "x$?" != "x0" && pkg_failed=yes
14758else
14759  pkg_failed=yes
14760fi
14761 else
14762    pkg_failed=untried
14763fi
14764if test -n "$LIBRSVG_LIBS"; then
14765    pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS"
14766 elif test -n "$PKG_CONFIG"; then
14767    if test -n "$PKG_CONFIG" && \
14768    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.46.0\""; } >&5
14769  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.46.0") 2>&5
14770  ac_status=$?
14771  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14772  test $ac_status = 0; }; then
14773  pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.46.0" 2>/dev/null`
14774		      test "x$?" != "x0" && pkg_failed=yes
14775else
14776  pkg_failed=yes
14777fi
14778 else
14779    pkg_failed=untried
14780fi
14781
14782
14783
14784if test $pkg_failed = yes; then
14785   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14786printf "%s\n" "no" >&6; }
14787
14788if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14789        _pkg_short_errors_supported=yes
14790else
14791        _pkg_short_errors_supported=no
14792fi
14793        if test $_pkg_short_errors_supported = yes; then
14794	        LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.46.0" 2>&1`
14795        else
14796	        LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.46.0" 2>&1`
14797        fi
14798	# Put the nasty error message in config.log where it belongs
14799	echo "$LIBRSVG_PKG_ERRORS" >&5
14800
14801	:
14802elif test $pkg_failed = untried; then
14803     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14804printf "%s\n" "no" >&6; }
14805	:
14806else
14807	LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS
14808	LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS
14809        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14810printf "%s\n" "yes" >&6; }
14811	have_librsvg="yes (pkg-config)"
14812fi
14813
14814  if test "$have_librsvg" != no; then
14815    FT_DEMO_CFLAGS="$FT_DEMO_CFLAGS $LIBRSVG_CFLAGS -DHAVE_LIBRSVG"
14816    FT_DEMO_LDFLAGS="$FT_DEMO_LDFLAGS $LIBRSVG_LIBS"
14817  fi
14818fi
14819
14820if test x"$with_librsvg" = xyes -a "$have_librsvg" = no; then
14821  as_fn_error $? "librsvg support requested but library not found" "$LINENO" 5
14822fi
14823
14824
14825
14826
14827
14828# Some options handling SDKs/archs in CFLAGS should be copied
14829# to LDFLAGS. Apple TechNote 2137 recommends to include these
14830# options in CFLAGS but not in LDFLAGS.
14831
14832save_config_args=$*
14833set dummy ${CFLAGS}
14834i=1
14835while test $i -le $#
14836do
14837  c=$1
14838
14839  case "${c}" in
14840  -isysroot|-arch) # options taking 1 argument
14841    a=$2
14842    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
14843printf %s "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
14844    if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
14845    then
14846      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14847printf "%s\n" "yes" >&6; }
14848    else
14849      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
14850printf "%s\n" "no, copy to LDFLAGS" >&6; }
14851      LDFLAGS="${LDFLAGS} ${c} ${a}"
14852    fi
14853    shift 1
14854    ;;
14855  -m32|-m64|-march=*|-mcpu=*) # options taking no argument
14856    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c}" >&5
14857printf %s "checking whether CFLAGS and LDFLAGS share ${c}... " >&6; }
14858    if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
14859    then
14860      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14861printf "%s\n" "yes" >&6; }
14862    else
14863      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
14864printf "%s\n" "no, copy to LDFLAGS" >&6; }
14865      LDFLAGS="${LDFLAGS} ${c}"
14866    fi
14867    ;;
14868  # *)
14869  #   AC_MSG_RESULT([${c} is not copied to LDFLAGS])
14870  #   ;;
14871  esac
14872
14873  shift 1
14874done
14875set ${save_config_args}
14876
14877
14878# Whether to use Mac OS resource-based fonts.
14879
14880ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
14881
14882
14883# Check whether --with-old-mac-fonts was given.
14884if test ${with_old_mac_fonts+y}
14885then :
14886  withval=$with_old_mac_fonts;
14887fi
14888
14889if test x$with_old_mac_fonts = xyes; then
14890  orig_LDFLAGS="${LDFLAGS}"
14891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CoreServices & ApplicationServices of Mac OS X" >&5
14892printf %s "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
14893  ft2_extra_libs="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
14894  LDFLAGS="$LDFLAGS $ft2_extra_libs"
14895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896/* end confdefs.h.  */
14897
14898
14899
14900#if defined(__GNUC__) && defined(__APPLE_CC__)
14901# include <CoreServices/CoreServices.h>
14902# include <ApplicationServices/ApplicationServices.h>
14903#else
14904# include <ConditionalMacros.h>
14905# include <Files.h>
14906#endif
14907
14908
14909int
14910main (void)
14911{
14912
14913
14914        short res = 0;
14915
14916
14917        UseResFile( res );
14918
14919
14920  ;
14921  return 0;
14922}
14923_ACEOF
14924if ac_fn_c_try_link "$LINENO"
14925then :
14926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14927printf "%s\n" "ok" >&6; }
14928     ftmac_c='ftmac.c'
14929     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS_INLINE macro is ANSI compatible" >&5
14930printf %s "checking whether OS_INLINE macro is ANSI compatible... " >&6; }
14931     orig_CFLAGS="$CFLAGS -DFT_MACINTOSH"
14932     CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
14933     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14934/* end confdefs.h.  */
14935
14936
14937
14938#if defined(__GNUC__) && defined(__APPLE_CC__)
14939# include <CoreServices/CoreServices.h>
14940# include <ApplicationServices/ApplicationServices.h>
14941#else
14942# include <ConditionalMacros.h>
14943# include <Files.h>
14944#endif
14945
14946
14947int
14948main (void)
14949{
14950
14951
14952           /* OSHostByteOrder() is typed as OS_INLINE */
14953           int32_t  os_byte_order = OSHostByteOrder();
14954
14955
14956           if ( OSBigEndian != os_byte_order )
14957             return 1;
14958
14959
14960  ;
14961  return 0;
14962}
14963_ACEOF
14964if ac_fn_c_try_compile "$LINENO"
14965then :
14966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14967printf "%s\n" "ok" >&6; }
14968        CFLAGS="$orig_CFLAGS"
14969        CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
14970
14971else $as_nop
14972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, ANSI incompatible" >&5
14973printf "%s\n" "no, ANSI incompatible" >&6; }
14974        CFLAGS="$orig_CFLAGS"
14975
14976fi
14977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14978     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type ResourceIndex" >&5
14979printf %s "checking type ResourceIndex... " >&6; }
14980     orig_CFLAGS="$CFLAGS"
14981     CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
14982     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14983/* end confdefs.h.  */
14984
14985
14986
14987#if defined(__GNUC__) && defined(__APPLE_CC__)
14988# include <CoreServices/CoreServices.h>
14989# include <ApplicationServices/ApplicationServices.h>
14990#else
14991# include <ConditionalMacros.h>
14992# include <Files.h>
14993# include <Resources.h>
14994#endif
14995
14996
14997int
14998main (void)
14999{
15000
15001
15002           ResourceIndex i = 0;
15003           return i;
15004
15005
15006  ;
15007  return 0;
15008}
15009_ACEOF
15010if ac_fn_c_try_compile "$LINENO"
15011then :
15012  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15013printf "%s\n" "ok" >&6; }
15014        CFLAGS="$orig_CFLAGS"
15015        CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
15016
15017else $as_nop
15018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15019printf "%s\n" "no" >&6; }
15020        CFLAGS="$orig_CFLAGS"
15021        CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
15022
15023fi
15024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15025else $as_nop
15026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15027printf "%s\n" "not found" >&6; }
15028     ft2_extra_libs=""
15029     LDFLAGS="${orig_LDFLAGS}"
15030     CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
15031fi
15032rm -f core conftest.err conftest.$ac_objext conftest.beam \
15033    conftest$ac_exeext conftest.$ac_ext
15034else
15035  case x$host_os in
15036  xdarwin*)
15037        CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
15038    ;;
15039  *)
15040    ;;
15041  esac
15042fi
15043
15044
15045# Whether to use FileManager, which is deprecated since Mac OS X 10.4.
15046
15047
15048# Check whether --with-fsspec was given.
15049if test ${with_fsspec+y}
15050then :
15051  withval=$with_fsspec;
15052fi
15053
15054if test x$with_fsspec = xno; then
15055  CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
15056elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
15057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FSSpec-based FileManager" >&5
15058printf %s "checking FSSpec-based FileManager... " >&6; }
15059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060/* end confdefs.h.  */
15061
15062
15063
15064#if defined(__GNUC__) && defined(__APPLE_CC__)
15065# include <CoreServices/CoreServices.h>
15066# include <ApplicationServices/ApplicationServices.h>
15067#else
15068# include <ConditionalMacros.h>
15069# include <Files.h>
15070#endif
15071
15072
15073int
15074main (void)
15075{
15076
15077
15078        FCBPBPtr          paramBlock;
15079        short             vRefNum;
15080        long              dirID;
15081        ConstStr255Param  fileName;
15082        FSSpec*           spec;
15083
15084
15085        /* FSSpec functions: deprecated since Mac OS X 10.4 */
15086        PBGetFCBInfoSync( paramBlock );
15087        FSMakeFSSpec( vRefNum, dirID, fileName, spec );
15088
15089
15090  ;
15091  return 0;
15092}
15093_ACEOF
15094if ac_fn_c_try_link "$LINENO"
15095then :
15096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15097printf "%s\n" "ok" >&6; }
15098     CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
15099else $as_nop
15100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15101printf "%s\n" "not found" >&6; }
15102     CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
15103fi
15104rm -f core conftest.err conftest.$ac_objext conftest.beam \
15105    conftest$ac_exeext conftest.$ac_ext
15106fi
15107
15108
15109# Whether to use FileManager in Carbon since MacOS 9.x.
15110
15111
15112# Check whether --with-fsref was given.
15113if test ${with_fsref+y}
15114then :
15115  withval=$with_fsref;
15116fi
15117
15118if test x$with_fsref = xno; then
15119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15120*** WARNING
15121    FreeType2 built without FSRef API cannot load
15122    data-fork fonts on MacOS, except of XXX.dfont.
15123    " >&5
15124printf "%s\n" "$as_me: WARNING:
15125*** WARNING
15126    FreeType2 built without FSRef API cannot load
15127    data-fork fonts on MacOS, except of XXX.dfont.
15128    " >&2;}
15129  CFLAGS="$CFLAGS -DHAVE_FSREF=0"
15130elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
15131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FSRef-based FileManager" >&5
15132printf %s "checking FSRef-based FileManager... " >&6; }
15133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134/* end confdefs.h.  */
15135
15136
15137
15138#if defined(__GNUC__) && defined(__APPLE_CC__)
15139# include <CoreServices/CoreServices.h>
15140# include <ApplicationServices/ApplicationServices.h>
15141#else
15142# include <ConditionalMacros.h>
15143# include <Files.h>
15144#endif
15145
15146
15147int
15148main (void)
15149{
15150
15151
15152        short                vRefNum;
15153        long                 dirID;
15154        ConstStr255Param     fileName;
15155
15156        Boolean*             isDirectory;
15157        UInt8*               path;
15158        SInt16               desiredRefNum;
15159        SInt16*              iterator;
15160        SInt16*              actualRefNum;
15161        HFSUniStr255*        outForkName;
15162        FSVolumeRefNum       volume;
15163        FSCatalogInfoBitmap  whichInfo;
15164        FSCatalogInfo*       catalogInfo;
15165        FSForkInfo*          forkInfo;
15166        FSRef*               ref;
15167
15168#if HAVE_FSSPEC
15169        FSSpec*              spec;
15170#endif
15171
15172        /* FSRef functions: no need to check? */
15173        FSGetForkCBInfo( desiredRefNum, volume, iterator,
15174                         actualRefNum, forkInfo, ref,
15175                         outForkName );
15176        FSPathMakeRef( path, ref, isDirectory );
15177
15178#if HAVE_FSSPEC
15179        FSpMakeFSRef ( spec, ref );
15180        FSGetCatalogInfo( ref, whichInfo, catalogInfo,
15181                          outForkName, spec, ref );
15182#endif
15183
15184  ;
15185  return 0;
15186}
15187_ACEOF
15188if ac_fn_c_try_link "$LINENO"
15189then :
15190  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15191printf "%s\n" "ok" >&6; }
15192     CFLAGS="$CFLAGS -DHAVE_FSREF=1"
15193else $as_nop
15194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15195printf "%s\n" "not found" >&6; }
15196     CFLAGS="$CFLAGS -DHAVE_FSREF=0"
15197fi
15198rm -f core conftest.err conftest.$ac_objext conftest.beam \
15199    conftest$ac_exeext conftest.$ac_ext
15200fi
15201
15202
15203# Whether to use QuickDraw API in ToolBox, which is deprecated since
15204# Mac OS X 10.4.
15205
15206
15207# Check whether --with-quickdraw-toolbox was given.
15208if test ${with_quickdraw_toolbox+y}
15209then :
15210  withval=$with_quickdraw_toolbox;
15211fi
15212
15213if test x$with_quickdraw_toolbox = xno; then
15214  CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
15215elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
15216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in ToolBox" >&5
15217printf %s "checking QuickDraw FontManager functions in ToolBox... " >&6; }
15218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15219/* end confdefs.h.  */
15220
15221
15222
15223#if defined(__GNUC__) && defined(__APPLE_CC__)
15224# include <CoreServices/CoreServices.h>
15225# include <ApplicationServices/ApplicationServices.h>
15226#else
15227# include <ConditionalMacros.h>
15228# include <Fonts.h>
15229#endif
15230
15231
15232int
15233main (void)
15234{
15235
15236
15237        Str255     familyName;
15238        SInt16     familyID   = 0;
15239        FMInput*   fmIn       = NULL;
15240        FMOutput*  fmOut      = NULL;
15241
15242
15243        GetFontName( familyID, familyName );
15244        GetFNum( familyName, &familyID );
15245        fmOut = FMSwapFont( fmIn );
15246
15247
15248  ;
15249  return 0;
15250}
15251_ACEOF
15252if ac_fn_c_try_link "$LINENO"
15253then :
15254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15255printf "%s\n" "ok" >&6; }
15256     CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
15257else $as_nop
15258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15259printf "%s\n" "not found" >&6; }
15260     CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
15261fi
15262rm -f core conftest.err conftest.$ac_objext conftest.beam \
15263    conftest$ac_exeext conftest.$ac_ext
15264fi
15265
15266
15267# Whether to use QuickDraw API in Carbon, which is deprecated since
15268# Mac OS X 10.4.
15269
15270
15271# Check whether --with-quickdraw-carbon was given.
15272if test ${with_quickdraw_carbon+y}
15273then :
15274  withval=$with_quickdraw_carbon;
15275fi
15276
15277if test x$with_quickdraw_carbon = xno; then
15278  CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
15279elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
15280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in Carbon" >&5
15281printf %s "checking QuickDraw FontManager functions in Carbon... " >&6; }
15282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283/* end confdefs.h.  */
15284
15285
15286
15287#if defined(__GNUC__) && defined(__APPLE_CC__)
15288# include <CoreServices/CoreServices.h>
15289# include <ApplicationServices/ApplicationServices.h>
15290#else
15291# include <ConditionalMacros.h>
15292# include <Fonts.h>
15293#endif
15294
15295
15296int
15297main (void)
15298{
15299
15300
15301        FMFontFamilyIterator          famIter;
15302        FMFontFamily                  family;
15303        Str255                        famNameStr;
15304        FMFontFamilyInstanceIterator  instIter;
15305        FMFontStyle                   style;
15306        FMFontSize                    size;
15307        FMFont                        font;
15308        FSSpec*                       pathSpec;
15309
15310
15311        FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
15312                                    &famIter );
15313        FMGetNextFontFamily( &famIter, &family );
15314        FMGetFontFamilyName( family, famNameStr );
15315        FMCreateFontFamilyInstanceIterator( family, &instIter );
15316        FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
15317        FMDisposeFontFamilyInstanceIterator( &instIter );
15318        FMDisposeFontFamilyIterator( &famIter );
15319        FMGetFontContainer( font, pathSpec );
15320
15321
15322  ;
15323  return 0;
15324}
15325_ACEOF
15326if ac_fn_c_try_link "$LINENO"
15327then :
15328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15329printf "%s\n" "ok" >&6; }
15330     CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
15331else $as_nop
15332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15333printf "%s\n" "not found" >&6; }
15334     CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
15335fi
15336rm -f core conftest.err conftest.$ac_objext conftest.beam \
15337    conftest$ac_exeext conftest.$ac_ext
15338fi
15339
15340
15341# Whether to use AppleTypeService since Mac OS X.
15342
15343
15344# Check whether --with-ats was given.
15345if test ${with_ats+y}
15346then :
15347  withval=$with_ats;
15348fi
15349
15350if test x$with_ats = xno; then
15351  CFLAGS="$CFLAGS -DHAVE_ATS=0"
15352elif test x$with_old_mac_fonts = xyes -a x$with_ats != x; then
15353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking AppleTypeService functions" >&5
15354printf %s "checking AppleTypeService functions... " >&6; }
15355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356/* end confdefs.h.  */
15357
15358
15359
15360#if defined(__GNUC__) && defined(__APPLE_CC__)
15361# include <CoreServices/CoreServices.h>
15362# include <ApplicationServices/ApplicationServices.h>
15363#else
15364# include <ConditionalMacros.h>
15365# include <Files.h>
15366#endif
15367
15368
15369int
15370main (void)
15371{
15372
15373
15374        FSSpec*  pathSpec;
15375
15376
15377        ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
15378#if HAVE_FSSPEC
15379        ATSFontGetFileSpecification( 0, pathSpec );
15380#endif
15381
15382
15383  ;
15384  return 0;
15385}
15386_ACEOF
15387if ac_fn_c_try_link "$LINENO"
15388then :
15389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15390printf "%s\n" "ok" >&6; }
15391     CFLAGS="$CFLAGS -DHAVE_ATS=1"
15392else $as_nop
15393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15394printf "%s\n" "not found" >&6; }
15395     CFLAGS="$CFLAGS -DHAVE_ATS=0"
15396fi
15397rm -f core conftest.err conftest.$ac_objext conftest.beam \
15398    conftest$ac_exeext conftest.$ac_ext
15399fi
15400
15401case "$CFLAGS" in
15402  *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
15403    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15404*** WARNING
15405    FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
15406    thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
15407    " >&5
15408printf "%s\n" "$as_me: WARNING:
15409*** WARNING
15410    FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
15411    thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
15412    " >&2;}
15413    CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
15414    ;;
15415  *)
15416    ;;
15417esac
15418
15419# Check for pthreads
15420
15421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15422printf %s "checking target system type... " >&6; }
15423if test ${ac_cv_target+y}
15424then :
15425  printf %s "(cached) " >&6
15426else $as_nop
15427  if test "x$target_alias" = x; then
15428  ac_cv_target=$ac_cv_host
15429else
15430  ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
15431    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
15432fi
15433
15434fi
15435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15436printf "%s\n" "$ac_cv_target" >&6; }
15437case $ac_cv_target in
15438*-*-*) ;;
15439*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15440esac
15441target=$ac_cv_target
15442ac_save_IFS=$IFS; IFS='-'
15443set x $ac_cv_target
15444shift
15445target_cpu=$1
15446target_vendor=$2
15447shift; shift
15448# Remember, the first character of IFS is used to create $*,
15449# except with old shells:
15450target_os=$*
15451IFS=$ac_save_IFS
15452case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15453
15454
15455# The aliases save the names the user supplied, while $host etc.
15456# will get canonicalized.
15457test -n "$target_alias" &&
15458  test "$program_prefix$program_suffix$program_transform_name" = \
15459    NONENONEs,x,x, &&
15460  program_prefix=${target_alias}-
15461
15462
15463
15464
15465
15466ac_ext=c
15467ac_cpp='$CPP $CPPFLAGS'
15468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15470ac_compiler_gnu=$ac_cv_c_compiler_gnu
15471
15472ax_pthread_ok=no
15473
15474# We used to check for pthread.h first, but this fails if pthread.h
15475# requires special compiler flags (e.g. on Tru64 or Sequent).
15476# It gets checked for in the link test anyway.
15477
15478# First of all, check if the user has set any of the PTHREAD_LIBS,
15479# etcetera environment variables, and if threads linking works using
15480# them:
15481if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15482        ax_pthread_save_CC="$CC"
15483        ax_pthread_save_CFLAGS="$CFLAGS"
15484        ax_pthread_save_LIBS="$LIBS"
15485        if test "x$PTHREAD_CC" != "x"
15486then :
15487  CC="$PTHREAD_CC"
15488fi
15489        if test "x$PTHREAD_CXX" != "x"
15490then :
15491  CXX="$PTHREAD_CXX"
15492fi
15493        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15494        LIBS="$PTHREAD_LIBS $LIBS"
15495        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15496printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15497        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498/* end confdefs.h.  */
15499
15500/* Override any GCC internal prototype to avoid an error.
15501   Use char because int might match the return type of a GCC
15502   builtin and then its argument prototype would still apply.  */
15503char pthread_join ();
15504int
15505main (void)
15506{
15507return pthread_join ();
15508  ;
15509  return 0;
15510}
15511_ACEOF
15512if ac_fn_c_try_link "$LINENO"
15513then :
15514  ax_pthread_ok=yes
15515fi
15516rm -f core conftest.err conftest.$ac_objext conftest.beam \
15517    conftest$ac_exeext conftest.$ac_ext
15518        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15519printf "%s\n" "$ax_pthread_ok" >&6; }
15520        if test "x$ax_pthread_ok" = "xno"; then
15521                PTHREAD_LIBS=""
15522                PTHREAD_CFLAGS=""
15523        fi
15524        CC="$ax_pthread_save_CC"
15525        CFLAGS="$ax_pthread_save_CFLAGS"
15526        LIBS="$ax_pthread_save_LIBS"
15527fi
15528
15529# We must check for the threads library under a number of different
15530# names; the ordering is very important because some systems
15531# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15532# libraries is broken (non-POSIX).
15533
15534# Create a list of thread flags to try. Items with a "," contain both
15535# C compiler flags (before ",") and linker flags (after ","). Other items
15536# starting with a "-" are C compiler flags, and remaining items are
15537# library names, except for "none" which indicates that we try without
15538# any flags at all, and "pthread-config" which is a program returning
15539# the flags for the Pth emulation library.
15540
15541ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15542
15543# The ordering *is* (sometimes) important.  Some notes on the
15544# individual items follow:
15545
15546# pthreads: AIX (must check this before -lpthread)
15547# none: in case threads are in libc; should be tried before -Kthread and
15548#       other compiler flags to prevent continual compiler warnings
15549# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15550# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15551#           (Note: HP C rejects this with "bad form for `-t' option")
15552# -pthreads: Solaris/gcc (Note: HP C also rejects)
15553# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15554#      doesn't hurt to check since this sometimes defines pthreads and
15555#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
15556#      is present but should not be used directly; and before -mthreads,
15557#      because the compiler interprets this as "-mt" + "-hreads")
15558# -mthreads: Mingw32/gcc, Lynx/gcc
15559# pthread: Linux, etcetera
15560# --thread-safe: KAI C++
15561# pthread-config: use pthread-config program (for GNU Pth library)
15562
15563case $target_os in
15564
15565        freebsd*)
15566
15567        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15568        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15569
15570        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15571        ;;
15572
15573        hpux*)
15574
15575        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15576        # multi-threading and also sets -lpthread."
15577
15578        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15579        ;;
15580
15581        openedition*)
15582
15583        # IBM z/OS requires a feature-test macro to be defined in order to
15584        # enable POSIX threads at all, so give the user a hint if this is
15585        # not set. (We don't define these ourselves, as they can affect
15586        # other portions of the system API in unpredictable ways.)
15587
15588        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15589/* end confdefs.h.  */
15590
15591#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15592             AX_PTHREAD_ZOS_MISSING
15593#            endif
15594
15595_ACEOF
15596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15597  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
15598then :
15599  { 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
15600printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15601fi
15602rm -rf conftest*
15603
15604        ;;
15605
15606        solaris*)
15607
15608        # On Solaris (at least, for some versions), libc contains stubbed
15609        # (non-functional) versions of the pthreads routines, so link-based
15610        # tests will erroneously succeed. (N.B.: The stubs are missing
15611        # pthread_cleanup_push, or rather a function called by this macro,
15612        # so we could check for that, but who knows whether they'll stub
15613        # that too in a future libc.)  So we'll check first for the
15614        # standard Solaris way of linking pthreads (-mt -lpthread).
15615
15616        ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
15617        ;;
15618esac
15619
15620# Are we compiling with Clang?
15621
15622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15623printf %s "checking whether $CC is Clang... " >&6; }
15624if test ${ax_cv_PTHREAD_CLANG+y}
15625then :
15626  printf %s "(cached) " >&6
15627else $as_nop
15628  ax_cv_PTHREAD_CLANG=no
15629     # Note that Autoconf sets GCC=yes for Clang as well as GCC
15630     if test "x$GCC" = "xyes"; then
15631        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632/* end confdefs.h.  */
15633/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15634#            if defined(__clang__) && defined(__llvm__)
15635             AX_PTHREAD_CC_IS_CLANG
15636#            endif
15637
15638_ACEOF
15639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15640  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
15641then :
15642  ax_cv_PTHREAD_CLANG=yes
15643fi
15644rm -rf conftest*
15645
15646     fi
15647
15648fi
15649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15650printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
15651ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15652
15653
15654# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15655
15656# Note that for GCC and Clang -pthread generally implies -lpthread,
15657# except when -nostdlib is passed.
15658# This is problematic using libtool to build C++ shared libraries with pthread:
15659# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
15660# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
15661# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
15662# To solve this, first try -pthread together with -lpthread for GCC
15663
15664if test "x$GCC" = "xyes"
15665then :
15666  ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
15667fi
15668
15669# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
15670
15671if test "x$ax_pthread_clang" = "xyes"
15672then :
15673  ax_pthread_flags="-pthread,-lpthread -pthread"
15674fi
15675
15676
15677# The presence of a feature test macro requesting re-entrant function
15678# definitions is, on some systems, a strong hint that pthreads support is
15679# correctly enabled
15680
15681case $target_os in
15682        darwin* | hpux* | linux* | osf* | solaris*)
15683        ax_pthread_check_macro="_REENTRANT"
15684        ;;
15685
15686        aix*)
15687        ax_pthread_check_macro="_THREAD_SAFE"
15688        ;;
15689
15690        *)
15691        ax_pthread_check_macro="--"
15692        ;;
15693esac
15694if test "x$ax_pthread_check_macro" = "x--"
15695then :
15696  ax_pthread_check_cond=0
15697else $as_nop
15698  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
15699fi
15700
15701
15702if test "x$ax_pthread_ok" = "xno"; then
15703for ax_pthread_try_flag in $ax_pthread_flags; do
15704
15705        case $ax_pthread_try_flag in
15706                none)
15707                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15708printf %s "checking whether pthreads work without any flags... " >&6; }
15709                ;;
15710
15711                *,*)
15712                PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
15713                PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
15714                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
15715printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
15716                ;;
15717
15718                -*)
15719                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
15720printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
15721                PTHREAD_CFLAGS="$ax_pthread_try_flag"
15722                ;;
15723
15724                pthread-config)
15725                # Extract the first word of "pthread-config", so it can be a program name with args.
15726set dummy pthread-config; ac_word=$2
15727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15728printf %s "checking for $ac_word... " >&6; }
15729if test ${ac_cv_prog_ax_pthread_config+y}
15730then :
15731  printf %s "(cached) " >&6
15732else $as_nop
15733  if test -n "$ax_pthread_config"; then
15734  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15735else
15736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15737for as_dir in $PATH
15738do
15739  IFS=$as_save_IFS
15740  case $as_dir in #(((
15741    '') as_dir=./ ;;
15742    */) ;;
15743    *) as_dir=$as_dir/ ;;
15744  esac
15745    for ac_exec_ext in '' $ac_executable_extensions; do
15746  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15747    ac_cv_prog_ax_pthread_config="yes"
15748    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15749    break 2
15750  fi
15751done
15752  done
15753IFS=$as_save_IFS
15754
15755  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15756fi
15757fi
15758ax_pthread_config=$ac_cv_prog_ax_pthread_config
15759if test -n "$ax_pthread_config"; then
15760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15761printf "%s\n" "$ax_pthread_config" >&6; }
15762else
15763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15764printf "%s\n" "no" >&6; }
15765fi
15766
15767
15768                if test "x$ax_pthread_config" = "xno"
15769then :
15770  continue
15771fi
15772                PTHREAD_CFLAGS="`pthread-config --cflags`"
15773                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15774                ;;
15775
15776                *)
15777                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
15778printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
15779                PTHREAD_LIBS="-l$ax_pthread_try_flag"
15780                ;;
15781        esac
15782
15783        ax_pthread_save_CFLAGS="$CFLAGS"
15784        ax_pthread_save_LIBS="$LIBS"
15785        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15786        LIBS="$PTHREAD_LIBS $LIBS"
15787
15788        # Check for various functions.  We must include pthread.h,
15789        # since some functions may be macros.  (On the Sequent, we
15790        # need a special flag -Kthread to make this header compile.)
15791        # We check for pthread_join because it is in -lpthread on IRIX
15792        # while pthread_create is in libc.  We check for pthread_attr_init
15793        # due to DEC craziness with -lpthreads.  We check for
15794        # pthread_cleanup_push because it is one of the few pthread
15795        # functions on Solaris that doesn't have a non-functional libc stub.
15796        # We try pthread_create on general principles.
15797
15798        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799/* end confdefs.h.  */
15800#include <pthread.h>
15801#                       if $ax_pthread_check_cond
15802#                        error "$ax_pthread_check_macro must be defined"
15803#                       endif
15804                        static void *some_global = NULL;
15805                        static void routine(void *a)
15806                          {
15807                             /* To avoid any unused-parameter or
15808                                unused-but-set-parameter warning.  */
15809                             some_global = a;
15810                          }
15811                        static void *start_routine(void *a) { return a; }
15812int
15813main (void)
15814{
15815pthread_t th; pthread_attr_t attr;
15816                        pthread_create(&th, 0, start_routine, 0);
15817                        pthread_join(th, 0);
15818                        pthread_attr_init(&attr);
15819                        pthread_cleanup_push(routine, 0);
15820                        pthread_cleanup_pop(0) /* ; */
15821  ;
15822  return 0;
15823}
15824_ACEOF
15825if ac_fn_c_try_link "$LINENO"
15826then :
15827  ax_pthread_ok=yes
15828fi
15829rm -f core conftest.err conftest.$ac_objext conftest.beam \
15830    conftest$ac_exeext conftest.$ac_ext
15831
15832        CFLAGS="$ax_pthread_save_CFLAGS"
15833        LIBS="$ax_pthread_save_LIBS"
15834
15835        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15836printf "%s\n" "$ax_pthread_ok" >&6; }
15837        if test "x$ax_pthread_ok" = "xyes"
15838then :
15839  break
15840fi
15841
15842        PTHREAD_LIBS=""
15843        PTHREAD_CFLAGS=""
15844done
15845fi
15846
15847
15848# Clang needs special handling, because older versions handle the -pthread
15849# option in a rather... idiosyncratic way
15850
15851if test "x$ax_pthread_clang" = "xyes"; then
15852
15853        # Clang takes -pthread; it has never supported any other flag
15854
15855        # (Note 1: This will need to be revisited if a system that Clang
15856        # supports has POSIX threads in a separate library.  This tends not
15857        # to be the way of modern systems, but it's conceivable.)
15858
15859        # (Note 2: On some systems, notably Darwin, -pthread is not needed
15860        # to get POSIX threads support; the API is always present and
15861        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
15862        # -pthread does define _REENTRANT, and while the Darwin headers
15863        # ignore this macro, third-party headers might not.)
15864
15865        # However, older versions of Clang make a point of warning the user
15866        # that, in an invocation where only linking and no compilation is
15867        # taking place, the -pthread option has no effect ("argument unused
15868        # during compilation").  They expect -pthread to be passed in only
15869        # when source code is being compiled.
15870        #
15871        # Problem is, this is at odds with the way Automake and most other
15872        # C build frameworks function, which is that the same flags used in
15873        # compilation (CFLAGS) are also used in linking.  Many systems
15874        # supported by AX_PTHREAD require exactly this for POSIX threads
15875        # support, and in fact it is often not straightforward to specify a
15876        # flag that is used only in the compilation phase and not in
15877        # linking.  Such a scenario is extremely rare in practice.
15878        #
15879        # Even though use of the -pthread flag in linking would only print
15880        # a warning, this can be a nuisance for well-run software projects
15881        # that build with -Werror.  So if the active version of Clang has
15882        # this misfeature, we search for an option to squash it.
15883
15884        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
15885printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
15886if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
15887then :
15888  printf %s "(cached) " >&6
15889else $as_nop
15890  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
15891             # Create an alternate version of $ac_link that compiles and
15892             # links in two steps (.c -> .o, .o -> exe) instead of one
15893             # (.c -> exe), because the warning occurs only in the second
15894             # step
15895             ax_pthread_save_ac_link="$ac_link"
15896             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
15897             ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
15898             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
15899             ax_pthread_save_CFLAGS="$CFLAGS"
15900             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
15901                if test "x$ax_pthread_try" = "xunknown"
15902then :
15903  break
15904fi
15905                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
15906                ac_link="$ax_pthread_save_ac_link"
15907                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908/* end confdefs.h.  */
15909int main(void){return 0;}
15910_ACEOF
15911if ac_fn_c_try_link "$LINENO"
15912then :
15913  ac_link="$ax_pthread_2step_ac_link"
15914                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915/* end confdefs.h.  */
15916int main(void){return 0;}
15917_ACEOF
15918if ac_fn_c_try_link "$LINENO"
15919then :
15920  break
15921fi
15922rm -f core conftest.err conftest.$ac_objext conftest.beam \
15923    conftest$ac_exeext conftest.$ac_ext
15924
15925fi
15926rm -f core conftest.err conftest.$ac_objext conftest.beam \
15927    conftest$ac_exeext conftest.$ac_ext
15928             done
15929             ac_link="$ax_pthread_save_ac_link"
15930             CFLAGS="$ax_pthread_save_CFLAGS"
15931             if test "x$ax_pthread_try" = "x"
15932then :
15933  ax_pthread_try=no
15934fi
15935             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
15936
15937fi
15938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
15939printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
15940
15941        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
15942                no | unknown) ;;
15943                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
15944        esac
15945
15946fi # $ax_pthread_clang = yes
15947
15948
15949
15950# Various other checks:
15951if test "x$ax_pthread_ok" = "xyes"; then
15952        ax_pthread_save_CFLAGS="$CFLAGS"
15953        ax_pthread_save_LIBS="$LIBS"
15954        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15955        LIBS="$PTHREAD_LIBS $LIBS"
15956
15957        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15958        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15959printf %s "checking for joinable pthread attribute... " >&6; }
15960if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
15961then :
15962  printf %s "(cached) " >&6
15963else $as_nop
15964  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
15965             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15966                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15967/* end confdefs.h.  */
15968#include <pthread.h>
15969int
15970main (void)
15971{
15972int attr = $ax_pthread_attr; return attr /* ; */
15973  ;
15974  return 0;
15975}
15976_ACEOF
15977if ac_fn_c_try_link "$LINENO"
15978then :
15979  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
15980fi
15981rm -f core conftest.err conftest.$ac_objext conftest.beam \
15982    conftest$ac_exeext conftest.$ac_ext
15983             done
15984
15985fi
15986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
15987printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
15988        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
15989               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
15990               test "x$ax_pthread_joinable_attr_defined" != "xyes"
15991then :
15992
15993printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
15994
15995               ax_pthread_joinable_attr_defined=yes
15996
15997fi
15998
15999        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
16000printf %s "checking whether more special flags are required for pthreads... " >&6; }
16001if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
16002then :
16003  printf %s "(cached) " >&6
16004else $as_nop
16005  ax_cv_PTHREAD_SPECIAL_FLAGS=no
16006             case $target_os in
16007             solaris*)
16008             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
16009             ;;
16010             esac
16011
16012fi
16013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
16014printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
16015        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
16016               test "x$ax_pthread_special_flags_added" != "xyes"
16017then :
16018  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
16019               ax_pthread_special_flags_added=yes
16020fi
16021
16022        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16023printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16024if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
16025then :
16026  printf %s "(cached) " >&6
16027else $as_nop
16028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029/* end confdefs.h.  */
16030#include <pthread.h>
16031int
16032main (void)
16033{
16034int i = PTHREAD_PRIO_INHERIT;
16035                                               return i;
16036  ;
16037  return 0;
16038}
16039_ACEOF
16040if ac_fn_c_try_link "$LINENO"
16041then :
16042  ax_cv_PTHREAD_PRIO_INHERIT=yes
16043else $as_nop
16044  ax_cv_PTHREAD_PRIO_INHERIT=no
16045fi
16046rm -f core conftest.err conftest.$ac_objext conftest.beam \
16047    conftest$ac_exeext conftest.$ac_ext
16048
16049fi
16050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16051printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16052        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
16053               test "x$ax_pthread_prio_inherit_defined" != "xyes"
16054then :
16055
16056printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16057
16058               ax_pthread_prio_inherit_defined=yes
16059
16060fi
16061
16062        CFLAGS="$ax_pthread_save_CFLAGS"
16063        LIBS="$ax_pthread_save_LIBS"
16064
16065        # More AIX lossage: compile with *_r variant
16066        if test "x$GCC" != "xyes"; then
16067            case $target_os in
16068                aix*)
16069                case "x/$CC" in #(
16070  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16071    #handle absolute path differently from PATH based program lookup
16072                     case "x$CC" in #(
16073  x/*) :
16074
16075			   if as_fn_executable_p ${CC}_r
16076then :
16077  PTHREAD_CC="${CC}_r"
16078fi
16079			   if test "x${CXX}" != "x"
16080then :
16081  if as_fn_executable_p ${CXX}_r
16082then :
16083  PTHREAD_CXX="${CXX}_r"
16084fi
16085fi
16086			  ;; #(
16087  *) :
16088
16089			   for ac_prog in ${CC}_r
16090do
16091  # Extract the first word of "$ac_prog", so it can be a program name with args.
16092set dummy $ac_prog; ac_word=$2
16093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16094printf %s "checking for $ac_word... " >&6; }
16095if test ${ac_cv_prog_PTHREAD_CC+y}
16096then :
16097  printf %s "(cached) " >&6
16098else $as_nop
16099  if test -n "$PTHREAD_CC"; then
16100  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16101else
16102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16103for as_dir in $PATH
16104do
16105  IFS=$as_save_IFS
16106  case $as_dir in #(((
16107    '') as_dir=./ ;;
16108    */) ;;
16109    *) as_dir=$as_dir/ ;;
16110  esac
16111    for ac_exec_ext in '' $ac_executable_extensions; do
16112  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16113    ac_cv_prog_PTHREAD_CC="$ac_prog"
16114    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16115    break 2
16116  fi
16117done
16118  done
16119IFS=$as_save_IFS
16120
16121fi
16122fi
16123PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16124if test -n "$PTHREAD_CC"; then
16125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16126printf "%s\n" "$PTHREAD_CC" >&6; }
16127else
16128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16129printf "%s\n" "no" >&6; }
16130fi
16131
16132
16133  test -n "$PTHREAD_CC" && break
16134done
16135test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16136
16137			   if test "x${CXX}" != "x"
16138then :
16139  for ac_prog in ${CXX}_r
16140do
16141  # Extract the first word of "$ac_prog", so it can be a program name with args.
16142set dummy $ac_prog; ac_word=$2
16143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16144printf %s "checking for $ac_word... " >&6; }
16145if test ${ac_cv_prog_PTHREAD_CXX+y}
16146then :
16147  printf %s "(cached) " >&6
16148else $as_nop
16149  if test -n "$PTHREAD_CXX"; then
16150  ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
16151else
16152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16153for as_dir in $PATH
16154do
16155  IFS=$as_save_IFS
16156  case $as_dir in #(((
16157    '') as_dir=./ ;;
16158    */) ;;
16159    *) as_dir=$as_dir/ ;;
16160  esac
16161    for ac_exec_ext in '' $ac_executable_extensions; do
16162  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16163    ac_cv_prog_PTHREAD_CXX="$ac_prog"
16164    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16165    break 2
16166  fi
16167done
16168  done
16169IFS=$as_save_IFS
16170
16171fi
16172fi
16173PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
16174if test -n "$PTHREAD_CXX"; then
16175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
16176printf "%s\n" "$PTHREAD_CXX" >&6; }
16177else
16178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16179printf "%s\n" "no" >&6; }
16180fi
16181
16182
16183  test -n "$PTHREAD_CXX" && break
16184done
16185test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
16186
16187fi
16188
16189                      ;;
16190esac
16191                     ;; #(
16192  *) :
16193     ;;
16194esac
16195                ;;
16196            esac
16197        fi
16198fi
16199
16200test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16201test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
16202
16203
16204
16205
16206
16207
16208# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16209if test "x$ax_pthread_ok" = "xyes"; then
16210        have_pthread=yes
16211        :
16212else
16213        ax_pthread_ok=no
16214        have_pthread=no
16215fi
16216ac_ext=c
16217ac_cpp='$CPP $CPPFLAGS'
16218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16220ac_compiler_gnu=$ac_cv_c_compiler_gnu
16221
16222
16223
16224# Check for Python and docwriter
16225
16226have_py3=no
16227have_docwriter=no
16228PIP=pip
16229
16230for ac_prog in python3 python
16231do
16232  # Extract the first word of "$ac_prog", so it can be a program name with args.
16233set dummy $ac_prog; ac_word=$2
16234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16235printf %s "checking for $ac_word... " >&6; }
16236if test ${ac_cv_prog_PYTHON+y}
16237then :
16238  printf %s "(cached) " >&6
16239else $as_nop
16240  if test -n "$PYTHON"; then
16241  ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
16242else
16243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16244for as_dir in $PATH
16245do
16246  IFS=$as_save_IFS
16247  case $as_dir in #(((
16248    '') as_dir=./ ;;
16249    */) ;;
16250    *) as_dir=$as_dir/ ;;
16251  esac
16252    for ac_exec_ext in '' $ac_executable_extensions; do
16253  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16254    ac_cv_prog_PYTHON="$ac_prog"
16255    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16256    break 2
16257  fi
16258done
16259  done
16260IFS=$as_save_IFS
16261
16262fi
16263fi
16264PYTHON=$ac_cv_prog_PYTHON
16265if test -n "$PYTHON"; then
16266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16267printf "%s\n" "$PYTHON" >&6; }
16268else
16269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16270printf "%s\n" "no" >&6; }
16271fi
16272
16273
16274  test -n "$PYTHON" && break
16275done
16276test -n "$PYTHON" || PYTHON="missing"
16277
16278if test "x$PYTHON" != "xmissing"; then
16279
16280
16281
16282
16283    if test -n "$PYTHON"
16284then :
16285
16286        ax_python_version="3.5"
16287
16288        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python version" >&5
16289printf %s "checking for python version... " >&6; }
16290
16291        python_version=`$PYTHON -V 2>&1 | $GREP "^Python " | $SED -e 's/^.* \([0-9]*\.[0-9]*\.[0-9]*\)/\1/'`
16292
16293        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $python_version" >&5
16294printf "%s\n" "$python_version" >&6; }
16295
16296	PYTHON_VERSION=$python_version
16297
16298
16299
16300
16301
16302  # Used to indicate true or false condition
16303  ax_compare_version=false
16304
16305  # Convert the two version strings to be compared into a format that
16306  # allows a simple string comparison.  The end result is that a version
16307  # string of the form 1.12.5-r617 will be converted to the form
16308  # 0001001200050617.  In other words, each number is zero padded to four
16309  # digits, and non digits are removed.
16310
16311  ax_compare_version_A=`echo "$ax_python_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16312                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16313                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16314                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16315                     -e 's/[^0-9]//g'`
16316
16317
16318  ax_compare_version_B=`echo "$python_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16319                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16320                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16321                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16322                     -e 's/[^0-9]//g'`
16323
16324
16325    ax_compare_version=`echo "x$ax_compare_version_A
16326x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
16327
16328
16329
16330    if test "$ax_compare_version" = "true" ; then
16331
16332	    :
16333            have_py3=yes
16334
16335    else
16336	    :
16337
16338
16339  fi
16340
16341
16342else $as_nop
16343
16344        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find the python interpreter" >&5
16345printf "%s\n" "$as_me: WARNING: could not find the python interpreter" >&2;}
16346
16347
16348fi
16349
16350
16351  if test "x$have_py3" = "xyes"; then
16352    PIP="$PYTHON -m $PIP"
16353    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \`docwriter' Python module" >&5
16354printf %s "checking for \`docwriter' Python module... " >&6; }
16355    $PYTHON -m docwriter -h > /dev/null 2>&1
16356    if test "x$?" = "x0"; then
16357      have_docwriter=yes
16358      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16359printf "%s\n" "yes" >&6; }
16360    else
16361      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16362printf "%s\n" "no" >&6; }
16363    fi
16364  fi
16365fi
16366
16367
16368# entries in Requires.private are separated by commas
16369PKGCONFIG_REQUIRES_PRIVATE="$zlib_reqpriv,     \
16370                            $bzip2_reqpriv,    \
16371                            $libpng_reqpriv,   \
16372                            $harfbuzz_reqpriv, \
16373                            $brotli_reqpriv"
16374# beautify
16375PKGCONFIG_REQUIRES_PRIVATE=`echo "$PKGCONFIG_REQUIRES_PRIVATE" \
16376                            | sed -e 's/^  *//'      \
16377                                  -e 's/  *$//'      \
16378                                  -e 's/, */,/g'     \
16379                                  -e 's/,,*/,/g'     \
16380                                  -e 's/^,*//'       \
16381                                  -e 's/,*$//'       \
16382                                  -e 's/,/, /g'`
16383
16384PKGCONFIG_LIBS_PRIVATE="$zlib_libspriv     \
16385                        $bzip2_libspriv    \
16386                        $libpng_libspriv   \
16387                        $harfbuzz_libspriv \
16388                        $brotli_libspriv   \
16389                        $ft2_extra_libs"
16390# beautify
16391PKGCONFIG_LIBS_PRIVATE=`echo "$PKGCONFIG_LIBS_PRIVATE"  \
16392                        | sed -e 's/^  *//'   \
16393                              -e 's/  *$//'   \
16394                              -e 's/  */ /g'`
16395
16396LIBSSTATIC_CONFIG="-lfreetype               \
16397                   $zlib_libsstaticconf     \
16398                   $bzip2_libsstaticconf    \
16399                   $libpng_libsstaticconf   \
16400                   $harfbuzz_libsstaticconf \
16401                   $brotli_libsstaticconf   \
16402                   $ft2_extra_libs"
16403# remove -L/usr/lib and -L/usr/lib64 since `freetype-config' adds them later
16404# on if necessary; also beautify
16405LIBSSTATIC_CONFIG=`echo "$LIBSSTATIC_CONFIG"          \
16406                   | sed -e 's|-L */usr/lib64/* | |g' \
16407                         -e 's|-L */usr/lib/* | |g'   \
16408                         -e 's/^  *//'                \
16409                         -e 's/  *$//'                \
16410                         -e 's/  */ /g'`
16411
16412# If FreeType gets installed with `--disable-shared', don't use
16413# 'private' fields.  `pkg-config' only looks into `.pc' files and is
16414# completely agnostic to whether shared libraries are actually present
16415# or not.  As a consequence, the user had to specify `--static' while
16416# calling `pkg-config', which configure scripts are normally not
16417# prepared for.
16418
16419PKGCONFIG_REQUIRES=
16420PKGCONFIG_LIBS='-L${libdir} -lfreetype'
16421
16422if test $enable_shared = "no"; then
16423  PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES $PKGCONFIG_REQUIRES_PRIVATE"
16424  PKGCONFIG_REQUIRES_PRIVATE=
16425  PKGCONFIG_LIBS="$PKGCONFIG_LIBS $PKGCONFIG_LIBS_PRIVATE"
16426  PKGCONFIG_LIBS_PRIVATE=
16427fi
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441# changing LDFLAGS value should only be done after
16442# lt_cv_prog_compiler_static_works test
16443
16444ftoption_set()
16445{
16446  regexp="-e \\\"s|.*#.*def.*$1.*|#define $1|\\\""
16447  FTOPTION_H_SED="$FTOPTION_H_SED $regexp"
16448}
16449
16450ftoption_unset()
16451{
16452  regexp="-e \\\"s|.*#.*def.*$1.*|/* #undef $1 */|\\\""
16453  FTOPTION_H_SED="$FTOPTION_H_SED $regexp"
16454}
16455
16456if test "$have_zlib" != no; then
16457  CFLAGS="$CFLAGS $ZLIB_CFLAGS"
16458  LDFLAGS="$LDFLAGS $ZLIB_LIBS"
16459  ftoption_set FT_CONFIG_OPTION_SYSTEM_ZLIB
16460else
16461  ftoption_unset FT_CONFIG_OPTION_SYSTEM_ZLIB
16462fi
16463if test "$have_bzip2" != no; then
16464  CFLAGS="$CFLAGS $BZIP2_CFLAGS"
16465  LDFLAGS="$LDFLAGS $BZIP2_LIBS"
16466  ftoption_set FT_CONFIG_OPTION_USE_BZIP2
16467else
16468  ftoption_unset FT_CONFIG_OPTION_USE_BZIP2
16469fi
16470if test "$have_libpng" != no; then
16471  CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
16472  LDFLAGS="$LDFLAGS $LIBPNG_LIBS"
16473  ftoption_set FT_CONFIG_OPTION_USE_PNG
16474else
16475  ftoption_unset FT_CONFIG_OPTION_USE_PNG
16476fi
16477if test "$have_harfbuzz" != no; then
16478  CFLAGS="$CFLAGS $HARFBUZZ_CFLAGS"
16479  LDFLAGS="$LDFLAGS $HARFBUZZ_LIBS"
16480  ftoption_set FT_CONFIG_OPTION_USE_HARFBUZZ
16481else
16482  ftoption_unset FT_CONFIG_OPTION_USE_HARFBUZZ
16483fi
16484if test "$have_brotli" != no; then
16485  CFLAGS="$CFLAGS $BROTLI_CFLAGS"
16486  LDFLAGS="$LDFLAGS $BROTLI_LIBS"
16487  ftoption_set FT_CONFIG_OPTION_USE_BROTLI
16488else
16489  ftoption_unset FT_CONFIG_OPTION_USE_BROTLI
16490fi
16491
16492if test "$have_pthread" != no; then
16493  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16494  LDFLAGS="$LDFLAGS $PTHREAD_CFLAGS $PTHREAD_LIBS"
16495fi
16496
16497
16498
16499
16500# We don't want to use a template file for `ftoption.h', since compilation
16501# should work without calling a configure script also.  For this reason, we
16502# copy the `include/freetype/config/ftoption.h' file to the `unix/builds'
16503# directory (using a dummy `AC_CONFIG_FILES' call) and apply the just
16504# constructed $FTOPTION_H_SED regexp (using the post-action of
16505# `AC_CONFIG_FILES'); this is also the version that gets installed later on.
16506#
16507ac_config_files="$ac_config_files ftoption.h:${srcdir}/../../include/freetype/config/ftoption.h"
16508
16509
16510ac_config_headers="$ac_config_headers ftconfig.h"
16511
16512
16513# create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
16514# and `builds/unix/unix-cc.mk' that will be used by the build system
16515#
16516ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in"
16517
16518
16519cat >confcache <<\_ACEOF
16520# This file is a shell script that caches the results of configure
16521# tests run on this system so they can be shared between configure
16522# scripts and configure runs, see configure's option --config-cache.
16523# It is not useful on other systems.  If it contains results you don't
16524# want to keep, you may remove or edit it.
16525#
16526# config.status only pays attention to the cache file if you give it
16527# the --recheck option to rerun configure.
16528#
16529# `ac_cv_env_foo' variables (set or unset) will be overridden when
16530# loading this file, other *unset* `ac_cv_foo' will be assigned the
16531# following values.
16532
16533_ACEOF
16534
16535# The following way of writing the cache mishandles newlines in values,
16536# but we know of no workaround that is simple, portable, and efficient.
16537# So, we kill variables containing newlines.
16538# Ultrix sh set writes to stderr and can't be redirected directly,
16539# and sets the high bit in the cache file unless we assign to the vars.
16540(
16541  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16542    eval ac_val=\$$ac_var
16543    case $ac_val in #(
16544    *${as_nl}*)
16545      case $ac_var in #(
16546      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16547printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16548      esac
16549      case $ac_var in #(
16550      _ | IFS | as_nl) ;; #(
16551      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16552      *) { eval $ac_var=; unset $ac_var;} ;;
16553      esac ;;
16554    esac
16555  done
16556
16557  (set) 2>&1 |
16558    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16559    *${as_nl}ac_space=\ *)
16560      # `set' does not quote correctly, so add quotes: double-quote
16561      # substitution turns \\\\ into \\, and sed turns \\ into \.
16562      sed -n \
16563	"s/'/'\\\\''/g;
16564	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16565      ;; #(
16566    *)
16567      # `set' quotes correctly as required by POSIX, so do not add quotes.
16568      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16569      ;;
16570    esac |
16571    sort
16572) |
16573  sed '
16574     /^ac_cv_env_/b end
16575     t clear
16576     :clear
16577     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16578     t end
16579     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16580     :end' >>confcache
16581if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16582  if test -w "$cache_file"; then
16583    if test "x$cache_file" != "x/dev/null"; then
16584      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16585printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16586      if test ! -f "$cache_file" || test -h "$cache_file"; then
16587	cat confcache >"$cache_file"
16588      else
16589        case $cache_file in #(
16590        */* | ?:*)
16591	  mv -f confcache "$cache_file"$$ &&
16592	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16593        *)
16594	  mv -f confcache "$cache_file" ;;
16595	esac
16596      fi
16597    fi
16598  else
16599    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16600printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16601  fi
16602fi
16603rm -f confcache
16604
16605test "x$prefix" = xNONE && prefix=$ac_default_prefix
16606# Let make expand exec_prefix.
16607test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16608
16609DEFS=-DHAVE_CONFIG_H
16610
16611ac_libobjs=
16612ac_ltlibobjs=
16613U=
16614for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16615  # 1. Remove the extension, and $U if already installed.
16616  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16617  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16618  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16619  #    will be set to the directory where LIBOBJS objects are built.
16620  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16621  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16622done
16623LIBOBJS=$ac_libobjs
16624
16625LTLIBOBJS=$ac_ltlibobjs
16626
16627
16628
16629: "${CONFIG_STATUS=./config.status}"
16630ac_write_fail=0
16631ac_clean_files_save=$ac_clean_files
16632ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16634printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16635as_write_fail=0
16636cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16637#! $SHELL
16638# Generated by $as_me.
16639# Run this file to recreate the current configuration.
16640# Compiler output produced by configure, useful for debugging
16641# configure, is in config.log if it exists.
16642
16643debug=false
16644ac_cs_recheck=false
16645ac_cs_silent=false
16646
16647SHELL=\${CONFIG_SHELL-$SHELL}
16648export SHELL
16649_ASEOF
16650cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16651## -------------------- ##
16652## M4sh Initialization. ##
16653## -------------------- ##
16654
16655# Be more Bourne compatible
16656DUALCASE=1; export DUALCASE # for MKS sh
16657as_nop=:
16658if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16659then :
16660  emulate sh
16661  NULLCMD=:
16662  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16663  # is contrary to our usage.  Disable this feature.
16664  alias -g '${1+"$@"}'='"$@"'
16665  setopt NO_GLOB_SUBST
16666else $as_nop
16667  case `(set -o) 2>/dev/null` in #(
16668  *posix*) :
16669    set -o posix ;; #(
16670  *) :
16671     ;;
16672esac
16673fi
16674
16675
16676
16677# Reset variables that may have inherited troublesome values from
16678# the environment.
16679
16680# IFS needs to be set, to space, tab, and newline, in precisely that order.
16681# (If _AS_PATH_WALK were called with IFS unset, it would have the
16682# side effect of setting IFS to empty, thus disabling word splitting.)
16683# Quoting is to prevent editors from complaining about space-tab.
16684as_nl='
16685'
16686export as_nl
16687IFS=" ""	$as_nl"
16688
16689PS1='$ '
16690PS2='> '
16691PS4='+ '
16692
16693# Ensure predictable behavior from utilities with locale-dependent output.
16694LC_ALL=C
16695export LC_ALL
16696LANGUAGE=C
16697export LANGUAGE
16698
16699# We cannot yet rely on "unset" to work, but we need these variables
16700# to be unset--not just set to an empty or harmless value--now, to
16701# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
16702# also avoids known problems related to "unset" and subshell syntax
16703# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16704for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16705do eval test \${$as_var+y} \
16706  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16707done
16708
16709# Ensure that fds 0, 1, and 2 are open.
16710if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16711if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16712if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
16713
16714# The user is always right.
16715if ${PATH_SEPARATOR+false} :; then
16716  PATH_SEPARATOR=:
16717  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16718    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16719      PATH_SEPARATOR=';'
16720  }
16721fi
16722
16723
16724# Find who we are.  Look in the path if we contain no directory separator.
16725as_myself=
16726case $0 in #((
16727  *[\\/]* ) as_myself=$0 ;;
16728  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16729for as_dir in $PATH
16730do
16731  IFS=$as_save_IFS
16732  case $as_dir in #(((
16733    '') as_dir=./ ;;
16734    */) ;;
16735    *) as_dir=$as_dir/ ;;
16736  esac
16737    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16738  done
16739IFS=$as_save_IFS
16740
16741     ;;
16742esac
16743# We did not find ourselves, most probably we were run as `sh COMMAND'
16744# in which case we are not to be found in the path.
16745if test "x$as_myself" = x; then
16746  as_myself=$0
16747fi
16748if test ! -f "$as_myself"; then
16749  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16750  exit 1
16751fi
16752
16753
16754
16755# as_fn_error STATUS ERROR [LINENO LOG_FD]
16756# ----------------------------------------
16757# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16758# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16759# script with STATUS, using 1 if that was 0.
16760as_fn_error ()
16761{
16762  as_status=$1; test $as_status -eq 0 && as_status=1
16763  if test "$4"; then
16764    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16765    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16766  fi
16767  printf "%s\n" "$as_me: error: $2" >&2
16768  as_fn_exit $as_status
16769} # as_fn_error
16770
16771
16772
16773# as_fn_set_status STATUS
16774# -----------------------
16775# Set $? to STATUS, without forking.
16776as_fn_set_status ()
16777{
16778  return $1
16779} # as_fn_set_status
16780
16781# as_fn_exit STATUS
16782# -----------------
16783# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16784as_fn_exit ()
16785{
16786  set +e
16787  as_fn_set_status $1
16788  exit $1
16789} # as_fn_exit
16790
16791# as_fn_unset VAR
16792# ---------------
16793# Portably unset VAR.
16794as_fn_unset ()
16795{
16796  { eval $1=; unset $1;}
16797}
16798as_unset=as_fn_unset
16799
16800# as_fn_append VAR VALUE
16801# ----------------------
16802# Append the text in VALUE to the end of the definition contained in VAR. Take
16803# advantage of any shell optimizations that allow amortized linear growth over
16804# repeated appends, instead of the typical quadratic growth present in naive
16805# implementations.
16806if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16807then :
16808  eval 'as_fn_append ()
16809  {
16810    eval $1+=\$2
16811  }'
16812else $as_nop
16813  as_fn_append ()
16814  {
16815    eval $1=\$$1\$2
16816  }
16817fi # as_fn_append
16818
16819# as_fn_arith ARG...
16820# ------------------
16821# Perform arithmetic evaluation on the ARGs, and store the result in the
16822# global $as_val. Take advantage of shells that can avoid forks. The arguments
16823# must be portable across $(()) and expr.
16824if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16825then :
16826  eval 'as_fn_arith ()
16827  {
16828    as_val=$(( $* ))
16829  }'
16830else $as_nop
16831  as_fn_arith ()
16832  {
16833    as_val=`expr "$@" || test $? -eq 1`
16834  }
16835fi # as_fn_arith
16836
16837
16838if expr a : '\(a\)' >/dev/null 2>&1 &&
16839   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16840  as_expr=expr
16841else
16842  as_expr=false
16843fi
16844
16845if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16846  as_basename=basename
16847else
16848  as_basename=false
16849fi
16850
16851if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16852  as_dirname=dirname
16853else
16854  as_dirname=false
16855fi
16856
16857as_me=`$as_basename -- "$0" ||
16858$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16859	 X"$0" : 'X\(//\)$' \| \
16860	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16861printf "%s\n" X/"$0" |
16862    sed '/^.*\/\([^/][^/]*\)\/*$/{
16863	    s//\1/
16864	    q
16865	  }
16866	  /^X\/\(\/\/\)$/{
16867	    s//\1/
16868	    q
16869	  }
16870	  /^X\/\(\/\).*/{
16871	    s//\1/
16872	    q
16873	  }
16874	  s/.*/./; q'`
16875
16876# Avoid depending upon Character Ranges.
16877as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16878as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16879as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16880as_cr_digits='0123456789'
16881as_cr_alnum=$as_cr_Letters$as_cr_digits
16882
16883
16884# Determine whether it's possible to make 'echo' print without a newline.
16885# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16886# for compatibility with existing Makefiles.
16887ECHO_C= ECHO_N= ECHO_T=
16888case `echo -n x` in #(((((
16889-n*)
16890  case `echo 'xy\c'` in
16891  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16892  xy)  ECHO_C='\c';;
16893  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16894       ECHO_T='	';;
16895  esac;;
16896*)
16897  ECHO_N='-n';;
16898esac
16899
16900# For backward compatibility with old third-party macros, we provide
16901# the shell variables $as_echo and $as_echo_n.  New code should use
16902# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16903as_echo='printf %s\n'
16904as_echo_n='printf %s'
16905
16906rm -f conf$$ conf$$.exe conf$$.file
16907if test -d conf$$.dir; then
16908  rm -f conf$$.dir/conf$$.file
16909else
16910  rm -f conf$$.dir
16911  mkdir conf$$.dir 2>/dev/null
16912fi
16913if (echo >conf$$.file) 2>/dev/null; then
16914  if ln -s conf$$.file conf$$ 2>/dev/null; then
16915    as_ln_s='ln -s'
16916    # ... but there are two gotchas:
16917    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16918    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16919    # In both cases, we have to default to `cp -pR'.
16920    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16921      as_ln_s='cp -pR'
16922  elif ln conf$$.file conf$$ 2>/dev/null; then
16923    as_ln_s=ln
16924  else
16925    as_ln_s='cp -pR'
16926  fi
16927else
16928  as_ln_s='cp -pR'
16929fi
16930rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16931rmdir conf$$.dir 2>/dev/null
16932
16933
16934# as_fn_mkdir_p
16935# -------------
16936# Create "$as_dir" as a directory, including parents if necessary.
16937as_fn_mkdir_p ()
16938{
16939
16940  case $as_dir in #(
16941  -*) as_dir=./$as_dir;;
16942  esac
16943  test -d "$as_dir" || eval $as_mkdir_p || {
16944    as_dirs=
16945    while :; do
16946      case $as_dir in #(
16947      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16948      *) as_qdir=$as_dir;;
16949      esac
16950      as_dirs="'$as_qdir' $as_dirs"
16951      as_dir=`$as_dirname -- "$as_dir" ||
16952$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16953	 X"$as_dir" : 'X\(//\)[^/]' \| \
16954	 X"$as_dir" : 'X\(//\)$' \| \
16955	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16956printf "%s\n" X"$as_dir" |
16957    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16958	    s//\1/
16959	    q
16960	  }
16961	  /^X\(\/\/\)[^/].*/{
16962	    s//\1/
16963	    q
16964	  }
16965	  /^X\(\/\/\)$/{
16966	    s//\1/
16967	    q
16968	  }
16969	  /^X\(\/\).*/{
16970	    s//\1/
16971	    q
16972	  }
16973	  s/.*/./; q'`
16974      test -d "$as_dir" && break
16975    done
16976    test -z "$as_dirs" || eval "mkdir $as_dirs"
16977  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16978
16979
16980} # as_fn_mkdir_p
16981if mkdir -p . 2>/dev/null; then
16982  as_mkdir_p='mkdir -p "$as_dir"'
16983else
16984  test -d ./-p && rmdir ./-p
16985  as_mkdir_p=false
16986fi
16987
16988
16989# as_fn_executable_p FILE
16990# -----------------------
16991# Test if FILE is an executable regular file.
16992as_fn_executable_p ()
16993{
16994  test -f "$1" && test -x "$1"
16995} # as_fn_executable_p
16996as_test_x='test -x'
16997as_executable_p=as_fn_executable_p
16998
16999# Sed expression to map a string onto a valid CPP name.
17000as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17001
17002# Sed expression to map a string onto a valid variable name.
17003as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17004
17005
17006exec 6>&1
17007## ----------------------------------- ##
17008## Main body of $CONFIG_STATUS script. ##
17009## ----------------------------------- ##
17010_ASEOF
17011test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17012
17013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17014# Save the log message, to keep $0 and so on meaningful, and to
17015# report actual input values of CONFIG_FILES etc. instead of their
17016# values after options handling.
17017ac_log="
17018This file was extended by FreeType $as_me 2.12.1, which was
17019generated by GNU Autoconf 2.71.  Invocation command line was
17020
17021  CONFIG_FILES    = $CONFIG_FILES
17022  CONFIG_HEADERS  = $CONFIG_HEADERS
17023  CONFIG_LINKS    = $CONFIG_LINKS
17024  CONFIG_COMMANDS = $CONFIG_COMMANDS
17025  $ $0 $@
17026
17027on `(hostname || uname -n) 2>/dev/null | sed 1q`
17028"
17029
17030_ACEOF
17031
17032case $ac_config_files in *"
17033"*) set x $ac_config_files; shift; ac_config_files=$*;;
17034esac
17035
17036case $ac_config_headers in *"
17037"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17038esac
17039
17040
17041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17042# Files that config.status was made for.
17043config_files="$ac_config_files"
17044config_headers="$ac_config_headers"
17045config_commands="$ac_config_commands"
17046
17047_ACEOF
17048
17049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17050ac_cs_usage="\
17051\`$as_me' instantiates files and other configuration actions
17052from templates according to the current configuration.  Unless the files
17053and actions are specified as TAGs, all are instantiated by default.
17054
17055Usage: $0 [OPTION]... [TAG]...
17056
17057  -h, --help       print this help, then exit
17058  -V, --version    print version number and configuration settings, then exit
17059      --config     print configuration, then exit
17060  -q, --quiet, --silent
17061                   do not print progress messages
17062  -d, --debug      don't remove temporary files
17063      --recheck    update $as_me by reconfiguring in the same conditions
17064      --file=FILE[:TEMPLATE]
17065                   instantiate the configuration file FILE
17066      --header=FILE[:TEMPLATE]
17067                   instantiate the configuration header FILE
17068
17069Configuration files:
17070$config_files
17071
17072Configuration headers:
17073$config_headers
17074
17075Configuration commands:
17076$config_commands
17077
17078Report bugs to <freetype@nongnu.org>."
17079
17080_ACEOF
17081ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17082ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17084ac_cs_config='$ac_cs_config_escaped'
17085ac_cs_version="\\
17086FreeType config.status 2.12.1
17087configured by $0, generated by GNU Autoconf 2.71,
17088  with options \\"\$ac_cs_config\\"
17089
17090Copyright (C) 2021 Free Software Foundation, Inc.
17091This config.status script is free software; the Free Software Foundation
17092gives unlimited permission to copy, distribute and modify it."
17093
17094ac_pwd='$ac_pwd'
17095srcdir='$srcdir'
17096INSTALL='$INSTALL'
17097MKDIR_P='$MKDIR_P'
17098AWK='$AWK'
17099test -n "\$AWK" || AWK=awk
17100_ACEOF
17101
17102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17103# The default lists apply if the user does not specify any file.
17104ac_need_defaults=:
17105while test $# != 0
17106do
17107  case $1 in
17108  --*=?*)
17109    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17110    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17111    ac_shift=:
17112    ;;
17113  --*=)
17114    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17115    ac_optarg=
17116    ac_shift=:
17117    ;;
17118  *)
17119    ac_option=$1
17120    ac_optarg=$2
17121    ac_shift=shift
17122    ;;
17123  esac
17124
17125  case $ac_option in
17126  # Handling of the options.
17127  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17128    ac_cs_recheck=: ;;
17129  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17130    printf "%s\n" "$ac_cs_version"; exit ;;
17131  --config | --confi | --conf | --con | --co | --c )
17132    printf "%s\n" "$ac_cs_config"; exit ;;
17133  --debug | --debu | --deb | --de | --d | -d )
17134    debug=: ;;
17135  --file | --fil | --fi | --f )
17136    $ac_shift
17137    case $ac_optarg in
17138    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17139    '') as_fn_error $? "missing file argument" ;;
17140    esac
17141    as_fn_append CONFIG_FILES " '$ac_optarg'"
17142    ac_need_defaults=false;;
17143  --header | --heade | --head | --hea )
17144    $ac_shift
17145    case $ac_optarg in
17146    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17147    esac
17148    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17149    ac_need_defaults=false;;
17150  --he | --h)
17151    # Conflict between --help and --header
17152    as_fn_error $? "ambiguous option: \`$1'
17153Try \`$0 --help' for more information.";;
17154  --help | --hel | -h )
17155    printf "%s\n" "$ac_cs_usage"; exit ;;
17156  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17157  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17158    ac_cs_silent=: ;;
17159
17160  # This is an error.
17161  -*) as_fn_error $? "unrecognized option: \`$1'
17162Try \`$0 --help' for more information." ;;
17163
17164  *) as_fn_append ac_config_targets " $1"
17165     ac_need_defaults=false ;;
17166
17167  esac
17168  shift
17169done
17170
17171ac_configure_extra_args=
17172
17173if $ac_cs_silent; then
17174  exec 6>/dev/null
17175  ac_configure_extra_args="$ac_configure_extra_args --silent"
17176fi
17177
17178_ACEOF
17179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17180if \$ac_cs_recheck; then
17181  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17182  shift
17183  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17184  CONFIG_SHELL='$SHELL'
17185  export CONFIG_SHELL
17186  exec "\$@"
17187fi
17188
17189_ACEOF
17190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17191exec 5>>config.log
17192{
17193  echo
17194  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17195## Running $as_me. ##
17196_ASBOX
17197  printf "%s\n" "$ac_log"
17198} >&5
17199
17200_ACEOF
17201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17202#
17203# INIT-COMMANDS
17204#
17205
17206
17207# The HP-UX ksh and POSIX shell print the target directory to stdout
17208# if CDPATH is set.
17209(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17210
17211sed_quote_subst='$sed_quote_subst'
17212double_quote_subst='$double_quote_subst'
17213delay_variable_subst='$delay_variable_subst'
17214macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17215macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17216AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17217DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17218OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17219enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17220enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17221pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17222enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17223shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17224SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17225ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17226PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17227host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17228host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17229host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17230build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17231build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17232build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17233SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17234Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17235GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17236EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17237FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17238LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17239NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17240LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17241max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17242ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17243exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17244lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17245lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17246lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17247lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17248lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17249reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17250reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17251FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17252deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17253file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17254file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17255want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17256sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17257AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17258lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17259AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17260archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17261STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17262RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17263old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17264old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17265old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17266lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17267CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17268CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17269compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17270GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17271lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17272lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17273lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17274lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17275lt_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"`'
17276lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17277nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17278lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17279lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17280objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17281MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17282lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17283lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17284lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17285lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17286lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17287need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17288MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17289DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17290NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17291LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17292OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17293OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17294libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17295shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17296extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17297archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17298enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17299export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17300whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17301compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17302old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17303old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17304archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17305archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17306module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17307module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17308with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17309allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17310no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17311hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17312hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17313hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17314hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17315hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17316hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17317hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17318inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17319link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17320always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17321export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17322exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17323include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17324prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17325postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17326file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17327variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17328need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17329need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17330version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17331runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17332shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17333shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17334libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17335library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17336soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17337install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17338postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17339postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17340finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17341finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17342hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17343sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17344configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17345configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17346hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17347enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17348enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17349enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17350old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17351striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17352LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
17353reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
17354reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
17355old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17356compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
17357GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
17358lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
17359lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
17360lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
17361lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
17362lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
17363archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
17364enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
17365export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17366whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17367compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
17368old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
17369old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
17370archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17371archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17372module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
17373module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17374with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
17375allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17376no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17377hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17378hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
17379hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
17380hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
17381hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
17382hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
17383hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
17384inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
17385link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
17386always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
17387export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
17388exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17389include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17390prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17391postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17392file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
17393hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
17394
17395LTCC='$LTCC'
17396LTCFLAGS='$LTCFLAGS'
17397compiler='$compiler_DEFAULT'
17398
17399# A function that is used when there is no print builtin or printf.
17400func_fallback_echo ()
17401{
17402  eval 'cat <<_LTECHO_EOF
17403\$1
17404_LTECHO_EOF'
17405}
17406
17407# Quote evaled strings.
17408for var in AS \
17409DLLTOOL \
17410OBJDUMP \
17411SHELL \
17412ECHO \
17413PATH_SEPARATOR \
17414SED \
17415GREP \
17416EGREP \
17417FGREP \
17418LD \
17419NM \
17420LN_S \
17421lt_SP2NL \
17422lt_NL2SP \
17423reload_flag \
17424FILECMD \
17425deplibs_check_method \
17426file_magic_cmd \
17427file_magic_glob \
17428want_nocaseglob \
17429sharedlib_from_linklib_cmd \
17430AR \
17431archiver_list_spec \
17432STRIP \
17433RANLIB \
17434CC \
17435CFLAGS \
17436compiler \
17437lt_cv_sys_global_symbol_pipe \
17438lt_cv_sys_global_symbol_to_cdecl \
17439lt_cv_sys_global_symbol_to_import \
17440lt_cv_sys_global_symbol_to_c_name_address \
17441lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17442lt_cv_nm_interface \
17443nm_file_list_spec \
17444lt_cv_truncate_bin \
17445lt_prog_compiler_no_builtin_flag \
17446lt_prog_compiler_pic \
17447lt_prog_compiler_wl \
17448lt_prog_compiler_static \
17449lt_cv_prog_compiler_c_o \
17450need_locks \
17451MANIFEST_TOOL \
17452DSYMUTIL \
17453NMEDIT \
17454LIPO \
17455OTOOL \
17456OTOOL64 \
17457shrext_cmds \
17458export_dynamic_flag_spec \
17459whole_archive_flag_spec \
17460compiler_needs_object \
17461with_gnu_ld \
17462allow_undefined_flag \
17463no_undefined_flag \
17464hardcode_libdir_flag_spec \
17465hardcode_libdir_separator \
17466exclude_expsyms \
17467include_expsyms \
17468file_list_spec \
17469variables_saved_for_relink \
17470libname_spec \
17471library_names_spec \
17472soname_spec \
17473install_override_mode \
17474finish_eval \
17475old_striplib \
17476striplib \
17477LD_RC \
17478reload_flag_RC \
17479compiler_RC \
17480lt_prog_compiler_no_builtin_flag_RC \
17481lt_prog_compiler_pic_RC \
17482lt_prog_compiler_wl_RC \
17483lt_prog_compiler_static_RC \
17484lt_cv_prog_compiler_c_o_RC \
17485export_dynamic_flag_spec_RC \
17486whole_archive_flag_spec_RC \
17487compiler_needs_object_RC \
17488with_gnu_ld_RC \
17489allow_undefined_flag_RC \
17490no_undefined_flag_RC \
17491hardcode_libdir_flag_spec_RC \
17492hardcode_libdir_separator_RC \
17493exclude_expsyms_RC \
17494include_expsyms_RC \
17495file_list_spec_RC; do
17496    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17497    *[\\\\\\\`\\"\\\$]*)
17498      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17499      ;;
17500    *)
17501      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17502      ;;
17503    esac
17504done
17505
17506# Double-quote double-evaled strings.
17507for var in reload_cmds \
17508old_postinstall_cmds \
17509old_postuninstall_cmds \
17510old_archive_cmds \
17511extract_expsyms_cmds \
17512old_archive_from_new_cmds \
17513old_archive_from_expsyms_cmds \
17514archive_cmds \
17515archive_expsym_cmds \
17516module_cmds \
17517module_expsym_cmds \
17518export_symbols_cmds \
17519prelink_cmds \
17520postlink_cmds \
17521postinstall_cmds \
17522postuninstall_cmds \
17523finish_cmds \
17524sys_lib_search_path_spec \
17525configure_time_dlsearch_path \
17526configure_time_lt_sys_library_path \
17527reload_cmds_RC \
17528old_archive_cmds_RC \
17529old_archive_from_new_cmds_RC \
17530old_archive_from_expsyms_cmds_RC \
17531archive_cmds_RC \
17532archive_expsym_cmds_RC \
17533module_cmds_RC \
17534module_expsym_cmds_RC \
17535export_symbols_cmds_RC \
17536prelink_cmds_RC \
17537postlink_cmds_RC; do
17538    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17539    *[\\\\\\\`\\"\\\$]*)
17540      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17541      ;;
17542    *)
17543      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17544      ;;
17545    esac
17546done
17547
17548ac_aux_dir='$ac_aux_dir'
17549
17550# See if we are running on zsh, and set the options that allow our
17551# commands through without removal of \ escapes INIT.
17552if test -n "\${ZSH_VERSION+set}"; then
17553   setopt NO_GLOB_SUBST
17554fi
17555
17556
17557    PACKAGE='$PACKAGE'
17558    VERSION='$VERSION'
17559    RM='$RM'
17560    ofile='$ofile'
17561
17562
17563
17564
17565
17566FTOPTION_H_SED="$FTOPTION_H_SED"
17567
17568_ACEOF
17569
17570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17571
17572# Handling of arguments.
17573for ac_config_target in $ac_config_targets
17574do
17575  case $ac_config_target in
17576    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17577    "ftoption.h") CONFIG_FILES="$CONFIG_FILES ftoption.h:${srcdir}/../../include/freetype/config/ftoption.h" ;;
17578    "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h" ;;
17579    "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
17580    "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
17581
17582  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17583  esac
17584done
17585
17586
17587# If the user did not use the arguments to specify the items to instantiate,
17588# then the envvar interface is used.  Set only those that are not.
17589# We use the long form for the default assignment because of an extremely
17590# bizarre bug on SunOS 4.1.3.
17591if $ac_need_defaults; then
17592  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17593  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17594  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17595fi
17596
17597# Have a temporary directory for convenience.  Make it in the build tree
17598# simply because there is no reason against having it here, and in addition,
17599# creating and moving files from /tmp can sometimes cause problems.
17600# Hook for its removal unless debugging.
17601# Note that there is a small window in which the directory will not be cleaned:
17602# after its creation but before its name has been assigned to `$tmp'.
17603$debug ||
17604{
17605  tmp= ac_tmp=
17606  trap 'exit_status=$?
17607  : "${ac_tmp:=$tmp}"
17608  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17609' 0
17610  trap 'as_fn_exit 1' 1 2 13 15
17611}
17612# Create a (secure) tmp directory for tmp files.
17613
17614{
17615  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17616  test -d "$tmp"
17617}  ||
17618{
17619  tmp=./conf$$-$RANDOM
17620  (umask 077 && mkdir "$tmp")
17621} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17622ac_tmp=$tmp
17623
17624# Set up the scripts for CONFIG_FILES section.
17625# No need to generate them if there are no CONFIG_FILES.
17626# This happens for instance with `./config.status config.h'.
17627if test -n "$CONFIG_FILES"; then
17628
17629
17630ac_cr=`echo X | tr X '\015'`
17631# On cygwin, bash can eat \r inside `` if the user requested igncr.
17632# But we know of no other shell where ac_cr would be empty at this
17633# point, so we can use a bashism as a fallback.
17634if test "x$ac_cr" = x; then
17635  eval ac_cr=\$\'\\r\'
17636fi
17637ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17638if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17639  ac_cs_awk_cr='\\r'
17640else
17641  ac_cs_awk_cr=$ac_cr
17642fi
17643
17644echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17645_ACEOF
17646
17647
17648{
17649  echo "cat >conf$$subs.awk <<_ACEOF" &&
17650  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17651  echo "_ACEOF"
17652} >conf$$subs.sh ||
17653  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17654ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17655ac_delim='%!_!# '
17656for ac_last_try in false false false false false :; do
17657  . ./conf$$subs.sh ||
17658    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17659
17660  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17661  if test $ac_delim_n = $ac_delim_num; then
17662    break
17663  elif $ac_last_try; then
17664    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17665  else
17666    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17667  fi
17668done
17669rm -f conf$$subs.sh
17670
17671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17672cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17673_ACEOF
17674sed -n '
17675h
17676s/^/S["/; s/!.*/"]=/
17677p
17678g
17679s/^[^!]*!//
17680:repl
17681t repl
17682s/'"$ac_delim"'$//
17683t delim
17684:nl
17685h
17686s/\(.\{148\}\)..*/\1/
17687t more1
17688s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17689p
17690n
17691b repl
17692:more1
17693s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17694p
17695g
17696s/.\{148\}//
17697t nl
17698:delim
17699h
17700s/\(.\{148\}\)..*/\1/
17701t more2
17702s/["\\]/\\&/g; s/^/"/; s/$/"/
17703p
17704b
17705:more2
17706s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17707p
17708g
17709s/.\{148\}//
17710t delim
17711' <conf$$subs.awk | sed '
17712/^[^""]/{
17713  N
17714  s/\n//
17715}
17716' >>$CONFIG_STATUS || ac_write_fail=1
17717rm -f conf$$subs.awk
17718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17719_ACAWK
17720cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17721  for (key in S) S_is_set[key] = 1
17722  FS = ""
17723
17724}
17725{
17726  line = $ 0
17727  nfields = split(line, field, "@")
17728  substed = 0
17729  len = length(field[1])
17730  for (i = 2; i < nfields; i++) {
17731    key = field[i]
17732    keylen = length(key)
17733    if (S_is_set[key]) {
17734      value = S[key]
17735      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17736      len += length(value) + length(field[++i])
17737      substed = 1
17738    } else
17739      len += 1 + keylen
17740  }
17741
17742  print line
17743}
17744
17745_ACAWK
17746_ACEOF
17747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17748if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17749  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17750else
17751  cat
17752fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17753  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17754_ACEOF
17755
17756# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17757# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17758# trailing colons and then remove the whole line if VPATH becomes empty
17759# (actually we leave an empty line to preserve line numbers).
17760if test "x$srcdir" = x.; then
17761  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17762h
17763s///
17764s/^/:/
17765s/[	 ]*$/:/
17766s/:\$(srcdir):/:/g
17767s/:\${srcdir}:/:/g
17768s/:@srcdir@:/:/g
17769s/^:*//
17770s/:*$//
17771x
17772s/\(=[	 ]*\).*/\1/
17773G
17774s/\n//
17775s/^[^=]*=[	 ]*$//
17776}'
17777fi
17778
17779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17780fi # test -n "$CONFIG_FILES"
17781
17782# Set up the scripts for CONFIG_HEADERS section.
17783# No need to generate them if there are no CONFIG_HEADERS.
17784# This happens for instance with `./config.status Makefile'.
17785if test -n "$CONFIG_HEADERS"; then
17786cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17787BEGIN {
17788_ACEOF
17789
17790# Transform confdefs.h into an awk script `defines.awk', embedded as
17791# here-document in config.status, that substitutes the proper values into
17792# config.h.in to produce config.h.
17793
17794# Create a delimiter string that does not exist in confdefs.h, to ease
17795# handling of long lines.
17796ac_delim='%!_!# '
17797for ac_last_try in false false :; do
17798  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17799  if test -z "$ac_tt"; then
17800    break
17801  elif $ac_last_try; then
17802    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17803  else
17804    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17805  fi
17806done
17807
17808# For the awk script, D is an array of macro values keyed by name,
17809# likewise P contains macro parameters if any.  Preserve backslash
17810# newline sequences.
17811
17812ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17813sed -n '
17814s/.\{148\}/&'"$ac_delim"'/g
17815t rset
17816:rset
17817s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17818t def
17819d
17820:def
17821s/\\$//
17822t bsnl
17823s/["\\]/\\&/g
17824s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17825D["\1"]=" \3"/p
17826s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17827d
17828:bsnl
17829s/["\\]/\\&/g
17830s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17831D["\1"]=" \3\\\\\\n"\\/p
17832t cont
17833s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17834t cont
17835d
17836:cont
17837n
17838s/.\{148\}/&'"$ac_delim"'/g
17839t clear
17840:clear
17841s/\\$//
17842t bsnlc
17843s/["\\]/\\&/g; s/^/"/; s/$/"/p
17844d
17845:bsnlc
17846s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17847b cont
17848' <confdefs.h | sed '
17849s/'"$ac_delim"'/"\\\
17850"/g' >>$CONFIG_STATUS || ac_write_fail=1
17851
17852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17853  for (key in D) D_is_set[key] = 1
17854  FS = ""
17855}
17856/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17857  line = \$ 0
17858  split(line, arg, " ")
17859  if (arg[1] == "#") {
17860    defundef = arg[2]
17861    mac1 = arg[3]
17862  } else {
17863    defundef = substr(arg[1], 2)
17864    mac1 = arg[2]
17865  }
17866  split(mac1, mac2, "(") #)
17867  macro = mac2[1]
17868  prefix = substr(line, 1, index(line, defundef) - 1)
17869  if (D_is_set[macro]) {
17870    # Preserve the white space surrounding the "#".
17871    print prefix "define", macro P[macro] D[macro]
17872    next
17873  } else {
17874    # Replace #undef with comments.  This is necessary, for example,
17875    # in the case of _POSIX_SOURCE, which is predefined and required
17876    # on some systems where configure will not decide to define it.
17877    if (defundef == "undef") {
17878      print "/*", prefix defundef, macro, "*/"
17879      next
17880    }
17881  }
17882}
17883{ print }
17884_ACAWK
17885_ACEOF
17886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17887  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17888fi # test -n "$CONFIG_HEADERS"
17889
17890
17891eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17892shift
17893for ac_tag
17894do
17895  case $ac_tag in
17896  :[FHLC]) ac_mode=$ac_tag; continue;;
17897  esac
17898  case $ac_mode$ac_tag in
17899  :[FHL]*:*);;
17900  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17901  :[FH]-) ac_tag=-:-;;
17902  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17903  esac
17904  ac_save_IFS=$IFS
17905  IFS=:
17906  set x $ac_tag
17907  IFS=$ac_save_IFS
17908  shift
17909  ac_file=$1
17910  shift
17911
17912  case $ac_mode in
17913  :L) ac_source=$1;;
17914  :[FH])
17915    ac_file_inputs=
17916    for ac_f
17917    do
17918      case $ac_f in
17919      -) ac_f="$ac_tmp/stdin";;
17920      *) # Look for the file first in the build tree, then in the source tree
17921	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17922	 # because $ac_f cannot contain `:'.
17923	 test -f "$ac_f" ||
17924	   case $ac_f in
17925	   [\\/$]*) false;;
17926	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17927	   esac ||
17928	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17929      esac
17930      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17931      as_fn_append ac_file_inputs " '$ac_f'"
17932    done
17933
17934    # Let's still pretend it is `configure' which instantiates (i.e., don't
17935    # use $as_me), people would be surprised to read:
17936    #    /* config.h.  Generated by config.status.  */
17937    configure_input='Generated from '`
17938	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17939	`' by configure.'
17940    if test x"$ac_file" != x-; then
17941      configure_input="$ac_file.  $configure_input"
17942      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17943printf "%s\n" "$as_me: creating $ac_file" >&6;}
17944    fi
17945    # Neutralize special characters interpreted by sed in replacement strings.
17946    case $configure_input in #(
17947    *\&* | *\|* | *\\* )
17948       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17949       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17950    *) ac_sed_conf_input=$configure_input;;
17951    esac
17952
17953    case $ac_tag in
17954    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17955      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17956    esac
17957    ;;
17958  esac
17959
17960  ac_dir=`$as_dirname -- "$ac_file" ||
17961$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17962	 X"$ac_file" : 'X\(//\)[^/]' \| \
17963	 X"$ac_file" : 'X\(//\)$' \| \
17964	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17965printf "%s\n" X"$ac_file" |
17966    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17967	    s//\1/
17968	    q
17969	  }
17970	  /^X\(\/\/\)[^/].*/{
17971	    s//\1/
17972	    q
17973	  }
17974	  /^X\(\/\/\)$/{
17975	    s//\1/
17976	    q
17977	  }
17978	  /^X\(\/\).*/{
17979	    s//\1/
17980	    q
17981	  }
17982	  s/.*/./; q'`
17983  as_dir="$ac_dir"; as_fn_mkdir_p
17984  ac_builddir=.
17985
17986case "$ac_dir" in
17987.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17988*)
17989  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17990  # A ".." for each directory in $ac_dir_suffix.
17991  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17992  case $ac_top_builddir_sub in
17993  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17994  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17995  esac ;;
17996esac
17997ac_abs_top_builddir=$ac_pwd
17998ac_abs_builddir=$ac_pwd$ac_dir_suffix
17999# for backward compatibility:
18000ac_top_builddir=$ac_top_build_prefix
18001
18002case $srcdir in
18003  .)  # We are building in place.
18004    ac_srcdir=.
18005    ac_top_srcdir=$ac_top_builddir_sub
18006    ac_abs_top_srcdir=$ac_pwd ;;
18007  [\\/]* | ?:[\\/]* )  # Absolute name.
18008    ac_srcdir=$srcdir$ac_dir_suffix;
18009    ac_top_srcdir=$srcdir
18010    ac_abs_top_srcdir=$srcdir ;;
18011  *) # Relative name.
18012    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18013    ac_top_srcdir=$ac_top_build_prefix$srcdir
18014    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18015esac
18016ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18017
18018
18019  case $ac_mode in
18020  :F)
18021  #
18022  # CONFIG_FILE
18023  #
18024
18025  case $INSTALL in
18026  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18027  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18028  esac
18029  ac_MKDIR_P=$MKDIR_P
18030  case $MKDIR_P in
18031  [\\/$]* | ?:[\\/]* ) ;;
18032  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18033  esac
18034_ACEOF
18035
18036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18037# If the template does not know about datarootdir, expand it.
18038# FIXME: This hack should be removed a few years after 2.60.
18039ac_datarootdir_hack=; ac_datarootdir_seen=
18040ac_sed_dataroot='
18041/datarootdir/ {
18042  p
18043  q
18044}
18045/@datadir@/p
18046/@docdir@/p
18047/@infodir@/p
18048/@localedir@/p
18049/@mandir@/p'
18050case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18051*datarootdir*) ac_datarootdir_seen=yes;;
18052*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18054printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18055_ACEOF
18056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18057  ac_datarootdir_hack='
18058  s&@datadir@&$datadir&g
18059  s&@docdir@&$docdir&g
18060  s&@infodir@&$infodir&g
18061  s&@localedir@&$localedir&g
18062  s&@mandir@&$mandir&g
18063  s&\\\${datarootdir}&$datarootdir&g' ;;
18064esac
18065_ACEOF
18066
18067# Neutralize VPATH when `$srcdir' = `.'.
18068# Shell code in configure.ac might set extrasub.
18069# FIXME: do we really want to maintain this feature?
18070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18071ac_sed_extra="$ac_vpsub
18072$extrasub
18073_ACEOF
18074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18075:t
18076/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18077s|@configure_input@|$ac_sed_conf_input|;t t
18078s&@top_builddir@&$ac_top_builddir_sub&;t t
18079s&@top_build_prefix@&$ac_top_build_prefix&;t t
18080s&@srcdir@&$ac_srcdir&;t t
18081s&@abs_srcdir@&$ac_abs_srcdir&;t t
18082s&@top_srcdir@&$ac_top_srcdir&;t t
18083s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18084s&@builddir@&$ac_builddir&;t t
18085s&@abs_builddir@&$ac_abs_builddir&;t t
18086s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18087s&@INSTALL@&$ac_INSTALL&;t t
18088s&@MKDIR_P@&$ac_MKDIR_P&;t t
18089$ac_datarootdir_hack
18090"
18091eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18092  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18093
18094test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18095  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18096  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18097      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18099which seems to be undefined.  Please make sure it is defined" >&5
18100printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18101which seems to be undefined.  Please make sure it is defined" >&2;}
18102
18103  rm -f "$ac_tmp/stdin"
18104  case $ac_file in
18105  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18106  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18107  esac \
18108  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18109 ;;
18110  :H)
18111  #
18112  # CONFIG_HEADER
18113  #
18114  if test x"$ac_file" != x-; then
18115    {
18116      printf "%s\n" "/* $configure_input  */" >&1 \
18117      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18118    } >"$ac_tmp/config.h" \
18119      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18120    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18121      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18122printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18123    else
18124      rm -f "$ac_file"
18125      mv "$ac_tmp/config.h" "$ac_file" \
18126	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18127    fi
18128  else
18129    printf "%s\n" "/* $configure_input  */" >&1 \
18130      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18131      || as_fn_error $? "could not create -" "$LINENO" 5
18132  fi
18133 ;;
18134
18135  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18136printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18137 ;;
18138  esac
18139
18140
18141  case $ac_file$ac_mode in
18142    "libtool":C)
18143
18144    # See if we are running on zsh, and set the options that allow our
18145    # commands through without removal of \ escapes.
18146    if test -n "${ZSH_VERSION+set}"; then
18147      setopt NO_GLOB_SUBST
18148    fi
18149
18150    cfgfile=${ofile}T
18151    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18152    $RM "$cfgfile"
18153
18154    cat <<_LT_EOF >> "$cfgfile"
18155#! $SHELL
18156# Generated automatically by $as_me ($PACKAGE) $VERSION
18157# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18158# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18159
18160# Provide generalized library-building support services.
18161# Written by Gordon Matzigkeit, 1996
18162
18163# Copyright (C) 2014 Free Software Foundation, Inc.
18164# This is free software; see the source for copying conditions.  There is NO
18165# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18166
18167# GNU Libtool is free software; you can redistribute it and/or modify
18168# it under the terms of the GNU General Public License as published by
18169# the Free Software Foundation; either version 2 of of the License, or
18170# (at your option) any later version.
18171#
18172# As a special exception to the GNU General Public License, if you
18173# distribute this file as part of a program or library that is built
18174# using GNU Libtool, you may include this file under the  same
18175# distribution terms that you use for the rest of that program.
18176#
18177# GNU Libtool is distributed in the hope that it will be useful, but
18178# WITHOUT ANY WARRANTY; without even the implied warranty of
18179# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18180# GNU General Public License for more details.
18181#
18182# You should have received a copy of the GNU General Public License
18183# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18184
18185
18186# The names of the tagged configurations supported by this script.
18187available_tags='RC '
18188
18189# Configured defaults for sys_lib_dlsearch_path munging.
18190: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18191
18192# ### BEGIN LIBTOOL CONFIG
18193
18194# Which release of libtool.m4 was used?
18195macro_version=$macro_version
18196macro_revision=$macro_revision
18197
18198# Assembler program.
18199AS=$lt_AS
18200
18201# DLL creation program.
18202DLLTOOL=$lt_DLLTOOL
18203
18204# Object dumper program.
18205OBJDUMP=$lt_OBJDUMP
18206
18207# Whether or not to build shared libraries.
18208build_libtool_libs=$enable_shared
18209
18210# Whether or not to build static libraries.
18211build_old_libs=$enable_static
18212
18213# What type of objects to build.
18214pic_mode=$pic_mode
18215
18216# Whether or not to optimize for fast installation.
18217fast_install=$enable_fast_install
18218
18219# Shared archive member basename,for filename based shared library versioning on AIX.
18220shared_archive_member_spec=$shared_archive_member_spec
18221
18222# Shell to use when invoking shell scripts.
18223SHELL=$lt_SHELL
18224
18225# An echo program that protects backslashes.
18226ECHO=$lt_ECHO
18227
18228# The PATH separator for the build system.
18229PATH_SEPARATOR=$lt_PATH_SEPARATOR
18230
18231# The host system.
18232host_alias=$host_alias
18233host=$host
18234host_os=$host_os
18235
18236# The build system.
18237build_alias=$build_alias
18238build=$build
18239build_os=$build_os
18240
18241# A sed program that does not truncate output.
18242SED=$lt_SED
18243
18244# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18245Xsed="\$SED -e 1s/^X//"
18246
18247# A grep program that handles long lines.
18248GREP=$lt_GREP
18249
18250# An ERE matcher.
18251EGREP=$lt_EGREP
18252
18253# A literal string matcher.
18254FGREP=$lt_FGREP
18255
18256# A BSD- or MS-compatible name lister.
18257NM=$lt_NM
18258
18259# Whether we need soft or hard links.
18260LN_S=$lt_LN_S
18261
18262# What is the maximum length of a command?
18263max_cmd_len=$max_cmd_len
18264
18265# Object file suffix (normally "o").
18266objext=$ac_objext
18267
18268# Executable file suffix (normally "").
18269exeext=$exeext
18270
18271# whether the shell understands "unset".
18272lt_unset=$lt_unset
18273
18274# turn spaces into newlines.
18275SP2NL=$lt_lt_SP2NL
18276
18277# turn newlines into spaces.
18278NL2SP=$lt_lt_NL2SP
18279
18280# convert \$build file names to \$host format.
18281to_host_file_cmd=$lt_cv_to_host_file_cmd
18282
18283# convert \$build files to toolchain format.
18284to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18285
18286# A file(cmd) program that detects file types.
18287FILECMD=$lt_FILECMD
18288
18289# Method to check whether dependent libraries are shared objects.
18290deplibs_check_method=$lt_deplibs_check_method
18291
18292# Command to use when deplibs_check_method = "file_magic".
18293file_magic_cmd=$lt_file_magic_cmd
18294
18295# How to find potential files when deplibs_check_method = "file_magic".
18296file_magic_glob=$lt_file_magic_glob
18297
18298# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18299want_nocaseglob=$lt_want_nocaseglob
18300
18301# Command to associate shared and link libraries.
18302sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18303
18304# The archiver.
18305AR=$lt_AR
18306
18307# Flags to create an archive (by configure).
18308lt_ar_flags=$lt_ar_flags
18309
18310# Flags to create an archive.
18311AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18312
18313# How to feed a file listing to the archiver.
18314archiver_list_spec=$lt_archiver_list_spec
18315
18316# A symbol stripping program.
18317STRIP=$lt_STRIP
18318
18319# Commands used to install an old-style archive.
18320RANLIB=$lt_RANLIB
18321old_postinstall_cmds=$lt_old_postinstall_cmds
18322old_postuninstall_cmds=$lt_old_postuninstall_cmds
18323
18324# Whether to use a lock for old archive extraction.
18325lock_old_archive_extraction=$lock_old_archive_extraction
18326
18327# A C compiler.
18328LTCC=$lt_CC
18329
18330# LTCC compiler flags.
18331LTCFLAGS=$lt_CFLAGS
18332
18333# Take the output of nm and produce a listing of raw symbols and C names.
18334global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18335
18336# Transform the output of nm in a proper C declaration.
18337global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18338
18339# Transform the output of nm into a list of symbols to manually relocate.
18340global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18341
18342# Transform the output of nm in a C name address pair.
18343global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18344
18345# Transform the output of nm in a C name address pair when lib prefix is needed.
18346global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18347
18348# The name lister interface.
18349nm_interface=$lt_lt_cv_nm_interface
18350
18351# Specify filename containing input files for \$NM.
18352nm_file_list_spec=$lt_nm_file_list_spec
18353
18354# The root where to search for dependent libraries,and where our libraries should be installed.
18355lt_sysroot=$lt_sysroot
18356
18357# Command to truncate a binary pipe.
18358lt_truncate_bin=$lt_lt_cv_truncate_bin
18359
18360# The name of the directory that contains temporary libtool files.
18361objdir=$objdir
18362
18363# Used to examine libraries when file_magic_cmd begins with "file".
18364MAGIC_CMD=$MAGIC_CMD
18365
18366# Must we lock files when doing compilation?
18367need_locks=$lt_need_locks
18368
18369# Manifest tool.
18370MANIFEST_TOOL=$lt_MANIFEST_TOOL
18371
18372# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18373DSYMUTIL=$lt_DSYMUTIL
18374
18375# Tool to change global to local symbols on Mac OS X.
18376NMEDIT=$lt_NMEDIT
18377
18378# Tool to manipulate fat objects and archives on Mac OS X.
18379LIPO=$lt_LIPO
18380
18381# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18382OTOOL=$lt_OTOOL
18383
18384# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18385OTOOL64=$lt_OTOOL64
18386
18387# Old archive suffix (normally "a").
18388libext=$libext
18389
18390# Shared library suffix (normally ".so").
18391shrext_cmds=$lt_shrext_cmds
18392
18393# The commands to extract the exported symbol list from a shared archive.
18394extract_expsyms_cmds=$lt_extract_expsyms_cmds
18395
18396# Variables whose values should be saved in libtool wrapper scripts and
18397# restored at link time.
18398variables_saved_for_relink=$lt_variables_saved_for_relink
18399
18400# Do we need the "lib" prefix for modules?
18401need_lib_prefix=$need_lib_prefix
18402
18403# Do we need a version for libraries?
18404need_version=$need_version
18405
18406# Library versioning type.
18407version_type=$version_type
18408
18409# Shared library runtime path variable.
18410runpath_var=$runpath_var
18411
18412# Shared library path variable.
18413shlibpath_var=$shlibpath_var
18414
18415# Is shlibpath searched before the hard-coded library search path?
18416shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18417
18418# Format of library name prefix.
18419libname_spec=$lt_libname_spec
18420
18421# List of archive names.  First name is the real one, the rest are links.
18422# The last name is the one that the linker finds with -lNAME
18423library_names_spec=$lt_library_names_spec
18424
18425# The coded name of the library, if different from the real name.
18426soname_spec=$lt_soname_spec
18427
18428# Permission mode override for installation of shared libraries.
18429install_override_mode=$lt_install_override_mode
18430
18431# Command to use after installation of a shared archive.
18432postinstall_cmds=$lt_postinstall_cmds
18433
18434# Command to use after uninstallation of a shared archive.
18435postuninstall_cmds=$lt_postuninstall_cmds
18436
18437# Commands used to finish a libtool library installation in a directory.
18438finish_cmds=$lt_finish_cmds
18439
18440# As "finish_cmds", except a single script fragment to be evaled but
18441# not shown.
18442finish_eval=$lt_finish_eval
18443
18444# Whether we should hardcode library paths into libraries.
18445hardcode_into_libs=$hardcode_into_libs
18446
18447# Compile-time system search path for libraries.
18448sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18449
18450# Detected run-time system search path for libraries.
18451sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18452
18453# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18454configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18455
18456# Whether dlopen is supported.
18457dlopen_support=$enable_dlopen
18458
18459# Whether dlopen of programs is supported.
18460dlopen_self=$enable_dlopen_self
18461
18462# Whether dlopen of statically linked programs is supported.
18463dlopen_self_static=$enable_dlopen_self_static
18464
18465# Commands to strip libraries.
18466old_striplib=$lt_old_striplib
18467striplib=$lt_striplib
18468
18469
18470# The linker used to build libraries.
18471LD=$lt_LD
18472
18473# How to create reloadable object files.
18474reload_flag=$lt_reload_flag
18475reload_cmds=$lt_reload_cmds
18476
18477# Commands used to build an old-style archive.
18478old_archive_cmds=$lt_old_archive_cmds
18479
18480# A language specific compiler.
18481CC=$lt_compiler
18482
18483# Is the compiler the GNU compiler?
18484with_gcc=$GCC
18485
18486# Compiler flag to turn off builtin functions.
18487no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18488
18489# Additional compiler flags for building library objects.
18490pic_flag=$lt_lt_prog_compiler_pic
18491
18492# How to pass a linker flag through the compiler.
18493wl=$lt_lt_prog_compiler_wl
18494
18495# Compiler flag to prevent dynamic linking.
18496link_static_flag=$lt_lt_prog_compiler_static
18497
18498# Does compiler simultaneously support -c and -o options?
18499compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18500
18501# Whether or not to add -lc for building shared libraries.
18502build_libtool_need_lc=$archive_cmds_need_lc
18503
18504# Whether or not to disallow shared libs when runtime libs are static.
18505allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18506
18507# Compiler flag to allow reflexive dlopens.
18508export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18509
18510# Compiler flag to generate shared objects directly from archives.
18511whole_archive_flag_spec=$lt_whole_archive_flag_spec
18512
18513# Whether the compiler copes with passing no objects directly.
18514compiler_needs_object=$lt_compiler_needs_object
18515
18516# Create an old-style archive from a shared archive.
18517old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18518
18519# Create a temporary old-style archive to link instead of a shared archive.
18520old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18521
18522# Commands used to build a shared archive.
18523archive_cmds=$lt_archive_cmds
18524archive_expsym_cmds=$lt_archive_expsym_cmds
18525
18526# Commands used to build a loadable module if different from building
18527# a shared archive.
18528module_cmds=$lt_module_cmds
18529module_expsym_cmds=$lt_module_expsym_cmds
18530
18531# Whether we are building with GNU ld or not.
18532with_gnu_ld=$lt_with_gnu_ld
18533
18534# Flag that allows shared libraries with undefined symbols to be built.
18535allow_undefined_flag=$lt_allow_undefined_flag
18536
18537# Flag that enforces no undefined symbols.
18538no_undefined_flag=$lt_no_undefined_flag
18539
18540# Flag to hardcode \$libdir into a binary during linking.
18541# This must work even if \$libdir does not exist
18542hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18543
18544# Whether we need a single "-rpath" flag with a separated argument.
18545hardcode_libdir_separator=$lt_hardcode_libdir_separator
18546
18547# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18548# DIR into the resulting binary.
18549hardcode_direct=$hardcode_direct
18550
18551# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18552# DIR into the resulting binary and the resulting library dependency is
18553# "absolute",i.e impossible to change by setting \$shlibpath_var if the
18554# library is relocated.
18555hardcode_direct_absolute=$hardcode_direct_absolute
18556
18557# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18558# into the resulting binary.
18559hardcode_minus_L=$hardcode_minus_L
18560
18561# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18562# into the resulting binary.
18563hardcode_shlibpath_var=$hardcode_shlibpath_var
18564
18565# Set to "yes" if building a shared library automatically hardcodes DIR
18566# into the library and all subsequent libraries and executables linked
18567# against it.
18568hardcode_automatic=$hardcode_automatic
18569
18570# Set to yes if linker adds runtime paths of dependent libraries
18571# to runtime path list.
18572inherit_rpath=$inherit_rpath
18573
18574# Whether libtool must link a program against all its dependency libraries.
18575link_all_deplibs=$link_all_deplibs
18576
18577# Set to "yes" if exported symbols are required.
18578always_export_symbols=$always_export_symbols
18579
18580# The commands to list exported symbols.
18581export_symbols_cmds=$lt_export_symbols_cmds
18582
18583# Symbols that should not be listed in the preloaded symbols.
18584exclude_expsyms=$lt_exclude_expsyms
18585
18586# Symbols that must always be exported.
18587include_expsyms=$lt_include_expsyms
18588
18589# Commands necessary for linking programs (against libraries) with templates.
18590prelink_cmds=$lt_prelink_cmds
18591
18592# Commands necessary for finishing linking programs.
18593postlink_cmds=$lt_postlink_cmds
18594
18595# Specify filename containing input files.
18596file_list_spec=$lt_file_list_spec
18597
18598# How to hardcode a shared library path into an executable.
18599hardcode_action=$hardcode_action
18600
18601# ### END LIBTOOL CONFIG
18602
18603_LT_EOF
18604
18605    cat <<'_LT_EOF' >> "$cfgfile"
18606
18607# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18608
18609# func_munge_path_list VARIABLE PATH
18610# -----------------------------------
18611# VARIABLE is name of variable containing _space_ separated list of
18612# directories to be munged by the contents of PATH, which is string
18613# having a format:
18614# "DIR[:DIR]:"
18615#       string "DIR[ DIR]" will be prepended to VARIABLE
18616# ":DIR[:DIR]"
18617#       string "DIR[ DIR]" will be appended to VARIABLE
18618# "DIRP[:DIRP]::[DIRA:]DIRA"
18619#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18620#       "DIRA[ DIRA]" will be appended to VARIABLE
18621# "DIR[:DIR]"
18622#       VARIABLE will be replaced by "DIR[ DIR]"
18623func_munge_path_list ()
18624{
18625    case x$2 in
18626    x)
18627        ;;
18628    *:)
18629        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18630        ;;
18631    x:*)
18632        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18633        ;;
18634    *::*)
18635        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18636        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18637        ;;
18638    *)
18639        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18640        ;;
18641    esac
18642}
18643
18644
18645# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18646func_cc_basename ()
18647{
18648    for cc_temp in $*""; do
18649      case $cc_temp in
18650        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18651        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18652        \-*) ;;
18653        *) break;;
18654      esac
18655    done
18656    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18657}
18658
18659
18660# ### END FUNCTIONS SHARED WITH CONFIGURE
18661
18662_LT_EOF
18663
18664  case $host_os in
18665  aix3*)
18666    cat <<\_LT_EOF >> "$cfgfile"
18667# AIX sometimes has problems with the GCC collect2 program.  For some
18668# reason, if we set the COLLECT_NAMES environment variable, the problems
18669# vanish in a puff of smoke.
18670if test set != "${COLLECT_NAMES+set}"; then
18671  COLLECT_NAMES=
18672  export COLLECT_NAMES
18673fi
18674_LT_EOF
18675    ;;
18676  esac
18677
18678
18679
18680ltmain=$ac_aux_dir/ltmain.sh
18681
18682
18683  # We use sed instead of cat because bash on DJGPP gets confused if
18684  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18685  # text mode, it properly converts lines to CR/LF.  This bash problem
18686  # is reportedly fixed, but why not run on old versions too?
18687  $SED '$q' "$ltmain" >> "$cfgfile" \
18688     || (rm -f "$cfgfile"; exit 1)
18689
18690   mv -f "$cfgfile" "$ofile" ||
18691    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18692  chmod +x "$ofile"
18693
18694
18695    cat <<_LT_EOF >> "$ofile"
18696
18697# ### BEGIN LIBTOOL TAG CONFIG: RC
18698
18699# The linker used to build libraries.
18700LD=$lt_LD_RC
18701
18702# How to create reloadable object files.
18703reload_flag=$lt_reload_flag_RC
18704reload_cmds=$lt_reload_cmds_RC
18705
18706# Commands used to build an old-style archive.
18707old_archive_cmds=$lt_old_archive_cmds_RC
18708
18709# A language specific compiler.
18710CC=$lt_compiler_RC
18711
18712# Is the compiler the GNU compiler?
18713with_gcc=$GCC_RC
18714
18715# Compiler flag to turn off builtin functions.
18716no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18717
18718# Additional compiler flags for building library objects.
18719pic_flag=$lt_lt_prog_compiler_pic_RC
18720
18721# How to pass a linker flag through the compiler.
18722wl=$lt_lt_prog_compiler_wl_RC
18723
18724# Compiler flag to prevent dynamic linking.
18725link_static_flag=$lt_lt_prog_compiler_static_RC
18726
18727# Does compiler simultaneously support -c and -o options?
18728compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18729
18730# Whether or not to add -lc for building shared libraries.
18731build_libtool_need_lc=$archive_cmds_need_lc_RC
18732
18733# Whether or not to disallow shared libs when runtime libs are static.
18734allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18735
18736# Compiler flag to allow reflexive dlopens.
18737export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18738
18739# Compiler flag to generate shared objects directly from archives.
18740whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18741
18742# Whether the compiler copes with passing no objects directly.
18743compiler_needs_object=$lt_compiler_needs_object_RC
18744
18745# Create an old-style archive from a shared archive.
18746old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18747
18748# Create a temporary old-style archive to link instead of a shared archive.
18749old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18750
18751# Commands used to build a shared archive.
18752archive_cmds=$lt_archive_cmds_RC
18753archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18754
18755# Commands used to build a loadable module if different from building
18756# a shared archive.
18757module_cmds=$lt_module_cmds_RC
18758module_expsym_cmds=$lt_module_expsym_cmds_RC
18759
18760# Whether we are building with GNU ld or not.
18761with_gnu_ld=$lt_with_gnu_ld_RC
18762
18763# Flag that allows shared libraries with undefined symbols to be built.
18764allow_undefined_flag=$lt_allow_undefined_flag_RC
18765
18766# Flag that enforces no undefined symbols.
18767no_undefined_flag=$lt_no_undefined_flag_RC
18768
18769# Flag to hardcode \$libdir into a binary during linking.
18770# This must work even if \$libdir does not exist
18771hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18772
18773# Whether we need a single "-rpath" flag with a separated argument.
18774hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18775
18776# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18777# DIR into the resulting binary.
18778hardcode_direct=$hardcode_direct_RC
18779
18780# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18781# DIR into the resulting binary and the resulting library dependency is
18782# "absolute",i.e impossible to change by setting \$shlibpath_var if the
18783# library is relocated.
18784hardcode_direct_absolute=$hardcode_direct_absolute_RC
18785
18786# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18787# into the resulting binary.
18788hardcode_minus_L=$hardcode_minus_L_RC
18789
18790# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18791# into the resulting binary.
18792hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18793
18794# Set to "yes" if building a shared library automatically hardcodes DIR
18795# into the library and all subsequent libraries and executables linked
18796# against it.
18797hardcode_automatic=$hardcode_automatic_RC
18798
18799# Set to yes if linker adds runtime paths of dependent libraries
18800# to runtime path list.
18801inherit_rpath=$inherit_rpath_RC
18802
18803# Whether libtool must link a program against all its dependency libraries.
18804link_all_deplibs=$link_all_deplibs_RC
18805
18806# Set to "yes" if exported symbols are required.
18807always_export_symbols=$always_export_symbols_RC
18808
18809# The commands to list exported symbols.
18810export_symbols_cmds=$lt_export_symbols_cmds_RC
18811
18812# Symbols that should not be listed in the preloaded symbols.
18813exclude_expsyms=$lt_exclude_expsyms_RC
18814
18815# Symbols that must always be exported.
18816include_expsyms=$lt_include_expsyms_RC
18817
18818# Commands necessary for linking programs (against libraries) with templates.
18819prelink_cmds=$lt_prelink_cmds_RC
18820
18821# Commands necessary for finishing linking programs.
18822postlink_cmds=$lt_postlink_cmds_RC
18823
18824# Specify filename containing input files.
18825file_list_spec=$lt_file_list_spec_RC
18826
18827# How to hardcode a shared library path into an executable.
18828hardcode_action=$hardcode_action_RC
18829
18830# ### END LIBTOOL TAG CONFIG: RC
18831_LT_EOF
18832
18833 ;;
18834    "ftoption.h":F) mv ftoption.h ftoption.tmp
18835   eval "sed $FTOPTION_H_SED < ftoption.tmp > ftoption.h"
18836   rm ftoption.tmp ;;
18837
18838  esac
18839done # for ac_tag
18840
18841
18842as_fn_exit 0
18843_ACEOF
18844ac_clean_files=$ac_clean_files_save
18845
18846test $ac_write_fail = 0 ||
18847  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18848
18849
18850# configure is writing to config.log, and then calls config.status.
18851# config.status does its own redirection, appending to config.log.
18852# Unfortunately, on DOS this fails, as config.log is still kept open
18853# by configure, so config.status won't be able to write to it; its
18854# output is simply discarded.  So we exec the FD to /dev/null,
18855# effectively closing config.log, so it can be properly (re)opened and
18856# appended to by config.status.  When coming back to configure, we
18857# need to make the FD available again.
18858if test "$no_create" != yes; then
18859  ac_cs_success=:
18860  ac_config_status_args=
18861  test "$silent" = yes &&
18862    ac_config_status_args="$ac_config_status_args --quiet"
18863  exec 5>/dev/null
18864  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18865  exec 5>>config.log
18866  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18867  # would make configure fail if this is the last instruction.
18868  $ac_cs_success || as_fn_exit 1
18869fi
18870if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18872printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18873fi
18874
18875
18876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:
18877
18878Library configuration:
18879  external zlib: $have_zlib
18880  bzip2:         $have_bzip2
18881  libpng:        $have_libpng
18882  harfbuzz:      $have_harfbuzz
18883  brotli:        $have_brotli
18884  pthread:       $have_pthread
18885" >&5
18886printf "%s\n" "$as_me:
18887
18888Library configuration:
18889  external zlib: $have_zlib
18890  bzip2:         $have_bzip2
18891  libpng:        $have_libpng
18892  harfbuzz:      $have_harfbuzz
18893  brotli:        $have_brotli
18894  pthread:       $have_pthread
18895" >&6;}
18896
18897# Warn if docwriter is not installed
18898
18899if test $have_docwriter = no; then
18900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
18901  \`make refdoc' will fail since pip package \`docwriter' is not installed.
18902  To install, run \`$PIP install docwriter', or to use a Python
18903  virtual environment, run \`make refdoc-venv' (requires pip package
18904  \`virtualenv').  These operations require Python >= 3.5.
18905  " >&5
18906printf "%s\n" "$as_me: WARNING:
18907  \`make refdoc' will fail since pip package \`docwriter' is not installed.
18908  To install, run \`$PIP install docwriter', or to use a Python
18909  virtual environment, run \`make refdoc-venv' (requires pip package
18910  \`virtualenv').  These operations require Python >= 3.5.
18911  " >&2;}
18912fi
18913
18914# Warn if pthread is not available
18915
18916if test $have_pthread = no; then
18917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
18918  \`FT_DEBUG_LOGGING' will not work since the \`pthread' library is not
18919  available.  This warning can be safely ignored if you don't plan to use
18920  this configuration macro.
18921  " >&5
18922printf "%s\n" "$as_me: WARNING:
18923  \`FT_DEBUG_LOGGING' will not work since the \`pthread' library is not
18924  available.  This warning can be safely ignored if you don't plan to use
18925  this configuration macro.
18926  " >&2;}
18927fi
18928
18929# end of configure.raw
18930
18931