1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67 for FreeType 2.4.4.
4#
5# Report bugs to <freetype@nongnu.org>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: freetype@nongnu.org about your system, including any
235$0: error possibly output before this message. Then install
236$0: a modern shell, or manually run the script under such a
237$0: shell if you do have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error STATUS ERROR [LINENO LOG_FD]
363# ----------------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with STATUS, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$1; test $as_status -eq 0 && as_status=1
370  if test "$4"; then
371    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373  fi
374  $as_echo "$as_me: error: $2" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538  # Remove one level of quotation (which was required for Make).
539  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540  ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545  # Discard the --no-reexec flag, and continue.
546  shift
547elif test "X$1" = X--fallback-echo; then
548  # Avoid inline document here, it may be left over
549  :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551  # Yippee, $ECHO works!
552  :
553else
554  # Restart under the correct shell.
555  exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559  # used as fallback echo
560  shift
561  cat <<_LT_EOF
562$*
563_LT_EOF
564  exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572  if test "X${echo_test_string+set}" != Xset; then
573    # find a string as large as possible, as long as the shell can cope with it
574    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578      then
579        break
580      fi
581    done
582  fi
583
584  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586     test "X$echo_testing_string" = "X$echo_test_string"; then
587    :
588  else
589    # The Solaris, AIX, and Digital Unix default echo programs unquote
590    # backslashes.  This makes it impossible to quote backslashes using
591    #   echo "$something" | sed 's/\\/\\\\/g'
592    #
593    # So, first we look for a working echo in the user's PATH.
594
595    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596    for dir in $PATH /usr/ucb; do
597      IFS="$lt_save_ifs"
598      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601         test "X$echo_testing_string" = "X$echo_test_string"; then
602        ECHO="$dir/echo"
603        break
604      fi
605    done
606    IFS="$lt_save_ifs"
607
608    if test "X$ECHO" = Xecho; then
609      # We didn't find a better echo, so look for alternatives.
610      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612         test "X$echo_testing_string" = "X$echo_test_string"; then
613        # This shell has a builtin print -r that does the trick.
614        ECHO='print -r'
615      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616	   test "X$CONFIG_SHELL" != X/bin/ksh; then
617        # If we have ksh, try running configure again with it.
618        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619        export ORIGINAL_CONFIG_SHELL
620        CONFIG_SHELL=/bin/ksh
621        export CONFIG_SHELL
622        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623      else
624        # Try using printf.
625        ECHO='printf %s\n'
626        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628	   test "X$echo_testing_string" = "X$echo_test_string"; then
629	  # Cool, printf works
630	  :
631        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632	     test "X$echo_testing_string" = 'X\t' &&
633	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634	     test "X$echo_testing_string" = "X$echo_test_string"; then
635	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636	  export CONFIG_SHELL
637	  SHELL="$CONFIG_SHELL"
638	  export SHELL
639	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641	     test "X$echo_testing_string" = 'X\t' &&
642	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643	     test "X$echo_testing_string" = "X$echo_test_string"; then
644	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
645        else
646	  # maybe with a smaller string...
647	  prev=:
648
649	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651	    then
652	      break
653	    fi
654	    prev="$cmd"
655	  done
656
657	  if test "$prev" != 'sed 50q "$0"'; then
658	    echo_test_string=`eval $prev`
659	    export echo_test_string
660	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661	  else
662	    # Oops.  We lost completely, so just stick with echo.
663	    ECHO=echo
664	  fi
665        fi
666      fi
667    fi
668  fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
683
684# Name of the host.
685# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
693ac_clean_files=
694ac_config_libobj_dir=.
695LIBOBJS=
696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
700
701# Identity of this package.
702PACKAGE_NAME='FreeType'
703PACKAGE_TARNAME='freetype'
704PACKAGE_VERSION='2.4.4'
705PACKAGE_STRING='FreeType 2.4.4'
706PACKAGE_BUGREPORT='freetype@nongnu.org'
707PACKAGE_URL=''
708
709ac_unique_file="ftconfig.in"
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
713#ifdef HAVE_SYS_TYPES_H
714# include <sys/types.h>
715#endif
716#ifdef HAVE_SYS_STAT_H
717# include <sys/stat.h>
718#endif
719#ifdef STDC_HEADERS
720# include <stdlib.h>
721# include <stddef.h>
722#else
723# ifdef HAVE_STDLIB_H
724#  include <stdlib.h>
725# endif
726#endif
727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729#  include <memory.h>
730# endif
731# include <string.h>
732#endif
733#ifdef HAVE_STRINGS_H
734# include <strings.h>
735#endif
736#ifdef HAVE_INTTYPES_H
737# include <inttypes.h>
738#endif
739#ifdef HAVE_STDINT_H
740# include <stdint.h>
741#endif
742#ifdef HAVE_UNISTD_H
743# include <unistd.h>
744#endif"
745
746ac_header_list=
747ac_subst_vars='LTLIBOBJS
748LIBOBJS
749build_libtool_libs
750wl
751hardcode_libdir_flag_spec
752OTOOL64
753OTOOL
754LIPO
755NMEDIT
756DSYMUTIL
757lt_ECHO
758RANLIB
759STRIP
760AR
761LN_S
762NM
763ac_ct_DUMPBIN
764DUMPBIN
765LD
766FGREP
767SED
768LIBTOOL
769OBJDUMP
770DLLTOOL
771AS
772SYSTEM_ZLIB
773FT2_EXTRA_LIBS
774LIBZ
775ftmac_c
776FTSYS_SRC
777EGREP
778GREP
779INSTALL_DATA
780INSTALL_SCRIPT
781INSTALL_PROGRAM
782RMDIR
783RMF
784XX_ANSIFLAGS
785XX_CFLAGS
786EXEEXT_BUILD
787CC_BUILD
788CPP
789OBJEXT
790EXEEXT
791ac_ct_CC
792CPPFLAGS
793LDFLAGS
794CFLAGS
795CC
796host_os
797host_vendor
798host_cpu
799host
800build_os
801build_vendor
802build_cpu
803build
804ft_version
805version_info
806target_alias
807host_alias
808build_alias
809LIBS
810ECHO_T
811ECHO_N
812ECHO_C
813DEFS
814mandir
815localedir
816libdir
817psdir
818pdfdir
819dvidir
820htmldir
821infodir
822docdir
823oldincludedir
824includedir
825localstatedir
826sharedstatedir
827sysconfdir
828datadir
829datarootdir
830libexecdir
831sbindir
832bindir
833program_transform_name
834prefix
835exec_prefix
836PACKAGE_URL
837PACKAGE_BUGREPORT
838PACKAGE_STRING
839PACKAGE_VERSION
840PACKAGE_TARNAME
841PACKAGE_NAME
842PATH_SEPARATOR
843SHELL'
844ac_subst_files=''
845ac_user_opts='
846enable_option_checking
847enable_biarch_config
848with_zlib
849with_old_mac_fonts
850with_fsspec
851with_fsref
852with_quickdraw_toolbox
853with_quickdraw_carbon
854with_ats
855enable_shared
856enable_static
857with_pic
858enable_fast_install
859with_gnu_ld
860enable_libtool_lock
861'
862      ac_precious_vars='build_alias
863host_alias
864target_alias
865CC
866CFLAGS
867LDFLAGS
868LIBS
869CPPFLAGS
870CPP'
871
872
873# Initialize some variables set by options.
874ac_init_help=
875ac_init_version=false
876ac_unrecognized_opts=
877ac_unrecognized_sep=
878# The variables have the same names as the options, with
879# dashes changed to underlines.
880cache_file=/dev/null
881exec_prefix=NONE
882no_create=
883no_recursion=
884prefix=NONE
885program_prefix=NONE
886program_suffix=NONE
887program_transform_name=s,x,x,
888silent=
889site=
890srcdir=
891verbose=
892x_includes=NONE
893x_libraries=NONE
894
895# Installation directory options.
896# These are left unexpanded so users can "make install exec_prefix=/foo"
897# and all the variables that are supposed to be based on exec_prefix
898# by default will actually change.
899# Use braces instead of parens because sh, perl, etc. also accept them.
900# (The list follows the same order as the GNU Coding Standards.)
901bindir='${exec_prefix}/bin'
902sbindir='${exec_prefix}/sbin'
903libexecdir='${exec_prefix}/libexec'
904datarootdir='${prefix}/share'
905datadir='${datarootdir}'
906sysconfdir='${prefix}/etc'
907sharedstatedir='${prefix}/com'
908localstatedir='${prefix}/var'
909includedir='${prefix}/include'
910oldincludedir='/usr/include'
911docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
912infodir='${datarootdir}/info'
913htmldir='${docdir}'
914dvidir='${docdir}'
915pdfdir='${docdir}'
916psdir='${docdir}'
917libdir='${exec_prefix}/lib'
918localedir='${datarootdir}/locale'
919mandir='${datarootdir}/man'
920
921ac_prev=
922ac_dashdash=
923for ac_option
924do
925  # If the previous option needs an argument, assign it.
926  if test -n "$ac_prev"; then
927    eval $ac_prev=\$ac_option
928    ac_prev=
929    continue
930  fi
931
932  case $ac_option in
933  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934  *=)   ac_optarg= ;;
935  *)    ac_optarg=yes ;;
936  esac
937
938  # Accept the important Cygnus configure options, so we can diagnose typos.
939
940  case $ac_dashdash$ac_option in
941  --)
942    ac_dashdash=yes ;;
943
944  -bindir | --bindir | --bindi | --bind | --bin | --bi)
945    ac_prev=bindir ;;
946  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
947    bindir=$ac_optarg ;;
948
949  -build | --build | --buil | --bui | --bu)
950    ac_prev=build_alias ;;
951  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
952    build_alias=$ac_optarg ;;
953
954  -cache-file | --cache-file | --cache-fil | --cache-fi \
955  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956    ac_prev=cache_file ;;
957  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959    cache_file=$ac_optarg ;;
960
961  --config-cache | -C)
962    cache_file=config.cache ;;
963
964  -datadir | --datadir | --datadi | --datad)
965    ac_prev=datadir ;;
966  -datadir=* | --datadir=* | --datadi=* | --datad=*)
967    datadir=$ac_optarg ;;
968
969  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970  | --dataroo | --dataro | --datar)
971    ac_prev=datarootdir ;;
972  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974    datarootdir=$ac_optarg ;;
975
976  -disable-* | --disable-*)
977    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
978    # Reject names that are not valid shell variable names.
979    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980      as_fn_error $? "invalid feature name: $ac_useropt"
981    ac_useropt_orig=$ac_useropt
982    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983    case $ac_user_opts in
984      *"
985"enable_$ac_useropt"
986"*) ;;
987      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988	 ac_unrecognized_sep=', ';;
989    esac
990    eval enable_$ac_useropt=no ;;
991
992  -docdir | --docdir | --docdi | --doc | --do)
993    ac_prev=docdir ;;
994  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995    docdir=$ac_optarg ;;
996
997  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998    ac_prev=dvidir ;;
999  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000    dvidir=$ac_optarg ;;
1001
1002  -enable-* | --enable-*)
1003    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004    # Reject names that are not valid shell variable names.
1005    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006      as_fn_error $? "invalid feature name: $ac_useropt"
1007    ac_useropt_orig=$ac_useropt
1008    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009    case $ac_user_opts in
1010      *"
1011"enable_$ac_useropt"
1012"*) ;;
1013      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1014	 ac_unrecognized_sep=', ';;
1015    esac
1016    eval enable_$ac_useropt=\$ac_optarg ;;
1017
1018  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020  | --exec | --exe | --ex)
1021    ac_prev=exec_prefix ;;
1022  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024  | --exec=* | --exe=* | --ex=*)
1025    exec_prefix=$ac_optarg ;;
1026
1027  -gas | --gas | --ga | --g)
1028    # Obsolete; use --with-gas.
1029    with_gas=yes ;;
1030
1031  -help | --help | --hel | --he | -h)
1032    ac_init_help=long ;;
1033  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034    ac_init_help=recursive ;;
1035  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036    ac_init_help=short ;;
1037
1038  -host | --host | --hos | --ho)
1039    ac_prev=host_alias ;;
1040  -host=* | --host=* | --hos=* | --ho=*)
1041    host_alias=$ac_optarg ;;
1042
1043  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044    ac_prev=htmldir ;;
1045  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046  | --ht=*)
1047    htmldir=$ac_optarg ;;
1048
1049  -includedir | --includedir | --includedi | --included | --include \
1050  | --includ | --inclu | --incl | --inc)
1051    ac_prev=includedir ;;
1052  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053  | --includ=* | --inclu=* | --incl=* | --inc=*)
1054    includedir=$ac_optarg ;;
1055
1056  -infodir | --infodir | --infodi | --infod | --info | --inf)
1057    ac_prev=infodir ;;
1058  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059    infodir=$ac_optarg ;;
1060
1061  -libdir | --libdir | --libdi | --libd)
1062    ac_prev=libdir ;;
1063  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064    libdir=$ac_optarg ;;
1065
1066  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067  | --libexe | --libex | --libe)
1068    ac_prev=libexecdir ;;
1069  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070  | --libexe=* | --libex=* | --libe=*)
1071    libexecdir=$ac_optarg ;;
1072
1073  -localedir | --localedir | --localedi | --localed | --locale)
1074    ac_prev=localedir ;;
1075  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076    localedir=$ac_optarg ;;
1077
1078  -localstatedir | --localstatedir | --localstatedi | --localstated \
1079  | --localstate | --localstat | --localsta | --localst | --locals)
1080    ac_prev=localstatedir ;;
1081  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083    localstatedir=$ac_optarg ;;
1084
1085  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086    ac_prev=mandir ;;
1087  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088    mandir=$ac_optarg ;;
1089
1090  -nfp | --nfp | --nf)
1091    # Obsolete; use --without-fp.
1092    with_fp=no ;;
1093
1094  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095  | --no-cr | --no-c | -n)
1096    no_create=yes ;;
1097
1098  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100    no_recursion=yes ;;
1101
1102  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104  | --oldin | --oldi | --old | --ol | --o)
1105    ac_prev=oldincludedir ;;
1106  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109    oldincludedir=$ac_optarg ;;
1110
1111  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112    ac_prev=prefix ;;
1113  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114    prefix=$ac_optarg ;;
1115
1116  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117  | --program-pre | --program-pr | --program-p)
1118    ac_prev=program_prefix ;;
1119  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121    program_prefix=$ac_optarg ;;
1122
1123  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124  | --program-suf | --program-su | --program-s)
1125    ac_prev=program_suffix ;;
1126  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128    program_suffix=$ac_optarg ;;
1129
1130  -program-transform-name | --program-transform-name \
1131  | --program-transform-nam | --program-transform-na \
1132  | --program-transform-n | --program-transform- \
1133  | --program-transform | --program-transfor \
1134  | --program-transfo | --program-transf \
1135  | --program-trans | --program-tran \
1136  | --progr-tra | --program-tr | --program-t)
1137    ac_prev=program_transform_name ;;
1138  -program-transform-name=* | --program-transform-name=* \
1139  | --program-transform-nam=* | --program-transform-na=* \
1140  | --program-transform-n=* | --program-transform-=* \
1141  | --program-transform=* | --program-transfor=* \
1142  | --program-transfo=* | --program-transf=* \
1143  | --program-trans=* | --program-tran=* \
1144  | --progr-tra=* | --program-tr=* | --program-t=*)
1145    program_transform_name=$ac_optarg ;;
1146
1147  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148    ac_prev=pdfdir ;;
1149  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150    pdfdir=$ac_optarg ;;
1151
1152  -psdir | --psdir | --psdi | --psd | --ps)
1153    ac_prev=psdir ;;
1154  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155    psdir=$ac_optarg ;;
1156
1157  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158  | -silent | --silent | --silen | --sile | --sil)
1159    silent=yes ;;
1160
1161  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162    ac_prev=sbindir ;;
1163  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164  | --sbi=* | --sb=*)
1165    sbindir=$ac_optarg ;;
1166
1167  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169  | --sharedst | --shareds | --shared | --share | --shar \
1170  | --sha | --sh)
1171    ac_prev=sharedstatedir ;;
1172  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175  | --sha=* | --sh=*)
1176    sharedstatedir=$ac_optarg ;;
1177
1178  -site | --site | --sit)
1179    ac_prev=site ;;
1180  -site=* | --site=* | --sit=*)
1181    site=$ac_optarg ;;
1182
1183  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184    ac_prev=srcdir ;;
1185  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186    srcdir=$ac_optarg ;;
1187
1188  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189  | --syscon | --sysco | --sysc | --sys | --sy)
1190    ac_prev=sysconfdir ;;
1191  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193    sysconfdir=$ac_optarg ;;
1194
1195  -target | --target | --targe | --targ | --tar | --ta | --t)
1196    ac_prev=target_alias ;;
1197  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198    target_alias=$ac_optarg ;;
1199
1200  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201    verbose=yes ;;
1202
1203  -version | --version | --versio | --versi | --vers | -V)
1204    ac_init_version=: ;;
1205
1206  -with-* | --with-*)
1207    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208    # Reject names that are not valid shell variable names.
1209    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210      as_fn_error $? "invalid package name: $ac_useropt"
1211    ac_useropt_orig=$ac_useropt
1212    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213    case $ac_user_opts in
1214      *"
1215"with_$ac_useropt"
1216"*) ;;
1217      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218	 ac_unrecognized_sep=', ';;
1219    esac
1220    eval with_$ac_useropt=\$ac_optarg ;;
1221
1222  -without-* | --without-*)
1223    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224    # Reject names that are not valid shell variable names.
1225    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226      as_fn_error $? "invalid package name: $ac_useropt"
1227    ac_useropt_orig=$ac_useropt
1228    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229    case $ac_user_opts in
1230      *"
1231"with_$ac_useropt"
1232"*) ;;
1233      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234	 ac_unrecognized_sep=', ';;
1235    esac
1236    eval with_$ac_useropt=no ;;
1237
1238  --x)
1239    # Obsolete; use --with-x.
1240    with_x=yes ;;
1241
1242  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243  | --x-incl | --x-inc | --x-in | --x-i)
1244    ac_prev=x_includes ;;
1245  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247    x_includes=$ac_optarg ;;
1248
1249  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251    ac_prev=x_libraries ;;
1252  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254    x_libraries=$ac_optarg ;;
1255
1256  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257Try \`$0 --help' for more information"
1258    ;;
1259
1260  *=*)
1261    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262    # Reject names that are not valid shell variable names.
1263    case $ac_envvar in #(
1264      '' | [0-9]* | *[!_$as_cr_alnum]* )
1265      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1266    esac
1267    eval $ac_envvar=\$ac_optarg
1268    export $ac_envvar ;;
1269
1270  *)
1271    # FIXME: should be removed in autoconf 3.0.
1272    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276    ;;
1277
1278  esac
1279done
1280
1281if test -n "$ac_prev"; then
1282  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283  as_fn_error $? "missing argument to $ac_option"
1284fi
1285
1286if test -n "$ac_unrecognized_opts"; then
1287  case $enable_option_checking in
1288    no) ;;
1289    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291  esac
1292fi
1293
1294# Check all directory arguments for consistency.
1295for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296		datadir sysconfdir sharedstatedir localstatedir includedir \
1297		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298		libdir localedir mandir
1299do
1300  eval ac_val=\$$ac_var
1301  # Remove trailing slashes.
1302  case $ac_val in
1303    */ )
1304      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305      eval $ac_var=\$ac_val;;
1306  esac
1307  # Be sure to have absolute directory names.
1308  case $ac_val in
1309    [\\/$]* | ?:[\\/]* )  continue;;
1310    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311  esac
1312  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313done
1314
1315# There might be people who depend on the old broken behavior: `$host'
1316# used to hold the argument of --host etc.
1317# FIXME: To remove some day.
1318build=$build_alias
1319host=$host_alias
1320target=$target_alias
1321
1322# FIXME: To remove some day.
1323if test "x$host_alias" != x; then
1324  if test "x$build_alias" = x; then
1325    cross_compiling=maybe
1326    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1327    If a cross compiler is detected then cross compile mode will be used" >&2
1328  elif test "x$build_alias" != "x$host_alias"; then
1329    cross_compiling=yes
1330  fi
1331fi
1332
1333ac_tool_prefix=
1334test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336test "$silent" = yes && exec 6>/dev/null
1337
1338
1339ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340ac_ls_di=`ls -di .` &&
1341ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342  as_fn_error $? "working directory cannot be determined"
1343test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344  as_fn_error $? "pwd does not report name of working directory"
1345
1346
1347# Find the source files, if location was not specified.
1348if test -z "$srcdir"; then
1349  ac_srcdir_defaulted=yes
1350  # Try the directory containing this script, then the parent directory.
1351  ac_confdir=`$as_dirname -- "$as_myself" ||
1352$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353	 X"$as_myself" : 'X\(//\)[^/]' \| \
1354	 X"$as_myself" : 'X\(//\)$' \| \
1355	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356$as_echo X"$as_myself" |
1357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358	    s//\1/
1359	    q
1360	  }
1361	  /^X\(\/\/\)[^/].*/{
1362	    s//\1/
1363	    q
1364	  }
1365	  /^X\(\/\/\)$/{
1366	    s//\1/
1367	    q
1368	  }
1369	  /^X\(\/\).*/{
1370	    s//\1/
1371	    q
1372	  }
1373	  s/.*/./; q'`
1374  srcdir=$ac_confdir
1375  if test ! -r "$srcdir/$ac_unique_file"; then
1376    srcdir=..
1377  fi
1378else
1379  ac_srcdir_defaulted=no
1380fi
1381if test ! -r "$srcdir/$ac_unique_file"; then
1382  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384fi
1385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386ac_abs_confdir=`(
1387	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388	pwd)`
1389# When building in place, set srcdir=.
1390if test "$ac_abs_confdir" = "$ac_pwd"; then
1391  srcdir=.
1392fi
1393# Remove unnecessary trailing slashes from srcdir.
1394# Double slashes in file names in object file debugging info
1395# mess up M-x gdb in Emacs.
1396case $srcdir in
1397*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398esac
1399for ac_var in $ac_precious_vars; do
1400  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401  eval ac_env_${ac_var}_value=\$${ac_var}
1402  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404done
1405
1406#
1407# Report the --help message.
1408#
1409if test "$ac_init_help" = "long"; then
1410  # Omit some internal or obsolete options to make the list less imposing.
1411  # This message is too long to be a string in the A/UX 3.1 sh.
1412  cat <<_ACEOF
1413\`configure' configures FreeType 2.4.4 to adapt to many kinds of systems.
1414
1415Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420Defaults for the options are specified in brackets.
1421
1422Configuration:
1423  -h, --help              display this help and exit
1424      --help=short        display options specific to this package
1425      --help=recursive    display the short help of all the included packages
1426  -V, --version           display version information and exit
1427  -q, --quiet, --silent   do not print \`checking ...' messages
1428      --cache-file=FILE   cache test results in FILE [disabled]
1429  -C, --config-cache      alias for \`--cache-file=config.cache'
1430  -n, --no-create         do not create output files
1431      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433Installation directories:
1434  --prefix=PREFIX         install architecture-independent files in PREFIX
1435                          [$ac_default_prefix]
1436  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                          [PREFIX]
1438
1439By default, \`make install' will install all the files in
1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442for instance \`--prefix=\$HOME'.
1443
1444For better control, use the options below.
1445
1446Fine tuning of the installation directories:
1447  --bindir=DIR            user executables [EPREFIX/bin]
1448  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1449  --libexecdir=DIR        program executables [EPREFIX/libexec]
1450  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1451  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1452  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1453  --libdir=DIR            object code libraries [EPREFIX/lib]
1454  --includedir=DIR        C header files [PREFIX/include]
1455  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1456  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1457  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1458  --infodir=DIR           info documentation [DATAROOTDIR/info]
1459  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1460  --mandir=DIR            man documentation [DATAROOTDIR/man]
1461  --docdir=DIR            documentation root [DATAROOTDIR/doc/freetype]
1462  --htmldir=DIR           html documentation [DOCDIR]
1463  --dvidir=DIR            dvi documentation [DOCDIR]
1464  --pdfdir=DIR            pdf documentation [DOCDIR]
1465  --psdir=DIR             ps documentation [DOCDIR]
1466_ACEOF
1467
1468  cat <<\_ACEOF
1469
1470System types:
1471  --build=BUILD     configure for building on BUILD [guessed]
1472  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473_ACEOF
1474fi
1475
1476if test -n "$ac_init_help"; then
1477  case $ac_init_help in
1478     short | recursive ) echo "Configuration of FreeType 2.4.4:";;
1479   esac
1480  cat <<\_ACEOF
1481
1482Optional Features:
1483  --disable-option-checking  ignore unrecognized --enable/--with options
1484  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486  --enable-biarch-config  install biarch ftconfig.h to support multiple
1487                          architectures by single file
1488  --enable-shared[=PKGS]  build shared libraries [default=yes]
1489  --enable-static[=PKGS]  build static libraries [default=yes]
1490  --enable-fast-install[=PKGS]
1491                          optimize for fast installation [default=yes]
1492  --disable-libtool-lock  avoid locking (might break parallel builds)
1493
1494Optional Packages:
1495  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1496  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1497  --without-zlib          use internal zlib instead of system-wide
1498  --with-old-mac-fonts    allow Mac resource-based fonts to be used
1499  --with-fsspec           use obsolete FSSpec API of MacOS, if available
1500                          (default=yes)
1501  --with-fsref            use Carbon FSRef API of MacOS, if available
1502                          (default=yes)
1503  --with-quickdraw-toolbox
1504                          use MacOS QuickDraw in ToolBox, if available
1505                          (default=yes)
1506  --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1507                          (default=yes)
1508  --with-ats              use AppleTypeService, if available (default=yes)
1509  --with-pic              try to use only PIC/non-PIC objects [default=use
1510                          both]
1511  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1512
1513Some influential environment variables:
1514  CC          C compiler command
1515  CFLAGS      C compiler flags
1516  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1517              nonstandard directory <lib dir>
1518  LIBS        libraries to pass to the linker, e.g. -l<library>
1519  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520              you have headers in a nonstandard directory <include dir>
1521  CPP         C preprocessor
1522
1523Use these variables to override the choices made by `configure' or to help
1524it to find libraries and programs with nonstandard names/locations.
1525
1526Report bugs to <freetype@nongnu.org>.
1527_ACEOF
1528ac_status=$?
1529fi
1530
1531if test "$ac_init_help" = "recursive"; then
1532  # If there are subdirs, report their specific --help.
1533  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534    test -d "$ac_dir" ||
1535      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1536      continue
1537    ac_builddir=.
1538
1539case "$ac_dir" in
1540.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541*)
1542  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543  # A ".." for each directory in $ac_dir_suffix.
1544  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545  case $ac_top_builddir_sub in
1546  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548  esac ;;
1549esac
1550ac_abs_top_builddir=$ac_pwd
1551ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552# for backward compatibility:
1553ac_top_builddir=$ac_top_build_prefix
1554
1555case $srcdir in
1556  .)  # We are building in place.
1557    ac_srcdir=.
1558    ac_top_srcdir=$ac_top_builddir_sub
1559    ac_abs_top_srcdir=$ac_pwd ;;
1560  [\\/]* | ?:[\\/]* )  # Absolute name.
1561    ac_srcdir=$srcdir$ac_dir_suffix;
1562    ac_top_srcdir=$srcdir
1563    ac_abs_top_srcdir=$srcdir ;;
1564  *) # Relative name.
1565    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566    ac_top_srcdir=$ac_top_build_prefix$srcdir
1567    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568esac
1569ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570
1571    cd "$ac_dir" || { ac_status=$?; continue; }
1572    # Check for guested configure.
1573    if test -f "$ac_srcdir/configure.gnu"; then
1574      echo &&
1575      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576    elif test -f "$ac_srcdir/configure"; then
1577      echo &&
1578      $SHELL "$ac_srcdir/configure" --help=recursive
1579    else
1580      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581    fi || ac_status=$?
1582    cd "$ac_pwd" || { ac_status=$?; break; }
1583  done
1584fi
1585
1586test -n "$ac_init_help" && exit $ac_status
1587if $ac_init_version; then
1588  cat <<\_ACEOF
1589FreeType configure 2.4.4
1590generated by GNU Autoconf 2.67
1591
1592Copyright (C) 2010 Free Software Foundation, Inc.
1593This configure script is free software; the Free Software Foundation
1594gives unlimited permission to copy, distribute and modify it.
1595_ACEOF
1596  exit
1597fi
1598
1599## ------------------------ ##
1600## Autoconf initialization. ##
1601## ------------------------ ##
1602
1603# ac_fn_c_try_compile LINENO
1604# --------------------------
1605# Try to compile conftest.$ac_ext, and return whether this succeeded.
1606ac_fn_c_try_compile ()
1607{
1608  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609  rm -f conftest.$ac_objext
1610  if { { ac_try="$ac_compile"
1611case "(($ac_try" in
1612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613  *) ac_try_echo=$ac_try;;
1614esac
1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616$as_echo "$ac_try_echo"; } >&5
1617  (eval "$ac_compile") 2>conftest.err
1618  ac_status=$?
1619  if test -s conftest.err; then
1620    grep -v '^ *+' conftest.err >conftest.er1
1621    cat conftest.er1 >&5
1622    mv -f conftest.er1 conftest.err
1623  fi
1624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625  test $ac_status = 0; } && {
1626	 test -z "$ac_c_werror_flag" ||
1627	 test ! -s conftest.err
1628       } && test -s conftest.$ac_objext; then :
1629  ac_retval=0
1630else
1631  $as_echo "$as_me: failed program was:" >&5
1632sed 's/^/| /' conftest.$ac_ext >&5
1633
1634	ac_retval=1
1635fi
1636  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1637  as_fn_set_status $ac_retval
1638
1639} # ac_fn_c_try_compile
1640
1641# ac_fn_c_try_cpp LINENO
1642# ----------------------
1643# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644ac_fn_c_try_cpp ()
1645{
1646  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647  if { { ac_try="$ac_cpp conftest.$ac_ext"
1648case "(($ac_try" in
1649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650  *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655  ac_status=$?
1656  if test -s conftest.err; then
1657    grep -v '^ *+' conftest.err >conftest.er1
1658    cat conftest.er1 >&5
1659    mv -f conftest.er1 conftest.err
1660  fi
1661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662  test $ac_status = 0; } > conftest.i && {
1663	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664	 test ! -s conftest.err
1665       }; then :
1666  ac_retval=0
1667else
1668  $as_echo "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671    ac_retval=1
1672fi
1673  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674  as_fn_set_status $ac_retval
1675
1676} # ac_fn_c_try_cpp
1677
1678# ac_fn_c_try_run LINENO
1679# ----------------------
1680# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681# that executables *can* be run.
1682ac_fn_c_try_run ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  if { { ac_try="$ac_link"
1686case "(($ac_try" in
1687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688  *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692  (eval "$ac_link") 2>&5
1693  ac_status=$?
1694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696  { { case "(($ac_try" in
1697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698  *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702  (eval "$ac_try") 2>&5
1703  ac_status=$?
1704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705  test $ac_status = 0; }; }; then :
1706  ac_retval=0
1707else
1708  $as_echo "$as_me: program exited with status $ac_status" >&5
1709       $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712       ac_retval=$ac_status
1713fi
1714  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716  as_fn_set_status $ac_retval
1717
1718} # ac_fn_c_try_run
1719
1720# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1721# -------------------------------------------------------
1722# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1723# the include files in INCLUDES and setting the cache variable VAR
1724# accordingly.
1725ac_fn_c_check_header_mongrel ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  if eval "test \"\${$3+set}\"" = set; then :
1729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730$as_echo_n "checking for $2... " >&6; }
1731if eval "test \"\${$3+set}\"" = set; then :
1732  $as_echo_n "(cached) " >&6
1733fi
1734eval ac_res=\$$3
1735	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736$as_echo "$ac_res" >&6; }
1737else
1738  # Is the header compilable?
1739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1740$as_echo_n "checking $2 usability... " >&6; }
1741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742/* end confdefs.h.  */
1743$4
1744#include <$2>
1745_ACEOF
1746if ac_fn_c_try_compile "$LINENO"; then :
1747  ac_header_compiler=yes
1748else
1749  ac_header_compiler=no
1750fi
1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1753$as_echo "$ac_header_compiler" >&6; }
1754
1755# Is the header present?
1756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1757$as_echo_n "checking $2 presence... " >&6; }
1758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759/* end confdefs.h.  */
1760#include <$2>
1761_ACEOF
1762if ac_fn_c_try_cpp "$LINENO"; then :
1763  ac_header_preproc=yes
1764else
1765  ac_header_preproc=no
1766fi
1767rm -f conftest.err conftest.i conftest.$ac_ext
1768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1769$as_echo "$ac_header_preproc" >&6; }
1770
1771# So?  What about this header?
1772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1773  yes:no: )
1774    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1775$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1776    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1778    ;;
1779  no:yes:* )
1780    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1781$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1782    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1783$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1784    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1785$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1786    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1787$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1788    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790( $as_echo "## ---------------------------------- ##
1791## Report this to freetype@nongnu.org ##
1792## ---------------------------------- ##"[]
1793     ) | sed "s/^/$as_me: WARNING:     /" >&2
1794    ;;
1795esac
1796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797$as_echo_n "checking for $2... " >&6; }
1798if eval "test \"\${$3+set}\"" = set; then :
1799  $as_echo_n "(cached) " >&6
1800else
1801  eval "$3=\$ac_header_compiler"
1802fi
1803eval ac_res=\$$3
1804	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805$as_echo "$ac_res" >&6; }
1806fi
1807  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808
1809} # ac_fn_c_check_header_mongrel
1810
1811# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1812# -------------------------------------------------------
1813# Tests whether HEADER exists and can be compiled using the include files in
1814# INCLUDES, setting the cache variable VAR accordingly.
1815ac_fn_c_check_header_compile ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819$as_echo_n "checking for $2... " >&6; }
1820if eval "test \"\${$3+set}\"" = set; then :
1821  $as_echo_n "(cached) " >&6
1822else
1823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h.  */
1825$4
1826#include <$2>
1827_ACEOF
1828if ac_fn_c_try_compile "$LINENO"; then :
1829  eval "$3=yes"
1830else
1831  eval "$3=no"
1832fi
1833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834fi
1835eval ac_res=\$$3
1836	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837$as_echo "$ac_res" >&6; }
1838  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839
1840} # ac_fn_c_check_header_compile
1841
1842# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1843# --------------------------------------------
1844# Tries to find the compile-time value of EXPR in a program that includes
1845# INCLUDES, setting VAR accordingly. Returns whether the value could be
1846# computed
1847ac_fn_c_compute_int ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  if test "$cross_compiling" = yes; then
1851    # Depending upon the size, compute the lo and hi bounds.
1852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h.  */
1854$4
1855int
1856main ()
1857{
1858static int test_array [1 - 2 * !(($2) >= 0)];
1859test_array [0] = 0
1860
1861  ;
1862  return 0;
1863}
1864_ACEOF
1865if ac_fn_c_try_compile "$LINENO"; then :
1866  ac_lo=0 ac_mid=0
1867  while :; do
1868    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h.  */
1870$4
1871int
1872main ()
1873{
1874static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1875test_array [0] = 0
1876
1877  ;
1878  return 0;
1879}
1880_ACEOF
1881if ac_fn_c_try_compile "$LINENO"; then :
1882  ac_hi=$ac_mid; break
1883else
1884  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1885			if test $ac_lo -le $ac_mid; then
1886			  ac_lo= ac_hi=
1887			  break
1888			fi
1889			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1890fi
1891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892  done
1893else
1894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h.  */
1896$4
1897int
1898main ()
1899{
1900static int test_array [1 - 2 * !(($2) < 0)];
1901test_array [0] = 0
1902
1903  ;
1904  return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_compile "$LINENO"; then :
1908  ac_hi=-1 ac_mid=-1
1909  while :; do
1910    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h.  */
1912$4
1913int
1914main ()
1915{
1916static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1917test_array [0] = 0
1918
1919  ;
1920  return 0;
1921}
1922_ACEOF
1923if ac_fn_c_try_compile "$LINENO"; then :
1924  ac_lo=$ac_mid; break
1925else
1926  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1927			if test $ac_mid -le $ac_hi; then
1928			  ac_lo= ac_hi=
1929			  break
1930			fi
1931			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934  done
1935else
1936  ac_lo= ac_hi=
1937fi
1938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939fi
1940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941# Binary search between lo and hi bounds.
1942while test "x$ac_lo" != "x$ac_hi"; do
1943  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945/* end confdefs.h.  */
1946$4
1947int
1948main ()
1949{
1950static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1951test_array [0] = 0
1952
1953  ;
1954  return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_compile "$LINENO"; then :
1958  ac_hi=$ac_mid
1959else
1960  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1961fi
1962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963done
1964case $ac_lo in #((
1965?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1966'') ac_retval=1 ;;
1967esac
1968  else
1969    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970/* end confdefs.h.  */
1971$4
1972static long int longval () { return $2; }
1973static unsigned long int ulongval () { return $2; }
1974#include <stdio.h>
1975#include <stdlib.h>
1976int
1977main ()
1978{
1979
1980  FILE *f = fopen ("conftest.val", "w");
1981  if (! f)
1982    return 1;
1983  if (($2) < 0)
1984    {
1985      long int i = longval ();
1986      if (i != ($2))
1987	return 1;
1988      fprintf (f, "%ld", i);
1989    }
1990  else
1991    {
1992      unsigned long int i = ulongval ();
1993      if (i != ($2))
1994	return 1;
1995      fprintf (f, "%lu", i);
1996    }
1997  /* Do not output a trailing newline, as this causes \r\n confusion
1998     on some platforms.  */
1999  return ferror (f) || fclose (f) != 0;
2000
2001  ;
2002  return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_run "$LINENO"; then :
2006  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2007else
2008  ac_retval=1
2009fi
2010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2011  conftest.$ac_objext conftest.beam conftest.$ac_ext
2012rm -f conftest.val
2013
2014  fi
2015  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016  as_fn_set_status $ac_retval
2017
2018} # ac_fn_c_compute_int
2019
2020# ac_fn_c_try_link LINENO
2021# -----------------------
2022# Try to link conftest.$ac_ext, and return whether this succeeded.
2023ac_fn_c_try_link ()
2024{
2025  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026  rm -f conftest.$ac_objext conftest$ac_exeext
2027  if { { ac_try="$ac_link"
2028case "(($ac_try" in
2029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030  *) ac_try_echo=$ac_try;;
2031esac
2032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033$as_echo "$ac_try_echo"; } >&5
2034  (eval "$ac_link") 2>conftest.err
2035  ac_status=$?
2036  if test -s conftest.err; then
2037    grep -v '^ *+' conftest.err >conftest.er1
2038    cat conftest.er1 >&5
2039    mv -f conftest.er1 conftest.err
2040  fi
2041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042  test $ac_status = 0; } && {
2043	 test -z "$ac_c_werror_flag" ||
2044	 test ! -s conftest.err
2045       } && test -s conftest$ac_exeext && {
2046	 test "$cross_compiling" = yes ||
2047	 $as_test_x conftest$ac_exeext
2048       }; then :
2049  ac_retval=0
2050else
2051  $as_echo "$as_me: failed program was:" >&5
2052sed 's/^/| /' conftest.$ac_ext >&5
2053
2054	ac_retval=1
2055fi
2056  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2057  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2058  # interfere with the next link command; also delete a directory that is
2059  # left behind by Apple's compiler.  We do this before executing the actions.
2060  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2061  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062  as_fn_set_status $ac_retval
2063
2064} # ac_fn_c_try_link
2065
2066# ac_fn_c_check_func LINENO FUNC VAR
2067# ----------------------------------
2068# Tests whether FUNC exists, setting the cache variable VAR accordingly
2069ac_fn_c_check_func ()
2070{
2071  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073$as_echo_n "checking for $2... " >&6; }
2074if eval "test \"\${$3+set}\"" = set; then :
2075  $as_echo_n "(cached) " >&6
2076else
2077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h.  */
2079/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2080   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2081#define $2 innocuous_$2
2082
2083/* System header to define __stub macros and hopefully few prototypes,
2084    which can conflict with char $2 (); below.
2085    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2086    <limits.h> exists even on freestanding compilers.  */
2087
2088#ifdef __STDC__
2089# include <limits.h>
2090#else
2091# include <assert.h>
2092#endif
2093
2094#undef $2
2095
2096/* Override any GCC internal prototype to avoid an error.
2097   Use char because int might match the return type of a GCC
2098   builtin and then its argument prototype would still apply.  */
2099#ifdef __cplusplus
2100extern "C"
2101#endif
2102char $2 ();
2103/* The GNU C library defines this for functions which it implements
2104    to always fail with ENOSYS.  Some functions are actually named
2105    something starting with __ and the normal name is an alias.  */
2106#if defined __stub_$2 || defined __stub___$2
2107choke me
2108#endif
2109
2110int
2111main ()
2112{
2113return $2 ();
2114  ;
2115  return 0;
2116}
2117_ACEOF
2118if ac_fn_c_try_link "$LINENO"; then :
2119  eval "$3=yes"
2120else
2121  eval "$3=no"
2122fi
2123rm -f core conftest.err conftest.$ac_objext \
2124    conftest$ac_exeext conftest.$ac_ext
2125fi
2126eval ac_res=\$$3
2127	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128$as_echo "$ac_res" >&6; }
2129  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130
2131} # ac_fn_c_check_func
2132
2133# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2134# ---------------------------------------------
2135# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2136# accordingly.
2137ac_fn_c_check_decl ()
2138{
2139  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140  as_decl_name=`echo $2|sed 's/ *(.*//'`
2141  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2143$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2144if eval "test \"\${$3+set}\"" = set; then :
2145  $as_echo_n "(cached) " >&6
2146else
2147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148/* end confdefs.h.  */
2149$4
2150int
2151main ()
2152{
2153#ifndef $as_decl_name
2154#ifdef __cplusplus
2155  (void) $as_decl_use;
2156#else
2157  (void) $as_decl_name;
2158#endif
2159#endif
2160
2161  ;
2162  return 0;
2163}
2164_ACEOF
2165if ac_fn_c_try_compile "$LINENO"; then :
2166  eval "$3=yes"
2167else
2168  eval "$3=no"
2169fi
2170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171fi
2172eval ac_res=\$$3
2173	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174$as_echo "$ac_res" >&6; }
2175  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2176
2177} # ac_fn_c_check_decl
2178cat >config.log <<_ACEOF
2179This file contains any messages produced by compilers while
2180running configure, to aid debugging if configure makes a mistake.
2181
2182It was created by FreeType $as_me 2.4.4, which was
2183generated by GNU Autoconf 2.67.  Invocation command line was
2184
2185  $ $0 $@
2186
2187_ACEOF
2188exec 5>>config.log
2189{
2190cat <<_ASUNAME
2191## --------- ##
2192## Platform. ##
2193## --------- ##
2194
2195hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2196uname -m = `(uname -m) 2>/dev/null || echo unknown`
2197uname -r = `(uname -r) 2>/dev/null || echo unknown`
2198uname -s = `(uname -s) 2>/dev/null || echo unknown`
2199uname -v = `(uname -v) 2>/dev/null || echo unknown`
2200
2201/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2202/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2203
2204/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2205/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2206/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2207/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2208/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2209/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2210/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2211
2212_ASUNAME
2213
2214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215for as_dir in $PATH
2216do
2217  IFS=$as_save_IFS
2218  test -z "$as_dir" && as_dir=.
2219    $as_echo "PATH: $as_dir"
2220  done
2221IFS=$as_save_IFS
2222
2223} >&5
2224
2225cat >&5 <<_ACEOF
2226
2227
2228## ----------- ##
2229## Core tests. ##
2230## ----------- ##
2231
2232_ACEOF
2233
2234
2235# Keep a trace of the command line.
2236# Strip out --no-create and --no-recursion so they do not pile up.
2237# Strip out --silent because we don't want to record it for future runs.
2238# Also quote any args containing shell meta-characters.
2239# Make two passes to allow for proper duplicate-argument suppression.
2240ac_configure_args=
2241ac_configure_args0=
2242ac_configure_args1=
2243ac_must_keep_next=false
2244for ac_pass in 1 2
2245do
2246  for ac_arg
2247  do
2248    case $ac_arg in
2249    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2250    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2251    | -silent | --silent | --silen | --sile | --sil)
2252      continue ;;
2253    *\'*)
2254      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2255    esac
2256    case $ac_pass in
2257    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2258    2)
2259      as_fn_append ac_configure_args1 " '$ac_arg'"
2260      if test $ac_must_keep_next = true; then
2261	ac_must_keep_next=false # Got value, back to normal.
2262      else
2263	case $ac_arg in
2264	  *=* | --config-cache | -C | -disable-* | --disable-* \
2265	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2266	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2267	  | -with-* | --with-* | -without-* | --without-* | --x)
2268	    case "$ac_configure_args0 " in
2269	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2270	    esac
2271	    ;;
2272	  -* ) ac_must_keep_next=true ;;
2273	esac
2274      fi
2275      as_fn_append ac_configure_args " '$ac_arg'"
2276      ;;
2277    esac
2278  done
2279done
2280{ ac_configure_args0=; unset ac_configure_args0;}
2281{ ac_configure_args1=; unset ac_configure_args1;}
2282
2283# When interrupted or exit'd, cleanup temporary files, and complete
2284# config.log.  We remove comments because anyway the quotes in there
2285# would cause problems or look ugly.
2286# WARNING: Use '\'' to represent an apostrophe within the trap.
2287# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2288trap 'exit_status=$?
2289  # Save into config.log some information that might help in debugging.
2290  {
2291    echo
2292
2293    $as_echo "## ---------------- ##
2294## Cache variables. ##
2295## ---------------- ##"[]
2296    echo
2297    # The following way of writing the cache mishandles newlines in values,
2298(
2299  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2300    eval ac_val=\$$ac_var
2301    case $ac_val in #(
2302    *${as_nl}*)
2303      case $ac_var in #(
2304      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2305$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2306      esac
2307      case $ac_var in #(
2308      _ | IFS | as_nl) ;; #(
2309      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2310      *) { eval $ac_var=; unset $ac_var;} ;;
2311      esac ;;
2312    esac
2313  done
2314  (set) 2>&1 |
2315    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2316    *${as_nl}ac_space=\ *)
2317      sed -n \
2318	"s/'\''/'\''\\\\'\'''\''/g;
2319	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2320      ;; #(
2321    *)
2322      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2323      ;;
2324    esac |
2325    sort
2326)
2327    echo
2328
2329    $as_echo "## ----------------- ##
2330## Output variables. ##
2331## ----------------- ##"[]
2332    echo
2333    for ac_var in $ac_subst_vars
2334    do
2335      eval ac_val=\$$ac_var
2336      case $ac_val in
2337      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338      esac
2339      $as_echo "$ac_var='\''$ac_val'\''"
2340    done | sort
2341    echo
2342
2343    if test -n "$ac_subst_files"; then
2344      $as_echo "## ------------------- ##
2345## File substitutions. ##
2346## ------------------- ##"[]
2347      echo
2348      for ac_var in $ac_subst_files
2349      do
2350	eval ac_val=\$$ac_var
2351	case $ac_val in
2352	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353	esac
2354	$as_echo "$ac_var='\''$ac_val'\''"
2355      done | sort
2356      echo
2357    fi
2358
2359    if test -s confdefs.h; then
2360      $as_echo "## ----------- ##
2361## confdefs.h. ##
2362## ----------- ##"[]
2363      echo
2364      cat confdefs.h
2365      echo
2366    fi
2367    test "$ac_signal" != 0 &&
2368      $as_echo "$as_me: caught signal $ac_signal"
2369    $as_echo "$as_me: exit $exit_status"
2370  } >&5
2371  rm -f core *.core core.conftest.* &&
2372    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2373    exit $exit_status
2374' 0
2375for ac_signal in 1 2 13 15; do
2376  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2377done
2378ac_signal=0
2379
2380# confdefs.h avoids OS command line length limits that DEFS can exceed.
2381rm -f -r conftest* confdefs.h
2382
2383$as_echo "/* confdefs.h */" > confdefs.h
2384
2385# Predefined preprocessor variables.
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_NAME "$PACKAGE_NAME"
2389_ACEOF
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2393_ACEOF
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_VERSION "$PACKAGE_VERSION"
2397_ACEOF
2398
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_STRING "$PACKAGE_STRING"
2401_ACEOF
2402
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2405_ACEOF
2406
2407cat >>confdefs.h <<_ACEOF
2408#define PACKAGE_URL "$PACKAGE_URL"
2409_ACEOF
2410
2411
2412# Let the site file select an alternate cache file if it wants to.
2413# Prefer an explicitly selected file to automatically selected ones.
2414ac_site_file1=NONE
2415ac_site_file2=NONE
2416if test -n "$CONFIG_SITE"; then
2417  # We do not want a PATH search for config.site.
2418  case $CONFIG_SITE in #((
2419    -*)  ac_site_file1=./$CONFIG_SITE;;
2420    */*) ac_site_file1=$CONFIG_SITE;;
2421    *)   ac_site_file1=./$CONFIG_SITE;;
2422  esac
2423elif test "x$prefix" != xNONE; then
2424  ac_site_file1=$prefix/share/config.site
2425  ac_site_file2=$prefix/etc/config.site
2426else
2427  ac_site_file1=$ac_default_prefix/share/config.site
2428  ac_site_file2=$ac_default_prefix/etc/config.site
2429fi
2430for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2431do
2432  test "x$ac_site_file" = xNONE && continue
2433  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2434    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2435$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2436    sed 's/^/| /' "$ac_site_file" >&5
2437    . "$ac_site_file" \
2438      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440as_fn_error $? "failed to load site script $ac_site_file
2441See \`config.log' for more details" "$LINENO" 5; }
2442  fi
2443done
2444
2445if test -r "$cache_file"; then
2446  # Some versions of bash will fail to source /dev/null (special files
2447  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2448  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2449    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2450$as_echo "$as_me: loading cache $cache_file" >&6;}
2451    case $cache_file in
2452      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2453      *)                      . "./$cache_file";;
2454    esac
2455  fi
2456else
2457  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2458$as_echo "$as_me: creating cache $cache_file" >&6;}
2459  >$cache_file
2460fi
2461
2462as_fn_append ac_header_list " stdlib.h"
2463as_fn_append ac_header_list " unistd.h"
2464as_fn_append ac_header_list " sys/param.h"
2465# Check that the precious variables saved in the cache have kept the same
2466# value.
2467ac_cache_corrupted=false
2468for ac_var in $ac_precious_vars; do
2469  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2470  eval ac_new_set=\$ac_env_${ac_var}_set
2471  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2472  eval ac_new_val=\$ac_env_${ac_var}_value
2473  case $ac_old_set,$ac_new_set in
2474    set,)
2475      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2476$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2477      ac_cache_corrupted=: ;;
2478    ,set)
2479      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2480$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2481      ac_cache_corrupted=: ;;
2482    ,);;
2483    *)
2484      if test "x$ac_old_val" != "x$ac_new_val"; then
2485	# differences in whitespace do not lead to failure.
2486	ac_old_val_w=`echo x $ac_old_val`
2487	ac_new_val_w=`echo x $ac_new_val`
2488	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2489	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2490$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2491	  ac_cache_corrupted=:
2492	else
2493	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2494$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2495	  eval $ac_var=\$ac_old_val
2496	fi
2497	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2498$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2499	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2500$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2501      fi;;
2502  esac
2503  # Pass precious variables to config.status.
2504  if test "$ac_new_set" = set; then
2505    case $ac_new_val in
2506    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2507    *) ac_arg=$ac_var=$ac_new_val ;;
2508    esac
2509    case " $ac_configure_args " in
2510      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2511      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2512    esac
2513  fi
2514done
2515if $ac_cache_corrupted; then
2516  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2518  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2519$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2520  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2521fi
2522## -------------------- ##
2523## Main body of script. ##
2524## -------------------- ##
2525
2526ac_ext=c
2527ac_cpp='$CPP $CPPFLAGS'
2528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531
2532
2533
2534
2535
2536# Don't forget to update docs/VERSION.DLL!
2537
2538version_info='12:2:6'
2539
2540ft_version=`echo $version_info | tr : .`
2541
2542
2543
2544# checks for system type
2545
2546ac_aux_dir=
2547for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2548  if test -f "$ac_dir/install-sh"; then
2549    ac_aux_dir=$ac_dir
2550    ac_install_sh="$ac_aux_dir/install-sh -c"
2551    break
2552  elif test -f "$ac_dir/install.sh"; then
2553    ac_aux_dir=$ac_dir
2554    ac_install_sh="$ac_aux_dir/install.sh -c"
2555    break
2556  elif test -f "$ac_dir/shtool"; then
2557    ac_aux_dir=$ac_dir
2558    ac_install_sh="$ac_aux_dir/shtool install -c"
2559    break
2560  fi
2561done
2562if test -z "$ac_aux_dir"; then
2563  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2564fi
2565
2566# These three variables are undocumented and unsupported,
2567# and are intended to be withdrawn in a future Autoconf release.
2568# They can cause serious problems if a builder's source tree is in a directory
2569# whose full name contains unusual characters.
2570ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2571ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2572ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2573
2574
2575# Make sure we can run config.sub.
2576$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2577  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2578
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2580$as_echo_n "checking build system type... " >&6; }
2581if test "${ac_cv_build+set}" = set; then :
2582  $as_echo_n "(cached) " >&6
2583else
2584  ac_build_alias=$build_alias
2585test "x$ac_build_alias" = x &&
2586  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2587test "x$ac_build_alias" = x &&
2588  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2589ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2590  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2591
2592fi
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2594$as_echo "$ac_cv_build" >&6; }
2595case $ac_cv_build in
2596*-*-*) ;;
2597*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2598esac
2599build=$ac_cv_build
2600ac_save_IFS=$IFS; IFS='-'
2601set x $ac_cv_build
2602shift
2603build_cpu=$1
2604build_vendor=$2
2605shift; shift
2606# Remember, the first character of IFS is used to create $*,
2607# except with old shells:
2608build_os=$*
2609IFS=$ac_save_IFS
2610case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2611
2612
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2614$as_echo_n "checking host system type... " >&6; }
2615if test "${ac_cv_host+set}" = set; then :
2616  $as_echo_n "(cached) " >&6
2617else
2618  if test "x$host_alias" = x; then
2619  ac_cv_host=$ac_cv_build
2620else
2621  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2622    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2623fi
2624
2625fi
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2627$as_echo "$ac_cv_host" >&6; }
2628case $ac_cv_host in
2629*-*-*) ;;
2630*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2631esac
2632host=$ac_cv_host
2633ac_save_IFS=$IFS; IFS='-'
2634set x $ac_cv_host
2635shift
2636host_cpu=$1
2637host_vendor=$2
2638shift; shift
2639# Remember, the first character of IFS is used to create $*,
2640# except with old shells:
2641host_os=$*
2642IFS=$ac_save_IFS
2643case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2644
2645
2646
2647
2648# checks for programs
2649
2650ac_ext=c
2651ac_cpp='$CPP $CPPFLAGS'
2652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655if test -n "$ac_tool_prefix"; then
2656  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2657set dummy ${ac_tool_prefix}gcc; ac_word=$2
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659$as_echo_n "checking for $ac_word... " >&6; }
2660if test "${ac_cv_prog_CC+set}" = set; then :
2661  $as_echo_n "(cached) " >&6
2662else
2663  if test -n "$CC"; then
2664  ac_cv_prog_CC="$CC" # Let the user override the test.
2665else
2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669  IFS=$as_save_IFS
2670  test -z "$as_dir" && as_dir=.
2671    for ac_exec_ext in '' $ac_executable_extensions; do
2672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675    break 2
2676  fi
2677done
2678  done
2679IFS=$as_save_IFS
2680
2681fi
2682fi
2683CC=$ac_cv_prog_CC
2684if test -n "$CC"; then
2685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2686$as_echo "$CC" >&6; }
2687else
2688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689$as_echo "no" >&6; }
2690fi
2691
2692
2693fi
2694if test -z "$ac_cv_prog_CC"; then
2695  ac_ct_CC=$CC
2696  # Extract the first word of "gcc", so it can be a program name with args.
2697set dummy gcc; ac_word=$2
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699$as_echo_n "checking for $ac_word... " >&6; }
2700if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2701  $as_echo_n "(cached) " >&6
2702else
2703  if test -n "$ac_ct_CC"; then
2704  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2705else
2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707for as_dir in $PATH
2708do
2709  IFS=$as_save_IFS
2710  test -z "$as_dir" && as_dir=.
2711    for ac_exec_ext in '' $ac_executable_extensions; do
2712  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713    ac_cv_prog_ac_ct_CC="gcc"
2714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715    break 2
2716  fi
2717done
2718  done
2719IFS=$as_save_IFS
2720
2721fi
2722fi
2723ac_ct_CC=$ac_cv_prog_ac_ct_CC
2724if test -n "$ac_ct_CC"; then
2725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2726$as_echo "$ac_ct_CC" >&6; }
2727else
2728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729$as_echo "no" >&6; }
2730fi
2731
2732  if test "x$ac_ct_CC" = x; then
2733    CC=""
2734  else
2735    case $cross_compiling:$ac_tool_warned in
2736yes:)
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2739ac_tool_warned=yes ;;
2740esac
2741    CC=$ac_ct_CC
2742  fi
2743else
2744  CC="$ac_cv_prog_CC"
2745fi
2746
2747if test -z "$CC"; then
2748          if test -n "$ac_tool_prefix"; then
2749    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2750set dummy ${ac_tool_prefix}cc; ac_word=$2
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752$as_echo_n "checking for $ac_word... " >&6; }
2753if test "${ac_cv_prog_CC+set}" = set; then :
2754  $as_echo_n "(cached) " >&6
2755else
2756  if test -n "$CC"; then
2757  ac_cv_prog_CC="$CC" # Let the user override the test.
2758else
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762  IFS=$as_save_IFS
2763  test -z "$as_dir" && as_dir=.
2764    for ac_exec_ext in '' $ac_executable_extensions; do
2765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766    ac_cv_prog_CC="${ac_tool_prefix}cc"
2767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768    break 2
2769  fi
2770done
2771  done
2772IFS=$as_save_IFS
2773
2774fi
2775fi
2776CC=$ac_cv_prog_CC
2777if test -n "$CC"; then
2778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2779$as_echo "$CC" >&6; }
2780else
2781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782$as_echo "no" >&6; }
2783fi
2784
2785
2786  fi
2787fi
2788if test -z "$CC"; then
2789  # Extract the first word of "cc", so it can be a program name with args.
2790set dummy cc; ac_word=$2
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792$as_echo_n "checking for $ac_word... " >&6; }
2793if test "${ac_cv_prog_CC+set}" = set; then :
2794  $as_echo_n "(cached) " >&6
2795else
2796  if test -n "$CC"; then
2797  ac_cv_prog_CC="$CC" # Let the user override the test.
2798else
2799  ac_prog_rejected=no
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803  IFS=$as_save_IFS
2804  test -z "$as_dir" && as_dir=.
2805    for ac_exec_ext in '' $ac_executable_extensions; do
2806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2808       ac_prog_rejected=yes
2809       continue
2810     fi
2811    ac_cv_prog_CC="cc"
2812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813    break 2
2814  fi
2815done
2816  done
2817IFS=$as_save_IFS
2818
2819if test $ac_prog_rejected = yes; then
2820  # We found a bogon in the path, so make sure we never use it.
2821  set dummy $ac_cv_prog_CC
2822  shift
2823  if test $# != 0; then
2824    # We chose a different compiler from the bogus one.
2825    # However, it has the same basename, so the bogon will be chosen
2826    # first if we set CC to just the basename; use the full file name.
2827    shift
2828    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2829  fi
2830fi
2831fi
2832fi
2833CC=$ac_cv_prog_CC
2834if test -n "$CC"; then
2835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836$as_echo "$CC" >&6; }
2837else
2838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; }
2840fi
2841
2842
2843fi
2844if test -z "$CC"; then
2845  if test -n "$ac_tool_prefix"; then
2846  for ac_prog in cl.exe
2847  do
2848    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2849set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851$as_echo_n "checking for $ac_word... " >&6; }
2852if test "${ac_cv_prog_CC+set}" = set; then :
2853  $as_echo_n "(cached) " >&6
2854else
2855  if test -n "$CC"; then
2856  ac_cv_prog_CC="$CC" # Let the user override the test.
2857else
2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859for as_dir in $PATH
2860do
2861  IFS=$as_save_IFS
2862  test -z "$as_dir" && as_dir=.
2863    for ac_exec_ext in '' $ac_executable_extensions; do
2864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867    break 2
2868  fi
2869done
2870  done
2871IFS=$as_save_IFS
2872
2873fi
2874fi
2875CC=$ac_cv_prog_CC
2876if test -n "$CC"; then
2877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878$as_echo "$CC" >&6; }
2879else
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881$as_echo "no" >&6; }
2882fi
2883
2884
2885    test -n "$CC" && break
2886  done
2887fi
2888if test -z "$CC"; then
2889  ac_ct_CC=$CC
2890  for ac_prog in cl.exe
2891do
2892  # Extract the first word of "$ac_prog", so it can be a program name with args.
2893set dummy $ac_prog; ac_word=$2
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895$as_echo_n "checking for $ac_word... " >&6; }
2896if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2897  $as_echo_n "(cached) " >&6
2898else
2899  if test -n "$ac_ct_CC"; then
2900  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905  IFS=$as_save_IFS
2906  test -z "$as_dir" && as_dir=.
2907    for ac_exec_ext in '' $ac_executable_extensions; do
2908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909    ac_cv_prog_ac_ct_CC="$ac_prog"
2910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911    break 2
2912  fi
2913done
2914  done
2915IFS=$as_save_IFS
2916
2917fi
2918fi
2919ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920if test -n "$ac_ct_CC"; then
2921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2922$as_echo "$ac_ct_CC" >&6; }
2923else
2924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925$as_echo "no" >&6; }
2926fi
2927
2928
2929  test -n "$ac_ct_CC" && break
2930done
2931
2932  if test "x$ac_ct_CC" = x; then
2933    CC=""
2934  else
2935    case $cross_compiling:$ac_tool_warned in
2936yes:)
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2939ac_tool_warned=yes ;;
2940esac
2941    CC=$ac_ct_CC
2942  fi
2943fi
2944
2945fi
2946
2947
2948test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950as_fn_error $? "no acceptable C compiler found in \$PATH
2951See \`config.log' for more details" "$LINENO" 5; }
2952
2953# Provide some information about the compiler.
2954$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2955set X $ac_compile
2956ac_compiler=$2
2957for ac_option in --version -v -V -qversion; do
2958  { { ac_try="$ac_compiler $ac_option >&5"
2959case "(($ac_try" in
2960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961  *) ac_try_echo=$ac_try;;
2962esac
2963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964$as_echo "$ac_try_echo"; } >&5
2965  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2966  ac_status=$?
2967  if test -s conftest.err; then
2968    sed '10a\
2969... rest of stderr output deleted ...
2970         10q' conftest.err >conftest.er1
2971    cat conftest.er1 >&5
2972  fi
2973  rm -f conftest.er1 conftest.err
2974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975  test $ac_status = 0; }
2976done
2977
2978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2979/* end confdefs.h.  */
2980
2981int
2982main ()
2983{
2984
2985  ;
2986  return 0;
2987}
2988_ACEOF
2989ac_clean_files_save=$ac_clean_files
2990ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2991# Try to create an executable without -o first, disregard a.out.
2992# It will help us diagnose broken compilers, and finding out an intuition
2993# of exeext.
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2995$as_echo_n "checking whether the C compiler works... " >&6; }
2996ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2997
2998# The possible output files:
2999ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3000
3001ac_rmfiles=
3002for ac_file in $ac_files
3003do
3004  case $ac_file in
3005    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3006    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3007  esac
3008done
3009rm -f $ac_rmfiles
3010
3011if { { ac_try="$ac_link_default"
3012case "(($ac_try" in
3013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014  *) ac_try_echo=$ac_try;;
3015esac
3016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3017$as_echo "$ac_try_echo"; } >&5
3018  (eval "$ac_link_default") 2>&5
3019  ac_status=$?
3020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3021  test $ac_status = 0; }; then :
3022  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3023# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3024# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3025# so that the user can short-circuit this test for compilers unknown to
3026# Autoconf.
3027for ac_file in $ac_files ''
3028do
3029  test -f "$ac_file" || continue
3030  case $ac_file in
3031    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3032	;;
3033    [ab].out )
3034	# We found the default executable, but exeext='' is most
3035	# certainly right.
3036	break;;
3037    *.* )
3038	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3039	then :; else
3040	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3041	fi
3042	# We set ac_cv_exeext here because the later test for it is not
3043	# safe: cross compilers may not add the suffix if given an `-o'
3044	# argument, so we may need to know it at that point already.
3045	# Even if this section looks crufty: it has the advantage of
3046	# actually working.
3047	break;;
3048    * )
3049	break;;
3050  esac
3051done
3052test "$ac_cv_exeext" = no && ac_cv_exeext=
3053
3054else
3055  ac_file=''
3056fi
3057if test -z "$ac_file"; then :
3058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059$as_echo "no" >&6; }
3060$as_echo "$as_me: failed program was:" >&5
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3065as_fn_error 77 "C compiler cannot create executables
3066See \`config.log' for more details" "$LINENO" 5; }
3067else
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069$as_echo "yes" >&6; }
3070fi
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3072$as_echo_n "checking for C compiler default output file name... " >&6; }
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3074$as_echo "$ac_file" >&6; }
3075ac_exeext=$ac_cv_exeext
3076
3077rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3078ac_clean_files=$ac_clean_files_save
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3080$as_echo_n "checking for suffix of executables... " >&6; }
3081if { { ac_try="$ac_link"
3082case "(($ac_try" in
3083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084  *) ac_try_echo=$ac_try;;
3085esac
3086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087$as_echo "$ac_try_echo"; } >&5
3088  (eval "$ac_link") 2>&5
3089  ac_status=$?
3090  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3091  test $ac_status = 0; }; then :
3092  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3093# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3094# work properly (i.e., refer to `conftest.exe'), while it won't with
3095# `rm'.
3096for ac_file in conftest.exe conftest conftest.*; do
3097  test -f "$ac_file" || continue
3098  case $ac_file in
3099    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3101	  break;;
3102    * ) break;;
3103  esac
3104done
3105else
3106  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3109See \`config.log' for more details" "$LINENO" 5; }
3110fi
3111rm -f conftest conftest$ac_cv_exeext
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3113$as_echo "$ac_cv_exeext" >&6; }
3114
3115rm -f conftest.$ac_ext
3116EXEEXT=$ac_cv_exeext
3117ac_exeext=$EXEEXT
3118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119/* end confdefs.h.  */
3120#include <stdio.h>
3121int
3122main ()
3123{
3124FILE *f = fopen ("conftest.out", "w");
3125 return ferror (f) || fclose (f) != 0;
3126
3127  ;
3128  return 0;
3129}
3130_ACEOF
3131ac_clean_files="$ac_clean_files conftest.out"
3132# Check that the compiler produces executables we can run.  If not, either
3133# the compiler is broken, or we cross compile.
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3135$as_echo_n "checking whether we are cross compiling... " >&6; }
3136if test "$cross_compiling" != yes; then
3137  { { ac_try="$ac_link"
3138case "(($ac_try" in
3139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140  *) ac_try_echo=$ac_try;;
3141esac
3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143$as_echo "$ac_try_echo"; } >&5
3144  (eval "$ac_link") 2>&5
3145  ac_status=$?
3146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147  test $ac_status = 0; }
3148  if { ac_try='./conftest$ac_cv_exeext'
3149  { { case "(($ac_try" in
3150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151  *) ac_try_echo=$ac_try;;
3152esac
3153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154$as_echo "$ac_try_echo"; } >&5
3155  (eval "$ac_try") 2>&5
3156  ac_status=$?
3157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158  test $ac_status = 0; }; }; then
3159    cross_compiling=no
3160  else
3161    if test "$cross_compiling" = maybe; then
3162	cross_compiling=yes
3163    else
3164	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166as_fn_error $? "cannot run C compiled programs.
3167If you meant to cross compile, use \`--host'.
3168See \`config.log' for more details" "$LINENO" 5; }
3169    fi
3170  fi
3171fi
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3173$as_echo "$cross_compiling" >&6; }
3174
3175rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3176ac_clean_files=$ac_clean_files_save
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3178$as_echo_n "checking for suffix of object files... " >&6; }
3179if test "${ac_cv_objext+set}" = set; then :
3180  $as_echo_n "(cached) " >&6
3181else
3182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183/* end confdefs.h.  */
3184
3185int
3186main ()
3187{
3188
3189  ;
3190  return 0;
3191}
3192_ACEOF
3193rm -f conftest.o conftest.obj
3194if { { ac_try="$ac_compile"
3195case "(($ac_try" in
3196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197  *) ac_try_echo=$ac_try;;
3198esac
3199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200$as_echo "$ac_try_echo"; } >&5
3201  (eval "$ac_compile") 2>&5
3202  ac_status=$?
3203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204  test $ac_status = 0; }; then :
3205  for ac_file in conftest.o conftest.obj conftest.*; do
3206  test -f "$ac_file" || continue;
3207  case $ac_file in
3208    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3209    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3210       break;;
3211  esac
3212done
3213else
3214  $as_echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219as_fn_error $? "cannot compute suffix of object files: cannot compile
3220See \`config.log' for more details" "$LINENO" 5; }
3221fi
3222rm -f conftest.$ac_cv_objext conftest.$ac_ext
3223fi
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3225$as_echo "$ac_cv_objext" >&6; }
3226OBJEXT=$ac_cv_objext
3227ac_objext=$OBJEXT
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3229$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3230if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3231  $as_echo_n "(cached) " >&6
3232else
3233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234/* end confdefs.h.  */
3235
3236int
3237main ()
3238{
3239#ifndef __GNUC__
3240       choke me
3241#endif
3242
3243  ;
3244  return 0;
3245}
3246_ACEOF
3247if ac_fn_c_try_compile "$LINENO"; then :
3248  ac_compiler_gnu=yes
3249else
3250  ac_compiler_gnu=no
3251fi
3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253ac_cv_c_compiler_gnu=$ac_compiler_gnu
3254
3255fi
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3257$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3258if test $ac_compiler_gnu = yes; then
3259  GCC=yes
3260else
3261  GCC=
3262fi
3263ac_test_CFLAGS=${CFLAGS+set}
3264ac_save_CFLAGS=$CFLAGS
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3266$as_echo_n "checking whether $CC accepts -g... " >&6; }
3267if test "${ac_cv_prog_cc_g+set}" = set; then :
3268  $as_echo_n "(cached) " >&6
3269else
3270  ac_save_c_werror_flag=$ac_c_werror_flag
3271   ac_c_werror_flag=yes
3272   ac_cv_prog_cc_g=no
3273   CFLAGS="-g"
3274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275/* end confdefs.h.  */
3276
3277int
3278main ()
3279{
3280
3281  ;
3282  return 0;
3283}
3284_ACEOF
3285if ac_fn_c_try_compile "$LINENO"; then :
3286  ac_cv_prog_cc_g=yes
3287else
3288  CFLAGS=""
3289      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h.  */
3291
3292int
3293main ()
3294{
3295
3296  ;
3297  return 0;
3298}
3299_ACEOF
3300if ac_fn_c_try_compile "$LINENO"; then :
3301
3302else
3303  ac_c_werror_flag=$ac_save_c_werror_flag
3304	 CFLAGS="-g"
3305	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306/* end confdefs.h.  */
3307
3308int
3309main ()
3310{
3311
3312  ;
3313  return 0;
3314}
3315_ACEOF
3316if ac_fn_c_try_compile "$LINENO"; then :
3317  ac_cv_prog_cc_g=yes
3318fi
3319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3320fi
3321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322fi
3323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324   ac_c_werror_flag=$ac_save_c_werror_flag
3325fi
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3327$as_echo "$ac_cv_prog_cc_g" >&6; }
3328if test "$ac_test_CFLAGS" = set; then
3329  CFLAGS=$ac_save_CFLAGS
3330elif test $ac_cv_prog_cc_g = yes; then
3331  if test "$GCC" = yes; then
3332    CFLAGS="-g -O2"
3333  else
3334    CFLAGS="-g"
3335  fi
3336else
3337  if test "$GCC" = yes; then
3338    CFLAGS="-O2"
3339  else
3340    CFLAGS=
3341  fi
3342fi
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3344$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3345if test "${ac_cv_prog_cc_c89+set}" = set; then :
3346  $as_echo_n "(cached) " >&6
3347else
3348  ac_cv_prog_cc_c89=no
3349ac_save_CC=$CC
3350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351/* end confdefs.h.  */
3352#include <stdarg.h>
3353#include <stdio.h>
3354#include <sys/types.h>
3355#include <sys/stat.h>
3356/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3357struct buf { int x; };
3358FILE * (*rcsopen) (struct buf *, struct stat *, int);
3359static char *e (p, i)
3360     char **p;
3361     int i;
3362{
3363  return p[i];
3364}
3365static char *f (char * (*g) (char **, int), char **p, ...)
3366{
3367  char *s;
3368  va_list v;
3369  va_start (v,p);
3370  s = g (p, va_arg (v,int));
3371  va_end (v);
3372  return s;
3373}
3374
3375/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3376   function prototypes and stuff, but not '\xHH' hex character constants.
3377   These don't provoke an error unfortunately, instead are silently treated
3378   as 'x'.  The following induces an error, until -std is added to get
3379   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3380   array size at least.  It's necessary to write '\x00'==0 to get something
3381   that's true only with -std.  */
3382int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3383
3384/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3385   inside strings and character constants.  */
3386#define FOO(x) 'x'
3387int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3388
3389int test (int i, double x);
3390struct s1 {int (*f) (int a);};
3391struct s2 {int (*f) (double a);};
3392int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3393int argc;
3394char **argv;
3395int
3396main ()
3397{
3398return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3399  ;
3400  return 0;
3401}
3402_ACEOF
3403for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3404	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3405do
3406  CC="$ac_save_CC $ac_arg"
3407  if ac_fn_c_try_compile "$LINENO"; then :
3408  ac_cv_prog_cc_c89=$ac_arg
3409fi
3410rm -f core conftest.err conftest.$ac_objext
3411  test "x$ac_cv_prog_cc_c89" != "xno" && break
3412done
3413rm -f conftest.$ac_ext
3414CC=$ac_save_CC
3415
3416fi
3417# AC_CACHE_VAL
3418case "x$ac_cv_prog_cc_c89" in
3419  x)
3420    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3421$as_echo "none needed" >&6; } ;;
3422  xno)
3423    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3424$as_echo "unsupported" >&6; } ;;
3425  *)
3426    CC="$CC $ac_cv_prog_cc_c89"
3427    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3428$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3429esac
3430if test "x$ac_cv_prog_cc_c89" != xno; then :
3431
3432fi
3433
3434ac_ext=c
3435ac_cpp='$CPP $CPPFLAGS'
3436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439
3440ac_ext=c
3441ac_cpp='$CPP $CPPFLAGS'
3442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3446$as_echo_n "checking how to run the C preprocessor... " >&6; }
3447# On Suns, sometimes $CPP names a directory.
3448if test -n "$CPP" && test -d "$CPP"; then
3449  CPP=
3450fi
3451if test -z "$CPP"; then
3452  if test "${ac_cv_prog_CPP+set}" = set; then :
3453  $as_echo_n "(cached) " >&6
3454else
3455      # Double quotes because CPP needs to be expanded
3456    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3457    do
3458      ac_preproc_ok=false
3459for ac_c_preproc_warn_flag in '' yes
3460do
3461  # Use a header file that comes with gcc, so configuring glibc
3462  # with a fresh cross-compiler works.
3463  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3464  # <limits.h> exists even on freestanding compilers.
3465  # On the NeXT, cc -E runs the code through the compiler's parser,
3466  # not just through cpp. "Syntax error" is here to catch this case.
3467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h.  */
3469#ifdef __STDC__
3470# include <limits.h>
3471#else
3472# include <assert.h>
3473#endif
3474		     Syntax error
3475_ACEOF
3476if ac_fn_c_try_cpp "$LINENO"; then :
3477
3478else
3479  # Broken: fails on valid input.
3480continue
3481fi
3482rm -f conftest.err conftest.i conftest.$ac_ext
3483
3484  # OK, works on sane cases.  Now check whether nonexistent headers
3485  # can be detected and how.
3486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h.  */
3488#include <ac_nonexistent.h>
3489_ACEOF
3490if ac_fn_c_try_cpp "$LINENO"; then :
3491  # Broken: success on invalid input.
3492continue
3493else
3494  # Passes both tests.
3495ac_preproc_ok=:
3496break
3497fi
3498rm -f conftest.err conftest.i conftest.$ac_ext
3499
3500done
3501# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3502rm -f conftest.i conftest.err conftest.$ac_ext
3503if $ac_preproc_ok; then :
3504  break
3505fi
3506
3507    done
3508    ac_cv_prog_CPP=$CPP
3509
3510fi
3511  CPP=$ac_cv_prog_CPP
3512else
3513  ac_cv_prog_CPP=$CPP
3514fi
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3516$as_echo "$CPP" >&6; }
3517ac_preproc_ok=false
3518for ac_c_preproc_warn_flag in '' yes
3519do
3520  # Use a header file that comes with gcc, so configuring glibc
3521  # with a fresh cross-compiler works.
3522  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3523  # <limits.h> exists even on freestanding compilers.
3524  # On the NeXT, cc -E runs the code through the compiler's parser,
3525  # not just through cpp. "Syntax error" is here to catch this case.
3526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h.  */
3528#ifdef __STDC__
3529# include <limits.h>
3530#else
3531# include <assert.h>
3532#endif
3533		     Syntax error
3534_ACEOF
3535if ac_fn_c_try_cpp "$LINENO"; then :
3536
3537else
3538  # Broken: fails on valid input.
3539continue
3540fi
3541rm -f conftest.err conftest.i conftest.$ac_ext
3542
3543  # OK, works on sane cases.  Now check whether nonexistent headers
3544  # can be detected and how.
3545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546/* end confdefs.h.  */
3547#include <ac_nonexistent.h>
3548_ACEOF
3549if ac_fn_c_try_cpp "$LINENO"; then :
3550  # Broken: success on invalid input.
3551continue
3552else
3553  # Passes both tests.
3554ac_preproc_ok=:
3555break
3556fi
3557rm -f conftest.err conftest.i conftest.$ac_ext
3558
3559done
3560# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561rm -f conftest.i conftest.err conftest.$ac_ext
3562if $ac_preproc_ok; then :
3563
3564else
3565  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3568See \`config.log' for more details" "$LINENO" 5; }
3569fi
3570
3571ac_ext=c
3572ac_cpp='$CPP $CPPFLAGS'
3573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576
3577
3578
3579
3580# checks for native programs to generate building tool
3581
3582if test ${cross_compiling} = yes; then
3583  # Extract the first word of "${build}-gcc", so it can be a program name with args.
3584set dummy ${build}-gcc; ac_word=$2
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586$as_echo_n "checking for $ac_word... " >&6; }
3587if test "${ac_cv_prog_CC_BUILD+set}" = set; then :
3588  $as_echo_n "(cached) " >&6
3589else
3590  if test -n "$CC_BUILD"; then
3591  ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3592else
3593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594for as_dir in $PATH
3595do
3596  IFS=$as_save_IFS
3597  test -z "$as_dir" && as_dir=.
3598    for ac_exec_ext in '' $ac_executable_extensions; do
3599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3600    ac_cv_prog_CC_BUILD="${build}-gcc"
3601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602    break 2
3603  fi
3604done
3605  done
3606IFS=$as_save_IFS
3607
3608fi
3609fi
3610CC_BUILD=$ac_cv_prog_CC_BUILD
3611if test -n "$CC_BUILD"; then
3612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3613$as_echo "$CC_BUILD" >&6; }
3614else
3615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616$as_echo "no" >&6; }
3617fi
3618
3619
3620  test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
3621set dummy gcc; ac_word=$2
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623$as_echo_n "checking for $ac_word... " >&6; }
3624if test "${ac_cv_prog_CC_BUILD+set}" = set; then :
3625  $as_echo_n "(cached) " >&6
3626else
3627  if test -n "$CC_BUILD"; then
3628  ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3629else
3630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631for as_dir in $PATH
3632do
3633  IFS=$as_save_IFS
3634  test -z "$as_dir" && as_dir=.
3635    for ac_exec_ext in '' $ac_executable_extensions; do
3636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637    ac_cv_prog_CC_BUILD="gcc"
3638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639    break 2
3640  fi
3641done
3642  done
3643IFS=$as_save_IFS
3644
3645fi
3646fi
3647CC_BUILD=$ac_cv_prog_CC_BUILD
3648if test -n "$CC_BUILD"; then
3649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3650$as_echo "$CC_BUILD" >&6; }
3651else
3652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653$as_echo "no" >&6; }
3654fi
3655
3656
3657  test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
3658set dummy cc; ac_word=$2
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660$as_echo_n "checking for $ac_word... " >&6; }
3661if test "${ac_cv_prog_CC_BUILD+set}" = set; then :
3662  $as_echo_n "(cached) " >&6
3663else
3664  if test -n "$CC_BUILD"; then
3665  ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3666else
3667  ac_prog_rejected=no
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671  IFS=$as_save_IFS
3672  test -z "$as_dir" && as_dir=.
3673    for ac_exec_ext in '' $ac_executable_extensions; do
3674  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3676       ac_prog_rejected=yes
3677       continue
3678     fi
3679    ac_cv_prog_CC_BUILD="cc"
3680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681    break 2
3682  fi
3683done
3684  done
3685IFS=$as_save_IFS
3686
3687if test $ac_prog_rejected = yes; then
3688  # We found a bogon in the path, so make sure we never use it.
3689  set dummy $ac_cv_prog_CC_BUILD
3690  shift
3691  if test $# != 0; then
3692    # We chose a different compiler from the bogus one.
3693    # However, it has the same basename, so the bogon will be chosen
3694    # first if we set CC_BUILD to just the basename; use the full file name.
3695    shift
3696    ac_cv_prog_CC_BUILD="$as_dir/$ac_word${1+' '}$@"
3697  fi
3698fi
3699fi
3700fi
3701CC_BUILD=$ac_cv_prog_CC_BUILD
3702if test -n "$CC_BUILD"; then
3703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3704$as_echo "$CC_BUILD" >&6; }
3705else
3706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707$as_echo "no" >&6; }
3708fi
3709
3710
3711  test -z "${CC_BUILD}" && as_fn_error $? "cannot find native C compiler" "$LINENO" 5
3712
3713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of native executables" >&5
3714$as_echo_n "checking for suffix of native executables... " >&6; }
3715  rm -f a.* b.* a_out.exe conftest.*
3716  echo > conftest.c "int main() { return 0;}"
3717  ${CC_BUILD} conftest.c || as_fn_error $? "native C compiler is not working" "$LINENO" 5
3718  rm -f conftest.c
3719  if test -x a.out -o -x b.out -o -x conftest; then
3720    EXEEXT_BUILD=""
3721  elif test -x a_out.exe -o -x conftest.exe; then
3722    EXEEXT_BUILD=".exe"
3723  elif test -x conftest.* ; then
3724    EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
3725  fi
3726  rm -f a.* b.* a_out.exe conftest.*
3727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT_BUILD" >&5
3728$as_echo "$EXEEXT_BUILD" >&6; }
3729else
3730  CC_BUILD=${CC}
3731  EXEEXT_BUILD=${EXEEXT}
3732fi
3733
3734
3735
3736
3737
3738
3739# get compiler flags right
3740
3741if test "x$GCC" = xyes; then
3742  XX_CFLAGS="-Wall"
3743  XX_ANSIFLAGS="-pedantic -ansi"
3744else
3745  case "$host" in
3746  *-dec-osf*)
3747    CFLAGS=
3748    XX_CFLAGS="-std1 -g3"
3749    XX_ANSIFLAGS=
3750    ;;
3751  *)
3752    XX_CFLAGS=
3753    XX_ANSIFLAGS=
3754    ;;
3755  esac
3756fi
3757
3758
3759
3760
3761# auxiliary programs
3762
3763# Extract the first word of "rm", so it can be a program name with args.
3764set dummy rm; ac_word=$2
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766$as_echo_n "checking for $ac_word... " >&6; }
3767if test "${ac_cv_prog_RMF+set}" = set; then :
3768  $as_echo_n "(cached) " >&6
3769else
3770  if test -n "$RMF"; then
3771  ac_cv_prog_RMF="$RMF" # Let the user override the test.
3772else
3773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774for as_dir in $PATH
3775do
3776  IFS=$as_save_IFS
3777  test -z "$as_dir" && as_dir=.
3778    for ac_exec_ext in '' $ac_executable_extensions; do
3779  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3780    ac_cv_prog_RMF="rm -f"
3781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782    break 2
3783  fi
3784done
3785  done
3786IFS=$as_save_IFS
3787
3788fi
3789fi
3790RMF=$ac_cv_prog_RMF
3791if test -n "$RMF"; then
3792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMF" >&5
3793$as_echo "$RMF" >&6; }
3794else
3795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796$as_echo "no" >&6; }
3797fi
3798
3799
3800# Extract the first word of "rmdir", so it can be a program name with args.
3801set dummy rmdir; ac_word=$2
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803$as_echo_n "checking for $ac_word... " >&6; }
3804if test "${ac_cv_prog_RMDIR+set}" = set; then :
3805  $as_echo_n "(cached) " >&6
3806else
3807  if test -n "$RMDIR"; then
3808  ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test.
3809else
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813  IFS=$as_save_IFS
3814  test -z "$as_dir" && as_dir=.
3815    for ac_exec_ext in '' $ac_executable_extensions; do
3816  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3817    ac_cv_prog_RMDIR="rmdir"
3818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819    break 2
3820  fi
3821done
3822  done
3823IFS=$as_save_IFS
3824
3825fi
3826fi
3827RMDIR=$ac_cv_prog_RMDIR
3828if test -n "$RMDIR"; then
3829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
3830$as_echo "$RMDIR" >&6; }
3831else
3832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833$as_echo "no" >&6; }
3834fi
3835
3836
3837
3838
3839# Since this file will be finally moved to another directory we make
3840# the path of the install script absolute.  This small code snippet has
3841# been taken from automake's `ylwrap' script.
3842
3843# Find a good install program.  We prefer a C program (faster),
3844# so one script is as good as another.  But avoid the broken or
3845# incompatible versions:
3846# SysV /etc/install, /usr/sbin/install
3847# SunOS /usr/etc/install
3848# IRIX /sbin/install
3849# AIX /bin/install
3850# AmigaOS /C/install, which installs bootblocks on floppy discs
3851# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3852# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3853# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3854# OS/2's system install, which has a completely different semantic
3855# ./install, which can be erroneously created by make from ./install.sh.
3856# Reject install programs that cannot install multiple files.
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3858$as_echo_n "checking for a BSD-compatible install... " >&6; }
3859if test -z "$INSTALL"; then
3860if test "${ac_cv_path_install+set}" = set; then :
3861  $as_echo_n "(cached) " >&6
3862else
3863  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866  IFS=$as_save_IFS
3867  test -z "$as_dir" && as_dir=.
3868    # Account for people who put trailing slashes in PATH elements.
3869case $as_dir/ in #((
3870  ./ | .// | /[cC]/* | \
3871  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3872  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3873  /usr/ucb/* ) ;;
3874  *)
3875    # OSF1 and SCO ODT 3.0 have their own names for install.
3876    # Don't use installbsd from OSF since it installs stuff as root
3877    # by default.
3878    for ac_prog in ginstall scoinst install; do
3879      for ac_exec_ext in '' $ac_executable_extensions; do
3880	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3881	  if test $ac_prog = install &&
3882	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3883	    # AIX install.  It has an incompatible calling convention.
3884	    :
3885	  elif test $ac_prog = install &&
3886	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3887	    # program-specific install script used by HP pwplus--don't use.
3888	    :
3889	  else
3890	    rm -rf conftest.one conftest.two conftest.dir
3891	    echo one > conftest.one
3892	    echo two > conftest.two
3893	    mkdir conftest.dir
3894	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3895	      test -s conftest.one && test -s conftest.two &&
3896	      test -s conftest.dir/conftest.one &&
3897	      test -s conftest.dir/conftest.two
3898	    then
3899	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3900	      break 3
3901	    fi
3902	  fi
3903	fi
3904      done
3905    done
3906    ;;
3907esac
3908
3909  done
3910IFS=$as_save_IFS
3911
3912rm -rf conftest.one conftest.two conftest.dir
3913
3914fi
3915  if test "${ac_cv_path_install+set}" = set; then
3916    INSTALL=$ac_cv_path_install
3917  else
3918    # As a last resort, use the slow shell script.  Don't cache a
3919    # value for INSTALL within a source directory, because that will
3920    # break other packages using the cache if that directory is
3921    # removed, or if the value is a relative name.
3922    INSTALL=$ac_install_sh
3923  fi
3924fi
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3926$as_echo "$INSTALL" >&6; }
3927
3928# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3929# It thinks the first close brace ends the variable substitution.
3930test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3931
3932test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3933
3934test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3935
3936case "$INSTALL" in
3937/*)
3938  ;;
3939*/*)
3940  INSTALL="`pwd`/$INSTALL" ;;
3941esac
3942
3943
3944# checks for header files
3945
3946
3947
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3949$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3950if test "${ac_cv_path_GREP+set}" = set; then :
3951  $as_echo_n "(cached) " >&6
3952else
3953  if test -z "$GREP"; then
3954  ac_path_GREP_found=false
3955  # Loop through the user's path and test for each of PROGNAME-LIST
3956  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3958do
3959  IFS=$as_save_IFS
3960  test -z "$as_dir" && as_dir=.
3961    for ac_prog in grep ggrep; do
3962    for ac_exec_ext in '' $ac_executable_extensions; do
3963      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3964      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3965# Check for GNU ac_path_GREP and select it if it is found.
3966  # Check for GNU $ac_path_GREP
3967case `"$ac_path_GREP" --version 2>&1` in
3968*GNU*)
3969  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3970*)
3971  ac_count=0
3972  $as_echo_n 0123456789 >"conftest.in"
3973  while :
3974  do
3975    cat "conftest.in" "conftest.in" >"conftest.tmp"
3976    mv "conftest.tmp" "conftest.in"
3977    cp "conftest.in" "conftest.nl"
3978    $as_echo 'GREP' >> "conftest.nl"
3979    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3980    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3981    as_fn_arith $ac_count + 1 && ac_count=$as_val
3982    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3983      # Best one so far, save it but keep looking for a better one
3984      ac_cv_path_GREP="$ac_path_GREP"
3985      ac_path_GREP_max=$ac_count
3986    fi
3987    # 10*(2^10) chars as input seems more than enough
3988    test $ac_count -gt 10 && break
3989  done
3990  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3991esac
3992
3993      $ac_path_GREP_found && break 3
3994    done
3995  done
3996  done
3997IFS=$as_save_IFS
3998  if test -z "$ac_cv_path_GREP"; then
3999    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4000  fi
4001else
4002  ac_cv_path_GREP=$GREP
4003fi
4004
4005fi
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4007$as_echo "$ac_cv_path_GREP" >&6; }
4008 GREP="$ac_cv_path_GREP"
4009
4010
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4012$as_echo_n "checking for egrep... " >&6; }
4013if test "${ac_cv_path_EGREP+set}" = set; then :
4014  $as_echo_n "(cached) " >&6
4015else
4016  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4017   then ac_cv_path_EGREP="$GREP -E"
4018   else
4019     if test -z "$EGREP"; then
4020  ac_path_EGREP_found=false
4021  # Loop through the user's path and test for each of PROGNAME-LIST
4022  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024do
4025  IFS=$as_save_IFS
4026  test -z "$as_dir" && as_dir=.
4027    for ac_prog in egrep; do
4028    for ac_exec_ext in '' $ac_executable_extensions; do
4029      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4030      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4031# Check for GNU ac_path_EGREP and select it if it is found.
4032  # Check for GNU $ac_path_EGREP
4033case `"$ac_path_EGREP" --version 2>&1` in
4034*GNU*)
4035  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4036*)
4037  ac_count=0
4038  $as_echo_n 0123456789 >"conftest.in"
4039  while :
4040  do
4041    cat "conftest.in" "conftest.in" >"conftest.tmp"
4042    mv "conftest.tmp" "conftest.in"
4043    cp "conftest.in" "conftest.nl"
4044    $as_echo 'EGREP' >> "conftest.nl"
4045    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047    as_fn_arith $ac_count + 1 && ac_count=$as_val
4048    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4049      # Best one so far, save it but keep looking for a better one
4050      ac_cv_path_EGREP="$ac_path_EGREP"
4051      ac_path_EGREP_max=$ac_count
4052    fi
4053    # 10*(2^10) chars as input seems more than enough
4054    test $ac_count -gt 10 && break
4055  done
4056  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057esac
4058
4059      $ac_path_EGREP_found && break 3
4060    done
4061  done
4062  done
4063IFS=$as_save_IFS
4064  if test -z "$ac_cv_path_EGREP"; then
4065    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4066  fi
4067else
4068  ac_cv_path_EGREP=$EGREP
4069fi
4070
4071   fi
4072fi
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4074$as_echo "$ac_cv_path_EGREP" >&6; }
4075 EGREP="$ac_cv_path_EGREP"
4076
4077
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4079$as_echo_n "checking for ANSI C header files... " >&6; }
4080if test "${ac_cv_header_stdc+set}" = set; then :
4081  $as_echo_n "(cached) " >&6
4082else
4083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084/* end confdefs.h.  */
4085#include <stdlib.h>
4086#include <stdarg.h>
4087#include <string.h>
4088#include <float.h>
4089
4090int
4091main ()
4092{
4093
4094  ;
4095  return 0;
4096}
4097_ACEOF
4098if ac_fn_c_try_compile "$LINENO"; then :
4099  ac_cv_header_stdc=yes
4100else
4101  ac_cv_header_stdc=no
4102fi
4103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104
4105if test $ac_cv_header_stdc = yes; then
4106  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108/* end confdefs.h.  */
4109#include <string.h>
4110
4111_ACEOF
4112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4113  $EGREP "memchr" >/dev/null 2>&1; then :
4114
4115else
4116  ac_cv_header_stdc=no
4117fi
4118rm -f conftest*
4119
4120fi
4121
4122if test $ac_cv_header_stdc = yes; then
4123  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h.  */
4126#include <stdlib.h>
4127
4128_ACEOF
4129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4130  $EGREP "free" >/dev/null 2>&1; then :
4131
4132else
4133  ac_cv_header_stdc=no
4134fi
4135rm -f conftest*
4136
4137fi
4138
4139if test $ac_cv_header_stdc = yes; then
4140  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4141  if test "$cross_compiling" = yes; then :
4142  :
4143else
4144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h.  */
4146#include <ctype.h>
4147#include <stdlib.h>
4148#if ((' ' & 0x0FF) == 0x020)
4149# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4150# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4151#else
4152# define ISLOWER(c) \
4153		   (('a' <= (c) && (c) <= 'i') \
4154		     || ('j' <= (c) && (c) <= 'r') \
4155		     || ('s' <= (c) && (c) <= 'z'))
4156# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4157#endif
4158
4159#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4160int
4161main ()
4162{
4163  int i;
4164  for (i = 0; i < 256; i++)
4165    if (XOR (islower (i), ISLOWER (i))
4166	|| toupper (i) != TOUPPER (i))
4167      return 2;
4168  return 0;
4169}
4170_ACEOF
4171if ac_fn_c_try_run "$LINENO"; then :
4172
4173else
4174  ac_cv_header_stdc=no
4175fi
4176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4177  conftest.$ac_objext conftest.beam conftest.$ac_ext
4178fi
4179
4180fi
4181fi
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4183$as_echo "$ac_cv_header_stdc" >&6; }
4184if test $ac_cv_header_stdc = yes; then
4185
4186$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4187
4188fi
4189
4190# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4191for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4192		  inttypes.h stdint.h unistd.h
4193do :
4194  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4195ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4196"
4197if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4198  cat >>confdefs.h <<_ACEOF
4199#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4200_ACEOF
4201
4202fi
4203
4204done
4205
4206
4207for ac_header in fcntl.h unistd.h
4208do :
4209  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4210ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4211if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4212  cat >>confdefs.h <<_ACEOF
4213#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4214_ACEOF
4215
4216fi
4217
4218done
4219
4220
4221
4222# checks for typedefs, structures, and compiler characteristics
4223
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4225$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4226if test "${ac_cv_c_const+set}" = set; then :
4227  $as_echo_n "(cached) " >&6
4228else
4229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h.  */
4231
4232int
4233main ()
4234{
4235/* FIXME: Include the comments suggested by Paul. */
4236#ifndef __cplusplus
4237  /* Ultrix mips cc rejects this.  */
4238  typedef int charset[2];
4239  const charset cs;
4240  /* SunOS 4.1.1 cc rejects this.  */
4241  char const *const *pcpcc;
4242  char **ppc;
4243  /* NEC SVR4.0.2 mips cc rejects this.  */
4244  struct point {int x, y;};
4245  static struct point const zero = {0,0};
4246  /* AIX XL C 1.02.0.0 rejects this.
4247     It does not let you subtract one const X* pointer from another in
4248     an arm of an if-expression whose if-part is not a constant
4249     expression */
4250  const char *g = "string";
4251  pcpcc = &g + (g ? g-g : 0);
4252  /* HPUX 7.0 cc rejects these. */
4253  ++pcpcc;
4254  ppc = (char**) pcpcc;
4255  pcpcc = (char const *const *) ppc;
4256  { /* SCO 3.2v4 cc rejects this.  */
4257    char *t;
4258    char const *s = 0 ? (char *) 0 : (char const *) 0;
4259
4260    *t++ = 0;
4261    if (s) return 0;
4262  }
4263  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4264    int x[] = {25, 17};
4265    const int *foo = &x[0];
4266    ++foo;
4267  }
4268  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4269    typedef const int *iptr;
4270    iptr p = 0;
4271    ++p;
4272  }
4273  { /* AIX XL C 1.02.0.0 rejects this saying
4274       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4275    struct s { int j; const int *ap[3]; };
4276    struct s *b; b->j = 5;
4277  }
4278  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4279    const int foo = 10;
4280    if (!foo) return 0;
4281  }
4282  return !cs[0] && !zero.x;
4283#endif
4284
4285  ;
4286  return 0;
4287}
4288_ACEOF
4289if ac_fn_c_try_compile "$LINENO"; then :
4290  ac_cv_c_const=yes
4291else
4292  ac_cv_c_const=no
4293fi
4294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295fi
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4297$as_echo "$ac_cv_c_const" >&6; }
4298if test $ac_cv_c_const = no; then
4299
4300$as_echo "#define const /**/" >>confdefs.h
4301
4302fi
4303
4304# The cast to long int works around a bug in the HP C Compiler
4305# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4306# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4307# This bug is HP SR number 8606223364.
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4309$as_echo_n "checking size of int... " >&6; }
4310if test "${ac_cv_sizeof_int+set}" = set; then :
4311  $as_echo_n "(cached) " >&6
4312else
4313  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
4314
4315else
4316  if test "$ac_cv_type_int" = yes; then
4317     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4319as_fn_error 77 "cannot compute sizeof (int)
4320See \`config.log' for more details" "$LINENO" 5; }
4321   else
4322     ac_cv_sizeof_int=0
4323   fi
4324fi
4325
4326fi
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4328$as_echo "$ac_cv_sizeof_int" >&6; }
4329
4330
4331
4332cat >>confdefs.h <<_ACEOF
4333#define SIZEOF_INT $ac_cv_sizeof_int
4334_ACEOF
4335
4336
4337# The cast to long int works around a bug in the HP C Compiler
4338# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4339# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4340# This bug is HP SR number 8606223364.
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4342$as_echo_n "checking size of long... " >&6; }
4343if test "${ac_cv_sizeof_long+set}" = set; then :
4344  $as_echo_n "(cached) " >&6
4345else
4346  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
4347
4348else
4349  if test "$ac_cv_type_long" = yes; then
4350     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4352as_fn_error 77 "cannot compute sizeof (long)
4353See \`config.log' for more details" "$LINENO" 5; }
4354   else
4355     ac_cv_sizeof_long=0
4356   fi
4357fi
4358
4359fi
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4361$as_echo "$ac_cv_sizeof_long" >&6; }
4362
4363
4364
4365cat >>confdefs.h <<_ACEOF
4366#define SIZEOF_LONG $ac_cv_sizeof_long
4367_ACEOF
4368
4369
4370
4371
4372# check whether cpp computation of size of int and long in ftconfig.in works
4373
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking cpp computation of bit length in ftconfig.in works" >&5
4375$as_echo_n "checking cpp computation of bit length in ftconfig.in works... " >&6; }
4376orig_CPPFLAGS="${CPPFLAGS}"
4377CPPFLAGS="-I${srcdir} -I. ${CPPFLAGS}"
4378ac_clean_files="ft2build.h ftoption.h ftstdlib.h"
4379touch ft2build.h ftoption.h ftstdlib.h
4380
4381cat > conftest.c <<\_ACEOF
4382#include <limits.h>
4383#define FT_CONFIG_OPTIONS_H "ftoption.h"
4384#define FT_CONFIG_STANDARD_LIBRARY_H "ftstdlib.h"
4385#define FT_UINT_MAX  UINT_MAX
4386#define FT_ULONG_MAX ULONG_MAX
4387#include "ftconfig.in"
4388_ACEOF
4389echo >> conftest.c "#if FT_SIZEOF_INT == "${ac_cv_sizeof_int}
4390echo >> conftest.c "ac_cpp_ft_sizeof_int="${ac_cv_sizeof_int}
4391echo >> conftest.c "#endif"
4392echo >> conftest.c "#if FT_SIZEOF_LONG == "${ac_cv_sizeof_long}
4393echo >> conftest.c "ac_cpp_ft_sizeof_long="${ac_cv_sizeof_long}
4394echo >> conftest.c "#endif"
4395
4396${CPP} ${CPPFLAGS} conftest.c | ${GREP} ac_cpp_ft > conftest.sh
4397eval `cat conftest.sh`
4398${RMF} conftest.c conftest.sh confft2build.h ftoption.h ftstdlib.h
4399
4400if test x != "x${ac_cpp_ft_sizeof_int}" \
4401   -a x != x"${ac_cpp_ft_sizeof_long}"; then
4402  unset ft_use_autoconf_sizeof_types
4403else
4404  ft_use_autoconf_sizeof_types=yes
4405fi
4406
4407# Check whether --enable-biarch-config was given.
4408if test "${enable_biarch_config+set}" = set; then :
4409  enableval=$enable_biarch_config;
4410fi
4411
4412
4413case :${ft_use_autoconf_sizeof_types}:${enable_biarch_config}: in
4414  :yes:yes:)
4415    { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken but use it" >&5
4416$as_echo "broken but use it" >&6; }
4417    unset ft_use_autoconf_sizeof_types
4418    ;;
4419  ::no:)
4420    { $as_echo "$as_me:${as_lineno-$LINENO}: result: works but ignore it" >&5
4421$as_echo "works but ignore it" >&6; }
4422    ft_use_autoconf_sizeof_types=yes
4423    ;;
4424  ::yes: | :::)
4425    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4426$as_echo "yes" >&6; }
4427    unset ft_use_autoconf_sizeof_types
4428    ;;
4429  *)
4430    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431$as_echo "no" >&6; }
4432    ft_use_autoconf_sizeof_types=yes
4433    ;;
4434esac
4435
4436if test x"${ft_use_autoconf_sizeof_types}" = xyes; then
4437  $as_echo "#define FT_USE_AUTOCONF_SIZEOF_TYPES 1" >>confdefs.h
4438
4439fi
4440
4441CPPFLAGS="${orig_CPPFLAGS}"
4442
4443
4444# checks for library functions
4445
4446# Here we check whether we can use our mmap file component.
4447
4448
4449
4450
4451  for ac_header in $ac_header_list
4452do :
4453  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4454ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4455"
4456if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4457  cat >>confdefs.h <<_ACEOF
4458#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4459_ACEOF
4460
4461fi
4462
4463done
4464
4465
4466
4467
4468
4469
4470
4471
4472for ac_func in getpagesize
4473do :
4474  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4475if test "x$ac_cv_func_getpagesize" = x""yes; then :
4476  cat >>confdefs.h <<_ACEOF
4477#define HAVE_GETPAGESIZE 1
4478_ACEOF
4479
4480fi
4481done
4482
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4484$as_echo_n "checking for working mmap... " >&6; }
4485if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
4486  $as_echo_n "(cached) " >&6
4487else
4488  if test "$cross_compiling" = yes; then :
4489  ac_cv_func_mmap_fixed_mapped=no
4490else
4491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492/* end confdefs.h.  */
4493$ac_includes_default
4494/* malloc might have been renamed as rpl_malloc. */
4495#undef malloc
4496
4497/* Thanks to Mike Haertel and Jim Avera for this test.
4498   Here is a matrix of mmap possibilities:
4499	mmap private not fixed
4500	mmap private fixed at somewhere currently unmapped
4501	mmap private fixed at somewhere already mapped
4502	mmap shared not fixed
4503	mmap shared fixed at somewhere currently unmapped
4504	mmap shared fixed at somewhere already mapped
4505   For private mappings, we should verify that changes cannot be read()
4506   back from the file, nor mmap's back from the file at a different
4507   address.  (There have been systems where private was not correctly
4508   implemented like the infamous i386 svr4.0, and systems where the
4509   VM page cache was not coherent with the file system buffer cache
4510   like early versions of FreeBSD and possibly contemporary NetBSD.)
4511   For shared mappings, we should conversely verify that changes get
4512   propagated back to all the places they're supposed to be.
4513
4514   Grep wants private fixed already mapped.
4515   The main things grep needs to know about mmap are:
4516   * does it exist and is it safe to write into the mmap'd area
4517   * how to use it (BSD variants)  */
4518
4519#include <fcntl.h>
4520#include <sys/mman.h>
4521
4522#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4523char *malloc ();
4524#endif
4525
4526/* This mess was copied from the GNU getpagesize.h.  */
4527#ifndef HAVE_GETPAGESIZE
4528# ifdef _SC_PAGESIZE
4529#  define getpagesize() sysconf(_SC_PAGESIZE)
4530# else /* no _SC_PAGESIZE */
4531#  ifdef HAVE_SYS_PARAM_H
4532#   include <sys/param.h>
4533#   ifdef EXEC_PAGESIZE
4534#    define getpagesize() EXEC_PAGESIZE
4535#   else /* no EXEC_PAGESIZE */
4536#    ifdef NBPG
4537#     define getpagesize() NBPG * CLSIZE
4538#     ifndef CLSIZE
4539#      define CLSIZE 1
4540#     endif /* no CLSIZE */
4541#    else /* no NBPG */
4542#     ifdef NBPC
4543#      define getpagesize() NBPC
4544#     else /* no NBPC */
4545#      ifdef PAGESIZE
4546#       define getpagesize() PAGESIZE
4547#      endif /* PAGESIZE */
4548#     endif /* no NBPC */
4549#    endif /* no NBPG */
4550#   endif /* no EXEC_PAGESIZE */
4551#  else /* no HAVE_SYS_PARAM_H */
4552#   define getpagesize() 8192	/* punt totally */
4553#  endif /* no HAVE_SYS_PARAM_H */
4554# endif /* no _SC_PAGESIZE */
4555
4556#endif /* no HAVE_GETPAGESIZE */
4557
4558int
4559main ()
4560{
4561  char *data, *data2, *data3;
4562  const char *cdata2;
4563  int i, pagesize;
4564  int fd, fd2;
4565
4566  pagesize = getpagesize ();
4567
4568  /* First, make a file with some known garbage in it. */
4569  data = (char *) malloc (pagesize);
4570  if (!data)
4571    return 1;
4572  for (i = 0; i < pagesize; ++i)
4573    *(data + i) = rand ();
4574  umask (0);
4575  fd = creat ("conftest.mmap", 0600);
4576  if (fd < 0)
4577    return 2;
4578  if (write (fd, data, pagesize) != pagesize)
4579    return 3;
4580  close (fd);
4581
4582  /* Next, check that the tail of a page is zero-filled.  File must have
4583     non-zero length, otherwise we risk SIGBUS for entire page.  */
4584  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4585  if (fd2 < 0)
4586    return 4;
4587  cdata2 = "";
4588  if (write (fd2, cdata2, 1) != 1)
4589    return 5;
4590  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4591  if (data2 == MAP_FAILED)
4592    return 6;
4593  for (i = 0; i < pagesize; ++i)
4594    if (*(data2 + i))
4595      return 7;
4596  close (fd2);
4597  if (munmap (data2, pagesize))
4598    return 8;
4599
4600  /* Next, try to mmap the file at a fixed address which already has
4601     something else allocated at it.  If we can, also make sure that
4602     we see the same garbage.  */
4603  fd = open ("conftest.mmap", O_RDWR);
4604  if (fd < 0)
4605    return 9;
4606  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4607		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
4608    return 10;
4609  for (i = 0; i < pagesize; ++i)
4610    if (*(data + i) != *(data2 + i))
4611      return 11;
4612
4613  /* Finally, make sure that changes to the mapped area do not
4614     percolate back to the file as seen by read().  (This is a bug on
4615     some variants of i386 svr4.0.)  */
4616  for (i = 0; i < pagesize; ++i)
4617    *(data2 + i) = *(data2 + i) + 1;
4618  data3 = (char *) malloc (pagesize);
4619  if (!data3)
4620    return 12;
4621  if (read (fd, data3, pagesize) != pagesize)
4622    return 13;
4623  for (i = 0; i < pagesize; ++i)
4624    if (*(data + i) != *(data3 + i))
4625      return 14;
4626  close (fd);
4627  return 0;
4628}
4629_ACEOF
4630if ac_fn_c_try_run "$LINENO"; then :
4631  ac_cv_func_mmap_fixed_mapped=yes
4632else
4633  ac_cv_func_mmap_fixed_mapped=no
4634fi
4635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4636  conftest.$ac_objext conftest.beam conftest.$ac_ext
4637fi
4638
4639fi
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4641$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4642if test $ac_cv_func_mmap_fixed_mapped = yes; then
4643
4644$as_echo "#define HAVE_MMAP 1" >>confdefs.h
4645
4646fi
4647rm -f conftest.mmap conftest.txt
4648
4649if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
4650  FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
4651else
4652  FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
4653
4654  ac_fn_c_check_decl "$LINENO" "munmap" "ac_cv_have_decl_munmap" "
4655
4656#ifdef HAVE_UNISTD_H
4657#include <unistd.h>
4658#endif
4659#include <sys/mman.h>
4660
4661
4662"
4663if test "x$ac_cv_have_decl_munmap" = x""yes; then :
4664  ac_have_decl=1
4665else
4666  ac_have_decl=0
4667fi
4668
4669cat >>confdefs.h <<_ACEOF
4670#define HAVE_DECL_MUNMAP $ac_have_decl
4671_ACEOF
4672
4673
4674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for munmap's first parameter type" >&5
4675$as_echo_n "checking for munmap's first parameter type... " >&6; }
4676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677/* end confdefs.h.  */
4678
4679
4680
4681#include <unistd.h>
4682#include <sys/mman.h>
4683int munmap(void *, size_t);
4684
4685
4686
4687_ACEOF
4688if ac_fn_c_try_compile "$LINENO"; then :
4689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: void *" >&5
4690$as_echo "void *" >&6; }
4691
4692$as_echo "#define MUNMAP_USES_VOIDP /**/" >>confdefs.h
4693
4694else
4695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: char *" >&5
4696$as_echo "char *" >&6; }
4697fi
4698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699
4700fi
4701
4702
4703for ac_func in memcpy memmove
4704do :
4705  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4706ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4707if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4708  cat >>confdefs.h <<_ACEOF
4709#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4710_ACEOF
4711
4712fi
4713done
4714
4715
4716
4717# check for system zlib
4718
4719# don't quote AS_HELP_STRING!
4720
4721# Check whether --with-zlib was given.
4722if test "${with_zlib+set}" = set; then :
4723  withval=$with_zlib;
4724fi
4725
4726if test x$with_zlib != xno && test -z "$LIBZ"; then
4727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
4728$as_echo_n "checking for gzsetparams in -lz... " >&6; }
4729if test "${ac_cv_lib_z_gzsetparams+set}" = set; then :
4730  $as_echo_n "(cached) " >&6
4731else
4732  ac_check_lib_save_LIBS=$LIBS
4733LIBS="-lz  $LIBS"
4734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735/* end confdefs.h.  */
4736
4737/* Override any GCC internal prototype to avoid an error.
4738   Use char because int might match the return type of a GCC
4739   builtin and then its argument prototype would still apply.  */
4740#ifdef __cplusplus
4741extern "C"
4742#endif
4743char gzsetparams ();
4744int
4745main ()
4746{
4747return gzsetparams ();
4748  ;
4749  return 0;
4750}
4751_ACEOF
4752if ac_fn_c_try_link "$LINENO"; then :
4753  ac_cv_lib_z_gzsetparams=yes
4754else
4755  ac_cv_lib_z_gzsetparams=no
4756fi
4757rm -f core conftest.err conftest.$ac_objext \
4758    conftest$ac_exeext conftest.$ac_ext
4759LIBS=$ac_check_lib_save_LIBS
4760fi
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
4762$as_echo "$ac_cv_lib_z_gzsetparams" >&6; }
4763if test "x$ac_cv_lib_z_gzsetparams" = x""yes; then :
4764  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4765if test "x$ac_cv_header_zlib_h" = x""yes; then :
4766  LIBZ='-lz'
4767fi
4768
4769
4770fi
4771
4772fi
4773if test x$with_zlib != xno && test -n "$LIBZ"; then
4774  CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB"
4775  LDFLAGS="$LDFLAGS $LIBZ"
4776  SYSTEM_ZLIB=yes
4777fi
4778
4779
4780# Some options handling SDKs/archs in CFLAGS should be copied
4781# to LDFLAGS. Apple TechNote 2137 recommends to include these
4782# options in CFLAGS but not in LDFLAGS.
4783
4784save_config_args=$*
4785set dummy ${CFLAGS}
4786i=1
4787while test $i -lt $#
4788do
4789  c=$1
4790
4791  case "${c}" in
4792  -isysroot|-arch) # options taking 1 argument
4793    a=$2
4794    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
4795$as_echo_n "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
4796    if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
4797    then
4798      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4799$as_echo "yes" >&6; }
4800    else
4801      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
4802$as_echo "no, copy to LDFLAGS" >&6; }
4803      LDFLAGS="${LDFLAGS} ${c} ${a}"
4804    fi
4805    shift 1
4806    ;;
4807  -m32|-m64) # options taking no argument
4808    { $as_echo "$as_me:${as_lineno-$LINENO}: result: whether CFLAGS and LDFLAGS share ${c}" >&5
4809$as_echo "whether CFLAGS and LDFLAGS share ${c}" >&6; }
4810    if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
4811    then
4812      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4813$as_echo "yes" >&6; }
4814    else
4815      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
4816$as_echo "no, copy to LDFLAGS" >&6; }
4817      LDFLAGS="${LDFLAGS} ${c}"
4818    fi
4819    ;;
4820  # *)
4821  #   AC_MSG_RESULT([${c} is not copied to LDFLAGS])
4822  #   ;;
4823  esac
4824
4825  shift 1
4826done
4827set ${save_config_args}
4828
4829
4830# Whether to use Mac OS resource-based fonts.
4831
4832ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
4833
4834# don't quote AS_HELP_STRING!
4835
4836# Check whether --with-old-mac-fonts was given.
4837if test "${with_old_mac_fonts+set}" = set; then :
4838  withval=$with_old_mac_fonts;
4839fi
4840
4841if test x$with_old_mac_fonts = xyes; then
4842  orig_LDFLAGS="${LDFLAGS}"
4843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking CoreServices & ApplicationServices of Mac OS X" >&5
4844$as_echo_n "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
4845  FT2_EXTRA_LIBS="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
4846  LDFLAGS="$LDFLAGS $FT2_EXTRA_LIBS"
4847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848/* end confdefs.h.  */
4849
4850
4851
4852#if defined(__GNUC__) && defined(__APPLE_CC__)
4853# include <CoreServices/CoreServices.h>
4854# include <ApplicationServices/ApplicationServices.h>
4855#else
4856# include <ConditionalMacros.h>
4857# include <Files.h>
4858#endif
4859
4860
4861int
4862main ()
4863{
4864
4865
4866        short res = 0;
4867
4868
4869        UseResFile( res );
4870
4871
4872  ;
4873  return 0;
4874}
4875_ACEOF
4876if ac_fn_c_try_link "$LINENO"; then :
4877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4878$as_echo "ok" >&6; }
4879     ftmac_c='ftmac.c'
4880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS_INLINE macro is ANSI compatible" >&5
4881$as_echo_n "checking OS_INLINE macro is ANSI compatible... " >&6; }
4882     orig_CFLAGS="$CFLAGS"
4883     CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
4884     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885/* end confdefs.h.  */
4886
4887
4888
4889#if defined(__GNUC__) && defined(__APPLE_CC__)
4890# include <CoreServices/CoreServices.h>
4891# include <ApplicationServices/ApplicationServices.h>
4892#else
4893# include <ConditionalMacros.h>
4894# include <Files.h>
4895#endif
4896
4897
4898int
4899main ()
4900{
4901
4902
4903           /* OSHostByteOrder() is typed as OS_INLINE */
4904           int32_t  os_byte_order = OSHostByteOrder();
4905
4906
4907           if ( OSBigEndian != os_byte_order )
4908             return 1;
4909
4910
4911  ;
4912  return 0;
4913}
4914_ACEOF
4915if ac_fn_c_try_compile "$LINENO"; then :
4916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4917$as_echo "ok" >&6; }
4918        CFLAGS="$orig_CFLAGS"
4919        CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
4920
4921else
4922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, ANSI incompatible" >&5
4923$as_echo "no, ANSI incompatible" >&6; }
4924        CFLAGS="$orig_CFLAGS"
4925
4926fi
4927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking type ResourceIndex" >&5
4929$as_echo_n "checking type ResourceIndex... " >&6; }
4930     orig_CFLAGS="$CFLAGS"
4931     CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
4932     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933/* end confdefs.h.  */
4934
4935
4936
4937#if defined(__GNUC__) && defined(__APPLE_CC__)
4938# include <CoreServices/CoreServices.h>
4939# include <ApplicationServices/ApplicationServices.h>
4940#else
4941# include <ConditionalMacros.h>
4942# include <Files.h>
4943# include <Resources.h>
4944#endif
4945
4946
4947int
4948main ()
4949{
4950
4951
4952           ResourceIndex i = 0;
4953           return i;
4954
4955
4956  ;
4957  return 0;
4958}
4959_ACEOF
4960if ac_fn_c_try_compile "$LINENO"; then :
4961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4962$as_echo "ok" >&6; }
4963        CFLAGS="$orig_CFLAGS"
4964        CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
4965
4966else
4967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968$as_echo "no" >&6; }
4969        CFLAGS="$orig_CFLAGS"
4970        CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
4971
4972fi
4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974else
4975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4976$as_echo "not found" >&6; }
4977     FT2_EXTRA_LIBS=""
4978     LDFLAGS="${orig_LDFLAGS}"
4979     CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
4980fi
4981rm -f core conftest.err conftest.$ac_objext \
4982    conftest$ac_exeext conftest.$ac_ext
4983else
4984  case x$host_os in
4985  xdarwin*)
4986        CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
4987    ;;
4988  *) ;;
4989  esac
4990fi
4991
4992
4993# Whether to use FileManager which is deprecated since Mac OS X 10.4.
4994
4995
4996# Check whether --with-fsspec was given.
4997if test "${with_fsspec+set}" = set; then :
4998  withval=$with_fsspec;
4999fi
5000
5001if test x$with_fsspec = xno; then
5002  CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
5003elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
5004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSSpec-based FileManager" >&5
5005$as_echo_n "checking FSSpec-based FileManager... " >&6; }
5006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007/* end confdefs.h.  */
5008
5009
5010
5011#if defined(__GNUC__) && defined(__APPLE_CC__)
5012# include <CoreServices/CoreServices.h>
5013# include <ApplicationServices/ApplicationServices.h>
5014#else
5015# include <ConditionalMacros.h>
5016# include <Files.h>
5017#endif
5018
5019
5020int
5021main ()
5022{
5023
5024
5025        FCBPBPtr          paramBlock;
5026        short             vRefNum;
5027        long              dirID;
5028        ConstStr255Param  fileName;
5029        FSSpec*           spec;
5030
5031
5032        /* FSSpec functions: deprecated since Mac OS X 10.4 */
5033        PBGetFCBInfoSync( paramBlock );
5034        FSMakeFSSpec( vRefNum, dirID, fileName, spec );
5035
5036
5037  ;
5038  return 0;
5039}
5040_ACEOF
5041if ac_fn_c_try_link "$LINENO"; then :
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5043$as_echo "ok" >&6; }
5044     CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
5045else
5046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5047$as_echo "not found" >&6; }
5048     CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
5049fi
5050rm -f core conftest.err conftest.$ac_objext \
5051    conftest$ac_exeext conftest.$ac_ext
5052fi
5053
5054
5055# Whether to use FileManager in Carbon since MacOS 9.x.
5056
5057
5058# Check whether --with-fsref was given.
5059if test "${with_fsref+set}" = set; then :
5060  withval=$with_fsref;
5061fi
5062
5063if test x$with_fsref = xno; then
5064  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5065*** WARNING
5066    FreeType2 built without FSRef API cannot load
5067    data-fork fonts on MacOS, except of XXX.dfont.
5068    " >&5
5069$as_echo "$as_me: WARNING:
5070*** WARNING
5071    FreeType2 built without FSRef API cannot load
5072    data-fork fonts on MacOS, except of XXX.dfont.
5073    " >&2;}
5074  CFLAGS="$CFLAGS -DHAVE_FSREF=0"
5075elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
5076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSRef-based FileManager" >&5
5077$as_echo_n "checking FSRef-based FileManager... " >&6; }
5078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079/* end confdefs.h.  */
5080
5081
5082
5083#if defined(__GNUC__) && defined(__APPLE_CC__)
5084# include <CoreServices/CoreServices.h>
5085# include <ApplicationServices/ApplicationServices.h>
5086#else
5087# include <ConditionalMacros.h>
5088# include <Files.h>
5089#endif
5090
5091
5092int
5093main ()
5094{
5095
5096
5097        short                vRefNum;
5098        long                 dirID;
5099        ConstStr255Param     fileName;
5100
5101        Boolean*             isDirectory;
5102        UInt8*               path;
5103        SInt16               desiredRefNum;
5104        SInt16*              iterator;
5105        SInt16*              actualRefNum;
5106        HFSUniStr255*        outForkName;
5107        FSVolumeRefNum       volume;
5108        FSCatalogInfoBitmap  whichInfo;
5109        FSCatalogInfo*       catalogInfo;
5110        FSForkInfo*          forkInfo;
5111        FSRef*               ref;
5112
5113#if HAVE_FSSPEC
5114        FSSpec*              spec;
5115#endif
5116
5117        /* FSRef functions: no need to check? */
5118        FSGetForkCBInfo( desiredRefNum, volume, iterator,
5119                         actualRefNum, forkInfo, ref,
5120                         outForkName );
5121        FSPathMakeRef( path, ref, isDirectory );
5122
5123#if HAVE_FSSPEC
5124        FSpMakeFSRef ( spec, ref );
5125        FSGetCatalogInfo( ref, whichInfo, catalogInfo,
5126                          outForkName, spec, ref );
5127#endif
5128
5129  ;
5130  return 0;
5131}
5132_ACEOF
5133if ac_fn_c_try_link "$LINENO"; then :
5134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5135$as_echo "ok" >&6; }
5136     CFLAGS="$CFLAGS -DHAVE_FSREF=1"
5137else
5138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5139$as_echo "not found" >&6; }
5140     CFLAGS="$CFLAGS -DHAVE_FSREF=0"
5141fi
5142rm -f core conftest.err conftest.$ac_objext \
5143    conftest$ac_exeext conftest.$ac_ext
5144fi
5145
5146
5147# Whether to use QuickDraw API in ToolBox which is deprecated since
5148# Mac OS X 10.4.
5149
5150
5151# Check whether --with-quickdraw-toolbox was given.
5152if test "${with_quickdraw_toolbox+set}" = set; then :
5153  withval=$with_quickdraw_toolbox;
5154fi
5155
5156if test x$with_quickdraw_toolbox = xno; then
5157  CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
5158elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
5159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in ToolBox" >&5
5160$as_echo_n "checking QuickDraw FontManager functions in ToolBox... " >&6; }
5161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h.  */
5163
5164
5165
5166#if defined(__GNUC__) && defined(__APPLE_CC__)
5167# include <CoreServices/CoreServices.h>
5168# include <ApplicationServices/ApplicationServices.h>
5169#else
5170# include <ConditionalMacros.h>
5171# include <Fonts.h>
5172#endif
5173
5174
5175int
5176main ()
5177{
5178
5179
5180        Str255     familyName;
5181        SInt16     familyID   = 0;
5182        FMInput*   fmIn       = NULL;
5183        FMOutput*  fmOut      = NULL;
5184
5185
5186        GetFontName( familyID, familyName );
5187        GetFNum( familyName, &familyID );
5188        fmOut = FMSwapFont( fmIn );
5189
5190
5191  ;
5192  return 0;
5193}
5194_ACEOF
5195if ac_fn_c_try_link "$LINENO"; then :
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5197$as_echo "ok" >&6; }
5198     CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
5199else
5200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5201$as_echo "not found" >&6; }
5202     CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
5203fi
5204rm -f core conftest.err conftest.$ac_objext \
5205    conftest$ac_exeext conftest.$ac_ext
5206fi
5207
5208
5209# Whether to use QuickDraw API in Carbon which is deprecated since
5210# Mac OS X 10.4.
5211
5212
5213# Check whether --with-quickdraw-carbon was given.
5214if test "${with_quickdraw_carbon+set}" = set; then :
5215  withval=$with_quickdraw_carbon;
5216fi
5217
5218if test x$with_quickdraw_carbon = xno; then
5219  CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
5220elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
5221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in Carbon" >&5
5222$as_echo_n "checking QuickDraw FontManager functions in Carbon... " >&6; }
5223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h.  */
5225
5226
5227
5228#if defined(__GNUC__) && defined(__APPLE_CC__)
5229# include <CoreServices/CoreServices.h>
5230# include <ApplicationServices/ApplicationServices.h>
5231#else
5232# include <ConditionalMacros.h>
5233# include <Fonts.h>
5234#endif
5235
5236
5237int
5238main ()
5239{
5240
5241
5242        FMFontFamilyIterator          famIter;
5243        FMFontFamily                  family;
5244        Str255                        famNameStr;
5245        FMFontFamilyInstanceIterator  instIter;
5246        FMFontStyle                   style;
5247        FMFontSize                    size;
5248        FMFont                        font;
5249        FSSpec*                       pathSpec;
5250
5251
5252        FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
5253                                    &famIter );
5254        FMGetNextFontFamily( &famIter, &family );
5255        FMGetFontFamilyName( family, famNameStr );
5256        FMCreateFontFamilyInstanceIterator( family, &instIter );
5257        FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
5258        FMDisposeFontFamilyInstanceIterator( &instIter );
5259        FMDisposeFontFamilyIterator( &famIter );
5260        FMGetFontContainer( font, pathSpec );
5261
5262
5263  ;
5264  return 0;
5265}
5266_ACEOF
5267if ac_fn_c_try_link "$LINENO"; then :
5268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5269$as_echo "ok" >&6; }
5270     CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
5271else
5272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5273$as_echo "not found" >&6; }
5274     CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
5275fi
5276rm -f core conftest.err conftest.$ac_objext \
5277    conftest$ac_exeext conftest.$ac_ext
5278fi
5279
5280
5281# Whether to use AppleTypeService since Mac OS X.
5282
5283# don't quote AS_HELP_STRING!
5284
5285# Check whether --with-ats was given.
5286if test "${with_ats+set}" = set; then :
5287  withval=$with_ats;
5288fi
5289
5290if test x$with_ats = xno; then
5291  CFLAGS="$CFLAGS -DHAVE_ATS=0"
5292elif test x$with_old_mac_fonts = xyes -a x$with_ats != x ; then
5293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking AppleTypeService functions" >&5
5294$as_echo_n "checking AppleTypeService functions... " >&6; }
5295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296/* end confdefs.h.  */
5297
5298
5299
5300#if defined(__GNUC__) && defined(__APPLE_CC__)
5301# include <CoreServices/CoreServices.h>
5302# include <ApplicationServices/ApplicationServices.h>
5303#else
5304# include <ConditionalMacros.h>
5305# include <Files.h>
5306#endif
5307
5308
5309int
5310main ()
5311{
5312
5313
5314        FSSpec*  pathSpec;
5315
5316
5317        ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
5318#if HAVE_FSSPEC
5319        ATSFontGetFileSpecification( 0, pathSpec );
5320#endif
5321
5322
5323  ;
5324  return 0;
5325}
5326_ACEOF
5327if ac_fn_c_try_link "$LINENO"; then :
5328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5329$as_echo "ok" >&6; }
5330     CFLAGS="$CFLAGS -DHAVE_ATS=1"
5331else
5332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5333$as_echo "not found" >&6; }
5334     CFLAGS="$CFLAGS -DHAVE_ATS=0"
5335fi
5336rm -f core conftest.err conftest.$ac_objext \
5337    conftest$ac_exeext conftest.$ac_ext
5338fi
5339
5340case "$CFLAGS" in
5341  *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
5342    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5343*** WARNING
5344    FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
5345    thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
5346    " >&5
5347$as_echo "$as_me: WARNING:
5348*** WARNING
5349    FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
5350    thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
5351    " >&2;}
5352    CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
5353    ;;
5354  *)
5355    ;;
5356esac
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367case `pwd` in
5368  *\ * | *\	*)
5369    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5370$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5371esac
5372
5373
5374
5375macro_version='2.2.6b'
5376macro_revision='1.3017'
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390ltmain="$ac_aux_dir/ltmain.sh"
5391
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5393$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5394if test "${ac_cv_path_SED+set}" = set; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5398     for ac_i in 1 2 3 4 5 6 7; do
5399       ac_script="$ac_script$as_nl$ac_script"
5400     done
5401     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5402     { ac_script=; unset ac_script;}
5403     if test -z "$SED"; then
5404  ac_path_SED_found=false
5405  # Loop through the user's path and test for each of PROGNAME-LIST
5406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409  IFS=$as_save_IFS
5410  test -z "$as_dir" && as_dir=.
5411    for ac_prog in sed gsed; do
5412    for ac_exec_ext in '' $ac_executable_extensions; do
5413      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5414      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5415# Check for GNU ac_path_SED and select it if it is found.
5416  # Check for GNU $ac_path_SED
5417case `"$ac_path_SED" --version 2>&1` in
5418*GNU*)
5419  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5420*)
5421  ac_count=0
5422  $as_echo_n 0123456789 >"conftest.in"
5423  while :
5424  do
5425    cat "conftest.in" "conftest.in" >"conftest.tmp"
5426    mv "conftest.tmp" "conftest.in"
5427    cp "conftest.in" "conftest.nl"
5428    $as_echo '' >> "conftest.nl"
5429    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5430    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5431    as_fn_arith $ac_count + 1 && ac_count=$as_val
5432    if test $ac_count -gt ${ac_path_SED_max-0}; then
5433      # Best one so far, save it but keep looking for a better one
5434      ac_cv_path_SED="$ac_path_SED"
5435      ac_path_SED_max=$ac_count
5436    fi
5437    # 10*(2^10) chars as input seems more than enough
5438    test $ac_count -gt 10 && break
5439  done
5440  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5441esac
5442
5443      $ac_path_SED_found && break 3
5444    done
5445  done
5446  done
5447IFS=$as_save_IFS
5448  if test -z "$ac_cv_path_SED"; then
5449    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5450  fi
5451else
5452  ac_cv_path_SED=$SED
5453fi
5454
5455fi
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5457$as_echo "$ac_cv_path_SED" >&6; }
5458 SED="$ac_cv_path_SED"
5459  rm -f conftest.sed
5460
5461test -z "$SED" && SED=sed
5462Xsed="$SED -e 1s/^X//"
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5475$as_echo_n "checking for fgrep... " >&6; }
5476if test "${ac_cv_path_FGREP+set}" = set; then :
5477  $as_echo_n "(cached) " >&6
5478else
5479  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5480   then ac_cv_path_FGREP="$GREP -F"
5481   else
5482     if test -z "$FGREP"; then
5483  ac_path_FGREP_found=false
5484  # Loop through the user's path and test for each of PROGNAME-LIST
5485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5487do
5488  IFS=$as_save_IFS
5489  test -z "$as_dir" && as_dir=.
5490    for ac_prog in fgrep; do
5491    for ac_exec_ext in '' $ac_executable_extensions; do
5492      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5493      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5494# Check for GNU ac_path_FGREP and select it if it is found.
5495  # Check for GNU $ac_path_FGREP
5496case `"$ac_path_FGREP" --version 2>&1` in
5497*GNU*)
5498  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5499*)
5500  ac_count=0
5501  $as_echo_n 0123456789 >"conftest.in"
5502  while :
5503  do
5504    cat "conftest.in" "conftest.in" >"conftest.tmp"
5505    mv "conftest.tmp" "conftest.in"
5506    cp "conftest.in" "conftest.nl"
5507    $as_echo 'FGREP' >> "conftest.nl"
5508    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5509    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5510    as_fn_arith $ac_count + 1 && ac_count=$as_val
5511    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5512      # Best one so far, save it but keep looking for a better one
5513      ac_cv_path_FGREP="$ac_path_FGREP"
5514      ac_path_FGREP_max=$ac_count
5515    fi
5516    # 10*(2^10) chars as input seems more than enough
5517    test $ac_count -gt 10 && break
5518  done
5519  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5520esac
5521
5522      $ac_path_FGREP_found && break 3
5523    done
5524  done
5525  done
5526IFS=$as_save_IFS
5527  if test -z "$ac_cv_path_FGREP"; then
5528    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5529  fi
5530else
5531  ac_cv_path_FGREP=$FGREP
5532fi
5533
5534   fi
5535fi
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5537$as_echo "$ac_cv_path_FGREP" >&6; }
5538 FGREP="$ac_cv_path_FGREP"
5539
5540
5541test -z "$GREP" && GREP=grep
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561# Check whether --with-gnu-ld was given.
5562if test "${with_gnu_ld+set}" = set; then :
5563  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5564else
5565  with_gnu_ld=no
5566fi
5567
5568ac_prog=ld
5569if test "$GCC" = yes; then
5570  # Check if gcc -print-prog-name=ld gives a path.
5571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5572$as_echo_n "checking for ld used by $CC... " >&6; }
5573  case $host in
5574  *-*-mingw*)
5575    # gcc leaves a trailing carriage return which upsets mingw
5576    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5577  *)
5578    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5579  esac
5580  case $ac_prog in
5581    # Accept absolute paths.
5582    [\\/]* | ?:[\\/]*)
5583      re_direlt='/[^/][^/]*/\.\./'
5584      # Canonicalize the pathname of ld
5585      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5586      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5587	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5588      done
5589      test -z "$LD" && LD="$ac_prog"
5590      ;;
5591  "")
5592    # If it fails, then pretend we aren't using GCC.
5593    ac_prog=ld
5594    ;;
5595  *)
5596    # If it is relative, then search for the first ld in PATH.
5597    with_gnu_ld=unknown
5598    ;;
5599  esac
5600elif test "$with_gnu_ld" = yes; then
5601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5602$as_echo_n "checking for GNU ld... " >&6; }
5603else
5604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5605$as_echo_n "checking for non-GNU ld... " >&6; }
5606fi
5607if test "${lt_cv_path_LD+set}" = set; then :
5608  $as_echo_n "(cached) " >&6
5609else
5610  if test -z "$LD"; then
5611  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5612  for ac_dir in $PATH; do
5613    IFS="$lt_save_ifs"
5614    test -z "$ac_dir" && ac_dir=.
5615    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5616      lt_cv_path_LD="$ac_dir/$ac_prog"
5617      # Check to see if the program is GNU ld.  I'd rather use --version,
5618      # but apparently some variants of GNU ld only accept -v.
5619      # Break only if it was the GNU/non-GNU ld that we prefer.
5620      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5621      *GNU* | *'with BFD'*)
5622	test "$with_gnu_ld" != no && break
5623	;;
5624      *)
5625	test "$with_gnu_ld" != yes && break
5626	;;
5627      esac
5628    fi
5629  done
5630  IFS="$lt_save_ifs"
5631else
5632  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5633fi
5634fi
5635
5636LD="$lt_cv_path_LD"
5637if test -n "$LD"; then
5638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5639$as_echo "$LD" >&6; }
5640else
5641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642$as_echo "no" >&6; }
5643fi
5644test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5646$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5647if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5651case `$LD -v 2>&1 </dev/null` in
5652*GNU* | *'with BFD'*)
5653  lt_cv_prog_gnu_ld=yes
5654  ;;
5655*)
5656  lt_cv_prog_gnu_ld=no
5657  ;;
5658esac
5659fi
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5661$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5662with_gnu_ld=$lt_cv_prog_gnu_ld
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5673$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5674if test "${lt_cv_path_NM+set}" = set; then :
5675  $as_echo_n "(cached) " >&6
5676else
5677  if test -n "$NM"; then
5678  # Let the user override the test.
5679  lt_cv_path_NM="$NM"
5680else
5681  lt_nm_to_check="${ac_tool_prefix}nm"
5682  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5683    lt_nm_to_check="$lt_nm_to_check nm"
5684  fi
5685  for lt_tmp_nm in $lt_nm_to_check; do
5686    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5687    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5688      IFS="$lt_save_ifs"
5689      test -z "$ac_dir" && ac_dir=.
5690      tmp_nm="$ac_dir/$lt_tmp_nm"
5691      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5692	# Check to see if the nm accepts a BSD-compat flag.
5693	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5694	#   nm: unknown option "B" ignored
5695	# Tru64's nm complains that /dev/null is an invalid object file
5696	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5697	*/dev/null* | *'Invalid file or object type'*)
5698	  lt_cv_path_NM="$tmp_nm -B"
5699	  break
5700	  ;;
5701	*)
5702	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5703	  */dev/null*)
5704	    lt_cv_path_NM="$tmp_nm -p"
5705	    break
5706	    ;;
5707	  *)
5708	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5709	    continue # so that we can try to find one that supports BSD flags
5710	    ;;
5711	  esac
5712	  ;;
5713	esac
5714      fi
5715    done
5716    IFS="$lt_save_ifs"
5717  done
5718  : ${lt_cv_path_NM=no}
5719fi
5720fi
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5722$as_echo "$lt_cv_path_NM" >&6; }
5723if test "$lt_cv_path_NM" != "no"; then
5724  NM="$lt_cv_path_NM"
5725else
5726  # Didn't find any BSD compatible name lister, look for dumpbin.
5727  if test -n "$ac_tool_prefix"; then
5728  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5729  do
5730    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5731set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733$as_echo_n "checking for $ac_word... " >&6; }
5734if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5735  $as_echo_n "(cached) " >&6
5736else
5737  if test -n "$DUMPBIN"; then
5738  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743  IFS=$as_save_IFS
5744  test -z "$as_dir" && as_dir=.
5745    for ac_exec_ext in '' $ac_executable_extensions; do
5746  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749    break 2
5750  fi
5751done
5752  done
5753IFS=$as_save_IFS
5754
5755fi
5756fi
5757DUMPBIN=$ac_cv_prog_DUMPBIN
5758if test -n "$DUMPBIN"; then
5759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5760$as_echo "$DUMPBIN" >&6; }
5761else
5762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763$as_echo "no" >&6; }
5764fi
5765
5766
5767    test -n "$DUMPBIN" && break
5768  done
5769fi
5770if test -z "$DUMPBIN"; then
5771  ac_ct_DUMPBIN=$DUMPBIN
5772  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5773do
5774  # Extract the first word of "$ac_prog", so it can be a program name with args.
5775set dummy $ac_prog; ac_word=$2
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777$as_echo_n "checking for $ac_word... " >&6; }
5778if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5779  $as_echo_n "(cached) " >&6
5780else
5781  if test -n "$ac_ct_DUMPBIN"; then
5782  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787  IFS=$as_save_IFS
5788  test -z "$as_dir" && as_dir=.
5789    for ac_exec_ext in '' $ac_executable_extensions; do
5790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793    break 2
5794  fi
5795done
5796  done
5797IFS=$as_save_IFS
5798
5799fi
5800fi
5801ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5802if test -n "$ac_ct_DUMPBIN"; then
5803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5804$as_echo "$ac_ct_DUMPBIN" >&6; }
5805else
5806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807$as_echo "no" >&6; }
5808fi
5809
5810
5811  test -n "$ac_ct_DUMPBIN" && break
5812done
5813
5814  if test "x$ac_ct_DUMPBIN" = x; then
5815    DUMPBIN=":"
5816  else
5817    case $cross_compiling:$ac_tool_warned in
5818yes:)
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821ac_tool_warned=yes ;;
5822esac
5823    DUMPBIN=$ac_ct_DUMPBIN
5824  fi
5825fi
5826
5827
5828  if test "$DUMPBIN" != ":"; then
5829    NM="$DUMPBIN"
5830  fi
5831fi
5832test -z "$NM" && NM=nm
5833
5834
5835
5836
5837
5838
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5840$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5841if test "${lt_cv_nm_interface+set}" = set; then :
5842  $as_echo_n "(cached) " >&6
5843else
5844  lt_cv_nm_interface="BSD nm"
5845  echo "int some_variable = 0;" > conftest.$ac_ext
5846  (eval echo "\"\$as_me:5846: $ac_compile\"" >&5)
5847  (eval "$ac_compile" 2>conftest.err)
5848  cat conftest.err >&5
5849  (eval echo "\"\$as_me:5849: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5850  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5851  cat conftest.err >&5
5852  (eval echo "\"\$as_me:5852: output\"" >&5)
5853  cat conftest.out >&5
5854  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5855    lt_cv_nm_interface="MS dumpbin"
5856  fi
5857  rm -f conftest*
5858fi
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5860$as_echo "$lt_cv_nm_interface" >&6; }
5861
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5863$as_echo_n "checking whether ln -s works... " >&6; }
5864LN_S=$as_ln_s
5865if test "$LN_S" = "ln -s"; then
5866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5867$as_echo "yes" >&6; }
5868else
5869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5870$as_echo "no, using $LN_S" >&6; }
5871fi
5872
5873# find the maximum length of command line arguments
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5875$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5876if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5877  $as_echo_n "(cached) " >&6
5878else
5879    i=0
5880  teststring="ABCD"
5881
5882  case $build_os in
5883  msdosdjgpp*)
5884    # On DJGPP, this test can blow up pretty badly due to problems in libc
5885    # (any single argument exceeding 2000 bytes causes a buffer overrun
5886    # during glob expansion).  Even if it were fixed, the result of this
5887    # check would be larger than it should be.
5888    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5889    ;;
5890
5891  gnu*)
5892    # Under GNU Hurd, this test is not required because there is
5893    # no limit to the length of command line arguments.
5894    # Libtool will interpret -1 as no limit whatsoever
5895    lt_cv_sys_max_cmd_len=-1;
5896    ;;
5897
5898  cygwin* | mingw* | cegcc*)
5899    # On Win9x/ME, this test blows up -- it succeeds, but takes
5900    # about 5 minutes as the teststring grows exponentially.
5901    # Worse, since 9x/ME are not pre-emptively multitasking,
5902    # you end up with a "frozen" computer, even though with patience
5903    # the test eventually succeeds (with a max line length of 256k).
5904    # Instead, let's just punt: use the minimum linelength reported by
5905    # all of the supported platforms: 8192 (on NT/2K/XP).
5906    lt_cv_sys_max_cmd_len=8192;
5907    ;;
5908
5909  amigaos*)
5910    # On AmigaOS with pdksh, this test takes hours, literally.
5911    # So we just punt and use a minimum line length of 8192.
5912    lt_cv_sys_max_cmd_len=8192;
5913    ;;
5914
5915  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5916    # This has been around since 386BSD, at least.  Likely further.
5917    if test -x /sbin/sysctl; then
5918      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5919    elif test -x /usr/sbin/sysctl; then
5920      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5921    else
5922      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5923    fi
5924    # And add a safety zone
5925    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5926    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5927    ;;
5928
5929  interix*)
5930    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5931    lt_cv_sys_max_cmd_len=196608
5932    ;;
5933
5934  osf*)
5935    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5936    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5937    # nice to cause kernel panics so lets avoid the loop below.
5938    # First set a reasonable default.
5939    lt_cv_sys_max_cmd_len=16384
5940    #
5941    if test -x /sbin/sysconfig; then
5942      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5943        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5944      esac
5945    fi
5946    ;;
5947  sco3.2v5*)
5948    lt_cv_sys_max_cmd_len=102400
5949    ;;
5950  sysv5* | sco5v6* | sysv4.2uw2*)
5951    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5952    if test -n "$kargmax"; then
5953      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5954    else
5955      lt_cv_sys_max_cmd_len=32768
5956    fi
5957    ;;
5958  *)
5959    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5960    if test -n "$lt_cv_sys_max_cmd_len"; then
5961      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5962      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5963    else
5964      # Make teststring a little bigger before we do anything with it.
5965      # a 1K string should be a reasonable start.
5966      for i in 1 2 3 4 5 6 7 8 ; do
5967        teststring=$teststring$teststring
5968      done
5969      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5970      # If test is not a shell built-in, we'll probably end up computing a
5971      # maximum length that is only half of the actual maximum length, but
5972      # we can't tell.
5973      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5974	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5975	      test $i != 17 # 1/2 MB should be enough
5976      do
5977        i=`expr $i + 1`
5978        teststring=$teststring$teststring
5979      done
5980      # Only check the string length outside the loop.
5981      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5982      teststring=
5983      # Add a significant safety factor because C++ compilers can tack on
5984      # massive amounts of additional arguments before passing them to the
5985      # linker.  It appears as though 1/2 is a usable value.
5986      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5987    fi
5988    ;;
5989  esac
5990
5991fi
5992
5993if test -n $lt_cv_sys_max_cmd_len ; then
5994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5995$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5996else
5997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5998$as_echo "none" >&6; }
5999fi
6000max_cmd_len=$lt_cv_sys_max_cmd_len
6001
6002
6003
6004
6005
6006
6007: ${CP="cp -f"}
6008: ${MV="mv -f"}
6009: ${RM="rm -f"}
6010
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6012$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6013# Try some XSI features
6014xsi_shell=no
6015( _lt_dummy="a/b/c"
6016  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6017      = c,a/b,, \
6018    && eval 'test $(( 1 + 1 )) -eq 2 \
6019    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6020  && xsi_shell=yes
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6022$as_echo "$xsi_shell" >&6; }
6023
6024
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6026$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6027lt_shell_append=no
6028( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6029    >/dev/null 2>&1 \
6030  && lt_shell_append=yes
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6032$as_echo "$lt_shell_append" >&6; }
6033
6034
6035if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6036  lt_unset=unset
6037else
6038  lt_unset=false
6039fi
6040
6041
6042
6043
6044
6045# test EBCDIC or ASCII
6046case `echo X|tr X '\101'` in
6047 A) # ASCII based system
6048    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6049  lt_SP2NL='tr \040 \012'
6050  lt_NL2SP='tr \015\012 \040\040'
6051  ;;
6052 *) # EBCDIC based system
6053  lt_SP2NL='tr \100 \n'
6054  lt_NL2SP='tr \r\n \100\100'
6055  ;;
6056esac
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6067$as_echo_n "checking for $LD option to reload object files... " >&6; }
6068if test "${lt_cv_ld_reload_flag+set}" = set; then :
6069  $as_echo_n "(cached) " >&6
6070else
6071  lt_cv_ld_reload_flag='-r'
6072fi
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6074$as_echo "$lt_cv_ld_reload_flag" >&6; }
6075reload_flag=$lt_cv_ld_reload_flag
6076case $reload_flag in
6077"" | " "*) ;;
6078*) reload_flag=" $reload_flag" ;;
6079esac
6080reload_cmds='$LD$reload_flag -o $output$reload_objs'
6081case $host_os in
6082  darwin*)
6083    if test "$GCC" = yes; then
6084      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6085    else
6086      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6087    fi
6088    ;;
6089esac
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099if test -n "$ac_tool_prefix"; then
6100  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6101set dummy ${ac_tool_prefix}objdump; ac_word=$2
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103$as_echo_n "checking for $ac_word... " >&6; }
6104if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6105  $as_echo_n "(cached) " >&6
6106else
6107  if test -n "$OBJDUMP"; then
6108  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6109else
6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111for as_dir in $PATH
6112do
6113  IFS=$as_save_IFS
6114  test -z "$as_dir" && as_dir=.
6115    for ac_exec_ext in '' $ac_executable_extensions; do
6116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119    break 2
6120  fi
6121done
6122  done
6123IFS=$as_save_IFS
6124
6125fi
6126fi
6127OBJDUMP=$ac_cv_prog_OBJDUMP
6128if test -n "$OBJDUMP"; then
6129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6130$as_echo "$OBJDUMP" >&6; }
6131else
6132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133$as_echo "no" >&6; }
6134fi
6135
6136
6137fi
6138if test -z "$ac_cv_prog_OBJDUMP"; then
6139  ac_ct_OBJDUMP=$OBJDUMP
6140  # Extract the first word of "objdump", so it can be a program name with args.
6141set dummy objdump; ac_word=$2
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143$as_echo_n "checking for $ac_word... " >&6; }
6144if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6145  $as_echo_n "(cached) " >&6
6146else
6147  if test -n "$ac_ct_OBJDUMP"; then
6148  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6149else
6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH
6152do
6153  IFS=$as_save_IFS
6154  test -z "$as_dir" && as_dir=.
6155    for ac_exec_ext in '' $ac_executable_extensions; do
6156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6159    break 2
6160  fi
6161done
6162  done
6163IFS=$as_save_IFS
6164
6165fi
6166fi
6167ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6168if test -n "$ac_ct_OBJDUMP"; then
6169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6170$as_echo "$ac_ct_OBJDUMP" >&6; }
6171else
6172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173$as_echo "no" >&6; }
6174fi
6175
6176  if test "x$ac_ct_OBJDUMP" = x; then
6177    OBJDUMP="false"
6178  else
6179    case $cross_compiling:$ac_tool_warned in
6180yes:)
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6183ac_tool_warned=yes ;;
6184esac
6185    OBJDUMP=$ac_ct_OBJDUMP
6186  fi
6187else
6188  OBJDUMP="$ac_cv_prog_OBJDUMP"
6189fi
6190
6191test -z "$OBJDUMP" && OBJDUMP=objdump
6192
6193
6194
6195
6196
6197
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6199$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6200if test "${lt_cv_deplibs_check_method+set}" = set; then :
6201  $as_echo_n "(cached) " >&6
6202else
6203  lt_cv_file_magic_cmd='$MAGIC_CMD'
6204lt_cv_file_magic_test_file=
6205lt_cv_deplibs_check_method='unknown'
6206# Need to set the preceding variable on all platforms that support
6207# interlibrary dependencies.
6208# 'none' -- dependencies not supported.
6209# `unknown' -- same as none, but documents that we really don't know.
6210# 'pass_all' -- all dependencies passed with no checks.
6211# 'test_compile' -- check by making test program.
6212# 'file_magic [[regex]]' -- check by looking for files in library path
6213# which responds to the $file_magic_cmd with a given extended regex.
6214# If you have `file' or equivalent on your system and you're not sure
6215# whether `pass_all' will *always* work, you probably want this one.
6216
6217case $host_os in
6218aix[4-9]*)
6219  lt_cv_deplibs_check_method=pass_all
6220  ;;
6221
6222beos*)
6223  lt_cv_deplibs_check_method=pass_all
6224  ;;
6225
6226bsdi[45]*)
6227  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6228  lt_cv_file_magic_cmd='/usr/bin/file -L'
6229  lt_cv_file_magic_test_file=/shlib/libc.so
6230  ;;
6231
6232cygwin*)
6233  # func_win32_libid is a shell function defined in ltmain.sh
6234  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6235  lt_cv_file_magic_cmd='func_win32_libid'
6236  ;;
6237
6238mingw* | pw32*)
6239  # Base MSYS/MinGW do not provide the 'file' command needed by
6240  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6241  # unless we find 'file', for example because we are cross-compiling.
6242  if ( file / ) >/dev/null 2>&1; then
6243    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6244    lt_cv_file_magic_cmd='func_win32_libid'
6245  else
6246    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6247    lt_cv_file_magic_cmd='$OBJDUMP -f'
6248  fi
6249  ;;
6250
6251cegcc)
6252  # use the weaker test based on 'objdump'. See mingw*.
6253  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6254  lt_cv_file_magic_cmd='$OBJDUMP -f'
6255  ;;
6256
6257darwin* | rhapsody*)
6258  lt_cv_deplibs_check_method=pass_all
6259  ;;
6260
6261freebsd* | dragonfly*)
6262  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6263    case $host_cpu in
6264    i*86 )
6265      # Not sure whether the presence of OpenBSD here was a mistake.
6266      # Let's accept both of them until this is cleared up.
6267      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6268      lt_cv_file_magic_cmd=/usr/bin/file
6269      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6270      ;;
6271    esac
6272  else
6273    lt_cv_deplibs_check_method=pass_all
6274  fi
6275  ;;
6276
6277gnu*)
6278  lt_cv_deplibs_check_method=pass_all
6279  ;;
6280
6281hpux10.20* | hpux11*)
6282  lt_cv_file_magic_cmd=/usr/bin/file
6283  case $host_cpu in
6284  ia64*)
6285    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6286    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6287    ;;
6288  hppa*64*)
6289    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6290    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6291    ;;
6292  *)
6293    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6294    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6295    ;;
6296  esac
6297  ;;
6298
6299interix[3-9]*)
6300  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6301  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6302  ;;
6303
6304irix5* | irix6* | nonstopux*)
6305  case $LD in
6306  *-32|*"-32 ") libmagic=32-bit;;
6307  *-n32|*"-n32 ") libmagic=N32;;
6308  *-64|*"-64 ") libmagic=64-bit;;
6309  *) libmagic=never-match;;
6310  esac
6311  lt_cv_deplibs_check_method=pass_all
6312  ;;
6313
6314# This must be Linux ELF.
6315linux* | k*bsd*-gnu)
6316  lt_cv_deplibs_check_method=pass_all
6317  ;;
6318
6319netbsd*)
6320  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6321    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6322  else
6323    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6324  fi
6325  ;;
6326
6327newos6*)
6328  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6329  lt_cv_file_magic_cmd=/usr/bin/file
6330  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6331  ;;
6332
6333*nto* | *qnx*)
6334  lt_cv_deplibs_check_method=pass_all
6335  ;;
6336
6337openbsd*)
6338  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6339    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6340  else
6341    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6342  fi
6343  ;;
6344
6345osf3* | osf4* | osf5*)
6346  lt_cv_deplibs_check_method=pass_all
6347  ;;
6348
6349rdos*)
6350  lt_cv_deplibs_check_method=pass_all
6351  ;;
6352
6353solaris*)
6354  lt_cv_deplibs_check_method=pass_all
6355  ;;
6356
6357sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6358  lt_cv_deplibs_check_method=pass_all
6359  ;;
6360
6361sysv4 | sysv4.3*)
6362  case $host_vendor in
6363  motorola)
6364    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]'
6365    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6366    ;;
6367  ncr)
6368    lt_cv_deplibs_check_method=pass_all
6369    ;;
6370  sequent)
6371    lt_cv_file_magic_cmd='/bin/file'
6372    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6373    ;;
6374  sni)
6375    lt_cv_file_magic_cmd='/bin/file'
6376    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6377    lt_cv_file_magic_test_file=/lib/libc.so
6378    ;;
6379  siemens)
6380    lt_cv_deplibs_check_method=pass_all
6381    ;;
6382  pc)
6383    lt_cv_deplibs_check_method=pass_all
6384    ;;
6385  esac
6386  ;;
6387
6388tpf*)
6389  lt_cv_deplibs_check_method=pass_all
6390  ;;
6391esac
6392
6393fi
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6395$as_echo "$lt_cv_deplibs_check_method" >&6; }
6396file_magic_cmd=$lt_cv_file_magic_cmd
6397deplibs_check_method=$lt_cv_deplibs_check_method
6398test -z "$deplibs_check_method" && deplibs_check_method=unknown
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411if test -n "$ac_tool_prefix"; then
6412  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6413set dummy ${ac_tool_prefix}ar; ac_word=$2
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415$as_echo_n "checking for $ac_word... " >&6; }
6416if test "${ac_cv_prog_AR+set}" = set; then :
6417  $as_echo_n "(cached) " >&6
6418else
6419  if test -n "$AR"; then
6420  ac_cv_prog_AR="$AR" # Let the user override the test.
6421else
6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425  IFS=$as_save_IFS
6426  test -z "$as_dir" && as_dir=.
6427    for ac_exec_ext in '' $ac_executable_extensions; do
6428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429    ac_cv_prog_AR="${ac_tool_prefix}ar"
6430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431    break 2
6432  fi
6433done
6434  done
6435IFS=$as_save_IFS
6436
6437fi
6438fi
6439AR=$ac_cv_prog_AR
6440if test -n "$AR"; then
6441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6442$as_echo "$AR" >&6; }
6443else
6444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445$as_echo "no" >&6; }
6446fi
6447
6448
6449fi
6450if test -z "$ac_cv_prog_AR"; then
6451  ac_ct_AR=$AR
6452  # Extract the first word of "ar", so it can be a program name with args.
6453set dummy ar; ac_word=$2
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455$as_echo_n "checking for $ac_word... " >&6; }
6456if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6457  $as_echo_n "(cached) " >&6
6458else
6459  if test -n "$ac_ct_AR"; then
6460  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465  IFS=$as_save_IFS
6466  test -z "$as_dir" && as_dir=.
6467    for ac_exec_ext in '' $ac_executable_extensions; do
6468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469    ac_cv_prog_ac_ct_AR="ar"
6470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471    break 2
6472  fi
6473done
6474  done
6475IFS=$as_save_IFS
6476
6477fi
6478fi
6479ac_ct_AR=$ac_cv_prog_ac_ct_AR
6480if test -n "$ac_ct_AR"; then
6481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6482$as_echo "$ac_ct_AR" >&6; }
6483else
6484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485$as_echo "no" >&6; }
6486fi
6487
6488  if test "x$ac_ct_AR" = x; then
6489    AR="false"
6490  else
6491    case $cross_compiling:$ac_tool_warned in
6492yes:)
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495ac_tool_warned=yes ;;
6496esac
6497    AR=$ac_ct_AR
6498  fi
6499else
6500  AR="$ac_cv_prog_AR"
6501fi
6502
6503test -z "$AR" && AR=ar
6504test -z "$AR_FLAGS" && AR_FLAGS=cru
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516if test -n "$ac_tool_prefix"; then
6517  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6518set dummy ${ac_tool_prefix}strip; ac_word=$2
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520$as_echo_n "checking for $ac_word... " >&6; }
6521if test "${ac_cv_prog_STRIP+set}" = set; then :
6522  $as_echo_n "(cached) " >&6
6523else
6524  if test -n "$STRIP"; then
6525  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6526else
6527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530  IFS=$as_save_IFS
6531  test -z "$as_dir" && as_dir=.
6532    for ac_exec_ext in '' $ac_executable_extensions; do
6533  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536    break 2
6537  fi
6538done
6539  done
6540IFS=$as_save_IFS
6541
6542fi
6543fi
6544STRIP=$ac_cv_prog_STRIP
6545if test -n "$STRIP"; then
6546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6547$as_echo "$STRIP" >&6; }
6548else
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550$as_echo "no" >&6; }
6551fi
6552
6553
6554fi
6555if test -z "$ac_cv_prog_STRIP"; then
6556  ac_ct_STRIP=$STRIP
6557  # Extract the first word of "strip", so it can be a program name with args.
6558set dummy strip; ac_word=$2
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560$as_echo_n "checking for $ac_word... " >&6; }
6561if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  if test -n "$ac_ct_STRIP"; then
6565  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6566else
6567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570  IFS=$as_save_IFS
6571  test -z "$as_dir" && as_dir=.
6572    for ac_exec_ext in '' $ac_executable_extensions; do
6573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574    ac_cv_prog_ac_ct_STRIP="strip"
6575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576    break 2
6577  fi
6578done
6579  done
6580IFS=$as_save_IFS
6581
6582fi
6583fi
6584ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6585if test -n "$ac_ct_STRIP"; then
6586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6587$as_echo "$ac_ct_STRIP" >&6; }
6588else
6589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590$as_echo "no" >&6; }
6591fi
6592
6593  if test "x$ac_ct_STRIP" = x; then
6594    STRIP=":"
6595  else
6596    case $cross_compiling:$ac_tool_warned in
6597yes:)
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6600ac_tool_warned=yes ;;
6601esac
6602    STRIP=$ac_ct_STRIP
6603  fi
6604else
6605  STRIP="$ac_cv_prog_STRIP"
6606fi
6607
6608test -z "$STRIP" && STRIP=:
6609
6610
6611
6612
6613
6614
6615if test -n "$ac_tool_prefix"; then
6616  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6617set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619$as_echo_n "checking for $ac_word... " >&6; }
6620if test "${ac_cv_prog_RANLIB+set}" = set; then :
6621  $as_echo_n "(cached) " >&6
6622else
6623  if test -n "$RANLIB"; then
6624  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6625else
6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629  IFS=$as_save_IFS
6630  test -z "$as_dir" && as_dir=.
6631    for ac_exec_ext in '' $ac_executable_extensions; do
6632  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635    break 2
6636  fi
6637done
6638  done
6639IFS=$as_save_IFS
6640
6641fi
6642fi
6643RANLIB=$ac_cv_prog_RANLIB
6644if test -n "$RANLIB"; then
6645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6646$as_echo "$RANLIB" >&6; }
6647else
6648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649$as_echo "no" >&6; }
6650fi
6651
6652
6653fi
6654if test -z "$ac_cv_prog_RANLIB"; then
6655  ac_ct_RANLIB=$RANLIB
6656  # Extract the first word of "ranlib", so it can be a program name with args.
6657set dummy ranlib; ac_word=$2
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659$as_echo_n "checking for $ac_word... " >&6; }
6660if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6661  $as_echo_n "(cached) " >&6
6662else
6663  if test -n "$ac_ct_RANLIB"; then
6664  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6665else
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669  IFS=$as_save_IFS
6670  test -z "$as_dir" && as_dir=.
6671    for ac_exec_ext in '' $ac_executable_extensions; do
6672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673    ac_cv_prog_ac_ct_RANLIB="ranlib"
6674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675    break 2
6676  fi
6677done
6678  done
6679IFS=$as_save_IFS
6680
6681fi
6682fi
6683ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6684if test -n "$ac_ct_RANLIB"; then
6685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6686$as_echo "$ac_ct_RANLIB" >&6; }
6687else
6688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689$as_echo "no" >&6; }
6690fi
6691
6692  if test "x$ac_ct_RANLIB" = x; then
6693    RANLIB=":"
6694  else
6695    case $cross_compiling:$ac_tool_warned in
6696yes:)
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699ac_tool_warned=yes ;;
6700esac
6701    RANLIB=$ac_ct_RANLIB
6702  fi
6703else
6704  RANLIB="$ac_cv_prog_RANLIB"
6705fi
6706
6707test -z "$RANLIB" && RANLIB=:
6708
6709
6710
6711
6712
6713
6714# Determine commands to create old-style static archives.
6715old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6716old_postinstall_cmds='chmod 644 $oldlib'
6717old_postuninstall_cmds=
6718
6719if test -n "$RANLIB"; then
6720  case $host_os in
6721  openbsd*)
6722    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6723    ;;
6724  *)
6725    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6726    ;;
6727  esac
6728  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6729fi
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764# If no C compiler was specified, use CC.
6765LTCC=${LTCC-"$CC"}
6766
6767# If no C compiler flags were specified, use CFLAGS.
6768LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6769
6770# Allow CC to be a program name with arguments.
6771compiler=$CC
6772
6773
6774# Check for command to grab the raw symbol name followed by C symbol from nm.
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6776$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6777if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6778  $as_echo_n "(cached) " >&6
6779else
6780
6781# These are sane defaults that work on at least a few old systems.
6782# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6783
6784# Character class describing NM global symbol codes.
6785symcode='[BCDEGRST]'
6786
6787# Regexp to match symbols that can be accessed directly from C.
6788sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6789
6790# Define system-specific variables.
6791case $host_os in
6792aix*)
6793  symcode='[BCDT]'
6794  ;;
6795cygwin* | mingw* | pw32* | cegcc*)
6796  symcode='[ABCDGISTW]'
6797  ;;
6798hpux*)
6799  if test "$host_cpu" = ia64; then
6800    symcode='[ABCDEGRST]'
6801  fi
6802  ;;
6803irix* | nonstopux*)
6804  symcode='[BCDEGRST]'
6805  ;;
6806osf*)
6807  symcode='[BCDEGQRST]'
6808  ;;
6809solaris*)
6810  symcode='[BDRT]'
6811  ;;
6812sco3.2v5*)
6813  symcode='[DT]'
6814  ;;
6815sysv4.2uw2*)
6816  symcode='[DT]'
6817  ;;
6818sysv5* | sco5v6* | unixware* | OpenUNIX*)
6819  symcode='[ABDT]'
6820  ;;
6821sysv4)
6822  symcode='[DFNSTU]'
6823  ;;
6824esac
6825
6826# If we're using GNU nm, then use its standard symbol codes.
6827case `$NM -V 2>&1` in
6828*GNU* | *'with BFD'*)
6829  symcode='[ABCDGIRSTW]' ;;
6830esac
6831
6832# Transform an extracted symbol line into a proper C declaration.
6833# Some systems (esp. on ia64) link data and code symbols differently,
6834# so use this general approach.
6835lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6836
6837# Transform an extracted symbol line into symbol name and symbol address
6838lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6839lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6840
6841# Handle CRLF in mingw tool chain
6842opt_cr=
6843case $build_os in
6844mingw*)
6845  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6846  ;;
6847esac
6848
6849# Try without a prefix underscore, then with it.
6850for ac_symprfx in "" "_"; do
6851
6852  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6853  symxfrm="\\1 $ac_symprfx\\2 \\2"
6854
6855  # Write the raw and C identifiers.
6856  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6857    # Fake it for dumpbin and say T for any non-static function
6858    # and D for any global variable.
6859    # Also find C++ and __fastcall symbols from MSVC++,
6860    # which start with @ or ?.
6861    lt_cv_sys_global_symbol_pipe="$AWK '"\
6862"     {last_section=section; section=\$ 3};"\
6863"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6864"     \$ 0!~/External *\|/{next};"\
6865"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6866"     {if(hide[section]) next};"\
6867"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6868"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6869"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6870"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6871"     ' prfx=^$ac_symprfx"
6872  else
6873    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6874  fi
6875
6876  # Check to see that the pipe works correctly.
6877  pipe_works=no
6878
6879  rm -f conftest*
6880  cat > conftest.$ac_ext <<_LT_EOF
6881#ifdef __cplusplus
6882extern "C" {
6883#endif
6884char nm_test_var;
6885void nm_test_func(void);
6886void nm_test_func(void){}
6887#ifdef __cplusplus
6888}
6889#endif
6890int main(){nm_test_var='a';nm_test_func();return(0);}
6891_LT_EOF
6892
6893  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6894  (eval $ac_compile) 2>&5
6895  ac_status=$?
6896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897  test $ac_status = 0; }; then
6898    # Now try to grab the symbols.
6899    nlist=conftest.nm
6900    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6901  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6902  ac_status=$?
6903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904  test $ac_status = 0; } && test -s "$nlist"; then
6905      # Try sorting and uniquifying the output.
6906      if sort "$nlist" | uniq > "$nlist"T; then
6907	mv -f "$nlist"T "$nlist"
6908      else
6909	rm -f "$nlist"T
6910      fi
6911
6912      # Make sure that we snagged all the symbols we need.
6913      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6914	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6915	  cat <<_LT_EOF > conftest.$ac_ext
6916#ifdef __cplusplus
6917extern "C" {
6918#endif
6919
6920_LT_EOF
6921	  # Now generate the symbol file.
6922	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6923
6924	  cat <<_LT_EOF >> conftest.$ac_ext
6925
6926/* The mapping between symbol names and symbols.  */
6927const struct {
6928  const char *name;
6929  void       *address;
6930}
6931lt__PROGRAM__LTX_preloaded_symbols[] =
6932{
6933  { "@PROGRAM@", (void *) 0 },
6934_LT_EOF
6935	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6936	  cat <<\_LT_EOF >> conftest.$ac_ext
6937  {0, (void *) 0}
6938};
6939
6940/* This works around a problem in FreeBSD linker */
6941#ifdef FREEBSD_WORKAROUND
6942static const void *lt_preloaded_setup() {
6943  return lt__PROGRAM__LTX_preloaded_symbols;
6944}
6945#endif
6946
6947#ifdef __cplusplus
6948}
6949#endif
6950_LT_EOF
6951	  # Now try linking the two files.
6952	  mv conftest.$ac_objext conftstm.$ac_objext
6953	  lt_save_LIBS="$LIBS"
6954	  lt_save_CFLAGS="$CFLAGS"
6955	  LIBS="conftstm.$ac_objext"
6956	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6957	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6958  (eval $ac_link) 2>&5
6959  ac_status=$?
6960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6961  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6962	    pipe_works=yes
6963	  fi
6964	  LIBS="$lt_save_LIBS"
6965	  CFLAGS="$lt_save_CFLAGS"
6966	else
6967	  echo "cannot find nm_test_func in $nlist" >&5
6968	fi
6969      else
6970	echo "cannot find nm_test_var in $nlist" >&5
6971      fi
6972    else
6973      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6974    fi
6975  else
6976    echo "$progname: failed program was:" >&5
6977    cat conftest.$ac_ext >&5
6978  fi
6979  rm -rf conftest* conftst*
6980
6981  # Do not use the global_symbol_pipe unless it works.
6982  if test "$pipe_works" = yes; then
6983    break
6984  else
6985    lt_cv_sys_global_symbol_pipe=
6986  fi
6987done
6988
6989fi
6990
6991if test -z "$lt_cv_sys_global_symbol_pipe"; then
6992  lt_cv_sys_global_symbol_to_cdecl=
6993fi
6994if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6996$as_echo "failed" >&6; }
6997else
6998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6999$as_echo "ok" >&6; }
7000fi
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023# Check whether --enable-libtool-lock was given.
7024if test "${enable_libtool_lock+set}" = set; then :
7025  enableval=$enable_libtool_lock;
7026fi
7027
7028test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7029
7030# Some flags need to be propagated to the compiler or linker for good
7031# libtool support.
7032case $host in
7033ia64-*-hpux*)
7034  # Find out which ABI we are using.
7035  echo 'int i;' > conftest.$ac_ext
7036  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7037  (eval $ac_compile) 2>&5
7038  ac_status=$?
7039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040  test $ac_status = 0; }; then
7041    case `/usr/bin/file conftest.$ac_objext` in
7042      *ELF-32*)
7043	HPUX_IA64_MODE="32"
7044	;;
7045      *ELF-64*)
7046	HPUX_IA64_MODE="64"
7047	;;
7048    esac
7049  fi
7050  rm -rf conftest*
7051  ;;
7052*-*-irix6*)
7053  # Find out which ABI we are using.
7054  echo '#line 7054 "configure"' > conftest.$ac_ext
7055  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7056  (eval $ac_compile) 2>&5
7057  ac_status=$?
7058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7059  test $ac_status = 0; }; then
7060    if test "$lt_cv_prog_gnu_ld" = yes; then
7061      case `/usr/bin/file conftest.$ac_objext` in
7062	*32-bit*)
7063	  LD="${LD-ld} -melf32bsmip"
7064	  ;;
7065	*N32*)
7066	  LD="${LD-ld} -melf32bmipn32"
7067	  ;;
7068	*64-bit*)
7069	  LD="${LD-ld} -melf64bmip"
7070	;;
7071      esac
7072    else
7073      case `/usr/bin/file conftest.$ac_objext` in
7074	*32-bit*)
7075	  LD="${LD-ld} -32"
7076	  ;;
7077	*N32*)
7078	  LD="${LD-ld} -n32"
7079	  ;;
7080	*64-bit*)
7081	  LD="${LD-ld} -64"
7082	  ;;
7083      esac
7084    fi
7085  fi
7086  rm -rf conftest*
7087  ;;
7088
7089x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7090s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7091  # Find out which ABI we are using.
7092  echo 'int i;' > conftest.$ac_ext
7093  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7094  (eval $ac_compile) 2>&5
7095  ac_status=$?
7096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7097  test $ac_status = 0; }; then
7098    case `/usr/bin/file conftest.o` in
7099      *32-bit*)
7100	case $host in
7101	  x86_64-*kfreebsd*-gnu)
7102	    LD="${LD-ld} -m elf_i386_fbsd"
7103	    ;;
7104	  x86_64-*linux*)
7105	    LD="${LD-ld} -m elf_i386"
7106	    ;;
7107	  ppc64-*linux*|powerpc64-*linux*)
7108	    LD="${LD-ld} -m elf32ppclinux"
7109	    ;;
7110	  s390x-*linux*)
7111	    LD="${LD-ld} -m elf_s390"
7112	    ;;
7113	  sparc64-*linux*)
7114	    LD="${LD-ld} -m elf32_sparc"
7115	    ;;
7116	esac
7117	;;
7118      *64-bit*)
7119	case $host in
7120	  x86_64-*kfreebsd*-gnu)
7121	    LD="${LD-ld} -m elf_x86_64_fbsd"
7122	    ;;
7123	  x86_64-*linux*)
7124	    LD="${LD-ld} -m elf_x86_64"
7125	    ;;
7126	  ppc*-*linux*|powerpc*-*linux*)
7127	    LD="${LD-ld} -m elf64ppc"
7128	    ;;
7129	  s390*-*linux*|s390*-*tpf*)
7130	    LD="${LD-ld} -m elf64_s390"
7131	    ;;
7132	  sparc*-*linux*)
7133	    LD="${LD-ld} -m elf64_sparc"
7134	    ;;
7135	esac
7136	;;
7137    esac
7138  fi
7139  rm -rf conftest*
7140  ;;
7141
7142*-*-sco3.2v5*)
7143  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7144  SAVE_CFLAGS="$CFLAGS"
7145  CFLAGS="$CFLAGS -belf"
7146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7147$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7148if test "${lt_cv_cc_needs_belf+set}" = set; then :
7149  $as_echo_n "(cached) " >&6
7150else
7151  ac_ext=c
7152ac_cpp='$CPP $CPPFLAGS'
7153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155ac_compiler_gnu=$ac_cv_c_compiler_gnu
7156
7157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158/* end confdefs.h.  */
7159
7160int
7161main ()
7162{
7163
7164  ;
7165  return 0;
7166}
7167_ACEOF
7168if ac_fn_c_try_link "$LINENO"; then :
7169  lt_cv_cc_needs_belf=yes
7170else
7171  lt_cv_cc_needs_belf=no
7172fi
7173rm -f core conftest.err conftest.$ac_objext \
7174    conftest$ac_exeext conftest.$ac_ext
7175     ac_ext=c
7176ac_cpp='$CPP $CPPFLAGS'
7177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7179ac_compiler_gnu=$ac_cv_c_compiler_gnu
7180
7181fi
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7183$as_echo "$lt_cv_cc_needs_belf" >&6; }
7184  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7185    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7186    CFLAGS="$SAVE_CFLAGS"
7187  fi
7188  ;;
7189sparc*-*solaris*)
7190  # Find out which ABI we are using.
7191  echo 'int i;' > conftest.$ac_ext
7192  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7193  (eval $ac_compile) 2>&5
7194  ac_status=$?
7195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7196  test $ac_status = 0; }; then
7197    case `/usr/bin/file conftest.o` in
7198    *64-bit*)
7199      case $lt_cv_prog_gnu_ld in
7200      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7201      *)
7202	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7203	  LD="${LD-ld} -64"
7204	fi
7205	;;
7206      esac
7207      ;;
7208    esac
7209  fi
7210  rm -rf conftest*
7211  ;;
7212esac
7213
7214need_locks="$enable_libtool_lock"
7215
7216
7217  case $host_os in
7218    rhapsody* | darwin*)
7219    if test -n "$ac_tool_prefix"; then
7220  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7221set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223$as_echo_n "checking for $ac_word... " >&6; }
7224if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7225  $as_echo_n "(cached) " >&6
7226else
7227  if test -n "$DSYMUTIL"; then
7228  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7229else
7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233  IFS=$as_save_IFS
7234  test -z "$as_dir" && as_dir=.
7235    for ac_exec_ext in '' $ac_executable_extensions; do
7236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7237    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239    break 2
7240  fi
7241done
7242  done
7243IFS=$as_save_IFS
7244
7245fi
7246fi
7247DSYMUTIL=$ac_cv_prog_DSYMUTIL
7248if test -n "$DSYMUTIL"; then
7249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7250$as_echo "$DSYMUTIL" >&6; }
7251else
7252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253$as_echo "no" >&6; }
7254fi
7255
7256
7257fi
7258if test -z "$ac_cv_prog_DSYMUTIL"; then
7259  ac_ct_DSYMUTIL=$DSYMUTIL
7260  # Extract the first word of "dsymutil", so it can be a program name with args.
7261set dummy dsymutil; ac_word=$2
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263$as_echo_n "checking for $ac_word... " >&6; }
7264if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7265  $as_echo_n "(cached) " >&6
7266else
7267  if test -n "$ac_ct_DSYMUTIL"; then
7268  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273  IFS=$as_save_IFS
7274  test -z "$as_dir" && as_dir=.
7275    for ac_exec_ext in '' $ac_executable_extensions; do
7276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279    break 2
7280  fi
7281done
7282  done
7283IFS=$as_save_IFS
7284
7285fi
7286fi
7287ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7288if test -n "$ac_ct_DSYMUTIL"; then
7289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7290$as_echo "$ac_ct_DSYMUTIL" >&6; }
7291else
7292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293$as_echo "no" >&6; }
7294fi
7295
7296  if test "x$ac_ct_DSYMUTIL" = x; then
7297    DSYMUTIL=":"
7298  else
7299    case $cross_compiling:$ac_tool_warned in
7300yes:)
7301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7303ac_tool_warned=yes ;;
7304esac
7305    DSYMUTIL=$ac_ct_DSYMUTIL
7306  fi
7307else
7308  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7309fi
7310
7311    if test -n "$ac_tool_prefix"; then
7312  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7313set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315$as_echo_n "checking for $ac_word... " >&6; }
7316if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7317  $as_echo_n "(cached) " >&6
7318else
7319  if test -n "$NMEDIT"; then
7320  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7321else
7322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325  IFS=$as_save_IFS
7326  test -z "$as_dir" && as_dir=.
7327    for ac_exec_ext in '' $ac_executable_extensions; do
7328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7329    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331    break 2
7332  fi
7333done
7334  done
7335IFS=$as_save_IFS
7336
7337fi
7338fi
7339NMEDIT=$ac_cv_prog_NMEDIT
7340if test -n "$NMEDIT"; then
7341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7342$as_echo "$NMEDIT" >&6; }
7343else
7344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345$as_echo "no" >&6; }
7346fi
7347
7348
7349fi
7350if test -z "$ac_cv_prog_NMEDIT"; then
7351  ac_ct_NMEDIT=$NMEDIT
7352  # Extract the first word of "nmedit", so it can be a program name with args.
7353set dummy nmedit; ac_word=$2
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355$as_echo_n "checking for $ac_word... " >&6; }
7356if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7357  $as_echo_n "(cached) " >&6
7358else
7359  if test -n "$ac_ct_NMEDIT"; then
7360  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7361else
7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365  IFS=$as_save_IFS
7366  test -z "$as_dir" && as_dir=.
7367    for ac_exec_ext in '' $ac_executable_extensions; do
7368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371    break 2
7372  fi
7373done
7374  done
7375IFS=$as_save_IFS
7376
7377fi
7378fi
7379ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7380if test -n "$ac_ct_NMEDIT"; then
7381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7382$as_echo "$ac_ct_NMEDIT" >&6; }
7383else
7384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385$as_echo "no" >&6; }
7386fi
7387
7388  if test "x$ac_ct_NMEDIT" = x; then
7389    NMEDIT=":"
7390  else
7391    case $cross_compiling:$ac_tool_warned in
7392yes:)
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7395ac_tool_warned=yes ;;
7396esac
7397    NMEDIT=$ac_ct_NMEDIT
7398  fi
7399else
7400  NMEDIT="$ac_cv_prog_NMEDIT"
7401fi
7402
7403    if test -n "$ac_tool_prefix"; then
7404  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7405set dummy ${ac_tool_prefix}lipo; ac_word=$2
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407$as_echo_n "checking for $ac_word... " >&6; }
7408if test "${ac_cv_prog_LIPO+set}" = set; then :
7409  $as_echo_n "(cached) " >&6
7410else
7411  if test -n "$LIPO"; then
7412  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417  IFS=$as_save_IFS
7418  test -z "$as_dir" && as_dir=.
7419    for ac_exec_ext in '' $ac_executable_extensions; do
7420  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423    break 2
7424  fi
7425done
7426  done
7427IFS=$as_save_IFS
7428
7429fi
7430fi
7431LIPO=$ac_cv_prog_LIPO
7432if test -n "$LIPO"; then
7433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7434$as_echo "$LIPO" >&6; }
7435else
7436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437$as_echo "no" >&6; }
7438fi
7439
7440
7441fi
7442if test -z "$ac_cv_prog_LIPO"; then
7443  ac_ct_LIPO=$LIPO
7444  # Extract the first word of "lipo", so it can be a program name with args.
7445set dummy lipo; ac_word=$2
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447$as_echo_n "checking for $ac_word... " >&6; }
7448if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7449  $as_echo_n "(cached) " >&6
7450else
7451  if test -n "$ac_ct_LIPO"; then
7452  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7453else
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457  IFS=$as_save_IFS
7458  test -z "$as_dir" && as_dir=.
7459    for ac_exec_ext in '' $ac_executable_extensions; do
7460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461    ac_cv_prog_ac_ct_LIPO="lipo"
7462    $as_echo "$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
7471ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7472if test -n "$ac_ct_LIPO"; then
7473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7474$as_echo "$ac_ct_LIPO" >&6; }
7475else
7476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477$as_echo "no" >&6; }
7478fi
7479
7480  if test "x$ac_ct_LIPO" = x; then
7481    LIPO=":"
7482  else
7483    case $cross_compiling:$ac_tool_warned in
7484yes:)
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487ac_tool_warned=yes ;;
7488esac
7489    LIPO=$ac_ct_LIPO
7490  fi
7491else
7492  LIPO="$ac_cv_prog_LIPO"
7493fi
7494
7495    if test -n "$ac_tool_prefix"; then
7496  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7497set dummy ${ac_tool_prefix}otool; ac_word=$2
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499$as_echo_n "checking for $ac_word... " >&6; }
7500if test "${ac_cv_prog_OTOOL+set}" = set; then :
7501  $as_echo_n "(cached) " >&6
7502else
7503  if test -n "$OTOOL"; then
7504  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7505else
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509  IFS=$as_save_IFS
7510  test -z "$as_dir" && as_dir=.
7511    for ac_exec_ext in '' $ac_executable_extensions; do
7512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7513    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515    break 2
7516  fi
7517done
7518  done
7519IFS=$as_save_IFS
7520
7521fi
7522fi
7523OTOOL=$ac_cv_prog_OTOOL
7524if test -n "$OTOOL"; then
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7526$as_echo "$OTOOL" >&6; }
7527else
7528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529$as_echo "no" >&6; }
7530fi
7531
7532
7533fi
7534if test -z "$ac_cv_prog_OTOOL"; then
7535  ac_ct_OTOOL=$OTOOL
7536  # Extract the first word of "otool", so it can be a program name with args.
7537set dummy otool; ac_word=$2
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539$as_echo_n "checking for $ac_word... " >&6; }
7540if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7541  $as_echo_n "(cached) " >&6
7542else
7543  if test -n "$ac_ct_OTOOL"; then
7544  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7545else
7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547for as_dir in $PATH
7548do
7549  IFS=$as_save_IFS
7550  test -z "$as_dir" && as_dir=.
7551    for ac_exec_ext in '' $ac_executable_extensions; do
7552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553    ac_cv_prog_ac_ct_OTOOL="otool"
7554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555    break 2
7556  fi
7557done
7558  done
7559IFS=$as_save_IFS
7560
7561fi
7562fi
7563ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7564if test -n "$ac_ct_OTOOL"; then
7565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7566$as_echo "$ac_ct_OTOOL" >&6; }
7567else
7568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569$as_echo "no" >&6; }
7570fi
7571
7572  if test "x$ac_ct_OTOOL" = x; then
7573    OTOOL=":"
7574  else
7575    case $cross_compiling:$ac_tool_warned in
7576yes:)
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7579ac_tool_warned=yes ;;
7580esac
7581    OTOOL=$ac_ct_OTOOL
7582  fi
7583else
7584  OTOOL="$ac_cv_prog_OTOOL"
7585fi
7586
7587    if test -n "$ac_tool_prefix"; then
7588  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7589set dummy ${ac_tool_prefix}otool64; ac_word=$2
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591$as_echo_n "checking for $ac_word... " >&6; }
7592if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7593  $as_echo_n "(cached) " >&6
7594else
7595  if test -n "$OTOOL64"; then
7596  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7597else
7598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601  IFS=$as_save_IFS
7602  test -z "$as_dir" && as_dir=.
7603    for ac_exec_ext in '' $ac_executable_extensions; do
7604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607    break 2
7608  fi
7609done
7610  done
7611IFS=$as_save_IFS
7612
7613fi
7614fi
7615OTOOL64=$ac_cv_prog_OTOOL64
7616if test -n "$OTOOL64"; then
7617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7618$as_echo "$OTOOL64" >&6; }
7619else
7620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
7622fi
7623
7624
7625fi
7626if test -z "$ac_cv_prog_OTOOL64"; then
7627  ac_ct_OTOOL64=$OTOOL64
7628  # Extract the first word of "otool64", so it can be a program name with args.
7629set dummy otool64; ac_word=$2
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631$as_echo_n "checking for $ac_word... " >&6; }
7632if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7633  $as_echo_n "(cached) " >&6
7634else
7635  if test -n "$ac_ct_OTOOL64"; then
7636  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7637else
7638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH
7640do
7641  IFS=$as_save_IFS
7642  test -z "$as_dir" && as_dir=.
7643    for ac_exec_ext in '' $ac_executable_extensions; do
7644  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7645    ac_cv_prog_ac_ct_OTOOL64="otool64"
7646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647    break 2
7648  fi
7649done
7650  done
7651IFS=$as_save_IFS
7652
7653fi
7654fi
7655ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7656if test -n "$ac_ct_OTOOL64"; then
7657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7658$as_echo "$ac_ct_OTOOL64" >&6; }
7659else
7660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661$as_echo "no" >&6; }
7662fi
7663
7664  if test "x$ac_ct_OTOOL64" = x; then
7665    OTOOL64=":"
7666  else
7667    case $cross_compiling:$ac_tool_warned in
7668yes:)
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671ac_tool_warned=yes ;;
7672esac
7673    OTOOL64=$ac_ct_OTOOL64
7674  fi
7675else
7676  OTOOL64="$ac_cv_prog_OTOOL64"
7677fi
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7706$as_echo_n "checking for -single_module linker flag... " >&6; }
7707if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7708  $as_echo_n "(cached) " >&6
7709else
7710  lt_cv_apple_cc_single_mod=no
7711      if test -z "${LT_MULTI_MODULE}"; then
7712	# By default we will add the -single_module flag. You can override
7713	# by either setting the environment variable LT_MULTI_MODULE
7714	# non-empty at configure time, or by adding -multi_module to the
7715	# link flags.
7716	rm -rf libconftest.dylib*
7717	echo "int foo(void){return 1;}" > conftest.c
7718	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7719-dynamiclib -Wl,-single_module conftest.c" >&5
7720	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7721	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7722        _lt_result=$?
7723	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7724	  lt_cv_apple_cc_single_mod=yes
7725	else
7726	  cat conftest.err >&5
7727	fi
7728	rm -rf libconftest.dylib*
7729	rm -f conftest.*
7730      fi
7731fi
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7733$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7734    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7735$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7736if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7737  $as_echo_n "(cached) " >&6
7738else
7739  lt_cv_ld_exported_symbols_list=no
7740      save_LDFLAGS=$LDFLAGS
7741      echo "_main" > conftest.sym
7742      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7743      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744/* end confdefs.h.  */
7745
7746int
7747main ()
7748{
7749
7750  ;
7751  return 0;
7752}
7753_ACEOF
7754if ac_fn_c_try_link "$LINENO"; then :
7755  lt_cv_ld_exported_symbols_list=yes
7756else
7757  lt_cv_ld_exported_symbols_list=no
7758fi
7759rm -f core conftest.err conftest.$ac_objext \
7760    conftest$ac_exeext conftest.$ac_ext
7761	LDFLAGS="$save_LDFLAGS"
7762
7763fi
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7765$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7766    case $host_os in
7767    rhapsody* | darwin1.[012])
7768      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7769    darwin1.*)
7770      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7771    darwin*) # darwin 5.x on
7772      # if running on 10.5 or later, the deployment target defaults
7773      # to the OS version, if on x86, and 10.4, the deployment
7774      # target defaults to 10.4. Don't you love it?
7775      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7776	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7777	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7778	10.[012]*)
7779	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7780	10.*)
7781	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7782      esac
7783    ;;
7784  esac
7785    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7786      _lt_dar_single_mod='$single_module'
7787    fi
7788    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7789      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7790    else
7791      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7792    fi
7793    if test "$DSYMUTIL" != ":"; then
7794      _lt_dsymutil='~$DSYMUTIL $lib || :'
7795    else
7796      _lt_dsymutil=
7797    fi
7798    ;;
7799  esac
7800
7801for ac_header in dlfcn.h
7802do :
7803  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7804"
7805if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7806  cat >>confdefs.h <<_ACEOF
7807#define HAVE_DLFCN_H 1
7808_ACEOF
7809
7810fi
7811
7812done
7813
7814
7815
7816# Set options
7817enable_win32_dll=yes
7818
7819case $host in
7820*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7821  if test -n "$ac_tool_prefix"; then
7822  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7823set dummy ${ac_tool_prefix}as; ac_word=$2
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825$as_echo_n "checking for $ac_word... " >&6; }
7826if test "${ac_cv_prog_AS+set}" = set; then :
7827  $as_echo_n "(cached) " >&6
7828else
7829  if test -n "$AS"; then
7830  ac_cv_prog_AS="$AS" # Let the user override the test.
7831else
7832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835  IFS=$as_save_IFS
7836  test -z "$as_dir" && as_dir=.
7837    for ac_exec_ext in '' $ac_executable_extensions; do
7838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7839    ac_cv_prog_AS="${ac_tool_prefix}as"
7840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841    break 2
7842  fi
7843done
7844  done
7845IFS=$as_save_IFS
7846
7847fi
7848fi
7849AS=$ac_cv_prog_AS
7850if test -n "$AS"; then
7851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7852$as_echo "$AS" >&6; }
7853else
7854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855$as_echo "no" >&6; }
7856fi
7857
7858
7859fi
7860if test -z "$ac_cv_prog_AS"; then
7861  ac_ct_AS=$AS
7862  # Extract the first word of "as", so it can be a program name with args.
7863set dummy as; ac_word=$2
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865$as_echo_n "checking for $ac_word... " >&6; }
7866if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7867  $as_echo_n "(cached) " >&6
7868else
7869  if test -n "$ac_ct_AS"; then
7870  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7871else
7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875  IFS=$as_save_IFS
7876  test -z "$as_dir" && as_dir=.
7877    for ac_exec_ext in '' $ac_executable_extensions; do
7878  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879    ac_cv_prog_ac_ct_AS="as"
7880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881    break 2
7882  fi
7883done
7884  done
7885IFS=$as_save_IFS
7886
7887fi
7888fi
7889ac_ct_AS=$ac_cv_prog_ac_ct_AS
7890if test -n "$ac_ct_AS"; then
7891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7892$as_echo "$ac_ct_AS" >&6; }
7893else
7894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
7896fi
7897
7898  if test "x$ac_ct_AS" = x; then
7899    AS="false"
7900  else
7901    case $cross_compiling:$ac_tool_warned in
7902yes:)
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7905ac_tool_warned=yes ;;
7906esac
7907    AS=$ac_ct_AS
7908  fi
7909else
7910  AS="$ac_cv_prog_AS"
7911fi
7912
7913  if test -n "$ac_tool_prefix"; then
7914  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7915set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917$as_echo_n "checking for $ac_word... " >&6; }
7918if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7919  $as_echo_n "(cached) " >&6
7920else
7921  if test -n "$DLLTOOL"; then
7922  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7923else
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927  IFS=$as_save_IFS
7928  test -z "$as_dir" && as_dir=.
7929    for ac_exec_ext in '' $ac_executable_extensions; do
7930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933    break 2
7934  fi
7935done
7936  done
7937IFS=$as_save_IFS
7938
7939fi
7940fi
7941DLLTOOL=$ac_cv_prog_DLLTOOL
7942if test -n "$DLLTOOL"; then
7943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7944$as_echo "$DLLTOOL" >&6; }
7945else
7946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947$as_echo "no" >&6; }
7948fi
7949
7950
7951fi
7952if test -z "$ac_cv_prog_DLLTOOL"; then
7953  ac_ct_DLLTOOL=$DLLTOOL
7954  # Extract the first word of "dlltool", so it can be a program name with args.
7955set dummy dlltool; ac_word=$2
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957$as_echo_n "checking for $ac_word... " >&6; }
7958if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7959  $as_echo_n "(cached) " >&6
7960else
7961  if test -n "$ac_ct_DLLTOOL"; then
7962  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7963else
7964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965for as_dir in $PATH
7966do
7967  IFS=$as_save_IFS
7968  test -z "$as_dir" && as_dir=.
7969    for ac_exec_ext in '' $ac_executable_extensions; do
7970  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973    break 2
7974  fi
7975done
7976  done
7977IFS=$as_save_IFS
7978
7979fi
7980fi
7981ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7982if test -n "$ac_ct_DLLTOOL"; then
7983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7984$as_echo "$ac_ct_DLLTOOL" >&6; }
7985else
7986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987$as_echo "no" >&6; }
7988fi
7989
7990  if test "x$ac_ct_DLLTOOL" = x; then
7991    DLLTOOL="false"
7992  else
7993    case $cross_compiling:$ac_tool_warned in
7994yes:)
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7997ac_tool_warned=yes ;;
7998esac
7999    DLLTOOL=$ac_ct_DLLTOOL
8000  fi
8001else
8002  DLLTOOL="$ac_cv_prog_DLLTOOL"
8003fi
8004
8005  if test -n "$ac_tool_prefix"; then
8006  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8007set dummy ${ac_tool_prefix}objdump; ac_word=$2
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009$as_echo_n "checking for $ac_word... " >&6; }
8010if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8011  $as_echo_n "(cached) " >&6
8012else
8013  if test -n "$OBJDUMP"; then
8014  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8015else
8016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017for as_dir in $PATH
8018do
8019  IFS=$as_save_IFS
8020  test -z "$as_dir" && as_dir=.
8021    for ac_exec_ext in '' $ac_executable_extensions; do
8022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8023    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025    break 2
8026  fi
8027done
8028  done
8029IFS=$as_save_IFS
8030
8031fi
8032fi
8033OBJDUMP=$ac_cv_prog_OBJDUMP
8034if test -n "$OBJDUMP"; then
8035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8036$as_echo "$OBJDUMP" >&6; }
8037else
8038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039$as_echo "no" >&6; }
8040fi
8041
8042
8043fi
8044if test -z "$ac_cv_prog_OBJDUMP"; then
8045  ac_ct_OBJDUMP=$OBJDUMP
8046  # Extract the first word of "objdump", so it can be a program name with args.
8047set dummy objdump; ac_word=$2
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049$as_echo_n "checking for $ac_word... " >&6; }
8050if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8051  $as_echo_n "(cached) " >&6
8052else
8053  if test -n "$ac_ct_OBJDUMP"; then
8054  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8055else
8056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057for as_dir in $PATH
8058do
8059  IFS=$as_save_IFS
8060  test -z "$as_dir" && as_dir=.
8061    for ac_exec_ext in '' $ac_executable_extensions; do
8062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8063    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065    break 2
8066  fi
8067done
8068  done
8069IFS=$as_save_IFS
8070
8071fi
8072fi
8073ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8074if test -n "$ac_ct_OBJDUMP"; then
8075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8076$as_echo "$ac_ct_OBJDUMP" >&6; }
8077else
8078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079$as_echo "no" >&6; }
8080fi
8081
8082  if test "x$ac_ct_OBJDUMP" = x; then
8083    OBJDUMP="false"
8084  else
8085    case $cross_compiling:$ac_tool_warned in
8086yes:)
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8089ac_tool_warned=yes ;;
8090esac
8091    OBJDUMP=$ac_ct_OBJDUMP
8092  fi
8093else
8094  OBJDUMP="$ac_cv_prog_OBJDUMP"
8095fi
8096
8097  ;;
8098esac
8099
8100test -z "$AS" && AS=as
8101
8102
8103
8104
8105
8106test -z "$DLLTOOL" && DLLTOOL=dlltool
8107
8108
8109
8110
8111
8112test -z "$OBJDUMP" && OBJDUMP=objdump
8113
8114
8115
8116
8117
8118
8119
8120        enable_dlopen=no
8121
8122
8123
8124            # Check whether --enable-shared was given.
8125if test "${enable_shared+set}" = set; then :
8126  enableval=$enable_shared; p=${PACKAGE-default}
8127    case $enableval in
8128    yes) enable_shared=yes ;;
8129    no) enable_shared=no ;;
8130    *)
8131      enable_shared=no
8132      # Look at the argument we got.  We use all the common list separators.
8133      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8134      for pkg in $enableval; do
8135	IFS="$lt_save_ifs"
8136	if test "X$pkg" = "X$p"; then
8137	  enable_shared=yes
8138	fi
8139      done
8140      IFS="$lt_save_ifs"
8141      ;;
8142    esac
8143else
8144  enable_shared=yes
8145fi
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155  # Check whether --enable-static was given.
8156if test "${enable_static+set}" = set; then :
8157  enableval=$enable_static; p=${PACKAGE-default}
8158    case $enableval in
8159    yes) enable_static=yes ;;
8160    no) enable_static=no ;;
8161    *)
8162     enable_static=no
8163      # Look at the argument we got.  We use all the common list separators.
8164      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8165      for pkg in $enableval; do
8166	IFS="$lt_save_ifs"
8167	if test "X$pkg" = "X$p"; then
8168	  enable_static=yes
8169	fi
8170      done
8171      IFS="$lt_save_ifs"
8172      ;;
8173    esac
8174else
8175  enable_static=yes
8176fi
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187# Check whether --with-pic was given.
8188if test "${with_pic+set}" = set; then :
8189  withval=$with_pic; pic_mode="$withval"
8190else
8191  pic_mode=default
8192fi
8193
8194
8195test -z "$pic_mode" && pic_mode=default
8196
8197
8198
8199
8200
8201
8202
8203  # Check whether --enable-fast-install was given.
8204if test "${enable_fast_install+set}" = set; then :
8205  enableval=$enable_fast_install; p=${PACKAGE-default}
8206    case $enableval in
8207    yes) enable_fast_install=yes ;;
8208    no) enable_fast_install=no ;;
8209    *)
8210      enable_fast_install=no
8211      # Look at the argument we got.  We use all the common list separators.
8212      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8213      for pkg in $enableval; do
8214	IFS="$lt_save_ifs"
8215	if test "X$pkg" = "X$p"; then
8216	  enable_fast_install=yes
8217	fi
8218      done
8219      IFS="$lt_save_ifs"
8220      ;;
8221    esac
8222else
8223  enable_fast_install=yes
8224fi
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236# This can be used to rebuild libtool when needed
8237LIBTOOL_DEPS="$ltmain"
8238
8239# Always use our own libtool.
8240LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266test -z "$LN_S" && LN_S="ln -s"
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281if test -n "${ZSH_VERSION+set}" ; then
8282   setopt NO_GLOB_SUBST
8283fi
8284
8285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8286$as_echo_n "checking for objdir... " >&6; }
8287if test "${lt_cv_objdir+set}" = set; then :
8288  $as_echo_n "(cached) " >&6
8289else
8290  rm -f .libs 2>/dev/null
8291mkdir .libs 2>/dev/null
8292if test -d .libs; then
8293  lt_cv_objdir=.libs
8294else
8295  # MS-DOS does not allow filenames that begin with a dot.
8296  lt_cv_objdir=_libs
8297fi
8298rmdir .libs 2>/dev/null
8299fi
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8301$as_echo "$lt_cv_objdir" >&6; }
8302objdir=$lt_cv_objdir
8303
8304
8305
8306
8307
8308cat >>confdefs.h <<_ACEOF
8309#define LT_OBJDIR "$lt_cv_objdir/"
8310_ACEOF
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328case $host_os in
8329aix3*)
8330  # AIX sometimes has problems with the GCC collect2 program.  For some
8331  # reason, if we set the COLLECT_NAMES environment variable, the problems
8332  # vanish in a puff of smoke.
8333  if test "X${COLLECT_NAMES+set}" != Xset; then
8334    COLLECT_NAMES=
8335    export COLLECT_NAMES
8336  fi
8337  ;;
8338esac
8339
8340# Sed substitution that helps us do robust quoting.  It backslashifies
8341# metacharacters that are still active within double-quoted strings.
8342sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8343
8344# Same as above, but do not quote variable references.
8345double_quote_subst='s/\(["`\\]\)/\\\1/g'
8346
8347# Sed substitution to delay expansion of an escaped shell variable in a
8348# double_quote_subst'ed string.
8349delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8350
8351# Sed substitution to delay expansion of an escaped single quote.
8352delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8353
8354# Sed substitution to avoid accidental globbing in evaled expressions
8355no_glob_subst='s/\*/\\\*/g'
8356
8357# Global variables:
8358ofile=libtool
8359can_build_shared=yes
8360
8361# All known linkers require a `.a' archive for static linking (except MSVC,
8362# which needs '.lib').
8363libext=a
8364
8365with_gnu_ld="$lt_cv_prog_gnu_ld"
8366
8367old_CC="$CC"
8368old_CFLAGS="$CFLAGS"
8369
8370# Set sane defaults for various variables
8371test -z "$CC" && CC=cc
8372test -z "$LTCC" && LTCC=$CC
8373test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8374test -z "$LD" && LD=ld
8375test -z "$ac_objext" && ac_objext=o
8376
8377for cc_temp in $compiler""; do
8378  case $cc_temp in
8379    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8380    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8381    \-*) ;;
8382    *) break;;
8383  esac
8384done
8385cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8386
8387
8388# Only perform the check for file, if the check method requires it
8389test -z "$MAGIC_CMD" && MAGIC_CMD=file
8390case $deplibs_check_method in
8391file_magic*)
8392  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8394$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8395if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8396  $as_echo_n "(cached) " >&6
8397else
8398  case $MAGIC_CMD in
8399[\\/*] |  ?:[\\/]*)
8400  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8401  ;;
8402*)
8403  lt_save_MAGIC_CMD="$MAGIC_CMD"
8404  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8405  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8406  for ac_dir in $ac_dummy; do
8407    IFS="$lt_save_ifs"
8408    test -z "$ac_dir" && ac_dir=.
8409    if test -f $ac_dir/${ac_tool_prefix}file; then
8410      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8411      if test -n "$file_magic_test_file"; then
8412	case $deplibs_check_method in
8413	"file_magic "*)
8414	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8415	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8416	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8417	    $EGREP "$file_magic_regex" > /dev/null; then
8418	    :
8419	  else
8420	    cat <<_LT_EOF 1>&2
8421
8422*** Warning: the command libtool uses to detect shared libraries,
8423*** $file_magic_cmd, produces output that libtool cannot recognize.
8424*** The result is that libtool may fail to recognize shared libraries
8425*** as such.  This will affect the creation of libtool libraries that
8426*** depend on shared libraries, but programs linked with such libtool
8427*** libraries will work regardless of this problem.  Nevertheless, you
8428*** may want to report the problem to your system manager and/or to
8429*** bug-libtool@gnu.org
8430
8431_LT_EOF
8432	  fi ;;
8433	esac
8434      fi
8435      break
8436    fi
8437  done
8438  IFS="$lt_save_ifs"
8439  MAGIC_CMD="$lt_save_MAGIC_CMD"
8440  ;;
8441esac
8442fi
8443
8444MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8445if test -n "$MAGIC_CMD"; then
8446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8447$as_echo "$MAGIC_CMD" >&6; }
8448else
8449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450$as_echo "no" >&6; }
8451fi
8452
8453
8454
8455
8456
8457if test -z "$lt_cv_path_MAGIC_CMD"; then
8458  if test -n "$ac_tool_prefix"; then
8459    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8460$as_echo_n "checking for file... " >&6; }
8461if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8462  $as_echo_n "(cached) " >&6
8463else
8464  case $MAGIC_CMD in
8465[\\/*] |  ?:[\\/]*)
8466  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8467  ;;
8468*)
8469  lt_save_MAGIC_CMD="$MAGIC_CMD"
8470  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8471  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8472  for ac_dir in $ac_dummy; do
8473    IFS="$lt_save_ifs"
8474    test -z "$ac_dir" && ac_dir=.
8475    if test -f $ac_dir/file; then
8476      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8477      if test -n "$file_magic_test_file"; then
8478	case $deplibs_check_method in
8479	"file_magic "*)
8480	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8481	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8482	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8483	    $EGREP "$file_magic_regex" > /dev/null; then
8484	    :
8485	  else
8486	    cat <<_LT_EOF 1>&2
8487
8488*** Warning: the command libtool uses to detect shared libraries,
8489*** $file_magic_cmd, produces output that libtool cannot recognize.
8490*** The result is that libtool may fail to recognize shared libraries
8491*** as such.  This will affect the creation of libtool libraries that
8492*** depend on shared libraries, but programs linked with such libtool
8493*** libraries will work regardless of this problem.  Nevertheless, you
8494*** may want to report the problem to your system manager and/or to
8495*** bug-libtool@gnu.org
8496
8497_LT_EOF
8498	  fi ;;
8499	esac
8500      fi
8501      break
8502    fi
8503  done
8504  IFS="$lt_save_ifs"
8505  MAGIC_CMD="$lt_save_MAGIC_CMD"
8506  ;;
8507esac
8508fi
8509
8510MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8511if test -n "$MAGIC_CMD"; then
8512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8513$as_echo "$MAGIC_CMD" >&6; }
8514else
8515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516$as_echo "no" >&6; }
8517fi
8518
8519
8520  else
8521    MAGIC_CMD=:
8522  fi
8523fi
8524
8525  fi
8526  ;;
8527esac
8528
8529# Use C for the default configuration in the libtool script
8530
8531lt_save_CC="$CC"
8532ac_ext=c
8533ac_cpp='$CPP $CPPFLAGS'
8534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8536ac_compiler_gnu=$ac_cv_c_compiler_gnu
8537
8538
8539# Source file extension for C test sources.
8540ac_ext=c
8541
8542# Object file extension for compiled C test sources.
8543objext=o
8544objext=$objext
8545
8546# Code to be used in simple compile tests
8547lt_simple_compile_test_code="int some_variable = 0;"
8548
8549# Code to be used in simple link tests
8550lt_simple_link_test_code='int main(){return(0);}'
8551
8552
8553
8554
8555
8556
8557
8558# If no C compiler was specified, use CC.
8559LTCC=${LTCC-"$CC"}
8560
8561# If no C compiler flags were specified, use CFLAGS.
8562LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8563
8564# Allow CC to be a program name with arguments.
8565compiler=$CC
8566
8567# Save the default compiler, since it gets overwritten when the other
8568# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8569compiler_DEFAULT=$CC
8570
8571# save warnings/boilerplate of simple test code
8572ac_outfile=conftest.$ac_objext
8573echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8574eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8575_lt_compiler_boilerplate=`cat conftest.err`
8576$RM conftest*
8577
8578ac_outfile=conftest.$ac_objext
8579echo "$lt_simple_link_test_code" >conftest.$ac_ext
8580eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8581_lt_linker_boilerplate=`cat conftest.err`
8582$RM -r conftest*
8583
8584
8585if test -n "$compiler"; then
8586
8587lt_prog_compiler_no_builtin_flag=
8588
8589if test "$GCC" = yes; then
8590  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8591
8592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8593$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8594if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8595  $as_echo_n "(cached) " >&6
8596else
8597  lt_cv_prog_compiler_rtti_exceptions=no
8598   ac_outfile=conftest.$ac_objext
8599   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8600   lt_compiler_flag="-fno-rtti -fno-exceptions"
8601   # Insert the option either (1) after the last *FLAGS variable, or
8602   # (2) before a word containing "conftest.", or (3) at the end.
8603   # Note that $ac_compile itself does not contain backslashes and begins
8604   # with a dollar sign (not a hyphen), so the echo should work correctly.
8605   # The option is referenced via a variable to avoid confusing sed.
8606   lt_compile=`echo "$ac_compile" | $SED \
8607   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8608   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8609   -e 's:$: $lt_compiler_flag:'`
8610   (eval echo "\"\$as_me:8610: $lt_compile\"" >&5)
8611   (eval "$lt_compile" 2>conftest.err)
8612   ac_status=$?
8613   cat conftest.err >&5
8614   echo "$as_me:8614: \$? = $ac_status" >&5
8615   if (exit $ac_status) && test -s "$ac_outfile"; then
8616     # The compiler can only warn and ignore the option if not recognized
8617     # So say no if there are warnings other than the usual output.
8618     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8619     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8620     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8621       lt_cv_prog_compiler_rtti_exceptions=yes
8622     fi
8623   fi
8624   $RM conftest*
8625
8626fi
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8628$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8629
8630if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8631    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8632else
8633    :
8634fi
8635
8636fi
8637
8638
8639
8640
8641
8642
8643  lt_prog_compiler_wl=
8644lt_prog_compiler_pic=
8645lt_prog_compiler_static=
8646
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8648$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8649
8650  if test "$GCC" = yes; then
8651    lt_prog_compiler_wl='-Wl,'
8652    lt_prog_compiler_static='-static'
8653
8654    case $host_os in
8655      aix*)
8656      # All AIX code is PIC.
8657      if test "$host_cpu" = ia64; then
8658	# AIX 5 now supports IA64 processor
8659	lt_prog_compiler_static='-Bstatic'
8660      fi
8661      ;;
8662
8663    amigaos*)
8664      case $host_cpu in
8665      powerpc)
8666            # see comment about AmigaOS4 .so support
8667            lt_prog_compiler_pic='-fPIC'
8668        ;;
8669      m68k)
8670            # FIXME: we need at least 68020 code to build shared libraries, but
8671            # adding the `-m68020' flag to GCC prevents building anything better,
8672            # like `-m68040'.
8673            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8674        ;;
8675      esac
8676      ;;
8677
8678    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8679      # PIC is the default for these OSes.
8680      ;;
8681
8682    mingw* | cygwin* | pw32* | os2* | cegcc*)
8683      # This hack is so that the source file can tell whether it is being
8684      # built for inclusion in a dll (and should export symbols for example).
8685      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8686      # (--disable-auto-import) libraries
8687      lt_prog_compiler_pic='-DDLL_EXPORT'
8688      ;;
8689
8690    darwin* | rhapsody*)
8691      # PIC is the default on this platform
8692      # Common symbols not allowed in MH_DYLIB files
8693      lt_prog_compiler_pic='-fno-common'
8694      ;;
8695
8696    hpux*)
8697      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8698      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8699      # sets the default TLS model and affects inlining.
8700      case $host_cpu in
8701      hppa*64*)
8702	# +Z the default
8703	;;
8704      *)
8705	lt_prog_compiler_pic='-fPIC'
8706	;;
8707      esac
8708      ;;
8709
8710    interix[3-9]*)
8711      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8712      # Instead, we relocate shared libraries at runtime.
8713      ;;
8714
8715    msdosdjgpp*)
8716      # Just because we use GCC doesn't mean we suddenly get shared libraries
8717      # on systems that don't support them.
8718      lt_prog_compiler_can_build_shared=no
8719      enable_shared=no
8720      ;;
8721
8722    *nto* | *qnx*)
8723      # QNX uses GNU C++, but need to define -shared option too, otherwise
8724      # it will coredump.
8725      lt_prog_compiler_pic='-fPIC -shared'
8726      ;;
8727
8728    sysv4*MP*)
8729      if test -d /usr/nec; then
8730	lt_prog_compiler_pic=-Kconform_pic
8731      fi
8732      ;;
8733
8734    *)
8735      lt_prog_compiler_pic='-fPIC'
8736      ;;
8737    esac
8738  else
8739    # PORTME Check for flag to pass linker flags through the system compiler.
8740    case $host_os in
8741    aix*)
8742      lt_prog_compiler_wl='-Wl,'
8743      if test "$host_cpu" = ia64; then
8744	# AIX 5 now supports IA64 processor
8745	lt_prog_compiler_static='-Bstatic'
8746      else
8747	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8748      fi
8749      ;;
8750
8751    mingw* | cygwin* | pw32* | os2* | cegcc*)
8752      # This hack is so that the source file can tell whether it is being
8753      # built for inclusion in a dll (and should export symbols for example).
8754      lt_prog_compiler_pic='-DDLL_EXPORT'
8755      ;;
8756
8757    hpux9* | hpux10* | hpux11*)
8758      lt_prog_compiler_wl='-Wl,'
8759      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8760      # not for PA HP-UX.
8761      case $host_cpu in
8762      hppa*64*|ia64*)
8763	# +Z the default
8764	;;
8765      *)
8766	lt_prog_compiler_pic='+Z'
8767	;;
8768      esac
8769      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8770      lt_prog_compiler_static='${wl}-a ${wl}archive'
8771      ;;
8772
8773    irix5* | irix6* | nonstopux*)
8774      lt_prog_compiler_wl='-Wl,'
8775      # PIC (with -KPIC) is the default.
8776      lt_prog_compiler_static='-non_shared'
8777      ;;
8778
8779    linux* | k*bsd*-gnu)
8780      case $cc_basename in
8781      # old Intel for x86_64 which still supported -KPIC.
8782      ecc*)
8783	lt_prog_compiler_wl='-Wl,'
8784	lt_prog_compiler_pic='-KPIC'
8785	lt_prog_compiler_static='-static'
8786        ;;
8787      # icc used to be incompatible with GCC.
8788      # ICC 10 doesn't accept -KPIC any more.
8789      icc* | ifort*)
8790	lt_prog_compiler_wl='-Wl,'
8791	lt_prog_compiler_pic='-fPIC'
8792	lt_prog_compiler_static='-static'
8793        ;;
8794      # Lahey Fortran 8.1.
8795      lf95*)
8796	lt_prog_compiler_wl='-Wl,'
8797	lt_prog_compiler_pic='--shared'
8798	lt_prog_compiler_static='--static'
8799	;;
8800      pgcc* | pgf77* | pgf90* | pgf95*)
8801        # Portland Group compilers (*not* the Pentium gcc compiler,
8802	# which looks to be a dead project)
8803	lt_prog_compiler_wl='-Wl,'
8804	lt_prog_compiler_pic='-fpic'
8805	lt_prog_compiler_static='-Bstatic'
8806        ;;
8807      ccc*)
8808        lt_prog_compiler_wl='-Wl,'
8809        # All Alpha code is PIC.
8810        lt_prog_compiler_static='-non_shared'
8811        ;;
8812      xl*)
8813	# IBM XL C 8.0/Fortran 10.1 on PPC
8814	lt_prog_compiler_wl='-Wl,'
8815	lt_prog_compiler_pic='-qpic'
8816	lt_prog_compiler_static='-qstaticlink'
8817	;;
8818      *)
8819	case `$CC -V 2>&1 | sed 5q` in
8820	*Sun\ C*)
8821	  # Sun C 5.9
8822	  lt_prog_compiler_pic='-KPIC'
8823	  lt_prog_compiler_static='-Bstatic'
8824	  lt_prog_compiler_wl='-Wl,'
8825	  ;;
8826	*Sun\ F*)
8827	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8828	  lt_prog_compiler_pic='-KPIC'
8829	  lt_prog_compiler_static='-Bstatic'
8830	  lt_prog_compiler_wl=''
8831	  ;;
8832	esac
8833	;;
8834      esac
8835      ;;
8836
8837    newsos6)
8838      lt_prog_compiler_pic='-KPIC'
8839      lt_prog_compiler_static='-Bstatic'
8840      ;;
8841
8842    *nto* | *qnx*)
8843      # QNX uses GNU C++, but need to define -shared option too, otherwise
8844      # it will coredump.
8845      lt_prog_compiler_pic='-fPIC -shared'
8846      ;;
8847
8848    osf3* | osf4* | osf5*)
8849      lt_prog_compiler_wl='-Wl,'
8850      # All OSF/1 code is PIC.
8851      lt_prog_compiler_static='-non_shared'
8852      ;;
8853
8854    rdos*)
8855      lt_prog_compiler_static='-non_shared'
8856      ;;
8857
8858    solaris*)
8859      lt_prog_compiler_pic='-KPIC'
8860      lt_prog_compiler_static='-Bstatic'
8861      case $cc_basename in
8862      f77* | f90* | f95*)
8863	lt_prog_compiler_wl='-Qoption ld ';;
8864      *)
8865	lt_prog_compiler_wl='-Wl,';;
8866      esac
8867      ;;
8868
8869    sunos4*)
8870      lt_prog_compiler_wl='-Qoption ld '
8871      lt_prog_compiler_pic='-PIC'
8872      lt_prog_compiler_static='-Bstatic'
8873      ;;
8874
8875    sysv4 | sysv4.2uw2* | sysv4.3*)
8876      lt_prog_compiler_wl='-Wl,'
8877      lt_prog_compiler_pic='-KPIC'
8878      lt_prog_compiler_static='-Bstatic'
8879      ;;
8880
8881    sysv4*MP*)
8882      if test -d /usr/nec ;then
8883	lt_prog_compiler_pic='-Kconform_pic'
8884	lt_prog_compiler_static='-Bstatic'
8885      fi
8886      ;;
8887
8888    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8889      lt_prog_compiler_wl='-Wl,'
8890      lt_prog_compiler_pic='-KPIC'
8891      lt_prog_compiler_static='-Bstatic'
8892      ;;
8893
8894    unicos*)
8895      lt_prog_compiler_wl='-Wl,'
8896      lt_prog_compiler_can_build_shared=no
8897      ;;
8898
8899    uts4*)
8900      lt_prog_compiler_pic='-pic'
8901      lt_prog_compiler_static='-Bstatic'
8902      ;;
8903
8904    *)
8905      lt_prog_compiler_can_build_shared=no
8906      ;;
8907    esac
8908  fi
8909
8910case $host_os in
8911  # For platforms which do not support PIC, -DPIC is meaningless:
8912  *djgpp*)
8913    lt_prog_compiler_pic=
8914    ;;
8915  *)
8916    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8917    ;;
8918esac
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8920$as_echo "$lt_prog_compiler_pic" >&6; }
8921
8922
8923
8924
8925
8926
8927#
8928# Check to make sure the PIC flag actually works.
8929#
8930if test -n "$lt_prog_compiler_pic"; then
8931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8932$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8933if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8934  $as_echo_n "(cached) " >&6
8935else
8936  lt_cv_prog_compiler_pic_works=no
8937   ac_outfile=conftest.$ac_objext
8938   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8939   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8940   # Insert the option either (1) after the last *FLAGS variable, or
8941   # (2) before a word containing "conftest.", or (3) at the end.
8942   # Note that $ac_compile itself does not contain backslashes and begins
8943   # with a dollar sign (not a hyphen), so the echo should work correctly.
8944   # The option is referenced via a variable to avoid confusing sed.
8945   lt_compile=`echo "$ac_compile" | $SED \
8946   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8947   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8948   -e 's:$: $lt_compiler_flag:'`
8949   (eval echo "\"\$as_me:8949: $lt_compile\"" >&5)
8950   (eval "$lt_compile" 2>conftest.err)
8951   ac_status=$?
8952   cat conftest.err >&5
8953   echo "$as_me:8953: \$? = $ac_status" >&5
8954   if (exit $ac_status) && test -s "$ac_outfile"; then
8955     # The compiler can only warn and ignore the option if not recognized
8956     # So say no if there are warnings other than the usual output.
8957     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8958     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8959     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8960       lt_cv_prog_compiler_pic_works=yes
8961     fi
8962   fi
8963   $RM conftest*
8964
8965fi
8966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8967$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8968
8969if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8970    case $lt_prog_compiler_pic in
8971     "" | " "*) ;;
8972     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8973     esac
8974else
8975    lt_prog_compiler_pic=
8976     lt_prog_compiler_can_build_shared=no
8977fi
8978
8979fi
8980
8981
8982
8983
8984
8985
8986#
8987# Check to make sure the static flag actually works.
8988#
8989wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8991$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8992if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8993  $as_echo_n "(cached) " >&6
8994else
8995  lt_cv_prog_compiler_static_works=no
8996   save_LDFLAGS="$LDFLAGS"
8997   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8998   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8999   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9000     # The linker can only warn and ignore the option if not recognized
9001     # So say no if there are warnings
9002     if test -s conftest.err; then
9003       # Append any errors to the config.log.
9004       cat conftest.err 1>&5
9005       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9006       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9007       if diff conftest.exp conftest.er2 >/dev/null; then
9008         lt_cv_prog_compiler_static_works=yes
9009       fi
9010     else
9011       lt_cv_prog_compiler_static_works=yes
9012     fi
9013   fi
9014   $RM -r conftest*
9015   LDFLAGS="$save_LDFLAGS"
9016
9017fi
9018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9019$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9020
9021if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9022    :
9023else
9024    lt_prog_compiler_static=
9025fi
9026
9027
9028
9029
9030
9031
9032
9033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9034$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9035if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9036  $as_echo_n "(cached) " >&6
9037else
9038  lt_cv_prog_compiler_c_o=no
9039   $RM -r conftest 2>/dev/null
9040   mkdir conftest
9041   cd conftest
9042   mkdir out
9043   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9044
9045   lt_compiler_flag="-o out/conftest2.$ac_objext"
9046   # Insert the option either (1) after the last *FLAGS variable, or
9047   # (2) before a word containing "conftest.", or (3) at the end.
9048   # Note that $ac_compile itself does not contain backslashes and begins
9049   # with a dollar sign (not a hyphen), so the echo should work correctly.
9050   lt_compile=`echo "$ac_compile" | $SED \
9051   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9052   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9053   -e 's:$: $lt_compiler_flag:'`
9054   (eval echo "\"\$as_me:9054: $lt_compile\"" >&5)
9055   (eval "$lt_compile" 2>out/conftest.err)
9056   ac_status=$?
9057   cat out/conftest.err >&5
9058   echo "$as_me:9058: \$? = $ac_status" >&5
9059   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9060   then
9061     # The compiler can only warn and ignore the option if not recognized
9062     # So say no if there are warnings
9063     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9064     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9065     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9066       lt_cv_prog_compiler_c_o=yes
9067     fi
9068   fi
9069   chmod u+w . 2>&5
9070   $RM conftest*
9071   # SGI C++ compiler will create directory out/ii_files/ for
9072   # template instantiation
9073   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9074   $RM out/* && rmdir out
9075   cd ..
9076   $RM -r conftest
9077   $RM conftest*
9078
9079fi
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9081$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9082
9083
9084
9085
9086
9087
9088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9089$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9090if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9091  $as_echo_n "(cached) " >&6
9092else
9093  lt_cv_prog_compiler_c_o=no
9094   $RM -r conftest 2>/dev/null
9095   mkdir conftest
9096   cd conftest
9097   mkdir out
9098   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9099
9100   lt_compiler_flag="-o out/conftest2.$ac_objext"
9101   # Insert the option either (1) after the last *FLAGS variable, or
9102   # (2) before a word containing "conftest.", or (3) at the end.
9103   # Note that $ac_compile itself does not contain backslashes and begins
9104   # with a dollar sign (not a hyphen), so the echo should work correctly.
9105   lt_compile=`echo "$ac_compile" | $SED \
9106   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9107   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9108   -e 's:$: $lt_compiler_flag:'`
9109   (eval echo "\"\$as_me:9109: $lt_compile\"" >&5)
9110   (eval "$lt_compile" 2>out/conftest.err)
9111   ac_status=$?
9112   cat out/conftest.err >&5
9113   echo "$as_me:9113: \$? = $ac_status" >&5
9114   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9115   then
9116     # The compiler can only warn and ignore the option if not recognized
9117     # So say no if there are warnings
9118     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9119     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9120     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9121       lt_cv_prog_compiler_c_o=yes
9122     fi
9123   fi
9124   chmod u+w . 2>&5
9125   $RM conftest*
9126   # SGI C++ compiler will create directory out/ii_files/ for
9127   # template instantiation
9128   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9129   $RM out/* && rmdir out
9130   cd ..
9131   $RM -r conftest
9132   $RM conftest*
9133
9134fi
9135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9136$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9137
9138
9139
9140
9141hard_links="nottested"
9142if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9143  # do not overwrite the value of need_locks provided by the user
9144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9145$as_echo_n "checking if we can lock with hard links... " >&6; }
9146  hard_links=yes
9147  $RM conftest*
9148  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9149  touch conftest.a
9150  ln conftest.a conftest.b 2>&5 || hard_links=no
9151  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9153$as_echo "$hard_links" >&6; }
9154  if test "$hard_links" = no; then
9155    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9156$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9157    need_locks=warn
9158  fi
9159else
9160  need_locks=no
9161fi
9162
9163
9164
9165
9166
9167
9168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9169$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9170
9171  runpath_var=
9172  allow_undefined_flag=
9173  always_export_symbols=no
9174  archive_cmds=
9175  archive_expsym_cmds=
9176  compiler_needs_object=no
9177  enable_shared_with_static_runtimes=no
9178  export_dynamic_flag_spec=
9179  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9180  hardcode_automatic=no
9181  hardcode_direct=no
9182  hardcode_direct_absolute=no
9183  hardcode_libdir_flag_spec=
9184  hardcode_libdir_flag_spec_ld=
9185  hardcode_libdir_separator=
9186  hardcode_minus_L=no
9187  hardcode_shlibpath_var=unsupported
9188  inherit_rpath=no
9189  link_all_deplibs=unknown
9190  module_cmds=
9191  module_expsym_cmds=
9192  old_archive_from_new_cmds=
9193  old_archive_from_expsyms_cmds=
9194  thread_safe_flag_spec=
9195  whole_archive_flag_spec=
9196  # include_expsyms should be a list of space-separated symbols to be *always*
9197  # included in the symbol list
9198  include_expsyms=
9199  # exclude_expsyms can be an extended regexp of symbols to exclude
9200  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9201  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9202  # as well as any symbol that contains `d'.
9203  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9204  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9205  # platforms (ab)use it in PIC code, but their linkers get confused if
9206  # the symbol is explicitly referenced.  Since portable code cannot
9207  # rely on this symbol name, it's probably fine to never include it in
9208  # preloaded symbol tables.
9209  # Exclude shared library initialization/finalization symbols.
9210  extract_expsyms_cmds=
9211
9212  case $host_os in
9213  cygwin* | mingw* | pw32* | cegcc*)
9214    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9215    # When not using gcc, we currently assume that we are using
9216    # Microsoft Visual C++.
9217    if test "$GCC" != yes; then
9218      with_gnu_ld=no
9219    fi
9220    ;;
9221  interix*)
9222    # we just hope/assume this is gcc and not c89 (= MSVC++)
9223    with_gnu_ld=yes
9224    ;;
9225  openbsd*)
9226    with_gnu_ld=no
9227    ;;
9228  esac
9229
9230  ld_shlibs=yes
9231  if test "$with_gnu_ld" = yes; then
9232    # If archive_cmds runs LD, not CC, wlarc should be empty
9233    wlarc='${wl}'
9234
9235    # Set some defaults for GNU ld with shared library support. These
9236    # are reset later if shared libraries are not supported. Putting them
9237    # here allows them to be overridden if necessary.
9238    runpath_var=LD_RUN_PATH
9239    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240    export_dynamic_flag_spec='${wl}--export-dynamic'
9241    # ancient GNU ld didn't support --whole-archive et. al.
9242    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9243      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9244    else
9245      whole_archive_flag_spec=
9246    fi
9247    supports_anon_versioning=no
9248    case `$LD -v 2>&1` in
9249      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9250      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9251      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9252      *\ 2.11.*) ;; # other 2.11 versions
9253      *) supports_anon_versioning=yes ;;
9254    esac
9255
9256    # See if GNU ld supports shared libraries.
9257    case $host_os in
9258    aix[3-9]*)
9259      # On AIX/PPC, the GNU linker is very broken
9260      if test "$host_cpu" != ia64; then
9261	ld_shlibs=no
9262	cat <<_LT_EOF 1>&2
9263
9264*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9265*** to be unable to reliably create shared libraries on AIX.
9266*** Therefore, libtool is disabling shared libraries support.  If you
9267*** really care for shared libraries, you may want to modify your PATH
9268*** so that a non-GNU linker is found, and then restart.
9269
9270_LT_EOF
9271      fi
9272      ;;
9273
9274    amigaos*)
9275      case $host_cpu in
9276      powerpc)
9277            # see comment about AmigaOS4 .so support
9278            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9279            archive_expsym_cmds=''
9280        ;;
9281      m68k)
9282            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)'
9283            hardcode_libdir_flag_spec='-L$libdir'
9284            hardcode_minus_L=yes
9285        ;;
9286      esac
9287      ;;
9288
9289    beos*)
9290      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9291	allow_undefined_flag=unsupported
9292	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9293	# support --undefined.  This deserves some investigation.  FIXME
9294	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295      else
9296	ld_shlibs=no
9297      fi
9298      ;;
9299
9300    cygwin* | mingw* | pw32* | cegcc*)
9301      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9302      # as there is no search path for DLLs.
9303      hardcode_libdir_flag_spec='-L$libdir'
9304      allow_undefined_flag=unsupported
9305      always_export_symbols=no
9306      enable_shared_with_static_runtimes=yes
9307      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9308
9309      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9310        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9311	# If the export-symbols file already is a .def file (1st line
9312	# is EXPORTS), use it as is; otherwise, prepend...
9313	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9314	  cp $export_symbols $output_objdir/$soname.def;
9315	else
9316	  echo EXPORTS > $output_objdir/$soname.def;
9317	  cat $export_symbols >> $output_objdir/$soname.def;
9318	fi~
9319	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9320      else
9321	ld_shlibs=no
9322      fi
9323      ;;
9324
9325    interix[3-9]*)
9326      hardcode_direct=no
9327      hardcode_shlibpath_var=no
9328      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9329      export_dynamic_flag_spec='${wl}-E'
9330      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9331      # Instead, shared libraries are loaded at an image base (0x10000000 by
9332      # default) and relocated if they conflict, which is a slow very memory
9333      # consuming and fragmenting process.  To avoid this, we pick a random,
9334      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9335      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9336      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9337      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'
9338      ;;
9339
9340    gnu* | linux* | tpf* | k*bsd*-gnu)
9341      tmp_diet=no
9342      if test "$host_os" = linux-dietlibc; then
9343	case $cc_basename in
9344	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9345	esac
9346      fi
9347      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9348	 && test "$tmp_diet" = no
9349      then
9350	tmp_addflag=
9351	tmp_sharedflag='-shared'
9352	case $cc_basename,$host_cpu in
9353        pgcc*)				# Portland Group C compiler
9354	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9355	  tmp_addflag=' $pic_flag'
9356	  ;;
9357	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9358	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9359	  tmp_addflag=' $pic_flag -Mnomain' ;;
9360	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9361	  tmp_addflag=' -i_dynamic' ;;
9362	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9363	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9364	ifc* | ifort*)			# Intel Fortran compiler
9365	  tmp_addflag=' -nofor_main' ;;
9366	lf95*)				# Lahey Fortran 8.1
9367	  whole_archive_flag_spec=
9368	  tmp_sharedflag='--shared' ;;
9369	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9370	  tmp_sharedflag='-qmkshrobj'
9371	  tmp_addflag= ;;
9372	esac
9373	case `$CC -V 2>&1 | sed 5q` in
9374	*Sun\ C*)			# Sun C 5.9
9375	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9376	  compiler_needs_object=yes
9377	  tmp_sharedflag='-G' ;;
9378	*Sun\ F*)			# Sun Fortran 8.3
9379	  tmp_sharedflag='-G' ;;
9380	esac
9381	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9382
9383        if test "x$supports_anon_versioning" = xyes; then
9384          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9385	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9386	    echo "local: *; };" >> $output_objdir/$libname.ver~
9387	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9388        fi
9389
9390	case $cc_basename in
9391	xlf*)
9392	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9393	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9394	  hardcode_libdir_flag_spec=
9395	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9396	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9397	  if test "x$supports_anon_versioning" = xyes; then
9398	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9399	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9400	      echo "local: *; };" >> $output_objdir/$libname.ver~
9401	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9402	  fi
9403	  ;;
9404	esac
9405      else
9406        ld_shlibs=no
9407      fi
9408      ;;
9409
9410    netbsd*)
9411      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9412	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9413	wlarc=
9414      else
9415	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9417      fi
9418      ;;
9419
9420    solaris*)
9421      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9422	ld_shlibs=no
9423	cat <<_LT_EOF 1>&2
9424
9425*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9426*** create shared libraries on Solaris systems.  Therefore, libtool
9427*** is disabling shared libraries support.  We urge you to upgrade GNU
9428*** binutils to release 2.9.1 or newer.  Another option is to modify
9429*** your PATH or compiler configuration so that the native linker is
9430*** used, and then restart.
9431
9432_LT_EOF
9433      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9434	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9435	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9436      else
9437	ld_shlibs=no
9438      fi
9439      ;;
9440
9441    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9442      case `$LD -v 2>&1` in
9443        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9444	ld_shlibs=no
9445	cat <<_LT_EOF 1>&2
9446
9447*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9448*** reliably create shared libraries on SCO systems.  Therefore, libtool
9449*** is disabling shared libraries support.  We urge you to upgrade GNU
9450*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9451*** your PATH or compiler configuration so that the native linker is
9452*** used, and then restart.
9453
9454_LT_EOF
9455	;;
9456	*)
9457	  # For security reasons, it is highly recommended that you always
9458	  # use absolute paths for naming shared libraries, and exclude the
9459	  # DT_RUNPATH tag from executables and libraries.  But doing so
9460	  # requires that you compile everything twice, which is a pain.
9461	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9462	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9463	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9464	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9465	  else
9466	    ld_shlibs=no
9467	  fi
9468	;;
9469      esac
9470      ;;
9471
9472    sunos4*)
9473      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9474      wlarc=
9475      hardcode_direct=yes
9476      hardcode_shlibpath_var=no
9477      ;;
9478
9479    *)
9480      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9481	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9483      else
9484	ld_shlibs=no
9485      fi
9486      ;;
9487    esac
9488
9489    if test "$ld_shlibs" = no; then
9490      runpath_var=
9491      hardcode_libdir_flag_spec=
9492      export_dynamic_flag_spec=
9493      whole_archive_flag_spec=
9494    fi
9495  else
9496    # PORTME fill in a description of your system's linker (not GNU ld)
9497    case $host_os in
9498    aix3*)
9499      allow_undefined_flag=unsupported
9500      always_export_symbols=yes
9501      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'
9502      # Note: this linker hardcodes the directories in LIBPATH if there
9503      # are no directories specified by -L.
9504      hardcode_minus_L=yes
9505      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9506	# Neither direct hardcoding nor static linking is supported with a
9507	# broken collect2.
9508	hardcode_direct=unsupported
9509      fi
9510      ;;
9511
9512    aix[4-9]*)
9513      if test "$host_cpu" = ia64; then
9514	# On IA64, the linker does run time linking by default, so we don't
9515	# have to do anything special.
9516	aix_use_runtimelinking=no
9517	exp_sym_flag='-Bexport'
9518	no_entry_flag=""
9519      else
9520	# If we're using GNU nm, then we don't want the "-C" option.
9521	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9522	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9523	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9524	else
9525	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9526	fi
9527	aix_use_runtimelinking=no
9528
9529	# Test if we are trying to use run time linking or normal
9530	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9531	# need to do runtime linking.
9532	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9533	  for ld_flag in $LDFLAGS; do
9534	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9535	    aix_use_runtimelinking=yes
9536	    break
9537	  fi
9538	  done
9539	  ;;
9540	esac
9541
9542	exp_sym_flag='-bexport'
9543	no_entry_flag='-bnoentry'
9544      fi
9545
9546      # When large executables or shared objects are built, AIX ld can
9547      # have problems creating the table of contents.  If linking a library
9548      # or program results in "error TOC overflow" add -mminimal-toc to
9549      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9550      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9551
9552      archive_cmds=''
9553      hardcode_direct=yes
9554      hardcode_direct_absolute=yes
9555      hardcode_libdir_separator=':'
9556      link_all_deplibs=yes
9557      file_list_spec='${wl}-f,'
9558
9559      if test "$GCC" = yes; then
9560	case $host_os in aix4.[012]|aix4.[012].*)
9561	# We only want to do this on AIX 4.2 and lower, the check
9562	# below for broken collect2 doesn't work under 4.3+
9563	  collect2name=`${CC} -print-prog-name=collect2`
9564	  if test -f "$collect2name" &&
9565	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9566	  then
9567	  # We have reworked collect2
9568	  :
9569	  else
9570	  # We have old collect2
9571	  hardcode_direct=unsupported
9572	  # It fails to find uninstalled libraries when the uninstalled
9573	  # path is not listed in the libpath.  Setting hardcode_minus_L
9574	  # to unsupported forces relinking
9575	  hardcode_minus_L=yes
9576	  hardcode_libdir_flag_spec='-L$libdir'
9577	  hardcode_libdir_separator=
9578	  fi
9579	  ;;
9580	esac
9581	shared_flag='-shared'
9582	if test "$aix_use_runtimelinking" = yes; then
9583	  shared_flag="$shared_flag "'${wl}-G'
9584	fi
9585      else
9586	# not using gcc
9587	if test "$host_cpu" = ia64; then
9588	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9589	# chokes on -Wl,-G. The following line is correct:
9590	  shared_flag='-G'
9591	else
9592	  if test "$aix_use_runtimelinking" = yes; then
9593	    shared_flag='${wl}-G'
9594	  else
9595	    shared_flag='${wl}-bM:SRE'
9596	  fi
9597	fi
9598      fi
9599
9600      export_dynamic_flag_spec='${wl}-bexpall'
9601      # It seems that -bexpall does not export symbols beginning with
9602      # underscore (_), so it is better to generate a list of symbols to export.
9603      always_export_symbols=yes
9604      if test "$aix_use_runtimelinking" = yes; then
9605	# Warning - without using the other runtime loading flags (-brtl),
9606	# -berok will link without error, but may produce a broken library.
9607	allow_undefined_flag='-berok'
9608        # Determine the default libpath from the value encoded in an
9609        # empty executable.
9610        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611/* end confdefs.h.  */
9612
9613int
9614main ()
9615{
9616
9617  ;
9618  return 0;
9619}
9620_ACEOF
9621if ac_fn_c_try_link "$LINENO"; then :
9622
9623lt_aix_libpath_sed='
9624    /Import File Strings/,/^$/ {
9625	/^0/ {
9626	    s/^0  *\(.*\)$/\1/
9627	    p
9628	}
9629    }'
9630aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9631# Check for a 64-bit object if we didn't find anything.
9632if test -z "$aix_libpath"; then
9633  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9634fi
9635fi
9636rm -f core conftest.err conftest.$ac_objext \
9637    conftest$ac_exeext conftest.$ac_ext
9638if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9639
9640        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9641        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9642      else
9643	if test "$host_cpu" = ia64; then
9644	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9645	  allow_undefined_flag="-z nodefs"
9646	  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"
9647	else
9648	 # Determine the default libpath from the value encoded in an
9649	 # empty executable.
9650	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651/* end confdefs.h.  */
9652
9653int
9654main ()
9655{
9656
9657  ;
9658  return 0;
9659}
9660_ACEOF
9661if ac_fn_c_try_link "$LINENO"; then :
9662
9663lt_aix_libpath_sed='
9664    /Import File Strings/,/^$/ {
9665	/^0/ {
9666	    s/^0  *\(.*\)$/\1/
9667	    p
9668	}
9669    }'
9670aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9671# Check for a 64-bit object if we didn't find anything.
9672if test -z "$aix_libpath"; then
9673  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9674fi
9675fi
9676rm -f core conftest.err conftest.$ac_objext \
9677    conftest$ac_exeext conftest.$ac_ext
9678if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9679
9680	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9681	  # Warning - without using the other run time loading flags,
9682	  # -berok will link without error, but may produce a broken library.
9683	  no_undefined_flag=' ${wl}-bernotok'
9684	  allow_undefined_flag=' ${wl}-berok'
9685	  # Exported symbols can be pulled into shared objects from archives
9686	  whole_archive_flag_spec='$convenience'
9687	  archive_cmds_need_lc=yes
9688	  # This is similar to how AIX traditionally builds its shared libraries.
9689	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9690	fi
9691      fi
9692      ;;
9693
9694    amigaos*)
9695      case $host_cpu in
9696      powerpc)
9697            # see comment about AmigaOS4 .so support
9698            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9699            archive_expsym_cmds=''
9700        ;;
9701      m68k)
9702            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)'
9703            hardcode_libdir_flag_spec='-L$libdir'
9704            hardcode_minus_L=yes
9705        ;;
9706      esac
9707      ;;
9708
9709    bsdi[45]*)
9710      export_dynamic_flag_spec=-rdynamic
9711      ;;
9712
9713    cygwin* | mingw* | pw32* | cegcc*)
9714      # When not using gcc, we currently assume that we are using
9715      # Microsoft Visual C++.
9716      # hardcode_libdir_flag_spec is actually meaningless, as there is
9717      # no search path for DLLs.
9718      hardcode_libdir_flag_spec=' '
9719      allow_undefined_flag=unsupported
9720      # Tell ltmain to make .lib files, not .a files.
9721      libext=lib
9722      # Tell ltmain to make .dll files, not .so files.
9723      shrext_cmds=".dll"
9724      # FIXME: Setting linknames here is a bad hack.
9725      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9726      # The linker will automatically build a .lib file if we build a DLL.
9727      old_archive_from_new_cmds='true'
9728      # FIXME: Should let the user specify the lib program.
9729      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9730      fix_srcfile_path='`cygpath -w "$srcfile"`'
9731      enable_shared_with_static_runtimes=yes
9732      ;;
9733
9734    darwin* | rhapsody*)
9735
9736
9737  archive_cmds_need_lc=no
9738  hardcode_direct=no
9739  hardcode_automatic=yes
9740  hardcode_shlibpath_var=unsupported
9741  whole_archive_flag_spec=''
9742  link_all_deplibs=yes
9743  allow_undefined_flag="$_lt_dar_allow_undefined"
9744  case $cc_basename in
9745     ifort*) _lt_dar_can_shared=yes ;;
9746     *) _lt_dar_can_shared=$GCC ;;
9747  esac
9748  if test "$_lt_dar_can_shared" = "yes"; then
9749    output_verbose_link_cmd=echo
9750    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9751    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9752    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}"
9753    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}"
9754
9755  else
9756  ld_shlibs=no
9757  fi
9758
9759      ;;
9760
9761    dgux*)
9762      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9763      hardcode_libdir_flag_spec='-L$libdir'
9764      hardcode_shlibpath_var=no
9765      ;;
9766
9767    freebsd1*)
9768      ld_shlibs=no
9769      ;;
9770
9771    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9772    # support.  Future versions do this automatically, but an explicit c++rt0.o
9773    # does not break anything, and helps significantly (at the cost of a little
9774    # extra space).
9775    freebsd2.2*)
9776      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9777      hardcode_libdir_flag_spec='-R$libdir'
9778      hardcode_direct=yes
9779      hardcode_shlibpath_var=no
9780      ;;
9781
9782    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9783    freebsd2*)
9784      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9785      hardcode_direct=yes
9786      hardcode_minus_L=yes
9787      hardcode_shlibpath_var=no
9788      ;;
9789
9790    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9791    freebsd* | dragonfly*)
9792      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9793      hardcode_libdir_flag_spec='-R$libdir'
9794      hardcode_direct=yes
9795      hardcode_shlibpath_var=no
9796      ;;
9797
9798    hpux9*)
9799      if test "$GCC" = yes; then
9800	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9801      else
9802	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9803      fi
9804      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9805      hardcode_libdir_separator=:
9806      hardcode_direct=yes
9807
9808      # hardcode_minus_L: Not really in the search PATH,
9809      # but as the default location of the library.
9810      hardcode_minus_L=yes
9811      export_dynamic_flag_spec='${wl}-E'
9812      ;;
9813
9814    hpux10*)
9815      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9816	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9817      else
9818	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9819      fi
9820      if test "$with_gnu_ld" = no; then
9821	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9822	hardcode_libdir_flag_spec_ld='+b $libdir'
9823	hardcode_libdir_separator=:
9824	hardcode_direct=yes
9825	hardcode_direct_absolute=yes
9826	export_dynamic_flag_spec='${wl}-E'
9827	# hardcode_minus_L: Not really in the search PATH,
9828	# but as the default location of the library.
9829	hardcode_minus_L=yes
9830      fi
9831      ;;
9832
9833    hpux11*)
9834      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9835	case $host_cpu in
9836	hppa*64*)
9837	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9838	  ;;
9839	ia64*)
9840	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9841	  ;;
9842	*)
9843	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9844	  ;;
9845	esac
9846      else
9847	case $host_cpu in
9848	hppa*64*)
9849	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9850	  ;;
9851	ia64*)
9852	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9853	  ;;
9854	*)
9855	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9856	  ;;
9857	esac
9858      fi
9859      if test "$with_gnu_ld" = no; then
9860	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9861	hardcode_libdir_separator=:
9862
9863	case $host_cpu in
9864	hppa*64*|ia64*)
9865	  hardcode_direct=no
9866	  hardcode_shlibpath_var=no
9867	  ;;
9868	*)
9869	  hardcode_direct=yes
9870	  hardcode_direct_absolute=yes
9871	  export_dynamic_flag_spec='${wl}-E'
9872
9873	  # hardcode_minus_L: Not really in the search PATH,
9874	  # but as the default location of the library.
9875	  hardcode_minus_L=yes
9876	  ;;
9877	esac
9878      fi
9879      ;;
9880
9881    irix5* | irix6* | nonstopux*)
9882      if test "$GCC" = yes; then
9883	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9884	# Try to use the -exported_symbol ld option, if it does not
9885	# work, assume that -exports_file does not work either and
9886	# implicitly export all symbols.
9887        save_LDFLAGS="$LDFLAGS"
9888        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9889        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890/* end confdefs.h.  */
9891int foo(void) {}
9892_ACEOF
9893if ac_fn_c_try_link "$LINENO"; then :
9894  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9895
9896fi
9897rm -f core conftest.err conftest.$ac_objext \
9898    conftest$ac_exeext conftest.$ac_ext
9899        LDFLAGS="$save_LDFLAGS"
9900      else
9901	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9902	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9903      fi
9904      archive_cmds_need_lc='no'
9905      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9906      hardcode_libdir_separator=:
9907      inherit_rpath=yes
9908      link_all_deplibs=yes
9909      ;;
9910
9911    netbsd*)
9912      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9913	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9914      else
9915	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9916      fi
9917      hardcode_libdir_flag_spec='-R$libdir'
9918      hardcode_direct=yes
9919      hardcode_shlibpath_var=no
9920      ;;
9921
9922    newsos6)
9923      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9924      hardcode_direct=yes
9925      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9926      hardcode_libdir_separator=:
9927      hardcode_shlibpath_var=no
9928      ;;
9929
9930    *nto* | *qnx*)
9931      ;;
9932
9933    openbsd*)
9934      if test -f /usr/libexec/ld.so; then
9935	hardcode_direct=yes
9936	hardcode_shlibpath_var=no
9937	hardcode_direct_absolute=yes
9938	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9939	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9940	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9941	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9942	  export_dynamic_flag_spec='${wl}-E'
9943	else
9944	  case $host_os in
9945	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9946	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9947	     hardcode_libdir_flag_spec='-R$libdir'
9948	     ;;
9949	   *)
9950	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9951	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9952	     ;;
9953	  esac
9954	fi
9955      else
9956	ld_shlibs=no
9957      fi
9958      ;;
9959
9960    os2*)
9961      hardcode_libdir_flag_spec='-L$libdir'
9962      hardcode_minus_L=yes
9963      allow_undefined_flag=unsupported
9964      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9965      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9966      ;;
9967
9968    osf3*)
9969      if test "$GCC" = yes; then
9970	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9971	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9972      else
9973	allow_undefined_flag=' -expect_unresolved \*'
9974	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9975      fi
9976      archive_cmds_need_lc='no'
9977      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9978      hardcode_libdir_separator=:
9979      ;;
9980
9981    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9982      if test "$GCC" = yes; then
9983	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9984	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9985	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9986      else
9987	allow_undefined_flag=' -expect_unresolved \*'
9988	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9989	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~
9990	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9991
9992	# Both c and cxx compiler support -rpath directly
9993	hardcode_libdir_flag_spec='-rpath $libdir'
9994      fi
9995      archive_cmds_need_lc='no'
9996      hardcode_libdir_separator=:
9997      ;;
9998
9999    solaris*)
10000      no_undefined_flag=' -z defs'
10001      if test "$GCC" = yes; then
10002	wlarc='${wl}'
10003	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10004	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10005	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10006      else
10007	case `$CC -V 2>&1` in
10008	*"Compilers 5.0"*)
10009	  wlarc=''
10010	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10012	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10013	  ;;
10014	*)
10015	  wlarc='${wl}'
10016	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10017	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10018	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10019	  ;;
10020	esac
10021      fi
10022      hardcode_libdir_flag_spec='-R$libdir'
10023      hardcode_shlibpath_var=no
10024      case $host_os in
10025      solaris2.[0-5] | solaris2.[0-5].*) ;;
10026      *)
10027	# The compiler driver will combine and reorder linker options,
10028	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10029	# but is careful enough not to reorder.
10030	# Supported since Solaris 2.6 (maybe 2.5.1?)
10031	if test "$GCC" = yes; then
10032	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10033	else
10034	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10035	fi
10036	;;
10037      esac
10038      link_all_deplibs=yes
10039      ;;
10040
10041    sunos4*)
10042      if test "x$host_vendor" = xsequent; then
10043	# Use $CC to link under sequent, because it throws in some extra .o
10044	# files that make .init and .fini sections work.
10045	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10046      else
10047	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10048      fi
10049      hardcode_libdir_flag_spec='-L$libdir'
10050      hardcode_direct=yes
10051      hardcode_minus_L=yes
10052      hardcode_shlibpath_var=no
10053      ;;
10054
10055    sysv4)
10056      case $host_vendor in
10057	sni)
10058	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059	  hardcode_direct=yes # is this really true???
10060	;;
10061	siemens)
10062	  ## LD is ld it makes a PLAMLIB
10063	  ## CC just makes a GrossModule.
10064	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10065	  reload_cmds='$CC -r -o $output$reload_objs'
10066	  hardcode_direct=no
10067        ;;
10068	motorola)
10069	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10071	;;
10072      esac
10073      runpath_var='LD_RUN_PATH'
10074      hardcode_shlibpath_var=no
10075      ;;
10076
10077    sysv4.3*)
10078      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10079      hardcode_shlibpath_var=no
10080      export_dynamic_flag_spec='-Bexport'
10081      ;;
10082
10083    sysv4*MP*)
10084      if test -d /usr/nec; then
10085	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10086	hardcode_shlibpath_var=no
10087	runpath_var=LD_RUN_PATH
10088	hardcode_runpath_var=yes
10089	ld_shlibs=yes
10090      fi
10091      ;;
10092
10093    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10094      no_undefined_flag='${wl}-z,text'
10095      archive_cmds_need_lc=no
10096      hardcode_shlibpath_var=no
10097      runpath_var='LD_RUN_PATH'
10098
10099      if test "$GCC" = yes; then
10100	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10101	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10102      else
10103	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10104	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10105      fi
10106      ;;
10107
10108    sysv5* | sco3.2v5* | sco5v6*)
10109      # Note: We can NOT use -z defs as we might desire, because we do not
10110      # link with -lc, and that would cause any symbols used from libc to
10111      # always be unresolved, which means just about no library would
10112      # ever link correctly.  If we're not using GNU ld we use -z text
10113      # though, which does catch some bad symbols but isn't as heavy-handed
10114      # as -z defs.
10115      no_undefined_flag='${wl}-z,text'
10116      allow_undefined_flag='${wl}-z,nodefs'
10117      archive_cmds_need_lc=no
10118      hardcode_shlibpath_var=no
10119      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10120      hardcode_libdir_separator=':'
10121      link_all_deplibs=yes
10122      export_dynamic_flag_spec='${wl}-Bexport'
10123      runpath_var='LD_RUN_PATH'
10124
10125      if test "$GCC" = yes; then
10126	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10127	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10128      else
10129	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10130	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10131      fi
10132      ;;
10133
10134    uts4*)
10135      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136      hardcode_libdir_flag_spec='-L$libdir'
10137      hardcode_shlibpath_var=no
10138      ;;
10139
10140    *)
10141      ld_shlibs=no
10142      ;;
10143    esac
10144
10145    if test x$host_vendor = xsni; then
10146      case $host in
10147      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10148	export_dynamic_flag_spec='${wl}-Blargedynsym'
10149	;;
10150      esac
10151    fi
10152  fi
10153
10154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10155$as_echo "$ld_shlibs" >&6; }
10156test "$ld_shlibs" = no && can_build_shared=no
10157
10158with_gnu_ld=$with_gnu_ld
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174#
10175# Do we need to explicitly link libc?
10176#
10177case "x$archive_cmds_need_lc" in
10178x|xyes)
10179  # Assume -lc should be added
10180  archive_cmds_need_lc=yes
10181
10182  if test "$enable_shared" = yes && test "$GCC" = yes; then
10183    case $archive_cmds in
10184    *'~'*)
10185      # FIXME: we may have to deal with multi-command sequences.
10186      ;;
10187    '$CC '*)
10188      # Test whether the compiler implicitly links with -lc since on some
10189      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10190      # to ld, don't add -lc before -lgcc.
10191      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10192$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10193      $RM conftest*
10194      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10195
10196      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10197  (eval $ac_compile) 2>&5
10198  ac_status=$?
10199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10200  test $ac_status = 0; } 2>conftest.err; then
10201        soname=conftest
10202        lib=conftest
10203        libobjs=conftest.$ac_objext
10204        deplibs=
10205        wl=$lt_prog_compiler_wl
10206	pic_flag=$lt_prog_compiler_pic
10207        compiler_flags=-v
10208        linker_flags=-v
10209        verstring=
10210        output_objdir=.
10211        libname=conftest
10212        lt_save_allow_undefined_flag=$allow_undefined_flag
10213        allow_undefined_flag=
10214        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10215  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10216  ac_status=$?
10217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10218  test $ac_status = 0; }
10219        then
10220	  archive_cmds_need_lc=no
10221        else
10222	  archive_cmds_need_lc=yes
10223        fi
10224        allow_undefined_flag=$lt_save_allow_undefined_flag
10225      else
10226        cat conftest.err 1>&5
10227      fi
10228      $RM conftest*
10229      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10230$as_echo "$archive_cmds_need_lc" >&6; }
10231      ;;
10232    esac
10233  fi
10234  ;;
10235esac
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10394$as_echo_n "checking dynamic linker characteristics... " >&6; }
10395
10396if test "$GCC" = yes; then
10397  case $host_os in
10398    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10399    *) lt_awk_arg="/^libraries:/" ;;
10400  esac
10401  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10402  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10403    # if the path contains ";" then we assume it to be the separator
10404    # otherwise default to the standard path separator (i.e. ":") - it is
10405    # assumed that no part of a normal pathname contains ";" but that should
10406    # okay in the real world where ";" in dirpaths is itself problematic.
10407    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10408  else
10409    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10410  fi
10411  # Ok, now we have the path, separated by spaces, we can step through it
10412  # and add multilib dir if necessary.
10413  lt_tmp_lt_search_path_spec=
10414  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10415  for lt_sys_path in $lt_search_path_spec; do
10416    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10417      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10418    else
10419      test -d "$lt_sys_path" && \
10420	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10421    fi
10422  done
10423  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10424BEGIN {RS=" "; FS="/|\n";} {
10425  lt_foo="";
10426  lt_count=0;
10427  for (lt_i = NF; lt_i > 0; lt_i--) {
10428    if ($lt_i != "" && $lt_i != ".") {
10429      if ($lt_i == "..") {
10430        lt_count++;
10431      } else {
10432        if (lt_count == 0) {
10433          lt_foo="/" $lt_i lt_foo;
10434        } else {
10435          lt_count--;
10436        }
10437      }
10438    }
10439  }
10440  if (lt_foo != "") { lt_freq[lt_foo]++; }
10441  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10442}'`
10443  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10444else
10445  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10446fi
10447library_names_spec=
10448libname_spec='lib$name'
10449soname_spec=
10450shrext_cmds=".so"
10451postinstall_cmds=
10452postuninstall_cmds=
10453finish_cmds=
10454finish_eval=
10455shlibpath_var=
10456shlibpath_overrides_runpath=unknown
10457version_type=none
10458dynamic_linker="$host_os ld.so"
10459sys_lib_dlsearch_path_spec="/lib /usr/lib"
10460need_lib_prefix=unknown
10461hardcode_into_libs=no
10462
10463# when you set need_version to no, make sure it does not cause -set_version
10464# flags to be left without arguments
10465need_version=unknown
10466
10467case $host_os in
10468aix3*)
10469  version_type=linux
10470  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10471  shlibpath_var=LIBPATH
10472
10473  # AIX 3 has no versioning support, so we append a major version to the name.
10474  soname_spec='${libname}${release}${shared_ext}$major'
10475  ;;
10476
10477aix[4-9]*)
10478  version_type=linux
10479  need_lib_prefix=no
10480  need_version=no
10481  hardcode_into_libs=yes
10482  if test "$host_cpu" = ia64; then
10483    # AIX 5 supports IA64
10484    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10485    shlibpath_var=LD_LIBRARY_PATH
10486  else
10487    # With GCC up to 2.95.x, collect2 would create an import file
10488    # for dependence libraries.  The import file would start with
10489    # the line `#! .'.  This would cause the generated library to
10490    # depend on `.', always an invalid library.  This was fixed in
10491    # development snapshots of GCC prior to 3.0.
10492    case $host_os in
10493      aix4 | aix4.[01] | aix4.[01].*)
10494      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10495	   echo ' yes '
10496	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10497	:
10498      else
10499	can_build_shared=no
10500      fi
10501      ;;
10502    esac
10503    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10504    # soname into executable. Probably we can add versioning support to
10505    # collect2, so additional links can be useful in future.
10506    if test "$aix_use_runtimelinking" = yes; then
10507      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10508      # instead of lib<name>.a to let people know that these are not
10509      # typical AIX shared libraries.
10510      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511    else
10512      # We preserve .a as extension for shared libraries through AIX4.2
10513      # and later when we are not doing run time linking.
10514      library_names_spec='${libname}${release}.a $libname.a'
10515      soname_spec='${libname}${release}${shared_ext}$major'
10516    fi
10517    shlibpath_var=LIBPATH
10518  fi
10519  ;;
10520
10521amigaos*)
10522  case $host_cpu in
10523  powerpc)
10524    # Since July 2007 AmigaOS4 officially supports .so libraries.
10525    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10526    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527    ;;
10528  m68k)
10529    library_names_spec='$libname.ixlibrary $libname.a'
10530    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10531    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10532    ;;
10533  esac
10534  ;;
10535
10536beos*)
10537  library_names_spec='${libname}${shared_ext}'
10538  dynamic_linker="$host_os ld.so"
10539  shlibpath_var=LIBRARY_PATH
10540  ;;
10541
10542bsdi[45]*)
10543  version_type=linux
10544  need_version=no
10545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546  soname_spec='${libname}${release}${shared_ext}$major'
10547  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10548  shlibpath_var=LD_LIBRARY_PATH
10549  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10550  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10551  # the default ld.so.conf also contains /usr/contrib/lib and
10552  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10553  # libtool to hard-code these into programs
10554  ;;
10555
10556cygwin* | mingw* | pw32* | cegcc*)
10557  version_type=windows
10558  shrext_cmds=".dll"
10559  need_version=no
10560  need_lib_prefix=no
10561
10562  case $GCC,$host_os in
10563  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10564    library_names_spec='$libname.dll.a'
10565    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10566    postinstall_cmds='base_file=`basename \${file}`~
10567      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10568      dldir=$destdir/`dirname \$dlpath`~
10569      test -d \$dldir || mkdir -p \$dldir~
10570      $install_prog $dir/$dlname \$dldir/$dlname~
10571      chmod a+x \$dldir/$dlname~
10572      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10573        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10574      fi'
10575    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10576      dlpath=$dir/\$dldll~
10577       $RM \$dlpath'
10578    shlibpath_overrides_runpath=yes
10579
10580    case $host_os in
10581    cygwin*)
10582      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10583      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10584      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10585      ;;
10586    mingw* | cegcc*)
10587      # MinGW DLLs use traditional 'lib' prefix
10588      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10589      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10590      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10591        # It is most probably a Windows format PATH printed by
10592        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10593        # path with ; separators, and with drive letters. We can handle the
10594        # drive letters (cygwin fileutils understands them), so leave them,
10595        # especially as we might pass files found there to a mingw objdump,
10596        # which wouldn't understand a cygwinified path. Ahh.
10597        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10598      else
10599        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10600      fi
10601      ;;
10602    pw32*)
10603      # pw32 DLLs use 'pw' prefix rather than 'lib'
10604      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10605      ;;
10606    esac
10607    ;;
10608
10609  *)
10610    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10611    ;;
10612  esac
10613  dynamic_linker='Win32 ld.exe'
10614  # FIXME: first we should search . and the directory the executable is in
10615  shlibpath_var=PATH
10616  ;;
10617
10618darwin* | rhapsody*)
10619  dynamic_linker="$host_os dyld"
10620  version_type=darwin
10621  need_lib_prefix=no
10622  need_version=no
10623  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10624  soname_spec='${libname}${release}${major}$shared_ext'
10625  shlibpath_overrides_runpath=yes
10626  shlibpath_var=DYLD_LIBRARY_PATH
10627  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10628
10629  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10630  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10631  ;;
10632
10633dgux*)
10634  version_type=linux
10635  need_lib_prefix=no
10636  need_version=no
10637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10638  soname_spec='${libname}${release}${shared_ext}$major'
10639  shlibpath_var=LD_LIBRARY_PATH
10640  ;;
10641
10642freebsd1*)
10643  dynamic_linker=no
10644  ;;
10645
10646freebsd* | dragonfly*)
10647  # DragonFly does not have aout.  When/if they implement a new
10648  # versioning mechanism, adjust this.
10649  if test -x /usr/bin/objformat; then
10650    objformat=`/usr/bin/objformat`
10651  else
10652    case $host_os in
10653    freebsd[123]*) objformat=aout ;;
10654    *) objformat=elf ;;
10655    esac
10656  fi
10657  version_type=freebsd-$objformat
10658  case $version_type in
10659    freebsd-elf*)
10660      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10661      need_version=no
10662      need_lib_prefix=no
10663      ;;
10664    freebsd-*)
10665      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10666      need_version=yes
10667      ;;
10668  esac
10669  shlibpath_var=LD_LIBRARY_PATH
10670  case $host_os in
10671  freebsd2*)
10672    shlibpath_overrides_runpath=yes
10673    ;;
10674  freebsd3.[01]* | freebsdelf3.[01]*)
10675    shlibpath_overrides_runpath=yes
10676    hardcode_into_libs=yes
10677    ;;
10678  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10679  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10680    shlibpath_overrides_runpath=no
10681    hardcode_into_libs=yes
10682    ;;
10683  *) # from 4.6 on, and DragonFly
10684    shlibpath_overrides_runpath=yes
10685    hardcode_into_libs=yes
10686    ;;
10687  esac
10688  ;;
10689
10690gnu*)
10691  version_type=linux
10692  need_lib_prefix=no
10693  need_version=no
10694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10695  soname_spec='${libname}${release}${shared_ext}$major'
10696  shlibpath_var=LD_LIBRARY_PATH
10697  hardcode_into_libs=yes
10698  ;;
10699
10700hpux9* | hpux10* | hpux11*)
10701  # Give a soname corresponding to the major version so that dld.sl refuses to
10702  # link against other versions.
10703  version_type=sunos
10704  need_lib_prefix=no
10705  need_version=no
10706  case $host_cpu in
10707  ia64*)
10708    shrext_cmds='.so'
10709    hardcode_into_libs=yes
10710    dynamic_linker="$host_os dld.so"
10711    shlibpath_var=LD_LIBRARY_PATH
10712    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10713    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714    soname_spec='${libname}${release}${shared_ext}$major'
10715    if test "X$HPUX_IA64_MODE" = X32; then
10716      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10717    else
10718      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10719    fi
10720    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10721    ;;
10722  hppa*64*)
10723    shrext_cmds='.sl'
10724    hardcode_into_libs=yes
10725    dynamic_linker="$host_os dld.sl"
10726    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10727    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10728    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729    soname_spec='${libname}${release}${shared_ext}$major'
10730    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10731    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10732    ;;
10733  *)
10734    shrext_cmds='.sl'
10735    dynamic_linker="$host_os dld.sl"
10736    shlibpath_var=SHLIB_PATH
10737    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10738    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739    soname_spec='${libname}${release}${shared_ext}$major'
10740    ;;
10741  esac
10742  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10743  postinstall_cmds='chmod 555 $lib'
10744  ;;
10745
10746interix[3-9]*)
10747  version_type=linux
10748  need_lib_prefix=no
10749  need_version=no
10750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10751  soname_spec='${libname}${release}${shared_ext}$major'
10752  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10753  shlibpath_var=LD_LIBRARY_PATH
10754  shlibpath_overrides_runpath=no
10755  hardcode_into_libs=yes
10756  ;;
10757
10758irix5* | irix6* | nonstopux*)
10759  case $host_os in
10760    nonstopux*) version_type=nonstopux ;;
10761    *)
10762	if test "$lt_cv_prog_gnu_ld" = yes; then
10763		version_type=linux
10764	else
10765		version_type=irix
10766	fi ;;
10767  esac
10768  need_lib_prefix=no
10769  need_version=no
10770  soname_spec='${libname}${release}${shared_ext}$major'
10771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10772  case $host_os in
10773  irix5* | nonstopux*)
10774    libsuff= shlibsuff=
10775    ;;
10776  *)
10777    case $LD in # libtool.m4 will add one of these switches to LD
10778    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10779      libsuff= shlibsuff= libmagic=32-bit;;
10780    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10781      libsuff=32 shlibsuff=N32 libmagic=N32;;
10782    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10783      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10784    *) libsuff= shlibsuff= libmagic=never-match;;
10785    esac
10786    ;;
10787  esac
10788  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10789  shlibpath_overrides_runpath=no
10790  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10791  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10792  hardcode_into_libs=yes
10793  ;;
10794
10795# No shared lib support for Linux oldld, aout, or coff.
10796linux*oldld* | linux*aout* | linux*coff*)
10797  dynamic_linker=no
10798  ;;
10799
10800# This must be Linux ELF.
10801linux* | k*bsd*-gnu)
10802  version_type=linux
10803  need_lib_prefix=no
10804  need_version=no
10805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806  soname_spec='${libname}${release}${shared_ext}$major'
10807  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10808  shlibpath_var=LD_LIBRARY_PATH
10809  shlibpath_overrides_runpath=no
10810  # Some binutils ld are patched to set DT_RUNPATH
10811  save_LDFLAGS=$LDFLAGS
10812  save_libdir=$libdir
10813  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10814       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816/* end confdefs.h.  */
10817
10818int
10819main ()
10820{
10821
10822  ;
10823  return 0;
10824}
10825_ACEOF
10826if ac_fn_c_try_link "$LINENO"; then :
10827  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10828  shlibpath_overrides_runpath=yes
10829fi
10830fi
10831rm -f core conftest.err conftest.$ac_objext \
10832    conftest$ac_exeext conftest.$ac_ext
10833  LDFLAGS=$save_LDFLAGS
10834  libdir=$save_libdir
10835
10836  # This implies no fast_install, which is unacceptable.
10837  # Some rework will be needed to allow for fast_install
10838  # before this can be enabled.
10839  hardcode_into_libs=yes
10840
10841  # Append ld.so.conf contents to the search path
10842  if test -f /etc/ld.so.conf; then
10843    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;/^$/d' | tr '\n' ' '`
10844    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10845  fi
10846
10847  # We used to test for /lib/ld.so.1 and disable shared libraries on
10848  # powerpc, because MkLinux only supported shared libraries with the
10849  # GNU dynamic linker.  Since this was broken with cross compilers,
10850  # most powerpc-linux boxes support dynamic linking these days and
10851  # people can always --disable-shared, the test was removed, and we
10852  # assume the GNU/Linux dynamic linker is in use.
10853  dynamic_linker='GNU/Linux ld.so'
10854  ;;
10855
10856netbsd*)
10857  version_type=sunos
10858  need_lib_prefix=no
10859  need_version=no
10860  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10861    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10862    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10863    dynamic_linker='NetBSD (a.out) ld.so'
10864  else
10865    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10866    soname_spec='${libname}${release}${shared_ext}$major'
10867    dynamic_linker='NetBSD ld.elf_so'
10868  fi
10869  shlibpath_var=LD_LIBRARY_PATH
10870  shlibpath_overrides_runpath=yes
10871  hardcode_into_libs=yes
10872  ;;
10873
10874newsos6)
10875  version_type=linux
10876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877  shlibpath_var=LD_LIBRARY_PATH
10878  shlibpath_overrides_runpath=yes
10879  ;;
10880
10881*nto* | *qnx*)
10882  version_type=qnx
10883  need_lib_prefix=no
10884  need_version=no
10885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886  soname_spec='${libname}${release}${shared_ext}$major'
10887  shlibpath_var=LD_LIBRARY_PATH
10888  shlibpath_overrides_runpath=no
10889  hardcode_into_libs=yes
10890  dynamic_linker='ldqnx.so'
10891  ;;
10892
10893openbsd*)
10894  version_type=sunos
10895  sys_lib_dlsearch_path_spec="/usr/lib"
10896  need_lib_prefix=no
10897  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10898  case $host_os in
10899    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10900    *)				need_version=no  ;;
10901  esac
10902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10903  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10904  shlibpath_var=LD_LIBRARY_PATH
10905  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10906    case $host_os in
10907      openbsd2.[89] | openbsd2.[89].*)
10908	shlibpath_overrides_runpath=no
10909	;;
10910      *)
10911	shlibpath_overrides_runpath=yes
10912	;;
10913      esac
10914  else
10915    shlibpath_overrides_runpath=yes
10916  fi
10917  ;;
10918
10919os2*)
10920  libname_spec='$name'
10921  shrext_cmds=".dll"
10922  need_lib_prefix=no
10923  library_names_spec='$libname${shared_ext} $libname.a'
10924  dynamic_linker='OS/2 ld.exe'
10925  shlibpath_var=LIBPATH
10926  ;;
10927
10928osf3* | osf4* | osf5*)
10929  version_type=osf
10930  need_lib_prefix=no
10931  need_version=no
10932  soname_spec='${libname}${release}${shared_ext}$major'
10933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934  shlibpath_var=LD_LIBRARY_PATH
10935  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10936  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10937  ;;
10938
10939rdos*)
10940  dynamic_linker=no
10941  ;;
10942
10943solaris*)
10944  version_type=linux
10945  need_lib_prefix=no
10946  need_version=no
10947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948  soname_spec='${libname}${release}${shared_ext}$major'
10949  shlibpath_var=LD_LIBRARY_PATH
10950  shlibpath_overrides_runpath=yes
10951  hardcode_into_libs=yes
10952  # ldd complains unless libraries are executable
10953  postinstall_cmds='chmod +x $lib'
10954  ;;
10955
10956sunos4*)
10957  version_type=sunos
10958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10959  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10960  shlibpath_var=LD_LIBRARY_PATH
10961  shlibpath_overrides_runpath=yes
10962  if test "$with_gnu_ld" = yes; then
10963    need_lib_prefix=no
10964  fi
10965  need_version=yes
10966  ;;
10967
10968sysv4 | sysv4.3*)
10969  version_type=linux
10970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971  soname_spec='${libname}${release}${shared_ext}$major'
10972  shlibpath_var=LD_LIBRARY_PATH
10973  case $host_vendor in
10974    sni)
10975      shlibpath_overrides_runpath=no
10976      need_lib_prefix=no
10977      runpath_var=LD_RUN_PATH
10978      ;;
10979    siemens)
10980      need_lib_prefix=no
10981      ;;
10982    motorola)
10983      need_lib_prefix=no
10984      need_version=no
10985      shlibpath_overrides_runpath=no
10986      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10987      ;;
10988  esac
10989  ;;
10990
10991sysv4*MP*)
10992  if test -d /usr/nec ;then
10993    version_type=linux
10994    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10995    soname_spec='$libname${shared_ext}.$major'
10996    shlibpath_var=LD_LIBRARY_PATH
10997  fi
10998  ;;
10999
11000sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11001  version_type=freebsd-elf
11002  need_lib_prefix=no
11003  need_version=no
11004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11005  soname_spec='${libname}${release}${shared_ext}$major'
11006  shlibpath_var=LD_LIBRARY_PATH
11007  shlibpath_overrides_runpath=yes
11008  hardcode_into_libs=yes
11009  if test "$with_gnu_ld" = yes; then
11010    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11011  else
11012    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11013    case $host_os in
11014      sco3.2v5*)
11015        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11016	;;
11017    esac
11018  fi
11019  sys_lib_dlsearch_path_spec='/usr/lib'
11020  ;;
11021
11022tpf*)
11023  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11024  version_type=linux
11025  need_lib_prefix=no
11026  need_version=no
11027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028  shlibpath_var=LD_LIBRARY_PATH
11029  shlibpath_overrides_runpath=no
11030  hardcode_into_libs=yes
11031  ;;
11032
11033uts4*)
11034  version_type=linux
11035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036  soname_spec='${libname}${release}${shared_ext}$major'
11037  shlibpath_var=LD_LIBRARY_PATH
11038  ;;
11039
11040*)
11041  dynamic_linker=no
11042  ;;
11043esac
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11045$as_echo "$dynamic_linker" >&6; }
11046test "$dynamic_linker" = no && can_build_shared=no
11047
11048variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11049if test "$GCC" = yes; then
11050  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11051fi
11052
11053if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11054  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11055fi
11056if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11057  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11058fi
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11147$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11148hardcode_action=
11149if test -n "$hardcode_libdir_flag_spec" ||
11150   test -n "$runpath_var" ||
11151   test "X$hardcode_automatic" = "Xyes" ; then
11152
11153  # We can hardcode non-existent directories.
11154  if test "$hardcode_direct" != no &&
11155     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11156     # have to relink, otherwise we might link with an installed library
11157     # when we should be linking with a yet-to-be-installed one
11158     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11159     test "$hardcode_minus_L" != no; then
11160    # Linking always hardcodes the temporary library directory.
11161    hardcode_action=relink
11162  else
11163    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11164    hardcode_action=immediate
11165  fi
11166else
11167  # We cannot hardcode anything, or else we can only hardcode existing
11168  # directories.
11169  hardcode_action=unsupported
11170fi
11171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11172$as_echo "$hardcode_action" >&6; }
11173
11174if test "$hardcode_action" = relink ||
11175   test "$inherit_rpath" = yes; then
11176  # Fast installation is not supported
11177  enable_fast_install=no
11178elif test "$shlibpath_overrides_runpath" = yes ||
11179     test "$enable_shared" = no; then
11180  # Fast installation is not necessary
11181  enable_fast_install=needless
11182fi
11183
11184
11185
11186
11187
11188
11189  if test "x$enable_dlopen" != xyes; then
11190  enable_dlopen=unknown
11191  enable_dlopen_self=unknown
11192  enable_dlopen_self_static=unknown
11193else
11194  lt_cv_dlopen=no
11195  lt_cv_dlopen_libs=
11196
11197  case $host_os in
11198  beos*)
11199    lt_cv_dlopen="load_add_on"
11200    lt_cv_dlopen_libs=
11201    lt_cv_dlopen_self=yes
11202    ;;
11203
11204  mingw* | pw32* | cegcc*)
11205    lt_cv_dlopen="LoadLibrary"
11206    lt_cv_dlopen_libs=
11207    ;;
11208
11209  cygwin*)
11210    lt_cv_dlopen="dlopen"
11211    lt_cv_dlopen_libs=
11212    ;;
11213
11214  darwin*)
11215  # if libdl is installed we need to link against it
11216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11217$as_echo_n "checking for dlopen in -ldl... " >&6; }
11218if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11219  $as_echo_n "(cached) " >&6
11220else
11221  ac_check_lib_save_LIBS=$LIBS
11222LIBS="-ldl  $LIBS"
11223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224/* end confdefs.h.  */
11225
11226/* Override any GCC internal prototype to avoid an error.
11227   Use char because int might match the return type of a GCC
11228   builtin and then its argument prototype would still apply.  */
11229#ifdef __cplusplus
11230extern "C"
11231#endif
11232char dlopen ();
11233int
11234main ()
11235{
11236return dlopen ();
11237  ;
11238  return 0;
11239}
11240_ACEOF
11241if ac_fn_c_try_link "$LINENO"; then :
11242  ac_cv_lib_dl_dlopen=yes
11243else
11244  ac_cv_lib_dl_dlopen=no
11245fi
11246rm -f core conftest.err conftest.$ac_objext \
11247    conftest$ac_exeext conftest.$ac_ext
11248LIBS=$ac_check_lib_save_LIBS
11249fi
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11251$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11252if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11253  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11254else
11255
11256    lt_cv_dlopen="dyld"
11257    lt_cv_dlopen_libs=
11258    lt_cv_dlopen_self=yes
11259
11260fi
11261
11262    ;;
11263
11264  *)
11265    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11266if test "x$ac_cv_func_shl_load" = x""yes; then :
11267  lt_cv_dlopen="shl_load"
11268else
11269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11270$as_echo_n "checking for shl_load in -ldld... " >&6; }
11271if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11272  $as_echo_n "(cached) " >&6
11273else
11274  ac_check_lib_save_LIBS=$LIBS
11275LIBS="-ldld  $LIBS"
11276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277/* end confdefs.h.  */
11278
11279/* Override any GCC internal prototype to avoid an error.
11280   Use char because int might match the return type of a GCC
11281   builtin and then its argument prototype would still apply.  */
11282#ifdef __cplusplus
11283extern "C"
11284#endif
11285char shl_load ();
11286int
11287main ()
11288{
11289return shl_load ();
11290  ;
11291  return 0;
11292}
11293_ACEOF
11294if ac_fn_c_try_link "$LINENO"; then :
11295  ac_cv_lib_dld_shl_load=yes
11296else
11297  ac_cv_lib_dld_shl_load=no
11298fi
11299rm -f core conftest.err conftest.$ac_objext \
11300    conftest$ac_exeext conftest.$ac_ext
11301LIBS=$ac_check_lib_save_LIBS
11302fi
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11304$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11305if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11306  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11307else
11308  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11309if test "x$ac_cv_func_dlopen" = x""yes; then :
11310  lt_cv_dlopen="dlopen"
11311else
11312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11313$as_echo_n "checking for dlopen in -ldl... " >&6; }
11314if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11315  $as_echo_n "(cached) " >&6
11316else
11317  ac_check_lib_save_LIBS=$LIBS
11318LIBS="-ldl  $LIBS"
11319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320/* end confdefs.h.  */
11321
11322/* Override any GCC internal prototype to avoid an error.
11323   Use char because int might match the return type of a GCC
11324   builtin and then its argument prototype would still apply.  */
11325#ifdef __cplusplus
11326extern "C"
11327#endif
11328char dlopen ();
11329int
11330main ()
11331{
11332return dlopen ();
11333  ;
11334  return 0;
11335}
11336_ACEOF
11337if ac_fn_c_try_link "$LINENO"; then :
11338  ac_cv_lib_dl_dlopen=yes
11339else
11340  ac_cv_lib_dl_dlopen=no
11341fi
11342rm -f core conftest.err conftest.$ac_objext \
11343    conftest$ac_exeext conftest.$ac_ext
11344LIBS=$ac_check_lib_save_LIBS
11345fi
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11347$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11348if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11349  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11350else
11351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11352$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11353if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11354  $as_echo_n "(cached) " >&6
11355else
11356  ac_check_lib_save_LIBS=$LIBS
11357LIBS="-lsvld  $LIBS"
11358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359/* end confdefs.h.  */
11360
11361/* Override any GCC internal prototype to avoid an error.
11362   Use char because int might match the return type of a GCC
11363   builtin and then its argument prototype would still apply.  */
11364#ifdef __cplusplus
11365extern "C"
11366#endif
11367char dlopen ();
11368int
11369main ()
11370{
11371return dlopen ();
11372  ;
11373  return 0;
11374}
11375_ACEOF
11376if ac_fn_c_try_link "$LINENO"; then :
11377  ac_cv_lib_svld_dlopen=yes
11378else
11379  ac_cv_lib_svld_dlopen=no
11380fi
11381rm -f core conftest.err conftest.$ac_objext \
11382    conftest$ac_exeext conftest.$ac_ext
11383LIBS=$ac_check_lib_save_LIBS
11384fi
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11386$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11387if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11388  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11389else
11390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11391$as_echo_n "checking for dld_link in -ldld... " >&6; }
11392if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11393  $as_echo_n "(cached) " >&6
11394else
11395  ac_check_lib_save_LIBS=$LIBS
11396LIBS="-ldld  $LIBS"
11397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398/* end confdefs.h.  */
11399
11400/* Override any GCC internal prototype to avoid an error.
11401   Use char because int might match the return type of a GCC
11402   builtin and then its argument prototype would still apply.  */
11403#ifdef __cplusplus
11404extern "C"
11405#endif
11406char dld_link ();
11407int
11408main ()
11409{
11410return dld_link ();
11411  ;
11412  return 0;
11413}
11414_ACEOF
11415if ac_fn_c_try_link "$LINENO"; then :
11416  ac_cv_lib_dld_dld_link=yes
11417else
11418  ac_cv_lib_dld_dld_link=no
11419fi
11420rm -f core conftest.err conftest.$ac_objext \
11421    conftest$ac_exeext conftest.$ac_ext
11422LIBS=$ac_check_lib_save_LIBS
11423fi
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11425$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11426if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11427  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11428fi
11429
11430
11431fi
11432
11433
11434fi
11435
11436
11437fi
11438
11439
11440fi
11441
11442
11443fi
11444
11445    ;;
11446  esac
11447
11448  if test "x$lt_cv_dlopen" != xno; then
11449    enable_dlopen=yes
11450  else
11451    enable_dlopen=no
11452  fi
11453
11454  case $lt_cv_dlopen in
11455  dlopen)
11456    save_CPPFLAGS="$CPPFLAGS"
11457    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11458
11459    save_LDFLAGS="$LDFLAGS"
11460    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11461
11462    save_LIBS="$LIBS"
11463    LIBS="$lt_cv_dlopen_libs $LIBS"
11464
11465    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11466$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11467if test "${lt_cv_dlopen_self+set}" = set; then :
11468  $as_echo_n "(cached) " >&6
11469else
11470  	  if test "$cross_compiling" = yes; then :
11471  lt_cv_dlopen_self=cross
11472else
11473  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11474  lt_status=$lt_dlunknown
11475  cat > conftest.$ac_ext <<_LT_EOF
11476#line 11476 "configure"
11477#include "confdefs.h"
11478
11479#if HAVE_DLFCN_H
11480#include <dlfcn.h>
11481#endif
11482
11483#include <stdio.h>
11484
11485#ifdef RTLD_GLOBAL
11486#  define LT_DLGLOBAL		RTLD_GLOBAL
11487#else
11488#  ifdef DL_GLOBAL
11489#    define LT_DLGLOBAL		DL_GLOBAL
11490#  else
11491#    define LT_DLGLOBAL		0
11492#  endif
11493#endif
11494
11495/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11496   find out it does not work in some platform. */
11497#ifndef LT_DLLAZY_OR_NOW
11498#  ifdef RTLD_LAZY
11499#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11500#  else
11501#    ifdef DL_LAZY
11502#      define LT_DLLAZY_OR_NOW		DL_LAZY
11503#    else
11504#      ifdef RTLD_NOW
11505#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11506#      else
11507#        ifdef DL_NOW
11508#          define LT_DLLAZY_OR_NOW	DL_NOW
11509#        else
11510#          define LT_DLLAZY_OR_NOW	0
11511#        endif
11512#      endif
11513#    endif
11514#  endif
11515#endif
11516
11517void fnord() { int i=42;}
11518int main ()
11519{
11520  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11521  int status = $lt_dlunknown;
11522
11523  if (self)
11524    {
11525      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11526      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11527      /* dlclose (self); */
11528    }
11529  else
11530    puts (dlerror ());
11531
11532  return status;
11533}
11534_LT_EOF
11535  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11536  (eval $ac_link) 2>&5
11537  ac_status=$?
11538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11539  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11540    (./conftest; exit; ) >&5 2>/dev/null
11541    lt_status=$?
11542    case x$lt_status in
11543      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11544      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11545      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11546    esac
11547  else :
11548    # compilation failed
11549    lt_cv_dlopen_self=no
11550  fi
11551fi
11552rm -fr conftest*
11553
11554
11555fi
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11557$as_echo "$lt_cv_dlopen_self" >&6; }
11558
11559    if test "x$lt_cv_dlopen_self" = xyes; then
11560      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11561      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11562$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11563if test "${lt_cv_dlopen_self_static+set}" = set; then :
11564  $as_echo_n "(cached) " >&6
11565else
11566  	  if test "$cross_compiling" = yes; then :
11567  lt_cv_dlopen_self_static=cross
11568else
11569  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11570  lt_status=$lt_dlunknown
11571  cat > conftest.$ac_ext <<_LT_EOF
11572#line 11572 "configure"
11573#include "confdefs.h"
11574
11575#if HAVE_DLFCN_H
11576#include <dlfcn.h>
11577#endif
11578
11579#include <stdio.h>
11580
11581#ifdef RTLD_GLOBAL
11582#  define LT_DLGLOBAL		RTLD_GLOBAL
11583#else
11584#  ifdef DL_GLOBAL
11585#    define LT_DLGLOBAL		DL_GLOBAL
11586#  else
11587#    define LT_DLGLOBAL		0
11588#  endif
11589#endif
11590
11591/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11592   find out it does not work in some platform. */
11593#ifndef LT_DLLAZY_OR_NOW
11594#  ifdef RTLD_LAZY
11595#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11596#  else
11597#    ifdef DL_LAZY
11598#      define LT_DLLAZY_OR_NOW		DL_LAZY
11599#    else
11600#      ifdef RTLD_NOW
11601#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11602#      else
11603#        ifdef DL_NOW
11604#          define LT_DLLAZY_OR_NOW	DL_NOW
11605#        else
11606#          define LT_DLLAZY_OR_NOW	0
11607#        endif
11608#      endif
11609#    endif
11610#  endif
11611#endif
11612
11613void fnord() { int i=42;}
11614int main ()
11615{
11616  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11617  int status = $lt_dlunknown;
11618
11619  if (self)
11620    {
11621      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11622      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11623      /* dlclose (self); */
11624    }
11625  else
11626    puts (dlerror ());
11627
11628  return status;
11629}
11630_LT_EOF
11631  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11632  (eval $ac_link) 2>&5
11633  ac_status=$?
11634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11635  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11636    (./conftest; exit; ) >&5 2>/dev/null
11637    lt_status=$?
11638    case x$lt_status in
11639      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11640      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11641      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11642    esac
11643  else :
11644    # compilation failed
11645    lt_cv_dlopen_self_static=no
11646  fi
11647fi
11648rm -fr conftest*
11649
11650
11651fi
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11653$as_echo "$lt_cv_dlopen_self_static" >&6; }
11654    fi
11655
11656    CPPFLAGS="$save_CPPFLAGS"
11657    LDFLAGS="$save_LDFLAGS"
11658    LIBS="$save_LIBS"
11659    ;;
11660  esac
11661
11662  case $lt_cv_dlopen_self in
11663  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11664  *) enable_dlopen_self=unknown ;;
11665  esac
11666
11667  case $lt_cv_dlopen_self_static in
11668  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11669  *) enable_dlopen_self_static=unknown ;;
11670  esac
11671fi
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689striplib=
11690old_striplib=
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11692$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11693if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11694  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11695  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11697$as_echo "yes" >&6; }
11698else
11699# FIXME - insert some real tests, host_os isn't really good enough
11700  case $host_os in
11701  darwin*)
11702    if test -n "$STRIP" ; then
11703      striplib="$STRIP -x"
11704      old_striplib="$STRIP -S"
11705      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11706$as_echo "yes" >&6; }
11707    else
11708      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709$as_echo "no" >&6; }
11710    fi
11711    ;;
11712  *)
11713    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714$as_echo "no" >&6; }
11715    ;;
11716  esac
11717fi
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730  # Report which library types will actually be built
11731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11732$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11734$as_echo "$can_build_shared" >&6; }
11735
11736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11737$as_echo_n "checking whether to build shared libraries... " >&6; }
11738  test "$can_build_shared" = "no" && enable_shared=no
11739
11740  # On AIX, shared libraries and static libraries use the same namespace, and
11741  # are all built from PIC.
11742  case $host_os in
11743  aix3*)
11744    test "$enable_shared" = yes && enable_static=no
11745    if test -n "$RANLIB"; then
11746      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11747      postinstall_cmds='$RANLIB $lib'
11748    fi
11749    ;;
11750
11751  aix[4-9]*)
11752    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11753      test "$enable_shared" = yes && enable_static=no
11754    fi
11755    ;;
11756  esac
11757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11758$as_echo "$enable_shared" >&6; }
11759
11760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11761$as_echo_n "checking whether to build static libraries... " >&6; }
11762  # Make sure either enable_shared or enable_static is yes.
11763  test "$enable_shared" = yes || enable_static=yes
11764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11765$as_echo "$enable_static" >&6; }
11766
11767
11768
11769
11770fi
11771ac_ext=c
11772ac_cpp='$CPP $CPPFLAGS'
11773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11775ac_compiler_gnu=$ac_cv_c_compiler_gnu
11776
11777CC="$lt_save_CC"
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791        ac_config_commands="$ac_config_commands libtool"
11792
11793
11794
11795
11796# Only expand once:
11797
11798
11799
11800
11801
11802
11803
11804
11805# configuration file -- stay in 8.3 limit
11806#
11807# since #undef doesn't survive in configuration header files we replace
11808# `/undef' with `#undef' after creating the output file
11809
11810ac_config_headers="$ac_config_headers ftconfig.h:ftconfig.in"
11811
11812
11813# create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
11814# and `builds/unix/unix-cc.mk' that will be used by the build system
11815#
11816ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in freetype-config freetype2.pc:freetype2.in"
11817
11818
11819# re-generate the Jamfile to use libtool now
11820#
11821# AC_CONFIG_FILES([../../Jamfile:../../Jamfile.in])
11822
11823cat >confcache <<\_ACEOF
11824# This file is a shell script that caches the results of configure
11825# tests run on this system so they can be shared between configure
11826# scripts and configure runs, see configure's option --config-cache.
11827# It is not useful on other systems.  If it contains results you don't
11828# want to keep, you may remove or edit it.
11829#
11830# config.status only pays attention to the cache file if you give it
11831# the --recheck option to rerun configure.
11832#
11833# `ac_cv_env_foo' variables (set or unset) will be overridden when
11834# loading this file, other *unset* `ac_cv_foo' will be assigned the
11835# following values.
11836
11837_ACEOF
11838
11839# The following way of writing the cache mishandles newlines in values,
11840# but we know of no workaround that is simple, portable, and efficient.
11841# So, we kill variables containing newlines.
11842# Ultrix sh set writes to stderr and can't be redirected directly,
11843# and sets the high bit in the cache file unless we assign to the vars.
11844(
11845  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11846    eval ac_val=\$$ac_var
11847    case $ac_val in #(
11848    *${as_nl}*)
11849      case $ac_var in #(
11850      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11851$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11852      esac
11853      case $ac_var in #(
11854      _ | IFS | as_nl) ;; #(
11855      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11856      *) { eval $ac_var=; unset $ac_var;} ;;
11857      esac ;;
11858    esac
11859  done
11860
11861  (set) 2>&1 |
11862    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11863    *${as_nl}ac_space=\ *)
11864      # `set' does not quote correctly, so add quotes: double-quote
11865      # substitution turns \\\\ into \\, and sed turns \\ into \.
11866      sed -n \
11867	"s/'/'\\\\''/g;
11868	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11869      ;; #(
11870    *)
11871      # `set' quotes correctly as required by POSIX, so do not add quotes.
11872      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11873      ;;
11874    esac |
11875    sort
11876) |
11877  sed '
11878     /^ac_cv_env_/b end
11879     t clear
11880     :clear
11881     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11882     t end
11883     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11884     :end' >>confcache
11885if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11886  if test -w "$cache_file"; then
11887    test "x$cache_file" != "x/dev/null" &&
11888      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11889$as_echo "$as_me: updating cache $cache_file" >&6;}
11890    cat confcache >$cache_file
11891  else
11892    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11893$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11894  fi
11895fi
11896rm -f confcache
11897
11898test "x$prefix" = xNONE && prefix=$ac_default_prefix
11899# Let make expand exec_prefix.
11900test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11901
11902DEFS=-DHAVE_CONFIG_H
11903
11904ac_libobjs=
11905ac_ltlibobjs=
11906U=
11907for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11908  # 1. Remove the extension, and $U if already installed.
11909  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11910  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11911  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11912  #    will be set to the directory where LIBOBJS objects are built.
11913  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11914  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11915done
11916LIBOBJS=$ac_libobjs
11917
11918LTLIBOBJS=$ac_ltlibobjs
11919
11920
11921
11922: ${CONFIG_STATUS=./config.status}
11923ac_write_fail=0
11924ac_clean_files_save=$ac_clean_files
11925ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11926{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11927$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11928as_write_fail=0
11929cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11930#! $SHELL
11931# Generated by $as_me.
11932# Run this file to recreate the current configuration.
11933# Compiler output produced by configure, useful for debugging
11934# configure, is in config.log if it exists.
11935
11936debug=false
11937ac_cs_recheck=false
11938ac_cs_silent=false
11939
11940SHELL=\${CONFIG_SHELL-$SHELL}
11941export SHELL
11942_ASEOF
11943cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11944## -------------------- ##
11945## M4sh Initialization. ##
11946## -------------------- ##
11947
11948# Be more Bourne compatible
11949DUALCASE=1; export DUALCASE # for MKS sh
11950if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11951  emulate sh
11952  NULLCMD=:
11953  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11954  # is contrary to our usage.  Disable this feature.
11955  alias -g '${1+"$@"}'='"$@"'
11956  setopt NO_GLOB_SUBST
11957else
11958  case `(set -o) 2>/dev/null` in #(
11959  *posix*) :
11960    set -o posix ;; #(
11961  *) :
11962     ;;
11963esac
11964fi
11965
11966
11967as_nl='
11968'
11969export as_nl
11970# Printing a long string crashes Solaris 7 /usr/bin/printf.
11971as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11972as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11973as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11974# Prefer a ksh shell builtin over an external printf program on Solaris,
11975# but without wasting forks for bash or zsh.
11976if test -z "$BASH_VERSION$ZSH_VERSION" \
11977    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11978  as_echo='print -r --'
11979  as_echo_n='print -rn --'
11980elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11981  as_echo='printf %s\n'
11982  as_echo_n='printf %s'
11983else
11984  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11985    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11986    as_echo_n='/usr/ucb/echo -n'
11987  else
11988    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11989    as_echo_n_body='eval
11990      arg=$1;
11991      case $arg in #(
11992      *"$as_nl"*)
11993	expr "X$arg" : "X\\(.*\\)$as_nl";
11994	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11995      esac;
11996      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11997    '
11998    export as_echo_n_body
11999    as_echo_n='sh -c $as_echo_n_body as_echo'
12000  fi
12001  export as_echo_body
12002  as_echo='sh -c $as_echo_body as_echo'
12003fi
12004
12005# The user is always right.
12006if test "${PATH_SEPARATOR+set}" != set; then
12007  PATH_SEPARATOR=:
12008  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12009    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12010      PATH_SEPARATOR=';'
12011  }
12012fi
12013
12014
12015# IFS
12016# We need space, tab and new line, in precisely that order.  Quoting is
12017# there to prevent editors from complaining about space-tab.
12018# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12019# splitting by setting IFS to empty value.)
12020IFS=" ""	$as_nl"
12021
12022# Find who we are.  Look in the path if we contain no directory separator.
12023case $0 in #((
12024  *[\\/]* ) as_myself=$0 ;;
12025  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026for as_dir in $PATH
12027do
12028  IFS=$as_save_IFS
12029  test -z "$as_dir" && as_dir=.
12030    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12031  done
12032IFS=$as_save_IFS
12033
12034     ;;
12035esac
12036# We did not find ourselves, most probably we were run as `sh COMMAND'
12037# in which case we are not to be found in the path.
12038if test "x$as_myself" = x; then
12039  as_myself=$0
12040fi
12041if test ! -f "$as_myself"; then
12042  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12043  exit 1
12044fi
12045
12046# Unset variables that we do not need and which cause bugs (e.g. in
12047# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12048# suppresses any "Segmentation fault" message there.  '((' could
12049# trigger a bug in pdksh 5.2.14.
12050for as_var in BASH_ENV ENV MAIL MAILPATH
12051do eval test x\${$as_var+set} = xset \
12052  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12053done
12054PS1='$ '
12055PS2='> '
12056PS4='+ '
12057
12058# NLS nuisances.
12059LC_ALL=C
12060export LC_ALL
12061LANGUAGE=C
12062export LANGUAGE
12063
12064# CDPATH.
12065(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12066
12067
12068# as_fn_error STATUS ERROR [LINENO LOG_FD]
12069# ----------------------------------------
12070# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12071# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12072# script with STATUS, using 1 if that was 0.
12073as_fn_error ()
12074{
12075  as_status=$1; test $as_status -eq 0 && as_status=1
12076  if test "$4"; then
12077    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12078    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12079  fi
12080  $as_echo "$as_me: error: $2" >&2
12081  as_fn_exit $as_status
12082} # as_fn_error
12083
12084
12085# as_fn_set_status STATUS
12086# -----------------------
12087# Set $? to STATUS, without forking.
12088as_fn_set_status ()
12089{
12090  return $1
12091} # as_fn_set_status
12092
12093# as_fn_exit STATUS
12094# -----------------
12095# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12096as_fn_exit ()
12097{
12098  set +e
12099  as_fn_set_status $1
12100  exit $1
12101} # as_fn_exit
12102
12103# as_fn_unset VAR
12104# ---------------
12105# Portably unset VAR.
12106as_fn_unset ()
12107{
12108  { eval $1=; unset $1;}
12109}
12110as_unset=as_fn_unset
12111# as_fn_append VAR VALUE
12112# ----------------------
12113# Append the text in VALUE to the end of the definition contained in VAR. Take
12114# advantage of any shell optimizations that allow amortized linear growth over
12115# repeated appends, instead of the typical quadratic growth present in naive
12116# implementations.
12117if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12118  eval 'as_fn_append ()
12119  {
12120    eval $1+=\$2
12121  }'
12122else
12123  as_fn_append ()
12124  {
12125    eval $1=\$$1\$2
12126  }
12127fi # as_fn_append
12128
12129# as_fn_arith ARG...
12130# ------------------
12131# Perform arithmetic evaluation on the ARGs, and store the result in the
12132# global $as_val. Take advantage of shells that can avoid forks. The arguments
12133# must be portable across $(()) and expr.
12134if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12135  eval 'as_fn_arith ()
12136  {
12137    as_val=$(( $* ))
12138  }'
12139else
12140  as_fn_arith ()
12141  {
12142    as_val=`expr "$@" || test $? -eq 1`
12143  }
12144fi # as_fn_arith
12145
12146
12147if expr a : '\(a\)' >/dev/null 2>&1 &&
12148   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12149  as_expr=expr
12150else
12151  as_expr=false
12152fi
12153
12154if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12155  as_basename=basename
12156else
12157  as_basename=false
12158fi
12159
12160if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12161  as_dirname=dirname
12162else
12163  as_dirname=false
12164fi
12165
12166as_me=`$as_basename -- "$0" ||
12167$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12168	 X"$0" : 'X\(//\)$' \| \
12169	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12170$as_echo X/"$0" |
12171    sed '/^.*\/\([^/][^/]*\)\/*$/{
12172	    s//\1/
12173	    q
12174	  }
12175	  /^X\/\(\/\/\)$/{
12176	    s//\1/
12177	    q
12178	  }
12179	  /^X\/\(\/\).*/{
12180	    s//\1/
12181	    q
12182	  }
12183	  s/.*/./; q'`
12184
12185# Avoid depending upon Character Ranges.
12186as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12187as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12188as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12189as_cr_digits='0123456789'
12190as_cr_alnum=$as_cr_Letters$as_cr_digits
12191
12192ECHO_C= ECHO_N= ECHO_T=
12193case `echo -n x` in #(((((
12194-n*)
12195  case `echo 'xy\c'` in
12196  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12197  xy)  ECHO_C='\c';;
12198  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12199       ECHO_T='	';;
12200  esac;;
12201*)
12202  ECHO_N='-n';;
12203esac
12204
12205rm -f conf$$ conf$$.exe conf$$.file
12206if test -d conf$$.dir; then
12207  rm -f conf$$.dir/conf$$.file
12208else
12209  rm -f conf$$.dir
12210  mkdir conf$$.dir 2>/dev/null
12211fi
12212if (echo >conf$$.file) 2>/dev/null; then
12213  if ln -s conf$$.file conf$$ 2>/dev/null; then
12214    as_ln_s='ln -s'
12215    # ... but there are two gotchas:
12216    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12217    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12218    # In both cases, we have to default to `cp -p'.
12219    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12220      as_ln_s='cp -p'
12221  elif ln conf$$.file conf$$ 2>/dev/null; then
12222    as_ln_s=ln
12223  else
12224    as_ln_s='cp -p'
12225  fi
12226else
12227  as_ln_s='cp -p'
12228fi
12229rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12230rmdir conf$$.dir 2>/dev/null
12231
12232
12233# as_fn_mkdir_p
12234# -------------
12235# Create "$as_dir" as a directory, including parents if necessary.
12236as_fn_mkdir_p ()
12237{
12238
12239  case $as_dir in #(
12240  -*) as_dir=./$as_dir;;
12241  esac
12242  test -d "$as_dir" || eval $as_mkdir_p || {
12243    as_dirs=
12244    while :; do
12245      case $as_dir in #(
12246      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12247      *) as_qdir=$as_dir;;
12248      esac
12249      as_dirs="'$as_qdir' $as_dirs"
12250      as_dir=`$as_dirname -- "$as_dir" ||
12251$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12252	 X"$as_dir" : 'X\(//\)[^/]' \| \
12253	 X"$as_dir" : 'X\(//\)$' \| \
12254	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12255$as_echo X"$as_dir" |
12256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12257	    s//\1/
12258	    q
12259	  }
12260	  /^X\(\/\/\)[^/].*/{
12261	    s//\1/
12262	    q
12263	  }
12264	  /^X\(\/\/\)$/{
12265	    s//\1/
12266	    q
12267	  }
12268	  /^X\(\/\).*/{
12269	    s//\1/
12270	    q
12271	  }
12272	  s/.*/./; q'`
12273      test -d "$as_dir" && break
12274    done
12275    test -z "$as_dirs" || eval "mkdir $as_dirs"
12276  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12277
12278
12279} # as_fn_mkdir_p
12280if mkdir -p . 2>/dev/null; then
12281  as_mkdir_p='mkdir -p "$as_dir"'
12282else
12283  test -d ./-p && rmdir ./-p
12284  as_mkdir_p=false
12285fi
12286
12287if test -x / >/dev/null 2>&1; then
12288  as_test_x='test -x'
12289else
12290  if ls -dL / >/dev/null 2>&1; then
12291    as_ls_L_option=L
12292  else
12293    as_ls_L_option=
12294  fi
12295  as_test_x='
12296    eval sh -c '\''
12297      if test -d "$1"; then
12298	test -d "$1/.";
12299      else
12300	case $1 in #(
12301	-*)set "./$1";;
12302	esac;
12303	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12304	???[sx]*):;;*)false;;esac;fi
12305    '\'' sh
12306  '
12307fi
12308as_executable_p=$as_test_x
12309
12310# Sed expression to map a string onto a valid CPP name.
12311as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12312
12313# Sed expression to map a string onto a valid variable name.
12314as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12315
12316
12317exec 6>&1
12318## ----------------------------------- ##
12319## Main body of $CONFIG_STATUS script. ##
12320## ----------------------------------- ##
12321_ASEOF
12322test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12323
12324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12325# Save the log message, to keep $0 and so on meaningful, and to
12326# report actual input values of CONFIG_FILES etc. instead of their
12327# values after options handling.
12328ac_log="
12329This file was extended by FreeType $as_me 2.4.4, which was
12330generated by GNU Autoconf 2.67.  Invocation command line was
12331
12332  CONFIG_FILES    = $CONFIG_FILES
12333  CONFIG_HEADERS  = $CONFIG_HEADERS
12334  CONFIG_LINKS    = $CONFIG_LINKS
12335  CONFIG_COMMANDS = $CONFIG_COMMANDS
12336  $ $0 $@
12337
12338on `(hostname || uname -n) 2>/dev/null | sed 1q`
12339"
12340
12341_ACEOF
12342
12343case $ac_config_files in *"
12344"*) set x $ac_config_files; shift; ac_config_files=$*;;
12345esac
12346
12347case $ac_config_headers in *"
12348"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12349esac
12350
12351
12352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12353# Files that config.status was made for.
12354config_files="$ac_config_files"
12355config_headers="$ac_config_headers"
12356config_commands="$ac_config_commands"
12357
12358_ACEOF
12359
12360cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12361ac_cs_usage="\
12362\`$as_me' instantiates files and other configuration actions
12363from templates according to the current configuration.  Unless the files
12364and actions are specified as TAGs, all are instantiated by default.
12365
12366Usage: $0 [OPTION]... [TAG]...
12367
12368  -h, --help       print this help, then exit
12369  -V, --version    print version number and configuration settings, then exit
12370      --config     print configuration, then exit
12371  -q, --quiet, --silent
12372                   do not print progress messages
12373  -d, --debug      don't remove temporary files
12374      --recheck    update $as_me by reconfiguring in the same conditions
12375      --file=FILE[:TEMPLATE]
12376                   instantiate the configuration file FILE
12377      --header=FILE[:TEMPLATE]
12378                   instantiate the configuration header FILE
12379
12380Configuration files:
12381$config_files
12382
12383Configuration headers:
12384$config_headers
12385
12386Configuration commands:
12387$config_commands
12388
12389Report bugs to <freetype@nongnu.org>."
12390
12391_ACEOF
12392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12393ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12394ac_cs_version="\\
12395FreeType config.status 2.4.4
12396configured by $0, generated by GNU Autoconf 2.67,
12397  with options \\"\$ac_cs_config\\"
12398
12399Copyright (C) 2010 Free Software Foundation, Inc.
12400This config.status script is free software; the Free Software Foundation
12401gives unlimited permission to copy, distribute and modify it."
12402
12403ac_pwd='$ac_pwd'
12404srcdir='$srcdir'
12405INSTALL='$INSTALL'
12406test -n "\$AWK" || AWK=awk
12407_ACEOF
12408
12409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12410# The default lists apply if the user does not specify any file.
12411ac_need_defaults=:
12412while test $# != 0
12413do
12414  case $1 in
12415  --*=?*)
12416    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12417    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12418    ac_shift=:
12419    ;;
12420  --*=)
12421    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12422    ac_optarg=
12423    ac_shift=:
12424    ;;
12425  *)
12426    ac_option=$1
12427    ac_optarg=$2
12428    ac_shift=shift
12429    ;;
12430  esac
12431
12432  case $ac_option in
12433  # Handling of the options.
12434  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12435    ac_cs_recheck=: ;;
12436  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12437    $as_echo "$ac_cs_version"; exit ;;
12438  --config | --confi | --conf | --con | --co | --c )
12439    $as_echo "$ac_cs_config"; exit ;;
12440  --debug | --debu | --deb | --de | --d | -d )
12441    debug=: ;;
12442  --file | --fil | --fi | --f )
12443    $ac_shift
12444    case $ac_optarg in
12445    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12446    '') as_fn_error $? "missing file argument" ;;
12447    esac
12448    as_fn_append CONFIG_FILES " '$ac_optarg'"
12449    ac_need_defaults=false;;
12450  --header | --heade | --head | --hea )
12451    $ac_shift
12452    case $ac_optarg in
12453    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12454    esac
12455    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12456    ac_need_defaults=false;;
12457  --he | --h)
12458    # Conflict between --help and --header
12459    as_fn_error $? "ambiguous option: \`$1'
12460Try \`$0 --help' for more information.";;
12461  --help | --hel | -h )
12462    $as_echo "$ac_cs_usage"; exit ;;
12463  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12464  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12465    ac_cs_silent=: ;;
12466
12467  # This is an error.
12468  -*) as_fn_error $? "unrecognized option: \`$1'
12469Try \`$0 --help' for more information." ;;
12470
12471  *) as_fn_append ac_config_targets " $1"
12472     ac_need_defaults=false ;;
12473
12474  esac
12475  shift
12476done
12477
12478ac_configure_extra_args=
12479
12480if $ac_cs_silent; then
12481  exec 6>/dev/null
12482  ac_configure_extra_args="$ac_configure_extra_args --silent"
12483fi
12484
12485_ACEOF
12486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12487if \$ac_cs_recheck; then
12488  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12489  shift
12490  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12491  CONFIG_SHELL='$SHELL'
12492  export CONFIG_SHELL
12493  exec "\$@"
12494fi
12495
12496_ACEOF
12497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12498exec 5>>config.log
12499{
12500  echo
12501  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12502## Running $as_me. ##
12503_ASBOX
12504  $as_echo "$ac_log"
12505} >&5
12506
12507_ACEOF
12508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12509#
12510# INIT-COMMANDS
12511#
12512
12513
12514# The HP-UX ksh and POSIX shell print the target directory to stdout
12515# if CDPATH is set.
12516(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12517
12518sed_quote_subst='$sed_quote_subst'
12519double_quote_subst='$double_quote_subst'
12520delay_variable_subst='$delay_variable_subst'
12521macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12522macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12523AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12524DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12525OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12526enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12527enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12528pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12529enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12530host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12531host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12532host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12533build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12534build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12535build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12536SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12537Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12538GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12539EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12540FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12541LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12542NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12543LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12544max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12545ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12546exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12547lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12548lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12549lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12550reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12551reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12552deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12553file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12554AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12555AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12556STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12557RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12558old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12559old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12560old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12561CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12562CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12563compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12564GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12565lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12566lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12567lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12568lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12569objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12570SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12571ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12572MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12573lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12574lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12575lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12576lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12577lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12578need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12579DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12580NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12581LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12582OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12583OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12584libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12585shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12586extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12587archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12588enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12589export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12590whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12591compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12592old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12593old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12594archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12595archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12596module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12597module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12598with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12599allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12600no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12601hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12602hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12603hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12604hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12605hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12606hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12607hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12608hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12609inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12610link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12611fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12612always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12613export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12614exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12615include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12616prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12617file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12618variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12619need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12620need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12621version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12622runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12623shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12624shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12625libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12626library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12627soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12628postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12629postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12630finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12631finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12632hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12633sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12634sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12635hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12636enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12637enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12638enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12639old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12640striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12641
12642LTCC='$LTCC'
12643LTCFLAGS='$LTCFLAGS'
12644compiler='$compiler_DEFAULT'
12645
12646# Quote evaled strings.
12647for var in SED \
12648GREP \
12649EGREP \
12650FGREP \
12651LD \
12652NM \
12653LN_S \
12654lt_SP2NL \
12655lt_NL2SP \
12656reload_flag \
12657deplibs_check_method \
12658file_magic_cmd \
12659AR \
12660AR_FLAGS \
12661STRIP \
12662RANLIB \
12663CC \
12664CFLAGS \
12665compiler \
12666lt_cv_sys_global_symbol_pipe \
12667lt_cv_sys_global_symbol_to_cdecl \
12668lt_cv_sys_global_symbol_to_c_name_address \
12669lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12670SHELL \
12671ECHO \
12672lt_prog_compiler_no_builtin_flag \
12673lt_prog_compiler_wl \
12674lt_prog_compiler_pic \
12675lt_prog_compiler_static \
12676lt_cv_prog_compiler_c_o \
12677need_locks \
12678DSYMUTIL \
12679NMEDIT \
12680LIPO \
12681OTOOL \
12682OTOOL64 \
12683shrext_cmds \
12684export_dynamic_flag_spec \
12685whole_archive_flag_spec \
12686compiler_needs_object \
12687with_gnu_ld \
12688allow_undefined_flag \
12689no_undefined_flag \
12690hardcode_libdir_flag_spec \
12691hardcode_libdir_flag_spec_ld \
12692hardcode_libdir_separator \
12693fix_srcfile_path \
12694exclude_expsyms \
12695include_expsyms \
12696file_list_spec \
12697variables_saved_for_relink \
12698libname_spec \
12699library_names_spec \
12700soname_spec \
12701finish_eval \
12702old_striplib \
12703striplib; do
12704    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12705    *[\\\\\\\`\\"\\\$]*)
12706      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12707      ;;
12708    *)
12709      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12710      ;;
12711    esac
12712done
12713
12714# Double-quote double-evaled strings.
12715for var in reload_cmds \
12716old_postinstall_cmds \
12717old_postuninstall_cmds \
12718old_archive_cmds \
12719extract_expsyms_cmds \
12720old_archive_from_new_cmds \
12721old_archive_from_expsyms_cmds \
12722archive_cmds \
12723archive_expsym_cmds \
12724module_cmds \
12725module_expsym_cmds \
12726export_symbols_cmds \
12727prelink_cmds \
12728postinstall_cmds \
12729postuninstall_cmds \
12730finish_cmds \
12731sys_lib_search_path_spec \
12732sys_lib_dlsearch_path_spec; do
12733    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12734    *[\\\\\\\`\\"\\\$]*)
12735      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12736      ;;
12737    *)
12738      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12739      ;;
12740    esac
12741done
12742
12743# Fix-up fallback echo if it was mangled by the above quoting rules.
12744case \$lt_ECHO in
12745*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12746  ;;
12747esac
12748
12749ac_aux_dir='$ac_aux_dir'
12750xsi_shell='$xsi_shell'
12751lt_shell_append='$lt_shell_append'
12752
12753# See if we are running on zsh, and set the options which allow our
12754# commands through without removal of \ escapes INIT.
12755if test -n "\${ZSH_VERSION+set}" ; then
12756   setopt NO_GLOB_SUBST
12757fi
12758
12759
12760    PACKAGE='$PACKAGE'
12761    VERSION='$VERSION'
12762    TIMESTAMP='$TIMESTAMP'
12763    RM='$RM'
12764    ofile='$ofile'
12765
12766
12767
12768
12769_ACEOF
12770
12771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12772
12773# Handling of arguments.
12774for ac_config_target in $ac_config_targets
12775do
12776  case $ac_config_target in
12777    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12778    "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h:ftconfig.in" ;;
12779    "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
12780    "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
12781    "freetype-config") CONFIG_FILES="$CONFIG_FILES freetype-config" ;;
12782    "freetype2.pc") CONFIG_FILES="$CONFIG_FILES freetype2.pc:freetype2.in" ;;
12783
12784  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12785  esac
12786done
12787
12788
12789# If the user did not use the arguments to specify the items to instantiate,
12790# then the envvar interface is used.  Set only those that are not.
12791# We use the long form for the default assignment because of an extremely
12792# bizarre bug on SunOS 4.1.3.
12793if $ac_need_defaults; then
12794  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12795  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12796  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12797fi
12798
12799# Have a temporary directory for convenience.  Make it in the build tree
12800# simply because there is no reason against having it here, and in addition,
12801# creating and moving files from /tmp can sometimes cause problems.
12802# Hook for its removal unless debugging.
12803# Note that there is a small window in which the directory will not be cleaned:
12804# after its creation but before its name has been assigned to `$tmp'.
12805$debug ||
12806{
12807  tmp=
12808  trap 'exit_status=$?
12809  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12810' 0
12811  trap 'as_fn_exit 1' 1 2 13 15
12812}
12813# Create a (secure) tmp directory for tmp files.
12814
12815{
12816  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12817  test -n "$tmp" && test -d "$tmp"
12818}  ||
12819{
12820  tmp=./conf$$-$RANDOM
12821  (umask 077 && mkdir "$tmp")
12822} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12823
12824# Set up the scripts for CONFIG_FILES section.
12825# No need to generate them if there are no CONFIG_FILES.
12826# This happens for instance with `./config.status config.h'.
12827if test -n "$CONFIG_FILES"; then
12828
12829
12830ac_cr=`echo X | tr X '\015'`
12831# On cygwin, bash can eat \r inside `` if the user requested igncr.
12832# But we know of no other shell where ac_cr would be empty at this
12833# point, so we can use a bashism as a fallback.
12834if test "x$ac_cr" = x; then
12835  eval ac_cr=\$\'\\r\'
12836fi
12837ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12838if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12839  ac_cs_awk_cr='\\r'
12840else
12841  ac_cs_awk_cr=$ac_cr
12842fi
12843
12844echo 'BEGIN {' >"$tmp/subs1.awk" &&
12845_ACEOF
12846
12847
12848{
12849  echo "cat >conf$$subs.awk <<_ACEOF" &&
12850  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12851  echo "_ACEOF"
12852} >conf$$subs.sh ||
12853  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12854ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12855ac_delim='%!_!# '
12856for ac_last_try in false false false false false :; do
12857  . ./conf$$subs.sh ||
12858    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12859
12860  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12861  if test $ac_delim_n = $ac_delim_num; then
12862    break
12863  elif $ac_last_try; then
12864    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12865  else
12866    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12867  fi
12868done
12869rm -f conf$$subs.sh
12870
12871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12872cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12873_ACEOF
12874sed -n '
12875h
12876s/^/S["/; s/!.*/"]=/
12877p
12878g
12879s/^[^!]*!//
12880:repl
12881t repl
12882s/'"$ac_delim"'$//
12883t delim
12884:nl
12885h
12886s/\(.\{148\}\)..*/\1/
12887t more1
12888s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12889p
12890n
12891b repl
12892:more1
12893s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12894p
12895g
12896s/.\{148\}//
12897t nl
12898:delim
12899h
12900s/\(.\{148\}\)..*/\1/
12901t more2
12902s/["\\]/\\&/g; s/^/"/; s/$/"/
12903p
12904b
12905:more2
12906s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12907p
12908g
12909s/.\{148\}//
12910t delim
12911' <conf$$subs.awk | sed '
12912/^[^""]/{
12913  N
12914  s/\n//
12915}
12916' >>$CONFIG_STATUS || ac_write_fail=1
12917rm -f conf$$subs.awk
12918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12919_ACAWK
12920cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12921  for (key in S) S_is_set[key] = 1
12922  FS = ""
12923
12924}
12925{
12926  line = $ 0
12927  nfields = split(line, field, "@")
12928  substed = 0
12929  len = length(field[1])
12930  for (i = 2; i < nfields; i++) {
12931    key = field[i]
12932    keylen = length(key)
12933    if (S_is_set[key]) {
12934      value = S[key]
12935      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12936      len += length(value) + length(field[++i])
12937      substed = 1
12938    } else
12939      len += 1 + keylen
12940  }
12941
12942  print line
12943}
12944
12945_ACAWK
12946_ACEOF
12947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12948if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12949  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12950else
12951  cat
12952fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12953  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12954_ACEOF
12955
12956# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12957# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12958# trailing colons and then remove the whole line if VPATH becomes empty
12959# (actually we leave an empty line to preserve line numbers).
12960if test "x$srcdir" = x.; then
12961  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12962h
12963s///
12964s/^/:/
12965s/[	 ]*$/:/
12966s/:\$(srcdir):/:/g
12967s/:\${srcdir}:/:/g
12968s/:@srcdir@:/:/g
12969s/^:*//
12970s/:*$//
12971x
12972s/\(=[	 ]*\).*/\1/
12973G
12974s/\n//
12975s/^[^=]*=[	 ]*$//
12976}'
12977fi
12978
12979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12980fi # test -n "$CONFIG_FILES"
12981
12982# Set up the scripts for CONFIG_HEADERS section.
12983# No need to generate them if there are no CONFIG_HEADERS.
12984# This happens for instance with `./config.status Makefile'.
12985if test -n "$CONFIG_HEADERS"; then
12986cat >"$tmp/defines.awk" <<\_ACAWK ||
12987BEGIN {
12988_ACEOF
12989
12990# Transform confdefs.h into an awk script `defines.awk', embedded as
12991# here-document in config.status, that substitutes the proper values into
12992# config.h.in to produce config.h.
12993
12994# Create a delimiter string that does not exist in confdefs.h, to ease
12995# handling of long lines.
12996ac_delim='%!_!# '
12997for ac_last_try in false false :; do
12998  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12999  if test -z "$ac_t"; then
13000    break
13001  elif $ac_last_try; then
13002    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13003  else
13004    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13005  fi
13006done
13007
13008# For the awk script, D is an array of macro values keyed by name,
13009# likewise P contains macro parameters if any.  Preserve backslash
13010# newline sequences.
13011
13012ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13013sed -n '
13014s/.\{148\}/&'"$ac_delim"'/g
13015t rset
13016:rset
13017s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13018t def
13019d
13020:def
13021s/\\$//
13022t bsnl
13023s/["\\]/\\&/g
13024s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13025D["\1"]=" \3"/p
13026s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13027d
13028:bsnl
13029s/["\\]/\\&/g
13030s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13031D["\1"]=" \3\\\\\\n"\\/p
13032t cont
13033s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13034t cont
13035d
13036:cont
13037n
13038s/.\{148\}/&'"$ac_delim"'/g
13039t clear
13040:clear
13041s/\\$//
13042t bsnlc
13043s/["\\]/\\&/g; s/^/"/; s/$/"/p
13044d
13045:bsnlc
13046s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13047b cont
13048' <confdefs.h | sed '
13049s/'"$ac_delim"'/"\\\
13050"/g' >>$CONFIG_STATUS || ac_write_fail=1
13051
13052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13053  for (key in D) D_is_set[key] = 1
13054  FS = ""
13055}
13056/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13057  line = \$ 0
13058  split(line, arg, " ")
13059  if (arg[1] == "#") {
13060    defundef = arg[2]
13061    mac1 = arg[3]
13062  } else {
13063    defundef = substr(arg[1], 2)
13064    mac1 = arg[2]
13065  }
13066  split(mac1, mac2, "(") #)
13067  macro = mac2[1]
13068  prefix = substr(line, 1, index(line, defundef) - 1)
13069  if (D_is_set[macro]) {
13070    # Preserve the white space surrounding the "#".
13071    print prefix "define", macro P[macro] D[macro]
13072    next
13073  } else {
13074    # Replace #undef with comments.  This is necessary, for example,
13075    # in the case of _POSIX_SOURCE, which is predefined and required
13076    # on some systems where configure will not decide to define it.
13077    if (defundef == "undef") {
13078      print "/*", prefix defundef, macro, "*/"
13079      next
13080    }
13081  }
13082}
13083{ print }
13084_ACAWK
13085_ACEOF
13086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13087  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13088fi # test -n "$CONFIG_HEADERS"
13089
13090
13091eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13092shift
13093for ac_tag
13094do
13095  case $ac_tag in
13096  :[FHLC]) ac_mode=$ac_tag; continue;;
13097  esac
13098  case $ac_mode$ac_tag in
13099  :[FHL]*:*);;
13100  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13101  :[FH]-) ac_tag=-:-;;
13102  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13103  esac
13104  ac_save_IFS=$IFS
13105  IFS=:
13106  set x $ac_tag
13107  IFS=$ac_save_IFS
13108  shift
13109  ac_file=$1
13110  shift
13111
13112  case $ac_mode in
13113  :L) ac_source=$1;;
13114  :[FH])
13115    ac_file_inputs=
13116    for ac_f
13117    do
13118      case $ac_f in
13119      -) ac_f="$tmp/stdin";;
13120      *) # Look for the file first in the build tree, then in the source tree
13121	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13122	 # because $ac_f cannot contain `:'.
13123	 test -f "$ac_f" ||
13124	   case $ac_f in
13125	   [\\/$]*) false;;
13126	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13127	   esac ||
13128	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13129      esac
13130      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13131      as_fn_append ac_file_inputs " '$ac_f'"
13132    done
13133
13134    # Let's still pretend it is `configure' which instantiates (i.e., don't
13135    # use $as_me), people would be surprised to read:
13136    #    /* config.h.  Generated by config.status.  */
13137    configure_input='Generated from '`
13138	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13139	`' by configure.'
13140    if test x"$ac_file" != x-; then
13141      configure_input="$ac_file.  $configure_input"
13142      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13143$as_echo "$as_me: creating $ac_file" >&6;}
13144    fi
13145    # Neutralize special characters interpreted by sed in replacement strings.
13146    case $configure_input in #(
13147    *\&* | *\|* | *\\* )
13148       ac_sed_conf_input=`$as_echo "$configure_input" |
13149       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13150    *) ac_sed_conf_input=$configure_input;;
13151    esac
13152
13153    case $ac_tag in
13154    *:-:* | *:-) cat >"$tmp/stdin" \
13155      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13156    esac
13157    ;;
13158  esac
13159
13160  ac_dir=`$as_dirname -- "$ac_file" ||
13161$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13162	 X"$ac_file" : 'X\(//\)[^/]' \| \
13163	 X"$ac_file" : 'X\(//\)$' \| \
13164	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13165$as_echo X"$ac_file" |
13166    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13167	    s//\1/
13168	    q
13169	  }
13170	  /^X\(\/\/\)[^/].*/{
13171	    s//\1/
13172	    q
13173	  }
13174	  /^X\(\/\/\)$/{
13175	    s//\1/
13176	    q
13177	  }
13178	  /^X\(\/\).*/{
13179	    s//\1/
13180	    q
13181	  }
13182	  s/.*/./; q'`
13183  as_dir="$ac_dir"; as_fn_mkdir_p
13184  ac_builddir=.
13185
13186case "$ac_dir" in
13187.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13188*)
13189  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13190  # A ".." for each directory in $ac_dir_suffix.
13191  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13192  case $ac_top_builddir_sub in
13193  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13194  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13195  esac ;;
13196esac
13197ac_abs_top_builddir=$ac_pwd
13198ac_abs_builddir=$ac_pwd$ac_dir_suffix
13199# for backward compatibility:
13200ac_top_builddir=$ac_top_build_prefix
13201
13202case $srcdir in
13203  .)  # We are building in place.
13204    ac_srcdir=.
13205    ac_top_srcdir=$ac_top_builddir_sub
13206    ac_abs_top_srcdir=$ac_pwd ;;
13207  [\\/]* | ?:[\\/]* )  # Absolute name.
13208    ac_srcdir=$srcdir$ac_dir_suffix;
13209    ac_top_srcdir=$srcdir
13210    ac_abs_top_srcdir=$srcdir ;;
13211  *) # Relative name.
13212    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13213    ac_top_srcdir=$ac_top_build_prefix$srcdir
13214    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13215esac
13216ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13217
13218
13219  case $ac_mode in
13220  :F)
13221  #
13222  # CONFIG_FILE
13223  #
13224
13225  case $INSTALL in
13226  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13227  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13228  esac
13229_ACEOF
13230
13231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13232# If the template does not know about datarootdir, expand it.
13233# FIXME: This hack should be removed a few years after 2.60.
13234ac_datarootdir_hack=; ac_datarootdir_seen=
13235ac_sed_dataroot='
13236/datarootdir/ {
13237  p
13238  q
13239}
13240/@datadir@/p
13241/@docdir@/p
13242/@infodir@/p
13243/@localedir@/p
13244/@mandir@/p'
13245case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13246*datarootdir*) ac_datarootdir_seen=yes;;
13247*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13248  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13249$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13250_ACEOF
13251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13252  ac_datarootdir_hack='
13253  s&@datadir@&$datadir&g
13254  s&@docdir@&$docdir&g
13255  s&@infodir@&$infodir&g
13256  s&@localedir@&$localedir&g
13257  s&@mandir@&$mandir&g
13258  s&\\\${datarootdir}&$datarootdir&g' ;;
13259esac
13260_ACEOF
13261
13262# Neutralize VPATH when `$srcdir' = `.'.
13263# Shell code in configure.ac might set extrasub.
13264# FIXME: do we really want to maintain this feature?
13265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13266ac_sed_extra="$ac_vpsub
13267$extrasub
13268_ACEOF
13269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13270:t
13271/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13272s|@configure_input@|$ac_sed_conf_input|;t t
13273s&@top_builddir@&$ac_top_builddir_sub&;t t
13274s&@top_build_prefix@&$ac_top_build_prefix&;t t
13275s&@srcdir@&$ac_srcdir&;t t
13276s&@abs_srcdir@&$ac_abs_srcdir&;t t
13277s&@top_srcdir@&$ac_top_srcdir&;t t
13278s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13279s&@builddir@&$ac_builddir&;t t
13280s&@abs_builddir@&$ac_abs_builddir&;t t
13281s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13282s&@INSTALL@&$ac_INSTALL&;t t
13283$ac_datarootdir_hack
13284"
13285eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13286  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13287
13288test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13289  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13290  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13291  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13292which seems to be undefined.  Please make sure it is defined" >&5
13293$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13294which seems to be undefined.  Please make sure it is defined" >&2;}
13295
13296  rm -f "$tmp/stdin"
13297  case $ac_file in
13298  -) cat "$tmp/out" && rm -f "$tmp/out";;
13299  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13300  esac \
13301  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13302 ;;
13303  :H)
13304  #
13305  # CONFIG_HEADER
13306  #
13307  if test x"$ac_file" != x-; then
13308    {
13309      $as_echo "/* $configure_input  */" \
13310      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13311    } >"$tmp/config.h" \
13312      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13313    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13314      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13315$as_echo "$as_me: $ac_file is unchanged" >&6;}
13316    else
13317      rm -f "$ac_file"
13318      mv "$tmp/config.h" "$ac_file" \
13319	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13320    fi
13321  else
13322    $as_echo "/* $configure_input  */" \
13323      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13324      || as_fn_error $? "could not create -" "$LINENO" 5
13325  fi
13326 ;;
13327
13328  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13329$as_echo "$as_me: executing $ac_file commands" >&6;}
13330 ;;
13331  esac
13332
13333
13334  case $ac_file$ac_mode in
13335    "libtool":C)
13336
13337    # See if we are running on zsh, and set the options which allow our
13338    # commands through without removal of \ escapes.
13339    if test -n "${ZSH_VERSION+set}" ; then
13340      setopt NO_GLOB_SUBST
13341    fi
13342
13343    cfgfile="${ofile}T"
13344    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13345    $RM "$cfgfile"
13346
13347    cat <<_LT_EOF >> "$cfgfile"
13348#! $SHELL
13349
13350# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13351# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13352# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13353#
13354#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13355#                 2006, 2007, 2008 Free Software Foundation, Inc.
13356#   Written by Gordon Matzigkeit, 1996
13357#
13358#   This file is part of GNU Libtool.
13359#
13360# GNU Libtool is free software; you can redistribute it and/or
13361# modify it under the terms of the GNU General Public License as
13362# published by the Free Software Foundation; either version 2 of
13363# the License, or (at your option) any later version.
13364#
13365# As a special exception to the GNU General Public License,
13366# if you distribute this file as part of a program or library that
13367# is built using GNU Libtool, you may include this file under the
13368# same distribution terms that you use for the rest of that program.
13369#
13370# GNU Libtool is distributed in the hope that it will be useful,
13371# but WITHOUT ANY WARRANTY; without even the implied warranty of
13372# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13373# GNU General Public License for more details.
13374#
13375# You should have received a copy of the GNU General Public License
13376# along with GNU Libtool; see the file COPYING.  If not, a copy
13377# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13378# obtained by writing to the Free Software Foundation, Inc.,
13379# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13380
13381
13382# The names of the tagged configurations supported by this script.
13383available_tags=""
13384
13385# ### BEGIN LIBTOOL CONFIG
13386
13387# Which release of libtool.m4 was used?
13388macro_version=$macro_version
13389macro_revision=$macro_revision
13390
13391# Assembler program.
13392AS=$AS
13393
13394# DLL creation program.
13395DLLTOOL=$DLLTOOL
13396
13397# Object dumper program.
13398OBJDUMP=$OBJDUMP
13399
13400# Whether or not to build shared libraries.
13401build_libtool_libs=$enable_shared
13402
13403# Whether or not to build static libraries.
13404build_old_libs=$enable_static
13405
13406# What type of objects to build.
13407pic_mode=$pic_mode
13408
13409# Whether or not to optimize for fast installation.
13410fast_install=$enable_fast_install
13411
13412# The host system.
13413host_alias=$host_alias
13414host=$host
13415host_os=$host_os
13416
13417# The build system.
13418build_alias=$build_alias
13419build=$build
13420build_os=$build_os
13421
13422# A sed program that does not truncate output.
13423SED=$lt_SED
13424
13425# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13426Xsed="\$SED -e 1s/^X//"
13427
13428# A grep program that handles long lines.
13429GREP=$lt_GREP
13430
13431# An ERE matcher.
13432EGREP=$lt_EGREP
13433
13434# A literal string matcher.
13435FGREP=$lt_FGREP
13436
13437# A BSD- or MS-compatible name lister.
13438NM=$lt_NM
13439
13440# Whether we need soft or hard links.
13441LN_S=$lt_LN_S
13442
13443# What is the maximum length of a command?
13444max_cmd_len=$max_cmd_len
13445
13446# Object file suffix (normally "o").
13447objext=$ac_objext
13448
13449# Executable file suffix (normally "").
13450exeext=$exeext
13451
13452# whether the shell understands "unset".
13453lt_unset=$lt_unset
13454
13455# turn spaces into newlines.
13456SP2NL=$lt_lt_SP2NL
13457
13458# turn newlines into spaces.
13459NL2SP=$lt_lt_NL2SP
13460
13461# How to create reloadable object files.
13462reload_flag=$lt_reload_flag
13463reload_cmds=$lt_reload_cmds
13464
13465# Method to check whether dependent libraries are shared objects.
13466deplibs_check_method=$lt_deplibs_check_method
13467
13468# Command to use when deplibs_check_method == "file_magic".
13469file_magic_cmd=$lt_file_magic_cmd
13470
13471# The archiver.
13472AR=$lt_AR
13473AR_FLAGS=$lt_AR_FLAGS
13474
13475# A symbol stripping program.
13476STRIP=$lt_STRIP
13477
13478# Commands used to install an old-style archive.
13479RANLIB=$lt_RANLIB
13480old_postinstall_cmds=$lt_old_postinstall_cmds
13481old_postuninstall_cmds=$lt_old_postuninstall_cmds
13482
13483# A C compiler.
13484LTCC=$lt_CC
13485
13486# LTCC compiler flags.
13487LTCFLAGS=$lt_CFLAGS
13488
13489# Take the output of nm and produce a listing of raw symbols and C names.
13490global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13491
13492# Transform the output of nm in a proper C declaration.
13493global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13494
13495# Transform the output of nm in a C name address pair.
13496global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13497
13498# Transform the output of nm in a C name address pair when lib prefix is needed.
13499global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13500
13501# The name of the directory that contains temporary libtool files.
13502objdir=$objdir
13503
13504# Shell to use when invoking shell scripts.
13505SHELL=$lt_SHELL
13506
13507# An echo program that does not interpret backslashes.
13508ECHO=$lt_ECHO
13509
13510# Used to examine libraries when file_magic_cmd begins with "file".
13511MAGIC_CMD=$MAGIC_CMD
13512
13513# Must we lock files when doing compilation?
13514need_locks=$lt_need_locks
13515
13516# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13517DSYMUTIL=$lt_DSYMUTIL
13518
13519# Tool to change global to local symbols on Mac OS X.
13520NMEDIT=$lt_NMEDIT
13521
13522# Tool to manipulate fat objects and archives on Mac OS X.
13523LIPO=$lt_LIPO
13524
13525# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13526OTOOL=$lt_OTOOL
13527
13528# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13529OTOOL64=$lt_OTOOL64
13530
13531# Old archive suffix (normally "a").
13532libext=$libext
13533
13534# Shared library suffix (normally ".so").
13535shrext_cmds=$lt_shrext_cmds
13536
13537# The commands to extract the exported symbol list from a shared archive.
13538extract_expsyms_cmds=$lt_extract_expsyms_cmds
13539
13540# Variables whose values should be saved in libtool wrapper scripts and
13541# restored at link time.
13542variables_saved_for_relink=$lt_variables_saved_for_relink
13543
13544# Do we need the "lib" prefix for modules?
13545need_lib_prefix=$need_lib_prefix
13546
13547# Do we need a version for libraries?
13548need_version=$need_version
13549
13550# Library versioning type.
13551version_type=$version_type
13552
13553# Shared library runtime path variable.
13554runpath_var=$runpath_var
13555
13556# Shared library path variable.
13557shlibpath_var=$shlibpath_var
13558
13559# Is shlibpath searched before the hard-coded library search path?
13560shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13561
13562# Format of library name prefix.
13563libname_spec=$lt_libname_spec
13564
13565# List of archive names.  First name is the real one, the rest are links.
13566# The last name is the one that the linker finds with -lNAME
13567library_names_spec=$lt_library_names_spec
13568
13569# The coded name of the library, if different from the real name.
13570soname_spec=$lt_soname_spec
13571
13572# Command to use after installation of a shared archive.
13573postinstall_cmds=$lt_postinstall_cmds
13574
13575# Command to use after uninstallation of a shared archive.
13576postuninstall_cmds=$lt_postuninstall_cmds
13577
13578# Commands used to finish a libtool library installation in a directory.
13579finish_cmds=$lt_finish_cmds
13580
13581# As "finish_cmds", except a single script fragment to be evaled but
13582# not shown.
13583finish_eval=$lt_finish_eval
13584
13585# Whether we should hardcode library paths into libraries.
13586hardcode_into_libs=$hardcode_into_libs
13587
13588# Compile-time system search path for libraries.
13589sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13590
13591# Run-time system search path for libraries.
13592sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13593
13594# Whether dlopen is supported.
13595dlopen_support=$enable_dlopen
13596
13597# Whether dlopen of programs is supported.
13598dlopen_self=$enable_dlopen_self
13599
13600# Whether dlopen of statically linked programs is supported.
13601dlopen_self_static=$enable_dlopen_self_static
13602
13603# Commands to strip libraries.
13604old_striplib=$lt_old_striplib
13605striplib=$lt_striplib
13606
13607
13608# The linker used to build libraries.
13609LD=$lt_LD
13610
13611# Commands used to build an old-style archive.
13612old_archive_cmds=$lt_old_archive_cmds
13613
13614# A language specific compiler.
13615CC=$lt_compiler
13616
13617# Is the compiler the GNU compiler?
13618with_gcc=$GCC
13619
13620# Compiler flag to turn off builtin functions.
13621no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13622
13623# How to pass a linker flag through the compiler.
13624wl=$lt_lt_prog_compiler_wl
13625
13626# Additional compiler flags for building library objects.
13627pic_flag=$lt_lt_prog_compiler_pic
13628
13629# Compiler flag to prevent dynamic linking.
13630link_static_flag=$lt_lt_prog_compiler_static
13631
13632# Does compiler simultaneously support -c and -o options?
13633compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13634
13635# Whether or not to add -lc for building shared libraries.
13636build_libtool_need_lc=$archive_cmds_need_lc
13637
13638# Whether or not to disallow shared libs when runtime libs are static.
13639allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13640
13641# Compiler flag to allow reflexive dlopens.
13642export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13643
13644# Compiler flag to generate shared objects directly from archives.
13645whole_archive_flag_spec=$lt_whole_archive_flag_spec
13646
13647# Whether the compiler copes with passing no objects directly.
13648compiler_needs_object=$lt_compiler_needs_object
13649
13650# Create an old-style archive from a shared archive.
13651old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13652
13653# Create a temporary old-style archive to link instead of a shared archive.
13654old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13655
13656# Commands used to build a shared archive.
13657archive_cmds=$lt_archive_cmds
13658archive_expsym_cmds=$lt_archive_expsym_cmds
13659
13660# Commands used to build a loadable module if different from building
13661# a shared archive.
13662module_cmds=$lt_module_cmds
13663module_expsym_cmds=$lt_module_expsym_cmds
13664
13665# Whether we are building with GNU ld or not.
13666with_gnu_ld=$lt_with_gnu_ld
13667
13668# Flag that allows shared libraries with undefined symbols to be built.
13669allow_undefined_flag=$lt_allow_undefined_flag
13670
13671# Flag that enforces no undefined symbols.
13672no_undefined_flag=$lt_no_undefined_flag
13673
13674# Flag to hardcode \$libdir into a binary during linking.
13675# This must work even if \$libdir does not exist
13676hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13677
13678# If ld is used when linking, flag to hardcode \$libdir into a binary
13679# during linking.  This must work even if \$libdir does not exist.
13680hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13681
13682# Whether we need a single "-rpath" flag with a separated argument.
13683hardcode_libdir_separator=$lt_hardcode_libdir_separator
13684
13685# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13686# DIR into the resulting binary.
13687hardcode_direct=$hardcode_direct
13688
13689# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13690# DIR into the resulting binary and the resulting library dependency is
13691# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13692# library is relocated.
13693hardcode_direct_absolute=$hardcode_direct_absolute
13694
13695# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13696# into the resulting binary.
13697hardcode_minus_L=$hardcode_minus_L
13698
13699# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13700# into the resulting binary.
13701hardcode_shlibpath_var=$hardcode_shlibpath_var
13702
13703# Set to "yes" if building a shared library automatically hardcodes DIR
13704# into the library and all subsequent libraries and executables linked
13705# against it.
13706hardcode_automatic=$hardcode_automatic
13707
13708# Set to yes if linker adds runtime paths of dependent libraries
13709# to runtime path list.
13710inherit_rpath=$inherit_rpath
13711
13712# Whether libtool must link a program against all its dependency libraries.
13713link_all_deplibs=$link_all_deplibs
13714
13715# Fix the shell variable \$srcfile for the compiler.
13716fix_srcfile_path=$lt_fix_srcfile_path
13717
13718# Set to "yes" if exported symbols are required.
13719always_export_symbols=$always_export_symbols
13720
13721# The commands to list exported symbols.
13722export_symbols_cmds=$lt_export_symbols_cmds
13723
13724# Symbols that should not be listed in the preloaded symbols.
13725exclude_expsyms=$lt_exclude_expsyms
13726
13727# Symbols that must always be exported.
13728include_expsyms=$lt_include_expsyms
13729
13730# Commands necessary for linking programs (against libraries) with templates.
13731prelink_cmds=$lt_prelink_cmds
13732
13733# Specify filename containing input files.
13734file_list_spec=$lt_file_list_spec
13735
13736# How to hardcode a shared library path into an executable.
13737hardcode_action=$hardcode_action
13738
13739# ### END LIBTOOL CONFIG
13740
13741_LT_EOF
13742
13743  case $host_os in
13744  aix3*)
13745    cat <<\_LT_EOF >> "$cfgfile"
13746# AIX sometimes has problems with the GCC collect2 program.  For some
13747# reason, if we set the COLLECT_NAMES environment variable, the problems
13748# vanish in a puff of smoke.
13749if test "X${COLLECT_NAMES+set}" != Xset; then
13750  COLLECT_NAMES=
13751  export COLLECT_NAMES
13752fi
13753_LT_EOF
13754    ;;
13755  esac
13756
13757
13758ltmain="$ac_aux_dir/ltmain.sh"
13759
13760
13761  # We use sed instead of cat because bash on DJGPP gets confused if
13762  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13763  # text mode, it properly converts lines to CR/LF.  This bash problem
13764  # is reportedly fixed, but why not run on old versions too?
13765  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13766    || (rm -f "$cfgfile"; exit 1)
13767
13768  case $xsi_shell in
13769  yes)
13770    cat << \_LT_EOF >> "$cfgfile"
13771
13772# func_dirname file append nondir_replacement
13773# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13774# otherwise set result to NONDIR_REPLACEMENT.
13775func_dirname ()
13776{
13777  case ${1} in
13778    */*) func_dirname_result="${1%/*}${2}" ;;
13779    *  ) func_dirname_result="${3}" ;;
13780  esac
13781}
13782
13783# func_basename file
13784func_basename ()
13785{
13786  func_basename_result="${1##*/}"
13787}
13788
13789# func_dirname_and_basename file append nondir_replacement
13790# perform func_basename and func_dirname in a single function
13791# call:
13792#   dirname:  Compute the dirname of FILE.  If nonempty,
13793#             add APPEND to the result, otherwise set result
13794#             to NONDIR_REPLACEMENT.
13795#             value returned in "$func_dirname_result"
13796#   basename: Compute filename of FILE.
13797#             value retuned in "$func_basename_result"
13798# Implementation must be kept synchronized with func_dirname
13799# and func_basename. For efficiency, we do not delegate to
13800# those functions but instead duplicate the functionality here.
13801func_dirname_and_basename ()
13802{
13803  case ${1} in
13804    */*) func_dirname_result="${1%/*}${2}" ;;
13805    *  ) func_dirname_result="${3}" ;;
13806  esac
13807  func_basename_result="${1##*/}"
13808}
13809
13810# func_stripname prefix suffix name
13811# strip PREFIX and SUFFIX off of NAME.
13812# PREFIX and SUFFIX must not contain globbing or regex special
13813# characters, hashes, percent signs, but SUFFIX may contain a leading
13814# dot (in which case that matches only a dot).
13815func_stripname ()
13816{
13817  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13818  # positional parameters, so assign one to ordinary parameter first.
13819  func_stripname_result=${3}
13820  func_stripname_result=${func_stripname_result#"${1}"}
13821  func_stripname_result=${func_stripname_result%"${2}"}
13822}
13823
13824# func_opt_split
13825func_opt_split ()
13826{
13827  func_opt_split_opt=${1%%=*}
13828  func_opt_split_arg=${1#*=}
13829}
13830
13831# func_lo2o object
13832func_lo2o ()
13833{
13834  case ${1} in
13835    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13836    *)    func_lo2o_result=${1} ;;
13837  esac
13838}
13839
13840# func_xform libobj-or-source
13841func_xform ()
13842{
13843  func_xform_result=${1%.*}.lo
13844}
13845
13846# func_arith arithmetic-term...
13847func_arith ()
13848{
13849  func_arith_result=$(( $* ))
13850}
13851
13852# func_len string
13853# STRING may not start with a hyphen.
13854func_len ()
13855{
13856  func_len_result=${#1}
13857}
13858
13859_LT_EOF
13860    ;;
13861  *) # Bourne compatible functions.
13862    cat << \_LT_EOF >> "$cfgfile"
13863
13864# func_dirname file append nondir_replacement
13865# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13866# otherwise set result to NONDIR_REPLACEMENT.
13867func_dirname ()
13868{
13869  # Extract subdirectory from the argument.
13870  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13871  if test "X$func_dirname_result" = "X${1}"; then
13872    func_dirname_result="${3}"
13873  else
13874    func_dirname_result="$func_dirname_result${2}"
13875  fi
13876}
13877
13878# func_basename file
13879func_basename ()
13880{
13881  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13882}
13883
13884
13885# func_stripname prefix suffix name
13886# strip PREFIX and SUFFIX off of NAME.
13887# PREFIX and SUFFIX must not contain globbing or regex special
13888# characters, hashes, percent signs, but SUFFIX may contain a leading
13889# dot (in which case that matches only a dot).
13890# func_strip_suffix prefix name
13891func_stripname ()
13892{
13893  case ${2} in
13894    .*) func_stripname_result=`$ECHO "X${3}" \
13895           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13896    *)  func_stripname_result=`$ECHO "X${3}" \
13897           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13898  esac
13899}
13900
13901# sed scripts:
13902my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13903my_sed_long_arg='1s/^-[^=]*=//'
13904
13905# func_opt_split
13906func_opt_split ()
13907{
13908  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13909  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13910}
13911
13912# func_lo2o object
13913func_lo2o ()
13914{
13915  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13916}
13917
13918# func_xform libobj-or-source
13919func_xform ()
13920{
13921  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13922}
13923
13924# func_arith arithmetic-term...
13925func_arith ()
13926{
13927  func_arith_result=`expr "$@"`
13928}
13929
13930# func_len string
13931# STRING may not start with a hyphen.
13932func_len ()
13933{
13934  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13935}
13936
13937_LT_EOF
13938esac
13939
13940case $lt_shell_append in
13941  yes)
13942    cat << \_LT_EOF >> "$cfgfile"
13943
13944# func_append var value
13945# Append VALUE to the end of shell variable VAR.
13946func_append ()
13947{
13948  eval "$1+=\$2"
13949}
13950_LT_EOF
13951    ;;
13952  *)
13953    cat << \_LT_EOF >> "$cfgfile"
13954
13955# func_append var value
13956# Append VALUE to the end of shell variable VAR.
13957func_append ()
13958{
13959  eval "$1=\$$1\$2"
13960}
13961
13962_LT_EOF
13963    ;;
13964  esac
13965
13966
13967  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13968    || (rm -f "$cfgfile"; exit 1)
13969
13970  mv -f "$cfgfile" "$ofile" ||
13971    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13972  chmod +x "$ofile"
13973
13974 ;;
13975    "ftconfig.h":H) mv ftconfig.h ftconfig.tmp
13976   sed 's|/undef|#undef|' < ftconfig.tmp > ftconfig.h
13977   rm ftconfig.tmp ;;
13978
13979  esac
13980done # for ac_tag
13981
13982
13983as_fn_exit 0
13984_ACEOF
13985ac_clean_files=$ac_clean_files_save
13986
13987test $ac_write_fail = 0 ||
13988  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13989
13990
13991# configure is writing to config.log, and then calls config.status.
13992# config.status does its own redirection, appending to config.log.
13993# Unfortunately, on DOS this fails, as config.log is still kept open
13994# by configure, so config.status won't be able to write to it; its
13995# output is simply discarded.  So we exec the FD to /dev/null,
13996# effectively closing config.log, so it can be properly (re)opened and
13997# appended to by config.status.  When coming back to configure, we
13998# need to make the FD available again.
13999if test "$no_create" != yes; then
14000  ac_cs_success=:
14001  ac_config_status_args=
14002  test "$silent" = yes &&
14003    ac_config_status_args="$ac_config_status_args --quiet"
14004  exec 5>/dev/null
14005  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14006  exec 5>>config.log
14007  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14008  # would make configure fail if this is the last instruction.
14009  $ac_cs_success || as_fn_exit 1
14010fi
14011if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14012  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14013$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14014fi
14015
14016
14017# end of configure.raw
14018